[issue21910] File protocol should document if writelines must handle generators sensibly

2016-03-08 Thread Dan Haffey
Dan Haffey added the comment: +1, I just lost an hour-plus compute job to this. It sure violates POLA. I've been passing large generators to file.writelines since about as long as generators have existed, so I never would have guessed that a class named "StreamWriter" of all

[issue24580] Wrong or missing exception when compiling regexes with recursive named backreferences

2015-07-06 Thread Dan Haffey
New submission from Dan Haffey: Error reporting for recursive backreferences in regexes isn't consistent across both types of backref. Here's the exception for a recursive numeric backref: >>> import re >>> re.compile(r'(\1)') Traceback (most recent c

[issue6803] Context manager docs refer to contextlib.contextmanager as contextlib.contextfactory

2009-08-29 Thread Dan Haffey
New submission from Dan Haffey : The documentation at http://docs.python.org/library/stdtypes.html#context-manager-types refers to the contextlib.contextmanager decorator as contextlib.contextfactory. -- assignee: georg.brandl components: Documentation files: doc-stdtypes