[issue5513] What's New should say VERY CLEARLY that the type file is gone

2009-03-22 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Fixed in r70536. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5513 ___

[issue5513] What's New should say VERY CLEARLY that the type file is gone

2009-03-20 Thread David W. Lambert
David W. Lambert lamber...@corning.com added the comment: My file class extends text files with seek or read through condition or pattern, providing an awk like pattern{action} task separation. If I allow a pre-existing stream into my constructor (subprocess.Popen my favorite) I still suffer

[issue5513] What's New should say VERY CLEARLY that the type file is gone

2009-03-19 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: The Python 3 What's New should SCREAM that the type file is gone I don't think the documentation should ever SCREAM. The type file has been replaced by _ioTextIOWrapper; use open() to open a file; open returns an instance of

[issue5513] What's New should say VERY CLEARLY that the type file is gone

2009-03-19 Thread David W. Lambert
David W. Lambert lamber...@corning.com added the comment: # With py3Krc1 it took me days to figure out how to # replace my base class file. Granted, there were # issues with io module at the time. Following met # my need. import io class File(io.TextIOWrapper): '''Open a text file

[issue5513] What's New should say VERY CLEARLY that the type file is gone

2009-03-19 Thread Mitchell Model
Mitchell Model m...@acm.org added the comment: At 11:03 AM -0400 3/19/09, Mitchell L Model wrote: Martin v. Löwis mar...@v.loewis.de added the comment: The Python 3 What's New should SCREAM that the type file is gone I don't think the documentation should ever SCREAM. No, of course not. I

[issue5513] What's New should say VERY CLEARLY that the type file is gone

2009-03-19 Thread David W. Lambert
David W. Lambert lamber...@corning.com added the comment: #OOPS! I forgot the subtlety. #I must also retain the stream #else it gets collected. #Nasty. import io class file(io.TextIOWrapper): '''condensing code for this list without test is a no no!''' def __init__(self,name):

[issue5513] What's New should say VERY CLEARLY that the type file is gone

2009-03-19 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: class file(io.TextIOWrapper): '''condensing code for this list without test is a no no!''' def __init__(self,name): self.stream = open(name) # SAVE THE STREAM! super().__init__(self.stream.buffer) I don't

[issue5513] What's New should say VERY CLEARLY that the type file is gone

2009-03-19 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Unassigning. This appears to have evolved beyond the original request. -- assignee: rhettinger - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5513

[issue5513] What's New should say VERY CLEARLY that the type file is gone

2009-03-19 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: It might be helpful to provide a table in the open() docs saying what classes in io exactly are returned for different modes. -- nosy: +benjamin.peterson ___ Python tracker

[issue5513] What's New should say VERY CLEARLY that the type file is gone

2009-03-18 Thread Mitchell Model
New submission from Mitchell Model m...@acm.org: MAIN POINT The Python 3 What's New should SCREAM that the type file is gone, not just that people should use the function open() to open files, since that has been a recommendation for quite a while. EXPLANATION In multiple readings of the

[issue5513] What's New should say VERY CLEARLY that the type file is gone

2009-03-18 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: I'm working on the whatsnew updates and will make sure this is clear. -- assignee: georg.brandl - rhettinger nosy: +rhettinger ___ Python tracker rep...@bugs.python.org