[issue10900] bz2 module fails to uncompress large files

2011-03-01 Thread Charles-Francois Natali
Charles-Francois Natali added the comment: 2011/3/2 Eric Wolf : > > Eric Wolf added the comment: > > I just got confirmation that OSM is using pbzip2 to generate these files. So > they are multi-stream. At least that gives a final answer but doesn't solve > my problem. > At least on Unix, yo

[issue10367] "python setup.py sdist upload --show-response" can fail with "UnboundLocalError: local variable 'result' referenced before assignment"

2011-03-01 Thread Daniel Tavares
Daniel Tavares added the comment: Hey Éric, Just wanted to check with you about the status of this issue. Any chance this could be reviewed? It's been idle since December and it's still listed as "needs patch". Thanks, Daniel -- ___ Python tracke

[issue10900] bz2 module fails to uncompress large files

2011-03-01 Thread Charles-Francois Natali
Charles-Francois Natali added the comment: > Antoine Pitrou added the comment: > > Perhaps your bz2 files are simply multi-stream files? The bz2 module > currently doesn't support them (it only decompresses the first stream); see > issue1625 for a patch. That explains why it was seeing an end-

[issue11350] __setitem__()'s problem of dbm.dumb object pointed out by comments

2011-03-01 Thread Ray.Allen
Ray.Allen added the comment: Here is a test case. First here is a patch which implements a simple builtin function "abort()" that calls exit(0) directly, it simulates the cases that Py_FatalError occurred or segment fault. Then run the following: import dbm.dumb as dumb db = dumb.open('tes

[issue11342] ResourceWarning: unclosed file <_io.TextIOWrapper

2011-03-01 Thread Éric Araujo
Changes by Éric Araujo : Removed file: http://bugs.python.org/file20968/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue11342] ResourceWarning: unclosed file <_io.TextIOWrapper

2011-03-01 Thread Éric Araujo
Éric Araujo added the comment: ossaudiodev is a platform-specific module that you don’t have to care about. It’s just a compilation warning that an option module has not been built, nothing to worry about. I just realized that I was not paying enough attention to your error messages. I hav

[issue11342] ResourceWarning: unclosed file <_io.TextIOWrapper

2011-03-01 Thread LW
LW added the comment: hi eric, maybe we are troubleshooting the wrong thing. so i downloaded the python3.2 package again. configured no error. now make gives, just one bad or missing module(s). Failed to build these modules: ossaudiodev              i can't find it in synaptic

[issue11342] ResourceWarning: unclosed file <_io.TextIOWrapper

2011-03-01 Thread LW
LW added the comment: btw, if not know yet the patches are applied to python 3.2. anyway the patch -p0 resulted exactly the same rejects. les@Liquid:~$ patch -p0 -i ~/Desktop/distutils_files.diff ~/Downloads/Python-3.2/distutils/command patching file /home/les/Downloads/Python-3.2/distutils/

[issue11369] Add caching for the isEnabledFor() computation

2011-03-01 Thread Ned Deily
Changes by Ned Deily : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue11342] ResourceWarning: unclosed file <_io.TextIOWrapper

2011-03-01 Thread Éric Araujo
Éric Araujo added the comment: And of course, I said the wrong thing :) This patch needs -p0. -- ___ Python tracker ___ ___ Python-b

[issue11369] Add caching for the isEnabledFor() computation

2011-03-01 Thread William Hart
New submission from William Hart : I recently started using logging extensively in the Coopr software, and I ran into some performance issues when logging was used within frequently used kernels in the code. After profiling, it became clear that the performance of the logging package could be

[issue11368] xml.etree.ElementTree.Element should have a reference to parent

