[issue32962] test_gdb fails in debug build with `-mcet -fcf-protection -O0`

2018-06-19 Thread STINNER Victor


STINNER Victor  added the comment:

Oh I see. But currently, many test_gdb tests pass even with optimization. I 
dislike reducing the test coverage when Python is compiled with optimizations, 
just to support -mcet -fcf-protection.

Would it be possible to detect the special case "-mcet -fcf-protection" *and* 
optimizations, and only skip test_gdb in that case?

--

___
Python tracker 

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



[issue33872] doc Add list access time to list definition

2018-06-19 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

-1 We've historically chosen to not include such implementation specific 
details and it seems to have not been a problem for users.  The glossary in 
particular is no place to talk about such specifics.

--
nosy: +rhettinger, tim.peters
resolution:  -> rejected
stage: patch review -> resolved
status: open -> closed
versions:  -Python 2.7, Python 3.6

___
Python tracker 

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



[issue33858] A typo in multiprocessing documentation

2018-06-19 Thread aruseni


aruseni  added the comment:

Thanks all!

--

___
Python tracker 

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



[issue33866] Stop using OrderedDict in enum

2018-06-19 Thread INADA Naoki


Change by INADA Naoki :


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



[issue20180] Derby #11: Convert 50 sites to Argument Clinic across 9 files

2018-06-19 Thread INADA Naoki


INADA Naoki  added the comment:

