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

Ben Finney ben+python at benfinney.id.au
Wed Aug 13 23:48:29 EDT 2014


Tim Chase <python.list at tim.thechases.com> writes:

> 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?

I see the same output as ‘luofeiyu’ reports. My Python is::

    >>> sys.version
    '3.4.1 (default, Jul 26 2014, 13:46:45) \n[GCC 4.9.1]'

-- 
 \                “Stop — Drive sideways.” —detour sign, Kyushu, Japan |
  `\                                                                   |
_o__)                                                                  |
Ben Finney




More information about the Python-list mailing list