[issue31241] ast col_offset wrong for list comprehensions, generators and tuples

2018-11-26 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.8 -Python 3.5, Python 3.6

___
Python tracker 

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



[issue31241] ast col_offset wrong for list comprehensions, generators and tuples

2018-11-26 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset b619b097923155a7034c05c4018bf06af9f994d0 by Serhiy Storchaka in 
branch 'master':
bpo-31241: Fix AST node position for list and generator comprehensions. 
(GH-10633)
https://github.com/python/cpython/commit/b619b097923155a7034c05c4018bf06af9f994d0


--

___
Python tracker 

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



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

2018-11-26 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Gregory, could you please make a look at PR 5914?

Differences from PR 4329:

* Any item of args can be an iterable of bytes and path-like objects on Windows 
(not just a first item as in PR 4329).
* Accepts bytes and path-like objects as executable on Windows.
* Accepts bytes as cwd on Windows.
* Raises a TypeError when shell is true and args is a path-like object (or 
bytes on Windows).
* Does not use raising and catching a TypeError when args is an iterable on 
Windows or a path-like object on POSIX (this makes the code clearer and a tiny 
bit more efficient).

--

___
Python tracker 

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



[issue35325] imp.find_module() return value documentation discrepancy

2018-11-26 Thread Stefan Bauer (TraceTronic)

New submission from Stefan Bauer (TraceTronic) :

I’d like to report a discrepancy between the documentation and implementation 
of the method imp.find_module().

The documentation 
 currently says 
“If the module does not live in a file, the returned file is None, pathname is 
the __empty_string__, […]”

The implementation 
, on the other 
hand, returns __None__ for built-in and frozen modules.

Yours,
Stefan

--
assignee: docs@python
components: Documentation
messages: 330495
nosy: StefanBauerTT, docs@python
priority: normal
severity: normal
status: open
title: imp.find_module() return value documentation discrepancy
versions: 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



[issue33954] float.__format__('n') fails with _PyUnicode_CheckConsistency assertion error for locales with non-ascii thousands separator

2018-11-26 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:

Objects/unicodeobject.c: In function ‘_PyUnicode_FastFill’:
Objects/unicodeobject.c:10126:24: warning: passing argument 2 of ‘unicode_fill’ 
discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
 unicode_fill(kind, data, fill_char, start, length);
^~~~
Objects/unicodeobject.c:224:1: note: expected ‘void *’ but argument is of type 
‘const void *’
 unicode_fill(enum PyUnicode_Kind kind, void *data, Py_UCS4 value,
 ^~~~
In file included from /usr/include/wchar.h:850:0,
 from ./Include/unicodeobject.h:97,
 from ./Include/Python.h:87,
 from ./Modules/getpath.c:3:

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue35310] select which was interrupted by EINTR isn't re-run if the timeout has passed

2018-11-26 Thread Brian Maissy


Change by Brian Maissy :


--
nosy: +oranav

___
Python tracker 

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



[issue35310] select which was interrupted by EINTR isn't re-run if the timeout has passed

2018-11-26 Thread Brian Maissy


Brian Maissy  added the comment:

The current behavior is:

> select() is not retried, and the rlist is returned as-is (with fds in it 
> which are not ready for reading)

Yes, this is a bug. It results in select() indicating that fd are ready for 
reading when they, in fact, are not.

--

___
Python tracker 

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



[issue35320] Writable __spec__.has_location attribute

2018-11-26 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

I think a setter was added for has_location (msg205384) and docs were updated 
as part of the patch but the PEP was not updated? . A setter for has_location : 
https://hg.python.org/cpython/rev/e961a166dc70

--

___
Python tracker 

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



[issue35324] ssl: FileNotFoundError when do handshake

2018-11-26 Thread joseph...@yahoo.com


New submission from joseph...@yahoo.com :

After upgrade my python from 3.6 to 3.7, one of my program got following error 
msgs and I suppose it is related to the 'ssl' module:

Traceback (most recent call last):
  File "M:\SUPPOR~1\ONEDAY~1\ODD2\lib\site-packages\urllib3\connectionpool.py", 
line 600, in urlopen
chunked=chunked)
  File "M:\SUPPOR~1\ONEDAY~1\ODD2\lib\site-packages\urllib3\connectionpool.py", 
line 343, in _make_request
self._validate_conn(conn)
  File "M:\SUPPOR~1\ONEDAY~1\ODD2\lib\site-packages\urllib3\connectionpool.py", 
line 839, in _validate_conn
conn.connect()
  File "M:\SUPPOR~1\ONEDAY~1\ODD2\lib\site-packages\urllib3\connection.py", 
line 344, in connect
ssl_context=context)
  File "M:\SUPPOR~1\ONEDAY~1\ODD2\lib\site-packages\urllib3\util\ssl_.py", line 
357, in ssl_wrap_socket
return context.wrap_socket(sock)
  File "f:\Anaconda3\Lib\ssl.py", line 412, in wrap_socket
session=session
  File "f:\Anaconda3\Lib\ssl.py", line 853, in _create
self.do_handshake()
  File "f:\Anaconda3\Lib\ssl.py", line 1117, in do_handshake
self._sslobj.do_handshake()
FileNotFoundError: [Errno 2] No such file or directory

The background is, the program works all fine under python 3.6.

I actually use the 'requests' lib which use the 'urllib3' inside. I don't know 
how to fix this so I just report here. I hope some one can help.

--
assignee: christian.heimes
components: SSL
messages: 330491
nosy: christian.heimes, joseph...@yahoo.com
priority: normal
severity: normal
status: open
title: ssl: FileNotFoundError when do handshake
type: behavior
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



[issue35320] Writable __spec__.has_location attribute

2018-11-26 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +xtreak