> IMO we should create new issues for AC conversion of the collections and 
> random modules (assuming they haven't been converted yet), and close this 
> issue.

I agree with you. Let's finish derby.

--

___
Python tracker 

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



[issue33899] Tokenize module does not mirror "end-of-input" is newline behavior

2018-06-19 Thread Ammar Askar


New submission from Ammar Askar :

As was pointed out in https://bugs.python.org/issue33766 there is an edge case 
in the tokenizer whereby it will implicitly treat the end of input as a 
newline. The tokenize module in stdlib does not mirror the C code's behavior in 
this case.

tokenizer.c:

  ~/cpython $ echo -n 'x' | ./python
  --
  NAME ("x")
  NEWLINE
  ENDMARKER

tokenize module:

  ~/cpython $ echo -n 'x' | ./python -m tokenize
  1,0-1,1:NAME   'x'
  2,0-2,0:ENDMARKER  ''

The instrumentation to have the C tokenizer dump out its tokens is mine, can 
provide a diff to produce that output if needed.

--
assignee: ammar2
components: Library (Lib)
messages: 319934
nosy: ammar2
priority: normal
severity: normal
status: open
title: Tokenize module does not mirror "end-of-input" is newline behavior
type: behavior
versions: Python 3.8

___
Python tracker 

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



[issue33900] collections.counter update method without argument gives misleading error

2018-06-19 Thread Karthikeyan Singaravelan

New submission from Karthikeyan Singaravelan :

There was a change made in collections.Counter that made it accept self as the 
first parameter and hence while doing *args in the method signature args[0] is 
always set as the self. Hence the check for `not args` becomes a no-op during 
collection_object.update() calls and the type error is not raised. This is only 
triggered when it's called as a class method like `Counter.update` and the 
error message is misleading "descriptor 'update' of 'Counter' object "needs an 
argument" which says update method of Counter object needs an argument though 
we are calling the method on class and also calling update on Counter object 
doesn't need an argument since counter_object.update() works fine as no-op. I 
think the error message could be improved since argument is not necessary for 
counter_object.update.

Relevant commit : 
https://github.com/python/cpython/commit/ae5cb214d2cd41d96943a0ef43a4e95bd9a10b7a#diff-f30cb98704c3ccaf71deaf5503f7f4a1R587
No argument to counter object update test case : 
https://github.com/python/cpython/blob/ae5cb214d2cd41d96943a0ef43a4e95bd9a10b7a/Lib/test/test_collections.py#L1077
Calling update on Counter class test case : 
https://github.com/python/cpython/commit/20994f1e27c38973f1854dbdcf9b29fe8e3cd6be#diff-b5f669eab2fa576572b6115caa24427fR928

# Python 3

➜  cpython git:(master) ✗ ./python
Python 3.8.0a0 (heads/bpo33830-httplib-docs-fix-dirty:9bf0fb8, Jun 18 2018, 
17:09:54)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from collections import Counter
>>> c = Counter("Hello")


>>> Counter.update()
Traceback (most recent call last):
  File "", line 1, in 
  File "/user/karthik/cpython/Lib/collections/__init__.py", line 638, in update
raise TypeError("descriptor 'update' of 'Counter' object "
TypeError: descriptor 'update' of 'Counter' object needs an argument
>>> Counter.update(1) # No error since we check for the first argument to be 
>>> iterable
>>> c.update() # No args works fine though there was an above error with 
>>> TypeError: descriptor 'update' of 'Counter' object needs an argument when 
>>> called on class

>>> Counter.update(1, foo=1) # 1 is considered as self here, a valid counter 
>>> object works fine and is updated
Traceback (most recent call last):
  File "", line 1, in 
  File "/user/karthik/cpython/Lib/collections/__init__.py", line 655, in update
self.update(kwds)
AttributeError: 'int' object has no attribute 'update'


Thanks

--
components: Library (Lib)
messages: 319935
nosy: xtreak
priority: normal
severity: normal
status: open
title: collections.counter update method without argument gives misleading error
versions: Python 3.8

___
Python tracker 

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



[issue33630] test_posix: TestPosixSpawn fails on PPC64 Fedora 3.x

2018-06-19 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset cb970730e3ca2522e9b1700dcaf0a06b7e898db6 by Serhiy Storchaka 
(Pablo Galindo) in branch 'master':
bpo-33630: Fix using of freed memory in old versions of glicb for 
posix_spawn(). (GH-7685)
https://github.com/python/cpython/commit/cb970730e3ca2522e9b1700dcaf0a06b7e898db6


--

___
Python tracker 

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



[issue33630] test_posix: TestPosixSpawn fails on PPC64 Fedora 3.x

2018-06-19 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Thank you Pablo! Seems failures in other tests that look like a race condition 
actually are caused by the glibc bug. I think that after passing tests on 
builtbots this issue can be closed.

--

___
Python tracker 

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



[issue33843] Remove deprecated stuff in cgi module

2018-06-19 Thread INADA Naoki


Change by INADA Naoki :


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



[issue33843] Remove deprecated stuff in cgi module

2018-06-19 Thread INADA Naoki


INADA Naoki  added the comment:


New changeset 698865dcbb302ae742b76be883822f1563764ff9 by INADA Naoki in branch 
'master':
bpo-33843: Remove deprecated stuff in cgi module (GH-7662)
https://github.com/python/cpython/commit/698865dcbb302ae742b76be883822f1563764ff9


--

___
Python tracker 

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



[issue33900] collections.counter update method without argument gives misleading error

2018-06-19 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

This error is correct. It is the same as for dict.update.

>>> dict.update()
Traceback (most recent call last):
  File "", line 1, in 
TypeError: descriptor 'update' of 'dict' object needs an argument

Perhaps you missed the difference between a descriptor and a method.

--
nosy: +rhettinger, serhiy.storchaka

___
Python tracker 

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



[issue33898] pathlib issues with Windows device paths

2018-06-19 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
nosy: +pitrou

___
Python tracker 

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



[issue33900] collections.counter update method without argument gives misleading error

2018-06-19 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

Okay, got it. Sorry for the noise. Closing it.

Thanks

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



[issue33174] error building the _sha3 module with Intel 2018 compilers

2018-06-19 Thread Kenneth Hoste


Kenneth Hoste  added the comment:

@William: someone in the EasyBuild community seems to have figured out the 
culprit, and came up with a patch to work around the problem, see 
https://github.com/easybuilders/easybuild-easyconfigs/pull/6447/files#diff-bdbfca2206414b3b37794b77c0abb8e8
 .

Any feedback on that?

--

___
Python tracker 

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



[issue33901] test_dbm_gnu.test_reorganize() failed on x86-64 High Sierra 3.x

2018-06-19 Thread STINNER Victor


New submission from STINNER Victor :

http://buildbot.python.org/all/#/builders/145/builds/81

x86-64 High Sierra 3.x:

==
FAIL: test_reorganize (test.test_dbm_gnu.TestGdbm)
--
Traceback (most recent call last):
  File 
"/Users/buildbot/buildarea/3.x.billenstein-sierra/build/Lib/test/test_dbm_gnu.py",
 line 77, in test_reorganize
self.assertTrue(size0 < size1)
AssertionError: False is not true


The only change of this build is the commit 
cb970730e3ca2522e9b1700dcaf0a06b7e898db6: bpo-33630. But I hardly believe that 
it's related.

--
components: Tests, macOS
messages: 319942
nosy: ned.deily, ronaldoussoren, vstinner
priority: normal
severity: normal
status: open
title: test_dbm_gnu.test_reorganize() failed on x86-64 High Sierra 3.x
versions: Python 3.8

___
Python tracker 

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



[issue33174] error building the _sha3 module with Intel 2018 compilers

2018-06-19 Thread Christian Heimes


Christian Heimes  added the comment:

I read the patch. The manual loop unrolling is ugly but mostly ok. But 
I'm -1 on the "-O0" option and won't accept the patch unless it works with 
standard optimization. sha3 is already slow. Without optimization, the 
algorithm grinds to a halt.

Did anybody contact Intel and reported the bug? It's clearly a bug in ICC. GCC, 
clang and MSVC compile the code just fine.

--

___
Python tracker 

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



[issue32388] Remove cross-version binary compatibility

2018-06-19 Thread STINNER Victor


STINNER Victor  added the comment:

In which version of Python tp_finalize slot has been added? Does it mean that 
Python 3.8 wil crash on loading C extensions compiled on Python older than this 
version?

--
nosy: +vstinner

___
Python tracker 

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



[issue33174] error building the _sha3 module with Intel 2018 compilers

2018-06-19 Thread Andrew Edmondson


Andrew Edmondson  added the comment:

I made the patch. I'm not sure it's suitable to commit back as it is, as it 
unrolls a macro but there seems to be a choice of macro in the code (depending 
on certain conditions).

The problem is that icc can't handle a line that is so long.

I didn't log the bug with Intel - but I agree that it's a compiler bug and not 
a Python bug. I'll log it now...

-Ed

--
nosy: +edmondac

___
Python tracker 

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



[issue33630] test_posix: TestPosixSpawn fails on PPC64 Fedora 3.x

2018-06-19 Thread STINNER Victor


STINNER Victor  added the comment:

PPC64 Fedora 3.x, PPC64LE Fedora 3.x, s390x Debian 3.x and s390x RHEL 3.x 
buildbots are back to green thanks to this fix.

Oh wow, so it was a glibc bug: that was unexpected :-( Hopefully, the 
workaround is tiny and cheap!

> I think that after passing tests on builtbots this issue can be closed.

Right. I closed the PR 7663 and I close this issue.

Thank you all for investigating this issue, thanks Serhiy and Xiang for the 
review, and thanks Pablo for the fix!

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



[issue32388] Remove cross-version binary compatibility

2018-06-19 Thread Antoine Pitrou


Antoine Pitrou  added the comment:

> Does it mean that Python 3.8 wil crash on loading C extensions compiled on 
> Python older than this version?

What makes you think that it would be otherwise be able to load and execute 
such C extensions without any bugs?

There is no ABI except the stable ABI, and tp_flags isn't part of the stable 
ABI. 

PS : tp_finalize is in Python 3.4, but that doesn't really matter.

--

___
Python tracker 

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



[issue33174] error building the _sha3 module with Intel 2018 compilers

2018-06-19 Thread Andrew Edmondson


Andrew Edmondson  added the comment:

See https://software.intel.com/en-us/forums/intel-c-compiler/topic/780574

--

___
Python tracker 

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



[issue33901] test_dbm_gnu.test_reorganize() failed on x86-64 High Sierra 3.x

2018-06-19 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
keywords: +patch
pull_requests: +7390
stage:  -> patch review

___
Python tracker 

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



[issue33865] [EASY] Missing code page aliases: "unknown encoding: 874"

2018-06-19 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

In particular, we're interested in the following information:

* What OS is installed on your machine?
* What locale (country/language) is configured?
* What does "import locale; print(locale._getdefaultlocale())" print?

--

___
Python tracker 

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



[issue33865] [EASY] Missing code page aliases: "unknown encoding: 874"

2018-06-19 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

* Does you use a regular Python interpreter or embedded in other program?

--

___
Python tracker 

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



[issue33901] test_dbm_gnu.test_reorganize() failed on x86-64 High Sierra 3.x

2018-06-19 Thread miss-islington


Change by miss-islington :


--
pull_requests: +7391

___
Python tracker 

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



[issue33901] test_dbm_gnu.test_reorganize() failed on x86-64 High Sierra 3.x

2018-06-19 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 22525de737679ace1488e63b7ed289bdb253ffc7 by Serhiy Storchaka in 
branch 'master':
Use more specific asserts in dbm tests. (GH-7786)
https://github.com/python/cpython/commit/22525de737679ace1488e63b7ed289bdb253ffc7


--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue33901] test_dbm_gnu.test_reorganize() failed on x86-64 High Sierra 3.x

2018-06-19 Thread miss-islington


Change by miss-islington :


--
pull_requests: +7392

___
Python tracker 

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



[issue33895] LoadLibraryExW called with GIL held can cause deadlock

2018-06-19 Thread Tony Roberts


Change by Tony Roberts :


--
keywords: +patch
pull_requests: +7393
stage: needs patch -> patch review

___
Python tracker 

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



[issue33901] test_dbm_gnu.test_reorganize() failed on x86-64 High Sierra 3.x

2018-06-19 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

http://buildbot.python.org/all/#/builders/145/builds/84

==
FAIL: test_reorganize (test.test_dbm_gnu.TestGdbm)
--
Traceback (most recent call last):
  File 
"/Users/buildbot/buildarea/3.x.billenstein-sierra/build/Lib/test/test_dbm_gnu.py",
 line 77, in test_reorganize
self.assertGreater(size1, size0)
AssertionError: 16777216 not greater than 16777216
--

--

___
Python tracker 

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



[issue33901] test_dbm_gnu.test_reorganize() failed on x86-64 High Sierra 3.x

2018-06-19 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

16777216 = 2**24 = 16 MiB

Looks too large for the size of an empty database.

--

___
Python tracker 

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



[issue33901] test_dbm_gnu.test_reorganize() failed on x86-64 High Sierra 3.x

2018-06-19 Thread STINNER Victor


STINNER Victor  added the comment:

@Matt Billenstein: Hi! Would you mind to have a look at this issue? It seems 
like test_dbm_gnu started to fail today. Did you upgrade the buildbot worker 
recently?

--
nosy: +mattbillenstein

___
Python tracker 

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



[issue33901] test_dbm_gnu.test_reorganize() failed on x86-64 High Sierra 3.x

2018-06-19 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

For comparison, on Linux size0 = 12288 = 12 KiB. 3 decimal orders smaller.

--

___
Python tracker 

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



[issue33901] test_dbm_gnu.test_reorganize() failed on x86-64 High Sierra 3.x

2018-06-19 Thread STINNER Victor


STINNER Victor  added the comment:

size0=16777216 (16 MiB). On my Fedora 28, size0=12288 (12 KiB).

Even more strange: another test starts by removing the filename, just in case!?

def test_error_conditions(self):
# Try to open a non-existent database.
unlink(filename)
...

Maybe the setUp() method must fail if filename already exists?

The buildbot runs tests in subprocesses:
"Run tests in parallel using 2 child processes"

regrtest spawns child procsses which creates their own temporary empty current 
directory and TESTFN is related to the current directory. If the 
filename/database existed before test_reorganize(), it's likely a bug in 
test_dbm_gnu: but there is a single TestCase class with a tearDown() method 
which calls unlink(filename).

--

Maybe x86-64 High Sierra 3.x has a different dbm library version which always 
creates an empty database with 16 MiB preallocated on disk!?

--

___
Python tracker 

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



[issue33901] test_dbm_gnu.test_reorganize() failed on x86-64 High Sierra 3.x

2018-06-19 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +7395

___
Python tracker 

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



[issue33901] test_dbm_gnu.test_reorganize() failed on x86-64 High Sierra 3.x

2018-06-19 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +7396

___
Python tracker 

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



[issue33901] test_dbm_gnu.test_reorganize() failed on x86-64 High Sierra 3.x

2018-06-19 Thread STINNER Victor


STINNER Victor  added the comment:

Ok, I reproduced the issue on macOS High-Sierra and gdbm 1.15. Creating a DB 
creates a file of 16 MiB.

macbook:master haypo$ brew info gdbm
gdbm: stable 1.15 (bottled)
GNU database manager
https://www.gnu.org/software/gdbm/
/usr/local/Cellar/gdbm/1.15 (19 files, 569.8KB)
  Poured from bottle on 2018-06-19 at 13:48:35
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/gdbm.rb
==> Options
--with-libgdbm-compat
Build libgdbm_compat, a compatibility layer which provides UNIX-like 
dbm and ndbm interfaces.

and

macbook:master haypo$ ./python.exe
Python 3.8.0a0 (heads/master:22525de, Jun 19 2018, 13:56:57) 
[Clang 9.1.0 (clang-902.0.39.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import dbm.gnu
>>> import os
>>> dbm.gnu.open("x", "c").close()
>>> os.path.getsize("x")
16777216

--

___
Python tracker 

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



[issue33901] test_dbm_gnu.test_reorganize() failed on x86-64 High Sierra 3.x

2018-06-19 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

PR 7791 makes the test less useful.

I suggest to replace 1 with size0 or max(size0, 1).

--

___
Python tracker 

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



[issue33901] test_dbm_gnu.test_reorganize() failed on x86-64 High Sierra 3.x

2018-06-19 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 1261bfa83db30b1cf86c1fb816cc167db77874cd by Victor Stinner in 
branch 'master':
bpo-33901: Fix test_dbm_gnu for gdbm 1.15 (GH-7791)
https://github.com/python/cpython/commit/1261bfa83db30b1cf86c1fb816cc167db77874cd


--

___
Python tracker 

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



[issue33901] test_dbm_gnu.test_reorganize() failed on x86-64 High Sierra 3.x

2018-06-19 Thread Xiang Zhang


Xiang Zhang  added the comment:

Considering adding gdbm version to pythoninfo? It is possible to expose version 
info from gnu dbm.

--
nosy: +xiang.zhang

___
Python tracker 

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



[issue33365] http/client.py does not print correct headers in debug

2018-06-19 Thread miss-islington


Change by miss-islington :


--
pull_requests: +7398

___
Python tracker 

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



[issue33901] test_dbm_gnu.test_reorganize() failed on x86-64 High Sierra 3.x

2018-06-19 Thread STINNER Victor


STINNER Victor  added the comment:

Serhiy Storchaka: "Did not increasing the size of the value fixed the test?"

Honestly, I don't understand the purpose of the test. Why does *Python* check 
such low level implementation detail, the exact file size used by gdbm? We are 
supposed to only test the API, no? If someone wants to change something else, I 
would suggest to remove test_reorganize().

--

___
Python tracker 

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



[issue33901] test_dbm_gnu.test_reorganize() failed on x86-64 High Sierra 3.x

2018-06-19 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Did not increasing the size of the value fixed the test?

--

___
Python tracker 

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



[issue33365] http/client.py does not print correct headers in debug

2018-06-19 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 936f03e7fafc28fd6fdfba11d162c776b89c0167 by Serhiy Storchaka 
(Marco Strigl) in branch 'master':
bpo-33365: print the header values beside the keys (GH-6611)
https://github.com/python/cpython/commit/936f03e7fafc28fd6fdfba11d162c776b89c0167


--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue33901] test_dbm_gnu.test_reorganize() failed on x86-64 High Sierra 3.x

2018-06-19 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +7399

___
Python tracker 

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



[issue33901] test_dbm_gnu.test_reorganize() failed on x86-64 High Sierra 3.x

2018-06-19 Thread STINNER Victor


STINNER Victor  added the comment:

Xiang: "Considering adding gdbm version to pythoninfo? It is possible to expose 
version info from gnu dbm."

I wrote PR 7794. What do you think of this?

--

___
Python tracker 

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



[issue33365] http/client.py does not print correct headers in debug

2018-06-19 Thread miss-islington


Change by miss-islington :


--
pull_requests: +7397

___
Python tracker 

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



[issue6280] calendar.timegm() belongs in time module, next to time.gmtime()

2018-06-19 Thread oric


oric  added the comment:

Please don't name it timegm which is such a stupid name (why not mgemit!).

I knows it comes from history but history had timelocal which has been replaced 
by mktime (and python has mktime and not timelocal) so please, call it mkgmtime

time.mkgmtime()

I think it would make things more clear.

--
nosy: +oric

___
Python tracker 

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



[issue33901] test_dbm_gnu.test_reorganize() failed on x86-64 High Sierra 3.x

2018-06-19 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

How can we test an API if calling it doesn't have any effect? reorganize() can 
be a no-op method, and still pass the test.

--

___
Python tracker 

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



[issue33365] http/client.py does not print correct headers in debug

2018-06-19 Thread miss-islington


miss-islington  added the comment:


New changeset 2edcf0a3db608457f42f4e4b74aff28237b4c91b by Miss Islington (bot) 
in branch '3.7':
bpo-33365: print the header values beside the keys (GH-6611)
https://github.com/python/cpython/commit/2edcf0a3db608457f42f4e4b74aff28237b4c91b


--
nosy: +miss-islington

___
Python tracker 

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



[issue33365] http/client.py does not print correct headers in debug

2018-06-19 Thread miss-islington


miss-islington  added the comment:


New changeset 34cd4821ed97639896f85bdf0c0d5c75b23f8a76 by Miss Islington (bot) 
in branch '3.6':
bpo-33365: print the header values beside the keys (GH-6611)
https://github.com/python/cpython/commit/34cd4821ed97639896f85bdf0c0d5c75b23f8a76


--

___
Python tracker 

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



[issue33896] Document what components make up the filecmp.cmp os.stat signature.

2018-06-19 Thread R. David Murray


Change by R. David Murray :


--
versions: +Python 2.7

___
Python tracker 

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



[issue33365] http/client.py does not print correct headers in debug

2018-06-19 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Thank you for your contribution Marco!

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



[issue33896] Document what components make up the filecmp.cmp os.stat signature.

2018-06-19 Thread R. David Murray


R. David Murray  added the comment:

I think it might be OK to document what goes in to the signature, but probably 
in a footnote, as it is somewhat of an implementation detail and could 
conceivably change.  We could then also add a caution about mtime imprecision 
being a particular risk on some file systems.  I wouldn't want to put such a 
caution in the main doc paragraphs, but in a footnote I think it would be OK.

--
resolution: rejected -> 
stage: resolved -> needs patch
status: closed -> open
title: filecmp.cmp returns True on files that differ -> Document what 
components make up the filecmp.cmp os.stat signature.
versions: +Python 3.8 -Python 2.7, Python 3.4, Python 3.5

___
Python tracker 

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



[issue33901] test_dbm_gnu.test_reorganize() failed on x86-64 High Sierra 3.x

2018-06-19 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +7400

___
Python tracker 

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



[issue33902] entry_points/console_scripts is too slow

2018-06-19 Thread George King


New submission from George King :

On my newish macOS laptop using Python 3.6 or 3.7, a no-op script takes 3 times 
as long to invoke using the entry_points machinery as it does to invoke 
directly. Here are some exemplary times (best times after several tries).

$ time python3.6 entrypoint.py 

real0m0.047s
user0m0.033s
sys 0m0.010s

$ time python3.6 
/Library/Frameworks/Python.framework/Versions/3.6/bin/entrypoint

real0m0.153s
user0m0.129s
sys 0m0.020s

In this example, entrypoint.py consists of `def main(): pass`; the second 
script is that generated by `pip3 install ...`. I have confirmed that the `-e` 
flag to pip is not the culprit.

I look at a cprofile trace of the invocation and I do not see an obvious single 
culprit, but I'm not an expert at reading such traces either.

I know that there has been some previous debate about "how slow is slow", 
whether to try to improve import times, etc. I'm not trying to fan any flames 
here, but from a practical perspective, this discrepancy is showing up in 
developer tools that I'm writing, and is driving me to abandon entry_points in 
favor of less standard, less cross-platform install hackery in my setup.py 
scripts. An extra 0.1s per invocation is visibly detrimental to shell scripts 
calling out to installed python programs.

--
messages: 319971
nosy: gwk
priority: normal
severity: normal
status: open
title: entry_points/console_scripts is too slow

___
Python tracker 

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



[issue33895] LoadLibraryExW called with GIL held can cause deadlock

2018-06-19 Thread Steve Dower


Steve Dower  added the comment:

What about existing code that assumes the GIL is already held?

Also, your patch addresses many more situations than raised here, most of which 
are unnecessary (GetProcAddress and GetModuleHandle don't block in the way that 
LoadLibrary and FreeLibrary may).

Perhaps the application needs a way to terminate its threads cleanly, other 
than simply letting them exit and assuming it will be fine?

--

___
Python tracker 

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



[issue33663] Web.py wsgiserver3.py raises TypeError when CSS file is not found

2018-06-19 Thread Steve Dower


Steve Dower  added the comment:

Congratulations on your first contribution, Valeriya! Let us know when you find 
something else you'd like to work on (you can add my name to the "Nosy List" on 
the bug and it'll get my attention).

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



[issue33903] Can't use lib2to3 with embeddable zip file

2018-06-19 Thread Mickaël S .

New submission from Mickaël S. :

As stated by https://bugs.python.org/issue24960, the bug should be fixed in 
3.6.5 (if it is the same, not sure).

Simple reproduction steps are:

1) Download and unzip python-3.6.5-embed-win32.zip.

2) Install pip (OK):
C:\Users\TestW764\python-3.6.5-embed-win32> python get-pip.py
Collecting pip
  Using cached 
https://files.pythonhosted.org/packages/0f/74/.../pip-10.0.1-py2.py3-none-any.whl
Collecting setuptools
  Using cached 
https://files.pythonhosted.org/packages/7f/e1/.../setuptools-39.2.0-py2.py3-none-any.whl
Collecting wheel
  Using cached 
https://files.pythonhosted.org/packages/81/30/.../wheel-0.31.1-py2.py3-none-any.whl
Installing collected packages: pip, setuptools, wheel
  The script wheel.exe is installed in 
'C:\Users\TestW764\python-3.6.5-embed-win32\Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this 
warning, use --no-warn-script-location.
Successfully installed pip-10.0.1 setuptools-39.2.0 wheel-0.31.1

3) In python36._pth, uncomment "import site".

