classification
Title: abc documentation version conflict
Type: behavior Stage: resolved
Components: Library (Lib) Versions:
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: dustin.farris, eric.araujo
Priority: normal Keywords:

Created on 2011-01-29 18:08 by dustin.farris, last changed 2011-01-29 18:20 by eric.araujo. This issue is now closed.

Messages (6)
msg127453 - (view) Author: Dustin Farris (dustin.farris) Date: 2011-01-29 18:08
Running help(abc) in Python 2.6.1 displays syntax for Py3k.
msg127454 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2011-01-29 18:11
Not for me:
     |      class C:
     |          __metaclass__ = ABCMeta
     |          @abstractproperty
msg127455 - (view) Author: Dustin Farris (dustin.farris) Date: 2011-01-29 18:14
This is what I get:


Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49) 
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import abc
>>> help(abc)

NAME
    abc - Abstract Base Classes (ABCs) according to PEP 3119.

FILE
    /System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/abc.py


.....


|  Usage:
     |  
     |      class C(metaclass=ABCMeta):
     |          @abstractproperty
     |          def my_abstract_property(self):
     |              ...
msg127457 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2011-01-29 18:15
Can you reproduce with 2.6.6?
msg127458 - (view) Author: Dustin Farris (dustin.farris) Date: 2011-01-29 18:18
Negative.

2.6.6 is correct.  Apologies.
msg127460 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2011-01-29 18:20
No problem, thanks for wanting to help.  Don’t hesitate to report other bugs you may find in the future, if you find them in the latest versions :)
History
Date User Action Args
2011-01-29 18:20:08eric.araujosetmessages: + msg127460
resolution: rejected -> out of date
stage: resolved
2011-01-29 18:18:19dustin.farrissetstatus: open -> closed

messages: + msg127458
resolution: rejected
2011-01-29 18:15:26eric.araujosetversions: - Python 2.6, Python 3.1
nosy: - docs@python

messages: + msg127457

assignee: docs@python ->
components: + Library (Lib), - Documentation
2011-01-29 18:14:08dustin.farrissetnosy: eric.araujo, docs@python, dustin.farris
messages: + msg127455
2011-01-29 18:11:28eric.araujosetnosy: + eric.araujo
messages: + msg127454
2011-01-29 18:08:51dustin.farriscreate