[issue33074] dbm corrupts index on macOS (_dbm module)

2018-03-14 Thread Ned Deily
Change by Ned Deily : -- components: +macOS nosy: +ned.deily, ronaldoussoren ___ Python tracker ___

[issue32517] test_read_pty_output() of test_asyncio hangs on macOS 10.13.2 (darwin 17.3.0)

2018-03-14 Thread Ned Deily
Change by Ned Deily : -- pull_requests: +5875 ___ Python tracker ___ ___ Python-bugs-list

[issue32517] test_read_pty_output() of test_asyncio hangs on macOS 10.13.2 (darwin 17.3.0)

2018-03-14 Thread Ned Deily
Change by Ned Deily : -- pull_requests: +5876 ___ Python tracker ___ ___ Python-bugs-list

[issue32517] test_read_pty_output() of test_asyncio hangs on macOS 10.13.2 (darwin 17.3.0)

2018-03-14 Thread Nathan Henrie
Nathan Henrie added the comment: Awesome, I'm really excited to have contributed something, no matter how small. -- ___ Python tracker

[issue32987] tokenize.py parses unicode identifiers incorrectly

2018-03-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This issue and issue12486 doesn't have any common except that both are related to the tokenize module. There are two bugs: a too narrow definition of \w in the re module (see issue12731 and issue1693050) and a too narrow

[issue33062] ssl_renegotiate() doesn't seem to be exposed

2018-03-14 Thread Nathaniel Smith
Nathaniel Smith added the comment: > an OpenSSL cop-out Perhaps, but they've been doing it this way for a decade+, and we're living in a time when other libraries like BoringSSL are flat-out removing renegotiation support, so good luck convincing them to fix things. Anyway,

[issue30697] segfault in PyErr_NormalizeException() after memory exhaustion

2018-03-14 Thread Ned Deily
Ned Deily added the comment: It's been three months since Anthony raised the question about whether this was an acceptable ABI change in 3.6.4. Since then, I am not aware of any reports of problems this has caused and there has been no agreement that it is a critical

[issue33074] dbm corrupts index on macOS (_dbm module)

2018-03-14 Thread Robert Xiao
New submission from Robert Xiao : Environment: Python 3.6.4, macOS 10.12.6 Python 3's dbm appears to corrupt the key index on macOS if objects >4KB are inserted. Code: <<< import dbm import contextlib with contextlib.closing(dbm.open('test', 'n')) as db: for

[issue33074] dbm corrupts index on macOS (_dbm module)

2018-03-14 Thread Robert Xiao
Robert Xiao added the comment: (Note: the contextlib stuff is just for Python 2 compatibility, it's not necessary on Python 3). -- ___ Python tracker

[issue30622] Fix NPN guard for OpenSSL 1.1

2018-03-14 Thread Christian Heimes
Christian Heimes added the comment: New changeset 0ec0290a075ad3ac7d9990efd701c81da16293c0 by Christian Heimes in branch '3.6': bpo-30622: Fix backport of NPN fix (#6102) https://github.com/python/cpython/commit/0ec0290a075ad3ac7d9990efd701c81da16293c0 --

[issue32517] test_read_pty_output() of test_asyncio hangs on macOS 10.13.2 (darwin 17.3.0)

2018-03-14 Thread Ned Deily
Ned Deily added the comment: Thanks for the fix, Nathan. Yury has already committed the fix for 3.6.5 and for 3.7.0. I've just pushed PR 6112 and PR 6113 to forward port to the master branch (for 3.8) and to re-enable the failing tests on 3.7 and master. Once they are

[issue33042] New 3.7 startup sequence crashes PyInstaller

2018-03-14 Thread Nick Coghlan
Nick Coghlan added the comment: After reworking the patch to backport the pre-initialization embedding tests to 3.7.0a1, they *both* failed, as that was before Victor fixed Py_DecodeLocale to work prior to initialization again. As a result, I tried

[issue33042] New 3.7 startup sequence crashes PyInstaller

2018-03-14 Thread Nick Coghlan
Nick Coghlan added the comment: https://github.com/python/cpython/commit/b4d1e1f7c1af6ae33f0e371576c8bcafedb099db (the first attempted fix for bpo-20891) is the last commit where the draft test case patch applies cleanly. That still segfaults, so I'll jump all the way

[issue33042] New 3.7 startup sequence crashes PyInstaller

2018-03-14 Thread STINNER Victor
STINNER Victor added the comment: I suggest to revert my changes on PySys_AddWarnOption*() and "just" re-use the code from Python 3.6. Previously, I made the code more complex since I had to expose a private function to add manually warning options. But later, the

[issue27984] singledispatch register should typecheck its argument

2018-03-14 Thread Xiang Zhang
Xiang Zhang added the comment: Revising the patch, register() is fixed by feature in #32227. So I will only fix dispatch() in 3.7 and 3.8, the whole patch to 3.6. -- versions: +Python 3.6 ___ Python tracker

[issue25054] Capturing start of line '^'

2018-03-14 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue1647489] zero-length match confuses re.finditer()

2018-03-14 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue27984] singledispatch register should typecheck its argument

