[issue24782] Merge 'configure extensions' into main IDLE config dialog

2015-10-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: Nice. The only changes I had to make other than a doc change are 'Settings tab' to 'Extensions tab' and deletion of an line-ending space that got added in editing the extension doc string. We both need to remember to strip trailing whitespace, as it causes

[issue24782] Merge 'configure extensions' into main IDLE config dialog

2015-10-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 334dc1abc8af by Terry Jan Reedy in branch '2.7': Issue #24782: Finish converting the Configure Extension dialog into a new https://hg.python.org/cpython/rev/334dc1abc8af New changeset 5647c61fb593 by Terry Jan Reedy in branch '3.4': Issue #24782:

[issue25194] Opt-in motivations & affiliations page for core contributors

2015-10-13 Thread Nick Coghlan
Nick Coghlan added the comment: I'm about to hop on a plane to PyCon Poland, so David, how about you just go ahead and add your entry? After some reflection, I've realised we probably don't want to be too prescriptive regarding the personal bios, and can instead let patterns & themes emerge

[issue25386] msvcrt_putch/msvcrt_putwch don't check the return value of _putch/_putwch

2015-10-13 Thread Eric V. Smith
Eric V. Smith added the comment: Although the function names have changed (I think due to Argument Clinic), the reported issue still applies to the current code: https://hg.python.org/cpython/file/tip/PC/msvcrtmodule.c#l309 I'll let other decide if the change is actually desirable. It would

[issue25384] Use _PyBytesWriter in the binascii module

2015-10-13 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue25384] Use _PyBytesWriter in the binascii module

2015-10-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset d6fcda2b9b5e by Victor Stinner in branch 'default': Issue #25384: Use _PyBytesWriter API in binascii https://hg.python.org/cpython/rev/d6fcda2b9b5e -- nosy: +python-dev ___ Python tracker

[issue22684] message.as_bytes() produces recursion depth exceeded

2015-10-13 Thread Jan Malte
Jan Malte added the comment: Are there any news about this bug report? -- nosy: +janmalte ___ Python tracker ___

[issue24164] Support pickling objects with __new__ with keyword arguments with protocol 2+

2015-10-13 Thread STINNER Victor
STINNER Victor added the comment: Serhiy Storchaka added the comment: > Could you please look at proposed documentation changes? Sure, done. -- ___ Python tracker

[issue25390] Can't define a typing.Union containing a typing.re.Pattern

2015-10-13 Thread Martí Congost Tapias
New submission from Martí Congost Tapias: Defining a union of typing.re.Pattern and anything that isn't AnyStr raises a TypeError exception. Example: from typing import Union, re def foo(pattern: Union[str, re.Pattern]) -> None: pass Exception traceback: Traceback (most recent call

[issue25390] Can't define a typing.Union containing a typing.re.Pattern

2015-10-13 Thread Xiang Zhang
Changes by Xiang Zhang <18518281...@126.com>: -- nosy: +xiang.zhang ___ Python tracker ___ ___

[issue25391] difflib.SequenceMatcher(...).ratio gives bad/wrong/unexpected low value with repetitous strings

