[issue22257] PEP 432: Redesign the interpreter startup sequence

2017-05-22 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
stage:  -> patch review
type:  -> enhancement
versions: +Python 3.7 -Python 3.5

___
Python tracker 

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



[issue30432] FileInput doesn't accept PathLike objects for file names

2017-05-22 Thread Łukasz Langa

Changes by Łukasz Langa :


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



[issue24899] Add an os.path <=> pathlib equivalence table in pathlib docs

2017-05-22 Thread Roundup Robot

Changes by Roundup Robot :


--
pull_requests: +1840

___
Python tracker 

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



[issue22257] PEP 432: Redesign the interpreter startup sequence

2017-05-22 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Why Lib/test/coding20731.py was changed?

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue30423] [asyncio] orphan future close loop and cause "RuntimeError: Event loop stopped before Future completed."

2017-05-22 Thread Łukasz Langa

Changes by Łukasz Langa :


--
nosy: +lukasz.langa

___
Python tracker 

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



[issue21056] csv documentation is incorrect

2017-05-22 Thread Łukasz Langa

Łukasz Langa added the comment:


New changeset 6ef0882303cff24c58785bb1082250088266886d by Łukasz Langa 
(Mariatta) in branch '3.6':
[3.6] bpo-21056: Document return type of next method of csv reader (GH-146) 
(#1749)
https://github.com/python/cpython/commit/6ef0882303cff24c58785bb1082250088266886d


--
nosy: +lukasz.langa

___
Python tracker 

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



[issue21056] csv documentation is incorrect

2017-05-22 Thread Łukasz Langa

Łukasz Langa added the comment:


New changeset 32dcf426ad2ae10e24e92f60e99dbb4939fb2021 by Łukasz Langa 
(Mariatta) in branch '3.5':
[3.5] bpo-21056: Document return type of next method of csv reader (GH-146) 
(#1750)
https://github.com/python/cpython/commit/32dcf426ad2ae10e24e92f60e99dbb4939fb2021


--

___
Python tracker 

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



[issue30435] Documentation either unclear or incorrect on comparisons between bytes and strings in Python 3

2017-05-22 Thread Eryk Sun

Eryk Sun added the comment:

How about "cannot be compared by value" or "cannot be ordered by value"? 
Emphasizing the value aspect doesn't conflict with the default equality 
comparison by identity.

Note that starting Python with the -b option causes the bytes type to raise a 
warning in this case:

>>> sys.flags.bytes_warning
1
>>> 'a'.__eq__(b'a')
NotImplemented

>>> b'a'.__eq__('a')
__main__:1: BytesWarning: Comparison between bytes and string
NotImplemented

--
nosy: +eryksun

___
Python tracker 

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



[issue30432] FileInput doesn't accept PathLike objects for file names

2017-05-22 Thread Łukasz Langa

Łukasz Langa added the comment:


New changeset 002665a9da3a2924c4a08511ede62ff4d1dabc48 by Łukasz Langa (Roy 
Williams) in branch 'master':
bpo-30432: FileInput doesn't accept PathLike objects for file names (#1732)
https://github.com/python/cpython/commit/002665a9da3a2924c4a08511ede62ff4d1dabc48


--
nosy: +lukasz.langa

___
Python tracker 

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



[issue30439] Expose the subinterpreters C-API in the stdlib.

2017-05-22 Thread Eric Snow

Changes by Eric Snow :


--
pull_requests: +1839

___
Python tracker 

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



[issue30439] Expose the subinterpreters C-API in the stdlib.

2017-05-22 Thread Eric Snow

New submission from Eric Snow:

For a variety of reasons, I'd like to be able to manage subinterpreters from 
Python code.  An initial effort would add a _interpreters module to the stdlib 
that exposes the basic functionality of the corresponding C-API.

--
assignee: eric.snow
components: Library (Lib)
messages: 294225
nosy: eric.snow, steve.dower
priority: normal
severity: normal
stage: patch review
status: open
title: Expose the subinterpreters C-API in the stdlib.
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



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

2017-05-22 Thread Łukasz Langa

Łukasz Langa added the comment:


New changeset d29feccec3ce3dcd9ab3100f8956171c70ec3027 by Łukasz Langa in 
branch '3.6':
[3.6] bpo-30395 _PyGILState_Reinit deadlock fix (GH-1734) (#1740)
https://github.com/python/cpython/commit/d29feccec3ce3dcd9ab3100f8956171c70ec3027


--

___
Python tracker 

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



[issue23894] lib2to3 doesn't recognize rb'...' and f'...' in Python 3.6

2017-05-22 Thread Łukasz Langa

Łukasz Langa added the comment:


New changeset e8412e684ed741df246e8430f4911b31b0d8be1f by Łukasz Langa in 
branch '3.6':
[3.6] bpo-23894: make lib2to3 recognize f-strings (GH-1733) (#1737)
https://github.com/python/cpython/commit/e8412e684ed741df246e8430f4911b31b0d8be1f


--

___
Python tracker 

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



[issue21056] csv documentation is incorrect

2017-05-22 Thread Mariatta Wijaya

Changes by Mariatta Wijaya :


--
pull_requests: +1838

___
Python tracker 

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



[issue21056] csv documentation is incorrect

2017-05-22 Thread Mariatta Wijaya

Changes by Mariatta Wijaya :


--
pull_requests: +1837

___
Python tracker 

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



[issue21056] csv documentation is incorrect

2017-05-22 Thread Mariatta Wijaya

Changes by Mariatta Wijaya :


--
stage: needs patch -> backport needed
versions: +Python 3.7 -Python 2.7

___
Python tracker 

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



[issue21056] csv documentation is incorrect

2017-05-22 Thread Mariatta Wijaya

Mariatta Wijaya added the comment:


New changeset d618c8c6d31b9b288f8a070417683974eb98e3ba by Mariatta (Amit Kumar) 
in branch 'master':
bpo-21056: Document return type of next method of csv reader (#146)
https://github.com/python/cpython/commit/d618c8c6d31b9b288f8a070417683974eb98e3ba


--
nosy: +Mariatta

___
Python tracker 

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



[issue30405] build.bat: register binaries for py launcher

2017-05-22 Thread Eryk Sun

Eryk Sun added the comment:

The existing code can be adapted to generalize support for version-number tags, 
i.e. X.Y[-32|-64]. locate_all_pythons() would need to search every company key 
to add executable installations that use version-number tags to the 
installed_pythons array. Whether a tag uses a -32 or -64 suffix is immaterial 
because the launcher calls GetBinaryType on the executable. A "Company" field 
would be needed in INSTALLED_PYTHON to allow narrowing a search, such as `py 
PythonCore\3.6-32`. Also, compare_pythons() would need to order PythonCore 
ahead of other companies in the installed_pythons array to meet the precedence 
requirement. 

A new find_python_by_tag(tag, company) function could implement finding 
non-version tags. It would return the first executable Python installation that 
exactly matches the tag. find_python_by_tag() would be called in process() in 
between validate_version() failing and skipping past the command-line options.

(BTW, skipping past the options doesn't work right for options that take an 
argument such as -X and -W. The launcher sees the optional argument as the 
script. At best the _wfopen_s call fails, and then it falls back on executing 
the default Python.)

It's conceivable to generalize maybe_handle_shebang and parse_shebang to 
support companies in virtual shebangs such as #!/usr/bin/ExampleCorp/python3.6, 
but that's beyond the intention of the built-in virtual shebangs. They were 
added to support Unix shebangs in cross-platform scripts. Defining custom 
commands in py.ini would be a better approach for something like this.

Steve, I gather you don't think it's a problem to use arbitrarily named tags on 
the command line. The launcher shouldn't look for an "h" tag for `py -h`, so 
how about using a list of existing command-line options that will never be 
looked up as unqualified tag names (i.e without a company)? In that case such 
names would need to be used in -Company\Tag form.

--

___
Python tracker 

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



[issue22257] PEP 432: Redesign the interpreter startup sequence

2017-05-22 Thread Eric Snow

Eric Snow added the comment:


New changeset 6b4be195cd8868b76eb6fbe166acc39beee8ce36 by Eric Snow in branch 
'master':
bpo-22257: Small changes for PEP 432. (#1728)
https://github.com/python/cpython/commit/6b4be195cd8868b76eb6fbe166acc39beee8ce36


--

___
Python tracker 

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



[issue29102] Add an id field to PyInterpreterState.

2017-05-22 Thread Eric Snow

Changes by Eric Snow :


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



[issue9883] minidom: AttributeError: DocumentFragment instance has no attribute 'writexml'

2017-05-22 Thread Fred L. Drake, Jr.

Fred L. Drake, Jr. added the comment:

I agree that writexml should be available for document fragments.

I doubt the additional level of indentation should be added, as you've included 
in point 2.

--
nosy: +fdrake

___
Python tracker 

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



[issue30438] tarfile would fail to extract tarballs with files under R/O directories

2017-05-22 Thread Yaroslav Halchenko

New submission from Yaroslav Halchenko:

If tarfile contains a file under a directory which has no write permission, 
extractall would fail since chmod'ing of the directory is done right when it is 
"extracted".

Please find attached a quick script to demonstrate the problem using 
Python code.  The issue is not just of an academic interest -- git-annex uses 
read-only permission to safe-guard against manual deletion of content. So 
tarball of any of git-annex repository carrying content for at least a single 
file, would not be extractable using Python's tarfile module (works fine with 
pure tar, verified that it is still failing to extract with Python 
v3.6.1-228-g1398b1bc7d from http://github.com/python/cpython).

--
components: IO
files: tarfilero.py
messages: 294217
nosy: Yaroslav.Halchenko
priority: normal
severity: normal
status: open
title: tarfile would fail to extract tarballs with files under R/O directories
versions: Python 2.7, Python 3.3, Python 3.4, Python 3.5, Python 3.6
Added file: http://bugs.python.org/file46888/tarfilero.py

___
Python tracker 

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



[issue30437] SSL_shutdown can return meaningless SSL_ERROR_SYSCALL

2017-05-22 Thread Nathaniel Smith

New submission from Nathaniel Smith:

The SSL_shutdown man page says that if it returns 0, and an SSL_ERROR_SYSCALL 
is set, then SSL_ERROR_SYSCALL should be ignored - or at least I think that's 
what it's trying to say. See the RETURN VALUES section. I think this means we 
should only raise this error if the return value is <0? Though I suppose we 
need to clear out the error queue in any case.

I ended up changing the code that was triggering this for other reasons and now 
I'm not hitting it, so it's not exactly urgent for me, but FYI... I was getting 
SSLSyscallError exceptions from code using memory BIOs and where everything was 
fine. The test case had one task continually sending data into an 
SSLObject-based stream while the other end called SSLObject.unwrap() and then 
ended up continually getting SSLWantRead and reading more data -- after a few 
cycles of reading it got SSLSyscalError instead.

--
assignee: christian.heimes
components: SSL
messages: 294216
nosy: alex, christian.heimes, dstufft, janssen, njs
priority: normal
severity: normal
status: open
title: SSL_shutdown can return meaningless SSL_ERROR_SYSCALL
versions: Python 2.7, 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



[issue25532] infinite loop when running inspect.unwrap over unittest.mock.call

2017-05-22 Thread Nick Coghlan

Changes by Nick Coghlan :


--
stage: needs patch -> backport needed
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



[issue25532] infinite loop when running inspect.unwrap over unittest.mock.call

2017-05-22 Thread Nick Coghlan

Nick Coghlan added the comment:


New changeset f9169ce6b48c7cc7cc62d9eb5e4ee1ac7066d14b by Nick Coghlan (Thomas 
Kluyver) in branch 'master':
bpo-25532: Protect against infinite loops in inspect.unwrap() (#1717)
https://github.com/python/cpython/commit/f9169ce6b48c7cc7cc62d9eb5e4ee1ac7066d14b


--

___
Python tracker 

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



[issue30426] why not use the same style func name. eg: int.to_bytes (with underline) and array.tobytes(without underline).

2017-05-22 Thread Eric V. Smith

Eric V. Smith added the comment:

We won't do that, because then we'd have two functions that do the same thing. 
There's no sense having to learn two functions, just to achieve consistency. 
Sorry.

--

___
Python tracker 

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



[issue30426] why not use the same style func name. eg: int.to_bytes (with underline) and array.tobytes(without underline).

2017-05-22 Thread zaazbb

zaazbb added the comment:

how about add a unitive style function name, for a compatibility reason, keep 
the old function exists also.

for example, add int.tobytes(), and keep int.to_bytes() exists.

--

___
Python tracker 

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



[issue29102] Add an id field to PyInterpreterState.

2017-05-22 Thread Eric Snow

Eric Snow added the comment:


New changeset e377416c10eb0bf055b0728cdcdc4488fdfd3b5f by Eric Snow in branch 
'master':
bpo-29102: Add a unique ID to PyInterpreterState. (#1639)
https://github.com/python/cpython/commit/e377416c10eb0bf055b0728cdcdc4488fdfd3b5f


--

___
Python tracker 

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



[issue21074] Too aggressive constant folding

2017-05-22 Thread Raymond Hettinger

Changes by Raymond Hettinger :


--
nosy:  -rhettinger

___
Python tracker 

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



[issue30293] Peephole binops folding can lead to memory and bytecache ballooning

2017-05-22 Thread Raymond Hettinger

Changes by Raymond Hettinger :


--
nosy:  -rhettinger

___
Python tracker 

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



[issue21074] Too aggressive constant folding

2017-05-22 Thread Raymond Hettinger

Raymond Hettinger added the comment:

> I do not think quoting the Zen of Python helps anything.

Instead of practicality-beats-purity, the better aphorism is 
perfect-is-the-enemy-of-good.

> The Code of Conduct which governs comments here requests
> that we be considerate and respective

The term sanity check was used in normal technical sense.  It is a technical 
description of a kind of guard that is sometimes placed in code.  It isn't a 
judgment about a user or their code. 

In issue 30293, the StackOverflow OP constructed a hypothetical example that 
explicitly asked the machine to compute a large object using ``1 << 
5``.  The OP was merely curious about why the optimized code was so 
much faster than the unoptimized code. 

On the tracker, this gave rise to question about whether sanity checks should 
be added to the peephole optimizer.  Apparently, the use of the word sanity is 
offensive to you and hence the reference to the code-of-conduct.  Though I 
believe this is a profound misreading of my words and my intent, I apologize if 
you were offended.

Even though I'm a subject-matter-expert in the area, after the code-of-conduct 
reference, I no longer feel comfortable or safe in participating further this 
discussion, so I am bowing out.

To move these issues to resolution, please be clear about what is being asked 
for.  If you don't want the issue re-opened, please close it.  If you want the 
peephole optimizer to be disabled because it is interfering with your work, 
please say so -- we can take it out and give up whatever benefits it offering 
to other users.  If you want some specific guards to be added, please say so.

My opinion is that this difficult to do in the general case and that it is 
difficult to decide what the desirable behavior should be for the uncommon 
cases.  ISTM that constant folding is already too complex and would benefit 
from benefit from simplification rather than growing additional special cases.  
That said, your opinion may differ from mine, and it is just as valid.

--

___
Python tracker 

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



[issue30380] Sphinx 1.6.1 raising new warnings in docs build

2017-05-22 Thread Brett Cannon

Brett Cannon added the comment:

All branches are now pinned to and working under Sphinx 1.6.1, so I'm closing 
this as fixed!

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



[issue30436] importlib.find_spec raises AttributeError/ModuleNotFoundError when parent is not a package/module

2017-05-22 Thread tkhyn

New submission from tkhyn:

Hello, I stumbled upon this issue when using the module_has_submodule function 
in Django, which raised an exception when trying to import a dotted path such 
as ``parent.module`` when ``parent`` does not exist or is not a package. I 
would expect (as well as the django devs, apparently) find_spec to return None 
instead of raising an AttributeError or ModuleNotFoundError. 

Unless you think Django or any package making use of importlib.find_spec should 
handle these exceptions, the fix is quite simple.

Steps to reproduce (with Python 3.6.1):

touch parent.py
python3.6
>>> from importlib.util import find_spec
>>> find_spec('parent.module')
  File "C:\Python\3.6\Lib\importlib\util.py", line 89, in find_spec
return _find_spec(fullname, parent.__path__)
AttributeError: module 'parent' has no attribute '__path__'
>>> find_spec('invalid_parent.module')
  File "C:\Python\3.6\Lib\importlib\util.py", line 88, in find_spec
parent = __import__(parent_name, fromlist=['__path__'])
ModuleNotFoundError: No module named 'invalid_parent'

The fix is quite simple, replacing

if fullname not in sys.modules:
parent_name = fullname.rpartition('.')[0]
if parent_name:
# Use builtins.__import__() in case someone replaced it.

parent = __import__(parent_name, fromlist=['__path__'])
return _find_spec(fullname, parent.__path__)



else:

return _find_spec(fullname, None)
by:

if fullname not in sys.modules:
parent_name = fullname.rpartition('.')[0]
if parent_name:
# Use builtins.__import__() in case someone replaced it.
try:
parent = __import__(parent_name, fromlist=['__path__']).__path__

except (AttributeError, ModuleNotFoundError):
# parent is not a package
return None
else:
parent = None
return _find_spec(fullname, parent)


in importlib.util.find_spec.

--
components: Library (Lib)
messages: 294209
nosy: tkhyn
priority: normal
severity: normal
status: open
title: importlib.find_spec raises AttributeError/ModuleNotFoundError when 
parent is not a package/module
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



[issue30376] Curses documentation refers to incorrect type

2017-05-22 Thread Kushal Das

Changes by Kushal Das :


--
pull_requests: +1835

___
Python tracker 

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



[issue30376] Curses documentation refers to incorrect type

2017-05-22 Thread Kushal Das

Changes by Kushal Das :


--
pull_requests: +1836

___
Python tracker 

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



[issue9883] minidom: AttributeError: DocumentFragment instance has no attribute 'writexml'

2017-05-22 Thread Alex Perry

Changes by Alex Perry :


--
pull_requests: +1834

___
Python tracker 

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



[issue30202] Update test.test_importlib.test_abc to test find_spec()

2017-05-22 Thread Sayan Chowdhury

Sayan Chowdhury added the comment:

I am picking up this issue.

--
nosy: +sayanchowdhury

___
Python tracker 

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



[issue30380] Sphinx 1.6.1 raising new warnings in docs build

2017-05-22 Thread Brett Cannon

Changes by Brett Cannon :


--
pull_requests: +1833

___
Python tracker 

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



[issue9883] minidom: AttributeError: DocumentFragment instance has no attribute 'writexml'

2017-05-22 Thread Mark Lawrence

Changes by Mark Lawrence :


--
nosy:  -BreamoreBoy

___
Python tracker 

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



[issue30376] Curses documentation refers to incorrect type

2017-05-22 Thread Kushal Das

Kushal Das added the comment:


New changeset 93fc20b73eea3da0b6305aaee951e5dd22d5c408 by Kushal Das (Berker 
Peksag) in branch 'master':
bpo-30376: Update outdated WindowObject references (#1630)
https://github.com/python/cpython/commit/93fc20b73eea3da0b6305aaee951e5dd22d5c408


--
nosy: +kushal.das

___
Python tracker 

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



[issue30427] isinstance checks in os.path.normcase redundant with os.fspath

2017-05-22 Thread Brett Cannon

Brett Cannon added the comment:

The problem with leaving os.fspath() out of os.path.normcase() is that suddenly 
a single function that deals with paths won't work with path-like objects. So 
that means support for path-like objects won't implicitly work in code that 
assumes a path but doesn't explicitly go out of its way to support path-like 
objects.

--

___
Python tracker 

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



[issue28340] [py2] TextIOWrapper.tell extremely slow

2017-05-22 Thread Rob Malouf

Changes by Rob Malouf :


--
pull_requests: +1832

___
Python tracker 

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



[issue27269] ipaddress: Wrong behavior with ::ffff:1.2.3.4 style IPs

2017-05-22 Thread Alex Perry

Changes by Alex Perry :


--
pull_requests: +1831

___
Python tracker 

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



[issue23894] lib2to3 doesn't recognize rb'...' and f'...' in Python 3.6

2017-05-22 Thread Łukasz Langa

Changes by Łukasz Langa :


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



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

2017-05-22 Thread Łukasz Langa

Changes by Łukasz Langa :


--
pull_requests: +1830

___
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-22 Thread Łukasz Langa

Łukasz Langa added the comment:


New changeset f82c951d1c5416f3550d544e50ff5662d3836e73 by Łukasz Langa (Jason 
Fried) in branch 'master':
bpo-30395 _PyGILState_Reinit deadlock fix (#1734)
https://github.com/python/cpython/commit/f82c951d1c5416f3550d544e50ff5662d3836e73


--
nosy: +lukasz.langa

___
Python tracker 

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



[issue29941] Confusion between asserts and Py_DEBUG

2017-05-22 Thread Thomas Wouters

Changes by Thomas Wouters :


--
pull_requests: +1829

___
Python tracker 

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



[issue30431] input function truncates prompt by NULL byte

2017-05-22 Thread Kushal Das

Changes by Kushal Das :


--
pull_requests: +1828

___
Python tracker 

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



[issue30405] build.bat: register binaries for py launcher

2017-05-22 Thread Steve Dower

Steve Dower added the comment:

My thinking was basically to use an algorithm like this:

if sys.argv[1].startswith('-'):
company, _, tag = sys.argv[1][1:].rpartition('\')
if company:
# look for Tag under Company
else:
# look for tag under PythonCore, then other companies

We'd need special handling for Python versions before 3.5 (because of the "-32" 
change), and possibly for the "-64" suffix as well. But in general, for unique 
tags you should only have to specify the tag, and the company is used to 
disambiguate/filter if desired.

SysVersion/SysArchitecture/Version are purely informational according to the 
PEP (and certainly by intent, if the wording happens to be unclear).

--

___
Python tracker 

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



[issue30435] Documentation either unclear or incorrect on comparisons between bytes and strings in Python 3

2017-05-22 Thread Mariatta Wijaya

Changes by Mariatta Wijaya :


--
versions: +Python 2.7, Python 3.5 -Python 3.3

___
Python tracker 

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



[issue23894] lib2to3 doesn't recognize rb'...' and f'...' in Python 3.6

2017-05-22 Thread Łukasz Langa

Changes by Łukasz Langa :


--
pull_requests: +1827

___
Python tracker 

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



[issue23894] lib2to3 doesn't recognize rb'...' and f'...' in Python 3.6

2017-05-22 Thread Łukasz Langa

Łukasz Langa added the comment:


New changeset 1b9530c536664276ce866ae602ce04adce0810e1 by Łukasz Langa in 
branch 'master':
bpo-23894: make lib2to3 recognize f-strings (#1733)
https://github.com/python/cpython/commit/1b9530c536664276ce866ae602ce04adce0810e1


--

___
Python tracker 

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



[issue23894] lib2to3 doesn't recognize rb'...' and f'...' in Python 3.6

2017-05-22 Thread Łukasz Langa

Łukasz Langa added the comment:


New changeset 1398b1bc7d80df5bde17041e7ec0a3bdbf54b19e by Łukasz Langa in 
branch '3.6':
[3.6] Make rb'' strings work in lib2to3 (GH-1724) (#1730)
https://github.com/python/cpython/commit/1398b1bc7d80df5bde17041e7ec0a3bdbf54b19e


--

___
Python tracker 

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



[issue30435] Documentation either unclear or incorrect on comparisons between bytes and strings in Python 3

2017-05-22 Thread Mariatta Wijaya

Changes by Mariatta Wijaya :


--
versions:  -Python 3.4, Python 3.5

___
Python tracker 

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



[issue30424] make pydoc-topics fails

2017-05-22 Thread Naomi Ceder

Naomi Ceder added the comment:

This issue is related to the version of sphinx. When I tested with sphinx 1.3.6 
it worked fine, but with sphinx 1.6.2 I did get the error.

--
nosy: +NaomiCeder

___
Python tracker 

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



[issue30435] Documentation either unclear or incorrect on comparisons between bytes and strings in Python 3

2017-05-22 Thread ipatrol

New submission from ipatrol:

https://docs.python.org/3/reference/expressions.html#comparisons says that 
"Strings and binary sequences cannot be directly compared." That would seem to 
me to imply that an equality between them would raise an exception, as also 
claimed by https://wiki.python.org/moin/BytesStr

However, that is manifestly incorrect. Bytes and strings can be compared: they 
are always unequal. This appears to be a result of the operation falling 
through to the default comparison, which returns False since they are not 
identical objects. Equality is a comparison, though it is not an order 
comparison. A brief search of the word "cannot" in the documentation suggest 
that saying a certain thing cannot be done usually implies that attempting to 
do so anyway will raise an exception, typically a TypeError. That this is not 
the case for string-bytes comparisons should be mentioned.

--
assignee: docs@python
components: Documentation
messages: 294200
nosy: docs@python, ipatrol
priority: normal
severity: normal
status: open
title: Documentation either unclear or incorrect on comparisons between bytes 
and strings in Python 3
type: behavior
versions: Python 3.3, Python 3.4, 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



[issue30274] Make importlib.abc.ExtensionFileLoader.__init__() documentation match code

2017-05-22 Thread Sayan Chowdhury

Changes by Sayan Chowdhury :


--
pull_requests: +1826

___
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-22 Thread Jason Fried

Changes by Jason Fried :


--
pull_requests: +1825

___
Python tracker 

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



[issue23894] lib2to3 doesn't recognize rb'...' and f'...' in Python 3.6

2017-05-22 Thread Łukasz Langa

Changes by Łukasz Langa :


--
pull_requests: +1824

___
Python tracker 

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



[issue30432] FileInput doesn't accept PathLike objects for file names

2017-05-22 Thread Roy Williams

Roy Williams added the comment:

@arp11 sorry for the too-minimal repro :D - the issue is with FileInput 
attempting to cast `files` to a tuple.  Instead, if passed a PathLike object 
FileInput should set `files` to a tuple just as it does with a str.

--

___
Python tracker 

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



[issue30432] FileInput doesn't accept PathLike objects for file names

2017-05-22 Thread Roy Williams

Changes by Roy Williams :


--
pull_requests: +1822

___
Python tracker 

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



[issue27269] ipaddress: Wrong behavior with ::ffff:1.2.3.4 style IPs

2017-05-22 Thread Alex Perry

Alex Perry added the comment:

https://github.com/python/cpython/commit/5cc274262a99e5633177fc540261abbbecbbc51c

... seems to implement the principle in this bug, but I'm not convinced this is 
a good idea.

--
nosy: +arp11

___
Python tracker 

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



[issue29941] Confusion between asserts and Py_DEBUG

2017-05-22 Thread Thomas Wouters

Changes by Thomas Wouters :


--
pull_requests: +1821

___
Python tracker 

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



[issue23894] lib2to3 doesn't recognize rb'...' and f'...' in Python 3.6

2017-05-22 Thread Łukasz Langa

Changes by Łukasz Langa :


--
pull_requests: +1820

___
Python tracker 

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



[issue30405] build.bat: register binaries for py launcher

2017-05-22 Thread Eryk Sun

Eryk Sun added the comment:

Supporting PEP 514 tags is an interesting idea, but maybe you could go into 
more detail about what you have in mind. Are you thinking of using the 
SysVersion, SysArchitecture, and [Windowed]ExecutablePath fields where 
available instead of parsing version tags and assuming "python[w]/exe"? How 
would the expansion of candidate installations affect virtual "python" shebangs 
and command-line arguments such as -3.6-32? If there are several 32-bit 3.6 
installations, which one wins?

The PY_PYTHON environment variable could support qualified tags such as 
"PythonDev/3.6-32". However, arbitrarily named tags can't be supported on the 
command line without introducing an option reserved for the launcher. It could 
look for an `X PY_PYTHON` option such as `py -X PY_PYTHON=PythonDev/3.6-32`. 
That's a bit verbose, but simpler than `cmd /c "set PY_PYTHON=PythonDev/3.6-32 
& py`.

--

___
Python tracker 

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



[issue22257] PEP 432: Redesign the interpreter startup sequence

2017-05-22 Thread Eric Snow

Changes by Eric Snow :


--
pull_requests: +1819

___
Python tracker 

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



[issue23894] lib2to3 doesn't recognize rb'...' and f'...' in Python 3.6

2017-05-22 Thread Łukasz Langa

Łukasz Langa added the comment:


New changeset 0c4aca54dcf0c54f299c78aa71fe8f48ff04f9d9 by Łukasz Langa in 
branch 'master':
Make rb'' strings work in lib2to3 (#1724)
https://github.com/python/cpython/commit/0c4aca54dcf0c54f299c78aa71fe8f48ff04f9d9


--

___
Python tracker 

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



[issue22257] PEP 432: Redesign the interpreter startup sequence

2017-05-22 Thread Eric Snow

Changes by Eric Snow :


--
pull_requests: +1818

___
Python tracker 

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



[issue24658] open().write() fails on 2 GB+ data (OS X)

2017-05-22 Thread STINNER Victor

STINNER Victor added the comment:

I don't say that something is broken. Just that it would be nice if someone
could test socket methods.

On Windows, the bug was obvious: the function takes a C int...

--

___
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-22 Thread Ned Deily

Ned Deily added the comment:

We should check whether the osascript regression is fixed in the most recent 
10.12.6 Developer Preview and, if not, open a RADAR (Apple bug report).

--

___
Python tracker 

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



[issue24899] Add an os.path <=> pathlib equivalence table in pathlib docs

2017-05-22 Thread Jamiel Almeida

Jamiel Almeida added the comment:

I'm picking this up.

--
nosy: +slashfoo
versions: +Python 3.7 -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



[issue30274] Make importlib.abc.ExtensionFileLoader.__init__() documentation match code

2017-05-22 Thread Sayan Chowdhury

Sayan Chowdhury added the comment:

I am starting to work on this issue.

--
nosy: +sayanchowdhury

___
Python tracker 

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



[issue30394] smtplib leaves open sockets around if SMTPConnectError is raised in __init__

2017-05-22 Thread R. David Murray

R. David Murray added the comment:

It would be a white-box test, which I don't like, but it might be worth it to 
write a test that would check that .sock is None, indicating that 
close was called.  You really can't check for no warning because when the 
warning gets generated is effectively asynchronous.

--
nosy: +r.david.murray

___
Python tracker 

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



[issue30434] multiprocessing AuthenticationError "digest sent was rejected"

2017-05-22 Thread Alex Perry

Alex Perry added the comment:

The docstring for the class points out that the `multiprocessing.Manager()` 
function creates started instances of the SyncManager class. You should 
probably follow that advice, it calls start() for you.

--
nosy: +arp11

___
Python tracker 

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



[issue30372] Status of __builtins__ is not totally clear

2017-05-22 Thread Mariatta Wijaya

Mariatta Wijaya added the comment:

PR merged, and I backport it to 3.6

Thanks everyone :)

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



[issue30372] Status of __builtins__ is not totally clear

2017-05-22 Thread Mariatta Wijaya

Mariatta Wijaya added the comment:


New changeset 3d3b189f8ef321ccfb144a46d50892939d6004aa by Mariatta in branch 
'3.6':
[3.6] bpo-30372: Clarify that '__builtins__' is a CPython Implementation detail 
(GH-1725) (GH-1727)
https://github.com/python/cpython/commit/3d3b189f8ef321ccfb144a46d50892939d6004aa


--

___
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-22 Thread Mariatta Wijaya

Mariatta Wijaya added the comment:

Thanks Stéphane!

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



[issue30392] default webbrowser fails on macOS Sierra 10.12.5

2017-05-22 Thread Dariusz Smigiel

Dariusz Smigiel added the comment:

Rudi, Andrew I missed your replaces.
This, indeed, looks like osascript bug. I don't think it's backward 
incompatible change, especially between 10.12.4 and 10.12.5 which would 
completely broke default behavior.

--

___
Python tracker 

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



[issue30372] Status of __builtins__ is not totally clear

2017-05-22 Thread Mariatta Wijaya

Changes by Mariatta Wijaya :


--
pull_requests: +1817

___
Python tracker 

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



[issue30432] FileInput doesn't accept PathLike objects for file names

2017-05-22 Thread Alex Perry

Alex Perry added the comment:

You seem to be skipping a step, this is nothing to do with FileInput:

>>> [n for n in Path('.')]
Traceback (most recent call last):
  File "", line 1, in 
TypeError: 'PosixPath' object is not iterable

>>> [n for n in Path('.').iterdir()]
[PosixPath('build'), PosixPath('install-sh'), ...]

Are you proposing a feature that the Path instance should be implicitly 
iterable for the directory contents?

--
nosy: +arp11

___
Python tracker 

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



[issue21074] Too aggressive constant folding

2017-05-22 Thread Andrew Dalke

Andrew Dalke added the comment:

I do not think quoting the Zen of Python helps anything. As I wrote, "it gives 
different answers depending on where one draws the line." This includes 
"practicality beats purity".

>From my viewpoint, the peephole optimizer isn't going to change because the 
>core developers prioritize the purity of not adding special cases over the 
>practicality of supporting reasonable real-world code. Or the purity of the 
>long-awaited AST optimizer over the practicality of changing the existing, 
>fragile peephole optimizer.

I also appreciate the viewpoint that the practicality of a maintainable 
peephole optimizer beats the impossible purity of trying to support all use 
cases gracefully. My line, of course, only wants it to handle my use case, 
which is the issue reported here.

My goal from this is not to re-open the topic. It is to provide a 
counter-balance to opinions expressed here that place all blame onto the 
programmer whose 'folly' lead to 'arcane' and 'insane' code. (The 'insane' is 
used at http://bugs.python.org/issue30293#msg293172 as "Burdening the optimizer 
with insanity checks just slows down the compilation of normal, sane code.")

The use case pulled from my project, which is very near to the original report 
by INADA Naoki, seems entirely sane and not at all arcane. How else might one 
test 64-bit addressing than by constructing values which are over 4GB in 
length? Indeed, Python itself has similar test code. Quoting 
Lib/test/test_zlib.py:


# Issue #10276 - check that inputs >=4GB are handled correctly.
class ChecksumBigBufferTestCase(unittest.TestCase):

@bigmemtest(size=_4G + 4, memuse=1, dry_run=False)
def test_big_buffer(self, size):
data = b"nyan" * (_1G + 1)
self.assertEqual(zlib.crc32(data), 1044521549)
self.assertEqual(zlib.adler32(data), 2256789997)


Is the difference between happiness and "folly" really the difference between 
writing "_1G" and "2**30"? If so, how are people supposed to learn the true 
path? Is that not exactly the definition of 'arcane'?

The Code of Conduct which governs comments here requests that we be considerate 
and respective. Terms like 'folly' and 'arcane', at least for what I think is 
an entirely reasonable use case, seems to run counter to that spirit.

--

___
Python tracker 

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



[issue30372] Status of __builtins__ is not totally clear

2017-05-22 Thread Mariatta Wijaya

Mariatta Wijaya added the comment:


New changeset 43c8a9e39bb2d4f25ed7ae17a55f34e375d1868b by Mariatta (Naomi 
Ceder) in branch 'master':
bpo-30372: Clarify that '__builtins__' is a CPython Implementation detail 
(GH-1725)
https://github.com/python/cpython/commit/43c8a9e39bb2d4f25ed7ae17a55f34e375d1868b


--
nosy: +Mariatta

___
Python tracker 

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



[issue30372] Status of __builtins__ is not totally clear

2017-05-22 Thread Mariatta Wijaya

Changes by Mariatta Wijaya :


--
stage: needs patch -> patch review
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



[issue30416] constant folding opens compiler to quadratic time hashing

2017-05-22 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Proposed patch makes const folding more safe by checking arguments before doing 
expensive calculation that can create large object (multiplication, power and 
left shift). It fixes examples in this issue, issue21074, issue30293. The limit 
for repetition is increase from 20 to 256. There are no limits for 
addition/concatenation and like, since it is hard to create really large 
objects with these operations.

--
keywords: +patch
stage:  -> patch review
type:  -> behavior
versions:  -Python 2.7, Python 3.3, Python 3.4, Python 3.5, Python 3.6
Added file: http://bugs.python.org/file46887/safe-const-folding.diff

___
Python tracker 

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



[issue30372] Status of __builtins__ is not totally clear

2017-05-22 Thread Naomi Ceder

Naomi Ceder added the comment:

Created a PR on this... it seems that making the Implementation Detail warning 
come first and deleting the limited execution sentence achieves what's needed 
here.

--
nosy: +NaomiCeder

___
Python tracker 

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



[issue9883] minidom: AttributeError: DocumentFragment instance has no attribute 'writexml'

2017-05-22 Thread Alex Perry

Changes by Alex Perry :


--
pull_requests: +1814

___
Python tracker 

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



[issue30372] Status of __builtins__ is not totally clear

2017-05-22 Thread Naomi Ceder

Changes by Naomi Ceder :


--
pull_requests: +1813

___
Python tracker 

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



[issue30431] input function truncates prompt by NULL byte

2017-05-22 Thread Eryk Sun

Eryk Sun added the comment:

PyOS_Readline uses a null-terminated prompt string. So input() needs to raise a 
ValueError if the prompt contains null characters, e.g. if PyBytes_GET_SIZE(po) 
!= strlen(promptstr).

--
nosy: +eryksun

___
Python tracker 

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



[issue30434] multiprocessing AuthenticationError "digest sent was rejected"

2017-05-22 Thread Soon Jeffrey

New submission from Soon Jeffrey:

This is codes I run:

class TopicManager(SyncManager):
pass

Server side:
m = TopicManager(address=('', 5), authkey='12345')
s = m.get_server()
s.serve_forever()

client side:
m = TopicManager(address=('eng-g9-018', 5), authkey='12345')
m.connect()

When I use Python2.7.5, m.connect() can connect to server.
But when I use Python2.7.13, m.connect() throws out AuthenticationError "digest 
sent was rejected"

Searched and multiprocessing.current_process().authkey = "12345" doesn't   help.

--
messages: 294178
nosy: Soon Jeffrey
priority: normal
severity: normal
status: open
title: multiprocessing AuthenticationError "digest sent was rejected"
type: behavior
versions: Python 2.7

___
Python tracker 

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



[issue30392] default webbrowser fails on macOS Sierra 10.12.5

2017-05-22 Thread Dariusz Smigiel

Dariusz Smigiel added the comment:

The same applies for latest build: 
Python 3.7.0a0 (heads/master:128641d17e, May 22 2017, 09:40:08)
[GCC 4.2.1 Compatible Apple LLVM 8.1.0 (clang-802.0.42)] on darwin

I can try to work on that.

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



[issue30392] default webbrowser fails on macOS Sierra 10.12.5

2017-05-22 Thread Alan Pierce

Changes by Alan Pierce :


--
nosy: +alangpierce

___
Python tracker 

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



[issue30431] input function truncates prompt by NULL byte

2017-05-22 Thread Kushal Das

Kushal Das added the comment:

I am picking this up.

--
assignee:  -> kushal.das

___
Python tracker 

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



[issue17942] IDLE Debugger: Improve GUI

2017-05-22 Thread Mark Roseman

Mark Roseman added the comment:

Please go ahead with any of the patches I submitted earlier, credit is 
absolutely not an issue.

--

___
Python tracker 

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



[issue20210] Provide configure options to enable/disable Python modules and extensions

2017-05-22 Thread Thomas Wouters

Thomas Wouters added the comment:

This feature would also be nice to have for Python at Google: we want builds to 
be as reproducible as possible, avoid third-party libraries even when they are 
available on the build system, and avoid certain extension modules in any form. 
We currently delete them after building, but suppressing their builds makes 
much more sense.

--
nosy: +twouters

___
Python tracker 

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



[issue11470] Flag inappropriate uses of callable class attributes

2017-05-22 Thread Thomas Wouters

Changes by Thomas Wouters :


--
resolution:  -> out of date
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



[issue17411] Build failures with non-NDEBUG, non-Py_DEBUG builds.

2017-05-22 Thread Thomas Wouters

Changes by Thomas Wouters :


--
resolution:  -> out of date

___
Python tracker 

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



[issue17411] Build failures with non-NDEBUG, non-Py_DEBUG builds.

2017-05-22 Thread Thomas Wouters

Changes by Thomas Wouters :


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



[issue11410] Use GCC visibility attrs in PyAPI_*

2017-05-22 Thread Thomas Wouters

Changes by Thomas Wouters :


--
resolution:  -> out of date
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



[issue30433] Devguide lacks instructions for building docs

2017-05-22 Thread Caleb Hattingh

Caleb Hattingh added the comment:

Oops, sorry!  The PR was wrong because it auto-assumes the main cpython repo, 
but my PR is in the devguide repo. This is the URL for the PR:

https://github.com/python/devguide/pull/206

--

___
Python tracker 

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



[issue30433] Devguide lacks instructions for building docs

2017-05-22 Thread Caleb Hattingh

Changes by Caleb Hattingh :


--
pull_requests:  -1812

___
Python tracker 

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



  1   2   >