[issue31961] subprocess._execute_child doesn't accept a single PathLike argument for args

2018-02-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Anders, the problem is that running subprocess.run(executable) instead of subprocess.run([executable]) (where executable is a path to a program) is a bug. For example it doesn't work if the path contains spaces. And PR 4329

[issue32394] socket lib beahavior change in 3.6.4

2018-02-05 Thread Nathaniel Smith
Nathaniel Smith added the comment: I'm sympathetic to the idea that we don't want to carry around these checks, but also to the idea that this caused a regression in a micro release and that's not cool. Hence the idea that maybe we should keep everything the way it is in 3.7,

[issue32394] socket lib beahavior change in 3.6.4

2018-02-05 Thread Andrew Svetlov
Andrew Svetlov added the comment: I suggest closing the issue as "won't fix": checking in runtime for only for TCP flags on Windows is a weird exception. Checking all flags on all supported platforms is impossible. Client libraries should process such situations

[issue32777] subprocess: child_exec() uses _Py_set_inheritable() which is not async-signal-safe

2018-02-05 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: > out of curiosity, did you actually diagnose a process deadlocked due to this > or was it noted via code inspection? The latter. I noted it while working on another issue. While it was easy to trigger a malloc() in child_exec() by e.g.

[issue5594] IDLE: execute stored startup code on each Shell start.

2018-02-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: Currently, Shell start and restart act differently. Start can execute one of -s file, -c command, or neither (and there are other command line options). Restart prints a RESTART separator banner and optionally runs an edit buffer, but

[issue32770] collections.counter examples are misleading

