[issue7063] Memory errors in array.array

2016-07-24 Thread Martin Panter
Martin Panter added the comment: The patch looks good to me (assuming it still applies). Should also remove the “b” macro. -- components: +Extension Modules -Library (Lib), Tests nosy: +martin.panter stage: patch review -> commit review ___ Python tr

[issue27570] Avoid memcpy(. . ., NULL, 0) etc calls

2016-07-24 Thread Martin Panter
Martin Panter added the comment: V2 patch adds another fix, uncovered by recent datetime tests: >>> a = array("B") >>> a[:] = a /media/disk/home/proj/python/cpython/Modules/arraymodule.c:748:5: runtime error: null pointer passed as argument 1, which is declared to never be null /media/disk/home

[issue1621] Do not assume signed integer overflow behavior

2016-07-24 Thread Xiang Zhang
Xiang Zhang added the comment: It's cool, but I get one problem when writing tests. support.captured_stderr cannot capture the runtime error message. So we have nothing to do with the assertion and the test will always succeed even when overflow does happen (the message will be output). To sol

[issue18181] PEP447: Add type.__getdescriptor__

2016-07-24 Thread Ronald Oussoren
Changes by Ronald Oussoren : Added file: http://bugs.python.org/file43853/pep447-2015-07-26.txt ___ Python tracker ___ ___ Python-bugs-list ma

[issue27366] PEP487: Simpler customization of class creation

2016-07-24 Thread Nick Coghlan
Nick Coghlan added the comment: Martin's current implementation basically looks good to me - I've mainly suggested some changes to the documentation and additional test cases that help stress test some of the more complex inheritance hierarchies described above, although there are a few other

[issue27582] Mispositioned SyntaxError caret for unknown code points

2016-07-24 Thread Nick Coghlan
Nick Coghlan added the comment: Drekin, agreed, that looks like the same problem. Since this one has draft patches attached, I'll mark the other one as a duplicate. -- ___ Python tracker __

[issue26152] A non-breaking space in a source

2016-07-24 Thread Nick Coghlan
Changes by Nick Coghlan : -- resolution: -> duplicate status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue26152] A non-breaking space in a source

2016-07-24 Thread Nick Coghlan
Nick Coghlan added the comment: http://bugs.python.org/issue27582 is a later mention of the same problem that attracted patches before Adam noticed it was a repeat of this issue. Marking this as the duplicate, since the problem applies to more than just Unicode whitespace, and the problems bei

[issue26823] Shrink recursive tracebacks

2016-07-24 Thread Nick Coghlan
Changes by Nick Coghlan : -- assignee: ebarry -> ncoghlan stage: patch review -> commit review ___ Python tracker ___ ___ Python-bugs-

[issue26823] Shrink recursive tracebacks

2016-07-24 Thread Nick Coghlan
Nick Coghlan added the comment: Thanks Emanuel, and sorry for the long delay in getting a review! My main substantive comment is that the approach of hardcoding the recursion count won't work cross platform, as the default recursion limit is set differently depending on how the platform's C ru

[issue27366] PEP487: Simpler customization of class creation

2016-07-24 Thread Martin Teichmann
Martin Teichmann added the comment: Thanks for the nice review! I made the proposed changes, see attached patch. I am still waiting for a decision whether type.__setattr__ should call __set_name__ from python-dev, once that's sorted out I'll implement and test the one or the other behavior.

[issue27604] More details about `-O` flag

2016-07-24 Thread Ram Rachum
New submission from Ram Rachum: I wanted to ensure that the `-O` flag doesn't really do anything more than remove assert statement and make `__debug__` equal `False`. But the documentation for `-O` doesn't cover it: https://docs.python.org/3/using/cmdline.html#cmdoption-O https://docs.python

[issue25170] 3.4.4, 3.4.5, 3.5.0, 3.5.1, 3.5.2 documentation archives missing

2016-07-24 Thread Chris Mayo
Changes by Chris Mayo : -- nosy: +cjmayo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[issue27226] distutils: unable to compile both .opt-1.pyc and .opt2.pyc simultaneously

2016-07-24 Thread Chris Mayo
Changes by Chris Mayo : -- nosy: +cjmayo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[issue15303] Minor revision to the method in Tkinter

2016-07-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka type: behavior -> enhancement versions: +Python 3.6 -Python 3.4 ___ Python tracker ___ ___