2018-03-14 Thread Xiang Zhang
Change by Xiang Zhang : -- pull_requests: +5877 ___ Python tracker ___ ___

[issue27984] singledispatch register should typecheck its argument

2018-03-14 Thread Xiang Zhang
Change by Xiang Zhang : -- pull_requests: +5878 ___ Python tracker ___ ___

[issue33075] typing.NamedTuple does not deduce Optional[] from using None as default field value

2018-03-14 Thread Vlad Shcherbina
New submission from Vlad Shcherbina : from typing import * def f(arg: str = None): pass print(get_type_hints(f)) # {'arg': typing.Union[str, NoneType]} # as expected class T(NamedTuple): field: str = None print(get_type_hints(T)) # {'field': } # but it

[issue33036] test_selectors.PollSelectorTestCase failing on macOS 10.13.3

2018-03-14 Thread Ned Deily
Ned Deily added the comment: I'm not sure what to suggest other than taking a close look at and instrumenting that part of test_selectors. One thing you could try is seeing what the call to resource.getrlimit(resource.RLIMIT_NOFILE) is returning. You can also look at the

[issue9712] tokenize yield an ERRORTOKEN if the identifier starts with a non-ascii char

2018-03-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: Joshua opened #24194 as a duplicate of this because he could not reopen this. I am leaving it open as the superseder for this as Serhiy has already added two dependencies there, and because this seems to be a duplicate in turn of #1693050

[issue24194] tokenize fails on some Other_ID_Start or Other_ID_Continue

2018-03-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: I closed #1693050 as a duplicate of #12731 (the /w issue). I left #9712 closed and closed #32987 and marked both as duplicates of this. In msg313814 of the latter, Serhiy indicates which start and continue identifier characters are

[issue9712] tokenize yield an ERRORTOKEN if the identifier starts with a non-ascii char

2018-03-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: Actually, #1693050 and #12731, about \w, are duplicates. -- ___ Python tracker ___

[issue33077] typing: Unexpected result with value of instance of class inherited from typing.NamedTuple

2018-03-14 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks Евгений Махмудов for the report! The crux is this: class A(NamedTuple): value: bool = True class B(A): value: bool = False B(True).value # Expected True, but is False B(True)[0] # True as expected If we add NamedTuple

[issue32987] tokenize.py parses unicode identifiers incorrectly

2018-03-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: #24194 is about tokenize failing, including on middle dot. There is another tokenize name issue, already closed. I referenced Serhiy's analysis there and on the two \w issues, and closed one of them. -- resolution: -> duplicate

[issue33077] typing: Unexpected result with value of instance of class inherited from typing.NamedTuple

