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

2012-09-10 Thread Charles-François Natali
Charles-François Natali added the comment: You forgot to add an entry in Misc/ACKS. -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue15888] ipaddress doctest examples have some errors

2012-09-10 Thread Chris Jerdonek
Chris Jerdonek added the comment: Attaching patch. The doctests for these three files now all pass (using a newer version of the patch I uploaded to issue 15629). -- keywords: +patch Added file: http://bugs.python.org/file27161/issue-15888-1.patch _

[issue15898] OSX TTY bug

2012-09-10 Thread Martin v . Löwis
Martin v. Löwis added the comment: If you want to analyse this further, please provide "dtruss -f" output of the script. Most likely, this is a glitch in the operating system, but not a bug in Python. Unless you can provide more details, or a patch, we are likely to close this issue as "works

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

2012-09-10 Thread Chris Jerdonek
Chris Jerdonek added the comment: I am attaching an updated version of the patch for feedback. The latest version of the patch I developed and used in the real-world example of fixing both the module and documentation file doctests for the ipaddress module (and its HOWTO) in issue 15888. The

[issue15726] PyState_FindModule false length-comparison fix

2012-09-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: Oops, sorry, that was a mistake. -- resolution: invalid -> fixed ___ Python tracker ___ ___ Python-b

[issue15899] howto/unicode.rst doctest corrections

2012-09-10 Thread Chris Jerdonek
New submission from Chris Jerdonek: This issue is to fix Doc/howto/unicode.rst so that its doctests pass when using the doctest module. Patch forthcoming. -- assignee: docs@python components: Documentation keywords: easy messages: 170167 nosy: cjerdonek, docs@python priority: normal se

[issue15899] howto/unicode.rst doctest corrections

2012-09-10 Thread Chris Jerdonek
Chris Jerdonek added the comment: Attaching patch for the default branch. -- keywords: +patch stage: -> patch review Added file: http://bugs.python.org/file27163/issue-15899-1.patch ___ Python tracker

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

2012-09-10 Thread Denis Bilenko
Changes by Denis Bilenko : -- nosy: +Denis.Bilenko ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue15895] PyRun_SimpleFileExFlags() can leak a FILE pointer

2012-09-10 Thread Christian Heimes
Christian Heimes added the comment: No, that's not possible. 'fp' is part of the argument to PyRun_SimpleFileExFlags() and never NULL. We need some way to distinguish a externally provided fp from a self-opened fp and fclose(fp) in the latter case. -- _

[issue15873] "datetime" cannot parse ISO 8601 dates and times

2012-09-10 Thread Matej Cepl
Changes by Matej Cepl : -- nosy: +mcepl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue15900] Memory leak in PyUnicode_TranslateCharmap()

2012-09-10 Thread Christian Heimes
New submission from Christian Heimes: Objects/unicodeobject.c:PyUnicode_TranslateCharmap() leaks a reference to the variable unicode. PyUnicode_Translate() is also implemented around the helper function _PyUnicode_TranslateCharmap() but it properly decrefs the reference to the first argument.

[issue15901] multiprocessing sharedctypes Array don't accept strings

2012-09-10 Thread Simon R
New submission from Simon R: I've simply tested the example reported in the py3k documentation, and it don't works. See the site: http://docs.python.org/py3k/library/multiprocessing.html?highlight=multiprocessing#module-multiprocessing.sharedctypes The program exit with this error: > python s

[issue15901] multiprocessing sharedctypes Array don't accept strings

2012-09-10 Thread Richard Oudkerk
Richard Oudkerk added the comment: The documentation needs updating for Python 3 so that a byte string is used. So the line becomes s = Array('c', b'hello world', lock=lock) -- nosy: +sbt ___ Python tracker

[issue15901] multiprocessing sharedctypes Array don't accept strings

2012-09-10 Thread Simon
Changes by Simon : -- assignee: -> docs@python components: +Documentation -ctypes nosy: +docs@python type: crash -> behavior ___ Python tracker ___ _

[issue15828] imp.load_module doesn't support C_EXTENSION type

2012-09-10 Thread Paul Moore
Paul Moore added the comment: The applied fix appears to have a regression - the file argument is not allowed to be None. The pywin32 post-install script calls imp.load_module for a C extension with file=None, so presumably this worked in earlier versions. The regression breaks the postinstall

