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


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

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

Started byBen Finney <ben+python@benfinney.id.au>
First post2014-08-14 13:48 +1000
Last post2014-08-14 13:48 +1000
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) ? Ben Finney <ben+python@benfinney.id.au> - 2014-08-14 13:48 +1000

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

FromBen Finney <ben+python@benfinney.id.au>
Date2014-08-14 13:48 +1000
SubjectRe: what is the "/" mean in __init__(self, /, *args, **kwargs) ?
Message-ID<mailman.12966.1407988124.18130.python-list@python.org>
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

[toc] | [standalone]


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


csiph-web