___
Python tracker 

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



[issue34978] check type of object in fix_dict.py in 2to3

2018-11-26 Thread Benjamin Peterson


Benjamin Peterson  added the comment:

I'm disinclined to change the fix here after it's existed in this for for 10 
years.

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



[issue34893] Add 2to3 fixer to change send and recv methods of socket object.

2018-11-26 Thread Benjamin Peterson


Benjamin Peterson  added the comment:

I concur with Raymond. Thank you for the patch, but this seems too error-prone 
to commit.

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



[issue35323] Windows x86 executable installer can't install

2018-11-26 Thread liang feng


liang feng <1590...@139.com> added the comment:

the file didn't download complete,change other computer download, it's fine

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



[issue34212] Cygwin link failure with builtin modules since issue30860

2018-11-26 Thread miss-islington


miss-islington  added the comment:


New changeset 716a8089b04095acaba493925751df194a4916bb by Miss Islington (bot) 
in branch '3.7':
closes bpo-34212: Build core extension modules with Py_BUILD_CORE_BUILTIN. 
(GH-8712)
https://github.com/python/cpython/commit/716a8089b04095acaba493925751df194a4916bb


--
nosy: +miss-islington

___
Python tracker 

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



[issue35323] Windows x86 executable installer can't install

2018-11-26 Thread liang feng


New submission from liang feng <1590...@139.com>:

see log

--
files: Python 3.7.1 (32-bit)_20181127100820.log
messages: 330486
nosy: outofthink
priority: normal
severity: normal
status: open
title: Windows x86 executable installer can't install
versions: Python 3.7
Added file: https://bugs.python.org/file47950/Python 3.7.1 
(32-bit)_20181127100820.log

___
Python tracker 

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



[issue34212] Cygwin link failure with builtin modules since issue30860

2018-11-26 Thread miss-islington


Change by miss-islington :


--
pull_requests: +9982

___
Python tracker 

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



[issue34212] Cygwin link failure with builtin modules since issue30860

2018-11-26 Thread Benjamin Peterson


Benjamin Peterson  added the comment:


New changeset da324d53d420347344236ff64cf5eb9b675d6f86 by Benjamin Peterson (E. 
M. Bray) in branch 'master':
closes bpo-34212: Build core extension modules with Py_BUILD_CORE_BUILTIN. 
(GH-8712)
https://github.com/python/cpython/commit/da324d53d420347344236ff64cf5eb9b675d6f86


--
nosy: +benjamin.peterson
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



[issue34482] datetime: Tests for potential crashes due to non-UTF-8-encodable strings

2018-11-26 Thread STINNER Victor


STINNER Victor  added the comment:

It seems like thie issue introduced a memory leak: bpo-35322 .

--
nosy: +vstinner

___
Python tracker 

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



[issue35322] test_datetime leaks memory

2018-11-26 Thread STINNER Victor


STINNER Victor  added the comment:

C:\vstinner\python\master>python -m test -R 3:20 -u all test_datetime
Running Debug|x64 interpreter...
Run tests sequentially
0:00:00 [1/1] test_datetime
beginning 23 repetitions
12345678901234567890123
...
test_datetime leaked [1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 
1] memory blocks, sum=21
test_datetime failed

== Tests result: FAILURE ==

1 test failed:
test_datetime

Total duration: 562 ms
Tests result: FAILURE

--

___
Python tracker 

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



[issue35322] test_datetime leaks memory

2018-11-26 Thread STINNER Victor


Change by STINNER Victor :


Added file: https://bugs.python.org/file47949/datetimetester.py

___
Python tracker 

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



[issue35322] test_datetime leaks memory

2018-11-26 Thread STINNER Victor


New submission from STINNER Victor :

test_datetime currently leaks memory blocks:

test_datetime leaked [3, 4, 3] memory blocks, sum=10

Attached patch should be added to Lib/test/ to only run a minimum set of tests 
which reproduce the bug.

--
files: datetimetester.py
messages: 330482
nosy: vstinner
priority: normal
severity: normal
status: open
title: test_datetime leaks memory
Added file: https://bugs.python.org/file47948/datetimetester.py

___
Python tracker 

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



[issue35314] fnmatch failed with leading caret (^)

2018-11-26 Thread Cyker Way


Cyker Way  added the comment:

Thank you for confirmation. Knowing it is not fully POSIX-compliant helps with 
understanding.

I'm asking this because I had interoperability issues writing python scripts 
providing shell-like utilities for filename expansion and the result may 
surprise users. The glibc fnmatch provides a flag named `FNM_PATHNAME`, which 
is missing in the python fnmatch implementation. So I think there is currently 
no way to tell the python library if we are matching a filename or not.

All right so this is not a bug, but probably a good enhancement.

## TLDR

This is what POSIX says **for filename expansion**, in section 2.13.3:



>   when pattern matching notation is used for filename expansion:
>
>   1.  The  character in a pathname shall be explicitly matched by 
> using one or more  characters in the pattern; it shall neither be 
> matched by the  or  special characters nor by a 
> bracket expression.  characters in the pattern shall be identified 
> before bracket expressions; thus, a  cannot be included in a pattern 
> bracket expression used for filename expansion. If a  character is 
> found following an unescaped  character before a 
> corresponding  is found, the open bracket shall be 
> treated as an ordinary character. For example, the pattern "a[b/c]d" does not 
> match such pathnames as abd or a/d. It only matches a pathname of literally 
> a[b/c]d.

Currently python fnmatch.fnmatch gives:

>>> fnmatch('abd', 'a[b/c]d')
True
>>> fnmatch('a/d', 'a[b/c]d')
True
>>> fnmatch('a[b/c]d', 'a[b/c]d')
False