4) Try to install anything else:
C:\Users\TestW764\python-3.6.5-embed-win32> python -m pip install nuxeo
Collecting nuxeo
  Using cached 
https://files.pythonhosted.org/packages/b3/c9/.../nuxeo-2.0.1.tar.gz
Complete output from command python setup.py egg_info:
running egg_info
creating pip-egg-info\nuxeo.egg-info
writing pip-egg-info\nuxeo.egg-info\PKG-INFO
writing dependency_links to pip-egg-info\nuxeo.egg-info\dependency_links.txt

writing requirements to pip-egg-info\nuxeo.egg-info\requires.txt
writing top-level names to pip-egg-info\nuxeo.egg-info\top_level.txt
writing manifest file 'pip-egg-info\nuxeo.egg-info\SOURCES.txt'
error: [Errno 0] Error: 'lib2to3\\Grammar3.6.5.final.0.pickle'

Command "python setup.py egg_info" failed with error code 1 in 
C:\Users\TestW764\AppData\Local\Temp\pip-install-0gzz8yfg\nuxeo\

Do you think it is a sub-issue of 24960, something new or I bug from my side?

--
components: 2to3 (2.x to 3.x conversion tool)
messages: 319974
nosy: Tiger-222
priority: normal
severity: normal
status: open
title: Can't use lib2to3 with embeddable zip file
versions: Python 3.6

