Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #76258

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

From Ben Finney <ben+python@benfinney.id.au>
Subject Re: what is the "/" mean in __init__(self, /, *args, **kwargs) ?
Date 2014-08-14 13:48 +1000
References <53EC1887.6060205@gmail.com> <20140813211212.0c0843b8@bigbox.christie.dr>
Newsgroups comp.lang.python
Message-ID <mailman.12966.1407988124.18130.python-list@python.org> (permalink)

Show all headers | View raw


Tim Chase <python.list@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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: what is the "/" mean in __init__(self, /, *args, **kwargs) ? Ben Finney <ben+python@benfinney.id.au> - 2014-08-14 13:48 +1000

csiph-web