[issue17722] 'round' function doesn't honour a descriptor __round__

2013-04-13 Thread Mark Dickinson
Mark Dickinson added the comment: No problem. Do you usually keep patches in your WC? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17722 ___

[issue17722] 'round' function doesn't honour a descriptor __round__

2013-04-13 Thread Benjamin Peterson
Benjamin Peterson added the comment: In this case, I had almost finished a patch as I was talking with you on IRC, but I had to go play in a show for 3 hours. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17722

[issue15301] os.chown: OverflowError: Python int too large to convert to C long

2013-04-13 Thread Mark Dickinson
Mark Dickinson added the comment: +1 on using PyNumber_Index. -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15301 ___ ___

[issue9682] socket.create_connection error message for domain subpart with invalid length is very confusing

2013-04-13 Thread Mike Milkin
Mike Milkin added the comment: Made changes to to the tests and made changes to the error messages. I think decode() is valid since the input is already ascii encoded. -- Added file: http://bugs.python.org/file29834/Issue9682-full.patch ___ Python

[issue12181] SIGBUS error on OpenBSD (sparc64)

2013-04-13 Thread Trent Nelson
Trent Nelson added the comment: Yeah those slaves are definitely due for an update. It's on the list. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12181 ___

[issue17671] io.BufferedRWPair can use uninitialized members

2013-04-13 Thread Stephen Tu
Stephen Tu added the comment: patch with test in test_io -- Added file: http://bugs.python.org/file29835/bufferedio.withtest.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17671 ___

[issue17723] Use FileRead and FileWrite in fileio.c on Windows

2013-04-13 Thread STINNER Victor
STINNER Victor added the comment: See issue #12939 which contains a patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17723 ___ ___

[issue17701] Improving strftime documentation

2013-04-13 Thread David Wolever
Changes by David Wolever wole...@cs.toronto.edu: -- hgrepos: +182 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17701 ___ ___ Python-bugs-list

[issue17705] Fill Character cannot be \0

2013-04-13 Thread Eric V. Smith
Changes by Eric V. Smith e...@trueblade.com: -- assignee: - eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17705 ___ ___

[issue17701] Improving strftime documentation

2013-04-13 Thread David Wolever
Changes by David Wolever wole...@cs.toronto.edu: Added file: http://bugs.python.org/file29836/b3b1dcdc8cee.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17701 ___

[issue17413] format_exception() breaks on exception tuples from trace function

2013-04-13 Thread ingrid
ingrid added the comment: It seems that settrace works normally when an exception is raised in the python code with the raise keyword. If an exception is raised in the C code, settrace breaks as the C code passes all exceptions as strings. To fix this issue we just added a line to normalize

[issue17413] format_exception() breaks on exception tuples from trace function

2013-04-13 Thread ingrid
Changes by ingrid h...@ingridcheung.com: -- nosy: +bmac ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17413 ___ ___ Python-bugs-list mailing list

[issue17693] Use _PyUnicodeWriter API for CJK decoders

2013-04-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset d621bdaed7c3 by Victor Stinner in branch 'default': Issue #17693: CJK encoders now use the new Unicode API (PEP 393) http://hg.python.org/cpython/rev/d621bdaed7c3 -- ___ Python tracker

[issue17618] base85 encoding

2013-04-13 Thread Martin Morrison
Martin Morrison added the comment: Updated patch that includes both my original implementation of Ascii85, as well as the Mercurial implementation of base85. A few notes/questions: - I named the Mercurial base85 implementation functions with the b85 prefix. For the Ascii85 ones, I used a85. I

[issue17708] sys.flags.hash_randomization doesn't return correct value

2013-04-13 Thread Masami HIRATA
Masami HIRATA added the comment: It seems there is a misunderstanding on my part. Python v3.3.1 documentation says, sys.flags The struct sequence flags exposes the status of command line flags. The attributes are read only. I think that sys.flags.hash_randomization should be always 1 on

[issue17708] sys.flags.hash_randomization doesn't return correct value

2013-04-13 Thread Stephen Tu
Stephen Tu added the comment: But it would seem that setting PYTHONHASHSEED != random does disable hash randomization. also, not sure what the semantics of the following is: $ PYTHONHASHSEED=1 python -R ... right now, python3 basically ignores -R. --

[issue17708] sys.flags.hash_randomization doesn't return correct value

2013-04-13 Thread Masami HIRATA
Masami HIRATA added the comment: We should add 'randomization' and 'seed' attribute to sys.hash_info, I think. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17708 ___

