[issue10198] wave module writes corrupt wav file for zero-length writeframes

2010-11-04 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I asked that because I didn’t see the fix backported :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10198 ___

[issue6081] str.format_map()

2010-11-04 Thread Eric Smith
Changes by Eric Smith e...@trueblade.com: -- title: str.format_from_mapping() - str.format_map() ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6081 ___

[issue6081] str.format_map()

2010-11-04 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: Committed to 3.2 in r86170. -- stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6081

[issue10313] Reassure user: test_os BytesWarning is OK

2010-11-04 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Can you give the exact command line you are using to run it, and the OS and version, and perhaps a printenv? I can't reproduce it in 3.1 or 3.2a3. -- ___ Python tracker rep...@bugs.python.org

[issue10313] Reassure user: test_os BytesWarning is OK

2010-11-04 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Running it with -E and seeing if that changes the behavior would also be useful. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10313

[issue10198] wave module writes corrupt wav file for zero-length writeframes

2010-11-04 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I always to the backports batched for these minor and docs fixes. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10198 ___

[issue10298] zipfile: incorrect comment size will prevent extracting

2010-11-04 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- keywords: +needs review nosy: +alanmcintyre stage: - patch review versions: +Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10298

[issue10198] wave module writes corrupt wav file for zero-length writeframes

2010-11-04 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Perfect, sorry for doubting you ;) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10198 ___ ___

[issue3699] test_bigaddrspace broken

2010-11-04 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com added the comment: The attached patch implements the same tests of byte for string objects. -- assignee: - sandro.tosi stage: - patch review Added file: http://bugs.python.org/file19497/issue3699-py3k-v2.patch ___

[issue1926] NNTPS support in nntplib

2010-11-04 Thread Julien ÉLIE
Julien ÉLIE jul...@trigofacile.com added the comment: Hi Steven, I also don't understand why START_TLS and AUTHINFO need to change how the module is interfaced to (separating log in/authentication, etc) Because once you have used AUTHINFO, STARTTLS is no longer a valid command in a session.

[issue10243] Packaged Pythons

2010-11-04 Thread Martin v . Löwis
Changes by Martin v. Löwis mar...@v.loewis.de: -- resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10243 ___

[issue960325] --require feature option for configure/make (fail if building not possible)

2010-11-04 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: I am closing this as some combination of wrong, inapplicable, out-of-date, and postponed. 1. In 3.1, ssl *is* documented as optional in the sense of dependent on an external library. This module uses the OpenSSL library. It is available on

[issue9611] FileIO not 64-bit safe under Windows

