[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 ___ ___ P

[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 ___

[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 ___ ___ Python-bugs-list mailing list

[issue17701] Improving strftime documentation

2013-04-13 Thread David Wolever
Changes by David Wolever : -- hgrepos: +182 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue17705] Fill Character cannot be \0

2013-04-13 Thread Eric V. Smith
Changes by Eric V. Smith : -- assignee: -> eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue17701] Improving strftime documentation

2013-04-13 Thread David Wolever
Changes by David Wolever : Added file: http://bugs.python.org/file29836/b3b1dcdc8cee.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[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 th

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

2013-04-13 Thread ingrid
Changes by ingrid : -- nosy: +bmac ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailm

[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"

[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 Pyth

[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 ___ _

[issue17701] Improving strftime documentation

2013-04-13 Thread David Wolever
Changes by David Wolever : Removed file: http://bugs.python.org/file29836/b3b1dcdc8cee.diff ___ Python tracker ___ ___ Python-bugs-list mailin

[issue17701] Improving strftime documentation

2013-04-13 Thread David Wolever
Changes by David Wolever : Added file: http://bugs.python.org/file29839/ae18c5ae2c4d.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[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' t

[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 over

[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

[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 cha

[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. h

[issue16804] python3 -S -m site fails

2013-04-13 Thread Meador Inge
Changes by Meador Inge : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue17701] Improving strftime documentation

2013-04-13 Thread David Wolever
Changes by David Wolever : Added file: http://bugs.python.org/file29841/53a0e908f787.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[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 ___ ___

[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. Performance-wise

[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 f

[issue13922] argparse handling multiple "--" in args improperly

2013-04-13 Thread paul j3
paul j3 added the comment: This patch removes only one '--', the one that put a '-' in the 'arg_strings_pattern'. It does this in 'consume_positionals' right before calling 'take_action'. As before it does not do this if nargs is PARSER or REMAINDER. test_argparse.py has two DoubleDashRemov

[issue17720] pickle.py's load_appends should call append() on objects other than lists

2013-04-13 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Alright alright! Here's a less bogus patch. :) -- stage: needs patch -> patch review Added file: http://bugs.python.org/file29846/fix_loads_appends.patch ___ Python tracker _

<    1   2   3