2015-10-13 Thread Lewis Haley
New submission from Lewis Haley: Consider the following snippet: import difflib first = u'location,location,location' for second in ( u'location.location.location', # two periods (no commas) u'location.location,location', # period after first u'location,location.location', #

[issue25391] difflib.SequenceMatcher(...).ratio gives bad/wrong/unexpected low value with repetitious strings

2015-10-13 Thread Lewis Haley
Changes by Lewis Haley : -- title: difflib.SequenceMatcher(...).ratio gives bad/wrong/unexpected low value with repetitous strings -> difflib.SequenceMatcher(...).ratio gives bad/wrong/unexpected low value with repetitious strings

[issue25389] It crashes as long as I press "(parenthese)

2015-10-13 Thread IvenDong
New submission from IvenDong: Process: Python [1100] Path: /Applications/Python 3.5/IDLE.app/Contents/MacOS/Python Identifier:org.python.IDLE Version: 3.5.0rc4 (3.5.0rc4) Code Type: X86 (Native) Parent Process:??? [1]

[issue25381] Doc: Use of old description of raise in Python3

2015-10-13 Thread R. David Murray
R. David Murray added the comment: There's also the fact that the argument to raise can be an exception class, but the second element of sys.exc_info is still an instance of that class, which only occurred to me while reading your revised patch. -- stage: patch review -> needs patch

[issue25392] setup.py --quiet doesn't silence "no previously-included directories" warnings from MANIFEST.in

2015-10-13 Thread Ionel Cristian Mărieș
Ionel Cristian Mărieș added the comment: I think those warning are about the fact that stuff that ain't in the packages list are added on PYTHONPATH. Not 100% sure tho. Nothing to do with MANIFEST.in (not used for develop). Plus it's more specific to setuptools (where develop is implemented)

[issue9208] SMTPHandler in the logging module does not handle unicode strings

2015-10-13 Thread R. David Murray
R. David Murray added the comment: In 3.4/3.5 a better fix would be to use EmailMessage instead of Message, and smtp.send_message instead of smtp.sendmail. That will do the right thing, where "the right thing" is defined as defaulting to utf-8 for both headers and body. A specific

[issue9208] SMTPHandler in the logging module does not handle unicode strings

2015-10-13 Thread R. David Murray
R. David Murray added the comment: To clarify: it will default to utf-8 encoded for email transport. (Since email now supports SMTPUTF8, what I said could have meant defaulting to that, which it does *not* do.) -- ___ Python tracker

[issue25391] difflib.SequenceMatcher(...).ratio gives bad/wrong/unexpected low value with repetitious strings

2015-10-13 Thread Allan Lewis
Changes by Allan Lewis : -- nosy: +Allan Lewis ___ Python tracker ___ ___

[issue25381] Doc: Use of old description of raise in Python3

2015-10-13 Thread Xiang Zhang
Xiang Zhang added the comment: Actually what I intend is that the exception object passed to raise is the exception instance raise finally throws (what is stored in the second variable). So it seems wise not to do any more for me. A single sentence has lead to confusion, not to mention more.

[issue25392] setup.py --quiet doesn't silence "no previously-included directories" warnings from MANIFEST.in

2015-10-13 Thread Ned Batchelder
Ned Batchelder added the comment: You are right that "develop" is from setuptools. The same messages appear with "sdist": $ python setup.py --quiet sdist no previously-included directories found matching 'doc/_build' no previously-included directories found matching

[issue25392] setup.py --quiet doesn't silence "no previously-included directories" warnings from MANIFEST.in

2015-10-13 Thread Ned Batchelder
New submission from Ned Batchelder: The MANIFEST.in file for coverage.py excludes directories line doc/_build. If I run "python setup.py --quiet develop", I get output like this: python3.5 setup.py --quiet develop no previously-included directories found matching 'doc/_build' no

[issue25389] It crashes as long as I press "(parenthese)

2015-10-13 Thread Ned Deily
Ned Deily added the comment: Unfortunately, the version of Tcl/Tk shipped by Apple in OS X is old and buggy. Please install an updated version of Tcl/Tk 8.5, for example from ActiveState, as explained here: https://www.python.org/download/mac/tcltk/ -- resolution: -> third party

[issue25390] Can't define a typing.Union containing a typing.re.Pattern

2015-10-13 Thread Martí Congost Tapias
Changes by Martí Congost Tapias : -- components: +Library (Lib) -Interpreter Core ___ Python tracker ___

[issue9208] SMTPHandler in the logging module does not handle unicode strings

2015-10-13 Thread simon04
simon04 added the comment: I don't see why/how this should be fixed in Python 3. Using the example from msg109621 and Python 3.5.0, I get: --- Logging error --- Traceback (most recent call last): File "/usr/lib/python3.5/logging/handlers.py", line 985, in emit smtp.sendmail(self.fromaddr,

[issue25393] 'resource' module documentation error

2015-10-13 Thread Christos Georgiou
New submission from Χρήστος Γεωργίου (Christos Georgiou): https://docs.python.org/3.5/library/resource.html https://docs.python.org/3.5/library/resource.html#resource.RLIMIT_FSIZE ends with the sentence "This only affects the stack of the main thread in a multi-threaded process." I believe

[issue1353344] python.desktop

2015-10-13 Thread Shubham Dash
Changes by Shubham Dash : Added file: http://bugs.python.org/file40768/python.desktop ___ Python tracker ___

[issue21159] configparser.InterpolationMissingOptionError is not very intuitive

2015-10-13 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: The failure is in the configglue test suite, but apparently also kazan and qutebrowser are also affected by this change. In the Launchpad bug there's a link to a librarian build log result. The problem is that doing the .get() requires that subclasses

[issue25391] difflib.SequenceMatcher(...).ratio gives bad/wrong/unexpected low value with repetitious strings

2015-10-13 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- nosy: +tim.peters ___ Python tracker ___ ___

[issue25390] Can't define a typing.Union containing a typing.re.Pattern

2015-10-13 Thread Guido van Rossum
Guido van Rossum added the comment: Confirmed. The failure is because Pattern is _TypeAlias, which is not a type. But it should be allowed. I'll think of something. (Does mypy accept this?) -- nosy: +gvanrossum ___ Python tracker

[issue25390] Can't define a typing.Union containing a typing.re.Pattern

2015-10-13 Thread Guido van Rossum
Changes by Guido van Rossum : -- assignee: -> gvanrossum ___ Python tracker ___ ___

[issue21159] configparser.InterpolationMissingOptionError is not very intuitive

2015-10-13 Thread R. David Murray
R. David Murray added the comment: OK, so I guess it should be backed out in 3.4. But the since the patch does not change the signature of get, it seems like it is a legitimate change for 3.5. It is using the public API, after all. -- ___ Python

[issue25385] Spurious warning when compiling extension module

2015-10-13 Thread Steve Dower
Steve Dower added the comment: This should be fixed in numpy.distutils. The warning exists in distutils.msvccompiler, which is deprecated and only remains in case people were importing it directly (the only reference in the stdlib is the test suite). --

[issue25385] Spurious warning when compiling extension module

2015-10-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Do you have a reference or changeset to point to, so that the Numpy developers can understand easily what the issue is? -- ___ Python tracker

[issue25394] CoroWrapper breaks gen.throw

2015-10-13 Thread Chris Seto
Changes by Chris Seto : -- keywords: +patch Added file: http://bugs.python.org/file40770/corowrapper.diff ___ Python tracker ___

[issue21159] configparser.InterpolationMissingOptionError is not very intuitive

2015-10-13 Thread R. David Murray
R. David Murray added the comment: Or are you saying the existing code is actually depending on the old value of rawval, which is what Łukasz was worried about? -- ___ Python tracker

[issue25394] CoroWrapper breaks gen.throw

2015-10-13 Thread Chris Seto
New submission from Chris Seto: When asyncio.coroutines._DEBUG is set to True all coroutines are wrapped in a CoroWrapper. The definition of CoroWrapper.throw only excepts a single argument, exc. It should accept an exception info tuple as returned from sys.exc_info just as normal generators

[issue25396] A Python runtime not could be located.

2015-10-13 Thread Brian
New submission from Brian: Hello - I'm new to this community and an system error brings me here. Thank you all in advance for any help and support! I'm using a MacBook Pro (Retina, 15-inch, Late 2013) with OS 10.11 El Capitan. I receive the following error every 15-30 minutes:

[issue25395] SIGSEGV using json.tool

2015-10-13 Thread R. David Murray
Changes by R. David Murray : -- nosy: +serhiy.storchaka stage: -> needs patch versions: +Python 3.6 ___ Python tracker ___

[issue17908] Unittest runner needs an option to call gc.collect() after each test

2015-10-13 Thread Adam
Adam added the comment: Any comments about this proposed patch? -- ___ Python tracker ___ ___

[issue17908] Unittest runner needs an option to call gc.collect() after each test

2015-10-13 Thread STINNER Victor
STINNER Victor added the comment: While I like the idea of adding an option to force a garbage collection after running each time, I don't like how unittest is growing :-( It looks more and more like regrtest and I hate regrtest (I reworked its code recently to create a less ugly

[issue25395] SIGSEGV using json.tool

2015-10-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Doesn't crash on 3.4.3. Crashes on 3.5.0. The crash is reproduced with Python-only implementation of json, therefore it is not related to json. -- nosy: +haypo priority: normal -> high ___ Python tracker

[issue25395] SIGSEGV using json.tool

2015-10-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: 3.6.0a0 (de982d8b7b15) #0 0x080e62a1 in _PyTrash_thread_destroy_chain () at Objects/object.c:2010 #1 0x080bf8b3 in frame_dealloc (f=f@entry=0x83f06e4) at Objects/frameobject.c:462 #2 0x080e3eef in _Py_Dealloc (op=op@entry=0x83f06e4) at

[issue25392] setup.py --quiet doesn't silence "no previously-included directories" warnings from MANIFEST.in

2015-10-13 Thread Ben Finney
Changes by Ben Finney : -- nosy: +bignose ___ Python tracker ___ ___

[issue25395] SIGSEGV using json.tool

2015-10-13 Thread Simonas Kazlauskas
New submission from Simonas Kazlauskas: cat attachment | python -m json.tool reliably makes python to SIGSEGV on Arch linux $ python --version Python 3.5.0 $ uname -a Linux kumabox 4.2.2-1-ARCH #1 SMP PREEMPT Tue Sep 29 22:21:33 CEST 2015 x86_64 GNU/Linux Does not fail on 2.7.10. --

[issue25370] Add support of pickling very large bytes and str objects with protocol < 4

2015-10-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is preliminary patch. It doesn't include changes to tests. Some bigmem tests need to be changed. -- keywords: +patch stage: -> patch review Added file: http://bugs.python.org/file40774/pickle_large_strings.patch

[issue25395] SIGSEGV using json.tool

2015-10-13 Thread STINNER Victor
STINNER Victor added the comment: Can you post a GDB traceback? -- ___ Python tracker ___ ___

[issue24980] Allow for providing 'on_new_thread' callback to 'concurrent.futures.ThreadPoolExecutor'

2015-10-13 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___

[issue24980] Allow for providing 'on_new_thread' callback to 'concurrent.futures.ThreadPoolExecutor'

2015-10-13 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +bquinlan ___ Python tracker ___ ___

[issue25391] difflib.SequenceMatcher(...).ratio gives bad/wrong/unexpected low value with repetitious strings

2015-10-13 Thread Tim Peters
Tim Peters added the comment: Do note that this is not an "edit distance" (like Levenshtein) algorithm. It works as documented instead ;-) , searching (in effect recursively) for the leftmost longest contiguous matching blocks. Both "leftmost" and "contiguous" are crucial to understanding

