[issue15882] _decimal.Decimal constructed from tuple

2012-09-10 Thread Stefan Krah
Changes by Stefan Krah : -- resolution: -> fixed stage: -> committed/rejected ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue15882] _decimal.Decimal constructed from tuple

2012-09-10 Thread Stefan Krah
Stefan Krah added the comment: Thanks for the report and the patch. I used another approach that still validates the digits in the coefficient tuple even if it is not used. decimal.py allows any coefficient: >>> Decimal((0, ('n', 'a', 'n'), 'F')) Decimal('Infinity') _decimal raises: >>> Decim

[issue15851] Lib/robotparser.py doesn't accept setting a user agent string, instead it uses the default.

2012-09-10 Thread Eduardo A . Bustamante López
Eduardo A. Bustamante López added the comment: Hi Senthil, > I fail to see the bug in here. Robotparser module is for reading and > parsing the robot.txt file, the module responsible for fetching it > could urllib. You're right, but robotparser's read() does a call to urllib.request.urlopen to

[issue15898] OSX TTY bug

2012-09-10 Thread Martin v . Löwis
Martin v. Löwis added the comment: To me, this still looks like an OS bug. The difference between 2.7 and 3.2 seems to be that 3.2 will call the _nocancel syscalls, which I guess results from using a different version of the C library, or OSX deployment target, or something. However, the syste

[issue15917] hg hook to detect unmerged changesets

2012-09-10 Thread Ezio Melotti
New submission from Ezio Melotti: The attached Mercurial hook checks that all the changesets in a 3.x branch are merged with either another cset in the same branch or a cset in the following 3.x branch. This is to detect and prevent situations where people commit something on e.g. 3.2 and pus

[issue15851] Lib/robotparser.py doesn't accept setting a user agent string, instead it uses the default.

2012-09-10 Thread Senthil Kumaran
Senthil Kumaran added the comment: Hello Eduardo, I fail to see the bug in here. Robotparser module is for reading and parsing the robot.txt file, the module responsible for fetching it could urllib. robots.txt is always available from web-server and you can download the robot.txt by any means,

[issue15898] OSX TTY bug

2012-09-10 Thread Andrew Moffat
Andrew Moffat added the comment: Below I attached a script that reproduces the behavior of an assertion error on a specific fork condition for a process with a pty. Here are the results Xubuntu x64: Python 2.7, parent_close_slave_before_child_write = False: WORKS Python 2.7, parent_close

[issue15629] Add to regrtest the ability to run Lib and Doc doctests

2012-09-10 Thread Chris Jerdonek
Chris Jerdonek added the comment: > The reason is that Sphinx has extra facilities that allow docttests to work > without having to have "boilerplate" code in places where doing so would > disrupt the narrative flow. Yes, this seems to be true. Sphinx has a "testsetup" directive which lets yo

[issue15629] Add to regrtest the ability to run Lib and Doc doctests

