[issue34466] socket.settimeout working incorrectly for connect() method of AF_UNIX socket

2018-08-22 Thread Benjamin Peterson
Benjamin Peterson added the comment: I think what you want to do is not use the timeout feature of Python sockets and instead use mysock.setsockopt(SO_SNDTIMEO, 5). -- nosy: +benjamin.peterson ___ Python tracker

[issue34470] windows msi in headless mode fails to install Script directory on reinstall if the python folder was deleted but not uninstalled

2018-08-22 Thread Zachary Ware
Zachary Ware added the comment: Python 2.7 is nearing end-of-life, its installer scheme is no longer used on any other branch, and the maintainer of that installer retired some years ago. If you provide a patch, we can take a look and possibly merge it for you, but it's unlikely that this

[issue34470] windows msi in headless mode fails to install Script directory on reinstall if the python folder was deleted but not uninstalled

2018-08-22 Thread Christopher Knorowski
New submission from Christopher Knorowski : Steps to repeate (windows 10) msiexec.exe /i python-2.7.15.amd64.msi ALL_USERS=0 TARGETDIR=C:\Users\Public\python /qr (fresh install works without issue) rm -r C:\Users\Public\python (On reinstall scripts folder and all site-packages are not

[issue34469] windows msi in headless mode fails to install Script directory on reinstall if the python folder was deleted but not uninstalled

2018-08-22 Thread Christopher Knorowski
Change by Christopher Knorowski : -- resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker ___

[issue34469] windows msi in headless mode fails to install Script directory on reinstall if the python folder was deleted but not uninstalled

2018-08-22 Thread Christopher Knorowski
Christopher Knorowski added the comment: Steps to repeate (windows 10) msiexec.exe /i python-2.7.15.amd64.msi ALL_USERS=0 TARGETDIR=C:\Users\Public\python /qr (fresh install works without issue) rm -r C:/Users/Public/python msiexec.exe /i python-2.7.15.amd64.msi ALL_USERS=0

[issue34469] windows msi in headless mode fails to install Script directory on reinstall if the python folder was deleted but not uninstalled

2018-08-22 Thread Christopher Knorowski
Christopher Knorowski added the comment: Steps to repeate (windows 10) msiexec.exe /i python-2.7.15.amd64.msi TARGETDIR=C:/Users/Public/python /qr (fresh install works without issue) rm -r C:/Users/Public/python msiexec.exe /i python-2.7.15.amd64.msi TARGETDIR=C:/Users/Public/python /qr

[issue34469] windows msi in headless mode fails to install Script directory on reinstall if the python folder was deleted but not uninstalled

2018-08-22 Thread Christopher Knorowski
New submission from Christopher Knorowski : Steps to repeate (windows 10) msiexec.exe /i python-2.7.15.amd64.msi TARGET_DIR=C:/Users/Public/python /qr (fresh install works without issue) rm -r C:/Users/Public/python msiexec.exe /i python-2.7.15.amd64.msi TARGET_DIR=C:/Users/Public/python

[issue34410] itertools.tee not thread-safe; can segfault interpreter when wrapped iterator releases GIL

2018-08-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: Xiang Zhang, would you like to submit a patch? -- ___ Python tracker ___ ___ Python-bugs-list

[issue34434] Removal of kwargs for built-in types not covered with "changed in Python" note in documentation

2018-08-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: > I'm not saying *no* documentation of the change is needed, > but I am saying, for list/tuple, the What's New note is > sufficient to cover it for those people who went mucking > through the CPython source code to find an undocumented > keyword they

[issue34455] Tkinter crashing when pressing Command + ^ (OSX)

2018-08-22 Thread iPodClassic
iPodClassic added the comment: I see. Well, I guess as far as I can go is to notify about the bug. The part about adding tkinter bind calls I have no idea. Should we just close this bug report as postponed or something? Thanks for the help and explanation though! I guess the more I get into

[issue34455] Tkinter crashing when pressing Command + ^ (OSX)

2018-08-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: I should have been more specific. I meant to run the file directly with python, with IDLE not involved. "python3 .../path/to/tk_scroll.py". Howver, running it from an IDLE editor and editing in the resulting non-IDLE text window is almost as good. This

[issue6700] inspect.getsource() returns incorrect source lines at the module level

2018-08-22 Thread Vladimir Matveev
Change by Vladimir Matveev : -- pull_requests: +8338 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34467] No mechanism to abort created coroutine or suppress not-awaited warning