2011-03-01 Thread Ned Deily
Ned Deily added the comment: ElementTree Element has no parent link by design. See the "Accessing Parents" topic (http://effbot.org/zone/element.htm) in the supplemental documentation for ElementTree linked from the Python Standard Library doc set (http://docs.python.org/py3k/library/xml.etr

[issue11342] ResourceWarning: unclosed file <_io.TextIOWrapper

2011-03-01 Thread LW
LW added the comment: thanks.py3k done. still having rejects, applied patch: les@Liquid:~$ patch -p1 -i ~/Desktop/distutils_files.diff ~/Downloads/Python-3.2/distutils/command patching file /home/les/Downloads/Python-3.2/distutils/command Hunk #1 FAILED at 245. 1 out of 1 hunk FAILED -- sav

[issue11368] xml.etree.ElementTree.Element should have a reference to parent

2011-03-01 Thread anatoly techtonik
New submission from anatoly techtonik : There is no way to get parent element from xml.etree.ElementTree.Element. This is one of the essential functions for XML support. -- components: XML messages: 129848 nosy: techtonik priority: normal severity: normal status: open title: xml.etree.E

[issue11367] xml.etree.ElementTree.find(all): docs are wrong

2011-03-01 Thread anatoly techtonik
New submission from anatoly techtonik : ElementTree.find(path) docs say: "Finds the first toplevel element with given tag. Same as getroot().find(path). path is the element to look for." That's not true. path can take the form of "//tag" to find any child element with given tag, not strictly

[issue11366] xml.etree.ElementTree.Element: docs should mention immediate subelement

2011-03-01 Thread anatoly techtonik
anatoly techtonik added the comment: See also http://diveintopython3.org/xml.html#xml-find -- ___ Python tracker ___ ___ Python-bugs-

[issue11366] xml.etree.ElementTree.Element: docs should mention immediate subelement

2011-03-01 Thread anatoly techtonik
Changes by anatoly techtonik : -- assignee: -> docs@python components: +Documentation nosy: +docs@python ___ Python tracker ___ ___ P

[issue11366] xml.etree.ElementTree.Element: docs should mention immediate subelement

2011-03-01 Thread anatoly techtonik
New submission from anatoly techtonik : >From xml.etree.ElementTree.Element docs it is not obvious that find() and >fundall() functions all return immediate children of current element. -- messages: 129845 nosy: techtonik priority: normal severity: normal status: open title: xml.etree.E

[issue10911] cgi: add more tests

2011-03-01 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue9769] PyUnicode_FromFormatV() doesn't handle non-ascii text correctly

2011-03-01 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: -haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue10338] test_lib2to3 failure on buildbot x86 debian parallel 3.x: node is None in find_root()

2011-03-01 Thread STINNER Victor
STINNER Victor added the comment: There is no more such bug on this buildbot. -- resolution: -> out of date status: open -> closed ___ Python tracker ___ __

[issue8967] Create PyErr_GetWindowsMessage() function

2011-03-01 Thread STINNER Victor
STINNER Victor added the comment: This issue doesn't solve any real issue. I prefer to close it because I don't need it anymore. -- resolution: -> invalid status: open -> closed ___ Python tracker ___

[issue8923] Remove unused "errors" argument from _PyUnicode_AsDefaultEncodedString()

2011-03-01 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue8923] Remove unused "errors" argument from _PyUnicode_AsDefaultEncodedString()

2011-03-01 Thread STINNER Victor
STINNER Victor added the comment: Fixed in Python 3.3: r88708 removes errors argument of _PyUnicode_AsDefaultEncodedString(), r88709 caches the result of str.encode(). > replace all uses of _PyUnicode_AsDefaultEncodedString() > with PyUnicode_AsUTF8String() It makes the code more complex beca

[issue11041] On the distutils2 documentation, 'requires-python' shouldn't be documented as *multi

2011-03-01 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +alexis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue11041] On the distutils2 documentation, 'requires-python' shouldn't be documented as *multi

2011-03-01 Thread Éric Araujo
Éric Araujo added the comment: A note about the bug tracker fields: Setting the component to Distutils will automatically get Tarek and me nosy, setting it to Distutils2 will add Alexis as well. Also please set 3rd party for version. Thanks for your contribution! -- nosy: -tarek-zi

[issue11041] On the distutils2 documentation, 'requires-python' shouldn't be documented as *multi

2011-03-01 Thread Éric Araujo
Éric Araujo added the comment: Thanks for spotting this. I agree with your analysis, but not with your patch :) The value is a comma-separated list of version predicates, not a version number. -- stage: -> patch review versions: +3rd party ___ P

[issue11364] Move from distutils.sysconfig to sysconfig in test_osx_env

2011-03-01 Thread Éric Araujo
Éric Araujo added the comment: Thank you. Committed in r88707, not candidate for backport. Will close after a day or two without anyone complaining. -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> pending ___ Py