2012-09-10 Thread Chris Jerdonek
Chris Jerdonek added the comment: > Sphinx does have a way to mark doctest snippets as "run this", "don't run > this". I believe that requires using 'make doctest' as the runner, The doctest module supports this natively (i.e. without the need for Sphinx) via its "skip" directive ("#doctest:

[issue15629] Add to regrtest the ability to run Lib and Doc doctests

2012-09-10 Thread Chris Jerdonek
Chris Jerdonek added the comment: > Integrating this with regrtest requires some work, for example you would have > to count successes/failures, add skips for certain tests and resources to > control what tests should be run (there's currently a turtle going around on > my screen when I run `m

[issue15886] os.stat() docs repeat "specifying a file descriptor" support

2012-09-10 Thread R. David Murray
R. David Murray added the comment: Thanks Masato. -- nosy: +r.david.murray resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue15886] os.stat() docs repeat "specifying a file descriptor" support

2012-09-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset d7ea7ec671ba by R David Murray in branch 'default': #15886: remove redundant phrase http://hg.python.org/cpython/rev/d7ea7ec671ba -- nosy: +python-dev ___ Python tracker

[issue15629] Add to regrtest the ability to run Lib and Doc doctests

2012-09-10 Thread Chris Jerdonek
Chris Jerdonek added the comment: > You should also see if there are more doctest-safe or more doctest-unsafe > tests, and mark the ones in the smallest group. Running the doctests for all .rst files in the Doc/ directory using the latest patch gave me the following: 299 tests [files] OK. 126

[issue15912] Intermittent import failure

2012-09-10 Thread Eric Snow
Eric Snow added the comment: Thinking about it, it may be worth adding a note to the docs for sys.modules making it clear about importlib.invalidate_caches(). I'll see about writing up a patch when I get a chance. -- status: pending -> open ___ Pyt

[issue15793] Stack corruption in ssl.RAND_egd()

2012-09-10 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Thanks for the detection and patch. I added a test to 2.7, even knowing it doesn't need it (2.7 is a dead end), for consistence. -- ___ Python tracker ___

[issue15793] Stack corruption in ssl.RAND_egd()

2012-09-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 706115cb2cdb by Jesus Cea in branch '2.7': Closes #15793: Stack corruption in ssl.RAND_egd(). Python 2.7 hasn't any issue about this, but add a test just to be sure http://hg.python.org/cpython/rev/706115cb2cdb New changeset 827bb0554f1f by Jesus C

[issue15896] Sporadic EINVAL in nonblocking pipe os.read when forked child fails on Mac OS

2012-09-10 Thread Vitaly
Vitaly added the comment: os.read() must also be allocating the read buffer in addition to calling the system read() function. I just uploaded a new test script "test_fork_pipe_error.py" that iterates in increasing or decreasing order over initial pipe read sizes and accumulates failed size v

[issue15896] Sporadic EINVAL in nonblocking pipe os.read when forked child fails on Mac OS

2012-09-10 Thread Vitaly
Changes by Vitaly : Added file: http://bugs.python.org/file27170/test_fork_pipe_error.py ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue15916] change doctest DocTestSuite not to raise ValueError if no docstrings

2012-09-10 Thread Chris Jerdonek
New submission from Chris Jerdonek: Currently, calling doctest.DocTestSuite() raises a ValueError if the module passed to it has no docstrings. This was the subject of issue 14649. This issue is to discuss and possibly change DocTestSuite's behavior not to raise an exception in that situation

[issue15887] urlencode should accept generators or two elements tuples

2012-09-10 Thread Berker Peksag
Changes by Berker Peksag : -- versions: +Python 3.4 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15390] PEP 3121, 384 refactoring applied to datetime module

2012-09-10 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I would like to split this issue to separate PEP 3121 changes from PEP 384. PEP 3121 state cleanup implementation is clearly an improvement "from a resource management point of view." On the other hand, I don't see much benefit for the datetime module

[issue15915] array.array does not support the buffer interface

2012-09-10 Thread Benjamin Peterson
Benjamin Peterson added the comment: It simply wasn't converted in time for the 2.7 release. The new buffer API is considered something of a technical preview in Python 2.x. -- ___ Python tracker _

[issue15915] array.array does not support the buffer interface

2012-09-10 Thread Ellery Newcomer
Ellery Newcomer added the comment: relevant question, then, is why does array not support the new buffer interface while str and bytearray support both old and new? -- ___ Python tracker __

[issue7358] cStringIO not 64-bit safe

2012-09-10 Thread Martin v . Löwis
Martin v. Löwis added the comment: Antoine: if you look at http://svn.python.org/view/python/branches/ssize_t/Modules/cStringIO.c?revision=41731&view=markup&pathrev=42382 you'll notice that IOobject and Iobject have pos and stringsize as int, whereas Oobject has it as Py_ssize_t. This must hav

[issue15906] argparse add_argument() confusing behavior when type=str, default=

2012-09-10 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue15419] distutils: build should use a version-specific build directory

2012-09-10 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: Currently users can run e.g.: $ python2.7 setup.py build -b build-2.7 install $ python3.2 setup.py build -b build-3.2 install If default name of build directory had to be changed, then it would be useful to also include name of Python imple

[issue15915] array.array does not support the buffer interface

2012-09-10 Thread Benjamin Peterson
Benjamin Peterson added the comment: array.array supports the old buffer interface not the new one, which PyObject_CheckBuffer is part of. -- nosy: +benjamin.peterson resolution: -> invalid status: open -> closed ___ Python tracker