[issue25382] pickletools.dis(): output memo id for MEMOIZE

2015-10-13 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue24164] Support pickling objects with __new__ with keyword arguments with protocol 2+

2015-10-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thanks. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue25385] Spurious warning when compiling extension module

2015-10-13 Thread Steve Dower
Steve Dower added the comment: Issue #23970 added the new compiler class, but all that really changed is that the module name is now distutils._msvccompiler. You *still* shouldn't access it except through distutils.ccompiler.new_compiler(compiler='msvc'), which is how it always was. I can't

[issue21159] configparser.InterpolationMissingOptionError is not very intuitive

2015-10-13 Thread R. David Murray
R. David Murray added the comment: By the way, I won't argue a lot if you say we should go for the strict backward compatibility view even in 3.5, I'm more raising the question. -- ___ Python tracker

[issue25382] pickletools.dis(): output memo id for MEMOIZE

2015-10-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset d88526aa1b29 by Serhiy Storchaka in branch 'default': Issue #25382: pickletools.dis() now outputs implicit memo index for the https://hg.python.org/cpython/rev/d88526aa1b29 -- nosy: +python-dev ___

[issue25380] Incorrect protocol for the STACK_GLOBAL opcode

2015-10-13 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue14574] SocketServer doesn't handle client disconnects properly