___
Python tracker 

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



[issue33895] LoadLibraryExW called with GIL held can cause deadlock

2018-06-19 Thread Tony Roberts


Tony Roberts  added the comment:

GetProcAddress and GetModuleHandle do block in the same way as LoadLibrary and 
FreeLibrary - they acquire the loader lock too.

Yes, ideally the application would terminate its threads cleanly, however when 
Python is embedded in another application it may not have control on when or 
how the threads are terminated (see original problem description).

I would be surprised if there is any code that assumes the GIL is acquired 
during any of those functions. When going though the code I found that 
sometimes the GIL was acquired when calling one of those four functions and at 
other times it wasn't.

See 
https://docs.microsoft.com/en-us/dotnet/framework/debug-trace-profile/loaderlock-mda
 for a (possibly incomplete) list of functions that acquire the loader lock.

--

___
Python tracker 

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



[issue33865] [EASY] Missing code page aliases: "unknown encoding: 874"

2018-06-19 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

@Serhiy: The screenshot suggests that this is regular python install.

--

___
Python tracker 

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



[issue33902] entry_points/console_scripts is too slow

2018-06-19 Thread Eric N. Vander Weele


Change by Eric N. Vander Weele :


--
nosy: +ericvw

___
Python tracker 

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



[issue33895] LoadLibraryExW called with GIL held can cause deadlock

