Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #76272
| Date | 2014-08-14 15:19 +0800 |
|---|---|
| From | luofeiyu <elearn2014@gmail.com> |
| Subject | Re: what is the "/" mean in __init__(self, /, *args, **kwargs) ? |
| References | <53EC1887.6060205@gmail.com> <20140813211212.0c0843b8@bigbox.christie.dr> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.12974.1408000806.18130.python-list@python.org> (permalink) |
python3.4 On 8/14/2014 10:12 AM, Tim Chase wrote: > 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
Re: what is the "/" mean in __init__(self, /, *args, **kwargs) ? luofeiyu <elearn2014@gmail.com> - 2014-08-14 15:19 +0800
csiph-web