2018-03-14 Thread Eric V. Smith
Change by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___

[issue27984] singledispatch register should typecheck its argument

2018-03-14 Thread Xiang Zhang
Xiang Zhang added the comment: It's all right. -- ___ Python tracker ___ ___

[issue32227] singledispatch support for type annotations

2018-03-14 Thread Łukasz Langa
Change by Łukasz Langa : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue33057] logging.Manager.logRecordFactory is never used

2018-03-14 Thread Vinay Sajip
Vinay Sajip added the comment: The logRecordFactory attribute was added but never used and is part of an internal API (the Manager isn't documented, on purpose). Why do you need a manager-specific factory? -- ___ Python

[issue32968] Fraction modulo infinity should behave consistently with other numbers

2018-03-14 Thread Elias Zamaria
Elias Zamaria added the comment: Mark, what you described (operator_fallbacks for both __rfloordiv__ and __floordiv__, and for both __rmod__ and __mod__) was my initial approach. But that broke one test (which floor-divides 1.0 by 1/10 and expects the result to be an

[issue12731] python lib re uses obsolete sense of \w in full violation of UTS#18 RL1.2a

2018-03-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: Whatever I may have said before, I favor supporting the Unicode standard for \w, which is related to the standard for identifiers. This is one of 2 issues about \w being defined too narrowly. I am somewhat arbitrarily closing #1693050 as a

[issue1693050] \w not helpful for non-Roman scripts

2018-03-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: Whatever I may have said before, I favor supporting the Unicode standard for \w, which is related to the standard for identifiers. This is one of 2 issues about \w being defined too narrowly. I am somewhat arbitrarily closing this as a

[issue33077] typing: Unexpected result with value of instance of class inherited from typing.NamedTuple

2018-03-14 Thread Ned Deily
Change by Ned Deily : -- nosy: +gvanrossum, levkivskyi ___ Python tracker ___ ___

[issue32885] Tools/scripts/pathfix.py leaves bunch of ~ suffixed files around with no opt-out

2018-03-14 Thread Christian Heimes
Christian Heimes added the comment: New changeset 6e65e4462692cbf4461c307a411af7cf40a1ca4a by Christian Heimes (Miss Islington (bot)) in branch '3.7': [3.7] bpo-32885: Tools/scripts/pathfix.py: Add -n option for no backup~ (GH-5772) (#6103)

[issue32885] Tools/scripts/pathfix.py leaves bunch of ~ suffixed files around with no opt-out

2018-03-14 Thread Christian Heimes
Christian Heimes added the comment: New changeset a954919788f2130076e4f9dd91e9eccf69540f7a by Christian Heimes (Miss Islington (bot)) in branch '3.6': [3.6] bpo-32885: Tools/scripts/pathfix.py: Add -n option for no backup~ (GH-5772) (#6104)

[issue27910] Doc/library/traceback.rst — references to tuples should be replaced with new FrameSummary object

2018-03-14 Thread Tomas Orsava
Tomas Orsava added the comment: Hey Cheryl, here is the pull request: https://github.com/python/cpython/pull/6116 -- ___ Python tracker

[issue26450] make html fails on OSX

2018-03-14 Thread Cheryl Sabella
Cheryl Sabella added the comment: With the new instructions for building the docs via `make venv` and then `make html`, I believe this issue can be closed. -- nosy: +csabella resolution: not a bug -> out of date stage: -> resolved status: open -> closed

[issue33057] logging.Manager.logRecordFactory is never used

2018-03-14 Thread Ben Feinstein
Ben Feinstein added the comment: Here is a code that demonstrate the bug: ```python import logging class LogRecordTypeFilter(logging.Filter): def __init__(self, cls): self.cls = cls def filter(self, record): t = type(record) if t is not

[issue27910] Doc/library/traceback.rst — references to tuples should be replaced with new FrameSummary object

2018-03-14 Thread Tomas Orsava
Change by Tomas Orsava : -- pull_requests: +5879 stage: needs patch -> patch review ___ Python tracker ___

[issue32968] Fraction modulo infinity should behave consistently with other numbers

2018-03-14 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks for the PR (and apologies for being slow to look at it). I think we want to use the operator_fallbacks approach for both __rfloordiv__ and __floordiv__ (and similarly for __rmod__ and __mod__), else we'll get inconsistent results:

[issue33075] typing.NamedTuple does not deduce Optional[] from using None as default field value

2018-03-14 Thread Guido van Rossum
Guido van Rossum added the comment: This bug report can be closed. -- ___ Python tracker ___

[issue33075] typing.NamedTuple does not deduce Optional[] from using None as default field value

2018-03-14 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: This is actually an intended behaviour. Moreover, the implicit optionality of arguments that default to `None` is deprecated and will be removed in one of the future versions. (Note that since typing module is still provisional, this

[issue33075] typing.NamedTuple does not deduce Optional[] from using None as default field value

2018-03-14 Thread Ned Deily
Change by Ned Deily : -- nosy: +gvanrossum, levkivskyi ___ Python tracker ___ ___

[issue33075] typing.NamedTuple does not deduce Optional[] from using None as default field value

2018-03-14 Thread Vlad Shcherbina
Vlad Shcherbina added the comment: If the maintainers agree that it's desirable to automatically deduce optionality, I'll implement it. -- ___ Python tracker

[issue33042] New 3.7 startup sequence crashes PyInstaller

2018-03-14 Thread Nick Coghlan
Nick Coghlan added the comment: While I haven't definitely narrowed it down yet, I suspect it isn't your changes that are the problem: since the reported crash relates to attempting to access a not-yet-created thread state, `warnoptions` and `_xoptions` likely need to

[issue33069] Maintainer information discarded when writing PKG-INFO

2018-03-14 Thread Paul Ganssle
Paul Ganssle added the comment: One thing that's unclear to me is whether PKG-INFO metadata spec should be considered exhaustive or whether you can add additional fields and still be considered compliant with the spec. If the latter is true, I think there's some case to

[issue5441] Convenience API for timeit.main

2018-03-14 Thread Jeremy Metz
Jeremy Metz added the comment: Don't understand how #6422 addresses this - would also like to see a more convenient API for timing; at present CLI gives a nice formatted output, and timeit.timeit gives just the raw timing in seconds. Would be easy to implement by simply

[issue33069] Maintainer information discarded when writing PKG-INFO

2018-03-14 Thread Nick Coghlan
Nick Coghlan added the comment: Thanks for the report and pull request. Do you happen to know if setuptools is also affected? If yes, the problem will need to be reported & fixed there as well (otherwise the maintainer metadata will still be missing for many publishers),

[issue33069] Maintainer information discarded when writing PKG-INFO

2018-03-14 Thread Éric Araujo
Éric Araujo added the comment: I think that the proposed change is a good thing in itself, but if distutils only supports metadata 1.1 then it should comply with that spec. I expect most projects to be using setuptools these days (to support wheels for one thing), so

[issue33069] Maintainer information discarded when writing PKG-INFO

2018-03-14 Thread Paul Ganssle
Paul Ganssle added the comment: @ncoghlan Yes, setuptools is affected. I've reported it there as well: https://github.com/pypa/setuptools/issues/1288 I have patches for both distutils and setuptools prepared. The distutils patch is more controversial because this is

[issue5441] Convenience API for timeit.main

2018-03-14 Thread Jeremy Metz
Jeremy Metz added the comment: More specifically, #6422 also mentions at least in part this functionality, but the main focus there seems to be the autorange function. Propose splitting these two by reopening this use. -- ___

[issue33076] Trying to cleanly terminate a threaded Queue at exit of program raises an "EOFError"

2018-03-14 Thread Adrien
New submission from Adrien : Hi. I use a worker Thread to which I communicate trough a multiprocessing Queue. I would like to properly close this daemon thread when my program terminates, so I registered a "stop()" function using "atexit.register()". However, this raises

[issue31974] Cursor misbahavior with Tkinter 3.6.1/tk 8.5 Text on Mac Sierra

2018-03-14 Thread Ned Deily
Ned Deily added the comment: Update: for Python 3.6.5 and 3.7.0, there are new python.org 10.9+ installer variants that come with a built-in Tcl/Tk 8.6.8. They are currently both available in testing pre-releases (3.6.5rc1 and 3.7.0b2):

[issue33075] typing.NamedTuple does not deduce Optional[] from using None as default field value

2018-03-14 Thread Ivan Levkivskyi
Change by Ivan Levkivskyi : -- resolution: -> not a bug stage: -> resolved ___ Python tracker ___

[issue33021] Some fstat() calls do not release the GIL, possibly hanging all threads

2018-03-14 Thread Zackery Spytz
Zackery Spytz added the comment: Commit 4484f9dca9149da135bbae035f10a50d20d1cbbb causes GCC 7.2.0 to emit a warning. cpython/Modules/mmapmodule.c: In function ‘new_mmap_object’: cpython/Modules/mmapmodule.c:1126:18: warning: ‘fstat_result’ may be used uninitialized in this

[issue33075] typing.NamedTuple does not deduce Optional[] from using None as default field value

2018-03-14 Thread Ivan Levkivskyi
Change by Ivan Levkivskyi : -- status: open -> closed ___ Python tracker ___ ___

[issue33021] Some fstat() calls do not release the GIL, possibly hanging all threads

2018-03-14 Thread Zackery Spytz
Change by Zackery Spytz : -- pull_requests: +5880 ___ Python tracker ___ ___

[issue33021] Some fstat() calls do not release the GIL, possibly hanging all threads

2018-03-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset d6e140466142018ddbb7541185348be2b833a2ce by Antoine Pitrou (Zackery Spytz) in branch 'master': bpo-33021: Fix GCC 7 warning (-Wmaybe-uninitialized) in mmapmodule.c (#6117)

[issue33021] Some fstat() calls do not release the GIL, possibly hanging all threads

2018-03-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: With Benjamin we've decided that this wouldn't happen in 2.7. Performance improvements don't warrant a backport. Thank you Nir for reporting and posting the patches! -- resolution: -> fixed stage: patch review -> resolved status:

[issue25750] tp_descr_get(self, obj, type) is called without owning a reference to "self"

2018-03-14 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +5881 ___ Python tracker ___

[issue33036] test_selectors.PollSelectorTestCase failing on macOS 10.13.3

2018-03-14 Thread Nathan Henrie
Nathan Henrie added the comment: Hmmm, still failing for me. I wonder if it's something specific to my machine. ``` git reset --hard 3.6 && make clean && git pull && ./configure --with-pydebug && make -j && ./python.exe -m unittest -v

[issue27984] singledispatch register should typecheck its argument

2018-03-14 Thread Łukasz Langa
Łukasz Langa added the comment: I'm sorry that you wasted your time on those pull requests, Xiang but: - we cannot accept any new features for 3.6 and 3.7 anymore; - the problem described in this issue is fixed, as you noticed yourself, by #32227. The wrapper returned by the

[issue33077] typing: Unexpected result with value of instance of class inherited from typing.NamedTuple

2018-03-14 Thread Евгений Махмудов
New submission from Евгений Махмудов : Overwriting of default values not working, and used default value of base class. Unittest file if attachment described a problem. -- components: Library (Lib) files: python_test.py messages: 313843 nosy: Евгений

[issue32227] singledispatch support for type annotations

2018-03-14 Thread Xiang Zhang
Change by Xiang Zhang : -- pull_requests: +5882 stage: -> patch review ___ Python tracker ___