[issue28087] macOS 12 poll syscall returns prematurely

2017-05-18 Thread STINNER Victor

STINNER Victor added the comment:

I abandonned PR 1426 which proposed to blacklist bogus macOS versions, and 
instead I proposed a new PR to simply reenable previsouly skipped tests 
(because of the bug which is now fixed).
https://github.com/python/cpython/pull/1664

I'm unable to test my own PR right now. Ned Deily: would you mind to test it 
and review my change please?

--

___
Python tracker 

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



[issue28087] macOS 12 poll syscall returns prematurely

2017-05-18 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +1759

___
Python tracker 

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



[issue30392] default webbrowser fails on macOS Sierra 10.12.5

2017-05-18 Thread Rudi Grams

Rudi Grams added the comment:

changing lines 594 and 623 in webbrowser.py (python 2.7.13) to avoid the broken 
'open location' seems to solve the problem in idle .

script = 'do shell script "open %s"' % url.replace('"', '%22')

--
nosy: +Rudi Grams

___
Python tracker 

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



[issue27103] regrtest: capture stdout (-W) option is incompatible with refleak hunter (-R)

2017-05-18 Thread STINNER Victor

STINNER Victor added the comment:


New changeset 9503dd1e1865bb873a1f72f63ae384bba8462c5e by Victor Stinner in 
branch '3.5':
bpo-27103: regrtest disables -W if -R is used (#1660)
https://github.com/python/cpython/commit/9503dd1e1865bb873a1f72f63ae384bba8462c5e


--

___
Python tracker 

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



[issue30402] Unexpected and/or inconsistent del behavior

2017-05-18 Thread Raymond Hettinger

Raymond Hettinger added the comment:

Sorry, this is just how expression lists work.  See Grammar/Grammar at 
https://hg.python.org/cpython/file/tip/Grammar/Grammar

This is really no different than: 
for [k] is s: ...
or:
[k, j] = s

> Why not set literals

Because sets are unordered and because it isn't needed.

--
nosy: +rhettinger
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



[issue30149] inspect.signature() doesn't support partialmethod without explicit self parameter

2017-05-18 Thread Dong-hee Na

Changes by Dong-hee Na :


--
pull_requests: +1758

___
Python tracker 

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



[issue30149] inspect.signature() doesn't support partialmethod without explicit self parameter

2017-05-18 Thread Dong-hee Na

Changes by Dong-hee Na :


--
pull_requests: +1757

___
Python tracker 

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



[issue28053] parameterize what serialization is used in multiprocessing

2017-05-18 Thread Davin Potts

Davin Potts added the comment:

Docs need updating still.

--
versions: +Python 3.7

___
Python tracker 

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



[issue26434] multiprocessing cannot spawn grandchild from a Windows service

2017-05-18 Thread Davin Potts

Davin Potts added the comment:

Patch committed in 2.7 branch.

Thanks for your help, Marc.

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



[issue26434] multiprocessing cannot spawn grandchild from a Windows service

2017-05-18 Thread Davin Potts

Davin Potts added the comment:


New changeset c47c315812b1fa9acb16510a7aa3b37d113def48 by Davin Potts (Marc 
Schlaich) in branch '2.7':
bpo-26434: Fix multiprocessing grandchilds in a Windows service (GH-1167)
https://github.com/python/cpython/commit/c47c315812b1fa9acb16510a7aa3b37d113def48


--

___
Python tracker 

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



[issue28087] macOS 12 poll syscall returns prematurely

2017-05-18 Thread Ned Deily

Ned Deily added the comment:

If the problem is fixed in 10.12.2, I agree with gps that there is no need to 
add a workaround for 10.12.0 and .1.  We should only ever need to support the 
most recent macOS point release; it is the user's responsibility to keep 
up-to-date and with most users these days that happens automatically.

--

___
Python tracker 

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



[issue30000] Inconsistency in the zlib module

2017-05-18 Thread Ellison Marks

Ellison Marks added the comment:

Erm, is there anyone else we should poke for their opinion then?

--

___
Python tracker 

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



[issue30386] Add a build infrastructure for Android

2017-05-18 Thread Zachary Ware

Changes by Zachary Ware :


--
nosy: +zach.ware

___
Python tracker 

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



[issue30401] Remove the .bzrignore file

2017-05-18 Thread Stéphane Wirtel

Changes by Stéphane Wirtel :


--
pull_requests: +1756

___
Python tracker 

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



[issue30402] Unexpected and/or inconsistent del behavior

2017-05-18 Thread Dan Snider

New submission from Dan Snider:

k = 'k'
del [k]

That deletes the variable k from the local scope (even though it *looks* like 
it's trying to delete a list containing 1 element which is equivalent to the 
variable k).

But if using list literals to delete groups of objects is valid, then why not 
set literals?

del {k}
raises SyntaxError: can't delete literal

The better option imo would be to only allow tuples when del-ing groups of 
objects, but if list literals are allowed then set literals should be as well.

--
components: Interpreter Core
messages: 293942
nosy: assume_away
priority: normal
severity: normal
status: open
title: Unexpected and/or inconsistent del behavior
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



[issue18943] argparse: default args in mutually exclusive groups

2017-05-18 Thread Armin Rigo

Changes by Armin Rigo :


--
nosy:  -arigo

___
Python tracker 

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



[issue30401] Remove the .bzrignore file

2017-05-18 Thread Stéphane Wirtel

New submission from Stéphane Wirtel:

Maybe we could remove the .bzrignore file, I don't think we would continue to 
support a mirror of the repository for Bazaar.

--
messages: 293941
nosy: matrixise
priority: normal
severity: normal
status: open
title: Remove the .bzrignore file
versions: Python 3.7

___
Python tracker 

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



[issue27103] regrtest: capture stdout (-W) option is incompatible with refleak hunter (-R)

2017-05-18 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +1755

___
Python tracker 

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



[issue30400] Race condition in shutil.copyfile()

2017-05-18 Thread Preston Moore

Preston Moore added the comment:

It looks like the PR is not passing 3 tests.  I think this might be a result of 
the mock file objects not having inode numbers? Any feedback on this front?

--

___
Python tracker 

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



[issue30400] Race condition in shutil.copyfile()

2017-05-18 Thread Roundup Robot

Changes by Roundup Robot :


--
pull_requests: +1753

___
Python tracker 

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



[issue27103] regrtest: capture stdout (-W) option is incompatible with refleak hunter (-R)

2017-05-18 Thread STINNER Victor

STINNER Victor added the comment:


New changeset 2773add19aff873377d81e3bb6ab8aa942756f5a by Victor Stinner in 
branch '3.6':
bpo-27103: regrtest disables -W if -R is used (#1651) (#1656)
https://github.com/python/cpython/commit/2773add19aff873377d81e3bb6ab8aa942756f5a


--

___
Python tracker 

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



[issue30367] Cannot build CPython3.6 with module “testcapimodule” statically

2017-05-18 Thread STINNER Victor

Changes by STINNER Victor :


--
nosy: +haypo

___
Python tracker 

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



[issue30400] Race condition in shutil.copyfile()

2017-05-18 Thread Preston Moore

New submission from Preston Moore:

A race condition exists in shutil.copyfile() that allows the file being copied 
to be replaced between the time it was initially checked with stat() in this 
function and when it is actually open()'d and copied.  This issue can be 
triggered from shutil.move() (and likely other places) when attempting to move 
a file from one location to another where the source and destination are on 
different devices.  This behavior can be replicated by setting a catchpoint in 
gdb on calls to stat() and, after the initial call to stat in 
shutil.copyfile(), replacing the source file.

The attached pull request addresses this issue by storing the inode number of 
the source file when it is initially stat()'d and comparing this value to an 
inode value taken from a call to fstat() after the file is open. If these two 
values differ, the file has been replaced.  This is the pattern employed by 
coreutil's mv utility in an effort to address this issue.

This bug was found as part of an ongoing research effort into detecting and 
addressing bugs caused by differences in the environments in which an 
application may be run (the environmental issue in this place being the 
difficulties around correctly copying a file from one disk to another).

--
components: Library (Lib)
messages: 293938
nosy: Preston Moore
priority: normal
severity: normal
status: open
title: Race condition in shutil.copyfile()
type: security
versions: Python 2.7, Python 3.7

___
Python tracker 

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



[issue30367] Cannot build CPython3.6 with module “testcapimodule” statically

2017-05-18 Thread Roundup Robot

Changes by Roundup Robot :


--
pull_requests: +1752

___
Python tracker 

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



[issue27103] regrtest: capture stdout (-W) option is incompatible with refleak hunter (-R)

2017-05-18 Thread STINNER Victor

STINNER Victor added the comment:

It seems like Python 2.7 is not affected.

I will apply my workaround to 3.5, 3.6 and master, since Zachary created a 
buildbot testing 2.7, 3.5, 3.6 and master branches.

--
nosy: +zach.ware
versions: +Python 3.5, Python 3.7

___
Python tracker 

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



[issue27945] Various segfaults with dict

2017-05-18 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
pull_requests: +1751

___
Python tracker 

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



[issue27103] regrtest: capture stdout (-W) option is incompatible with refleak hunter (-R)

2017-05-18 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +1750

___
Python tracker 

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



[issue27103] regrtest: capture stdout (-W) option is incompatible with refleak hunter (-R)

2017-05-18 Thread STINNER Victor

STINNER Victor added the comment:


New changeset fcdd9b6b7e73427ce5aa63cf095312f603c4edce by Victor Stinner in 
branch 'master':
bpo-27103: regrtest disables -W if -R is used (#1651)
https://github.com/python/cpython/commit/fcdd9b6b7e73427ce5aa63cf095312f603c4edce


--

___
Python tracker 

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



[issue28647] python --help: -u is misdocumented as binary mode

2017-05-18 Thread Berker Peksag

Changes by Berker Peksag :


--
pull_requests: +1749

___
Python tracker 

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



[issue8450] httplib: false BadStatusLine() raised

2017-05-18 Thread Roundup Robot

Changes by Roundup Robot :


--
pull_requests: +1748

___
Python tracker 

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



[issue30296] Remove unnecessary tuples, lists, sets, and dicts from Lib

2017-05-18 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I made a note of the idlelib.multicall changes for when I review the module to 
modernize and test.

--

___
Python tracker 

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



[issue30388] ndbm can't iterate through values on OS X

2017-05-18 Thread Forest Gregg

Forest Gregg added the comment:

The ndbm db's two files (in the attachment) have the following size

tmp___otctx 0 bytes
tmp___otctx.db 12857344 bytes

--

___
Python tracker 

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



[issue29948] DeprecationWarning when parse ElementTree with a doctype in 2.7

2017-05-18 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Fixed in issue30365.

--
resolution:  -> out of date
stage: needs patch -> resolved
status: open -> closed
superseder:  -> Backport warnings in ElementTree/cElementTree modules and fix 
bugs

___
Python tracker 

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



[issue19569] Use __attribute__((deprecated)) to warn usage of deprecated functions and macros

2017-05-18 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I do not have the possibility to test on Windows. Maybe someone wants to test 
Arfrever's suggestion.

--
assignee: serhiy.storchaka -> 

___
Python tracker 

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



[issue25794] __setattr__ does not always overload operators

2017-05-18 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
pull_requests: +1747

___
Python tracker 

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



[issue27103] regrtest: capture stdout (-W) option is incompatible with refleak hunter (-R)

2017-05-18 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue27103] regrtest: capture stdout (-W) option is incompatible with refleak hunter (-R)

2017-05-18 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +1746

___
Python tracker 

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



[issue18943] argparse: default args in mutually exclusive groups

2017-05-18 Thread paul j3

paul j3 added the comment:

I haven't downloaded the development distribution to this computer, so can't 
write formal patches at this time.

--

___
Python tracker 

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



[issue30351] regrtest hangs on x86 Windows XP 2.7

2017-05-18 Thread STINNER Victor

STINNER Victor added the comment:

Another one on AMD64 Windows7 SP1 2.7:

http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%202.7/builds/92/steps/test/logs/stdio

...
0:03:30 [377/403] test_code passed
0:03:30 [378/403] test_wait4 skipped -- running: test_mmap (30 sec)
test_wait4 skipped -- module 'os' has no attribute 'fork'
0:03:30 [379/403] test_buffer passed -- running: test_mmap (30 sec)
0:03:43 [380/403] test_mmap passed (43 sec) -- running: test_httpservers (39 
sec)
0:03:44 [381/403] test_decimal passed -- running: test_httpservers (39 sec)
0:03:44 [382/403] test_new passed -- running: test_httpservers (40 sec)
0:03:44 [383/403] test_md5 passed -- running: test_httpservers (40 sec)
0:03:44 [384/403] test_sys_setprofile passed -- running: test_httpservers (40 
sec)
0:03:46 [385/403] test_heapq passed -- running: test_httpservers (42 sec)
0:03:46 [386/403] test_funcattrs passed -- running: test_httpservers (42 sec)
0:03:46 [387/403] test__osx_support passed -- running: test_httpservers (42 sec)
0:03:47 [388/403] test_threading passed -- running: test_httpservers (43 sec)
[26108 refs]
[27135 refs]
0:03:47 [389/403] test_pprint passed -- running: test_httpservers (43 sec)
0:03:49 [390/403] test_re passed -- running: test_httpservers (45 sec)
0:03:50 [391/403] test_richcmp passed -- running: test_httpservers (46 sec)
0:03:51 [392/403] test_linecache passed -- running: test_httpservers (46 sec)
0:03:51 [393/403] test_threadsignals skipped -- running: test_httpservers (47 
sec)
test_threadsignals skipped -- Can't test signal on win32
0:03:51 [394/403] test_binascii passed -- running: test_httpservers (47 sec)
0:03:52 [395/403] test_email_renamed passed -- running: test_httpservers (47 
sec)
0:03:52 [396/403] test_copy_reg passed -- running: test_httpservers (48 sec)
0:03:52 [397/403] test_ttk_textonly passed -- running: test_httpservers (48 sec)
0:03:53 [398/403] test_bigmem passed -- running: test_httpservers (48 sec)
0:03:53 [399/403] test_threading_local passed -- running: test_httpservers (49 
sec)
0:03:53 [400/403] test_wait3 skipped -- running: test_httpservers (49 sec)
test_wait3 skipped -- os.fork not defined -- skipping test_wait3
0:03:57 [401/403] test_lib2to3 passed -- running: test_httpservers (52 sec)
[34066 refs]
0:04:04 [402/403] test_httpservers passed (60 sec)

command timed out: 1200 seconds without output, attempting to kill
program finished with exit code 1
elapsedTime=1446.138000

--

___
Python tracker 

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



[issue27585] asyncio.Lock deadlock after cancellation

2017-05-18 Thread Guido van Rossum

Guido van Rossum added the comment:

I'm really sorry, but I personally don't have time to look into this. If you 
have a fix in mind you can send a PR to GitHub mentioning bpi-27585.

--

___
Python tracker 

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



[issue30399] Get rid of trailing comma if the repr() of BaseException

2017-05-18 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
pull_requests: +1745

___
Python tracker 

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



[issue30399] Get rid of trailing comma if the repr() of BaseException

2017-05-18 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

The repr() of BaseException (and all exceptions that don't override __repr__) 
with a single argument contains a redundant trailing comma:

>>> BaseException('spam')
BaseException('spam',)

This is just an artefact of the implementation.

Proposed patch removes this comma.

--
components: Interpreter Core
messages: 293928
nosy: serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Get rid of trailing comma if the repr() of BaseException
type: enhancement
versions: Python 3.7

___
Python tracker 

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



[issue29960] _random.Random state corrupted on exception

2017-05-18 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Mariatta, can you update your PRs?

--

___
Python tracker 

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



[issue29094] Regression in zipfile writing in 2.7.13

2017-05-18 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
resolution:  -> fixed
stage: backport needed -> 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



[issue30296] Remove unnecessary tuples, lists, sets, and dicts from Lib

2017-05-18 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Oh, the PR was merged while I made a review.

tuple([i for i in a]) is 2 times faster than tuple(i for i in a). Since there 
is no significant difference in readability I would keep the variant with a 
list comprehension if it is initial.

--

___
Python tracker 

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



[issue27585] asyncio.Lock deadlock after cancellation

2017-05-18 Thread Alexey Popravka

Alexey Popravka added the comment:

Also there is the same problem with asyncio.Condition wait() / notify() couple 
as it repeats the same Lock.acquire()/release() logic

--

___
Python tracker 

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



[issue30395] deadlocked child process after forking on pystate.c's head_mutex

2017-05-18 Thread Piotr Wysocki

Changes by Piotr Wysocki :


--
nosy: +Piotr Wysocki

___
Python tracker 

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



[issue29619] st_ino (unsigned long long) is casted to long long in posixmodule.c:_pystat_fromstructstat

2017-05-18 Thread STINNER Victor

STINNER Victor added the comment:

Please propose the change as a PR.

--

___
Python tracker 

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



[issue30296] Remove unnecessary tuples, lists, sets, and dicts from Lib

2017-05-18 Thread Raymond Hettinger

Changes by Raymond Hettinger :


--
resolution:  -> fixed
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



[issue30296] Remove unnecessary tuples, lists, sets, and dicts from Lib

2017-05-18 Thread Raymond Hettinger

Raymond Hettinger added the comment:


New changeset 3972628de3d569c88451a2a176a1c94d8822b8a6 by Raymond Hettinger 
(Jon Dufresne) in branch 'master':
bpo-30296 Remove unnecessary tuples, lists, sets, and dicts (#1489)
https://github.com/python/cpython/commit/3972628de3d569c88451a2a176a1c94d8822b8a6


--

___
Python tracker 

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



[issue27585] asyncio.Lock deadlock after cancellation

2017-05-18 Thread Alexey Popravka

Alexey Popravka added the comment:

Hi guys! Any update on this?
I've just hit this issue.
Cancelled futures in _waiters is not a problem (any more).

There is still a problem when release() wakes up next waiter
but task waiting for it gets cancelled and so all the rest waiters
are in pending state forever.
I've attach one more test to reproduce this issue.

--
nosy: +Alexey Popravka
Added file: http://bugs.python.org/file46876/deadlock2.py

___
Python tracker 

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



[issue30353] ctypes: pass by value for structs broken on Cygwin/MinGW 64-bit

2017-05-18 Thread Erik Bray

Erik Bray added the comment:

Sure, thanks for pointing that out.

--

___
Python tracker 

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



[issue30177] pathlib.resolve(strict=False) only includes first child

2017-05-18 Thread Marcel Plch

Changes by Marcel Plch :


--
pull_requests: +1744

___
Python tracker 

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



[issue29619] st_ino (unsigned long long) is casted to long long in posixmodule.c:_pystat_fromstructstat

2017-05-18 Thread Xavier de Gaye

Xavier de Gaye added the comment:

> The same kind of fix could also be applied elsewhere in posixmodule.c

By also adding a Py_BUILD_ASSERT() statement which is a welcome improvement on 
the previous code that allowed to pinpoint the problem on Android.

--

___
Python tracker 

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



[issue29619] st_ino (unsigned long long) is casted to long long in posixmodule.c:_pystat_fromstructstat

2017-05-18 Thread Xavier de Gaye

Xavier de Gaye added the comment:

With the patch proposed by Victor in msg293873 the cross-compilation of 
posixmodule.c succeeds on android-21-x86 and android-21-x86_64.

Following my suggestion in msg292174, I propose the following patch instead:

diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index e8c15a9473..d7ff3c78bd 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -1927,14 +1927,12 @@ _pystat_fromstructstat(STRUCT_STAT *st)
 return NULL;
 
 PyStructSequence_SET_ITEM(v, 0, PyLong_FromLong((long)st->st_mode));
-#if defined(HAVE_LARGEFILE_SUPPORT) || defined(MS_WINDOWS)
 Py_BUILD_ASSERT(sizeof(unsigned long long) >= sizeof(st->st_ino));
-PyStructSequence_SET_ITEM(v, 1,
+if (sizeof(unsigned long) >= sizeof(st->st_ino))
+PyStructSequence_SET_ITEM(v, 1, PyLong_FromUnsignedLong(st->st_ino));
+else
+PyStructSequence_SET_ITEM(v, 1,
   PyLong_FromUnsignedLongLong(st->st_ino));
-#else
-Py_BUILD_ASSERT(sizeof(unsigned long) >= sizeof(st->st_ino));
-PyStructSequence_SET_ITEM(v, 1, PyLong_FromUnsignedLong(st->st_ino));
-#endif
 #ifdef MS_WINDOWS
 PyStructSequence_SET_ITEM(v, 2, PyLong_FromUnsignedLong(st->st_dev));
 #else

This patch removes the conditional on HAVE_LARGEFILE_SUPPORT (explicit is 
better than implicit) and fixes the problem for any operating system where the 
size of off_t and the size of st_ino are different.
The compiler removes the dead branch of the  
conditional, so actually it compiles to the same binary as the other patch (gcc 
does this without any optimization configured on the command line, I didn't 
check this for clang).

The same kind of fix could also be applied elsewhere in posixmodule.c where 
behind the use of HAVE_LARGEFILE_SUPPORT there is an incorrect assumption that 
the size of off_t is the same as the size of another type:
  * In _pystat_fromstructstat() - a little bit further down this patch - where 
the other type is st_size.
  * In os_DirEntry_inode_impl() where the other type is ino_t.
Maybe this should be done in a new issue then ?

--

___
Python tracker 

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



[issue30375] Correct stacklevel of warnings when compile regular expressions

2017-05-18 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


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



[issue30375] Correct stacklevel of warnings when compile regular expressions

2017-05-18 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:


New changeset dfcfc915787def056e225fb22ad5a5ee8da4052f by Serhiy Storchaka in 
branch '2.7':
[2.7] bpo-30375: Correct the stacklevel of regex compiling warnings. (#1595) 
(#1648)
https://github.com/python/cpython/commit/dfcfc915787def056e225fb22ad5a5ee8da4052f


--

___
Python tracker 

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



[issue30375] Correct stacklevel of warnings when compile regular expressions

2017-05-18 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
pull_requests: +1743

___
Python tracker 

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



[issue30397] Expose regular expression and match objects types in the re module

2017-05-18 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
dependencies: +Add a docstring for re.error

___
Python tracker 

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



[issue30363] Backport warnings in the re module to 2.7

2017-05-18 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


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



[issue30397] Expose regular expression and match objects types in the re module

2017-05-18 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

The part with re.error docstring is extracted in separate issue30398. It should 
be backported.

--

___
Python tracker 

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



[issue30398] Add a docstring for re.error

2017-05-18 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
pull_requests: +1742

___
Python tracker 

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



[issue30398] Add a docstring for re.error

2017-05-18 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

re.error doesn't have its own docstring and inherits it from Exception when 
format pydoc output: "Common base class for all non-exit exceptions." This is 
wrong of course.

Proposed patch adds a docstring for re.error. It overrides Exception docstring 
and documents additional re.error attributes.

--
assignee: serhiy.storchaka
components: Library (Lib), Regular Expressions
messages: 293916
nosy: ezio.melotti, mrabarnett, serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Add a docstring for re.error
type: behavior
versions: Python 3.5, Python 3.6, Python 3.7

___
Python tracker 

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



[issue30363] Backport warnings in the re module to 2.7

2017-05-18 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:


New changeset 955b6760cfa73c54bae9b6f2b335eb0cd806c7b0 by Serhiy Storchaka in 
branch '2.7':
[2.7] bpo-30363: Backport warnings in the re module. (#1577)
https://github.com/python/cpython/commit/955b6760cfa73c54bae9b6f2b335eb0cd806c7b0


--

___
Python tracker 

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



[issue30397] Expose regular expression and match objects types in the re module

2017-05-18 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
pull_requests: +1741

___
Python tracker 

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



[issue30397] Expose regular expression and match objects types in the re module

2017-05-18 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

Proposed patch adds re.Patter and re.Match types (names are conforming with the 
typing module) that represent the types of compiled regular expressin objects 
and match objects. The purpose of this is exposing the documentation of the 
methods of these objects in the module documentation produced by pydoc.

The patch also changes the __module__ attribute of these classes and re.error 
(this enhances the help and repr and increases pickle compatibility of 
re.error), adds docstrings for re.error and many descriptors, and fixes few 
other docstrings.

--
assignee: serhiy.storchaka
components: Extension Modules, Library (Lib), Regular Expressions
messages: 293914
nosy: ezio.melotti, mrabarnett, serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Expose regular expression and match objects types in the re module
type: enhancement
versions: Python 3.7

___
Python tracker 

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



[issue30374] Make win_add2path.py take effect without having to log off

2017-05-18 Thread neeverett

Changes by neeverett :


--
pull_requests: +1740

___
Python tracker 

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



[issue30392] default webbrowser fails on macOS Sierra 10.12.5

2017-05-18 Thread Andrew Jaffe

Andrew Jaffe added the comment:

The same behaviour also happens under Apple's system Python 2.7.10.

Perhaps this implies a macOS bug or deliberate behaviour change? (I couldn't 
find anything obviously appropriate in the list of security fixes for 10.12.5.)

--

___
Python tracker 

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



[issue30395] deadlocked child process after forking on pystate.c's head_mutex

2017-05-18 Thread Stephan Gorget

Changes by Stephan Gorget :


--
nosy: +phantez

___
Python tracker 

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