Ideally we can call `fnmatch('a/d', 'a[b/c]d', fnm_pathname=True)` to correct 
the behavior.

--

___
Python tracker 

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



[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2018-11-26 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset f2a9d5c8378cd7eca90b3b197e2cc0989da55014 by Victor Stinner in 
branch 'master':
bpo-35134: Create Include/cpython/pystate.h (GH-10733)
https://github.com/python/cpython/commit/f2a9d5c8378cd7eca90b3b197e2cc0989da55014


--

___
Python tracker 

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



[issue35320] Writable __spec__.has_location attribute

2018-11-26 Thread Géry

Change by Géry :


--
nosy: +maggyero

___
Python tracker 

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



[issue35321] None _frozen_importlib.__spec__.origin attribute

2018-11-26 Thread Géry

New submission from Géry :

How to reproduce:
In Python:
> import _frozen_importlib
> print(_frozen_importlib.__spec__.origin)

Observed result:
The __spec__.origin attribute of the _frozen_importlib module is None.

Expected result:
The __spec__.origin attribute of the _frozen_importlib module should be 
'frozen', like it is already the case for the _frozen_importlib_external module 
and documented for all frozen modules in PEP 451: 
https://www.python.org/dev/peps/pep-0451/#origin

--
components: Library (Lib)
messages: 330479
nosy: barry, brett.cannon, docs@python, eric.snow, maggyero, mdk, ncoghlan
priority: normal
severity: normal
status: open
title: None _frozen_importlib.__spec__.origin attribute
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



[issue35320] Writable __spec__.has_location attribute

2018-11-26 Thread Géry

Change by Géry :


--
nosy:  -maggyero

___
Python tracker 

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



[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2018-11-26 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset ffedd9ad2a8be4bf82a4d8f2bac3eaee5b44191e by Victor Stinner in 
branch 'master':
bpo-35134: Create Include/cpython/dictobject.h (GH-10732)
https://github.com/python/cpython/commit/ffedd9ad2a8be4bf82a4d8f2bac3eaee5b44191e


--

___
Python tracker 

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



[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2018-11-26 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset dd12aa0aea733820807ec4f99e4e476064a0ee41 by Victor Stinner in 
branch 'master':
bpo-35134: Create Include/cpython/pylifecycle.h (GH-10731)
https://github.com/python/cpython/commit/dd12aa0aea733820807ec4f99e4e476064a0ee41


--

___
Python tracker 

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



[issue35314] fnmatch failed with leading caret (^)

2018-11-26 Thread Josh Rosenberg


Josh Rosenberg  added the comment:

Finished typing this while Serhiy was closing, but just for further explanation:

This isn't a bug. fnmatch provides "shell-style" wildcards, but that doesn't 
mean it supports every shell's extensions to the globbing syntax. It doesn't 
even claim support for full POSIX globbing syntax. The docs explicitly specify 
support for only four forms:

*
?
[seq]
[!seq]

There is no support for [^seq]; [^seq] isn't even part of POSIX globbing per 
glob(7):

"POSIX has declared the effect of a wildcard pattern "[^...]" to be undefined."

--
nosy: +josh.r

___
Python tracker 

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



[issue35308] webbrowser regression: BROWSER env var not respected

2018-11-26 Thread Serhiy Storchaka


Change 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



[issue35303] A reference leak in _operator.c's methodcaller_repr()

2018-11-26 Thread Serhiy Storchaka


Change 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



[issue35303] A reference leak in _operator.c's methodcaller_repr()

2018-11-26 Thread Josh Rosenberg


Josh Rosenberg  added the comment:

This is completely fixed, right? Just making sure there is nothing left to be 
done to close the issue.

--
nosy: +josh.r

___
Python tracker 

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



[issue35320] Writable __spec__.has_location attribute

2018-11-26 Thread Géry

New submission from Géry :

How to reproduce:
Assign the __spec__.has_location attribute of any module.

Observed result:
__spec__.has_location is a writable.

Expected result:
__spec__.has_location should be read-only, as defined in PEP 451: 
https://www.python.org/dev/peps/pep-0451/#attributes

--
components: Library (Lib)
messages: 330474
nosy: barry, brett.cannon, docs@python, eric.snow, maggyero, mdk, ncoghlan
priority: normal
severity: normal
status: open
title: Writable __spec__.has_location attribute
type: behavior
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



[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2018-11-26 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +9981

___
Python tracker 

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



[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2018-11-26 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +9980

___
Python tracker 

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



[issue35240] Travis CI: xvfb-run: error: Xvfb failed to start

2018-11-26 Thread STINNER Victor


STINNER Victor  added the comment:

Same error: https://travis-ci.org/python/cpython/jobs/459983088

--

___
Python tracker 

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



[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2018-11-26 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +9979

___
Python tracker 

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



[issue35283] "threading._DummyThread" redefines "is_alive" but forgets "isAlive"

2018-11-26 Thread Brett Cannon


Brett Cannon  added the comment:

I think the only thing missing from your list, Andrew, is updating docstrings 
and such to mention is_alive() instead of isAlive().

--

___
Python tracker 

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



[issue35281] Allow access to unittest.TestSuite tests

2018-11-26 Thread Brett Cannon


Brett Cannon  added the comment:

Gotcha, thanks for the clarification!

Unfortunately I don't think we will be able to accommodate your feature 
request. It's duplicating an API to simply save calling list() which is the 
idiomatic way to convert an iterable into a concrete sequence. And providing 
direct access to the list would be either unittest.TestCase-specific or all 
subclasses would then have to start supporting it.

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



[issue31241] ast col_offset wrong for list comprehensions, generators and tuples

2018-11-26 Thread Brett Cannon


Brett Cannon  added the comment:

Yeah, it's a tough call because it's one of those things others have probably 
worked around already, so backporting would break the work-arounds.

If you don't want to bother backporting, Serhiy, I think it would be fine to 
not do it.

--

___
Python tracker 

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



[issue31014] webbrowser._synthesize uses outdated calling signature for webbrowser.register

2018-11-26 Thread miss-islington


miss-islington  added the comment:


New changeset 2a37f013ec81099a6156160ce66803b2609bb7f4 by Miss Islington (bot) 
in branch '3.7':
bpo-35308: Fix regression where BROWSER env var is not respected. (GH-10693)
https://github.com/python/cpython/commit/2a37f013ec81099a6156160ce66803b2609bb7f4


--

___
Python tracker 

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



[issue35308] webbrowser regression: BROWSER env var not respected

2018-11-26 Thread miss-islington


miss-islington  added the comment:


New changeset 2a37f013ec81099a6156160ce66803b2609bb7f4 by Miss Islington (bot) 
in branch '3.7':
bpo-35308: Fix regression where BROWSER env var is not respected. (GH-10693)
https://github.com/python/cpython/commit/2a37f013ec81099a6156160ce66803b2609bb7f4


--
nosy: +miss-islington

___
Python tracker 

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



[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2018-11-26 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 4060283fcec7bb2bde4eb3c42b0a6ec99cf1d391 by Victor Stinner in 
branch 'master':
bpo-35134: Create Include/cpython/abstract.h (GH-10728)
https://github.com/python/cpython/commit/4060283fcec7bb2bde4eb3c42b0a6ec99cf1d391


--

___
Python tracker 

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



[issue31014] webbrowser._synthesize uses outdated calling signature for webbrowser.register

2018-11-26 Thread miss-islington


Change by miss-islington :


--
pull_requests: +9978

___
Python tracker 

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



[issue35308] webbrowser regression: BROWSER env var not respected

2018-11-26 Thread miss-islington


Change by miss-islington :


--
pull_requests: +9977

___
Python tracker 

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



[issue35308] webbrowser regression: BROWSER env var not respected

2018-11-26 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 8c281ed403fd915284d5bba2405d7c47f8195066 by Serhiy Storchaka 
(Zhiming Wang) in branch 'master':
bpo-35308: Fix regression where BROWSER env var is not respected. (GH-10693)
https://github.com/python/cpython/commit/8c281ed403fd915284d5bba2405d7c47f8195066


--

___
Python tracker 

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



[issue31014] webbrowser._synthesize uses outdated calling signature for webbrowser.register

2018-11-26 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 8c281ed403fd915284d5bba2405d7c47f8195066 by Serhiy Storchaka 
(Zhiming Wang) in branch 'master':
bpo-35308: Fix regression where BROWSER env var is not respected. (GH-10693)
https://github.com/python/cpython/commit/8c281ed403fd915284d5bba2405d7c47f8195066


--

___
Python tracker 

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



[issue35310] select which was interrupted by EINTR isn't re-run if the timeout has passed

2018-11-26 Thread STINNER Victor


STINNER Victor  added the comment:

> Under this condition, either select() should be re-run with a timeout of 0, 
> or the fd lists should be emptied before returning.

What is the current behavior?

Are you trying to fix a bug?

--
nosy: +vstinner

___
Python tracker 

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



[issue31171] multiprocessing.BoundedSemaphore of 32-bit python could not work while cross compiling on linux platform

2018-11-26 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
nosy: +benjamin.peterson, pitrou

___
Python tracker 

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



[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2018-11-26 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 5a8c240b1d97de0bd6ced2a57cbcf26da19c1fcc by Victor Stinner in 
branch 'master':
bpo-35134: Add Include/cpython/pyerrors.h (GH-10727)
https://github.com/python/cpython/commit/5a8c240b1d97de0bd6ced2a57cbcf26da19c1fcc


--

___
Python tracker 

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



[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2018-11-26 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +9976

___
Python tracker 

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



[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2018-11-26 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +9975

___
Python tracker 

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



[issue33723] test_time.test_thread_time() failed on AMD64 Debian root 3.x

2018-11-26 Thread STINNER Victor


STINNER Victor  added the comment:

I close again the bug.

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



[issue33723] test_time.test_thread_time() failed on AMD64 Debian root 3.x

2018-11-26 Thread miss-islington


miss-islington  added the comment:


New changeset 5350dd1b50e60882a2da6d53ed27e02d2b698f2e by Miss Islington (bot) 
in branch '3.7':
bpo-33723: Fix test_time.test_thread_time() (GH-10724)
https://github.com/python/cpython/commit/5350dd1b50e60882a2da6d53ed27e02d2b698f2e


--

___
Python tracker 

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



[issue24925] Allow doctest to find line number of __test__ strings if formatted as a triple quoted string.

2018-11-26 Thread R. David Murray


R. David Murray  added the comment:

Without looking at doctest.py, yes.  I believe the doctests in that file should 
be already plugged in to the unittest framework, so adding new testcase 
containing a non-doctest unit test should work fine.

--

___
Python tracker 

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



[issue35317] test_email: test_localtime_daylight_false_dst_true() fails depending on the timezone

2018-11-26 Thread Paul Ganssle


Change by Paul Ganssle :


--
nosy: +p-ganssle

___
Python tracker 

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



[issue33723] test_time.test_thread_time() failed on AMD64 Debian root 3.x

2018-11-26 Thread miss-islington


Change by miss-islington :


--
pull_requests: +9974

___
Python tracker 

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



[issue33723] test_time.test_thread_time() failed on AMD64 Debian root 3.x

2018-11-26 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 65c216e74f7957006ef7653b7e2afe83007c45ce by Victor Stinner in 
branch 'master':
bpo-33723: Fix test_time.test_thread_time() (GH-10724)
https://github.com/python/cpython/commit/65c216e74f7957006ef7653b7e2afe83007c45ce


--

___
Python tracker 

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



[issue35318] Check accuracy of str() doc string for its encoding argument

2018-11-26 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Is not it exactly what the docsting says?

> If encoding or
> errors is specified, then the object must expose a data buffer
> that will be decoded using the given encoding and error handler.
> Otherwise, returns the result of object.__str__() (if defined)
> or repr(object).

--

___
Python tracker 

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



[issue35318] Check accuracy of str() doc string for its encoding argument

2018-11-26 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

We may need to reword this a bit to show that the default system encoding only 
applies if "errors" is specified; otherwise, the argument pattern is mysterious.

--

___
Python tracker 

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



[issue35319] pkgutil.get_data() is a wrapper for a deprecated class

2018-11-26 Thread Kevin Norris


New submission from Kevin Norris :

pkgutil.get_data()'s documentation[1] says it is a wrapper for 
importlib.abc.ResourceLoader.get_data(), but the latter's documentation[2] says 
the whole class is deprecated since 3.7.

Please either:

A. Formally deprecate pkgutil.get_data() (and ideally provide a "nice" 
alternative wrapper, so that I don't have to muck about with importlib's 
endless heterarchy of opaque objects which return other opaque objects).
B. Modify pkgutil.get_data() to use ResourceReader instead of ResourceLoader.
C. (A) or (B) has already been done, just document it.

[1]: https://docs.python.org/3/library/pkgutil.html#pkgutil.get_data
[2]: 
https://docs.python.org/3.8/library/importlib.html#importlib.abc.ResourceLoader

--
assignee: docs@python
components: Documentation, Library (Lib)
messages: 330456
nosy: Kevin.Norris, docs@python
priority: normal
severity: normal
status: open
title: pkgutil.get_data() is a wrapper for a deprecated class
type: behavior
versions: 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



[issue35318] Check accuracy of str() doc string for its encoding argument

2018-11-26 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:

>>> str(buffer, errors='strict')
'lim x ⟶ ∞, 1/sin²(x)'

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue35318] Check accuracy of str() doc string for its encoding argument

2018-11-26 Thread Raymond Hettinger

New submission from Raymond Hettinger :

The "encoding" parameter is documented to default to sys.getdefaultencoding(). 
That may be true but there doesn't seem to be a way to use that default because 
objects will all have a __str__ or __repr__ that will be run instead.

---
>>> import sys
>>> sys.getdefaultencoding() # Default encoding is utf-8
'utf-8'
>>> buffer = b'lim x \xe2\x9f\xb6 \xe2\x88\x9e, 1/sin\xc2\xb2(x)'
>>> str(buffer, 'utf-8') # Explicit argument decodes properly
'lim x ⟶ ∞, 1/sin²(x)'   
>>> str(buffer)  # Despite the default, repr is shown 
"b'lim x \\xe2\\x9f\\xb6 \\xe2\\x88\\x9e, 1/sin\\xc2\\xb2(x)'"

>>> print(str.__doc__)
str(object='') -> str
str(bytes_or_buffer[, encoding[, errors]]) -> str

Create a new string object from the given object. If encoding or
errors is specified, then the object must expose a data buffer
that will be decoded using the given encoding and error handler.
Otherwise, returns the result of object.__str__() (if defined)
or repr(object).
encoding defaults to sys.getdefaultencoding().
errors defaults to 'strict'.

--
assignee: docs@python
components: Documentation
messages: 330454
nosy: docs@python, rhettinger
priority: normal
severity: normal
status: open
title: Check accuracy of str() doc string for its encoding argument
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



[issue24209] Allow IPv6 bind in http.server

2018-11-26 Thread Lisa Roach


Change by Lisa Roach :


--
stage: patch review -> resolved

___
Python tracker 

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



[issue34977] Release Windows Store app containing Python

2018-11-26 Thread Steve Dower


Change by Steve Dower :


--
Removed message: https://bugs.python.org/msg330453

___
Python tracker 

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



[issue34977] Release Windows Store app containing Python

2018-11-26 Thread Steve Dower


Steve Dower  added the comment:

For my own reference, some issues I found installing this package on a clean 
machine:

* requires Developer Mode (until I get the sccd file signed - just sideloading 
is not sufficient)
* requires vcruntime140.dll to be included in the package (workaround is to 
install the redistributable from 
https://visualstudio.microsoft.com/downloads/#title-39324)
* venv needs to treat .pdb files as binary

--

___
Python tracker 

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



[issue34977] Release Windows Store app containing Python

2018-11-26 Thread Steve Dower


Steve Dower  added the comment:

For my own reference, some issues I found installing this package on a clean 
machine:

* requires Developer Mode (until I get the sccd file signed - just sideloading 
is not sufficient)
* requires vcruntime140.dll to be included in the package (workaround is to 
install the redistributable from 
https://visualstudio.microsoft.com/downloads/#title-39324)
* venv needs to treat .pdb files as binary

--

___
Python tracker 

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



[issue35255] delete "How do I extract the downloaded documentation" section in Windows FAQ

2018-11-26 Thread miss-islington


miss-islington  added the comment:


New changeset 7f93f93fa68f54c1bc128d58fa17536245396de3 by Miss Islington (bot) 
(Julien Palard) in branch '3.6':
[3.6] bpo-35255: Doc: Delete now useless Windows FAQ section (GH-10557) 
(GH-10725)
https://github.com/python/cpython/commit/7f93f93fa68f54c1bc128d58fa17536245396de3


--

___
Python tracker 

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



[issue35255] delete "How do I extract the downloaded documentation" section in Windows FAQ

2018-11-26 Thread Julien Palard


Change by Julien Palard :


--
pull_requests: +9973

___
Python tracker 

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



[issue35035] Documentation for email.utils is named email.util.rst

2018-11-26 Thread Julien Palard


Change by Julien Palard :


--
stage: patch review -> resolved

___
Python tracker 

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



[issue35255] delete "How do I extract the downloaded documentation" section in Windows FAQ

2018-11-26 Thread Julien Palard


Change by Julien Palard :


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



[issue35255] delete "How do I extract the downloaded documentation" section in Windows FAQ

2018-11-26 Thread miss-islington


miss-islington  added the comment:


New changeset 6f8cab0db044132c6192d6ac1536d28cf72c9d27 by Miss Islington (bot) 
(Julien Palard) in branch '3.7':
[3.7] bpo-35255: Doc: Delete now useless Windows FAQ section (GH-10557) 
(GH-10722)
https://github.com/python/cpython/commit/6f8cab0db044132c6192d6ac1536d28cf72c9d27


--
nosy: +miss-islington

___
Python tracker 

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



[issue35255] delete "How do I extract the downloaded documentation" section in Windows FAQ

2018-11-26 Thread Julien Palard


Change by Julien Palard :


--
pull_requests: +9972

___
Python tracker 

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



[issue33723] test_time.test_thread_time() failed on AMD64 Debian root 3.x

2018-11-26 Thread STINNER Victor


STINNER Victor  added the comment:

Oh. In my previous attempt, I changed the minimum time from 20 ms to 15 ms. But 
I didn't notice that one check uses assertLess() rather than 
assertGreaterEqual(). So I wrote PR 10724 to change the maximum from 15 ms to 
30 ms in test_thread_time().

--

___
Python tracker 

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



[issue33723] test_time.test_thread_time() failed on AMD64 Debian root 3.x

2018-11-26 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +9971
stage: resolved -> patch review

___
Python tracker 

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



[issue33723] test_time.test_thread_time() failed on AMD64 Debian root 3.x

2018-11-26 Thread STINNER Victor


Change by STINNER Victor :


--
resolution: fixed -> 
status: closed -> open

___
Python tracker 

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



[issue33723] test_time.test_thread_time() failed on AMD64 Debian root 3.x

2018-11-26 Thread STINNER Victor


STINNER Victor  added the comment:

New failure on AppVeyor:

FAIL: test_thread_time (test.test_time.TimeTestCase)
--
Traceback (most recent call last):
  File "C:\projects\cpython\lib\test\test_time.py", line 553, in 
test_thread_time
self.assertLess(stop - start, min_time)
AssertionError: 0.015625 not less than 0.015

--

___
Python tracker 

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



[issue33723] test_time.test_thread_time() failed on AMD64 Debian root 3.x

2018-11-26 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +9970

___
Python tracker 

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



[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2018-11-26 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 75e4699b31d1d88abad097ad13466c5c07711324 by Victor Stinner in 
branch 'master':
bpo-35134: Create Include/cpython/unicodeobject.h (GH-10680)
https://github.com/python/cpython/commit/75e4699b31d1d88abad097ad13466c5c07711324


--

___
Python tracker 

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



[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2018-11-26 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 6eb996685e25c09499858bee4be258776e603c6f by Victor Stinner in 
branch 'master':
bpo-35134: Create Include/cpython/object.h (GH-10679)
https://github.com/python/cpython/commit/6eb996685e25c09499858bee4be258776e603c6f


--

___
Python tracker 

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



[issue33954] float.__format__('n') fails with _PyUnicode_CheckConsistency assertion error for locales with non-ascii thousands separator

2018-11-26 Thread STINNER Victor


STINNER Victor  added the comment:

Python 3.6, 3.7 and master have been fixed.

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



[issue33954] float.__format__('n') fails with _PyUnicode_CheckConsistency assertion error for locales with non-ascii thousands separator

2018-11-26 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset fc4a44b0c3a69390eca4680d89c2ae5fe967f882 by Victor Stinner in 
branch '3.6':
bpo-33954: Fix _PyUnicode_InsertThousandsGrouping() (GH-10623) (GH-10718) 
(GH-10720)
https://github.com/python/cpython/commit/fc4a44b0c3a69390eca4680d89c2ae5fe967f882


--

___
Python tracker 

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



[issue35317] test_email: test_localtime_daylight_false_dst_true() fails depending on the timezone

2018-11-26 Thread STINNER Victor


Change by STINNER Victor :


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

___
Python tracker 

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



[issue35317] test_email: test_localtime_daylight_false_dst_true() fails depending on the timezone

2018-11-26 Thread STINNER Victor


STINNER Victor  added the comment:

Oh, the tests fail since 2012 at least on FreeBSD:

https://bugs.python.org/issue15750#msg168741

"""
On the FreeBSD 8.2 build slave:

==
ERROR: test_localtime_daylight_false_dst_true (test_utils.LocaltimeTests)
--
Traceback (most recent call last):
  (...)
seconds = time.mktime(tm)
OverflowError: mktime argument out of range

==
ERROR: test_localtime_daylight_true_dst_true (test_utils.LocaltimeTests)
--
Traceback (most recent call last):
  (...)
seconds = time.mktime(tm)
OverflowError: mktime argument out of range
"""

bpo-15750 even contains a reproducer in C.

--

___
Python tracker 

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



[issue15750] test_localtime_daylight_false_dst_true raises OverflowError: mktime argument out of range

2018-11-26 Thread STINNER Victor


STINNER Victor  added the comment:

I mark this issue as a duplicate of bpo-35317.

--
resolution: fixed -> duplicate
superseder:  -> test_email: test_localtime_daylight_false_dst_true() fails 
depending on the timezone

___
Python tracker 

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



[issue35317] test_email: test_localtime_daylight_false_dst_true() fails depending on the timezone

2018-11-26 Thread STINNER Victor


STINNER Victor  added the comment:

I'm able to reproduce the issue on FreeBSD 12.0-RC2:

vstinner@freebsd$ TZ=CET ./python -m test test_email -m 
'test_localtime_daylight_*'  -v
(...)
Tests result: SUCCESS

vstinner@freebsd$ TZ=UTC ./python -m test test_email -m 
'test_localtime_daylight_*'  -v
(...)
==
ERROR: test_localtime_daylight_false_dst_true 
(test.test_email.test_utils.LocaltimeTests)
--
(...)
  File "/usr/home/vstinner/prog/python/master/Lib/email/utils.py", line 361, in 
localtime
seconds = time.mktime(tm)
OverflowError: mktime argument out of range

==
ERROR: test_localtime_daylight_true_dst_true 
(test.test_email.test_utils.LocaltimeTests)
--
(...)
  File "/usr/home/vstinner/prog/python/master/Lib/email/utils.py", line 361, in 
localtime
seconds = time.mktime(tm)
OverflowError: mktime argument out of range

--

___
Python tracker 

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



[issue31628] test_emails failure on FreeBSD

2018-11-26 Thread STINNER Victor


STINNER Victor  added the comment:

I mark this issue as a duplicate of bpo-35317.

--
nosy: +vstinner
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> test_email: test_localtime_daylight_false_dst_true() fails 
depending on the timezone

___
Python tracker 

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



[issue35317] test_email: test_localtime_daylight_false_dst_true() fails depending on the timezone

2018-11-26 Thread STINNER Victor

STINNER Victor  added the comment:

Miro Hrončok:
> I found a C reproducer and reported to Fedora glibc tracker: 
> https://bugzilla.redhat.com/show_bug.cgi?id=1653340

Nice, I wrote almost the same one :-) See attached mktime_bug.c:

$ gcc mktime_bug.c -o mktime_bug
$ ./mktime_bug 
TZ=CET: mktime() -> 1331506860, errno=0
TZ=UTC: mktime() -> 1331514060, errno=0

$ ./mktime_bug
TZ=CET: mktime() -> 1331506860, errno=0
TZ=UTC: mktime() -> -1, errno=75

--
nosy:  -hroncok
Added file: https://bugs.python.org/file47947/mktime_bug.c

___
Python tracker 

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



[issue35317] test_email: test_localtime_daylight_false_dst_true() fails depending on the timezone

2018-11-26 Thread Miro Hrončok

Miro Hrončok  added the comment:

I found a C reproducer and reported to Fedora glibc tracker: 
https://bugzilla.redhat.com/show_bug.cgi?id=1653340

--
nosy: +hroncok

___
Python tracker 

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



[issue35317] test_email: test_localtime_daylight_false_dst_true() fails depending on the timezone

2018-11-26 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

I remember some related issues raised in the past about the same test failing 
on freebsd machines : issue31628 and issue15750 (some more detail on msg168747)

--
nosy: +xtreak

___
Python tracker 

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



[issue35317] test_email: test_localtime_daylight_false_dst_true() fails depending on the timezone

2018-11-26 Thread STINNER Victor


STINNER Victor  added the comment:

mktime_bug.py: script to reproduce the bug.

--
Added file: https://bugs.python.org/file47946/mktime_bug.py

___
Python tracker 

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



[issue35317] test_email: test_localtime_daylight_false_dst_true() fails depending on the timezone

2018-11-26 Thread STINNER Victor


New submission from STINNER Victor :

The two following tests fail on glibc-2.28.9000-19.fc30.x86_64 on Fedora 
Rawhide depending on the timezone.

Australia/Lord_Howe: ok
EDT4: fail
EST+05EDT,M3.2.0,M11.1.0: ok
Europe/Kiev: ok
Europe/Minsk: ok
MSK-03: fail
MST+07MDT,M4.1.0,M10.5.0: ok
STD-1DST,M3.2.0,M11.1.0: ok
STD-1DST,M4.1.0,M10.1.0: ok
UTC: fail

 sh-4.4# TZ=UTC ./python -m test test_email -m 
'test_localtime_daylight_*'  -v
== CPython 3.7.1 (default, Nov 26 2018, 15:33:31) [GCC 8.2.1 20181105 (Red Hat 
8.2.1-5)]
== Linux-4.19.2-301.fc29.x86_64-x86_64-with-fedora-30-Rawhide little-endian
== cwd: /builddir/Python-3.7.1/build/test_python_9582
== CPU count: 8
== encodings: locale=UTF-8, FS=utf-8
Run tests sequentially
0:00:00 load avg: 0.33 [1/1] test_email
test_localtime_daylight_false_dst_false 
(test.test_email.test_utils.LocaltimeTests) ... ok
test_localtime_daylight_false_dst_true 
(test.test_email.test_utils.LocaltimeTests) ... ERROR
test_localtime_daylight_true_dst_false 
(test.test_email.test_utils.LocaltimeTests) ... ok
test_localtime_daylight_true_dst_true 
(test.test_email.test_utils.LocaltimeTests) ... ERROR

==
ERROR: test_localtime_daylight_false_dst_true 
(test.test_email.test_utils.LocaltimeTests)
--
Traceback (most recent call last):
  File "/builddir/Python-3.7.1/Lib/test/test_email/test_utils.py", line 88, in 
test_localtime_daylight_false_dst_true
t1 = utils.localtime(t0, isdst=1)
  File "/builddir/Python-3.7.1/Lib/email/utils.py", line 361, in localtime
seconds = time.mktime(tm)
OverflowError: mktime argument out of range

==
ERROR: test_localtime_daylight_true_dst_true 
(test.test_email.test_utils.LocaltimeTests)
--
Traceback (most recent call last):
  File "/builddir/Python-3.7.1/Lib/test/test_email/test_utils.py", line 81, in 
test_localtime_daylight_true_dst_true
t1 = utils.localtime(t0, isdst=1)
  File "/builddir/Python-3.7.1/Lib/email/utils.py", line 361, in localtime
seconds = time.mktime(tm)
OverflowError: mktime argument out of range

--

Ran 4 tests in 0.007s

FAILED (errors=2)
test test_email failed
test_email failed

== Tests result: FAILURE ==

1 test failed:
test_email

Total duration: 259 ms
Tests result: FAILURE

 sh-4.4# rpm -q glibc
glibc-2.28.9000-19.fc30.x86_64
 sh-4.4# cat /etc/fedora-release 
Fedora release 30 (Rawhide)
 sh-4.4# date
lun. nov. 26 14:53:14 UTC 2018

--
components: Tests, email
messages: 330435
nosy: barry, r.david.murray, vstinner
priority: normal
severity: normal
status: open
title: test_email: test_localtime_daylight_false_dst_true() fails depending on 
the timezone
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



[issue23078] unittest.mock patch autospec doesn't work on staticmethods

2018-11-26 Thread Tom Dalton

Tom Dalton  added the comment:

Here's a minimal example so my comment is not totally vacuous:

```
import unittest
from unittest import mock

class Foo:
@classmethod
def bar(cls, baz):
pass

class TestFoo(unittest.TestCase):
def test_bar(self):
with unittest.mock.patch.object(Foo, "bar", autospec=True):
Foo.bar()
```

->

```
~/› python -m unittest example.py 
E
==
ERROR: test_bar (example.TestFoo)
--
Traceback (most recent call last):
  File "example.py", line 14, in test_bar
Foo.bar()
TypeError: 'NonCallableMagicMock' object is not callable

--
Ran 1 test in 0.001s
```

--

___
Python tracker 

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



[issue23078] unittest.mock patch autospec doesn't work on staticmethods

2018-11-26 Thread Tom Dalton


Tom Dalton  added the comment:

I've just come across this too, so would be great if the patch can be 
progressed.

--
nosy: +tom.dalton.fanduel

___
Python tracker 

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



[issue33954] float.__format__('n') fails with _PyUnicode_CheckConsistency assertion error for locales with non-ascii thousands separator

2018-11-26 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +9968

___
Python tracker 

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



[issue35316] test_eintr fails randomly on macOS

2018-11-26 Thread STINNER Victor


New submission from STINNER Victor :

test_sleep() of test_eintr fails on VSTS/macOS.

select.select() sleeps 200 ms, the process is supposed to get a signal every 
100 ms, but the test says that the signal handler was not called during the 
test. All tests pass, the issue seems to be specific to macOS.

Maybe select() cannot be interrupted by SIGALRM on macOS?

https://dev.azure.com/Python/cpython/_build/results?buildId=34604=logs

2018-11-26T12:51:16.6867210Z FAIL: test_sleep (__main__.TimeEINTRTest)
2018-11-26T12:51:16.6868140Z 
--
2018-11-26T12:51:16.6868300Z Traceback (most recent call last):
2018-11-26T12:51:16.6868450Z   File 
"/Users/vsts/agent/2.142.1/work/1/s/Lib/test/eintrdata/eintr_tester.py", line 
73, in tearDown
2018-11-26T12:51:16.6868570Z self.assertGreater(self.signals, 0)
2018-11-26T12:51:16.6869080Z AssertionError: 0 not greater than 0

2018-11-26T12:49:29.9119300Z os.uname: posix.uname_result(sysname='Darwin', 
nodename='Mac-329.local', release='17.7.0', version='Darwin Kernel Version 
17.7.0: Thu Jun 21 22:53:14 PDT 2018; root:xnu-4570.71.2~1/RELEASE_X86_64', 
machine='x86_64')


I added the check (which fails) last week, ensure that the signal handler has 
been called at least once:

* bpo-35189
* commit aac1f81eef971876ba5b1673db9ce6620311c469

--
components: Tests, macOS
messages: 330432
nosy: ned.deily, pablogsal, ronaldoussoren, vstinner
priority: normal
severity: normal
status: open
title: test_eintr fails randomly on macOS
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



[issue33954] float.__format__('n') fails with _PyUnicode_CheckConsistency assertion error for locales with non-ascii thousands separator

2018-11-26 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 6f5fa1b4be735159e964906ab608dc467476e47c by Victor Stinner in 
branch '3.7':
bpo-33954: Fix _PyUnicode_InsertThousandsGrouping() (GH-10623) (GH-10718)
https://github.com/python/cpython/commit/6f5fa1b4be735159e964906ab608dc467476e47c


--

___
Python tracker 

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



[issue35314] fnmatch failed with leading caret (^)

2018-11-26 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

'^' is not considered as a special character in shell-style wildcards. Use '!' 
for negating the character set: '[!b].py'.

https://docs.python.org/3/library/fnmatch.html

`man bash` describes the behavior of Bash, not Python.

--
nosy: +serhiy.storchaka
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



[issue33954] float.__format__('n') fails with _PyUnicode_CheckConsistency assertion error for locales with non-ascii thousands separator

2018-11-26 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +9967

___
Python tracker 

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



[issue33954] float.__format__('n') fails with _PyUnicode_CheckConsistency assertion error for locales with non-ascii thousands separator

2018-11-26 Thread miss-islington


Change by miss-islington :


--
pull_requests: +9966

___
Python tracker 

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



  1   2   >