[issue16104] Compileall script: add option to use multiple cores

2014-09-09 Thread Claudiu Popa
Claudiu Popa added the comment: If there is nothing left to do for this patch, can it be committed? -- Added file: http://bugs.python.org/file36590/16104.patch ___ Python tracker ___

[issue17442] code.InteractiveInterpreter doesn't display the exception cause

2014-09-09 Thread Claudiu Popa
Claudiu Popa added the comment: If the patch doesn't need anything else, can it be committed? -- stage: patch review -> commit review ___ Python tracker ___ _

[issue20506] Command to display all available Import Library

2014-09-09 Thread Martin Panter
Martin Panter added the comment: I wrote some code that does something like this for a hacky custom readline completer. See the import_list() method at . It looks like I’m using a combination of “sys.builtin_module_names

[issue13881] Stream encoder for zlib_codec doesn't use the incremental encoder

2014-09-09 Thread Martin Panter
Martin Panter added the comment: Even if all these issues aren’t worth fixing, I think the documentation should at least say which codecs work fully (e.g. most text encodings), which ones work suboptimally (e.g. UTF-7), and which ones only work for single-shot encoding and decoding. -

[issue13881] Stream encoder for zlib_codec doesn't use the incremental encoder

2014-09-09 Thread Martin Panter
Martin Panter added the comment: The corresponding stream reader has a related issue which I mentioned in Issue 20132 -- ___ Python tracker ___ _

[issue20132] Many incremental codecs don’t handle fragmented data

2014-09-09 Thread Martin Panter
Martin Panter added the comment: Stream reader interfaces suffer the same problem. Test cases: codecs.getreader("unicode-escape")(BytesIO(br"\u2013")).read(1) codecs.getreader("hex-codec")(BytesIO(b"33")).read(1) codecs.getreader("base64-codec")(BytesIO(b"AA==")).read(1) TestCase().assertEqual(b

[issue22380] Y2K compliance section in FAQ is 14 years too old

2014-09-09 Thread Elizabeth Myers
New submission from Elizabeth Myers: As seen at https://docs.python.org/3/faq/general.html#is-python-y2k-year-2000-compliant; this is 2014 - Y2K compliance hasn't been a relevant topic for, well, 14 years, and I doubt this is a "frequently asked question" nowadays. The "As of August 2003" por

[issue22373] PyArray_FromAny tries to deallocate double: 12 (d)

2014-09-09 Thread Stefan Behnel
Stefan Behnel added the comment: Agreed that it's not a bug in CPython, but my guess is that it's not a bug in NumPy either. The C function you call (which IIRC creates a new NumPy array) almost certainly needs the GIL to protect it against race conditions, and since you mentioned OpenMP, you

[issue22373] PyArray_FromAny tries to deallocate double: 12 (d)

2014-09-09 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> third party status: open -> closed ___ Python tracker ___ ___ Python-bugs-list maili

[issue22366] urllib.request.urlopen shoudl take a "context" (SSLContext) argument

2014-09-09 Thread Alex Gaynor
Alex Gaynor added the comment: Replied to the review; let me know if you agree with my comment. -- assignee: alex -> orsenthil ___ Python tracker ___

[issue22379] Empty exception message of str.join

2014-09-09 Thread Yongzhi Pan
New submission from Yongzhi Pan: In the 2.7 branch, the exception message of str.join is missing when the argument is non-sequence: >>> ' '.join(None) Traceback (most recent call last): File "", line 1, in TypeError I fix this with a patch. After this: >>> ' '.join(None) Traceback (most re

[issue19746] No introspective way to detect ModuleImportFailure in unittest

2014-09-09 Thread Robert Collins
Robert Collins added the comment: Thanks; I'm still learning how to get the system here to jump appropriately :). I thought I'd told hg to reset me to trunk... "You are right about the docs. Reading that, I thought it was saying that errors would have a list of the errors that show up in the

[issue22366] urllib.request.urlopen shoudl take a "context" (SSLContext) argument

2014-09-09 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- assignee: -> alex ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue22378] SO_MARK support for Linux

2014-09-09 Thread jpv
New submission from jpv: Please add support for SO_MARK in socket module. >From man 7 socket: SO_MARK (since Linux 2.6.25): Set the mark for each packet sent through this socket (similar to the netfilter MARK target but socket-based). Changing the mark can be used for mark-based routing

[issue22366] urllib.request.urlopen shoudl take a "context" (SSLContext) argument

2014-09-09 Thread Senthil Kumaran
Senthil Kumaran added the comment: With the final review comment addressed, this could go in. Since you have commit rights, please feel free to commit it. (else, please assign this to me and I will commit and follow up with the buildbots) -- ___ Pyt

[issue19746] No introspective way to detect ModuleImportFailure in unittest

2014-09-09 Thread R. David Murray
R. David Murray added the comment: Your patch isn't diffed against a revision from the cpython repo, and apparently didn't apply cleanly to tip, so no review link was generated. I uploaded a rebased patch to review, but don't actually have any line by line comments. You are right about the

[issue19746] No introspective way to detect ModuleImportFailure in unittest

2014-09-09 Thread R. David Murray
Changes by R. David Murray : Added file: http://bugs.python.org/file36587/issue19746-rebased.patch ___ Python tracker ___ ___ Python-bugs-list

[issue22377] %Z in strptime doesn't match EST and others

2014-09-09 Thread R. David Murray
R. David Murray added the comment: Looking at the code, the only timezone strings it recognizes are utc, gmt, and whatever is in time.tzname (EST and EDT, in my case). This seems...barely useful, although clearly not useless :) And does not seem to be documented. -- nosy: +belopolsky,

