[issue15040] stdlib compatability with pypy: mailbox.py

2012-06-14 Thread R. David Murray
R. David Murray added the comment: You could get one of the pypy devs that have push rights on cpython to commit it. If that doesn't happen, then at some point (probably not *too* long from now) I or someone else will commit it. We have many more patches than we have people with time to com

[issue15040] stdlib compatability with pypy: mailbox.py

2012-06-13 Thread mattip
mattip added the comment: What is the next stage in moving this forward? I am new here... -- ___ Python tracker ___ ___ Python-bugs-l

[issue15040] stdlib compatability with pypy: mailbox.py

2012-06-11 Thread R. David Murray
R. David Murray added the comment: Ah, good. I thought we'd fixed the open/close issues, but I could easily believe we had missed something (especially in Python2). Since the fp stuff is gone in 3, I'd be OK with just applying this. -- versions: -Python 3.2, Python 3.3

[issue15040] stdlib compatability with pypy: mailbox.py

2012-06-11 Thread mattip
mattip added the comment: Revised patch: changes to mailbox.py were not needed for pypy. Someone did a good job with mailbox.py in stdlib 2.7.3 Now the patch only changes tests. The tests in 3.3 are very different, it seems to me there is little that can be reused there. -- Added fil

[issue15040] stdlib compatability with pypy: mailbox.py

2012-06-11 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: I'm not sure about the __del__: if pypy's deferred garbage collection is not enough to close self._file, how can a __del__ method help? -- nosy: +amaury.forgeotdarc ___ Python tracker

[issue15040] stdlib compatability with pypy: mailbox.py

2012-06-09 Thread R. David Murray
R. David Murray added the comment: Oh, and the code changes should presumably be applied to Python3 as well (once there are tests), so I've added those versions. It might be better to have two patches, one for the close of _file, and the other for the msg.fp stuff (since that doesn't exist i

[issue15040] stdlib compatability with pypy: mailbox.py

2012-06-09 Thread R. David Murray
R. David Murray added the comment: I see some code changes, but no added tests for those code changes. msg.fp doesn't exist in Python3. I'd like to understand those changes better, but I don't know when I'll have the time or if it is worth the effort. -- nosy: +r.david.murray __

[issue15040] stdlib compatability with pypy: mailbox.py

2012-06-09 Thread mattip
New submission from mattip : These are changes necessary to mailbox.py and its tests so that tests pass (windows platform) on pypy 1.9.0. Files must be explicitly closed on pypy. I would like to submit these as a "compatability" issue type, but that category does not exist, so I used "behavio