2010-11-04 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I propose a different solution: On Windows, instead of calling write(), we call WriteFile directly. We try to faithfully follow the CRT implementation as much as possible, knowing that what we write to actually is a binary file (in

[issue9611] FileIO not 64-bit safe under Windows

2010-11-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I propose a different solution: On Windows, instead of calling write(), we call WriteFile directly. If I'm not mistaken, WriteFile takes the length as a DWORD, which is still 32 bits under Win64. --

[issue10315] smtplib.SMTP_SSL new in 2.6

2010-11-04 Thread Henning Hraban Ramm
New submission from Henning Hraban Ramm hra...@fiee.net: The docs tell us that smtplib.SMTP_SSL was only changed in 2.6, but it is new (i.e. it didn't exist in 2.5.x). -- assignee: d...@python components: Documentation messages: 120432 nosy: d...@python, hraban priority: normal

[issue10243] Packaged Pythons

2010-11-04 Thread Max Skaller
Max Skaller max.skal...@gmail.com added the comment: On Thu, Nov 4, 2010 at 5:19 PM, Ned Deily rep...@bugs.python.org wrote: Ned Deily n...@acm.org added the comment: For what it's worth, the python.org installers for Mac OS X do include a libpython shared library. As of Python 2.7 (and

[issue9611] FileIO not 64-bit safe under Windows

2010-11-04 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: If I'm not mistaken, WriteFile takes the length as a DWORD, which is still 32 bits under Win64. Oops, ignore me, then... I agree that clamping is fine, assuming the buffering layer takes that into account. --

[issue10243] Packaged Pythons

2010-11-04 Thread Martin v . Löwis
Changes by Martin v. Löwis mar...@v.loewis.de: Removed file: http://bugs.python.org/file19498/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10243 ___

[issue10293] PyMemoryView object has obsolete members

2010-11-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Well, there's this strange-looking thing in PyMemoryView_GetContiguous: if (buffertype == PyBUF_SHADOW) { /* return a shadowed memory-view object */ view-buf = dest; mem-base = PyTuple_Pack(2, obj, bytes); ... but I

[issue10293] PyMemoryView object has obsolete members

2010-11-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Done in r86174. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10293 ___

[issue3699] test_bigaddrspace broken

2010-11-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I've made cosmetic changes and applied in r86175 (3.2) and r86176 (3.1). Thank you! -- priority: high - normal resolution: - fixed stage: patch review - committed/rejected status: open - closed ___

[issue10316] tkFileDialog.askopenfilenames scrambling multiple file selection

2010-11-04 Thread Peter Hall
New submission from Peter Hall peter.f.h...@nasa.gov: I am running the following : Linux Centos version 2.6.18 Python version 2.5 tk version 8.5 tcl version 8.5 I have a Python GUI program (importing Tkinter and tkFileDialog) which prompts the user to select a (one to many) list of file

[issue10316] tkFileDialog.askopenfilenames scrambling multiple file selection

2010-11-04 Thread Peter Hall
Changes by Peter Hall peter.f.h...@nasa.gov: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10316 ___ ___ Python-bugs-list

[issue10313] Reassure user: test_os BytesWarning is OK

2010-11-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I guess you're not seeing them because Victor silenced them a couple of days ago in r85902. Hallvard, if you update your py3k working copy, do these warnings disappear? -- nosy: +pitrou ___ Python

[issue10243] Packaged Pythons

2010-11-04 Thread Ned Deily
Ned Deily n...@acm.org added the comment: It's called Python because that's the way frameworks on OS X are generally structured: the shared library file has the same name as the framework. The Apple developer docs have lots of information on frameworks. Prior to 2.7 and the upcoming 3.2

[issue10302] Add class-functions to hash many small objects with hashlib

2010-11-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: This sounds dangerously like a micro-optimization to me, and I'm not sure an additional API is ok for that. -- nosy: +gregory.p.smith, pitrou ___ Python tracker rep...@bugs.python.org

[issue10313] Reassure user: test_os BytesWarning is OK

2010-11-04 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Ah, then this report is probably out of date. I just realized that I ran my 3.2a3 test incorrectly, so my report that I didn't see them there is invalid. -- ___ Python tracker

[issue9611] FileIO not 64-bit safe under Windows

2010-11-04 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: On a second thought... is there another example where a *blocking* stream does not write all the data without raising an exception? -- ___ Python tracker rep...@bugs.python.org

[issue9611] FileIO not 64-bit safe under Windows

2010-11-04 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: On a second thought... is there another example where a *blocking* stream does not write all the data without raising an exception? Why do you think this would be somehow an example for a blocking stream that does not write all data

[issue9611] FileIO not 64-bit safe under Windows

2010-11-04 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Why do you think this would be somehow an example for a blocking stream that does not write all data without raising an exception? Well, that's what clamping means, isn't it? -- ___ Python

[issue9611] FileIO not 64-bit safe under Windows

2010-11-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: On a second thought... is there another example where a *blocking* stream does not write all the data without raising an exception? It can happen with pipes or sockets, if some buffer can only store part of the data. Or any regular stream if a

[issue10283] New parameter for an NNTP newsgroup pattern in LIST ACTIVE

2010-11-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: That's a fine addition, I've committed it in r86177. -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue9611] FileIO not 64-bit safe under Windows

2010-11-04 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Am 04.11.2010 22:28, schrieb Amaury Forgeot d'Arc: Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Why do you think this would be somehow an example for a blocking stream that does not write all data without raising an

[issue10279] test_gc failure on Windows x64

2010-11-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: %Id is actually the expansion of PY_FORMAT_SIZE_T. Include/pyport.h says: /* PY_FORMAT_SIZE_T is a platform-specific modifier for use in a printf * format to convert an argument with the width of a size_t or Py_ssize_t. * C99 introduced z for

[issue10302] Add class-functions to hash many small objects with hashlib

2010-11-04 Thread Lukas Lueg
Lukas Lueg lukas.l...@gmail.com added the comment: Thanks for your comment; it is a very valid point to consider. However, as a vector-based implementation is roughly three to four times faster than what the current API can provide by design (reduced overhead and GIL-relaxation not

[issue9675] segfault: PyDict_SetItem: Assertion `value' failed.

2010-11-04 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: Move the CObject use to a py3k warning instead of an error in r86178. I still need to solve improve error management in bsddb. This bug remains open for a while. -- ___ Python tracker

[issue10279] test_gc failure on Windows x64

2010-11-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Well, the issue seems to be simpler. This piece of code calls PyErr_WarnFormat, which doesn't use the platform's printf but Python's own format codes as documented in http://docs.python.org/dev/c-api/unicode.html#PyUnicode_FromFormat --

[issue10279] test_gc failure on Windows x64

2010-11-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Could you check the following patch works for you? -- assignee: - brian.curtin keywords: +patch Added file: http://bugs.python.org/file19499/gcprint.patch ___ Python tracker rep...@bugs.python.org

[issue7061] Improve 24.5. turtle doc

2010-11-04 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: I am attaching a patch that adds a hack that allows to run turtle doctests using turtle.run_doctests() function. Running this function has revealed numerous mistakes in doctests that are corrected in the patch. The

[issue10302] Add class-functions to hash many small objects with hashlib

2010-11-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Thanks for your comment; it is a very valid point to consider. However, as a vector-based implementation is roughly three to four times faster than what the current API can provide by design (reduced overhead and GIL-relaxation not included),

[issue6305] islice doesn't accept large stop values

2010-11-04 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: In 3.1.2, range handles large numbers. list(range(10, 500, 100)) [10, 110, 210, 310, 410] # those are all billions This means that the 'equivalent' code in the doc will work.

[issue10302] Add class-functions to hash many small objects with hashlib

2010-11-04 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: I concur with Overlord Antoine ;-) The API of hashfunc *files looks like something that should be done at the command line in bash. For the most part, I think users are better-off using normal Python loops so they can do

[issue10279] test_gc failure on Windows x64

2010-11-04 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: Works for me. -- assignee: brian.curtin - pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10279 ___

[issue5412] extend configparser to support mapping access(__*item__)

2010-11-04 Thread Łukasz Langa
Changes by Łukasz Langa luk...@langa.pl: Removed file: http://bugs.python.org/file19010/issue5412.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5412 ___

[issue5412] extend configparser to support mapping access(__*item__)

2010-11-04 Thread Łukasz Langa
Łukasz Langa luk...@langa.pl added the comment: Patch updated yet again: * optional .get() arguments are now keyword only. This is a bit backwards incompatible but: * protects users of mapping protocol access from invoking get() as if the last positional argument was the `fallback`

[issue10279] test_gc failure on Windows x64

2010-11-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Committed in r86179. -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10279

[issue10316] tkFileDialog.askopenfilenames scrambling multiple file selection

2010-11-04 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Works for me on a current Debian Linux system with a Debian Python 2.5.5 + Tcl/Tk 8.5 and with Python 2.6.1 + Tcl/Tk 8.5 on OS X 10.6 and with Python 2.7 + Tcl/Tk 8.4 on OS X 10.6. In all cases, the tkFileDialog.askopenfilenames returns a tuple of

[issue9675] segfault: PyDict_SetItem: Assertion `value' failed.

2010-11-04 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: Better bsddb error control. Please, review. [j...@babylon5 release27-maint]$ ./python Python 2.7.0+ (release27-maint:86176:86178M, Nov 5 2010, 00:30:) [GCC 4.5.1] on sunos5 Type help, copyright, credits or license for more information. import

[issue9675] segfault: PyDict_SetItem: Assertion `value' failed.

2010-11-04 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- assignee: - jcea resolution: - accepted stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9675

[issue1926] NNTPS support in nntplib

2010-11-04 Thread StevenJ
StevenJ sjohn...@sakuraindustries.com added the comment: Hi Julien, I also don't understand why START_TLS and AUTHINFO need to change how the module is interfaced to (separating log in/authentication, etc) Because once you have used AUTHINFO, STARTTLS is no longer a valid command in a

[issue1926] NNTPS support in nntplib

2010-11-04 Thread Brian Curtin
Changes by Brian Curtin cur...@acm.org: -- nosy: -brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1926 ___ ___ Python-bugs-list

[issue1702036] Make Turtle thread-safe so it does not crash

2010-11-04 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: I think threading is a red herring here. The issue is really a duplicate of #6639. -- nosy: +belopolsky status: open - pending superseder: - turtle: _tkinter.TclError: invalid command name .10170160

[issue1702036] Make Turtle thread-safe so it does not crash

2010-11-04 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On a closer look at the first post, I see that there are two parts to the issue. The first is indeed a duplicate of #6639, but the second is thread related. I am attaching the OP's code in a script file for

[issue10317] Add TurtleShell to turtle

2010-11-04 Thread Alexander Belopolsky
New submission from Alexander Belopolsky belopol...@users.sourceforge.net: In r84640, Raymond added TurtleShell to the cmd module documentation as an example of a simple interpreter that can be written using that module. I propose adding this code to turtle.py and make it runnable as python

[issue10318] make altinstall installs many files with incorrect shebangs

2010-11-04 Thread Allan McRae
New submission from Allan McRae al...@archlinux.org: The following files are incorrectly installed with a #!/usr/bin/env python shebang when using make altinstall: usr/lib/python2.7/base64.py usr/lib/python2.7/bsddb/dbshelve.py usr/lib/python2.7/bsddb/test/test_dbtables.py

[issue10293] PyMemoryView object has obsolete members

2010-11-04 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Ah, the SHADOW member... Weird. Anyway, I have been hacking around in the memory view. One thing that it does, and makes me uncomfortable since I think it is breaking the new buffer protocol, is to a) PyObject_GetBuffer() b)

[issue10319] SocketServer.TCPServer truncates responses on close (in some situations)

2010-11-04 Thread jrodman2
New submission from jrodman2 jrod...@pythontracker.spamportal.net: Behavior exists in at least Python 2.5 through 3.1. The issue regards the socketserver's handling of the tcp sockets it works with. On object reaping, the sockets are properly closed (in some versions explicitly, in others

<    1   2   3