2018-08-22 Thread ppperry
ppperry added the comment: Does calling `coro.close()` not work? -- nosy: +ppperry ___ Python tracker ___ ___ Python-bugs-list

[issue34468] An always-false condition in range_repr() from Objects/rangeobject.c

2018-08-22 Thread Alexey Izbyshev
New submission from Alexey Izbyshev : range_repr() contains the following snippet: /* Check for special case values for printing. We don't always need the step value. We don't care about errors (it means overflow), so clear the errors. */ istep =

[issue34467] No mechanism to abort created coroutine or suppress not-awaited warning

2018-08-22 Thread Sheng Zhong
New submission from Sheng Zhong : As far as I know, there is no mechanism for aborting a created coroutine instance before it's executed with an await (directly or indirectly). I have a function which takes in coroutine instances and conditionally creates a task for them that I track so that

[issue34466] socket.settimeout working incorrectly for connect() method of AF_UNIX socket

2018-08-22 Thread Fedor Korotkiy
New submission from Fedor Korotkiy : Attached program creates listening server socket, fills backlog queue with 2 client socket and performs third connect attempt after setting socket timeout to 5 second. I expect third connect() attempt to fail after specified timeout of 5 second. That is

[issue32947] Support OpenSSL 1.1.1

2018-08-22 Thread Kurt Roeckx
Kurt Roeckx added the comment: This are automated tests for the packages in Debian. I uploaded the pre9 version to unstable, and as a result of that all reverse dependencies got tested. I don't have any experience with python myself. Anyway, the openssl.cnf in Debian contains:

[issue34434] Removal of kwargs for built-in types not covered with "changed in Python" note in documentation

2018-08-22 Thread Josh Rosenberg
Josh Rosenberg added the comment: For tuple and list, no, they couldn't have looked at the help (because the help calls the argument "iterable", while the only keyword accepted was "sequence"). Nor was "sequence" documented in the online docs, nor anywhere else that I can find; it was

[issue34464] There are inconsitencies in the treatment of True, False, None, and __debug__ keywords in the docs

2018-08-22 Thread R. David Murray
R. David Murray added the comment: I've removed 2.7 since those constants are not keywords in 2.7 (although None and __debug__ do raise syntax errors even in 2.7, they are not keywords there). Which is almost certainly why the docs treat them inconsistently (leftovers from before they

[issue34465] ipaddress should accept bytearray in addition to bytes

2018-08-22 Thread Jörn Heissler
New submission from Jörn Heissler : Hi, the ipaddress module accepts `bytes' objects in the constructors. `bytearray' however is not supported, see paste below. Should this be supported too? >>> import ipaddress >>> ipaddress.IPv4Address(bytes([127, 0, 0, 1])) IPv4Address('127.0.0.1') >>>

[issue34464] docs: keywords are special - eg constants.html

2018-08-22 Thread Jonathan Fine
Jonathan Fine added the comment: I'm happy to work on improving the text here. I'm new to contributing to Python. I'm being mentored to work on #34431. Once I'm done with that, I'll be better placed to contributed to this issue. -- ___ Python

[issue34464] docs: keywords are special - eg constants.html

2018-08-22 Thread Jonathan Fine
New submission from Jonathan Fine : The identifiers True, False, None and __debug__ are keywords in the language. For example >>> __debug__ = __debug__ SyntaxError: assignment to keyword 1. The page constants.html incorrectly says then are in the built-in namespace. Some of them were,

[issue32947] Support OpenSSL 1.1.1

2018-08-22 Thread Christian Heimes
Christian Heimes added the comment: Kurt, can you try again with a current git checkout from master? I fixed a couple of issues lately. CPython master passes all tests with vanilla OpenSSL 1.1.1-pre9. Does Debian change some default settings? --

[issue34463] Discrepancy between traceback.print_exception and sys.__excepthook__