[issue9769] PyUnicode_FromFormatV() doesn't handle non-ascii text correctly

2011-03-01 Thread STINNER Victor
STINNER Victor added the comment: I still consider that ASCII format strings should be enough for everyone. > > If someone does that, (s)he should open a new issue for that :-) > > Why new issue? Ok, so I just remove myself from the nosy list. -- _

[issue9769] PyUnicode_FromFormatV() doesn't handle non-ascii text correctly

2011-03-01 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- priority: normal -> low ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue9769] PyUnicode_FromFormatV() doesn't handle non-ascii text correctly

2011-03-01 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- assignee: -> belopolsky resolution: fixed -> type: -> feature request versions: +Python 3.3 -Python 3.2 ___ Python tracker ___

[issue10831] PyUnicode_FromFormatV() doesn't support %li, %lli, %zi

2011-03-01 Thread STINNER Victor
STINNER Victor added the comment: Done in Python 3.3 (r88704+r88705). It was easier after fixing #10829. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue10829] PyUnicode_FromFormatV() bugs with "%" and "%%" format strings

2011-03-01 Thread STINNER Victor
STINNER Victor added the comment: Fixed in Python 3.3 (r88702+r88703). I don't really want to backport it to 3.2, 3.1 or 2.7, because the patch is complex, changes a very important function, and the fixed bug (don't crash on invalid format strings) is minor. If you would like the fix into in

[issue11265] asyncore does not check for EAGAIN and EPIPE errno

2011-03-01 Thread Josiah Carlson
Josiah Carlson added the comment: Giampaolo pinged me over email... These additional conditions look good, and should be targeted for 3.3 . Thank you :) -- nosy: +josiahcarlson ___ Python tracker ___

[issue10900] bz2 module fails to multi-stream files completely

2011-03-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Does anyone know the current status of the patch supporting multistream > bz2? 1) patch needs updating for current 3.x (probably not difficult) 2) need to make sure the legal statement is ok with vmware (since apparently they are a bit picky about this) Cl

[issue10900] bz2 module fails to uncompress large files

2011-03-01 Thread Eric Wolf
Eric Wolf added the comment: I just got confirmation that OSM is using pbzip2 to generate these files. So they are multi-stream. At least that gives a final answer but doesn't solve my problem. I saw this: http://bugs.python.org/issue1625 Does anyone know the current status of the patch supp

[issue10911] cgi: add more tests

2011-03-01 Thread STINNER Victor
STINNER Victor added the comment: I commited your patch with minor changes (e.g. I kept f.close()) to Python 3.3 (r88700) and 3.2 (r88701). Thank you Pierre. -- ___ Python tracker

[issue11140] threading.Lock().release() raises _thread.error, not RuntimeError

2011-03-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: _dummy_thread patch committed in r88699, thank you! -- ___ Python tracker ___ ___ Python-bugs-list

[issue8841] GetoptError strings should be localized

2011-03-01 Thread Richard Lowe
Richard Lowe added the comment: Sure, just localizing them in the getopt implementation would be fine. I suggested subclassing to solve the more general problem of the caller being able to tell one getopt error from another, for which it is a pretty common solution. -- _

[issue11246] PyUnicode_FromFormat("%V") decodes the byte string from ISO-8859-1

2011-03-01 Thread STINNER Victor
STINNER Victor added the comment: Fixed in Python 3.3 (r88697) and 3.2 (r88698). Thank you Ray. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue8841] GetoptError strings should be localized

2011-03-01 Thread Éric Araujo
Éric Araujo added the comment: Richard: It’s not common to use subclasses to allow message customization. Would gettext cover your need? -- ___ Python tracker ___ _

[issue8841] GetoptError strings should be localized

2011-03-01 Thread Richard Lowe
Richard Lowe added the comment: I don't find anything lacking about the error messages, I meant that there were no more specific exceptions, or fields in GetoptError to allow the caller to tell what was specifically wrong and provide its own localized messages. So while the defaults are unlo

[issue10900] bz2 module fails to uncompress large files

2011-03-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Perhaps your bz2 files are simply multi-stream files? The bz2 module currently doesn't support them (it only decompresses the first stream); see issue1625 for a patch. I'm not an expert on this, but it seems you can do: $ bzip2 -tvvv foo.bz2 foo.bz2:

