[issue37199] Test suite fails when Ipv6 is unavailable

2019-06-29 Thread Zackery Spytz


Change by Zackery Spytz :


--
keywords: +patch
pull_requests: +14297
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/14480

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29505] Submit the re, json, & csv modules to oss-fuzz testing

2019-06-29 Thread miss-islington


Change by miss-islington :


--
pull_requests: +14296
pull_request: https://github.com/python/cpython/pull/14479

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29505] Submit the re, json, & csv modules to oss-fuzz testing

2019-06-29 Thread Gregory P. Smith


Gregory P. Smith  added the comment:


New changeset 5cbbbd73a6acb6f96f5d6646aa7498d3dfb1706d by Gregory P. Smith 
(Ammar Askar) in branch 'master':
bpo-29505: Add more fuzzing for re.compile, re.load and csv.reader (GH-14255)
https://github.com/python/cpython/commit/5cbbbd73a6acb6f96f5d6646aa7498d3dfb1706d


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29505] Submit the re, json, & csv modules to oss-fuzz testing

2019-06-29 Thread miss-islington


Change by miss-islington :


--
pull_requests: +14295
pull_request: https://github.com/python/cpython/pull/14478

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37369] Issue with pip in venv on Powershell in Windows

2019-06-29 Thread Steve Dower


Steve Dower  added the comment:

> I'm not sure of the purpose of sys._base_executable. Maybe open a separated 
> issue to make the attribute public? I'm not sure if multiprocessing (for 
> example) should use it, or if sys.executble should be used.

Yeah, it's a bit more complex. Sometimes it's needed and often not, depending 
on platform. For multiprocessing we need it on Windows because of the handle 
inheritance that's used, which only goes one subprocess deep,and we use special 
knowledge to make it work even in a venv.

But at least having it there means we can use it when needed without having to 
define its semantics for 100% of cases. Venvs make things really hard the way 
they're currently done...

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37434] Segfault in typeobject.c at _PyObject_GC_UNTRACK(type)

2019-06-29 Thread Tim Peters


Tim Peters  added the comment:

I haven't used protobuf, but it's _generally_ true that crashes that occur for 
the first time in the presence of C or C++ extension modules are due to subtle 
(or not so subtle) mistakes in using the sometimes-delicate Python C API.  So 
it's too soon to play "pin the blame on the donkey here" ;-)  But resolving it 
really needs someone who knows what protobuf is doing.

--
nosy: +tim.peters

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37369] Issue with pip in venv on Powershell in Windows

2019-06-29 Thread Steve Dower


Change by Steve Dower :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30754] textwrap.dedent mishandles empty lines

2019-06-29 Thread miss-islington


miss-islington  added the comment:


New changeset bc60c47169d1cb33f6fbe1ed64c09a536e82e1c3 by Miss Islington (bot) 
in branch '2.7':
[2.7] bpo-30754: Document textwrap.dedent blank line behavior. (GH-14469) 
(GH-14475)
https://github.com/python/cpython/commit/bc60c47169d1cb33f6fbe1ed64c09a536e82e1c3


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30754] textwrap.dedent mishandles empty lines

2019-06-29 Thread miss-islington


miss-islington  added the comment:


New changeset 3e133c401a51f08404b68f11d921f0b406283741 by Miss Islington (bot) 
in branch '3.8':
bpo-30754: Document textwrap.dedent blank line behavior. (GH-14469)
https://github.com/python/cpython/commit/3e133c401a51f08404b68f11d921f0b406283741


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30754] textwrap.dedent mishandles empty lines

2019-06-29 Thread miss-islington


miss-islington  added the comment:


New changeset e2e41cd114ae761fbfee4e7c6539f5df5c8c7116 by Miss Islington (bot) 
in branch '3.7':
bpo-30754: Document textwrap.dedent blank line behavior. (GH-14469)
https://github.com/python/cpython/commit/e2e41cd114ae761fbfee4e7c6539f5df5c8c7116


--
nosy: +miss-islington

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37434] Segfault in typeobject.c at _PyObject_GC_UNTRACK(type)

2019-06-29 Thread Timothy Lusk


Timothy Lusk  added the comment:

