[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

Re: libxml2 installation/binding issue with Python 3.6.4

2018-02-05 Thread dieter
"Priest, Matt" writes: > ... > I've successfully (?) installed Python 3.6.4 and libxml2, with the ultimate > goal of installing GTK+ 3.22.0. You might also try "lxml" - which is an alternative for "libxml2". > However, I'm running into this error: > ... > import

[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 ___

Re: libxml2 installation/binding issue with Python 3.6.4

2018-02-05 Thread Terry Reedy
On 2/5/2018 6:11 PM, Priest, Matt wrote: Hello, I am not sure if this is the correct place to post an issue/question like this, but here goes... I've successfully (?) installed Python 3.6.4 and libxml2, with the ultimate goal of installing GTK+ 3.22.0. However, I'm running into this error:

[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

libxml2 installation/binding issue with Python 3.6.4

2018-02-05 Thread Priest, Matt
Hello, I am not sure if this is the correct place to post an issue/question like this, but here goes... I've successfully (?) installed Python 3.6.4 and libxml2, with the ultimate goal of installing GTK+ 3.22.0. However, I'm running into this error: python3 Python 3.6.4 (default, Feb 5

Re: From recovery.js to recoveryjsonlz4

2018-02-05 Thread breamoreboy
On Monday, February 5, 2018 at 1:28:16 PM UTC, Cecil Westerhof wrote: > I have a script to get the number of windows and tabs that firefox > uses. It always used a file recovery.js, but it changed to > recovery.jsonlz4. > > Looking at the extension I would think it is an lz4 compressed file. >

[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

Re: "None" and "pass"

2018-02-05 Thread Chris Angelico
On Tue, Feb 6, 2018 at 8:39 AM, Ben Finney wrote: > Chris Angelico writes: > >> As one special case, I would accept this sort of code: >> >> def f(): >> ... >> >> (three dots representing the special value Ellipsis) >> >> It's a great short-hand

Re: "None" and "pass"

2018-02-05 Thread Ben Finney
Chris Angelico writes: > As one special case, I would accept this sort of code: > > def f(): > ... > > (three dots representing the special value Ellipsis) > > It's a great short-hand for "stub". I would not accept that. An even better way to write a stub function is to

[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

Re: Where has the practice of sending screen shots as source code come from?

2018-02-05 Thread Peter J. Holzer
On 2018-01-28 15:04:26 +, Steven D'Aprano wrote: > I'm seeing this annoying practice more and more often. Even for trivial > pieces of text, a few lines, people post screenshots instead of copying > the code. For your amusment, here is how a well-known German tech news site publishes

[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)

Re: "None" and "pass"

2018-02-05 Thread Chris Angelico
On Tue, Feb 6, 2018 at 6:47 AM, Alain Ketterlin wrote: > r...@zedat.fu-berlin.de (Stefan Ram) writes: > >> A participant of my Python course asked whether one could >> also use "None" instead of "pass". What do you think? >> >> def f(): >> pass

[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

Re: "None" and "pass"

2018-02-05 Thread Alain Ketterlin
r...@zedat.fu-berlin.de (Stefan Ram) writes: > A participant of my Python course asked whether one could > also use "None" instead of "pass". What do you think? > > def f(): > pass > > can also be written as > > def f(): > None > > . Is there any place where "None" could not be

[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

Django-CheetahTemplate 0.2

2018-02-05 Thread Oleg Broytman
Hello! Django-CheetahTemplate version 0.2. WHAT IS Django-CheetahTemplate Django-CheetahTemplate is a Django template backend to use CheetahTemplate3 in Django. It's a brand new project created for the new custom Django template backends API. It works with Python 2.7 or Python 3.4+, Django 1.11

Re: Python "Bad syntax"

2018-02-05 Thread Bob van der Poel
On Mon, Feb 5, 2018 at 10:13 AM, wrote: > > Hi, I have a problem in continuing the function. > > I'm a beginner, I'm learning from a textbook. I'm going to put the > following examples from a textbook that displays "wrong syntax" > > >> for letter in

[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

Re: Python "Bad syntax"

2018-02-05 Thread Chris Angelico
On Tue, Feb 6, 2018 at 4:28 AM, Phil Boutros wrote: > wrote: >> >> Hi, I have a problem in continuing the function. >> >> I'm a beginner, I'm learning from a textbook. I'm going to put the >> following examples from a

[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

Re: Python "Bad syntax"

2018-02-05 Thread Phil Boutros
Phil Boutros wrote: > > Which version of python are you using? That syntax for "print" > started in python 3 (since print became a function). > > Try adding: > > from __future__ import print_function > > before your code if you're still using python 2.x Altough,

Re: Python "Bad syntax"

2018-02-05 Thread Christian Gollwitzer
Am 05.02.18 um 18:13 schrieb darkorbitaknaen...@centrum.cz: Hi, I have a problem in continuing the function. I'm a beginner, I'm learning from a textbook. I'm going to put the following examples from a textbook that displays "wrong syntax" for letter in "ABCDEFGHIJKLMNOPQRSTUVWXYZ":      

[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

Re: Python "Bad syntax"

2018-02-05 Thread Phil Boutros
wrote: >   > Hi, I have a problem in continuing the function. >   > I'm a beginner, I'm learning from a textbook. I'm going to put the > following examples from a textbook that displays "wrong syntax" >   for letter in

Re: Python "Bad syntax"

2018-02-05 Thread Ian Kelly
On Mon, Feb 5, 2018 at 10:13 AM, wrote: > > Hi, I have a problem in continuing the function. > > I'm a beginner, I'm learning from a textbook. I'm going to put the following > examples from a textbook that displays "wrong syntax" It would be very helpful if you

Re: Fwd: Problem during setup

2018-02-05 Thread Michael Torrie
On 02/05/2018 07:53 AM, Денис Олегович wrote: > I tried to install python 3.5 and python 3.6, but the same mistake > interrupt process > "Windows 7 Service Pack 1 applicable updates are required" Log file > attached. I tried to install some updates for Windows, but unsuccessully, > may be I don' t

Python "Bad syntax"

2018-02-05 Thread darkorbitaknaentou
  Hi, I have a problem in continuing the function.   I'm a beginner, I'm learning from a textbook. I'm going to put the following examples from a textbook that displays "wrong syntax"   for letter in "ABCDEFGHIJKLMNOPQRSTUVWXYZ":             if letter in "AEIOU":                 print(letter,

[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

From recovery.js to recoveryjsonlz4

2018-02-05 Thread Cecil Westerhof
I have a script to get the number of windows and tabs that firefox uses. It always used a file recovery.js, but it changed to recovery.jsonlz4. Looking at the extension I would think it is an lz4 compressed file. But when I use: import lz4 I see that it is deprecated. How should I work with

Fwd: Problem during setup

2018-02-05 Thread Денис Олегович
-- Forwarded message -- From: Денис Олегович Date: Sun, Feb 4, 2018 at 12:54 PM Subject: Problem during setup To: python-list@python.org I tried to install python 3.5 and python 3.6, but the same mistake interrupt process "Windows 7 Service Pack 1 applicable

[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 ___

Re: Why no '|' operator for dict?

2018-02-05 Thread Andre Müller
You can use keyword-argument unpacking in a dict-constructor. Values of duplicate keys are overwritten from left to right. The last wins. >>> dict1 = {'foo': 13, 'bar': 42} >>> dict2 = {'foo': 42, 'hello': 'world'} >>> {**dict1, **dict2} {'bar': 42, 'foo': 42, 'hello': 'world'} {**dict2,

[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'

  1   2   >