[issue15828] imp.load_module doesn't support C_EXTENSION type

2012-09-10 Thread Tim Golden
Tim Golden added the comment: Paul, are you using the hg tip of pywin32? pywin32_postintall.py was patched a couple of months ago to use imp.load_dynamic (essentially to work around this issue). -- nosy: +tim.golden ___ Python tracker

[issue15828] imp.load_module doesn't support C_EXTENSION type

2012-09-10 Thread Paul Moore
Paul Moore added the comment: On 10 September 2012 11:47, Tim Golden wrote: > > Tim Golden added the comment: > > Paul, are you using the hg tip of pywin32? pywin32_postintall.py was > patched a couple of months ago to use imp.load_dynamic (essentially to > work around this issue). No, this is

[issue15828] imp.load_module doesn't support C_EXTENSION type

2012-09-10 Thread Nick Coghlan
Nick Coghlan added the comment: Paul, could you please report that issue/question separately? If it's a regression, it's likely in the importlib migration in general and was hidden by this bug rather than being introduced by the fix. -- ___ Python tra

[issue7358] cStringIO not 64-bit safe

2012-09-10 Thread Gilles Louppe
Gilles Louppe added the comment: Hi, Any solution regarding that issue? We are currently encountering the exact same bug when pickling too large objects. Best, Gilles -- nosy: +Gilles.Louppe ___ Python tracker

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

2012-09-10 Thread Paul Moore
New submission from Paul Moore: imp.load_module appears to have a regression - the file argument is not allowed to be None when loading a C_EXTENSION. The pywin32 post-install script for version 217 calls imp.load_module for a C extension with file=None, so presumably this worked in earlier ve

[issue15828] imp.load_module doesn't support C_EXTENSION type

2012-09-10 Thread Paul Moore
Paul Moore added the comment: Logged as #15902. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue15873] "datetime" cannot parse ISO 8601 dates and times

2012-09-10 Thread Roy Smith
Roy Smith added the comment: I've started collecting some test cases. I'll keep adding to the collection. I'm going to start trolling ISO 8601:2004(E) for more. Let me know if there are other sources I should be considering. -- ___ Python tracker

[issue15873] "datetime" cannot parse ISO 8601 dates and times

2012-09-10 Thread Roy Smith
Roy Smith added the comment: Ooops, clicked the wrong button. -- Added file: http://bugs.python.org/file27165/test-cases.py ___ Python tracker ___ ___

[issue15901] multiprocessing sharedctypes Array don't accept strings

2012-09-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset ddb406904be1 by Richard Oudkerk in branch '3.2': Issue #15901: Change example to use byte string instead of string http://hg.python.org/cpython/rev/ddb406904be1 -- nosy: +python-dev ___ Python tracker

[issue15901] multiprocessing sharedctypes Array don't accept strings

2012-09-10 Thread Richard Oudkerk
Changes by Richard Oudkerk : -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___ ___

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

2012-09-10 Thread Richard Oudkerk
New submission from Richard Oudkerk: Currently rawiobase_read() reads to a bytearray object and then copies the data to a bytes object. There is a TODO comment saying that the bytes object should be created directly. The attached patch does that. -- files: iobase_read.patch keywords:

[issue12947] doctest directive examples in library/doctest.html lack the flags

2012-09-10 Thread Ezio Melotti
Ezio Melotti added the comment: > Is this a feature? What is it for? :) The >>> is added to every example that contains an interactive session to hide the '>>>' and '...' prompts and the output and make the code copy/pastable, and it's not specific to doctests. -- __

[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: How can you load a C extension without a file path? Are C extensions being inappropriately flagged as built-in modules on Windows? What does imp.find_module() return for the module being checked? I need more debugging info on what imp.find_module() and imp.load_

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

[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

[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:\

[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

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

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

[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()

[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

[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

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

[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

[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

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

[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

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

[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

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

[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

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

[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 R. David Murray
Changes by R. David Murray : -- nosy: +bethard ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

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

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

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

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

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

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

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

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

[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

[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

[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

[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

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

[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

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

[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

[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

[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

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

[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

[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

[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

[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

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

[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

[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

[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

[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

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

[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

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

[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

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

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

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

[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

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

[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

[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

[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

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

[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

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

[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

[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

[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

  1   2   >