[issue7358] cStringIO not 64-bit safe

2012-09-10 Thread Martin v . Löwis
Martin v. Löwis added the comment: Gilles: it's really puzzling that you run into the issue. This is an assert, so in a regular build of Python, it should never trigger. Instead, it should trigger only in a debug build. Why are you running a debug build? -- ___

[issue15419] distutils: build should use a version-specific build directory

2012-09-10 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue15881] multiprocessing 'NoneType' object is not callable

2012-09-10 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue15914] multiprocessing.SyncManager connection hang

2012-09-10 Thread R. David Murray
Changes by R. David Murray : -- nosy: +sbt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue15915] array.array does not support the buffer interface

2012-09-10 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue15915] array.array does not support the buffer interface

2012-09-10 Thread Ellery Newcomer
New submission from Ellery Newcomer: According to http://docs.python.org/library/array.html, array.array supports the buffer interface; however in python 2.7, PyObject_CheckBuffer says this is not the case. all is well in python 3.2, though. -- files: test.c messages: 170242 nosy: ell

[issue15676] mmap: add empty file check prior to offset check

2012-09-10 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Thanks for the heads-up, Stefan. -- assignee: -> jcea resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue15914] multiprocessing.SyncManager connection hang

2012-09-10 Thread Sean B. Palmer
New submission from Sean B. Palmer: create.py: import multiprocessing manager = multiprocessing.Manager() namespace = manager.Namespace() print("create.py complete") run.py: import create print("run.py complete") Correct behaviour occurs for create.py: $ python3 create.py create.py complete

[issue15913] PyBuffer_SizeFromFormat is missing

2012-09-10 Thread Ellery Newcomer
New submission from Ellery Newcomer: this function is listed in the buffer docs and in abstract.h, but there is no implementation anywhere. -- components: None messages: 170239 nosy: ellery.newcomer priority: normal severity: normal status: open title: PyBuffer_SizeFromFormat is missing

[issue15896] Sporadic EINVAL in nonblocking pipe os.read when forked child fails on Mac OS

2012-09-10 Thread Charles-François Natali
Charles-François Natali added the comment: > 1. Reduce the initial read size argument (rSize in my code snippet) from > 1048576 (1MB, the same amount as used by subprocess.Popen._executeChild) to > 100: the problem appears to go away (could be just red herring, though); > this actually mak

[issue13896] Make shelf instances work with 'with' as context managers

2012-09-10 Thread Berker Peksag
Changes by Berker Peksag : -- versions: +Python 3.4 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15912] Intermittent import failure

2012-09-10 Thread Eric Snow
Changes by Eric Snow : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue15676] mmap: add empty file check prior to offset check

2012-09-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 39efccf7a167 by Jesus Cea in branch '2.7': #15676: mmap: add empty file check prior to offset check <- Previous patch was incomplete (fix 2) http://hg.python.org/cpython/rev/39efccf7a167 New changeset 56a2e862561c by Jesus Cea in branch '3.2': #156

[issue15676] mmap: add empty file check prior to offset check

2012-09-10 Thread Stefan Krah
Stefan Krah added the comment: I think Py_DECREF(m_obj) is missing (at least in 3.3, I didn't look at the other versions). -- ___ Python tracker ___ _

[issue15676] mmap: add empty file check prior to offset check

2012-09-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 88a88c32661e by Jesus Cea in branch '3.2': #15676: mmap: add empty file check prior to offset check <- Previous patch was incomplete http://hg.python.org/cpython/rev/88a88c32661e New changeset 0ac94ae29abe by Jesus Cea in branch 'default': #15676:

[issue15676] mmap: add empty file check prior to offset check

2012-09-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 25d477647a2d by Jesus Cea in branch '2.7': #15676: mmap: add empty file check prior to offset check <- Previous patch was incomplete http://hg.python.org/cpython/rev/25d477647a2d -- ___ Python tracker <

[issue8109] Server-side support for TLS Server Name Indication extension

2012-09-10 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- versions: +Python 3.4 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8109] Server-side support for TLS Server Name Indication extension

