[issue24168] Unittest discover fails with namespace package if the path contains the string same as the module name

2015-06-04 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: If you need a test case, try https://gitlab.com/warsaw/flufl.lock -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24168 ___

[issue24385] libpython27.a in python-2.7.10 i386 (windows msi release) contains 64-bit objects

2015-06-04 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +paul.moore ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24385 ___ ___

[issue24351] string.Template documentation incorrectly references identifiers

2015-06-04 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: docs@python - barry nosy: +barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24351 ___

[issue24294] DeprecationWarnings should be visible by default in the interactive REPL

2015-06-04 Thread Nathaniel Smith
Nathaniel Smith added the comment: For whatever it's worth as a non-core-developer, the patch looks good to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24294 ___

[issue24376] xxlimited.c errors when building 32 and 64 bit on Windows

2015-06-04 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: -- assignee: - steve.dower resolution: - fixed stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24376

[issue24371] configparser hate dot in option like eth2.6

2015-06-04 Thread Zachary Ware
Zachary Ware added the comment: Am I missing something here? Python 3.6.0a0 (default:c2c3b79ba992, Jun 4 2015, 10:24:23) from configparser import ConfigParser cp = ConfigParser() cp.read_string(\ ... [remember] ... eth2.6 = True ... eth5 = True ... ) cp['remember']['eth2.6'] 'True'

[issue24352] Provide a way for assertLogs to optionally not hide the logging output

2015-06-04 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: -- nosy: +zach.ware ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24352 ___ ___ Python-bugs-list

[issue24384] difflib.SequenceMatcher faster quick_ratio with lower bound specification

2015-06-04 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- nosy: +tim.peters ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24384 ___ ___

[issue8232] webbrowser.open incomplete on Windows

2015-06-04 Thread Larry Hastings
Larry Hastings added the comment: Go ahead for beta 3. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8232 ___ ___ Python-bugs-list mailing list

[issue24385] libpython27.a in python-2.7.10 i386 (windows msi release) contains 64-bit objects

2015-06-04 Thread Matthew Barnett
Matthew Barnett added the comment: Here's how I can build the regex module on Windows 8.1, 64-bit, using only MinGW64. For Python 3.5, I can link against python35.dll, but for earlier versions, including Python 2.7, I need libpython??.a. I have built regex module for all of the 16 supported

[issue24385] libpython27.a in python-2.7.10 i386 (windows msi release) contains 64-bit objects

2015-06-04 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: -- assignee: - steve.dower components: +Build, Installation, Windows -Library (Lib) nosy: +steve.dower, tim.golden, zach.ware ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24385

[issue24386] Bug Tracker emails going to gmail spam

2015-06-04 Thread Graham Oliver
New submission from Graham Oliver: I noticed that when I created an issue in this Bug Tracjer all of the associated emails were ending up in my gmail spam. '...in violation of Google's recommended email sender guidelines.' An explanatory link sends me to

[issue24386] Bug Tracker emails going to gmail spam

2015-06-04 Thread R. David Murray
R. David Murray added the comment: There are already open issues about this in the meta tracker. (See the 'report tracker problem' link at the bottom of the left column.) -- resolution: - duplicate stage: - resolved status: open - closed ___

[issue24385] libpython27.a in python-2.7.10 i386 (windows msi release) contains 64-bit objects

2015-06-04 Thread Jan Harkes
New submission from Jan Harkes: mingw32 fails to link with libpython27.a fails with the following error /cygdrive/C/Python27/libs/libpython27.a: error adding symbols: File format not recognized extracting all the objects from libpython27.a and checking them with objdump shows that two

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-06-04 Thread Ryan Gonzalez
Ryan Gonzalez added the comment: #1 and #2 are fixed. I hand-edited the patch file (!!), so here's to hoping it'll work... Working on #3. You probably should try the tests now (which is obviously the scary part ;). -- Added file: http://bugs.python.org/file39628/kbox_fix.patch

[issue8232] webbrowser.open incomplete on Windows

2015-06-04 Thread Brandon Milam
Brandon Milam added the comment: Here's a patch addressing all of the comments in the review. Changing the browsers from a set to a list though resulted in duplicates in the _tryorder list that were not present before because the set had filtered the duplicates before the partial string

