[issue11084] Serialization of decimal.Decimal to XML-RPC

2011-01-31 Thread GDR!
GDR! added the comment: Also, I think that should be represented as Decimal when unmarshalling XML-RPC data, because the standard doesn't give any limits on size on precision of data, and the only representation it allows is the one with decimal point, making it an excellent fit for Decimal.

[issue11085] expose _abcoll as collections.abc

2011-01-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Why not just put them in the 'abc' namespace? Two reasons: * There are lots of ABCs scattered throughout the standard libary that aren't collections ABCs (the importlib ABCs and IO ABCs for example). * Guido viewed collections ABCs as tightly associated w

[issue11086] add lib2to3/__main__.py

2011-01-31 Thread Brett Cannon
Brett Cannon added the comment: The attached patch adds lib2to3.__main__ and tweaks 2to3. -- keywords: +patch Added file: http://bugs.python.org/file20636/2to3_main.diff ___ Python tracker

[issue11084] Serialization of decimal.Decimal to XML-RPC

2011-01-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: >>> x = decimal.Decimal('9.11') >>> c.dumps(x,), 'whatever') "\n\nwhatever\n\n\n9.11\n\n\n\n" That's what I though you meant and I don't think it is wise. The RPC spec is all about interoperability. The tag

[issue10512] regrtest ResourceWarning - unclosed sockets and files

2011-01-31 Thread Nadeem Vawda
Nadeem Vawda added the comment: No objections here. The other remaining leaks that I am aware of are covered by issue10883. -- ___ Python tracker ___ __

[issue11084] Serialization of decimal.Decimal to XML-RPC

2011-01-31 Thread GDR!
GDR! added the comment: While it would be allowed by the spec in the quotation I pasted in the original post, I understand your point, it makes sense. I still think, however, that it should be available at least as an option. There already is allow_none parameter available when marshaling. A

[issue11085] expose _abcoll as collections.abc

2011-01-31 Thread R. David Murray
R. David Murray added the comment: Hmm. OK, so it is just Callable that is the odd man out. But in that case, shouldn't the pattern be adopted by the other modules that define abcs as well? And if the distinction isn't sharp enough in those other modules to justify that, then I question whe

[issue8275] callback function on win64 results in bad behavior. mem corruption?

2011-01-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, committed in r88284 (3.2), r88285 (3.1) and r88286 (2.7). Thank you! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue11086] add lib2to3/__main__.py

2011-01-31 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue11086] add lib2to3/__main__.py

2011-01-31 Thread Benjamin Peterson
Benjamin Peterson added the comment: Uh, I must say I find typing "lib2to3" quite ugly. -- ___ Python tracker ___ ___ Python-bugs-lis

[issue11086] add lib2to3/__main__.py

2011-01-31 Thread Brett Cannon
Brett Cannon added the comment: I don't find it ideal either, but ``python -m lib2to3`` gives complete control over which VM is used since it's specified right on the command line. I don't expect this to become the common way to invoke 2to3, just **a** way to invoke it. -- _

[issue11086] add lib2to3/__main__.py

2011-01-31 Thread Brett Cannon
Changes by Brett Cannon : -- stage: needs patch -> commit review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11016] Add S_ISDOOR to the stat module

2011-01-31 Thread Martin v . Löwis
Martin v. Löwis added the comment: Am 31.01.2011 12:46, schrieb Jesús Cea Avión: > > Jesús Cea Avión added the comment: > > Martin, I guess "stat" deprecation could require a few years and it > would be an extra incompatibility burden between 2.7 and 3.x. > > Beside the symbolic constants, w

[issue11016] Add S_ISDOOR to the stat module

2011-01-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Apparently, contributor have the illusion that the values they put > into the file are somehow standardized, when they are actually not. Are there actual bugs with that or is it merely a theoretical concern? -- __

[issue11016] Add S_ISDOOR to the stat module