2018-08-22 Thread Timothy McCurrach
New submission from Timothy McCurrach : If you have set sys.excepthook to some function which calls traceback.print_exception, then I would expect to get identical traceback/exception messages. If you run raise SyntaxError("some message"), then print_exception has the extra line `File "",

[issue32947] Support OpenSSL 1.1.1

2018-08-22 Thread Kurt Roeckx
Kurt Roeckx added the comment: This are the errors I'm currently getting testing with the pre9 verion in Debian: https://ci.debian.net/data/autopkgtest/testing/amd64/p/python2.7/865936/log.gz https://ci.debian.net/data/autopkgtest/testing/amd64/p/python3.6/865937/log.gz

[issue34462] _xxsubinterpreters: Wrong NULL check in _copy_raw_string()

2018-08-22 Thread Berker Peksag
Change by Berker Peksag : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue34462] _xxsubinterpreters: Wrong NULL check in _copy_raw_string()

2018-08-22 Thread Berker Peksag
Berker Peksag added the comment: New changeset c583919ffced0a3b6409766fc12f6e28bef4fac7 by Berker Peksag (Alexey Izbyshev) in branch 'master': bpo-34462: Add missing NULL check to _copy_raw_string() (GH-8863) https://github.com/python/cpython/commit/c583919ffced0a3b6409766fc12f6e28bef4fac7

[issue2122] mmap.flush does not check for errors on windows

2018-08-22 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the suggestions and for the reviews! -- assignee: brian.curtin -> priority: high -> normal resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue2122] mmap.flush does not check for errors on windows

2018-08-22 Thread Berker Peksag
Berker Peksag added the comment: New changeset e7d4b2f205c711d056bea73a0093e2e2b200544b by Berker Peksag in branch 'master': bpo-2122: Make mmap.flush() behave same on all platforms (GH-8692) https://github.com/python/cpython/commit/e7d4b2f205c711d056bea73a0093e2e2b200544b -- nosy:

[issue34462] _xxsubinterpreters: Wrong NULL check in _copy_raw_string()

2018-08-22 Thread Alexey Izbyshev
Change by Alexey Izbyshev : -- keywords: +patch pull_requests: +8337 stage: -> patch review ___ Python tracker ___ ___

[issue34462] _xxsubinterpreters: Wrong NULL check in _copy_raw_string()

2018-08-22 Thread Alexey Izbyshev
New submission from Alexey Izbyshev : The code at https://github.com/python/cpython/blob/28853a249b1d0c890b7e9ca345290bb8c1756446/Modules/_xxsubinterpretersmodule.c#L18 checks a wrong variable for NULL: const char *str = PyUnicode_AsUTF8(strobj); if (str == NULL) { return

[issue34453] ipaddress module accepts some strange IPv6 addresses that it shouldn't

2018-08-22 Thread Luke Kenneth Casson Leighton
Luke Kenneth Casson Leighton added the comment: > Hi lkcl, are you working on the fix? I'd like to work on it. hi prudvi, i'm not: i'm simply making people aware that there's an issue that needs to be addressed (pun intended) -- ___ Python tracker

[issue34453] ipaddress module accepts some strange IPv6 addresses that it shouldn't

2018-08-22 Thread Prudvi RajKumar Maddala
Prudvi RajKumar Maddala added the comment: Hi Ikcl, are you working on the fix? I'd like to work on it. -- nosy: +prudvinit ___ Python tracker ___

[issue34434] Removal of kwargs for built-in types not covered with "changed in Python" note in documentation

2018-08-22 Thread Brett Cannon
Brett Cannon added the comment: Please don't use over-the-top language like "completely unjustifiable" because it is unnecessary and in this case wrong. We treat our documentation as a recording of the semantics of the stdlib as well as a recording of what semantic changes occurred between

[issue34454] datetime: NULL dereference in fromisoformat() on PyUnicode_AsUTF8AndSize() failure

2018-08-22 Thread Paul Ganssle
Change by Paul Ganssle : -- pull_requests: +8336 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34455] Tkinter crashing when pressing Command + ^ (OSX)

2018-08-22 Thread iPodClassic
iPodClassic added the comment: Thanks for the more detailed and further explanation. So we at least know it’s bound to spanish keyboards only. I wouldn’t even call it a bothersome bug except the key combo you press is very similar to when you try to enter a [ key (option+^) ; so you end up

[issue34458] No way to alternate options

2018-08-22 Thread paul j3
paul j3 added the comment: I agree that a custom Action subclass like this is the way to go. The regular 'append' is implemented in _AppendAction class, which is different from the default _StoreAction. So even if there was enough demand for this new idea to be put into development, it

[issue34425] :s formatting broken for objects without __format__

2018-08-22 Thread Eric V. Smith
Eric V. Smith added the comment: Forgot to add: I haven't looked at the docs yet, but I agree they should be clear on this issue. The docs should say: for types that implement the documented mini-language, "s" is the same as "". It's just that not all types implement the mini-language

[issue34434] Removal of kwargs for built-in types not covered with "changed in Python" note in documentation

2018-08-22 Thread Josh Rosenberg
Josh Rosenberg added the comment: Oh, I was checking old docs when I said the online docs didn't call int's argument "x"; the current docs do, so int, float and bool all justify a change (barely), it's just tuple and list for which it's completely unjustifiable. --

[issue34434] Removal of kwargs for built-in types not covered with "changed in Python" note in documentation

2018-08-22 Thread Josh Rosenberg
Josh Rosenberg added the comment: Bloating the documentation is almost certainly unjustifiable for list and tuple, and only barely justifiable for int, bool and float, given that: 1. The documentation (at least for Python 3) has *never* claimed the arguments could be passed by keyword (all

[issue34458] No way to alternate options

2018-08-22 Thread Josh Rosenberg
Josh Rosenberg added the comment: That's a *really* niche use case; you want to store everything to a common destination list, in order, but distinguish which switch added each one? I don't know of any programs that use such a design outside of Python (and therefore, it seems unlikely there

[issue34425] :s formatting broken for objects without __format__

2018-08-22 Thread Eric V. Smith
Eric V. Smith added the comment: About translating ":s" to "": > The library seems willing to do this for the empty format string, but not when the client code specifically asks for a string You're not asking for a string when you specify ":s". You're asking the object to interpret "s"

[issue34455] Tkinter crashing when pressing Command + ^ (OSX)

2018-08-22 Thread Ronald Oussoren
Ronald Oussoren added the comment: FWIW I can reproduce the problem with IDLE and tk_scroll.py: 1) Add a spanish keyboard layout in System Preferences (my normal layout is US International, matching the text on the keyboard) 2) Select this keyboard using the keyboard menu item 3) Type

[issue33187] Document ElementInclude (XInclude) support in ElementTree

2018-08-22 Thread Anjali Bansal
Anjali Bansal added the comment: Hello, I had created the PR for this issue. Please review and let me know if any modification required. GitHub PR: https://github.com/python/cpython/pull/8861 bpo-33187: Fix document ElementInclude (XInclude) support in ElementTree issue. --

[issue34410] itertools.tee not thread-safe; can segfault interpreter when wrapped iterator releases GIL

2018-08-22 Thread Josh Rosenberg
Josh Rosenberg added the comment: Carlo: The point of Xiang's post is that this is only tangentially related to multiprocessing; the real problem is that tee-ing an iterator implemented in Python (of which pool.imap_unordered is just one example) and using the resulting tee-ed iterators in

[issue33187] Document ElementInclude (XInclude) support in ElementTree

2018-08-22 Thread Anjali Bansal
Change by Anjali Bansal : -- keywords: +patch pull_requests: +8332 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue34207] test_cmd_line test_utf8_mode test_warnings fail in all FreeBSD 3.x (3.8) buildbots

2018-08-22 Thread Nick Coghlan
Nick Coghlan added the comment: Nothing has changed recently in the PEP 538 implementation itself, and both those builders were green last month: * https://buildbot.python.org/all/#/builders/60/builds/181 * https://buildbot.python.org/all/#/builders/79/builds/185 The first failing debug

[issue34455] Tkinter crashing when pressing Command + ^ (OSX)

2018-08-22 Thread iPodClassic
iPodClassic added the comment: Noted the issue with the email replies, sorry! Do you want me to place the file in any folder in particular? Remember I’m a noob at this. I placed it in the Python app folder, ran the script, played around with IDLE and I can still crash it using command + ^ .

[issue31436] test_socket.SendfileUsingSendfileTest.testWithTimeoutTriggeredSend fails due to sendfile completing before timeout

2018-08-22 Thread Łukasz Langa
Łukasz Langa added the comment: I'm having the same issue on my devserver at work. I think we need to re-evaluate how those timeouts are working. This is flaky testing. -- nosy: +lukasz.langa versions: +Python 3.7, Python 3.8 ___ Python tracker

[issue31436] test_socket.SendfileUsingSendfileTest.testWithTimeoutTriggeredSend fails due to sendfile completing before timeout

2018-08-22 Thread Łukasz Langa
Change by Łukasz Langa : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34456] pickle: Missing NULL check in save_global()

2018-08-22 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: No, I couldn't find any similar calls in save_global() in 2.7. However, there is Py_BuildValue() call in initcPickle(), and its result is passed unchecked to PyDict_SetItemString(), where it's eventually dereferenced. In fact, all PyDict_SetItemString()

[issue34461] Availability of parsers in etree initializer

2018-08-22 Thread Ronald Oussoren
Change by Ronald Oussoren : -- nosy: +eli.bendersky, scoder ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34456] pickle: Missing NULL check in save_global()

2018-08-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Is 2.7 affected? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34456] pickle: Missing NULL check in save_global()

2018-08-22 Thread Alexey Izbyshev
Change by Alexey Izbyshev : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.5 ___ Python tracker ___

[issue34454] datetime: NULL dereference in fromisoformat() on PyUnicode_AsUTF8AndSize() failure

2018-08-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I agree, that raising UnicodeEncodeError instead of ValueError is acceptable, since the former is a subclass of the latter. But since the default implementation raises more specialized subclass, it is probably that the user code will catch more narrow

[issue34454] datetime: NULL dereference in fromisoformat() on PyUnicode_AsUTF8AndSize() failure

2018-08-22 Thread Tal Einat
Change by Tal Einat : -- pull_requests: +8331 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34461] Availability of parsers in etree initializer

2018-08-22 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +8330 stage: -> patch review ___ Python tracker ___ ___

[issue34457] Missing NULL check in alias_for_import_name() from Python/ast.c

2018-08-22 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.4, Python 3.5 ___ Python tracker ___

[issue34457] Missing NULL check in alias_for_import_name() from Python/ast.c

2018-08-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 5223ce2131a121201a78d0680302ea06c4a58369 by Serhiy Storchaka (Alexey Izbyshev) in branch '2.7': [2.7] bpo-34457: Python/ast.c: Add missing NULL check to alias_for_import_name(). (GH-8852) (GH-8858)

[issue34393] json.dumps - allow compression

2018-08-22 Thread Eric V. Smith
Eric V. Smith added the comment: I'm not asking to be difficult, I'm asking because a full specification would be required in order to implement this. For example, you're excluding the "compresslevel" parameter, so presumably you'd want the default of 9, which is the slowest option. I'm not

[issue34457] Missing NULL check in alias_for_import_name() from Python/ast.c

2018-08-22 Thread Alexey Izbyshev
Change by Alexey Izbyshev : -- pull_requests: +8329 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34461] Availability of parsers in etree initializer

2018-08-22 Thread nilanjan roy
New submission from nilanjan roy : As xml package make the availability of separate global name-space by *__all__* so considerably *etree* should have included of all the parser files in its initialize(i.e. in *__init__.py*). So if any script consider as "from xml import *" then *etree*

[issue5999] compile error on HP-UX 11.22 ia64 - 'mbstate_t' is used as a type, but has not been defined as a type

2018-08-22 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue34459] email.contentmanager should use IANA encoding

2018-08-22 Thread era
era added the comment: https://bugs.python.org/issue34460 now requests the addition of "cp-850" and "windows-784" as charset aliases in the email.charset module. -- ___ Python tracker

[issue34460] email.charset: common IANA labels missing

2018-08-22 Thread era
New submission from era : The email.charset module should contain common informal character-set identifiers even if they are not formally specified in a IANA RFC. >From a quick grep of a pile of recent email, I find the following: 46 "cp-850" 6 "windows-874" For scale, the same

[issue34459] email.contentmanager should use IANA encoding

2018-08-22 Thread era
New submission from era : https://github.com/python/cpython/blob/3.7/Lib/email/contentmanager.py#L64 currently contains the following code: def get_text_content(msg, errors='replace'): content = msg.get_payload(decode=True) charset = msg.get_param('charset', 'ASCII')

[issue34450] improve shutil.make_archive

2018-08-22 Thread iMath
iMath added the comment: one workaround is : if os.path.join(root_dir, base_dir) exists, use the current implementation , this is set for backwards-compatibility, if not exist, please consider the feature in my last post(maybe we should recommend Python users to follow this approach in the