what is the "/" mean in __init__(self, /, *args, **kwargs) ?

Tim Chase python.list at tim.thechases.com
Wed Aug 13 22:12:12 EDT 2014


On 2014-08-14 10:01, luofeiyu wrote:
>  >>> help(int.__init__)
> Help on wrapper_descriptor:
> 
> __init__(self, /, *args, **kwargs)
>      Initialize self.  See help(type(self)) for accurate signature.
> 
> what is the "/" mean in __init__(self, /, *args, **kwargs) ?

Where are you seeing this?



Python 2.7.3 (default, Mar 13 2014, 11:03:55) 
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> help(int.__init__)
Help on wrapper_descriptor:

__init__(...)
    x.__init__(...) initializes x; see help(type(x)) for signature
>>> ^D


Python 3.2.3 (default, Feb 20 2013, 14:44:27) 
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> help(int.__init__)
Help on wrapper_descriptor:

__init__(...)
    x.__init__(...) initializes x; see help(type(x)) for signature



-tkc





More information about the Python-list mailing list