2015-10-13 Thread Jason Morawski
Jason Morawski added the comment: Found another issue with this in 2.7 If the socket.error gets raised from the call to self.wfile.flush(), then when self.wfile.close() is called, self.wfile.flush() is called a second time if self.wfile._wbuf is not empty. This will raise the socket.error

[issue24164] Support pickling objects with __new__ with keyword arguments with protocol 2+

2015-10-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Documentation patch updated. -- Added file: http://bugs.python.org/file40771/pickle_new_ex_protocol_2_doc_2.patch ___ Python tracker

[issue25380] Incorrect protocol for the STACK_GLOBAL opcode

2015-10-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset e52f1fa2d10e by Serhiy Storchaka in branch '3.4': Issue #25380: Fixed protocol for the STACK_GLOBAL opcode in https://hg.python.org/cpython/rev/e52f1fa2d10e New changeset 4115eabc3a6d by Serhiy Storchaka in branch '3.5': Issue #25380: Fixed

[issue25391] difflib.SequenceMatcher(...).ratio gives bad/wrong/unexpected low value with repetitious strings

2015-10-13 Thread Tim Peters
Tim Peters added the comment: BTW, the "leftmost longest contiguous" bit is messy to explain, so the main part of the docs don't explain it all (it's of no interest to 99.9% of users). Instead it's formally defined in the .find_longest_match() docs: """ If isjunk was omitted or None,