I'll admit I don't know enough about Python c extensions to make that call, but 
the fact that it wasn't crashing in the protobuf extension itself during the 
import but instead during the next garbage collection made me believe it was a 
Python bug. Maybe that's not a correct assumption though.

--
nosy: +Timothy Lusk2

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30754] textwrap.dedent mishandles empty lines

2019-06-29 Thread Gregory P. Smith


Change by Gregory P. Smith :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30754] textwrap.dedent mishandles empty lines

2019-06-29 Thread miss-islington


Change by miss-islington :


--
pull_requests: +14293
pull_request: https://github.com/python/cpython/pull/14476

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30754] textwrap.dedent mishandles empty lines

2019-06-29 Thread miss-islington


Change by miss-islington :


--
pull_requests: +14294
pull_request: https://github.com/python/cpython/pull/14477

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30754] textwrap.dedent mishandles empty lines

2019-06-29 Thread Gregory P. Smith


Gregory P. Smith  added the comment:


New changeset eb97b9211e7c99841d6cae8c63893b3525d5a401 by Gregory P. Smith 
(tmblweed) in branch 'master':
bpo-30754: Document textwrap.dedent blank line behavior. (GH-14469)
https://github.com/python/cpython/commit/eb97b9211e7c99841d6cae8c63893b3525d5a401


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30754] textwrap.dedent mishandles empty lines

2019-06-29 Thread miss-islington


Change by miss-islington :


--
pull_requests: +14292
pull_request: https://github.com/python/cpython/pull/14475

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36167] DOC: Incorrect capitalization in Programming FAQ

2019-06-29 Thread Avinash Sajjanshetty


Avinash Sajjanshetty  added the comment:

I would like to send a PR for this

--
nosy: +avi

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37448] obmalloc: radix tree for tracking arena address ranges

2019-06-29 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +inada.naoki

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37448] obmalloc: radix tree for tracking arena address ranges

2019-06-29 Thread Tim Peters


Change by Tim Peters :


--
nosy: +tim.peters

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37449] Move ensurepip off of pkgutil and to importlib.resources

2019-06-29 Thread Brett Cannon


New submission from Brett Cannon :

ensurepip is using pkgutil.get_data() which isn't as clean as 
importlib.resources for reading data from within a package.

--
components: Library (Lib)
messages: 346907
nosy: brett.cannon
priority: normal
severity: normal
stage: needs patch
status: open
title: Move ensurepip off of pkgutil and to importlib.resources
type: enhancement
versions: Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37437] update vendorized expat to 2.2.7

2019-06-29 Thread Ned Deily


Ned Deily  added the comment:


New changeset a1093e4dee9dd05cf3a844349c94fed52c4ebd89 by Ned Deily (Miss 
Islington (bot)) in branch '3.6':
bpo-37437: Pass -Wno-unreachable-code when compiling expat. (GH-14470) 
(GH-14472)
https://github.com/python/cpython/commit/a1093e4dee9dd05cf3a844349c94fed52c4ebd89


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37437] update vendorized expat to 2.2.7

2019-06-29 Thread Benjamin Peterson


Benjamin Peterson  added the comment:


New changeset 66c42f8bbcf5fa261a0d944ce8fbca9220abd11d by Benjamin Peterson in 
branch '3.8':
[3.8] bpo-37437: Pass -Wno-unreachable-code when compiling expat. (GH-14473)
https://github.com/python/cpython/commit/66c42f8bbcf5fa261a0d944ce8fbca9220abd11d


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37437] update vendorized expat to 2.2.7

2019-06-29 Thread miss-islington


miss-islington  added the comment:


New changeset ffa419ad004de96395a655f6b8d1a58b7c73372e by Miss Islington (bot) 
in branch '3.7':
bpo-37437: Pass -Wno-unreachable-code when compiling expat. (GH-14470)
https://github.com/python/cpython/commit/ffa419ad004de96395a655f6b8d1a58b7c73372e


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37448] obmalloc: radix tree for tracking arena address ranges

2019-06-29 Thread Neil Schemenauer


Change by Neil Schemenauer :


--
keywords: +patch
pull_requests: +14291
pull_request: https://github.com/python/cpython/pull/14474

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37448] obmalloc: radix tree for tracking arena address ranges

2019-06-29 Thread Neil Schemenauer


Change by Neil Schemenauer :