2018-06-19 Thread Steve Dower


Steve Dower  added the comment:

Yeah, just after posting I remembered that the blocker is the loader lock and 
not filesystem/arbitrary code.


Still, "I don't think" isn't sufficient to justify making the change in 3.7 or 
earlier. If we can show that properly working code could never have assumed the 
GIL, then I guess it's fine, but otherwise it's too risky.

Making the change without any deprecation period in 3.8 is fine.

--

___
Python tracker 

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



[issue33865] [EASY] Missing code page aliases: "unknown encoding: 874"

2018-06-19 Thread STINNER Victor


STINNER Victor  added the comment:

Prawin Phichitnitikorn: "But for me I'm resolve by adding (...)"

Ok, so can you please give the value of:

* sys.stdin.encoding
* sys.stdout.encoding
* sys.stderr.encoding
* os.device_encoding(0)
* os.device_encoding(1)
* os.device_encoding(2)
* locale.getpreferredencoding(False)

Maybe also the .errors attribute of sys.stdin, sys.stdout and sys.stderr.

--

___
Python tracker 

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



[issue30345] test_gdb fails on Python 3.6 when built with LTO+PGO

2018-06-19 Thread STINNER Victor


STINNER Victor  added the comment:

Very interesting article about PGO and LTO changes in GCC:
https://hubicka.blogspot.com/2018/06/gcc-8-link-time-and-interprocedural.html