[issue22373] PyArray_FromAny tries to deallocate double: 12 (d)

2014-09-09 Thread Josh Rosenberg
Josh Rosenberg added the comment: This sounds like a bug in Numpy. You should probably post it to their tracker: https://github.com/numpy/numpy/issues -- nosy: +josh.rosenberg ___ Python tracker __

[issue22377] %Z in strptime doesn't match EST and others

2014-09-09 Thread Ram Rachum
New submission from Ram Rachum: The documentation for %Z ( https://docs.python.org/3/library/datetime.html#strftime-strptime-behavior ) says it matches `EST` among others, but in practice it doesn't: Python 3.4.0 (v3.4.0:04f714765c13, Mar 16 2014, 19:25:23) [MSC v.1600 64 bit (AMD64)] on

[issue7559] TestLoader.loadTestsFromName swallows import errors

2014-09-09 Thread Robert Collins
Robert Collins added the comment: Raced with your comment. Great - and thanks! -- ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue7559] TestLoader.loadTestsFromName swallows import errors

2014-09-09 Thread Robert Collins
Robert Collins added the comment: This is what I see in my tree: E == ERROR: test_os (unittest.loader.ModuleImportFailure) -- Traceback (most recent call last):

[issue22375] urllib2.urlopen().read().splitlines() opening a directory in a FTP server randomly returns incorrect results

2014-09-09 Thread R. David Murray
R. David Murray added the comment: I think this was already fixed in issue 15002. -- nosy: +orsenthil, r.david.murray ___ Python tracker ___ _

[issue22376] urllib2.urlopen().read().splitlines() opening a directory in a FTP server randomly returns incorrect result

2014-09-09 Thread Alan Evangelista
New submission from Alan Evangelista: Examples in Python command line: Try 1 - >>> import urllib2 urllib2.urlopen('ftp://:@/packages/repodata').read().splitlines() Output: Try 2 - >>> import urllib2 urllib2.urlopen('ftp://:@/packages/repodata').read().splitlines() Output: [] If I

[issue7559] TestLoader.loadTestsFromName swallows import errors

2014-09-09 Thread R. David Murray
R. David Murray added the comment: OK, with both patches applied the output looks good. With a bit of luck I'll have some time to actually review the patches in a couple of hours. -- ___ Python tracker ___

[issue22375] urllib2.urlopen().read().splitlines() opening a directory in a FTP server randomly returns incorrect results

2014-09-09 Thread Alan Evangelista
Changes by Alan Evangelista : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue22375] urllib2.urlopen().read().splitlines() opening a directory in a FTP server randomly returns incorrect results

2014-09-09 Thread Alan Evangelista
New submission from Alan Evangelista: Examples in Python command line: Try 1 - >>> import urllib2 urllib2.urlopen('ftp://:@/packages/repodata').read().splitlines() Output: Try 2 - >>> import urllib2 urllib2.urlopen('ftp://:@/packages/repodata').read().splitlines() Output: [] If I

[issue22374] Replace contextmanager example and improve explanation

2014-09-09 Thread Terry J. Reedy
New submission from Terry J. Reedy: https://docs.python.org/3/library/contextlib.html#contextlib.contextmanager The current html contextmanager example is 'not recommended' for actual use, because there are better ways to accomplish the same goal. To me, is also unsatifactory in that the conte

[issue13272] 2to3 fix_renames doesn't rename string.lowercase/uppercase/letters

2014-09-09 Thread Rose Ames
Rose Ames added the comment: ... d) how to format code :\ -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue13272] 2to3 fix_renames doesn't rename string.lowercase/uppercase/letters

2014-09-09 Thread Rose Ames
Rose Ames added the comment: Changing the imports only is straightforward, but I'm having trouble detecting and changing future uses of the variables, without also clobbering user-defined variables with the same names. I notice some of the current fixers have similar problems, for example the

[issue7559] TestLoader.loadTestsFromName swallows import errors