Added file: https://bugs.python.org/file48446/obmalloc_overhead.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37448] obmalloc: radix tree for tracking arena address ranges

2019-06-29 Thread Neil Schemenauer


Change by Neil Schemenauer :


Added file: https://bugs.python.org/file48445/pyperf_radix_compare.txt

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37448] obmalloc: radix tree for tracking arena address ranges

2019-06-29 Thread Neil Schemenauer


New submission from Neil Schemenauer :

This patch implements an alternative version of obmalloc's address_in_range().  
It uses a radix tree to map the areas of memory covered by obmalloc arenas.  
pymalloc_free() uses address_in_range() to determine if a block of memory is 
controlled by obmalloc or has been allocated by the system allocator.  The 
address_in_range() function must be fast.

The current version of address_in_range() uses a slightly memory unsanitary 
scheme.  I.e. it reads memory that has possibly not been initialized.  In 
theory that is not allowed and could cause a crash.  In practice, it has worked 
reliability for many years.  There is some ugly logic in obmalloc.c to disable 
sanity checking (e.g. ASN, TSAN, MSAN).  One advantage of this radix tree 
approach is that it doesn't have this unsanitary behavior.

Another small advantage of the radix tree approach is that it is independent 
from the OS page size.  With the current address_in_range() scheme, the size of 
obmalloc pools are limited to the size of the OS page size.  If larger, a 
segmentation fault could occur.  Bug #37211 (obmalloc: eliminate limit on pool 
size) allows for larger pools but at the cost of some additional code 
complexity and some additional memory overhead.

This patch has been discussed quite a bit on the python-dev list.  Thread 
subjects are:
obmalloc (was Have a big machine and spare time? Here's a possible Python 
bug.)
radix tree arena map for obmalloc

That discussion focuses quite a bit on the value of increasing the obmalloc 
arena and pool sizes.  This proposed patch keeps the sizes the same.  We can 
evaluate changing the sizes as a different issue.

I have run the pyperformance benchmark suite to compare performance of the 
radix tree with the status quo.  I think there is no significant difference for 
the programs that are part of the suite.  The pyperformance comparision report 
is attached.

If we do decide to go with larger pool and arena sizes, the radix tree approach 
actually uses less memory than the "big pools PR" (Bug #37211).  Attached is 
Tim's program to compare memory overheads of the different approaches.

I think it is worth considering using the radix tree by default on 64-bit 
platforms.  It seems to be not any slower than the status quo, does not have 
the memory unsanitary behavior and gives us the ability to easily increase pool 
sizes if we decide we want to.

--
components: Interpreter Core
messages: 346903
nosy: nascheme
priority: normal
severity: normal
stage: patch review
status: open
title: obmalloc: radix tree for tracking arena address ranges
type: enhancement

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37437] update vendorized expat to 2.2.7

2019-06-29 Thread Benjamin Peterson


Change by Benjamin Peterson :


--
pull_requests: +14290
pull_request: https://github.com/python/cpython/pull/14473

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37437] update vendorized expat to 2.2.7

2019-06-29 Thread Benjamin Peterson


Benjamin Peterson  added the comment:


New changeset 95da310078a9364bae9ab3f2ad9c71e34306a70c by Benjamin Peterson in 
branch 'master':
bpo-37437: Pass -Wno-unreachable-code when compiling expat. (GH-14470)
https://github.com/python/cpython/commit/95da310078a9364bae9ab3f2ad9c71e34306a70c


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37437] update vendorized expat to 2.2.7

2019-06-29 Thread miss-islington


Change by miss-islington :


--
pull_requests: +14289
pull_request: https://github.com/python/cpython/pull/14472

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37437] update vendorized expat to 2.2.7

2019-06-29 Thread miss-islington


Change by miss-islington :


--
pull_requests: +14288
pull_request: https://github.com/python/cpython/pull/14471

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37437] update vendorized expat to 2.2.7

2019-06-29 Thread Benjamin Peterson


Change by Benjamin Peterson :


--
pull_requests: +14287
pull_request: https://github.com/python/cpython/pull/14470

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30754] textwrap.dedent mishandles empty lines

2019-06-29 Thread sushma


Change by sushma :


--
keywords: +patch
pull_requests: +14286
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/14469

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34556] Add --upgrade-deps to venv module