2012-09-10 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Daniel, your patch looks quite interesting. Please, send a contributor agreement to the PSF: http://www.python.org/psf/contrib/contrib-form-python/ . Let me know when you status have changed. Why are you changing "Lib/test/keycert2.pem"? Please, provide also

[issue15676] mmap: add empty file check prior to offset check

2012-09-10 Thread Stefan Krah
Stefan Krah added the comment: This gets rid of the permission error: diff -r f962ec8e47a1 Lib/test/test_mmap.py --- a/Lib/test/test_mmap.py Mon Sep 10 01:23:05 2012 +0200 +++ b/Lib/

[issue15881] multiprocessing 'NoneType' object is not callable

2012-09-10 Thread Richard Oudkerk
Richard Oudkerk added the comment: Actually it is test.with_project_on_sys_path() in setuptools/commands/test.py that does the save/restore of sys.modules. See http://www.eby-sarna.com/pipermail/peak/2010-May/003357.html -- ___ Python tracker

[issue15912] Intermittent import failure

2012-09-10 Thread Eric Snow
Eric Snow added the comment: The FileFinder class (a "path entry finder") uses a cache to efficiently track changes to files. You can manually clear this cache by calling importlib.invalidate_caches(). The Python test suite has several examples of clearing the FileFinder cache in this way.

[issue15676] mmap: add empty file check prior to offset check

2012-09-10 Thread Stefan Krah
Stefan Krah added the comment: For some reason all Windows buildbots are failing since f962ec8e47a1: == ERROR: test_entire_file (test.test_mmap.MmapTests) -- Tr

[issue15909] test_mmap failure on Windows buildbots

2012-09-10 Thread Stefan Krah
Stefan Krah added the comment: Duplicate. -- resolution: -> duplicate stage: needs patch -> committed/rejected status: open -> closed superseder: -> mmap: add empty file check prior to offset check ___ Python tracker

[issue15896] Sporadic EINVAL in nonblocking pipe os.read when forked child fails on Mac OS

2012-09-10 Thread Vitaly
Vitaly added the comment: Per Charles-François Natali (neologix), I tried the following: 1. Reduce the initial read size argument (rSize in my code snippet) from 1048576 (1MB, the same amount as used by subprocess.Popen._executeChild) to 100: the problem appears to go away (could be just r

[issue15903] Make rawiobase_read() read directly to bytes object

2012-09-10 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: It works as along as the bytes object cannot leak to Python code, (imagine a custom readinto() method which plays with gc.get_referrers, then calls hash(b)...) This is OK with this patch. -- nosy: +amaury.forgeotdarc

[issue15912] Intermittent import failure

2012-09-10 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone: The attached unit test fails with an ImportError... sometimes. Here's a little blob of shell that seems to make the failure come up more quickly: while ~/Projects/cpython/3.3/python -m unittest -v test_broken_import; do rm -rf test_broken_import;

[issue15911] Debugging import problems is hard

2012-09-10 Thread Eric Snow
Eric Snow added the comment: This comes back to #14657, which addressed the frozen vs. non-frozen copies of importlib. It sounds like one useful solution for your situation would be for _frozen_importlib to be used only long enough for bootstrap purposes. This was discussed in that other iss

[issue11943] Add TLS-SRP (RFC 5054) support to ssl, _ssl, http, and urllib

2012-09-10 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Ping!. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue15910] MD5 and SHA1 crash when "updated" with strings bigger than 2**32 bytes

2012-09-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4d36e56b56d9 by Jesus Cea in branch '2.7': Closes #15910: MD5 and SHA1 crash when "updated" with strings bigger than 2**32 bytes http://hg.python.org/cpython/rev/4d36e56b56d9 -- nosy: +python-dev resolution: -> fixed stage: -> committed/r

[issue15911] Debugging import problems is hard

2012-09-10 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone: Debugging problems involving the frozen importlib._bootstrap is difficult, because the source for importlib._bootstrap is not available to pdb. The bootstrap code can be stepped through, but with only function names and line numbers available, not sour

[issue15881] multiprocessing 'NoneType' object is not callable

2012-09-10 Thread Richard Oudkerk
Richard Oudkerk added the comment: Actually, I am not so sure it is the isolate plugin. But I do think that sys.modules is being manipulated somewhere before shutdown. -- ___ Python tracker __