[issue24148] 'cum' not a valid sort key for pstats.Stats.sort_stats

2015-06-04 Thread Brandon Milam
Brandon Milam added the comment: They are correct. 'cum' is not one of the available keywords and so here is the fix changing it to say 'cumulative' for consistency as ramiro suggested. -- keywords: +patch nosy: +jbmilam Added file:

[issue24383] consider implementing __await__ on concurrent.futures.Future

2015-06-04 Thread Yury Selivanov
Changes by Yury Selivanov yseliva...@gmail.com: -- versions: -Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24383 ___ ___

[issue24168] Unittest discover fails with namespace package if the path contains the string same as the module name

2015-06-04 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: -- nosy: +barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24168 ___ ___ Python-bugs-list mailing

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-06-04 Thread Ryan Gonzalez
Ryan Gonzalez added the comment: Fixes for readline and _crypt done. -- Added file: http://bugs.python.org/file39629/lib_fixes.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23496 ___

[issue24385] libpython27.a in python-2.7.10 i386 (windows msi release) contains 64-bit objects

2015-06-04 Thread Benjamin Gilbert
Changes by Benjamin Gilbert bgilb...@backtick.net: -- nosy: +bgilbert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24385 ___ ___ Python-bugs-list

[issue24385] libpython27.a in python-2.7.10 i386 (windows msi release) contains 64-bit objects

2015-06-04 Thread Steve Dower
Steve Dower added the comment: Given I can't generate the file any other way that will be compatible for everyone, unless someone contributes a fix I'm going to stop shipping these files and let people generate them using whatever tools they have. If anyone wants to suggest instructions then

[issue24383] consider implementing __await__ on concurrent.futures.Future

2015-06-04 Thread Yury Selivanov
Changes by Yury Selivanov yseliva...@gmail.com: Added file: http://bugs.python.org/file39622/concurrent.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24383 ___

[issue24376] xxlimited.c errors when building 32 and 64 bit on Windows

2015-06-04 Thread Mark Lawrence
Mark Lawrence added the comment: Now compiles, thanks guys :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24376 ___ ___ Python-bugs-list

[issue24383] consider implementing __await__ on concurrent.futures.Future

2015-06-04 Thread Yury Selivanov
Yury Selivanov added the comment: Yuri, is that possible? Please see my previous comment and the attached patch :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24383 ___

[issue24383] consider implementing __await__ on concurrent.futures.Future

2015-06-04 Thread Yury Selivanov
Changes by Yury Selivanov yseliva...@gmail.com: -- assignee: yselivanov components: Library (Lib), asyncio nosy: gvanrossum, haypo, scoder, yselivanov priority: normal severity: normal status: open title: consider implementing __await__ on concurrent.futures.Future type: enhancement

[issue24383] consider implementing __await__ on concurrent.futures.Future

2015-06-04 Thread Yury Selivanov
New submission from Yury Selivanov: Maybe it's possible to give an interpretation to awaiting on a threaded Future? __await__ could return a new asyncio Future, and add a completion callback to the original Future that makes the asyncio Future ready and transfers the result/exception. This

[issue24383] consider implementing __await__ on concurrent.futures.Future

2015-06-04 Thread Yury Selivanov
Yury Selivanov added the comment: Added a unittest for cancellation -- Added file: http://bugs.python.org/file39621/concurrent.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24383 ___

[issue24382] Fail to build time module on Mac

2015-06-04 Thread Ned Deily
Ned Deily added the comment: Yes, try make distclean. I am unable to reproduce the problem and don't see why your proposed patch would make a difference. -- resolution: - works for me stage: - resolved status: pending - closed ___ Python tracker

[issue24017] Implemenation of the PEP 492 - Coroutines with async and await syntax

2015-06-04 Thread Yury Selivanov
Yury Selivanov added the comment: Guido, Stefen, please see issue24383. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24017 ___ ___

[issue24383] consider implementing __await__ on concurrent.futures.Future

2015-06-04 Thread Guido van Rossum
Guido van Rossum added the comment: So in issue24017 I wrote: Maybe it's possible to give an interpretation to awaiting on a threaded Future? __await__ could return a new asyncio Future, and add a completion callback to the original Future that makes the asyncio Future ready and transfers the

