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


Groups > comp.lang.python > #76248 > unrolled thread

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

Started byTim Chase <python.list@tim.thechases.com>
First post2014-08-13 21:12 -0500
Last post2014-08-13 21:12 -0500
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

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

FromTim Chase <python.list@tim.thechases.com>
Date2014-08-13 21:12 -0500
SubjectRe: what is the "/" mean in __init__(self, /, *args, **kwargs) ?
Message-ID<mailman.12957.1407982423.18130.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web