2014-09-09 Thread Robert Collins
Robert Collins added the comment: You may need to apply the patch from http://bugs.python.org/issue19746 first as well - I was testing with both applied. -- ___ Python tracker __

[issue20752] Difflib should provide the option of overriding the SequenceMatcher

2014-09-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Current status: Tim is currently not actively involved in Python development and no one who is active is enthusiastic about the proposal. Your proposal is to add dependency injection to the initializer for the 4 diff classes by adding 6 new parameters. I will

[issue22369] "context management protocol" vs "context manager protocol"

2014-09-09 Thread R. David Murray
R. David Murray added the comment: Patch looks fine to me. I don't know that the HISTORY/NEWS changes are really needed, but I suppose they don't hurt. -- ___ Python tracker __

[issue22373] PyArray_FromAny tries to deallocate double: 12 (d)

2014-09-09 Thread Riccardo
New submission from Riccardo: Hi, I found this strange behaviour of PyArray_FromAny that manifest only inside a parallel region of openmp. I am using python 2.7.4 and numpy 1.8.0 *** Reference count error detected an attempt was made to deallocate 12 (d) *** and this is due to the PyArray_FromA

[issue22369] "context management protocol" vs "context manager protocol"

2014-09-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: You are right, I missed that the "context manager" is separate term. Here is a patch. -- keywords: +patch stage: -> patch review Added file: http://bugs.python.org/file36585/doc_context_management_protocol.patch

[issue22371] tests failing with -uall and http_proxy and https_proxy set

2014-09-09 Thread Matthias Klose
Matthias Klose added the comment: forgot: some tests fail as well with -uall,-network and configured proxies. -- ___ Python tracker ___ __

[issue22284] decimal module contains less symbols when the _decimal module is missing

2014-09-09 Thread Stefan Krah
Stefan Krah added the comment: I didn't add __all__ to _decimal because of this thread here: https://mail.python.org/pipermail/python-dev/2001-February/012591.html -- components: +Library (Lib) dependencies: -Speed up _decimal import resolution: -> fixed stage: -> resolved status: op

[issue22371] tests failing with -uall and http_proxy and https_proxy set

2014-09-09 Thread Matthias Klose
New submission from Matthias Klose: there are some tests failing when http_proxy and https_proxy is set and the network resource is enabled. I didn't analyze things, but I assume there needs some more fine-grained control about the network resource. the log of such a run is attached. the sys

[issue22284] decimal module contains less symbols when the _decimal module is missing

2014-09-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2b3dbbd2bd92 by Stefan Krah in branch '3.4': Issue #22284: Update decimal.__all__ http://hg.python.org/cpython/rev/2b3dbbd2bd92 New changeset 5bc23c111de1 by Stefan Krah in branch 'default': Issue #22284: Merge 3.4 http://hg.python.org/cpython/rev/5

[issue21147] sqlite3 doesn't complain if the request contains a null character

2014-09-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is revised patch. There is yet one way to create Statement instance (Connection.__call__) and this patch covers it too. -- stage: needs patch -> patch review Added file: http://bugs.python.org/file36583/sqlite_null_2.patch __

[issue22369] "context management protocol" vs "context manager protocol"

2014-09-09 Thread R. David Murray
R. David Murray added the comment: I think "context management protocol" is the better English phrasing. (grepping just for the full phrase I make it 38 vs 22, but I of course I may have missed some that are broken across lines). -- nosy: +r.david.murray _

[issue5309] distutils doesn't parallelize extension module compilation

2014-09-09 Thread Jonas Wagner
Jonas Wagner added the comment: I've checked the `dlopen` issue. This was due to a problem with UndefinedBehaviorSanitizer, and was solved by upgrading to Clang 3.5. It has little to do with this patch. Using this patch and http://bugs.python.org/issue22359 , I now get reliable parallel build

[issue21122] CPython fails to build modules with LLVM LTO on Mac OS X

2014-09-09 Thread Jonas Wagner
Jonas Wagner added the comment: No response for a while, and problem solved... closing. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue22370] pathlib OS detection

2014-09-09 Thread Antony Lee
New submission from Antony Lee: Currently, pathlib contains the following check for the OS in the import section: try: import nt except ImportError: nt = None else: if sys.getwindowsversion()[:2] >= (6, 0): from nt import _getfinalpathname

[issue22369] "context management protocol" vs "context manager protocol"

2014-09-09 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Both terms are used in the documentation. Currently "context manager" wins (with score 225:19 in rst files). We should unify terminology across the documentation. -- assignee: docs@python components: Documentation messages: 226643 nosy: docs@python

[issue4972] context management support in imaplib, smtplib, ftplib

2014-09-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think that's all with this issue. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue22364] Unify error messages of re and regex