2011-01-31 Thread Martin v . Löwis
Martin v. Löwis added the comment: >> Apparently, contributor have the illusion that the values they put >> into the file are somehow standardized, when they are actually not. > > Are there actual bugs with that or is it merely a theoretical concern? Neither, nor (i.e. it's in the middle). I'm

[issue3080] Full unicode import system

2011-01-31 Thread STINNER Victor
STINNER Victor added the comment: See also #6011. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue10614] ZipFile: add a filename_encoding argument

2011-01-31 Thread STINNER Victor
Changes by STINNER Victor : -- title: ZipFile and CP932 encoding -> ZipFile: add a filename_encoding argument ___ Python tracker ___ _

[issue11022] locale.setlocale() doesn't change I/O codec, os.environ does

2011-01-31 Thread STINNER Victor
STINNER Victor added the comment: Attached patch replaces locale.getpreferredencoding() by locale.getpreferredencoding(False) in _io.TextIOWrapper and _pyio.TextIOWrapper. -- keywords: +patch Added file: http://bugs.python.org/file20637/io_dont_set_locale.patch ___

[issue11022] locale.setlocale() doesn't change I/O codec, os.environ does

2011-01-31 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue9884] The 4th parameter of method always None or 0 on x64 Windows.

2011-01-31 Thread Owen
Owen added the comment: Thanks, this issue has been fixed. :-) fixing revisions: r88284 (3.2), r88285 (3.1) and r88286 (2.7) -- resolution: -> fixed status: open -> closed ___ Python tracker __

[issue11075] Turtle crash with IDLE on Mac OS X 10.6

2011-01-31 Thread Alex McNerney
Alex McNerney added the comment: It may be because the program that I am trying to run automatically exits, I do not know yet how to keep a turtle program running (waiting for input). The only way I know so far is to use the function "exitonclick()," but when using that, my I cannot use any o

[issue11075] Turtle crash with IDLE on Mac OS X 10.6

2011-01-31 Thread R. David Murray
R. David Murray added the comment: Well, the bug tracker isn't really the place to get help on using Python. I would suggest posting to python-list, you are more likely to find people with the time to help you there. You should also take a look at the Turtle demo programs, I'm pretty sure y

[issue11022] locale.setlocale() doesn't change I/O codec, os.environ does

2011-01-31 Thread R. David Murray
R. David Murray added the comment: Steffan: I'm not sure what your post means, but I think there is a chance you might be confused about something. Python should *never* change the locale from the C locale. A Python *program* can do so, by calling setlocale, but Python itself should not. T

[issue11086] add lib2to3/__main__.py

2011-01-31 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: It is unfortunate that the cute name for the tool is not valid as a module name. How about renaming "lib2to3" to "to3". The offending leading digit is strictly redundant (there is no 1to3 after all). -- nosy: +belopolsky _

[issue1215] Python hang when catching a segfault

2011-01-31 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: The consensus is that this is not a crash (and not even a bug). I am not sure what is the proper type for doc enhancement, but is certainly should not show up in a search for crashers. -- components: -Interpreter Core nosy: +belopolsky type: c

[issue886488] popen2 on Windows does not check _fdopen return value

2011-01-31 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- stage: unit test needed -> needs patch title: WinPython 2.3.3 crashes using popen2 to spawn lots of child -> popen2 on Windows does not check _fdopen return value ___ Python tracker

[issue7074] Turtle module crashes python

2011-01-31 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I can reproduce the crash on OSX. After ~ 100 keystrokes, I get the following diagnostics: Exception in Tkinter callback Traceback (most recent call last): File "/Users/sasha/Work/python-svn/py3k-commit/Lib/tkinter/__init__.py", line 1399, in __call_

[issue11086] add lib2to3/__main__.py

2011-01-31 Thread Brett Cannon
Brett Cannon added the comment: Would needlessly break code for such a minor perk. I mean I doubt very many people will use this feature if it goes in. It's just rather nice for those who do want the feature to exist in the first place. -- ___ Pyth

[issue7074] Turtle module crashes python

2011-01-31 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: This looks like a duplicate of issue11029. It is not safe to call graphic primitives in event callbacks. A workaround is described at . -- resolution: -> duplicate stage: -> committed/rejected stat

[issue7330] PyUnicode_FromFormat segfault

2011-01-31 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- components: +Unicode nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue7574] PyUnicode_FromFormat broken and not documented for 2.x

2011-01-31 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Documentation part of this issue will be addressed in #10435. -- nosy: +belopolsky resolution: -> duplicate stage: needs patch -> committed/rejected superseder: -> PyUnicode_FromFormat segfault ___ Python tra

[issue11087] Speeding up the interpreter with a few lines of code

2011-01-31 Thread Jurjen N.E. Bos
New submission from Jurjen N.E. Bos : I found a very simple way to improve the speed of CPython a few percent on the most common platforms (i.e. x86), at the cost of only a few lines of code in ceval.c The only problem is that I don't have any experience in patch submission. Here are the sugge

<    1   2