[issue17701] Improving strftime documentation

2013-04-13 Thread David Wolever
Changes by David Wolever wole...@cs.toronto.edu: Removed file: http://bugs.python.org/file29836/b3b1dcdc8cee.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17701 ___

[issue17701] Improving strftime documentation

2013-04-13 Thread David Wolever
Changes by David Wolever wole...@cs.toronto.edu: Added file: http://bugs.python.org/file29839/ae18c5ae2c4d.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17701 ___

[issue17701] Improving strftime documentation

2013-04-13 Thread David Wolever
David Wolever added the comment: Ok, I've added some locale examples and fixed up the note numbering. See diff in file29839, and there is a live version to preview here: http://hul.wolever.net/python-doc/library/datetime.html#strftime-and-strptime-behavior If I can get a +1 on this, I'll port

[issue9538] Replace confusing pseudoname 'object' in special methods section.

2013-04-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: The problem, for me, is that in 3.3 Data Model, 'object' is being used with a 3rd meaning, 'generic class' (or possibly 'subclass of object', if indeed every 'class' must be 'object' subclass, in the strict sense of 'object'). This is in addition to 'object'

[issue17694] Enhance _PyUnicodeWriter API to control minimum buffer length without overallocation

2013-04-13 Thread STINNER Victor
STINNER Victor added the comment: Attached patch changes _PyUnicodeWriter_Init() API: it now only has one argument (the writer). Minimum length and overallocation must be configured using attributes. The problem with the old API was that it was not possible to configure minimum length and

[issue17694] Enhance _PyUnicodeWriter API to control minimum buffer length without overallocation

2013-04-13 Thread STINNER Victor
STINNER Victor added the comment: I don't see how issue17694.patch can speedup Python because min_length is zero when overallocation is disabled. It may be noise of the benchmark script. -- ___ Python tracker rep...@bugs.python.org

[issue17694] Enhance _PyUnicodeWriter API to control minimum buffer length without overallocation

2013-04-13 Thread STINNER Victor
STINNER Victor added the comment: PyUnicode_DecodeUnicodeEscape() should set writer.min_length instead of using _PyUnicodeWriter_Prepare(), but the following assertion fails (because writer.size is zero by default): assert(writer.pos writer.size || (writer.pos == writer.size c ==

[issue17694] Enhance _PyUnicodeWriter API to control minimum buffer length without overallocation

2013-04-13 Thread STINNER Victor
STINNER Victor added the comment: PyUnicode_DecodeCharmap() still uses _PyUnicodeWriter_Prepare() (even with my patch). It may be interesting to benchmark min_length vs prepare. If min_length is not slower, it should be used instead of prepare to avoid widen the buffer if the first written

[issue16804] python3 -S -m site fails

2013-04-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset faa5d705c27d by Meador Inge in branch '3.3': Issue #16804: Fix 'python -S -m site' failure. http://hg.python.org/cpython/rev/faa5d705c27d New changeset 8cbd8d8ac828 by Meador Inge in branch 'default': Issue #16804: Fix 'python -S -m site' failure.

[issue16804] python3 -S -m site fails

2013-04-13 Thread Meador Inge
Changes by Meador Inge mead...@gmail.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16804 ___

[issue17701] Improving strftime documentation

2013-04-13 Thread David Wolever
Changes by David Wolever wole...@cs.toronto.edu: Added file: http://bugs.python.org/file29841/53a0e908f787.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17701 ___

[issue17701] Improving strftime documentation

2013-04-13 Thread David Wolever
David Wolever added the comment: Fixed a misleading note about Unicode in localized formatters in file29841. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17701 ___

[issue17711] Persistent id in pickle with protocol version 0

2013-04-13 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Here's a patch that fix the bug. -- assignee: - alexandre.vassalotti keywords: +patch stage: needs patch - patch review Added file: http://bugs.python.org/file29842/fix_bad_persid.patch ___ Python tracker

[issue10701] Error pickling a dict

2013-04-13 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: The mutating __getstate__ is very likely the problem here. I've attached a small test case which shows the described behavior. We could fix this by always making a copy of any mutable container we want to iterate over to save its items.

[issue16694] Add pure Python operator module

2013-04-13 Thread Zachary Ware
Zachary Ware added the comment: Zachary, I suppose Modules/_operator.c is a rename of Modules/operator.c. Could you generate your patch using hg diff --git so that history isn't lost here? Of course; I thought I already had, but apparently I messed that up a bit. v11 is in the proper

<    1   2   3