See "Early debug info" paragraph.

--

___
Python tracker 

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



[issue33671] Efficient zero-copy for shutil.copy* functions (Linux, OSX and Win)

2018-06-19 Thread Giampaolo Rodola'


Giampaolo Rodola'  added the comment:


New changeset c7f02a965936f197354d7f4e6360f4cfc86817ed by Giampaolo Rodola in 
branch 'master':
bpo-33671 / shutil.copyfile: use memoryview() with dynamic size on Windows 
(#7681)
https://github.com/python/cpython/commit/c7f02a965936f197354d7f4e6360f4cfc86817ed


--

___
Python tracker 

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



[issue33895] LoadLibraryExW called with GIL held can cause deadlock

2018-06-19 Thread Tony Roberts


Tony Roberts  added the comment:

Sure, that's reasonable :)

For my case I have a usable workaround so not back porting it to < 3.8 is fine 
for me. My workaround will just leak the thread state if another thread is in 
__import__, which happens so rarely that it's not really a problem (but not 
rarely enough that blocking is acceptable!). The other cases changed in this PR 
would cause the same issue, but in practice for my application it's unlikely.

Thanks!

--

___
Python tracker 

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



[issue33901] test_dbm_gnu.test_reorganize() failed on x86-64 High Sierra 3.x

2018-06-19 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset c44d8e5db6fb9d3847c49e9c9718f2b4cf71f506 by Victor Stinner in 
branch 'master':
bpo-33901: Better test_dbm_gnu.test_reorganize() fix (GH-7795)
https://github.com/python/cpython/commit/c44d8e5db6fb9d3847c49e9c9718f2b4cf71f506


--

___
Python tracker 

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



[issue33901] test_dbm_gnu.test_reorganize() failed on x86-64 High Sierra 3.x

2018-06-19 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +7401

___
Python tracker 

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



[issue33746] testRegisterResult in test_unittest fails in verbose mode

2018-06-19 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +7402

___
Python tracker 

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



[issue33671] Efficient zero-copy for shutil.copy* functions (Linux, OSX and Win)

2018-06-19 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +7403

___
Python tracker 

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



[issue33901] test_dbm_gnu.test_reorganize() failed on x86-64 High Sierra 3.x