[issue8841] GetoptError strings should be localized

2011-03-01 Thread Filip Gruszczyński
Filip Gruszczyński added the comment: I understand I should do something similar to what is done in argparse: from gettext import gettext as _, ngettext ... message = ngettext('conflicting option string: %s', 'conflicting option strings: %s', len(conflict

[issue8841] GetoptError strings should be localized

2011-03-01 Thread Éric Araujo
Éric Araujo added the comment: Filip: The standard way of doing localization is thanks to the gettext module. Richard: Regarding the contents of the error messages, please make specific remarks on what is lacking. -- stage: -> needs patch versions: +Python 3.3 -Python 3.2 __

[issue11365] Integrate Buildroot patches (cross-compilation)

2011-03-01 Thread STINNER Victor
STINNER Victor added the comment: I uploaded the patch to Rietveld for a review: http://codereview.appspot.com/4253047 > Well, the patches should be first ported to 3.3 Ok, I will ask the author if he can do this job. I uploaded the patches for Python 2.7 for a review and to open the discussi

[issue11265] asyncore does not check for EAGAIN and EPIPE errno

2011-03-01 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Ok for EAGAIN. I'm not completely sure about EPIPE on recv() as it is not listed here: http://www.kernel.org/doc/man-pages/online/pages/man2/recv.2.html ...although I think it's ok to treat it as an alias for connection lost anyway. In pyftpdlib I treat bot

[issue10900] bz2 module fails to uncompress large files

2011-03-01 Thread Charles-Francois Natali
Charles-Francois Natali added the comment: > Stupid questions are always worth asking. I did check the MD5 sum earlier > and just checked it again (since I copied the file from one machine to > another): > > ebwolf@ubuntu:/opt$ md5sum /host/full-planet-110115-1800.osm.bz2 > 0e3f81ef0dd415d8f90f1

[issue8841] GetoptError strings should be localized

2011-03-01 Thread Filip Gruszczyński
Filip Gruszczyński added the comment: One more solution. Maybe getopt should expose variables that hold error messages (rather than have them hardcoded in the code), that can be simply substituted by the user before he runs getopt? But I don't really like this one. -- ___

[issue11342] ResourceWarning: unclosed file <_io.TextIOWrapper

2011-03-01 Thread Éric Araujo
Éric Araujo added the comment: Can you try updating your py3k checkout and applying with “patch -p1”? -- ___ Python tracker ___ ___ P

[issue8841] GetoptError strings should be localized

2011-03-01 Thread Filip Gruszczyński
Filip Gruszczyński added the comment: I'd be happy to provide a patch. How about extending getopt api to something like this: >> optlist, args = getopt.getopt(['-b'], 'e', not_recognized="no %s option, >> mate!") GetoptError: no -b option, mate! Or maybe you should provide a dictionary? >>

[issue11365] Integrate Buildroot patches (cross-compilation)

2011-03-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, the patches should be first ported to 3.3 (and need checking that they don't break anything: test suite, etc.). Then, if you want them to be examined separately, it might be better to create a separate issue for each. -- nosy: +pitrou _

[issue11365] Integrate Buildroot patches (cross-compilation)

2011-03-01 Thread STINNER Victor
STINNER Victor added the comment: buildboot.patch: the 12 patches combined into a single patch for Python 2.7. Note: python-2.7-001-support-for-build.patch doesn't apply cleanly on release27-maint. -- keywords: +patch Added file: http://bugs.python.org/file20966/buildroot.patch _

[issue11365] Integrate Buildroot patches (cross-compilation)

2011-03-01 Thread STINNER Victor
STINNER Victor added the comment: buildroot-python-patches.tar.gz: today checkout of the git repository (package/python). -- Added file: http://bugs.python.org/file20965/buildroot-python-patches.tar.gz ___ Python tracker

[issue10900] bz2 module fails to uncompress large files

2011-03-01 Thread Eric Wolf
Eric Wolf added the comment: The only problem with the theory that the file is corrupt is that at least three people have encountered exactly the same problem with three files: http://mail.python.org/pipermail/tutor/2010-June/076343.html Colin was using an OSM planet file from some time last

[issue9276] pickle should support methods

2011-03-01 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: did you see my example above? it passes methods defined in user code. -- ___ Python tracker ___ __

[issue9276] pickle should support methods

2011-03-01 Thread Ram Rachum
Ram Rachum added the comment: Amaury: I don't think ForkingPickler works for unbound methods defined in user code, which are implemented as functions. I think it only works for method-descriptors and wrapper-descriptors. -- ___ Python tracker

[issue11365] Integrate Buildroot patches (cross-compilation)

2011-03-01 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +eric.araujo, tarek stage: -> needs patch type: -> feature request versions: -Python 2.7 ___ Python tracker ___ __

[issue11365] Integrate Buildroot patches (cross-compilation)

2011-03-01 Thread STINNER Victor
New submission from STINNER Victor : "Buildroot: Making Embedded Linux easy" has patches for Python 2.7 to simplify the cross-compilation of Python: http://git.buildroot.net/buildroot/tree/package/python The maintainer, Thomas Petazzoni, told me that the 12 first patches are the most important

[issue11265] asyncore does not check for EAGAIN and EPIPE errno

2011-03-01 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: -> giampaolo.rodola nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mail

[issue11265] asyncore does not check for EAGAIN and EPIPE errno

2011-03-01 Thread Марк Коренберг
Марк Коренберг added the comment: patch updated for handling EPIPE -- title: asyncore does not check for EAGAIN errno -> asyncore does not check for EAGAIN and EPIPE errno Added file: http://bugs.python.org/file20964/z.patch ___ Python tracker

[issue9276] pickle should support methods

2011-03-01 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: > Being able to pickle unbound methods is important. In my project I have > objects that refer to unbound methods. Now these objects are > unpickleable. I can't save them to disk and I can't use the > multiprocessing module on them. That's a big problem.

[issue10900] bz2 module fails to uncompress large files

2011-03-01 Thread Eric Wolf
Eric Wolf added the comment: Stupid questions are always worth asking. I did check the MD5 sum earlier and just checked it again (since I copied the file from one machine to another): ebwolf@ubuntu:/opt$ md5sum /host/full-planet-110115-1800.osm.bz2 0e3f81ef0dd415d8f90f1378666a400c /host/full

[issue10900] bz2 module fails to uncompress large files

2011-03-01 Thread Charles-Francois Natali
Charles-Francois Natali added the comment: After running this under gdb, it turns out that it's actually bzlib's bzRead that's returning a BZ_STREAM_END after only 900k bytes. So it confims what I've been suspecting, i.e. that the file is corrupt (I got the error at exactly the same offset as

[issue9276] pickle should support methods

2011-03-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: > To have a non-hackish patch we need a non-hackish idea. The > `.__parent_class__` idea looks hackish to me, but now that I think > about it, how is it more hackish than a function's `.__module__` > attribute? Not much, agreed. You might want to call it `__nam

[issue9276] pickle should support methods

2011-03-01 Thread Daniel Urban
Changes by Daniel Urban : -- nosy: +durban ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue9276] pickle should support methods

2011-03-01 Thread Ram Rachum
Ram Rachum added the comment: > [...] try to whip up a patch and upload it if it ends up not too hackish. To have a non-hackish patch we need a non-hackish idea. The `.__parent_class__` idea looks hackish to me, but now that I think about it, how is it more hackish than a function's `.__modu

[issue9276] pickle should support methods

2011-03-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Being able to pickle unbound methods is important. In my project I have > objects that refer to unbound methods. Now these objects are > unpickleable. I can't save them to disk and I can't use the > multiprocessing module on them. That's a big problem. Judgi

[issue9276] pickle should support methods

2011-03-01 Thread Ram Rachum
Ram Rachum added the comment: > This isn't worth introducing poorly thought out hacks. Being able to pickle unbound methods is important. In my project I have objects that refer to unbound methods. Now these objects are unpickleable. I can't save them to disk and I can't use the multiprocessi

[issue11364] Move from distutils.sysconfig to sysconfig in test_osx_env

2011-03-01 Thread Ned Deily
Ned Deily added the comment: Go for it. It's highly unlikely to break anything but, if so, redirect the knives my way. I verified that the results from the two sysconfigs are the same. I don't know that there are any buildbots that currently build a framework configuration anyway. --

[issue9276] pickle should support methods

2011-03-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: This isn't worth introducing poorly thought out hacks. -- ___ Python tracker ___ ___ Python-bugs-

[issue11364] Move from distutils.sysconfig to sysconfig in test_osx_env

2011-03-01 Thread Éric Araujo
Éric Araujo added the comment: Thanks for reviewing. Have you had time to test it or shall I just commit and wait for the buildbots master to come at me with a big knife if I break them? -- ___ Python tracker __

[issue11364] Move from distutils.sysconfig to sysconfig in test_osx_env

2011-03-01 Thread Ned Deily
Ned Deily added the comment: LGTM -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/ma

[issue9276] pickle should support methods

2011-03-01 Thread Ram Rachum
Ram Rachum added the comment: Raymond: I don't think this matters. We don't need a canonical `.__parent_class__`, we just need to know where that function is defined so we could find it when unpickling. In the example that you gave, `f` would have a `.__parent_class__` of `None`, and it would

[issue9276] pickle should support methods

2011-03-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: > how about we give every function a `.__parent_class__` > attribute saying which class it is a method of? Won't work. The same function can be used in multiple classes. The function object is independent of the class. This is conceptually no different

[issue11364] Move from distutils.sysconfig to sysconfig in test_osx_env

2011-03-01 Thread Éric Araujo
Éric Araujo added the comment: (I thought auto-nosy was set for Mac.) -- nosy: +ned.deily, ronaldoussoren ___ Python tracker ___ ___

[issue11364] Move from distutils.sysconfig to sysconfig in test_osx_env

2011-03-01 Thread Éric Araujo
New submission from Éric Araujo : I’m working on removing uses of distutils from the standard library. I found only one remaining use of distutils.sysconfig; changing it to use sysconfig should not change the behavior of the test, but I can’t test, so please review attached patch. --

[issue10900] bz2 module fails to uncompress large files

2011-03-01 Thread Charles-Francois Natali
Charles-Francois Natali added the comment: > I've attached the strace output. I was getting an error with the sbrk > parameter, so I left it out. Yeah, sbrk is not a syscall ;-) > Let me know if there's anything else I can provide. Stupid questions: - have you checked the file's md5sum ? - w

[issue11363] Curses - add missing functions to doc

2011-03-01 Thread Sandro Tosi
Sandro Tosi added the comment: On Tue, Mar 1, 2011 at 19:50, Sandro Tosi wrote: > > New submission from Sandro Tosi : > > Following up http://mail.python.org/pipermail/docs/2011-January/002922.html , > I did a check on all the documented functions of curses and those available > from the modu

[issue11326] connect_ex() implementation missing for SSL sockets

2011-03-01 Thread Florian Mayer
Florian Mayer added the comment: Thanks for the fast response and for fixing this. -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue11363] Curses - add missing functions to doc

2011-03-01 Thread Sandro Tosi
New submission from Sandro Tosi : Following up http://mail.python.org/pipermail/docs/2011-January/002922.html , I did a check on all the documented functions of curses and those available from the module, and wrote a patch to include in the doc the missing ones (text is mainly brought by manpa

[issue9276] pickle should support methods

2011-03-01 Thread Ram Rachum
Ram Rachum added the comment: Okay, as an initial suggestion, how about we give every function a `.__parent_class__` attribute saying which class it is a method of? I feel this is a bit of a duct tape solution, but I don't see any other alternative. -- ___

[issue11362] image/webp missing from mimetypes.py

2011-03-01 Thread R. David Murray
R. David Murray added the comment: Is there an IANA registration for this? Any other standards references to it would be helpful, if it doesn't. See issue 10730 for an example of the research that went in to the last mimetypes addition. -- nosy: +r.david.murray versions: -Python 2.

[issue11360] In documentation of getopt, advertise argparse instead of optparse

2011-03-01 Thread Éric Araujo
Éric Araujo added the comment: This was overlooked in r81490, which added the note pointing to argparse. Fixed in r88696 for the py3k branch (I’ll backport later to 3.2 and 2.7), thanks. -- nosy: +eric.araujo resolution: -> fixed stage: -> committed/rejected status: open -> closed ve

[issue10900] bz2 module fails to uncompress large files

2011-03-01 Thread Eric Wolf
Eric Wolf added the comment: I tried the change you suggested. It still fails but now at 572,320 bytes instead of 900,000. I'm not sure why the difference in bytes read. I'll explore this more in a bit. I also converted the BZ2 to GZ and used the gzip module. It's failing after reading 46628

[issue11362] image/webp missing from mimetypes.py

2011-03-01 Thread Richard Rabbat
New submission from Richard Rabbat : image/webp is missing from the mimetypes.py list of valid mimetypes. webp is an open-source image format and uses vp8 as a codec. -- components: Library (Lib) messages: 129786 nosy: Richard.Rabbat priority: normal severity: normal status: open title:

[issue11322] encoding package's normalize_encoding() function is too slow

2011-03-01 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue11357] Add support for PEP 381 -- Mirror Authenticity

2011-03-01 Thread Kelsey
Kelsey added the comment: Thanks for the feedback! I agree with the issues raised and will rework the patch to address them. -- ___ Python tracker ___ _

[issue11357] Add support for PEP 381 -- Mirror Authenticity

2011-03-01 Thread Alexis Metaireau
Alexis Metaireau added the comment: Antoine Pitrou on #python-dev made interesting remarks about the validation: 16:19 < __ap__> hmm the way the patch does validation is bogus 16:22 < __ap__> because it opens the URL a first time, validates it, then opens it a second time with urlopen() 16:22 <

[issue11357] Add support for PEP 381 -- Mirror Authenticity

2011-03-01 Thread Alexis Metaireau
Alexis Metaireau added the comment: Some nitpicks: In mirrors.get_server_key, the documentation is not up to date with your last changes (raises an error if there is a problem instead of returning None) You do use the name 'package' while talking about distributions or projects. Please be su

[issue11358] Please replace the use of pickle in multiprocessing with json.

2011-03-01 Thread david
david added the comment: Fair enough. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue11358] Please replace the use of pickle in multiprocessing with json.