[issue15902] imp.load_module won't accept None for the file argument for a C extension

2012-09-10 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue15910] MD5 and SHA1 crash when "updated" with strings bigger than 2**32 bytes

2012-09-10 Thread Jesús Cea Avión
New submission from Jesús Cea Avión: #14888 and #15908 solve the issue for "hash.new()", but "hash.update()" is failing too. -- assignee: jcea messages: 170219 nosy: jcea, pitrou priority: normal severity: normal status: open title: MD5 and SHA1 crash when "updated" with strings bigger

[issue15908] SHA1 crashes in 64 bits when the string to hash is bigger than 2**32 bytes

2012-09-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset a13bfc238f27 by Jesus Cea in branch '2.7': Closes #15908: SHA1 crashes in 64 bits when the string to hash is bigger than 2**32 bytes http://hg.python.org/cpython/rev/a13bfc238f27 -- nosy: +python-dev resolution: -> fixed stage: -> committ

[issue15908] SHA1 crashes in 64 bits when the string to hash is bigger than 2**32 bytes

2012-09-10 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- title: SHA1 crashes in 64 bits when the string to hash is -> SHA1 crashes in 64 bits when the string to hash is bigger than 2**32 bytes ___ Python tracker __

[issue15909] test_mmap failure on Windows buildbots

2012-09-10 Thread Stefan Krah
New submission from Stefan Krah: All Windows bots have multiple failures in test_mmap: == ERROR: test_entire_file (test.test_mmap.MmapTests) -- Traceback (most

[issue15898] OSX TTY bug

2012-09-10 Thread Andrew Moffat
Andrew Moffat added the comment: @Ned, Ok, give me a little time to work up those suggestions. On my machine, the previous script prints "testing" consistently on 2.7, "" consistently on 3.2. I guess this is the behavior that is unexpected...it should print the same thing for both versions.

[issue15881] multiprocessing 'NoneType' object is not callable

2012-09-10 Thread Richard Oudkerk
Richard Oudkerk added the comment: I suspect the problem is caused by nose's isolate plugin. With this enabled, a copy of sys.modules is saved before each test and then restored after the test. This causes garbage collection of newly imported modules. The destructor for the module type cause

[issue15908] SHA1 crashes in 64 bits when the string to hash is

2012-09-10 Thread Jesús Cea Avión
New submission from Jesús Cea Avión: #14888 solves this for MD5, but SHA1 is affected too. -- assignee: jcea messages: 170214 nosy: jcea, pitrou priority: normal severity: normal status: open title: SHA1 crashes in 64 bits when the string to hash is versions: Python 2.7

[issue15874] argparse cannot parse shell variable arguments in file-given arguments

2012-09-10 Thread Nat Hillard
Nat Hillard added the comment: Thank you, everyone. Defining a new type for this is just what I needed. No additional modifications are necessary on top of this new type. -- resolution: -> works for me status: open -> closed ___ Python tracker

[issue15676] mmap: add empty file check prior to offset check

2012-09-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9ed2e8307e60 by Jesus Cea in branch '2.7': #15676: Proper attribution in Misc/ACKS http://hg.python.org/cpython/rev/9ed2e8307e60 New changeset 4f21f7532038 by Jesus Cea in branch '3.2': #15676: Proper attribution in Misc/ACKS http://hg.python.org/cp

[issue15900] Memory leak in PyUnicode_TranslateCharmap()

2012-09-10 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Looks good to me. Are 2.7/3.2 not affected?. Christian, Please, commit the patch and notify Georg for 3.3.0 inclusion. -- nosy: +jcea ___ Python tracker _

[issue15906] argparse add_argument() confusing behavior when type=str, default=

2012-09-10 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Sep 10, 2012, at 05:59 PM, Georg Brandl wrote: >But it's not a release blocker for 3.3 then. Fair enough! -- ___ Python tracker ___ __

[issue15903] Make rawiobase_read() read directly to bytes object

2012-09-10 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea stage: -> patch review versions: +Python 3.4 ___ Python tracker ___ ___ Python-bugs-list

[issue15906] argparse add_argument() confusing behavior when type=str, default=

2012-09-10 Thread Georg Brandl
Georg Brandl added the comment: But it's not a release blocker for 3.3 then. -- priority: release blocker -> high ___ Python tracker ___ _

[issue15895] PyRun_SimpleFileExFlags() can leak a FILE pointer

2012-09-10 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Look good to me, then. Are you committing the patch yourself?. You can patch 2.7, 3.2 and default, and bug Georg for 3.3.0 inclusion (patches to default will be in 3.3.1), unless Georg is notified and chooses to cherry pick it. -- __

[issue15882] _decimal.Decimal constructed from tuple

2012-09-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 97e53273f423 by Stefan Krah in branch 'default': Issue #15882: Change _decimal to accept any coefficient tuple when http://hg.python.org/cpython/rev/97e53273f423 -- nosy: +python-dev ___ Python tracker <

[issue15906] argparse add_argument() confusing behavior when type=str, default=

2012-09-10 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- versions: +Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue15906] argparse add_argument() confusing behavior when type=str, default=

