New submission from AdamN email@example.com:
This bug from the Ubuntu list is being moved here:
Newlines support is enabled on Ubuntu but the example from:
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.
---------- assignee: docs@python components: Documentation, Windows messages: 104454 nosy: adamnelson, docs@python priority: normal severity: normal status: open title: hasattr(open,'newlines') example gives incorrect results from PEP0278 type: behavior versions: Python 2.6
Georg Brandl firstname.lastname@example.org added the comment:
Fixed in r83556.
---------- nosy: +georg.brandl resolution: -> fixed status: open -> closed