[issue24383] consider implementing __await__ on concurrent.futures.Future

2015-06-04 Thread Guido van Rossum
Changes by Guido van Rossum gu...@python.org: -- Removed message: http://bugs.python.org/msg244833 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24383 ___

[issue24382] Fail to build time module on Mac

2015-06-04 Thread Zachary Ware
Zachary Ware added the comment: See discussion on #24244, I think this is an issue with your checkout rather than the code. -- nosy: +zach.ware status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24382

[issue24383] consider implementing __await__ on concurrent.futures.Future

2015-06-04 Thread Yury Selivanov
Changes by Yury Selivanov yseliva...@gmail.com: -- Removed message: http://bugs.python.org/msg244834 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24383 ___

[issue24378] dir(dictobject) returns empty list when __getattribute__ is overriden in the class

2015-06-04 Thread R. David Murray
R. David Murray added the comment: If you override __getattribute__ it is your responsibility to fulfill its contract, so your method is the one that needs to catch the KeyError and return the expected AttributeError. -- nosy: +r.david.murray resolution: - not a bug stage: -

[issue24382] Fail to build time module on Mac

2015-06-04 Thread Vajrasky Kok
Vajrasky Kok added the comment: Here is the error message: building 'time' extension gcc -Wno-unused-result -Wsign-compare -g -O0 -Wall -Wstrict-prototypes -Werror=declaration-after-statement -I./Include -I. -IInclude -I/usr/local/include -I/Users/sky/Code/python/cpython/Include

[issue24374] Plug refleak in set_coroutine_wrapper

2015-06-04 Thread Yury Selivanov
Changes by Yury Selivanov yseliva...@gmail.com: -- resolution: - fixed stage: patch review - resolved status: open - closed type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24374

[issue24374] Plug refleak in set_coroutine_wrapper

2015-06-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3f2bf0ff262c by Yury Selivanov in branch '3.5': Issue 24374: Plug refleak in set_coroutine_wrapper https://hg.python.org/cpython/rev/3f2bf0ff262c New changeset 68f40b6448b9 by Yury Selivanov in branch 'default': Issue 24374: Plug refleak in

[issue24382] Fail to build time module on Mac

2015-06-04 Thread Vajrasky Kok
New submission from Vajrasky Kok: On my OSX Yosemite 10 with GCC 4.2.1 Compatible Apple LLVM 6.1.0 (clang-602.0.53), I fail to build time module. Failed to build these modules: time Here is the patch to fix the compile error. -- components: Macintosh files:

[issue24379] slice.literal notation

2015-06-04 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, I like this idea. -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24379 ___ ___

[issue24379] slice.literal notation

2015-06-04 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24379 ___

[issue23237] Interrupts are lost during readline PyOS_InputHook processing (reopening)

2015-06-04 Thread Martin Panter
Martin Panter added the comment: Hi Michiel, if you are looking for the source of https://docs.python.org/dev/c-api/veryhigh.html#c.PyOS_InputHook, that corresponds to Doc/c-api/veryhigh.rst in the repository. This bug would be fairly easy to solve for “tkinter” if we could drop the

[issue24379] slice.literal notation

2015-06-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Why not index the slice type itself? slice[1:2] Another feature of the new `literal` object is that it is not limited to just the creation of `slice` instances; instead, it is designed to mix slices and other types together. This looks as disadvantage.

[issue24383] consider implementing __await__ on concurrent.futures.Future

2015-06-04 Thread Yury Selivanov
Yury Selivanov added the comment: Alternative patch with monkeypatching instead of Future subclassing. -- Added file: http://bugs.python.org/file39623/concurrent_alt.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24383

[issue24383] consider implementing __await__ on concurrent.futures.Future

2015-06-04 Thread Guido van Rossum
Guido van Rossum added the comment: Sorry, I don't like that either. See my review. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24383 ___ ___

[issue24383] consider implementing __await__ on concurrent.futures.Future

2015-06-04 Thread Yury Selivanov
Changes by Yury Selivanov yseliva...@gmail.com: Added file: http://bugs.python.org/file39624/concurrent.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24383 ___

[issue24373] Use traverse finalize in xxlimited and in PEP 489 tests

