Re: Keyword arguments and python simpletons

From: Sebastien Binet <binet_at_cern.ch>
Date: Wed, 12 May 2010 18:00:08 +0200


Excerpts from wlavrijsen's message of 2010-05-12 17:32:50 +0200:
> Tim,
>
> > However I was wondering if it would be possible to teach pyroot to hit
> > the user each time they try to do this?
>
> probably; right now keyword arguments are completely (i.e. silently)
> ignored and likely it could raise an exception if the keyword dictionary
> isn't empty.
>
> Note that it is possible to create keyword arguments, given that the names
> of the parameters are available in the dictionary, but these names have no
> meaning in C++ (the argument names in the declarations in the header are
> unrelated to the ones in the implementation in the .cxx), so they could
> change over time.

but one is only interested in the names provided by the header (as this is the thing that rootcint, gccxml or clang/cling is fed with)

cheers,
sebastien.

-- 
#########################################
# Dr. Sebastien Binet
# Laboratoire de l'Accelerateur Lineaire
# Universite Paris-Sud XI
# Batiment 200
# 91898 Orsay
#########################################
Received on Wed May 12 2010 - 18:01:30 CEST

This archive was generated by hypermail 2.2.0 : Wed May 12 2010 - 23:50:01 CEST