[issue1621] Do not assume signed integer overflow behavior

2016-07-24 Thread Martin Panter
Martin Panter added the comment: Xiang: I don’t think we need to make the tests do anything special. Just make sure they exercise the code that handles overflows. I have been running the test suite without any -j0 option, and I can look over the output and see the error messages. Or if we get

[issue27605] Inconsistent calls to __eq__ from built-in __contains__

2016-07-24 Thread Vasiliy Faronov
New submission from Vasiliy Faronov: Consider the attached example program. I expect it to run successfully, because the Python 3 language reference says [1]: > For container types such as list, tuple, set, frozenset, dict, or > collections.deque, the expression `x in y` is equivalent to `any(

[issue1621] Do not assume signed integer overflow behavior

2016-07-24 Thread Martin Panter
Martin Panter added the comment: unicode.patch avoids an overflow in PyUnicode_Join(): >>> size = int(sys.maxsize**0.5) + 1 >>> "".join(("A" * size,) * size) Objects/unicodeobject.c:9927:12: runtime error: signed integer overflow: 46341 + 2147441940 cannot be represented in type 'int' OverflowE

[issue27606] Android cross-built for armv5te with clang and '-mthumb' crashes with SIGSEGV or SIGILL

2016-07-24 Thread Xavier de Gaye
Changes by Xavier de Gaye : Added file: http://bugs.python.org/file43860/strace-pydebug.txt ___ Python tracker ___ ___ Python-bugs-list mailin

[issue27606] Android cross-built for armv5te with clang and '-mthumb' crashes with SIGSEGV or SIGILL

2016-07-24 Thread Xavier de Gaye
Changes by Xavier de Gaye : Added file: http://bugs.python.org/file43861/logcat-pydebug.txt ___ Python tracker ___ ___ Python-bugs-list mailin

[issue27606] Android cross-built for armv5te with clang and '-mthumb' crashes with SIGSEGV or SIGILL

2016-07-24 Thread Xavier de Gaye
Changes by Xavier de Gaye : Added file: http://bugs.python.org/file43859/logcat.txt ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue27606] Android cross-built for armv5te with clang and '-mthumb' crashes with SIGSEGV or SIGILL

2016-07-24 Thread Xavier de Gaye
New submission from Xavier de Gaye: Android ndk version r11c. The crash happens very early on python startup. The SIGILL occurs when python is built 'with-pydebug'. Python runs fine on the armv5te emulator when built with clang without '-mthumb'. Python runs fine on the armv5te emulator when

[issue24773] Implement PEP 495 (Local Time Disambiguation)

2016-07-24 Thread Martin Panter
Martin Panter added the comment: FWIW I can produce two of these failures locally: the time_t OverflowError, and the test_all() system_transitions one. Let me know if you want any more info. In my case the message for the test_all() failure is “posix/Africa/Casablanca system_transitions”. I am

[issue26865] Meta-issue: support of the android platform

2016-07-24 Thread Xavier de Gaye
Xavier de Gaye added the comment: issue #27606: Android cross-built for armv5te with clang and '-mthumb' crashes with SIGSEGV or SIGILL -- dependencies: +Android cross-built for armv5te with clang and '-mthumb' crashes with SIGSEGV or SIGILL ___ Pyt

[issue27606] Android cross-built for armv5te with clang and '-mthumb' crashes with SIGSEGV or SIGILL

2016-07-24 Thread Xavier de Gaye
Xavier de Gaye added the comment: The reference to '-mthumb' in the ndk documentation: https://developer.android.com/ndk/guides/standalone_toolchain.html#abi. -- ___ Python tracker

[issue1621] Do not assume signed integer overflow behavior

2016-07-24 Thread Xiang Zhang
Xiang Zhang added the comment: It turns out you just want to see the output. That is easy. Patch v3 adding the test. -- Added file: http://bugs.python.org/file43862/tuple_and_list_v3.patch ___ Python tracker __

[issue26915] Test identity first in membership operation of ItemsView, ValuesView and Sequence in collections.abc

2016-07-24 Thread Xiang Zhang
Xiang Zhang added the comment: Ping again. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue26823] Shrink recursive tracebacks

2016-07-24 Thread Emanuel Barry
Emanuel Barry added the comment: Thank you Nick for the comments! Updated patch attached. The new patch uses inspect.stack() to calculate the total stack size, but I'm unable to get the exact number needed, and I found that I'm either 19 or 20 above (depending on whether I run it with -m or ma

[issue23545] Turn on extra warnings on GCC

2016-07-24 Thread Martin Panter
Martin Panter added the comment: -Wall is already added (unconditionally) to $OPT above. What’s the point of also adding it to $CFLAGS_NODIST as well? Does it have to be added to both? -- nosy: +martin.panter ___ Python tracker

[issue27605] Inconsistent calls to __eq__ from built-in __contains__

2016-07-24 Thread Steven D'Aprano
Steven D'Aprano added the comment: I'm reluctant to call this a behaviour bug, because I'm reluctant to guarantee the *precise* behaviour when the classes are different. I haven't checked the source of dict.__contains__, but by experimentation it seems that: needle in {key: value} calls

[issue27495] Pretty printing sorting for set and frozenset instances

2016-07-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Following patch adds support of all standard collections in pprint.saferepr(). -- Added file: http://bugs.python.org/file43864/saferepr_collections.patch ___ Python tracker _

[issue27605] Inconsistent calls to __eq__ from built-in __contains__

2016-07-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue26823] Shrink recursive tracebacks

2016-07-24 Thread Nick Coghlan
Nick Coghlan added the comment: Since you're ultimately comparing a list of lines, it may be useful to split the checks into two parts: 1. Check the deterministic lines 2. Check the variable line (which should always be at index -2 in the splitlines() result) For the recursion error, we're no

[issue8623] Aliasing warnings in socketmodule.c

2016-07-24 Thread Martin Panter
Martin Panter added the comment: I think the time for backporting to 3.2 has passed. Is there anything else to do for this report? -- nosy: +martin.panter versions: -Python 3.2 ___ Python tracker _

[issue27605] Inconsistent calls to __eq__ from built-in __contains__

2016-07-24 Thread R. David Murray
R. David Murray added the comment: I did look at the code. Indeed list and tuple compare x to e, while dict, set, and frozenset (well, I didn't check each one, just list and set) compare the e to x, where e is they key stored at hash(x). Steve has a good point about the iteration. And a user

[issue26546] Provide translated french translation on docs.python.org

2016-07-24 Thread Julien
Julien added the comment: I'm on the way of simplifying my [pull request for docsbuild-script](https://github.com/python/docsbuild-scripts/pull/1) with two goals in mind: - Simplify to make it more robust - Avoid executing external (~untrusted) Makefile on docs.python.org servers To achieve

[issue10036] compiler warnings for various modules on Linux buildslaves

2016-07-24 Thread Martin Panter
Martin Panter added the comment: The three unused results in Modules/_posixsubprocess.c are probably fixed by revision dd18cccb55b0. The Modules/socketmodule.c pointer aliasing was addressed in 3.3 by Issue 8623, and the Modules/_multiprocessing/multiprocessing.c type-punning has been elimina

[issue8623] Aliasing warnings in socketmodule.c

2016-07-24 Thread Martin Panter
Martin Panter added the comment: The Modules/_multiprocessing/multiprocessing.c code was removed in 3.3 (Issue 12981). Therefore I am calling this fixed. -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracke

[issue26823] Shrink recursive tracebacks

2016-07-24 Thread Emanuel Barry
Emanuel Barry added the comment: Alright, I think this works now. No more magic number, just some regex as well as checking that the number is in range(sys.getrecursionlimit()-50, sys.getrecursionlimit()) :) -- Added file: http://bugs.python.org/file43866/short_tracebacks_7.patch

[issue27366] PEP487: Simpler customization of class creation

2016-07-24 Thread Guido van Rossum
Guido van Rossum added the comment: That's a no from me. On Sunday, July 24, 2016, Martin Teichmann wrote: > > Martin Teichmann added the comment: > > Thanks for the nice review! > > I made the proposed changes, see attached patch. > > I am still waiting for a decision whether type.__setattr__

[issue27607] Enums never match if imported from another file

2016-07-24 Thread Sylvia van Os
New submission from Sylvia van Os: If main imports another file, and this file imports an Enum class from main, isinstance will return false for Enum variables set in this file, causing the Enums to never match. A proof of concept is added as a zip. I thank Kwpolska for simplifying my initial

[issue27605] Inconsistent calls to __eq__ from built-in __contains__

2016-07-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: +1 for "approximately equivalent". The "conceptually equivalent" wording raises more questions in my mind than it answers. What we're really trying to say here is that for typically symmetric operations such as __eq__(), an implementation is free to use

[issue24773] Implement PEP 495 (Local Time Disambiguation)

2016-07-24 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > the time_t OverflowError The issue here is that for a large date, dt.timestamp() returns a float large enough to cause overflow in fromtimestamp. > Let me know if you want any more info. Can you figure out what date causes this (0002-01-01 or 9998-12-

[issue27493] logging module fails with unclear error when supplied a (Posix)Path

2016-07-24 Thread Berker Peksag
Changes by Berker Peksag : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue24773] Implement PEP 495 (Local Time Disambiguation)

2016-07-24 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Looking at the stable buildbots. http://buildbot.python.org/all/waterfall?category=3.x.stable AMD64 OpenIndiana 3.x - unrelated failures AMD64 Snow Leop 3.x - crash in test_all / system_transitions PPC64 Fedora 3.x - fail in test_all Africa/El_Aaiun syste

[issue27607] Enums never match if imported from another file

2016-07-24 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: +ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue27604] More details about `-O` flag

2016-07-24 Thread Brett Cannon
Brett Cannon added the comment: No, there are only the two optimizations, but I think historically the vagueness has been on purpose to allow us to add appropriate optimizations without breaking backwards-compatibility with what is documented. -- nosy: +brett.cannon __

[issue27607] Enums never match if imported from another file

2016-07-24 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue26851] android compilation and link flags

2016-07-24 Thread Xavier de Gaye
Xavier de Gaye added the comment: The previous patch was using awkwardly, a 'host_cpu' configure argument to specify the arm ABI and missed setting LDFLAGS for the armv7 ABI. This patch instead uses the __ARM_ARCH macro defined by each compiler of the Android toolchains: echo | ./clang -ta

[issue27598] Add SizedIterable to collections.abc and typing

2016-07-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: In putting together a patch for this, I noticed that the __subclasshook__ classmethods don't compose well. I'm unclear about the semantics about what these hooks are supposed to mean for subclasses and whether there is a bug in the existing code for Set,

[issue26944] android: test_posix fails

2016-07-24 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- nosy: +haypo stage: patch review -> commit review ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue25170] 3.4.4, 3.4.5, 3.5.0, 3.5.1, 3.5.2 documentation archives missing

2016-07-24 Thread Ned Deily
Ned Deily added the comment: "Perhaps related is that the list at only goes up to 3.4.3." That page is manually updated by the release managers. Note that there are entries on the page for the most recent 2.7.x releases, 2.7.11 and 2.7.12, and the corre

[issue22557] Local import is too slow

2016-07-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Seems not all such easy. Looking in sys.module is not enough, we should check __spec__._initializing. Following patch moves optimizations to PyImport_ImportModuleLevelObject (C implementation of standard __import__). Main optimizations: 1. PyImport_ImportMo

[issue25170] 3.4.4, 3.4.5, 3.5.0, 3.5.1, 3.5.2 documentation archives missing

2016-07-24 Thread Larry Hastings
Larry Hastings added the comment: I can fix it. Are instructions on how to update that in PEP 101 and I missed it? (Do you know where it is in the Django maze of twisty little passages?) -- ___ Python tracker __

[issue27608] Something wrong with str.upper().lower() chain?

2016-07-24 Thread Aleksandr Koshkin
New submission from Aleksandr Koshkin: For some reason >>> 'µ'.upper().lower() == 'µ' False -- components: Unicode messages: 271174 nosy: ezio.melotti, haypo, magniff priority: normal severity: normal status: open title: Something wrong with str.upper().lower() chain? type: behavior ver

[issue27608] Something wrong with str.upper().lower() chain?

2016-07-24 Thread Aleksandr Koshkin
Aleksandr Koshkin added the comment: Note, that >>> ord('µ') 181 there is another Mu like symbol chr(956), on which this code passes -- ___ Python tracker ___ __

[issue27608] Something wrong with str.upper().lower() chain?

2016-07-24 Thread Aleksandr Koshkin
Aleksandr Koshkin added the comment: So, yes, unicode table seems to be a bit inconsistent. In str documentation it worth to emphasize that something.upper().lower() in general not equals to something. -- ___ Python tracker

[issue27608] Something wrong with str.upper().lower() chain?

2016-07-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: Here is a little more detail on what is occurring: >>> from unicodedata import * >>> c = 'µ' >>> for s in (c, c.lower(), c.upper(), c.lower().upper(), c.upper().lower()): print(s, ord(s), name(s), category(s)) µ 181 MICRO SIGN Ll µ 181 MICRO

[issue24773] Implement PEP 495 (Local Time Disambiguation)

2016-07-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset ae19ea7c36e6 by Alexander Belopolsky in branch 'default': Issue #24773: Made ZoneInfoCompleteTest a TestSuit. https://hg.python.org/cpython/rev/ae19ea7c36e6 -- ___ Python tracker

[issue25170] 3.4.4, 3.4.5, 3.5.0, 3.5.1, 3.5.2 documentation archives missing

2016-07-24 Thread Ned Deily
Ned Deily added the comment: Larry, I updated PEP 101 to reflect I think are the steps required for this with the new website; the doc upload instructions are already in PEP 101. I'm sure it is still missing some steps. Feel free to improve! https://github.com/python/peps/commit/5903b6afd4e6

[issue27604] More details about `-O` flag

2016-07-24 Thread Ram Rachum
Ram Rachum added the comment: So... The reasoning is that if someone adds optimizations to Python's `-O` mode (Something that hasn't happened in the last decade or two, right?) we want to save them from going to the trouble of writing two or three sentences in the docs describing the optimizat

[issue27604] More details about `-O` flag

2016-07-24 Thread Brett Cannon
Brett Cannon added the comment: Two things. One, I don't know if you meant for your comment to come off as antagonistic, but it did. Two, a patch is fine as long as it makes it clear that what optimizations are activated by the flag could change with no backwards-compatibility guarantees. ---

[issue27608] Something wrong with str.upper().lower() chain?

2016-07-24 Thread Aleksandr Koshkin
Aleksandr Koshkin added the comment: Conclusion made: not a bug (not a python bug at least). -- status: open -> closed ___ Python tracker ___

[issue22554] Idle: optionally auto-pop-up completion window for names

2016-07-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: The extension configuration was added a couple weeks after this was opened. The idea of the second message is that new popup should be optional even when completions are enabled. -- ___ Python tracker

[issue27607] Enums never match if imported from another file

2016-07-24 Thread R. David Murray
R. David Murray added the comment: This is a consequence of the way __main__ works. You actually have two separate instances of the Enum class. If there is a fix for this it would be that PEP, so I'm not sure there is any point in keeping this issue open. -- nosy: +r.david.murray _

[issue27607] Enums never match if imported from another file

2016-07-24 Thread Sylvia van Os
Sylvia van Os added the comment: For what it's worth, I am not opposed to having this issue closed. As I am new to reporting anything on the Python issue tracker and was uncertain on how relevant the PEP in question was, I figured it would be better to report this anyway just in case. ---

[issue27609] IDLE completions: format, factor, and fix

2016-07-24 Thread Terry J. Reedy
New submission from Terry J. Reedy: IDLE completions are currently implemented in two files: autocomplete.py and autocomplete_w.py. (Before 3.6, these were AutoComplete.py and AutoCompleteWindow.py.) The first handles 'open' events, decideds whether to open a window, and gathers possible comp

[issue27609] IDLE completions: format, factor, and fix

2016-07-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Add dependencies. Last two, #27099 and #27534 involve multiple files and should be removed from this autocomplete list when autocomplete part is done. -- dependencies: +IDLE - tabbing in a string always brings up file completion window, IDLE code comp

[issue27607] Enums never match if imported from another file

2016-07-24 Thread R. David Murray
R. David Murray added the comment: Certainly reporting it is fine, if nothing else it gives a record for someone else searching for the same problem. I'm not certain why Raymond left the issue open, so I'm not closing it myself :) -- ___ Python tra

[issue27607] Enums never match if imported from another file

2016-07-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: I left it open so that Ethan would get a chance to see anything related to Enum. -- nosy: +rhettinger ___ Python tracker ___

[issue27598] Add SizedIterable to collections.abc and typing

2016-07-24 Thread Guido van Rossum
Guido van Rossum added the comment: Regarding the design of __subclasshook__, these two flaws kind of cancel each other out. The idea is that if you have a "one-trick pony" class whose issubclass() check must verify that the purported sublass implements a specific method (e.g. __hash__), you d

[issue27609] IDLE completions: format, factor, and fix

2016-07-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1ec47de72538 by Terry Jan Reedy in branch 'default': Issue #27609: Explicitly return None when there are other returns. https://hg.python.org/cpython/rev/1ec47de72538 -- nosy: +python-dev ___ Python track

[issue24773] Implement PEP 495 (Local Time Disambiguation)

2016-07-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset dca143512f6e by Alexander Belopolsky in branch 'default': Issue 24773: Make zoneinfo tests more robust. (reapply) https://hg.python.org/cpython/rev/dca143512f6e -- ___ Python tracker

[issue26851] android compilation and link flags

2016-07-24 Thread Martin Panter
Martin Panter added the comment: I left some suggestions and questions on the code review. -- ___ Python tracker ___ ___ Python-bugs-l

[issue27546] Integrate tkinter and asyncio (and async)

2016-07-24 Thread Guido van Rossum
Guido van Rossum added the comment: On what platform did you measure that? On a Mac, with Python 3.5.2, I get very different numbers: tkloop: 9000/sec asloop: 9/sec (about 10x!) tkasyncloop: 2500/sec -- ___ Python tracker

[issue27607] Enums never match if imported from another file

2016-07-24 Thread Martin Panter
Martin Panter added the comment: I would expect isintance() to fail like this for any class, not just Enum. I haven’t looked in your zip file, but a workaround may be to import the Enum class from a third module into both main.py and the other file. The third module should only get executed on

[issue27607] Enums never match if imported from another file

2016-07-24 Thread Sylvia van Os
Sylvia van Os added the comment: Importing it from a third module indeed works without issues and makes both isinstance() calls return True, yes. -- ___ Python tracker ___ _

[issue27610] Add PEP 514 metadata to Windows installer

2016-07-24 Thread Steve Dower
New submission from Steve Dower: Now PEP 514 is accepted, we need to set more information when installing Python 3.6. -- assignee: steve.dower components: Windows messages: 271197 nosy: paul.moore, steve.dower, tim.golden, zach.ware priority: normal severity: normal status: open title:

[issue27610] Add PEP 514 metadata to Windows installer

2016-07-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset c6ce1958cebb by Steve Dower in branch 'default': Issue #27610: Adds PEP 514 metadata to Windows installer https://hg.python.org/cpython/rev/c6ce1958cebb -- nosy: +python-dev ___ Python tracker

[issue27610] Add PEP 514 metadata to Windows installer

2016-07-24 Thread Steve Dower
Changes by Steve Dower : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-li

[issue17238] IDLE: Enhance import statement completion

2016-07-24 Thread Martin Panter
Martin Panter added the comment: Even if your patch isn’t quite ready, it may (have been) better than nothing :) I had the idea to share stuff between Idle completion and Readline completion, but after looking at the Idle code, it did not seem very practical in general. But maybe you can at le

[issue27454] PyUnicode_InternInPlace can use PyDict_SetDefault

2016-07-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset f3187a157204 by Berker Peksag in branch 'default': Issue #27454: Use PyDict_SetDefault in PyUnicode_InternInPlace https://hg.python.org/cpython/rev/f3187a157204 -- nosy: +python-dev ___ Python tracker

[issue27454] PyUnicode_InternInPlace can use PyDict_SetDefault

2016-07-24 Thread Berker Peksag
Berker Peksag added the comment: Thanks! -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___ _

[issue25966] Bug in asyncio.corotuines._format_coroutine

2016-07-24 Thread Berker Peksag
Berker Peksag added the comment: Merged in f4fe55dd5659. -- nosy: +berker.peksag stage: -> resolved status: open -> closed type: -> behavior versions: +Python 3.5, Python 3.6 ___ Python tracker __

[issue27601] Minor inaccuracy in hash documentation

2016-07-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset a6be689eacf8 by Berker Peksag in branch '3.5': Issue #27601: Improve example in the "Hashing of numeric types" section https://hg.python.org/cpython/rev/a6be689eacf8 New changeset 06bbcbaeeb18 by Berker Peksag in branch 'default': Issue #27601: Merg

[issue27601] Minor inaccuracy in hash documentation

2016-07-24 Thread Berker Peksag
Berker Peksag added the comment: Looks good to me too. 'hash_value' looks more readable to me, thanks! -- nosy: +berker.peksag resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> behavior versions: -Python 3.2, Python 3.3, Python 3.4 _

[issue27587] Issues, reported by PVS-Studio static analyzer

2016-07-24 Thread Berker Peksag
Berker Peksag added the comment: I'm attaching Christian's patch at https://marc.info/?l=python-dev&m=146922730716425&w=2 as issue27587_pystate_addmodule.diff to make code reviewing easier. -- stage: needs patch -> patch review ___ Python tracker <

[issue27587] Issues, reported by PVS-Studio static analyzer

2016-07-24 Thread Berker Peksag
Changes by Berker Peksag : -- keywords: +patch Added file: http://bugs.python.org/file43870/issue27587_pystate_addmodule.diff ___ Python tracker ___ _

[issue27611] test_tix cannot import _default_root after test_idle

2016-07-24 Thread Martin Panter
New submission from Martin Panter: $ ./python -m unittest -v test.test_{idle,tix} . . . test_tix (unittest.loader._FailedTest) ... ERROR == ERROR: test_tix (unittest.loader._FailedTest) --

[issue24137] Force not using _default_root in IDLE

2016-07-24 Thread Martin Panter
Martin Panter added the comment: It seems this change causes test_tix to fail for me; see Issue 27611 -- nosy: +martin.panter ___ Python tracker ___ _

[issue27601] Minor inaccuracy in hash documentation

2016-07-24 Thread Aleksandr Koshkin
Aleksandr Koshkin added the comment: Originally I emphasized that this bug occurs at every py3k version since 3.2. For some reason version list somehow shrinked to only tow of them - 3.5 and 3.6. I am very sorry, this is probably my fault. -- resolution: fixed -> status: closed -> ope

[issue7063] Memory errors in array.array

2016-07-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset ab28676df655 by Martin Panter in branch 'default': Issue #7063: Remove dead code from array slice handling https://hg.python.org/cpython/rev/ab28676df655 -- nosy: +python-dev ___ Python tracker

[issue27607] Enums never match if imported from another file

2016-07-24 Thread Ethan Furman
Ethan Furman added the comment: Sylvia, if you have any control over the name of your zip files, please use something shorter. ;) The files inside are a 'main.py' and a 'module.py' -- notice there is no '__main__.py'. So it can't be executed as 'python3 -m blahblah'. I tried renaming 'main.

[issue27607] Enums never match if imported from another file

2016-07-24 Thread Ethan Furman
Ethan Furman added the comment: Oh, forgot to mention I also tried testing as just 'main.py' from inside the test directory (that's what accounted for one of the two error messages). -- ___ Python tracker

[issue27608] Something wrong with str.upper().lower() chain?

2016-07-24 Thread Emanuel Barry
Changes by Emanuel Barry : -- resolution: -> not a bug stage: -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue27601] Minor inaccuracy in hash documentation

2016-07-24 Thread Berker Peksag
Berker Peksag added the comment: > I am very sorry, this is probably my fault. It's not your fault :) I removed them. 3.2, 3.3 and 3.4 are in security-fix-only mode so they won't get any documentation updates. You can read https://docs.python.org/devguide/devcycle.html#secbranch for details a

[issue18766] IDLE: Autocomplete in editor doesn't work for un-imported modules

2016-07-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: I opened #27609 to keep track of multiple completion issues. Some additions to what I said above. 1. I would like to move the actual fetch code to run.py, since it is normally executed in the user process. See #27534, but also below. 2. Idle currently diffe

[issue27609] IDLE completions: format, factor, and fix

2016-07-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: I just partly fixed #16198. Anything more depends on a careful definition of desired behavior that turns out to be different from current behavior. -- ___ Python tracker

[issue18766] IDLE: Autocomplete in editor doesn't work for un-imported modules

2016-07-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: The concern about adding bugs could be alleviated by checking whether the name is in an import statement. But it still might not be in the proper form. I am trying to reduce the run.py import to those actually needed in run.py. I already reduced sys.modules

[issue7063] Memory errors in array.array

2016-07-24 Thread Martin Panter
Changes by Martin Panter : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___ ___

  1   2   >