2015-06-04 Thread Nick Coghlan
Nick Coghlan added the comment: Would it also be worth making at docs update to tp_dealloc, suggesting the use of tp_traverse/finalize?: https://docs.python.org/3/c-api/typeobj.html#c.PyTypeObject.tp_dealloc And perhaps from PyType_FromSpec?

[issue24374] Plug refleak in set_coroutine_wrapper

2015-06-04 Thread Nick Coghlan
Nick Coghlan added the comment: Ah, I'd missed that the previous code wouldn't clean up properly in the failure case. +1 for inlining the check and using the existing error label. -- ___ Python tracker rep...@bugs.python.org

[issue24373] Use traverse finalize in xxlimited and in PEP 489 tests

2015-06-04 Thread Petr Viktorin
Petr Viktorin added the comment: tp_traverse is completely orthogonal to tp_dealloc, it's needed to detect (and then break) reference cycles like: obj = xxlimited.Xxo() obj.foo = obj As for tp_finalize: yes, mentioning it in tp_dealloc docs would be good, but I'll need a bit more

[issue24373] Use traverse finalize in xxlimited and in PEP 489 tests

2015-06-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 265eeb60443a by Nick Coghlan in branch '3.5': Issue #24373: Eliminate PEP 489 test refleaks https://hg.python.org/cpython/rev/265eeb60443a New changeset f24cd8bc5250 by Nick Coghlan in branch 'default': Merge fix for issue #24373 from 3.5

[issue16690] Reference leak with custom tp_dealloc in PyType_FromSpec

2015-06-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 265eeb60443a by Nick Coghlan in branch '3.5': Issue #24373: Eliminate PEP 489 test refleaks https://hg.python.org/cpython/rev/265eeb60443a -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org

[issue5319] stdout error at interpreter shutdown fails to return OS error status

2015-06-04 Thread Martin Panter
Martin Panter added the comment: I guess this would involve: * Making a new API called Py_Finalize2() or something that returns the status * Redefine the existing Py_Finalize() to call Py_Finalize2() and ignore the return value -- ___ Python

[issue24384] difflib.SequenceMatcher faster quick_ratio with lower bound specification

2015-06-04 Thread floyd
floyd added the comment: Now that I gave it another thought, I think it would be better if we simply add threshold as a named parameter of quick_ratio -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24384

[issue24383] consider implementing __await__ on concurrent.futures.Future

2015-06-04 Thread Guido van Rossum
Guido van Rossum added the comment: Thinking about this more I think we should pass on this for now. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24383 ___

[issue24384] difflib.SequenceMatcher faster quick_ratio with lower bound specification

2015-06-04 Thread floyd
New submission from floyd: I guess a lot of users of difflib call the SequenceMatcher in the following way (where a and b often have different lengths): if difflib.SequenceMatcher.quick_ratio(None, a, b) = threshold: However, for this use case the current quick_ratio is quite a performance

[issue5319] stdout error at interpreter shutdown fails to return OS error status

2015-06-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: We would probably call it Py_FinalizeEx(), but yes. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5319 ___

[issue24373] Use traverse finalize in xxlimited and in PEP 489 tests

2015-06-04 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- resolution: - fixed stage: - resolved status: open - closed type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24373 ___

[issue24017] Implemenation of the PEP 492 - Coroutines with async and await syntax

2015-06-04 Thread Yury Selivanov
Yury Selivanov added the comment: Hmm, but IMHO a) the new syntax isn't just for asyncio and b) awaiting a Future seems like a *very* reasonable thing to do. I think opening a new ticket for this is a good idea. Stefan, I honestly have bo idea what concurrent.Future.__await__ would do.

[issue24379] slice.literal notation

2015-06-04 Thread Mark Dickinson
Mark Dickinson added the comment: For prior art, it's worth taking a look at NumPy, and in particular its `s_` and `index_exp` functions: import numpy as np np.s_[1:2] slice(1, 2, None) np.s_[0] 0 np.s_[1:2, 3] (slice(1, 2, None), 3) -- nosy: +mark.dickinson

[issue24379] slice.literal notation

2015-06-04 Thread Joe Jevnik
Joe Jevnik added the comment: Why not index the slice type itself? slice[1:2] I originally considered this and I personally really like this syntax, but I was concerned with ambiguity with the typing module The only question in my mind is what slice should do when given just a single