2019-06-29 Thread Vinay Sajip


Vinay Sajip  added the comment:

> Is there any way other than discussing with the release manager to have this 
> considered?

I don't believe so.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37369] Issue with pip in venv on Powershell in Windows

2019-06-29 Thread Steve Dower


Steve Dower  added the comment:


New changeset 323e743d4879f1cd861d0b252775797fb7938755 by Steve Dower in branch 
'3.8':
bpo-37369: Fix initialization of sys members when launched via an app container 
(GH-14467)
https://github.com/python/cpython/commit/323e743d4879f1cd861d0b252775797fb7938755


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37369] Issue with pip in venv on Powershell in Windows

2019-06-29 Thread Steve Dower


Steve Dower  added the comment:


New changeset ac14632c756fec561e4b868b8793334bd7b22241 by Steve Dower in branch 
'master':
bpo-37369: Fixes crash when reporting fatal error (GH-14468)
https://github.com/python/cpython/commit/ac14632c756fec561e4b868b8793334bd7b22241


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37369] Issue with pip in venv on Powershell in Windows

2019-06-29 Thread Steve Dower


Change by Steve Dower :


--
pull_requests: +14285
pull_request: https://github.com/python/cpython/pull/14468

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36168] DOC: Fix capitalization in string.rst

2019-06-29 Thread Readul Hasan Chayan


Readul Hasan Chayan  added the comment:

If no one has any problem I would like to work on this. This will be my first 
contribution if it happens.

--
nosy: +Readul Hasan Chayan

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36167] DOC: Incorrect capitalization in Programming FAQ

2019-06-29 Thread Lysandros Nikolaou


Lysandros Nikolaou  added the comment:

Mariatta noted at 
https://mail.python.org/archives/list/core-mentors...@python.org/message/KFIGNAGJKWQXCXG72VGIGGA3OCKUHOFC/
 that these issues are not reserved and are now available for first-time 
contributors.

--
nosy: +lys.nikolaou

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36168] DOC: Fix capitalization in string.rst

2019-06-29 Thread Lysandros Nikolaou


Lysandros Nikolaou  added the comment:

Mariatta noted at 
https://mail.python.org/archives/list/core-mentors...@python.org/message/KFIGNAGJKWQXCXG72VGIGGA3OCKUHOFC/
 that these issues are not reserved and are now available for first-time 
contributors.

--
nosy: +lys.nikolaou

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37440] httplib should enable post-handshake authentication for TLS 1.3

2019-06-29 Thread Ned Deily


Ned Deily  added the comment:

Blocking 3.7.4 final pending resolution

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37440] httplib should enable post-handshake authentication for TLS 1.3

2019-06-29 Thread Ned Deily


Change by Ned Deily :


--
nosy: +benjamin.peterson, lukasz.langa
priority: deferred blocker -> release blocker

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37374] Minidom does not have to escape quote inside text segments

2019-06-29 Thread Daniel Hilst Selli


Daniel Hilst Selli  added the comment:

Not really, I don't have a use case here. I'm just warning that this would 
break user code that relies on old behavior.

Anyway is possible to add new behavior without changing the old one. A 
parameter would make this possible, for example.

This is only my opinion, let's other argue too

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18108] shutil.chown should support dir_fd and follow_symlinks keyword arguments

2019-06-29 Thread Avinash Sajjanshetty


Avinash Sajjanshetty  added the comment:

I was looking for an easy patch to submit. I can take an attempt at this?

--
nosy: +avi

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37374] Minidom does not have to escape quote inside text segments

2019-06-29 Thread Mitar


Mitar  added the comment:

Sure, but is old behavior useful in any use case? Every bugfix changes old 
behavior in an irreversible way.

So in which use case you want the old behavior? Can you elaborate here?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7202] "python setup.py cmd --verbose" does not set verbosity

2019-06-29 Thread Avinash Sajjanshetty


Avinash Sajjanshetty  added the comment:

I would like to take this up task and propose a patch. However, I am not able 
to reproduce this issue on my machine (3.7.1). Does the issue seem to be fixed?

Here is what I tried: 

1. 

python setup.py --verbose build

I got the verbose build, as expected. 

2. 

python setup.py build --verbose 

In this case, it seems to have ignored the verbose option, as I got a normal 
(non-verbose) output. 