2018-06-19 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 13c79c677f9ec9437c82eda72fa1c2d288d8fceb by Victor Stinner in 
branch '3.7':
bpo-33901: Fix test_dbm_gnu for gdbm 1.15 (GH-7798)
https://github.com/python/cpython/commit/13c79c677f9ec9437c82eda72fa1c2d288d8fceb


--

___
Python tracker 

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



[issue33901] test_dbm_gnu.test_reorganize() failed on x86-64 High Sierra 3.x

2018-06-19 Thread miss-islington


Change by miss-islington :


--
pull_requests: +7404

___
Python tracker 

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



[issue33717] Enhance test.pythoninfo: meta-ticket for multiple changes

2018-06-19 Thread Xiang Zhang


Change by Xiang Zhang :


--
pull_requests: +7405

___
Python tracker 

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



[issue30345] test_gdb fails on Python 3.6 when built with LTO+PGO

2018-06-19 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 06fe77a84bd29d51506ab2ff703ae585a6121af2 by Victor Stinner in 
branch 'master':
bpo-30345: Add -g to LDFLAGS for LTO (GH-7709)
https://github.com/python/cpython/commit/06fe77a84bd29d51506ab2ff703ae585a6121af2


--

___
Python tracker 

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



[issue30345] test_gdb fails on Python 3.6 when built with LTO+PGO

2018-06-19 Thread STINNER Victor


STINNER Victor  added the comment:

Ok, I pushed a change to the master branch. Now the question is if Python 2.7, 
3.6 and 3.7 should be fixed as well?

I will wait at least one day to see if buildbots are happy.

--

___
Python tracker 

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



[issue33895] LoadLibraryExW called with GIL held can cause deadlock

2018-06-19 Thread Eryk Sun


Eryk Sun  added the comment:

In some of these cases, it would be simpler to just remove the explicit dynamic 
linking. 3.6+ doesn't support XP, so CancelIoEx, CreateSymbolicLinkW, 
RegDeleteKeyExW, RegDisableReflectionKey, RegEnableReflectionKey, and 
RegQueryReflectionKey can be linked implicitly. 3.7+ doesn't support Vista, in 
which case GetMaximumProcessorCount can be linked implicitly. (It should be 
GetActiveProcessorCount. See issue 33166.) OTOH, ShellExecuteExW is loaded 
explicitly on purpose to avoid a static dependency on shell32.dll.

--
nosy: +eryksun

___
Python tracker 

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



[issue33901] test_dbm_gnu.test_reorganize() failed on x86-64 High Sierra 3.x

2018-06-19 Thread miss-islington


miss-islington  added the comment:


New changeset fe8122d7b7c747fc344dde8467b09de6b5888d01 by Miss Islington (bot) 
in branch '3.6':
bpo-33901: Fix test_dbm_gnu for gdbm 1.15 (GH-7798)
https://github.com/python/cpython/commit/fe8122d7b7c747fc344dde8467b09de6b5888d01


--
nosy: +miss-islington

___
Python tracker 

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



[issue33901] test_dbm_gnu.test_reorganize() failed on x86-64 High Sierra 3.x

2018-06-19 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

The buildbot is green again!

--

___
Python tracker 

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



[issue33717] Enhance test.pythoninfo: meta-ticket for multiple changes

2018-06-19 Thread miss-islington


Change by miss-islington :


--
pull_requests: +7406

___
Python tracker 

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



[issue33717] Enhance test.pythoninfo: meta-ticket for multiple changes

2018-06-19 Thread miss-islington


Change by miss-islington :


--
pull_requests: +7407

___
Python tracker 

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



[issue33902] entry_points/console_scripts is too slow

2018-06-19 Thread Barry A. Warsaw


Barry A. Warsaw  added the comment:

This really isn't enough information to know exactly what's going on in your 
case, but there are things that are known to be slow for CLI startups.  
Probably the biggest contributor is pkg_resources.  Of course, that's a third 
party library that's popular for handling entry points, so it's not really a 
Python problem.  There are some other third party libraries on PyPI that may be 
more performant for you.  Entry point handling is something that I'd like to 
try to address in 3.8 in a manner similar to importlib.resources.

--
nosy: +barry

___
Python tracker 

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



[issue33901] test_dbm_gnu.test_reorganize() failed on x86-64 High Sierra 3.x

2018-06-19 Thread Barry A. Warsaw


Change by Barry A. Warsaw :


--
nosy: +barry

___
Python tracker 

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



[issue33717] Enhance test.pythoninfo: meta-ticket for multiple changes

2018-06-19 Thread Xiang Zhang


Xiang Zhang  added the comment:


New changeset b2dd5f1b667b37b5d36b39adc3a3aa6ebf59ef0b by Xiang Zhang (Miss 
Islington (bot)) in branch '2.7':
bpo-33717: set terse to True when calling platform.platform in test.pythoninfo 
(GH-7797) (GH-7803)
https://github.com/python/cpython/commit/b2dd5f1b667b37b5d36b39adc3a3aa6ebf59ef0b


--
nosy: +xiang.zhang

___
Python tracker 

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



[issue33717] Enhance test.pythoninfo: meta-ticket for multiple changes

2018-06-19 Thread Xiang Zhang


Xiang Zhang  added the comment:


New changeset 6aa283a6036f80e5820db2beae98c62745fae96f by Xiang Zhang (Miss 
Islington (bot)) in branch '3.6':
bpo-33717: set terse to True when calling platform.platform in test.pythoninfo 
(GH-7797) (GH-7802)
https://github.com/python/cpython/commit/6aa283a6036f80e5820db2beae98c62745fae96f