2012-09-10 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Sep 10, 2012, at 05:21 PM, Georg Brandl wrote: >I don't see how this affects 3.3: you seem to be saying the behavior is fine >there. No, I thought it was because I tested the Ubuntu rc2 version, but the problem exists in upstream hg 3.3rc2+ head. -

[issue15906] argparse add_argument() confusing behavior when type=str, default=[], action='append'

2012-09-10 Thread Georg Brandl
Georg Brandl added the comment: I don't see how this affects 3.3: you seem to be saying the behavior is fine there. -- versions: -Python 3.3 ___ Python tracker ___

[issue15899] howto/unicode.rst doctest corrections

2012-09-10 Thread Chris Jerdonek
Changes by Chris Jerdonek : -- versions: +Python 2.7, Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15906] argparse add_argument() confusing behavior when type=str, default=[], action='append'

2012-09-10 Thread R. David Murray
Changes by R. David Murray : -- nosy: +bethard ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue15907] move doctest test-data files into a subdirectory of Lib/test

2012-09-10 Thread Chris Jerdonek
New submission from Chris Jerdonek: doctest currently has 8 "data" files used for testing that are spread across Lib/test (in addition to the main test files test_doctest.py and test_doctest2.py): doctest_aliases.py sample_doctest.py sample_doctest_no_docstrings.py sample_doctest_no_doctests.p

[issue15906] argparse add_argument() confusing behavior when type=str, default=[], action='append'

2012-09-10 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Marking it as a release blocker and adding 3.3 since 3.3 hg trunk is affected. -- versions: +Python 3.3 ___ Python tracker ___

[issue15906] argparse add_argument() confusing behavior when type=str, default=[], action='append'

2012-09-10 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +benjamin.peterson, georg.brandl priority: normal -> release blocker ___ Python tracker ___ ___

[issue15906] argparse add_argument() confusing behavior when type=str, default=[], action='append'

2012-09-10 Thread Barry A. Warsaw
New submission from Barry A. Warsaw: Run the following code snippet: -snip snip- import argparse parser = argparse.ArgumentParser() parser.add_argument("--test", dest="test", type=str, default=[], action='append') args = parser.parse_args() print args.test, repr(args.test) -sn

[issue15905] Copy to fixed size buffer w/o check in sys_update_path

2012-09-10 Thread Christian Heimes
Christian Heimes added the comment: search_for_prefix() and search_for_exec_prefix() contain similar code. CID 486612 CID 486611 -- ___ Python tracker ___ __

[issue15905] Copy to fixed size buffer w/o check in sys_update_path

2012-09-10 Thread Christian Heimes
New submission from Christian Heimes: In Python/sysmodule.c the function sys_update_path() uses wcscpy to copy data to a fixed size buffer. The input comes from an external source (argv[0]) and could theoretically be larger than the buffer. Suggested solution: Increase the buffer a bit: w

[issue14649] doctest.DocTestSuite error misleading when module has no docstrings

2012-09-10 Thread Chris Jerdonek
Chris Jerdonek added the comment: Thanks a lot, David. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue15902] imp.load_module won't accept None for the file argument for a C extension

2012-09-10 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue15902] imp.load_module won't accept None for the file argument for a C extension

