[issue4947] sys.stdout fails to use default encoding as advertised

2009-07-28 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4947 ___ ___ Python-bugs-list

[issue6590] Py3K can't set the browser's character encoding! (CGI)

2009-07-28 Thread Hakan
New submission from Hakan physic...@gmail.com: Hi, I'm new to web programming with Python. In Python2k, the special # -*- coding: cp1254 -*- code sets the character encoding. It works in the internet browsers too and sets the browser's character encoding. That was really good. But in Py3k, that

[issue6591] add reference to fcntl.ioctl in the socket module

2009-07-28 Thread Gabriel Genellina
New submission from Gabriel Genellina gagsl-...@yahoo.com.ar: socket.ioctl says it is Windows specific, and people may think there is no way to use ioctl with sockets in non-Windows platforms (see http://groups.google.com/group/comp.lang.python/browse_thread/ thread/246f4522ad215d74 ) This doc

[issue5808] Subprocess.getstatusoutput Fails Executing 'dir' Command on Windows

2009-07-28 Thread sorin
sorin sorin.sbar...@gmail.com added the comment: Also the same issue does apply for command.getstatusoutput in Python 2.6. Maybe this bug should be reopened and solved by adding a platform check in the module. Also the documentation does not specify what would be the right multiplatform

[issue6592] otparse: processing variable number of short option arguments

2009-07-28 Thread tanvalley
Changes by tanvalley tanval...@hotmail.com: -- components: Library (Lib) files: optparse-feature nosy: tanvalley severity: normal status: open title: otparse: processing variable number of short option arguments type: feature request versions: Python 2.5 Added file:

[issue6590] Py3K can't set the browser's character encoding! (CGI)

2009-07-28 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: This looks more like a general question than a bug report. You should probably ask on comp.lang.python or #pyt...@irc.freenode.net. The # -*- coding: cp1254 -*- only specifies the encoding used to save the source file and it's not related

[issue4947] sys.stdout fails to use default encoding as advertised

2009-07-28 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4947 ___ ___ Python-bugs-list

[issue6236] os.popen causes illegal seek on AIX in Python 3.1rc

2009-07-28 Thread nestor
nestor nestornis...@gmail.com added the comment: Python 3.1 (r31:73572, Jul 9 2009, 16:28:28) [C] on aix5 Type help, copyright, credits or license for more information. import sys sys.stdout.seekable() True I can access the machine only through ssh. --

[issue6548] cmath documentation misleading: suggests existence of real() and imag() functions

2009-07-28 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Thanks, Georg! Committed, r74230 (trunk), r74231 (release26-maint), r74232 (py3k), r74233 (release31-maint). The latter three revisions include the merge of r74184 from trunk. -- resolution: - fixed stage: - committed/rejected

[issue6590] Py3K can't set the browser's character encoding! (CGI)

2009-07-28 Thread Hakan
Hakan physic...@gmail.com added the comment: Thanks for your reply. I said, I'm new to web programming. Now I add Content-type: text/html; charset=ISO-8859-9... :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6590

[issue6593] Documentation: gettext install link

2009-07-28 Thread Egon Frerich
New submission from Egon Frerich e.frer...@nord-com.net: The description of gettext.install in 23.1.2 (Class-based API) contains two links to install() which should go to this function in The NullTranslations class 23.1.2.1 but they don't. -- assignee: georg.brandl components:

[issue5808] Subprocess.getstatusoutput Fails Executing 'dir' Command on Windows

2009-07-28 Thread Senthil
Senthil orsent...@gmail.com added the comment: sorin: You meant the commands module, correct? It is well documented in the commands reference: http://docs.python.org/library/commands.html * It is applicable to unix only. * the getstatusoutput is moved to subprocess in 3x. -- nosy:

[issue6561] Regex '\d' should not match unicode category 'No'.

2009-07-28 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: [ezio.melotti] I suggest something like: Matches the decimal digits ``[0-9]`` and all the characters that belong to the Unicode category Nd (Number, Decimal Digit). Hmm. I don't like this because it suggests (to me) that the characters

[issue5808] Subprocess.getstatusoutput Fails Executing 'dir' Command on Windows

2009-07-28 Thread sorin
sorin sorin.sbar...@gmail.com added the comment: If I made a patch that will raise an error if you include commands module under Windows will you include it - this will safe others time. -- ___ Python tracker rep...@bugs.python.org

[issue6550] asyncore incorrect failure when connection is refused and using async_chat channel

2009-07-28 Thread Nir Soffer
Nir Soffer nir...@gmail.com added the comment: I have a big problem with asyncore_fix_refused.patch - it assumes that a dispatcher has a socket attribute, which can be used with t getsockopt(). This is true in the default dispatcher class implemented in asyncore, but wont work with

[issue6594] json C serializer performance tied to structure depth on some systems

2009-07-28 Thread Shawn
New submission from Shawn swal...@opensolaris.org: The json serializer's performance (when using the C speedups) appears to be tied to the depth of the structure being serialized on some systems. In particular, dict structure that are more than a few levels deep, especially when they content

[issue6550] asyncore incorrect failure when connection is refused and using async_chat channel

2009-07-28 Thread Josiah Carlson
Josiah Carlson josiahcarl...@users.sourceforge.net added the comment: Firstly, it expects that handle_expt_event() is for handling exceptional conditions. This is not the case. handle_expt_event() is meant for handling OOB or priority data coming across a socket. FTP and some other

[issue6594] json C serializer performance tied to structure depth on some systems

2009-07-28 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- priority: - low ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6594 ___ ___ Python-bugs-list mailing

[issue5993] python produces zombie in webbrowser.open

2009-07-28 Thread Eivind Tagseth
Eivind Tagseth eivi...@multinet.no added the comment: The problem seems to be that there are no way to wait() for browser processes that have died, and there is no mention of needing to wait() in the documentation. In my case, webbrowser finds my gnome-setting for the http-url handler and sets

[issue6561] Regex '\d' should not match unicode category 'No'.

2009-07-28 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Backported to trunk in r74240. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6561 ___

[issue6511] zipfile: Invalid argument when opening zero-sized files

2009-07-28 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Fixed in r74245. Thanks for the report! -- nosy: +amaury.forgeotdarc resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6511

[issue1811] True division of integers could be more accurate

2009-07-28 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: An example of a case that's almost 3.5 ulps out (Python 2.6): Python 2.6.2 (r262:71600, Jul 8 2009, 09:56:31) [GCC 4.0.1 (Apple Inc. build 5490)] on darwin Type help, copyright, credits or license for more information. from __future__

[issue6511] zipfile: Invalid argument when opening zero-sized files

2009-07-28 Thread Sridhar Ratnakumar
Sridhar Ratnakumar sridh...@activestate.com added the comment: Amaury, shouldn't this also be merged to the py3k branch? (I am not aware of any Python commit policies so just asking) -- ___ Python tracker rep...@bugs.python.org

[issue1466065] base64 module ignores non-alphabet characters

2009-07-28 Thread Neil Tallim
Neil Tallim red.hamst...@gmail.com added the comment: Attached a patch that modifies Modules/binascii.c to raise a TypeError on any unrecognized base64 input, rather than failing silently. Also includes unit tests. Patch built against Python 2.7, r74246. TypeError was preserved over

[issue1466065] base64 module ignores non-alphabet characters

2009-07-28 Thread Neil Tallim
Neil Tallim red.hamst...@gmail.com added the comment: Attached a patch that modifies Modules/binascii.c to raise a TypeError on any unrecognized base64 input, rather than failing silently. Also includes unit tests. Patch built against Python 3.2, r74246. TypeError was preserved over

[issue1466065] base64 module ignores non-alphabet characters

2009-07-28 Thread Neil Tallim
Neil Tallim red.hamst...@gmail.com added the comment: Attached a patch that modifies Lib/base64.py to raise a TypeError on any unrecognized base64 input, rather than failing silently. Also includes unit tests. Patch built against Python 2.7, r74246. -- Added file:

[issue1466065] base64 module ignores non-alphabet characters

2009-07-28 Thread Neil Tallim
Neil Tallim red.hamst...@gmail.com added the comment: Attached a patch that modifies Lib/base64.py to raise a TypeError on any unrecognized base64 input, rather than continuing silently. Also includes unit tests. Patch built against Python 3.2, r74246. Correction to previous text: base64

[issue1512791] module wave does no rounding

2009-07-28 Thread Neil Tallim
Neil Tallim red.hamst...@gmail.com added the comment: Attached a patch with a unit test and solution for this problem. Patch built against Python 2.7, r74246. Note: It may make more sense to just have wave.setframerate() assert that it is being fed an integer, and that's a simple fix that

[issue1512791] module wave does no rounding

2009-07-28 Thread Neil Tallim
Neil Tallim red.hamst...@gmail.com added the comment: Attached a patch with a unit test and solution for this problem. Patch built against Python 3.2, r74246. Note: with Python 3.2, an error was thrown if the input value wasn't an integer because a deprecated struct-related cast was removed.

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2009-07-28 Thread Matthew Barnett
Matthew Barnett pyt...@mrabarnett.plus.com added the comment: issue2636-20090729.zip contains regex.py, _regex.h, _regex.c which will work with Python 2.5 as well as Python 2.6, and also 2 builds of _regex.pyd (for Python 2.5 and Python 2.6 on Windows). This version supports accessing the