--

___
Python tracker 

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



[issue17237] m68k aligns on 16bit boundaries.

2018-06-19 Thread INADA Naoki


Change by INADA Naoki :


--
pull_requests: +7408

___
Python tracker 

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



[issue27777] cgi.FieldStorage can't parse simple body with Content-Length and no Content-Disposition

2018-06-19 Thread Chris Eykamp


Change by Chris Eykamp :


--
pull_requests: +7409

___
Python tracker 

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



[issue33301] Add __contains__ to pathlib

2018-06-19 Thread Antoine Pitrou


Antoine Pitrou  added the comment:

Not a good idea IMHO.  Why would containment mean the existence of a file in a 
directory?  It could just as well mean that a certain path component is part of 
the path.

Also I don't understand what would e.g. `Path('/usr/bar') in Path('/etc/foo')` 
mean.

As for adding a .exists method to PurePath, I think you're missing the point of 
PurePath here (i.e. its operations *don't* do any IO whatsoever).

--
nosy: +pitrou

___
Python tracker 

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



[issue27777] cgi.FieldStorage can't parse simple body with Content-Length and no Content-Disposition

2018-06-19 Thread Chris Eykamp


Chris Eykamp  added the comment:

Packaged patch offered below into PR 7804

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

--
versions: +Python 3.5

___
Python tracker 

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



[issue31680] Expose curses library name and version on Python level

2018-06-19 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +7410

___
Python tracker 

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



[issue17237] m68k aligns on 16bit boundaries.

2018-06-19 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests:  -7408

___
Python tracker 

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



[issue33902] entry_points/console_scripts is too slow

2018-06-19 Thread George King


George King  added the comment:

Thanks Barry. My question then is, what relationship does cpython have with 
pip, setuptools, distutils and pkg_resources? Since pip comes bundled with 
Python now it seems a little bit closer than "3rd party". Thanks!

--

___
Python tracker 

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



[issue33902] entry_points/console_scripts is too slow

2018-06-19 Thread Barry A. Warsaw


Barry A. Warsaw  added the comment:

"It's complicated" :)  But technically speaking they are all separate projects, 
so while there is synergy, CPython itself *imports* some of those to provide 
various tasks, but it doesn't lead their development.  You'll find a lot of the 
same players in all those projects though.

This might be a good resource: https://www.pypa.io/en/latest/

I hope you don't mind, but I am going to close this issue since it's not 
directly related to Python itself.  If you feel otherwise and/or can provide a 
reproducible test case, please do reopen it.

Thanks for your contribution to Python!

--
resolution:  -> third party
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



[issue33902] entry_points/console_scripts is too slow

2018-06-19 Thread George King


George King  added the comment:

OK, thanks. I agree that this is best pursued with the developers of the 
relevant modules. I appreciate your quick and detailed responses!

--

___
Python tracker 

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



[issue33855] IDLE: Minimally test every non-startup module.

2018-06-19 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Change windows.py to window.py, in line with change of menu.  Should be safer 
with everything imported.

--
stage: patch review -> test needed

___
Python tracker 

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



[issue33901] test_dbm_gnu.test_reorganize() failed on x86-64 High Sierra 3.x

2018-06-19 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 00f9edb98dd64e14daf5c44f303deca5cbc3cdeb by Victor Stinner in 
branch 'master':
bpo-33901: Add _gdbm._GDBM_VERSION (GH-7794)
https://github.com/python/cpython/commit/00f9edb98dd64e14daf5c44f303deca5cbc3cdeb


--

___
Python tracker 

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



[issue33901] test_dbm_gnu.test_reorganize() failed on x86-64 High Sierra 3.x

2018-06-19 Thread STINNER Victor


STINNER Victor  added the comment:

Ok, the test have been fixed in 3.6, 3.7 and master. I added a private version 
number in master.

If someone wants to add a public version number, please go ahead but open a new 
issue.

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



[issue33901] test_dbm_gnu.test_reorganize() failed on x86-64 High Sierra 3.x

2018-06-19 Thread STINNER Victor


STINNER Victor  added the comment:

Thanks Serhiy and Xiang for the reviews and to help to debug this bug.

--

___
Python tracker 

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



[issue33904] IDLE: In rstrip, change class RstripExtension to Rstrip

2018-06-19 Thread Terry J. Reedy


New submission from Terry J. Reedy :

Rstrip is no longer an extension.  Change all occurrences throughout idlelib, 
including tests.  Some may not be covered in tests.  Branch after #33855 is 
merged.

--
assignee: terry.reedy
components: IDLE
messages: 320001
nosy: terry.reedy
priority: normal
severity: normal
stage: needs patch
status: open
title: IDLE: In rstrip, change class RstripExtension to Rstrip
type: enhancement
versions: Python 3.6, Python 3.7, Python 3.8

___
Python tracker 

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



[issue33905] IDLE: stackbrowser.Stackbrowser should accept exception.

2018-06-19 Thread Terry J. Reedy


New submission from Terry J. Reedy :

Stackbrowser is currently initialized with a traceback and/or the sys.last_xyz 
attributes.  The latter are not set when unittesting;  the test framework 
somehow prevents this.  The tests needed are the ones that will be enabled by 
Stackbrower accepting an exception, which has everything needed.

--
assignee: terry.reedy
components: IDLE
messages: 320002
nosy: terry.reedy
priority: normal
severity: normal
stage: test needed
status: open
title: IDLE: stackbrowser.Stackbrowser should accept exception.
type: behavior
versions: Python 3.6, Python 3.7, Python 3.8

___
Python tracker 

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



  1   2   >