2011-03-01 Thread Jesse Noller
Jesse Noller added the comment: I concur with RDM. We need complex data structures, and switching to JSON represents a non zero amount of work, isn't as fast and pickle works well. If you want to use JSON as a transport, I would do custom subclassing. -- _

[issue11358] Please replace the use of pickle in multiprocessing with json.

2011-03-01 Thread david
david added the comment: Um ok. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mail

[issue11358] Please replace the use of pickle in multiprocessing with json.

2011-03-01 Thread R. David Murray
R. David Murray added the comment: This would increase the overhead to no purpose, as far as I can see. Ask or Jesse can reopen this if they think it is worth considering. -- nosy: +asksol, jnoller, r.david.murray resolution: -> rejected status: open -> closed ___

[issue11359] Please replace the use of pickle in subprocess with json.

2011-03-01 Thread david
david added the comment: As the child will have already have exec'ed there will be no exception raised --> so the parent shouldn't pickle.load from stderror... So unless there is a path where the parent will end up pickle.load ing the exception that case I put before is not possible. ---

[issue11359] Please replace the use of pickle in subprocess with json.

2011-03-01 Thread david
david added the comment: Actually I don't think that is possible mmm. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue11359] Please replace the use of pickle in subprocess with json.

2011-03-01 Thread david
david added the comment: >From my reading of the code it may be possible if I execute a command via >Popen that the child had output that went to stderror, because stderror is >associated with the fd of errpipe_write, and it was not to be 'trusted' (lets >say I ran it as another user) then it

[issue11351] Mac OS X os.sendfile()

2011-03-01 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: I agree with that. > Antoine Pitrou added the comment: > If you are asking your editor to simply edit test, it should work fine. -- ___ Python tracker __

[issue11361] suggestion for os.kill(pid,CTRL_C_EVENT)

2011-03-01 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +gregory.p.smith versions: +Python 3.2, Python 3.3 ___ Python tracker ___ ___ Python-bugs-list ma

[issue11349] _pickle should implement the module finalisation protocol

2011-03-01 Thread Benjamin Peterson
Benjamin Peterson added the comment: http://mail.python.org/pipermail/python-dev/2009-October/093057.html 2011/3/1 Antoine Pitrou : > > Antoine Pitrou added the comment: > > Not sure why #812369 is bogged down. The patch simply needs updating for 3.x. > > -- > nosy: +pitrou > > ___

  1   2   >