3. since the issue is with `verbose`, I tried quiet. 

python setup.py --quiet build

I got a quiet build. 

4. 

python setup.py build --quiet 


it ignored the quiet option, as I got a normal output.


5. I also tried a non-existent option. In the following both cases, I got an 
error saying 

error: option --qqqp not recognized


for 


python setup.py --qqqp build


and 


python setup.py build --qqqp

--
nosy: +avi

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37369] Issue with pip in venv on Powershell in Windows

2019-06-29 Thread Steve Dower


Change by Steve Dower :


--
pull_requests: +14284
pull_request: https://github.com/python/cpython/pull/14467

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37369] Issue with pip in venv on Powershell in Windows

2019-06-29 Thread Steve Dower


Steve Dower  added the comment:


New changeset 9048c49322a5229ff99610aba35913ffa295ebb7 by Steve Dower in branch 
'master':
bpo-37369: Fix initialization of sys members when launched via an app container 
(GH-14428)
https://github.com/python/cpython/commit/9048c49322a5229ff99610aba35913ffa295ebb7


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37380] subprocess.Popen._cleanup() "The handle is invalid" error when some old process is gone

2019-06-29 Thread Ruslan Kuprieiev


Ruslan Kuprieiev  added the comment:

The `_active` code is pretty old and has not changed since 2.7, so it makes 
sense to backport it for now(also, should be very trivial to do that). To me, 
it doesn't seem dangerous to backport that, but I would love to hear what Eryk 
and others think :)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19696] Merge all (non-syntactic) import-related tests into test_importlib

2019-06-29 Thread aeros167


aeros167  added the comment:

Created a new PR replacing the deprecated method "random.choose" with 
"random.choice" in "test_pkg_import.py" 
(https://github.com/python/cpython/pull/14466).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37430] range is not a built-in function

2019-06-29 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Then it appears the indexing could also be improved.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19696] Merge all (non-syntactic) import-related tests into test_importlib

2019-06-29 Thread aeros167


Change by aeros167 :


--
pull_requests: +14283
pull_request: https://github.com/python/cpython/pull/14466

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37409] relative import without parent succeeds with builtins.__import__

2019-06-29 Thread Ben Lewis


Change by Ben Lewis :


--
keywords: +patch
pull_requests: +14282
stage: test needed -> patch review
pull_request: https://github.com/python/cpython/pull/14465

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37447] Nested For Loop in Python not working as Expected after cnt=2136

2019-06-29 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

@pradnyan The break statement [0] only exits the for loop where it's present in 
this the one where y is involved so the outer loop involving x will continue to 
execute. So after every attempt where y = 0 the cnt value succeeds and breaks 
out of the loop. I think this is a problem with the logic that you want to 
refactor and not a problem with CPython.

def test():
cnt=0
for x in range(3216):
for y in range(2136):
cnt = cnt + 1
print("cnt="+str(cnt)+" y=" + str(y) + " x=" + str(x) )
if cnt > 2137 : 
break # Break only out of "for y in in range(2136)"

In future reports please also don't add many people to the nosy list.

[0] 
https://docs.python.org/3/tutorial/controlflow.html#break-and-continue-statements-and-else-clauses-on-loops

--
nosy: +xtreak
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37446] Undefined behavior in Python/hamt.c

2019-06-29 Thread Michele Angrisano


Michele Angrisano  added the comment:

I don't get that output on 3.8.0a4+. I'm on OSX.
Anyway, I think that 1 should be cast with unsigned.

What do you think?

--
nosy: +mangrisano

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37447] Nested For Loop in Python not working as Expected after cnt=2136

2019-06-29 Thread Pradnyan


New submission from Pradnyan :

I have come across very strange Python bug in nested for loops:
See below nested for loop with range function and its not working as expected.

It worked fine until cnt=2136 and start giving unexpected output after that. 

As per logic y value should get incremented for every x value but after 
cnt=2136 the y value remains 0 and x gets incremented and also
code did not stop for cnt>2137 and it halts only at 5352.

I have attached actual python code and its output. This code is executed on 
latest python build 3.7.3

Erroneous output 

cnt=2134 y=2133 x=0
cnt=2135 y=2134 x=0
cnt=2136 y=2135 x=0
cnt=2137 y=0 x=1
cnt=2138 y=1 x=1
cnt=2139 y=0 x=2
cnt=2140 y=0 x=3
cnt=2141 y=0 x=4