2012-09-10 Thread Brett Cannon
Brett Cannon added the comment: Well, that's extremely annoying as that doesn't work for .py or .pyc files:: >>> import imp >>> stuff = imp.find_module('blah') >>> stuff (<_io.TextIOWrapper name=4 mode='U' encoding='utf-8'>, 'blah.py', ('.py', 'U', 1)) >>> stuff[0].close() >>> imp.load_module('

[issue14649] doctest.DocTestSuite error misleading when module has no docstrings

2012-09-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset c5fc49bc7a5f by R David Murray in branch '2.7': #14649: add sample files omitted from previous checkin. http://hg.python.org/cpython/rev/c5fc49bc7a5f -- ___ Python tracker

[issue15419] distutils: build should use a version-specific build directory

2012-09-10 Thread Éric Araujo
Éric Araujo added the comment: > It seems to me this is just a special case of the more general issue of > building multiple versions of the > same distribution, say with multiple versions of Python 2. In general, > anytime you change your build > environment, you should start with no existing

[issue15904] file,close() can fail assert on Windows in 2.7

2012-09-10 Thread Richard Oudkerk
Richard Oudkerk added the comment: If buffering is off then they all fail the assertion except isatty(). -- ___ Python tracker ___ ___

[issue13212] json library is decoding/encoding when it should not

2012-09-10 Thread Éric Araujo
Éric Araujo added the comment: > I don't think it should be called "strict" though, as that would imply that > we comply with RFC 4627 strictly > (which is not true without passing allow_nan=False for dump() or passing a > parse_constant function for load()) What if the strict mode implied bo

[issue15896] Sporadic EINVAL in nonblocking pipe os.read when forked child fails on Mac OS

2012-09-10 Thread Charles-François Natali
Charles-François Natali added the comment: Looks like - another - OS-X bug. What happens if you reduce the size argument when reading from the error pipe? Try setting it to a value like 512 (minimum guaranteed PIPE_BUF): """ newData = os.read(errpipe_read, min(512, rSize)) """ You could also t

[issue15904] file,close() can fail assert on Windows in 2.7

2012-09-10 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Is it also the case for other file operations? Here is a list that may use a closed FILE object: f.write('something') f.read(1) print >>f, 'something' f.seek(0) f.tell() f.truncate(0) f.flush() f.isatty() f.readlines()

[issue15891] A public facing API for __unittest = True

2012-09-10 Thread Eric Snow
Eric Snow added the comment: yeah, I keep thinking we need a better API for managing tracebacks. One of these days... -- nosy: +eric.snow ___ Python tracker ___ ___

[issue14649] doctest.DocTestSuite error misleading when module has no docstrings

2012-09-10 Thread R. David Murray
R. David Murray added the comment: Thanks, Chris. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue14649] doctest.DocTestSuite error misleading when module has no docstrings

2012-09-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset d012f645b8b2 by R David Murray in branch '3.2': #14649: clarify DocTestSuite error when there are no docstrings. http://hg.python.org/cpython/rev/d012f645b8b2 New changeset 6544fc92b528 by R David Murray in branch 'default': Merge #14649: clarify Do

[issue15904] file,close() can fail assert on Windows in 2.7

2012-09-10 Thread Richard Oudkerk
New submission from Richard Oudkerk: With Python 2.7 on Windows the following crashes with an assertion: >>> import os [43042 refs] >>> f = open("foobar", "wb") [43048 refs] >>> os.close(f.fileno()) [43048 refs] >>> f.close() A box pops up with Program: C:\

[issue15881] multiprocessing 'NoneType' object is not callable

2012-09-10 Thread Richard Oudkerk
Richard Oudkerk added the comment: I see the same error on Windows (when pressing ^C), but on Linux I get Error in sys.exitfunc: Traceback (most recent call last): File "/usr/lib/python2.7/atexit.py", line 28, in _run_exitfuncs import traceback File "/usr/lib/python2.7/traceback.py", lin

[issue15902] imp.load_module won't accept None for the file argument for a C extension

2012-09-10 Thread Paul Moore
Paul Moore added the comment: It's the open file object argument, not the path. I assume that if you supplied None, the code opened the file for you. -- status: pending -> open ___ Python tracker __

  1   2   >