[Python-Dev] PEP-435 reference implementation

Glenn Linderman v+python at g.nevcal.com
Wed May 1 00:24:14 CEST 2013


On 4/30/2013 1:12 PM, Ethan Furman wrote:
> Greetings,
>> Eli asked me to put the reference implementation here for review.
>> It is available at https://bitbucket.org/stoneleaf/aenum in ref435.py 
> and test_ref435.py

Thanks for the code reference.
Tests ran fine here on Python 3.3
If I alter test_ref435.py at the end, as follows, I get an error: 
nothing matches 'BDFL'
Can someone explain why?
if __name__ == '__main__':
 class AnotherName( Name ):
 'just uses prior names'
 print(AnotherName['BDFL'])
 unittest.main()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20130430/853f5dee/attachment-0001.html>


More information about the Python-Dev mailing list

AltStyle によって変換されたページ (->オリジナル) /