==
==
Python code:
==
 cnt=0
for x in range(3216):
for y in range(2136):
cnt = cnt + 1
#print("y="+str(y)+" x="+str(x)+" pixel="+str(im_ary[y,x]))
print("cnt="+str(cnt)+" y=" + str(y) + " x=" + str(x) )
if cnt>2137 :
break

=

--
components: Build
files: Pyton_For_Loop_issue.zip
messages: 346884
nosy: anthonybaxter, barry, benjamin.peterson, eric.araujo, ezio.melotti, 
georg.brandl, gvanrossum, lemburg, mdk, ned.deily, pradnyan, tarek
priority: normal
severity: normal
status: open
title: Nested For Loop in Python not working as Expected after cnt=2136
type: behavior
versions: Python 3.7
Added file: https://bugs.python.org/file48444/Pyton_For_Loop_issue.zip

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19696] Merge all (non-syntactic) import-related tests into test_importlib

2019-06-29 Thread aeros167


aeros167  added the comment:

> Thanks for the PR, aeros167! BTW, if you want to open a new issue and 
> modernize the tests to use importlib directly that would be great!

Sounds good, I'll definitely look into doing that after finishing up this 
issue. Was waiting the previous PR to be merged before replacing the deprecated 
method "random.choose" with "random.choice" in "test_pkg_import.py" and then 
also moving the other two into test_importlib. 

Thank you very much for the timely feedback. This has been a great experience 
for learning to contribute to larger open source projects. It's been an 
aspiration of mine to give back to Python, as it was my first serious 
programming language 5 years ago. This may be an incredibly minor contribution 
in the grand scheme of things, but my goal is for it to be the first of many (:

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36656] Please add race-free os.link and os.symlink wrapper / helper

2019-06-29 Thread Tom Hale


Tom Hale  added the comment:

I've created a PR here:

https://github.com/python/cpython/pull/14464

Only shutil.symlink is currently implemented.

Feedback sought from Windows users.

@Michael.Felt please note that `overwrite=False` is the default.

@taleinat I hope that the new implementation addresses the infinite loop 
concern.

Please be both thorough and gentle - this is my first PR.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36656] Please add race-free os.link and os.symlink wrapper / helper

2019-06-29 Thread Roundup Robot


Change by Roundup Robot :


--
keywords: +patch
pull_requests: +14280
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/14464

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37428] SSLContext.post_handshake_auth implicitly enables cert validation

2019-06-29 Thread Ned Deily


Ned Deily  added the comment:

Christian, do you have an estimate for when these issues will be resolved?  We 
are holding 3.7.4 right now.

--
nosy: +benjamin.peterson, lukasz.langa
priority: deferred blocker -> release blocker

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37366] Add an "onitem" callback parameter to shutil.rmtree()

2019-06-29 Thread Giampaolo Rodola'


Giampaolo Rodola'  added the comment:

I'm gonna reject this one, sorry Jeffrey. Reasons given in 
https://bugs.python.org/issue36422#msg346878 also apply here.

--
resolution:  -> rejected
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36422] tempfile.TemporaryDirectory() removes entire directory tree even if it's a mount-point

2019-06-29 Thread Giampaolo Rodola'


Giampaolo Rodola'  added the comment:

> in case a filesystem has been mounted on the temporary directory, this can 
> lead to the entire filesystem being removed

-1

That is expected behavior and the use case looks pretty unusual. Such a new 
parameter wouldn't even be supported by other "batteries" since there's no 
portable/standard way to either mount or unmount a directory (in fact you had 
to use a subprocess in your unit-tests).

A `delete=bool` parameter would be a more reasonable proposal in principle but:
1) if you want to keep the directory around then you can just use 
tempfile.mkdtemp() (see "there should preferably be only one way to do it")
2) it would conflict with the context manager usage which is expected to delete 
the dir on ctx manager exit

In summary, I think this would over-complicate the API for no good reason. 
I'm closing this out as rejected.

--
resolution:  -> rejected
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.9 -Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37357] mbox From line wrongly detected

2019-06-29 Thread Eric V. Smith


Change by Eric V. Smith :


--
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com