[issue24164] Support pickling objects with __new__ with keyword arguments with protocol 2+

2015-10-13 Thread STINNER Victor
STINNER Victor added the comment: pickle_new_ex_protocol_2_doc_2.patch looks good to me. -- ___ Python tracker ___

[issue24164] Support pickling objects with __new__ with keyword arguments with protocol 2+

2015-10-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset de982d8b7b15 by Serhiy Storchaka in branch 'default': Issue #24164: Document changes to __getnewargs__ and __getnewargs_ex__. https://hg.python.org/cpython/rev/de982d8b7b15 -- ___ Python tracker

[issue25396] A Python runtime not could be located.

2015-10-13 Thread Zachary Ware
Zachary Ware added the comment: Sorry, this is not the appropriate place to look for help with this issue; it's not a bug with Python itself. I'd suggest asking on a Mac help forum. There was a similar question on python-list a few months ago, you might find some pointers in that thread:

[issue25386] msvcrt_putch/msvcrt_putwch don't check the return value of _putch/_putwch

2015-10-13 Thread eryksun
eryksun added the comment: > It would be interesting to know under what circumstances these > functions can fail. The CRT _put[w]ch and _get[w]ch[e] functions will fail when called in a process that doesn't have a console. (Except get[w]ch may succeed if it follows unget[w]ch.) This is the

[issue25093] New 3.5.0 failure in test_tcl on win7

2015-10-13 Thread Zachary Ware
Zachary Ware added the comment: Thank you for the patch, Serhiy. I'm just sorry it took me so long to get it committed. -- ___ Python tracker ___

[issue17908] Unittest runner needs an option to call gc.collect() after each test

2015-10-13 Thread STINNER Victor
STINNER Victor added the comment: Well, maybe we can add yet another parameter to all unittest classes (push this change), but IMHO someone must rework the unittest API to make it more extensible instead of adding more and more stuff in the base API. --

[issue25399] Optimize bytearray % args

2015-10-13 Thread STINNER Victor
New submission from STINNER Victor: Optimize bytearray % args Don't create temporary bytes objects: modify _PyBytes_Format() to create work directly on bytearray objects. * _PyBytesWriter: add use_bytearray attribute to use a bytearray buffer * Rename _PyBytes_Format() to _PyBytes_FormatEx()

[issue25397] improve ac_cv_have_long_long_format GCC fallback

2015-10-13 Thread Mike Frysinger
New submission from Mike Frysinger: the ac_cv_have_long_long_format test has a nice compile-time fallback for gcc based compilers: CFLAGS="$CFLAGS -Werror -Wformat" AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include #include ]], [[ char *buffer;

[issue19372] configure and compile problems with older CentOS releases

2015-10-13 Thread Mike Frysinger
Mike Frysinger added the comment: time to close then ? -- nosy: +vapier ___ Python tracker ___ ___

[issue18148] Make of Python 3.2.2 fails on Solaris SPARC

2015-10-13 Thread Mike Frysinger
Mike Frysinger added the comment: if the current builds fail, please make sure to include the config.log file as that includes a cross-compile test for this setting -- nosy: +vapier ___ Python tracker

[issue25400] robotparser doesn't return crawl delay for default entry

2015-10-13 Thread Peter Wirtz
New submission from Peter Wirtz: After changeset http://hg.python.org/lookup/dbed7cacfb7e, calling the crawl_delay method for a robots.txt files that has a crawl-delay for * useragents always returns None. Ex: Python 3.6.0a0 (default:1aae9b6a6929+, Oct 9 2015, 22:08:05) [GCC 4.2.1

[issue25400] robotparser doesn't return crawl delay for default entry

2015-10-13 Thread Peter Wirtz
Peter Wirtz added the comment: This fix breaks the unit tests though. I am not sure how to go about checking those as this would be my first contribution to python and an open source project in general. -- ___ Python tracker