2014-09-09 Thread Matthew Barnett
Matthew Barnett added the comment: > re:Cannot process flags argument with a compiled pattern > regex: can't process flags argument with a compiled pattern Error messages usually start with a lowercase letter, and I think that all the other ones in the re module do. By the way, which is pr

[issue4972] context management support in imaplib, smtplib, ftplib

2014-09-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thanks Berker. -- assignee: -> serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailin

[issue14076] sqlite3 module ignores placeholders in CREATE TRIGGER code

2014-09-09 Thread Matthew Barnett
Matthew Barnett added the comment: For comparison: Python 3.1.3: [(b'',)] Python 3.2.5: [(None,)] Python 3.3.5: [(b'',)] Python 3.4.1: sqlite3.OperationalError: trigger cannot use variables -- nosy: +mrabarnett ___ Python tracker

[issue21951] tcl test change crashes AIX

2014-09-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: As Victor noted on IRC, ckalloc() panics and doesn't returns NULL in case of error. We should use attemptckalloc() instead. -- stage: needs patch -> patch review Added file: http://bugs.python.org/file36582/tkinter_ckallock.patch

[issue21951] tcl test change crashes AIX

2014-09-09 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22338] test_json crash on memory allocation failure

2014-09-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Besides my nitpick on Rietveld the patch LGTM. -- nosy: +serhiy.storchaka ___ Python tracker ___ _

[issue22364] Unify error messages of re and regex

2014-09-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, the idea of this issue is to enhance the re module (and the regex module if Matthew will) be picking the best error messages (or writing a new one). -- assignee: -> serhiy.storchaka ___ Python tracker

[issue21270] unittest.mock.call object has inherited count method

2014-09-09 Thread Kushal Das
Kushal Das added the comment: Forgot to attach the patch. Includes NEWS entry. Overriden methods count() and index(). -- keywords: +patch Added file: http://bugs.python.org/file36581/issue21270.patch ___ Python tracker

[issue7559] TestLoader.loadTestsFromName swallows import errors

2014-09-09 Thread R. David Murray
R. David Murray added the comment: Thanks for tackling this. It's been bugging me almost daily this past week, but as usual when this bug is in my face I had no time to actually work on a fix. I applied this patch to default, put an invalid import in test_os, and this is the result: rdmurr

[issue7744] Allow site.addsitedir insert to beginning of sys.path

2014-09-09 Thread Michael R. Bernstein
Michael R. Bernstein added the comment: The lack of a left-append option for site.addsitedir(path), or an site.insertsitedir(index, path) (which is what I would consider a better solution), causes quite a few contortions on some hosted platforms, notably Google App Engine, for vendored package

[issue22359] Remove incorrect uses of recursive make

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

[issue18232] running a suite with no tests is not an error

2014-09-09 Thread Michael Foord
Michael Foord added the comment: I'd agree that a test run that actually runs zero tests almost always indicates an error, and it would be better if this was made clear. I have this problem a great deal with Go, where the test tools are awful, and it's very easy to think you have a successful

[issue1525806] Tkdnd mouse cursor handling patch

2014-09-09 Thread Philippe Devalkeneer
Changes by Philippe Devalkeneer : -- nosy: +flupke ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue19494] urllib2.HTTPBasicAuthHandler (or urllib.request.HTTPBasicAuthHandler) doesn't work with GitHub API v3 and similar

2014-09-09 Thread Matej Cepl
Matej Cepl added the comment: > The patch for Python 3.5, however, looks great. So, could we get some resolution here, please? Before this bug celebrates a first birthday, could somebody decide what to do? Whom should I pester? Who has the responsibility to make a decision? -- __

[issue22361] Ability to join() threads in concurrent.futures.ThreadPoolExecutor

2014-09-09 Thread Luca Falavigna
Luca Falavigna added the comment: There is indeed little benefit in freeing up resources left open by a unused thread, but it could be worth closing it for specific needs (e.g. thread processes sensible information) or in embedded systems with very low resources. -- __

[issue22326] tempfile.TemporaryFile fails on NFS v4 filesystems

2014-09-09 Thread Frank Thommen
Frank Thommen added the comment: It might be an issue of strict ACL mapping (http://wiki.linux-nfs.org/wiki/index.php/ACLs) is implemented. On our ZFS based NFS v4 server this is the case, on CentOS based NFS v4 servers this doesn't seem to be implemented/enforced. It becomes then still a Py

[issue22363] argparse AssertionError with add_mutually_exclusive_group and help=SUPPRESS

2014-09-09 Thread Zacrath
Zacrath added the comment: I've confirmed that this is a duplicate of issue 17890. In case anyone needs it, a workaround is to move the mutually exclusive group to the end of the arguments. -- ___ Python tracker

[issue11874] argparse assertion failure with brackets in metavars

2014-09-09 Thread Zacrath
Changes by Zacrath : -- nosy: +Zacrath ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/