2018-02-05 Thread Anthony Flury
Anthony Flury added the comment: Cheryl : When you iterate around a counter instance it does return keys in the order they are first encountered/inserted - so I agree with you that it is an ordered collection from Python 3.7 onwards (although the iteration and

[issue32777] subprocess: child_exec() uses _Py_set_inheritable() which is not async-signal-safe

2018-02-05 Thread Gregory P. Smith
Change by Gregory P. Smith : -- components: +Extension Modules resolution: -> fixed stage: patch review -> commit review status: open -> closed ___ Python tracker

[issue32777] subprocess: child_exec() uses _Py_set_inheritable() which is not async-signal-safe

2018-02-05 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset b90c68586e1f2c45c736dd38880f182be267e2ef by Gregory P. Smith (Miss Islington (bot)) in branch '3.6': bpo-32777: Fix _Py_set_inheritable async-safety in subprocess (GH-5560) (GH-5563)

[issue32777] subprocess: child_exec() uses _Py_set_inheritable() which is not async-signal-safe

2018-02-05 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 2bb0bfafb0beb819b7c60d9004382ce6867847c0 by Gregory P. Smith (Miss Islington (bot)) in branch '3.7': bpo-32777: Fix _Py_set_inheritable async-safety in subprocess (GH-5560) (GH-5562)

[issue32777] subprocess: child_exec() uses _Py_set_inheritable() which is not async-signal-safe

2018-02-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +5385 ___ Python tracker ___

[issue32777] subprocess: child_exec() uses _Py_set_inheritable() which is not async-signal-safe

2018-02-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +5386 ___ Python tracker ___

[issue32777] subprocess: child_exec() uses _Py_set_inheritable() which is not async-signal-safe

2018-02-05 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset c1e46e94de38a92f98736af9a42d89c3975a9919 by Gregory P. Smith (Alexey Izbyshev) in branch 'master': bpo-32777: Fix _Py_set_inheritable async-safety in subprocess (GH-5560)

[issue32777] subprocess: child_exec() uses _Py_set_inheritable() which is not async-signal-safe

2018-02-05 Thread Gregory P. Smith
Gregory P. Smith added the comment: out of curiosity, did you actually diagnose a process deadlocked due to this or was it noted via code inspection? this issue has been around since 3.4 and the file descriptor inheritance changes from the looks of things. --

[issue32780] ctypes: memoryview gives incorrect PEP3118 format strings for both packed and unpacked structs

2018-02-05 Thread Eric Wieser
Change by Eric Wieser : -- type: -> behavior ___ Python tracker ___ ___

[issue32780] ctypes: memoryview gives incorrect PEP3118 format strings for both packed and unpacked structs

2018-02-05 Thread Eric Wieser
Change by Eric Wieser : -- keywords: +patch pull_requests: +5383 stage: -> patch review ___ Python tracker ___

[issue32780] ctypes: memoryview gives incorrect PEP3118 format strings for both packed and unpacked structs

2018-02-05 Thread Eric Wieser
New submission from Eric Wieser : Discovered [here](https://github.com/numpy/numpy/issues/10528) Consider the following structure, and a memoryview created from it: class foo(ctypes.Structure): _fields_ = [('one', ctypes.c_uint8),

[issue32779] urljoining an empty query string doesn't clear query string

2018-02-05 Thread Paul Fisher
New submission from Paul Fisher : urljoining with '?' will not clear a query string: ACTUAL: >>> import urllib.parse >>> urllib.parse.urljoin('http://a/b/c?d=e', '?') 'http://a/b/c?d=e' EXPECTED: 'http://a/b/c' (optionally, with a ? at the end) WhatWG's URL standard

[issue32777] subprocess: child_exec() uses _Py_set_inheritable() which is not async-signal-safe

2018-02-05 Thread Gregory P. Smith
Change by Gregory P. Smith : -- assignee: -> gregory.p.smith nosy: +gregory.p.smith ___ Python tracker ___

[issue32778] Hi

2018-02-05 Thread Steven D'Aprano
Change by Steven D'Aprano : -- stage: -> resolved status: open -> closed ___ Python tracker ___

[issue15873] datetime: add ability to parse RFC 3339 dates and times

2018-02-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: New changeset 22864bc8e4a076bbac748ccda6c27f1ec41b53e7 by Alexander Belopolsky (Paul Ganssle) in branch 'master': Add What's new entry for datetime.fromisoformat (#5559)

[issue32770] collections.counter examples are misleading

2018-02-05 Thread Cheryl Sabella
Cheryl Sabella added the comment: You know, I'm not sure if I had ever seen that example before. When you click Counter at the top of the page, it goes right to the class definition, which is past the example. Having said that, I really like the example. Until now, I

[issue32778] Hi

2018-02-05 Thread REBECCA VICKERS
New submission from REBECCA VICKERS : Sent from my iPhone -- messages: 311701 nosy: REBECCAVICKERS000 priority: normal severity: normal status: open title: Hi ___ Python tracker

[issue32767] Mutating a list while iterating: clarify the docs

2018-02-05 Thread Tim Peters
Tim Peters added the comment: Some other points to consider: I don't think this belongs in the `for` statement docs at all. Instead they should merely _note_ that what happens if a sequence being iterated over is mutated is up to the sequence iterator. Then, e.g., the

[issue32777] subprocess: child_exec() uses _Py_set_inheritable() which is not async-signal-safe

2018-02-05 Thread Alexey Izbyshev
Change by Alexey Izbyshev : -- keywords: +patch pull_requests: +5382 stage: -> patch review ___ Python tracker ___

[issue32777] subprocess: child_exec() uses _Py_set_inheritable() which is not async-signal-safe

2018-02-05 Thread Alexey Izbyshev
New submission from Alexey Izbyshev : _Py_set_inheritable() raises a Python-level exception on error and thus is not async-signal-safe, but child_exec() must use only async-signal-safe functions because it's executed between fork() and exec(). Since a non-raising version

[issue15873] datetime: add ability to parse RFC 3339 dates and times

2018-02-05 Thread Paul Ganssle
Change by Paul Ganssle : -- pull_requests: +5380, 5381 ___ Python tracker ___ ___

[issue15873] datetime: add ability to parse RFC 3339 dates and times

2018-02-05 Thread Paul Ganssle
Change by Paul Ganssle : -- pull_requests: +5380 ___ Python tracker ___ ___

[issue31961] subprocess._execute_child doesn't accept a single PathLike argument for args

2018-02-05 Thread Anders Lorentsen
Anders Lorentsen added the comment: > # runs this weird file > subprocess.run([bin]) > # Currently an error; if this is implemented, would run > # /bin/ls, and pass it the -l argument. Refers to something > # completely different than our .exists() call above. I do not

[issue31961] subprocess._execute_child doesn't accept a single PathLike argument for args

2018-02-05 Thread Gregory P. Smith
Change by Gregory P. Smith : -- nosy: +ned.deily priority: normal -> release blocker versions: +Python 3.8 ___ Python tracker ___

[issue31961] subprocess._execute_child doesn't accept a single PathLike argument for args

2018-02-05 Thread Gregory P. Smith
Gregory P. Smith added the comment: I agree with both of you at this point. TODO: Revert the PR and backport that to the 3.7 branch (i'll take care of it) -- resolution: fixed -> stage: resolved -> needs patch ___ Python tracker

[issue32768] object.__new__ does not accept arguments if __bases__ is changed

2018-02-05 Thread Nick Coghlan
Nick Coghlan added the comment: I'd also ask whether the use case can be satisfied by rebinding __class__ instead of __bases__. That's far better defined than replacing the contents of the bases list and attempting to dynamically recalculate the MRO. --

[issue31961] subprocess._execute_child doesn't accept a single PathLike argument for args

2018-02-05 Thread Nathaniel Smith
Nathaniel Smith added the comment: I think I agree with Serhiy here... the whole difference between run([a]) and run(a) is that in the first case 'a' is treated as a path, and in the second it isn't. This distinction long predates pathlib. Say I have an oddly named binary

[issue32776] asyncio SIGCHLD scalability problems

2018-02-05 Thread Nathaniel Smith
Nathaniel Smith added the comment: There's two separate issues here: the warning spew because asyncio's internal signal handling code starts losing signals when they arrive too quickly, and the way the child reaping loop polls all the children on every SIGCHLD, which makes

[issue32642] add support for path-like objects in sys.path

2018-02-05 Thread Jay Yin
Jay Yin added the comment: This looks a lot like https://bugs.python.org/issue32446, I'd like to tackle this, if we are going through with it. -- nosy: +jayyin11043 ___ Python tracker

[issue32776] asyncio SIGCHLD scalability problems

2018-02-05 Thread holger
New submission from holger : I intended to use the asyncio framework for building an end-to-end test for our software. In the test I would spawn somewhere between 5k to 10k processes and have the same number of sockets to manage. When I built a prototype I ran into some

[issue32749] Remove dbm.dumb behavior deprecated in 3.6

2018-02-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 6c85efa5a66d7b254aa22a39d47f36c040d7a04e by Serhiy Storchaka in branch 'master': bpo-32749: Make dbm.dumb databases more cosistent with other dbm databases. (#5497)

[issue32773] distutils should NOT preserve timestamps

2018-02-05 Thread Jay Yin
Jay Yin added the comment: Will an option be added to copy_file() function? if we did we could probably make it preserve the times by default and have an -- option to make it update? -- nosy: +jayyin11043 ___ Python tracker

[issue32749] Remove dbm.dumb behavior deprecated in 3.6

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

[issue32775] fnmatch.translate() can produce a pattern which emits a nested set warning

2018-02-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is easy to fix sets starting with '['. It is more hard to fix sets with doubled '-', '&', '|' or '~'. >>> fnmatch.fnmatch('#', '[#--]') /home/serhiy/py/cpython/Lib/fnmatch.py:46: FutureWarning: Possible set difference at

[issue30349] Preparation for advanced set syntax in regular expressions

2018-02-05 Thread Tim Graham
Tim Graham added the comment: Okay, I created #32775. -- ___ Python tracker ___ ___

[issue32775] fnmatch.translate() can produce a pattern which emits a nested set warning

2018-02-05 Thread Tim Graham
New submission from Tim Graham : As discussed in issue30349#msg311684, fnmatch.translate() can produce a pattern which emits a nested set warning: >>> import fnmatch, re >>> re.compile(fnmatch.translate('[[]foo]')) __main__:1: FutureWarning: Possible nested set at

[issue32752] no information about accessing typing.Generic type arguments

2018-02-05 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: with the help command, you have a good documentation, help(list_of_ints), but you are right, there is no functions/methods for your need. in the code of typing, there is a comment about __args__ but it is not used by the documentation.

[issue30693] tarfile add uses random order

2018-02-05 Thread Bernhard M. Wiedemann
Bernhard M. Wiedemann added the comment: Serhiy, can you test https://github.com/python/cpython/pull/5557 -- ___ Python tracker

[issue30693] tarfile add uses random order

2018-02-05 Thread Bernhard M. Wiedemann
Change by Bernhard M. Wiedemann : -- keywords: +patch pull_requests: +5379 stage: needs patch -> patch review ___ Python tracker

[issue30349] Preparation for advanced set syntax in regular expressions

2018-02-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Good catch! fnmatch.translate() can produce a pattern which emits a warning when compiled. Could you please open a separate issue for this? -- ___ Python tracker

[issue31961] subprocess._execute_child doesn't accept a single PathLike argument for args

2018-02-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I don't remember all details, here is what I have found. Issue28230 and issue28231 -- the support of path-like object was added only for external names (paths of archives, paths of added files, paths for extraction), but not

[issue30349] Preparation for advanced set syntax in regular expressions

2018-02-05 Thread Tim Graham
Tim Graham added the comment: It might be worth adding part of the problematic regex to the warning message. For Django's tests, I see an error like "FutureWarning: Possible nested set at position 17 return re.compile(res).match". It took some effort to track down the

[issue32774] distutils: cyclic reference in the documentation

2018-02-05 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: ok, it's fine for me, I close this issue -- stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue31215] Add version changed notes for OpenSSL 1.1.0 compatibility

2018-02-05 Thread Cheryl Sabella
Change by Cheryl Sabella : -- keywords: +easy versions: +Python 3.8 ___ Python tracker ___

[issue32774] distutils: cyclic reference in the documentation

2018-02-05 Thread R. David Murray
R. David Murray added the comment: This is a common pattern in our documentation. It is done because ":mod:`xxx`" means that xxx should be formatted as a module name, rather than anything else. While it is true that the formatting for most such references is currently

[issue32768] object.__new__ does not accept arguments if __bases__ is changed

2018-02-05 Thread Guido van Rossum
Guido van Rossum added the comment: Yeah, I think the use case for assigning to __bases__ has not been shown. I believe we've seen other situations where the initial list of base classes is used in some computation that affects how the class works, so I doubt it has ever

[issue32647] Undefined references when compiling ctypes on binutils 2.29.1 with gcc -Wl, -z, undefs (Fedora 28)

2018-02-05 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: maybe I miss something but I have downloaded the last fedora:rawhide with docker, just update it via dnf update and install all the dependencies for git and python docker --rm -it fedora:rawhide /bin/bash dnf update dnf install git-core

[issue32647] Undefined references when compiling ctypes on binutils 2.29.1 with gcc -Wl, -z, undefs (Fedora 28)

2018-02-05 Thread Christian Heimes
Christian Heimes added the comment: Stéphane, the issue is only reproducible with latest Fedora rawhide. -- ___ Python tracker ___

[issue32647] Undefined references when compiling ctypes on binutils 2.29.1 with gcc -Wl, -z, undefs (Fedora 28)

2018-02-05 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: I use Fedora 27, Please, could you give the instructions for your build, I could test locally and check if the patch fixes the issue. Thank you -- nosy: +matrixise ___ Python tracker

[issue31961] subprocess._execute_child doesn't accept a single PathLike argument for args

2018-02-05 Thread Gregory P. Smith
Gregory P. Smith added the comment: got any pointers to those? I want to familiarize myself with existing arguments for/against such a feature in subprocess to decide. -- ___ Python tracker

[issue27643] test_ctypes fails on AIX with xlc

2018-02-05 Thread Michael Felt
Change by Michael Felt : -- pull_requests: +5378 ___ Python tracker ___ ___

[issue32773] distutils should NOT preserve timestamps

2018-02-05 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- nosy: +matrixise ___ Python tracker ___ ___

[issue32774] distutils: cyclic reference in the documentation

2018-02-05 Thread Stéphane Wirtel
New submission from Stéphane Wirtel : in the documentation of the distutils module, there is a cyclic references, just remove them because I think it's useless. -- ___ Python tracker

[issue32774] distutils: cyclic reference in the documentation

2018-02-05 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- keywords: +patch pull_requests: +5377 stage: -> patch review ___ Python tracker ___

[issue32774] distutils: cyclic reference in the documentation

2018-02-05 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- assignee: docs@python components: Documentation nosy: docs@python, matrixise priority: normal severity: normal status: open title: distutils: cyclic reference in the documentation versions: Python 2.7, Python 3.6, Python 3.7, Python 3.8

[issue32768] object.__new__ does not accept arguments if __bases__ is changed

2018-02-05 Thread R. David Murray
Change by R. David Murray : -- nosy: +r.david.murray ___ Python tracker ___ ___

[issue32773] distutils should NOT preserve timestamps

2018-02-05 Thread Jeroen Demeyer
New submission from Jeroen Demeyer : When a Python project is installed, distutils copies the files from the build to install directory using copy_file(). In this copy operation, timestamps are preserved. In other words, the timestamp of the installed file equals the

[issue32760] [Python Shell command issue]

2018-02-05 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: It's normal, when you execute a command, there is a fork/exec, fork for the new process, and the exec will replace the memory of the previous process by the new process. in os.system, you use ('export MYENVPATH=/usr/bin/gcc') but this

[issue30339] test_multiprocessing_main_handling: "RuntimeError: Timed out waiting for results" on x86 Windows7 3.x

2018-02-05 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: TLDR; but there is a new status for the associated PR https://github.com/python/cpython/pull/1978 -- nosy: +matrixise ___ Python tracker

[issue32613] Use PEP 397 py launcher in windows faq

2018-02-05 Thread Julien Palard
Julien Palard added the comment: The py command come from PEP 397, its rational will be more verbose than me [1], but in a nutshell it's a wrapper trying to find the right python according to some heuristics like the shebang. [1]:

[issue32613] Use PEP 397 py launcher in windows faq

2018-02-05 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Just for my info, what's the origin of 'py' ? and why does 'py' exists? -- nosy: +matrixise ___ Python tracker

[issue25988] collections.abc.Indexable

2018-02-05 Thread Tim Graham
Tim Graham added the comment: The last commit that added the deprecation warning needs to be added to the 3.7 branch. -- nosy: +Tim.Graham ___ Python tracker

[issue32768] object.__new__ does not accept arguments if __bases__ is changed

2018-02-05 Thread Nick Coghlan
Nick Coghlan added the comment: I've added Guido to the thread, as my initial reaction is to propose deprecating writable __bases__ rather than trying to support it properly. However, if we do decide to fix it, then the potential path to resolution I would suggest is: 1.

[issue32613] Use PEP 397 py launcher in windows faq

2018-02-05 Thread Julien Palard
Change by Julien Palard : -- keywords: +patch pull_requests: +5376 stage: needs patch -> patch review ___ Python tracker ___

[issue32770] collections.counter examples are misleading

2018-02-05 Thread Anthony Flury
Anthony Flury added the comment: Raymond, I completely understand your comment but I do disagree. My view would be that the documentation of the stdlib should document the entry level use cases. The first example given uses nothing special from the Counter class

[issue32647] Undefined references when compiling ctypes on binutils 2.29.1 with gcc -Wl, -z, undefs (Fedora 28)

2018-02-05 Thread Christian Heimes
Christian Heimes added the comment: configure.ac already contains the check: AC_CHECK_LIB(dl, dlopen) It should be enough to add: if sysconfig.get_config_var('HAVE_LIBDL'): libs.append('dl') to ctypes. -- type: -> compile error versions: +Python

[issue32647] Undefined references when compiling ctypes on binutils 2.29.1 with gcc -Wl, -z, undefs (Fedora 28)

2018-02-05 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch pull_requests: +5375 stage: -> patch review ___ Python tracker ___

[issue32647] Undefined references when compiling ctypes on binutils 2.29.1 with gcc -Wl, -z, undefs (Fedora 28)

2018-02-05 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: So what would be the best way to proceed from here? Add a check or just link to dl unconditionally? -- ___ Python tracker

[issue27643] test_ctypes fails on AIX with xlc

2018-02-05 Thread Michael Felt
Change by Michael Felt : -- versions: +Python 3.7 ___ Python tracker ___ ___

[issue32772] lstrip not working when string has =e in it

2018-02-05 Thread Christian Heimes
Christian Heimes added the comment: Please read the documentation again. lstrip doesn't work like you assume: >>> "cbaabcdef".lstrip("abc") 'def' -- nosy: +christian.heimes ___ Python tracker

[issue32772] lstrip not working when string has =e in it

2018-02-05 Thread Narendra L
Narendra L added the comment: If you see output dttrace e is missing see working example >>> test = "Cookie: test-Debug=edttrace=expires=1517828996" >>> test.lstrip('Cookie: test-Debug=') 'dttrace=expires=1517828996' # e missing here >>> test = "Cookie:

[issue32616] Significant performance problems with Python 2.7 built with clang 3.x or 4.x

2018-02-05 Thread INADA Naoki
INADA Naoki added the comment: This is assembly code for FAST_DISPATCH() https://paste.ubuntu.com/26523948/ It seems there are many redundant spills. But I don't know how to remove them. Are their clang expert? -- ___

[issue32772] lstrip not working when string has =e in it

2018-02-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It works as documented. Removes characters specified by the argument from the string. In your example the argument contains "e", but doesn't contain "d". Therefore starting characters up to "d" have been removed. --

[issue32772] lstrip not working when string has =e in it

2018-02-05 Thread Narendra L
New submission from Narendra L : Lstrip not working as expected when the string has "=e" in it. Python 2.7.11 (default, Jan 22 2016, 08:28:37) >>> test = "Cookie: test-Debug=edttrace=expires=1517828996" >>> test.lstrip('Cookie: test-Debug=') 'dttrace=expires=1517828996'

[issue30698] asyncio sslproto do not shutdown ssl layer cleanly

2018-02-05 Thread Andrew Svetlov
Change by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker ___ ___

[issue9216] FIPS support for hashlib

2018-02-05 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- pull_requests: +5374 ___ Python tracker ___ ___

[issue32394] socket lib beahavior change in 3.6.4

2018-02-05 Thread Ma Lin
Ma Lin added the comment: > Or the issue is specific for TCP_KEEPCNT for Windows only? Four flags involved. In this table, result column is search results from GitHub. keyword available result TCP_FASTOPEN win10 1607+ 778 TCP_KEEPCNTwin10 1703+ 3356

[issue32720] Format mini-language integer definition is incorrect

2018-02-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +5373 ___ Python tracker ___

[issue32720] Format mini-language integer definition is incorrect

2018-02-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +5372 ___ Python tracker ___

[issue32720] Format mini-language integer definition is incorrect

2018-02-05 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 7a561afd2c79f63a6008843b83733911d07f0119 by Mariatta in branch 'master': bpo-32720: Fixed the replacement field grammar documentation. (GH-5544)

[issue32768] object.__new__ does not accept arguments if __bases__ is changed

2018-02-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The problem is that class C(B): pass C.__bases__ = (A,) and class C(A): pass are not fully equivalent. In the first case type->tp_new != object_new. -- components: +Interpreter Core nosy:

[issue32771] merge the underlying data stores of unicodedata and the str type

2018-02-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: +1. And perhaps a new C API for direct access to the Unicode DB should be provided. -- components: +Interpreter Core nosy: +serhiy.storchaka ___ Python tracker

[issue32394] socket lib beahavior change in 3.6.4

2018-02-05 Thread Nathaniel Smith
Nathaniel Smith added the comment: I definitely don't think we should get into the game of trying to guess which flags are supported at runtime and only exposing those. It's not as simple as keeping a table of OS versions -- which would be hard enough to get right -- but on

[issue32394] socket lib beahavior change in 3.6.4

2018-02-05 Thread INADA Naoki
INADA Naoki added the comment: > What's about other OS/flags? > Should we commit that every exposed socket flag is supported in runtime? It looks like very heavy burden. I agree with you. It almost impossible. > Or the issue is specific for TCP_KEEPCNT for Windows

[issue32394] socket lib beahavior change in 3.6.4

2018-02-05 Thread Andrew Svetlov
Andrew Svetlov added the comment: What's about other OS/flags? Should we commit that every exposed socket flag is supported in runtime? It looks like very heavy burden. Or the issue is specific for TCP_KEEPCNT for Windows only? --

[issue32616] Significant performance problems with Python 2.7 built with clang 3.x or 4.x

2018-02-05 Thread INADA Naoki
INADA Naoki added the comment: It seems clang4 failed to efficient register assigning. FYI, --without-computed-gotos configure option make penalty smaller. clang 5 (wihtout CGs): 2.653426 clang 5 (with CGs): 1.997584 clang 4 (without CGs): 3.330879 clang 4 (with CGs):

[issue32760] [Python Shell command issue]

2018-02-05 Thread JamesDinh
JamesDinh added the comment: Hi, >From this stackoverflow thread: https://stackoverflow.com/questions/716011/why-cant-environmental-variables-set-in-python-persist I find out there is an abnormal environment variable setting affects by using shell command. Do you

[issue30928] Copy modified blurbs to idlelib/NEWS.txt

2018-02-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 7bd5a75bbe28219d3fc18a239c2c554d1850abcb by Terry Jan Reedy in branch '3.6': bpo-30928: IDLE - update NEWS.txt [GH-5539] (GH-5545) https://github.com/python/cpython/commit/7bd5a75bbe28219d3fc18a239c2c554d1850abcb --

[issue32761] Create IDLE Modern Mac keyset

2018-02-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: Mac key bindings and Shell home method behavior are separate and long-standing issues. They were discussed together in #18444, and this could be considered a duplicate thereof. However, the two issues need to be discussed and solved

[issue31930] IDLE: Pressing "Home" on Windows places cursor before ">>>"

2018-02-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: On #32761, Raymond reports that is ^A ('Home' for him) is bound to <>, he sees the same behavior. So this is not Windows only. Any change to EditorWindow.home_callback must be tested on all 3 major systems before merging. I hope to fix