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


Groups > comp.lang.python > #76248

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

Date 2014-08-13 21:12 -0500
From Tim Chase <python.list@tim.thechases.com>
Subject Re: what is the "/" mean in __init__(self, /, *args, **kwargs) ?
References <53EC1887.6060205@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.12957.1407982423.18130.python-list@python.org> (permalink)

Show all headers | View raw


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

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


Thread

Re: what is the "/" mean in __init__(self, /, *args, **kwargs) ? Tim Chase <python.list@tim.thechases.com> - 2014-08-13 21:12 -0500

csiph-web