Issue 8562: hasattr(open,'newlines') example gives incorrect results from PEP0278 (original) (raw)

Issue8562

Created on 2010-04-28 19:45 by adamnelson, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (2)
msg104454 - (view) Author: AdamN (adamnelson) Date: 2010-04-28 19:45
This bug from the Ubuntu list is being moved here: https://bugs.launchpad.net/ubuntu/+source/python-defaults/+bug/570737 Newlines support is enabled on Ubuntu but the example from: http://www.python.org/dev/peps/pep-0278/ Does not give the correct results (of True): if hasattr(open, 'newlines'): print 'We have universal newline support' I don't know if this is a documentation problem or whether there is another attr that matters here.
msg112530 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2010-08-02 19:50
Fixed in r83556.
History
Date User Action Args
2022-04-11 14:57:00 admin set github: 52808
2010-08-02 19:50:25 georg.brandl set status: open -> closednosy: + georg.brandlmessages: + resolution: fixed
2010-05-24 23:39:14 David.Antliff set nosy: + David.Antliff
2010-04-29 01:45:12 Matt.Wartell set nosy: + Matt.Wartell
2010-04-28 19:45:38 adamnelson create