[issue26149] Suggest PyCharm Community as an editor for Unix platforms

2016-10-03 Thread Mariatta Wijaya

Mariatta Wijaya added the comment:

Thanks for the feedback, Berker.
I updated the patch as suggested.

--
Added file: http://bugs.python.org/file44949/issue26149.patch

___
Python tracker 

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




[issue28288] Expose environment variable for Py_Py3kWarningFlag

2016-10-03 Thread Berker Peksag

Berker Peksag added the comment:

Thanks for the new patch.

> I've uploaded the new patchset here.

We don't directly upload patches to Rietveld so you did the right thing :) See 
https://docs.python.org/devguide/patch.html for details.

Can you also add a note about this new variable to Doc/howto/pyporting.rst?

--

___
Python tracker 

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



[issue28318] Python unittest.mock.mock_calls stores references to arguments instead of their values

2016-10-03 Thread Vedran Čačić

Vedran Čačić added the comment:

> # passes, even though we didn't make the exact same call twice!

Weird. It looks like a matter of perspective, but to me it surely _does_ seem 
like you _did_ make the exact same call twice.

> test_function(arg)
> test_function(arg)

Neither test_function nor arg were rebound in the meantime. (If there's a 
"bug", it's a subtle thing that += seems like rebinding, and in fact it does 
rebind immutable objects. But that's off topic here.)

[*Also, it could be argued that assert_has_calls should compare the arguments 
with `is` instead of `==`, but that would probably break too many things.]

But let's try to be constructive. IIRC, unittest was modelled after Java's 
analogous library. Can someone check how Java solves this? I'm pretty sure it 
has the same "problem" (when arguments are objects), but maybe it keeps the 
reference semantics totally as conjectured in the previous paragraph.

--
nosy: +veky

___
Python tracker 

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



[issue26149] Suggest PyCharm Community as an editor for Unix platforms

2016-10-03 Thread Mariatta Wijaya

Mariatta Wijaya added the comment:

ping :)

--

___
Python tracker 

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



[issue28348] Doc typo in asyncio.Task

2016-10-03 Thread Mariatta Wijaya

Mariatta Wijaya added the comment:

fixed the typo as reported.

--
keywords: +patch
Added file: http://bugs.python.org/file44948/issue28348.patch

___
Python tracker 

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



[issue19398] test_trace fails with -S

2016-10-03 Thread Tim Smith

Changes by Tim Smith :


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



[issue28352] winfo_pathname(..) | window id "xyz" doesn't exist in this application. | Python 3.4.4

2016-10-03 Thread Zachary Ware

Zachary Ware added the comment:

Can you provide a minimal example to reproduce the issue with Python 3.5.2 or 
3.6b1 (3.4 is no longer receiving bug fixes)?  Also, what OS are you on, and if 
not Windows, what version of Tcl/Tk are you using?

--
nosy: +zach.ware

___
Python tracker 

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



[issue28352] winfo_pathname(..) | window id "xyz" doesn't exist in this application. | Python 3.4.4

2016-10-03 Thread Tyler Sweeden

New submission from Tyler Sweeden:

This issue presents itself in 3.4.4.. Reverted back to 3.4.1 and the issue was 
gone.

--
components: Tkinter
messages: 278004
nosy: Tyler Sweeden
priority: normal
severity: normal
status: open
title: winfo_pathname(..) | window id "xyz" doesn't exist in this application. 
| Python 3.4.4
versions: Python 3.4

___
Python tracker 

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



[issue24712] Docs page's sidebar vibrates on mouse wheel scroll on Chrome.

2016-10-03 Thread karl

karl added the comment:

@ezio.melotti 
What is the next step for getting the patch accepted.

--
nosy: +karlcow

___
Python tracker 

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



[issue28338] test_pdb doctests have been removed from its test suite

2016-10-03 Thread Łukasz Langa

Łukasz Langa added the comment:

Uh oh. Sorry for the mess! If this is any consolation, that was in the heat of 
the sprint. Thank you for cleaning it up.

--

___
Python tracker 

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



[issue26240] Docstring of the subprocess module should be cleaned up

2016-10-03 Thread Mariatta Wijaya

Changes by Mariatta Wijaya :


--
nosy: +Mariatta

___
Python tracker 

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



[issue28342] OSX 10.12 crash in urllib.request getproxies_macosx_sysconf and proxy_bypass_macosx_sysconf

2016-10-03 Thread Alexander Mohr

Alexander Mohr added the comment:

I'm sure it would work, I just wanted a solution that didn't changes to our 
build infrastructure. btw if we're marking this as a duplicate of the other 
bug, can we update the other bug to say it affects python3.x as well?  Thanks!

--
status: pending -> open

___
Python tracker 

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



[issue28130] Document that time.tzset updates time module globals

2016-10-03 Thread Mariatta Wijaya

Changes by Mariatta Wijaya :


--
nosy: +Mariatta

___
Python tracker 

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



[issue11698] Improve repr for structseq objects to show named, but unindexed fields

2016-10-03 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



[issue28288] Expose environment variable for Py_Py3kWarningFlag

2016-10-03 Thread Roy Williams

Roy Williams added the comment:

Thanks for the feedback Berker.  I addressed your feedback, but unfortunately I 
get a 500 from Rietveld when I try to attach a new patchset.  I've uploaded the 
new patchset here.

--

___
Python tracker 

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



[issue28288] Expose environment variable for Py_Py3kWarningFlag

2016-10-03 Thread Roy Williams

Changes by Roy Williams :


Added file: http://bugs.python.org/file44947/pythonenable3kwarningsflag.patch

___
Python tracker 

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



[issue28111] geometric_mean can raise OverflowError for large input length

2016-10-03 Thread Mark Dickinson

Mark Dickinson added the comment:

Whoops; that patch was incomplete (it was missing the change to the 
geometric_mean function itself). Here's an updated patch.

--
Added file: http://bugs.python.org/file44946/geometric_mean_long_input_v2.py

___
Python tracker 

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



[issue28259] Ctypes bug windows

2016-10-03 Thread Eryk Sun

Eryk Sun added the comment:

If you want a resolution to this issue, then you need to provide a minimal 
example that reproduces the problem. It would also be helpful if you could 
provide a download link for the library that you're wrapping. If not, at least 
upload a dump file, preferably from 3.5 since 3.4 is no longer actively 
maintained.

--
versions:  -Python 3.5

___
Python tracker 

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



[issue28351] statistics.geometric_mean can enter infinite loop for Decimal inputs

2016-10-03 Thread Mark Dickinson

Changes by Mark Dickinson :


--
title: statistics.geometric_mean enters infinite loop for Decimal inputs -> 
statistics.geometric_mean can enter infinite loop for Decimal inputs

___
Python tracker 

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



[issue28350] Interning string constants with null character

2016-10-03 Thread STINNER Victor

STINNER Victor added the comment:

all_name_chars.patch LGTM.

--
nosy: +haypo

___
Python tracker 

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



[issue28328] statistics.geometric_mean has no tests. Defer to 3.7?

2016-10-03 Thread Mark Dickinson

Mark Dickinson added the comment:

One more geometric_mean issue (the current code can enter an infinite loop for 
Decimal inputs): #28351.

Steve, I really think we should postpone to 3.7. I'm very happy to help out 
with all the necessary fixes, tests and review, but I'm not going to have time 
for that before 3.6b2. If we defer, that takes the pressure off a bit and lets 
us get a good solid implementation in for 3.7.

--

___
Python tracker 

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



[issue28351] statistics.geometric_mean enters infinite loop for Decimal inputs

2016-10-03 Thread Mark Dickinson

New submission from Mark Dickinson:

On my machine, the following code enters an infinite loop:

Python 3.7.0a0 (default:14c52bb996be, Oct  3 2016, 20:20:58) 
[GCC 4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from statistics import geometric_mean
>>> from decimal import Decimal
>>> x = [0.5636536271446626, 0.7185039116960741, 0.5265438727361142]
>>> geometric_mean(map(Decimal, x))

The nth_root implementation for Decimals does a repeated Newton iteration until 
convergence, with convergence being defined as the current iteration value 
being exactly equal to the last one. It's very easy for the iteration to end up 
alternating between two (or more) nearby values, and that's what happens above. 
This isn't a rare corner case: if you generate triples of random floats, 
convert to Decimal and apply geometric mean, you'll hit something like the 
above within just a few trials.

I don't think there's any need for an iteration here: I'd suggest simply 
computing the nth root directly after increasing the Decimal context precision 
by a suitable amount. If we do use Newton iteration, it should likely restrict 
itself to doing a single polishing step, as in the issue #28111 fix and #27181 
discussion.

--
messages: 277995
nosy: mark.dickinson
priority: normal
severity: normal
status: open
title: statistics.geometric_mean enters infinite loop for Decimal inputs
type: behavior
versions: 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



[issue28350] Interning string constants with null character

2016-10-03 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

Currently string constants are interned if they consist of ASCII word 
characters ([0-9A-Za-z_]). But strings are tested only to the first null 
character. This is not problem for names, since they can't include null 
characters, but string constants that contains ASCII non-word characters after 
the null character passes this test.

Proposed simple patch fixes the testing function all_name_chars().

Other question: shouldn't PyUnicode_IsIdentifier() be used in 3.x?

--
components: Interpreter Core
files: all_name_chars.patch
keywords: patch
messages: 277994
nosy: benjamin.peterson, brett.cannon, georg.brandl, ncoghlan, rhettinger, 
serhiy.storchaka, yselivanov
priority: normal
severity: normal
stage: patch review
status: open
title: Interning string constants with null character
type: behavior
versions: Python 2.7, Python 3.5, Python 3.6, Python 3.7
Added file: http://bugs.python.org/file44945/all_name_chars.patch

___
Python tracker 

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



[issue28111] geometric_mean can raise OverflowError for large input length

2016-10-03 Thread Mark Dickinson

Mark Dickinson added the comment:

And here's the actual patch. :-)

--
Added file: http://bugs.python.org/file44944/geometric_mean_long_input.py

___
Python tracker 

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



[issue28111] geometric_mean can raise OverflowError for large input length

2016-10-03 Thread Mark Dickinson

Changes by Mark Dickinson :


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



[issue28111] geometric_mean can raise OverflowError for large input length

2016-10-03 Thread Mark Dickinson

Mark Dickinson added the comment:

The attached patch provides a fix, and is based partly on Tim Peters' 
suggestions and code from the issue 27761 discussion. It needs tests. For 
convenience, it includes the fix for #28327, since it needs the `_frexp_gen` 
function added there.

--

___
Python tracker 

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



[issue28335] Exception reporting in `logging.config`

2016-10-03 Thread Ram Rachum

Ram Rachum added the comment:

Thanks for the quick fix Vinay!

--

___
Python tracker 

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



[issue28259] Ctypes bug windows

2016-10-03 Thread Aristotel

Aristotel added the comment:

CDLL. I didn't test it on Python 3.5.2, 3.3 - 3.4 only. And btw my OS is 
windows 7. Lib is also used by some apps (not Python apps) and there this 
function works well.

--

___
Python tracker 

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



[issue28335] Exception reporting in `logging.config`

2016-10-03 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 8c005be54305 by Vinay Sajip in branch 'default':
Issue #28335: made minor improvement to implementation.
https://hg.python.org/cpython/rev/8c005be54305

--

___
Python tracker 

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



[issue2897] Deprecate structmember.h

2016-10-03 Thread Alexander Belopolsky

Alexander Belopolsky added the comment:

Changed the title to reflect the way forward and added affected versions to 
remember to update the documentation.  See #28349 and #24065 for details.

--
assignee:  -> docs@python
components: +Documentation
nosy: +docs@python
title: include structmember.h in Python.h -> Deprecate structmember.h
versions: +Python 2.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



[issue28335] Exception reporting in `logging.config`

2016-10-03 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 69bf09bf4952 by Vinay Sajip in branch 'default':
Closes #28335: used 'raise from' in logging configuration code.
https://hg.python.org/cpython/rev/69bf09bf4952

--
nosy: +python-dev
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



[issue2897] include structmember.h in Python.h

2016-10-03 Thread Alexander Belopolsky

Changes by Alexander Belopolsky :


--
dependencies: +Issues with PyMemberDef flags, Outdated *_RESTRICTED flags in 
structmember.h

___
Python tracker 

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



[issue2897] include structmember.h in Python.h

2016-10-03 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

And please don't miss to fix the documentation in 2.7 and 3.5-3.6.

--

___
Python tracker 

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



[issue2897] include structmember.h in Python.h

2016-10-03 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

PY_T_PY_SSIZE_T is not much readable than PY_T_PYSSIZET. I think it can be just 
PY_T_SSIZE.

--

___
Python tracker 

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



[issue24065] Outdated *_RESTRICTED flags in structmember.h

2016-10-03 Thread Alexander Belopolsky

Alexander Belopolsky added the comment:

See #2897 for a plan to deperecate Include/structmember.h.

--
nosy: +belopolsky
resolution:  -> duplicate
status: open -> closed
superseder:  -> include structmember.h in Python.h

___
Python tracker 

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



[issue28349] Issues with PyMemberDef flags

2016-10-03 Thread Alexander Belopolsky

Alexander Belopolsky added the comment:

There is also #24065 ("Outdated *_RESTRICTED flags in structmember.h") which I 
think should be folded into #2897.

--

___
Python tracker 

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



[issue28349] Issues with PyMemberDef flags

2016-10-03 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Ah this is a duplicate of issue24065!

--
resolution:  -> duplicate
stage: needs patch -> resolved
status: open -> closed
superseder: include structmember.h in Python.h -> Outdated *_RESTRICTED flags 
in structmember.h

___
Python tracker 

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



[issue2897] include structmember.h in Python.h

2016-10-03 Thread Alexander Belopolsky

Alexander Belopolsky added the comment:

As explained in #24065, READ_RESTRICTED, PY_WRITE_RESTRICTED and RESTRICTED 
flags were used for "restricted mode" in Python 2. I don't think we would want 
to preserve these as we move the rest to object.h.

--

___
Python tracker 

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



[issue28349] Issues with PyMemberDef flags

2016-10-03 Thread Alexander Belopolsky

Alexander Belopolsky added the comment:

Serhiy, while I see that you've raised some additional issues here, let's keep 
the discussion related to Include/structmember.h in one place.  I would not 
mind adding additional affected versions there.

--
nosy: +belopolsky

___
Python tracker 

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



[issue28335] Exception reporting in `logging.config`

2016-10-03 Thread Vinay Sajip

Vinay Sajip added the comment:

Patch as posted will not work (contains a syntax error), and was thus never 
tested. Never mind, I will address this soon.

--
assignee:  -> vinay.sajip

___
Python tracker 

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



[issue28349] Issues with PyMemberDef flags

2016-10-03 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

We still should correct the documentation in 2.7 and 3.x.

--
resolution: duplicate -> 
stage: resolved -> needs patch
status: closed -> open

___
Python tracker 

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



[issue2897] include structmember.h in Python.h

2016-10-03 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Please don't forget to use "hg copy" for creating object.h from structmember.h. 
This preserves the history.

structmember.h should be implemented using object.h. Include object.h and add 
aliases.

Only READONLY flag is used in 3.x (issue28349). Other flags can be removed.

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue28349] Issues with PyMemberDef flags

2016-10-03 Thread Alexander Belopolsky

Changes by Alexander Belopolsky :


--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> include structmember.h in Python.h

___
Python tracker 

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



[issue28318] Python unittest.mock.mock_calls stores references to arguments instead of their values

2016-10-03 Thread Guillaume Chorn

Guillaume Chorn added the comment:

If it's true that our ability to accurately deep-copy mutable args makes fixing 
this behavior impossible, we should at the very least update the official 
unittest.mock documentation to warn users that testing for mock calls with 
mutable arguments is not reliable; i.e. make it clear that we're storing a 
reference to the arguments and not just the values. If it's not a bug, it's 
certainly a limitation that deserves as much mention as possible.

--

___
Python tracker 

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



[issue2897] include structmember.h in Python.h

2016-10-03 Thread Alexander Belopolsky

Alexander Belopolsky added the comment:

I would also like this opportunity to rename T_PYSSIZET to something more 
readable: maybe PY_T_PY_SSIZE_T or PY_T_SSIZE_T.

--

___
Python tracker 

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



[issue28349] Issues with PyMemberDef flags

2016-10-03 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

The latter issue is a duplicate of issue2897.

--

___
Python tracker 

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



[issue28349] Issues with PyMemberDef flags

2016-10-03 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

As documented in Doc/extending/newtypes.rst, the flags field of PyMemberDef 
must be bitwise-or-ed combination of flag constants READONLY, READ_RESTRICTED, 
WRITE_RESTRICTED and RESTRICTED. There are problems with this:

1. Actually WRITE_RESTRICTED was renamed to PY_WRITE_RESTRICTED in 2.6 
(a8dd8874ff2d). I didn't find mention of this backward incompatible change in 
Misc/NEWS and whatsnew files.

2. Since the support of restricted mode was removed in 3.x, only READONLY flag 
has effect. Other flags are still documented and used in CPython sources. I 
think we should get rid of using these flags and undocument them or document as 
outdated.

3. As noted by Skip Montanaro on the Python-Dev mailing list, these flags (as 
well as T_* type tags in Include/structmember.h) should have the PY_ prefix.

--
assignee: docs@python
components: Documentation
messages: 277972
nosy: christian.heimes, docs@python, serhiy.storchaka, skip.montanaro
priority: normal
severity: normal
status: open
title: Issues with PyMemberDef flags
versions: Python 2.7, 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



[issue2897] include structmember.h in Python.h

2016-10-03 Thread Alexander Belopolsky

Alexander Belopolsky added the comment:

I am attaching a patch that implements steps 1 and 2 of Martin's plan.  There 
are over 50 files that include structmember.h. I am not sure it is worth the 
trouble to update all those files before structmember.h is actually removed.  
If we agree that this is the right way forward, I'll make the necessary changes 
to the docs.

--
keywords: +patch
Added file: http://bugs.python.org/file44943/issue2897.diff

___
Python tracker 

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



[issue11702] dir on return value of msilib.OpenDatabase() crashes python

2016-10-03 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



[issue28342] OSX 10.12 crash in urllib.request getproxies_macosx_sysconf and proxy_bypass_macosx_sysconf

2016-10-03 Thread Ned Deily

Ned Deily added the comment:

Glad you have it working.  Did you try the suggested workaround of setting 
environment variable "no_proxy" to "*"?  I believe that should have had the 
same net effect as the monkey patching.

--
status: open -> pending

___
Python tracker 

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



[issue20491] textwrap: Non-breaking space not honored

2016-10-03 Thread Johannes Bauer

Johannes Bauer added the comment:

Hey there,

wanted to follow up on the state of this... is there a reason why this has not 
made it into vanilla yet? If so, I'd like to try to help out clear impediments 
if I can.

This issue is *really*, really, really annoying me. I've posted about a year 
ago on python-list (http://code.activestate.com/lists/python-list/685604/) and 
was referred to this bug and thought I'd wait it out. But now the last change 
was 2 years ago and no relief in sight.

So if nothing else, please take it as a gentle reassurance that this bug is 
really affecting real-world scenarios and annoying as hell. Especially since 
the semantic of a non-breaking space is pretty much exactly to *not* break on 
text wrapping.

If there's anything I can contribute to get things going again, by all means 
please let me know. All hands on deck!

Cheers,
Johannes

--
nosy: +joebauer

___
Python tracker 

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



[issue2897] include structmember.h in Python.h

2016-10-03 Thread Alexander Belopolsky

Changes by Alexander Belopolsky :


--
nosy: +skip.montanaro
versions: +Python 3.7 -Python 3.4

___
Python tracker 

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



[issue28342] OSX 10.12 crash in urllib.request getproxies_macosx_sysconf and proxy_bypass_macosx_sysconf

2016-10-03 Thread Alexander Mohr

Alexander Mohr added the comment:

ya I did a monkey patch which resolved it.

if sys.platform == 'darwin':
import botocore.vendored.requests.utils, urllib.request
botocore.vendored.requests.utils.proxy_bypass = 
urllib.request.proxy_bypass_environment
botocore.vendored.requests.utils.getproxies = 
urllib.request.getproxies_environment

urllib.request.proxy_bypass = urllib.request.proxy_bypass_environment
urllib.request.getproxies = urllib.request.getproxies_environment

--
status: pending -> open

___
Python tracker 

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



[issue28128] Improve the warning message for invalid escape sequences

2016-10-03 Thread Nick Coghlan

Nick Coghlan added the comment:

Eric's basic approach sounds fine to me, as it gets the traceback in the right 
place (i.e. blaming the code being compiled, not the code doing the import).

For beta 2, how about we just go with a plain SyntaxWarning? Since users 
running pre-compiled modules won't see it regardless, so it will be effectively 
silenced by default for end users of pre-built Python applications.

--

___
Python tracker 

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



[issue28128] Improve the warning message for invalid escape sequences

2016-10-03 Thread Brett Cannon

Changes by Brett Cannon :


--
nosy:  -brett.cannon

___
Python tracker 

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



[issue28286] gzip guessing of mode is ambiguous

2016-10-03 Thread Jim Jewett

Changes by Jim Jewett :


--
title: gzip guessing of mode is ambiguilous -> gzip guessing of mode is 
ambiguous

___
Python tracker 

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



[issue28348] Doc typo in asyncio.Task

2016-10-03 Thread Mariatta Wijaya

Mariatta Wijaya added the comment:

Thanks for the report. 
Seems like easy fix :)
I'll work on a patch for this today.

--
nosy: +Mariatta

___
Python tracker 

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



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

2016-10-03 Thread Alexander Belopolsky

Alexander Belopolsky added the comment:

I would like to revisit this for 3.7.

--
keywords:  -needs review, patch
priority: low -> normal
resolution: rejected -> 
stage: commit review -> needs patch
status: closed -> open
versions: +Python 3.7 -Python 3.2

___
Python tracker 

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



[issue28218] Windows docs have wrong versionadded description

2016-10-03 Thread Steve Dower

Changes by Steve Dower :


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



[issue11698] Improve repr for structseq objects to show named, but unindexed fields

2016-10-03 Thread Alexander Belopolsky

Changes by Alexander Belopolsky :


--
stage:  -> patch review
versions: +Python 3.7 -Python 3.4

___
Python tracker 

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



[issue5907] repr of time.struct_time type does not eval

2016-10-03 Thread Alexander Belopolsky

Changes by Alexander Belopolsky :


--
priority: low -> normal
versions: +Python 3.7 -Python 3.3

___
Python tracker 

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



[issue1820] Enhance Object/structseq.c to match namedtuple and tuple api

2016-10-03 Thread Alexander Belopolsky

Changes by Alexander Belopolsky :


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



[issue28218] Windows docs have wrong versionadded description

2016-10-03 Thread Roundup Robot

Roundup Robot added the comment:

New changeset de79cc895203 by Steve Dower in branch '3.6':
Issue #28218: Fixes versionadded description in using/windows.rst
https://hg.python.org/cpython/rev/de79cc895203

--
nosy: +python-dev

___
Python tracker 

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



[issue28217] Add interactive console tests

2016-10-03 Thread Steve Dower

Changes by Steve Dower :


--
resolution:  -> fixed
stage: test needed -> resolved
status: open -> closed

___
Python tracker 

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



[issue28217] Add interactive console tests

2016-10-03 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 363888141f41 by Steve Dower in branch '3.6':
Issue #28217: Adds _testconsole module to test console input. Fixes some issues 
found by the tests.
https://hg.python.org/cpython/rev/363888141f41

New changeset 3ec6a610e93e by Steve Dower in branch 'default':
Issue #28217: Adds _testconsole module to test console input.
https://hg.python.org/cpython/rev/3ec6a610e93e

--
nosy: +python-dev

___
Python tracker 

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



[issue28251] Help manuals do not appear in Windows search

2016-10-03 Thread Steve Dower

Changes by Steve Dower :


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



[issue28348] Doc typo in asyncio.Task

2016-10-03 Thread Poren Chiang

New submission from Poren Chiang:

Version: Latest (v3.5.2)
Affected module: asyncio (section 18.5)

Problem:
Under section 18.5.3.5. "Task", The word "completion" is misspelled 
"completition".

> A task is responsible for executing a coroutine object in an event loop. If 
> the wrapped coroutine yields from a future, the task suspends the execution 
> of the wrapped coroutine and waits for the **completition** of the future. 
> When the future is done, the execution of the wrapped coroutine restarts with 
> the result or the exception of the future.

Possible fixes:

Replace "completition" with "completion".

Reference:

[1] https://docs.python.org/3/library/asyncio-task.html#task

--
assignee: docs@python
components: Documentation
messages: 277962
nosy: RSChiang, docs@python
priority: normal
severity: normal
status: open
title: Doc typo in asyncio.Task
versions: Python 3.5

___
Python tracker 

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



[issue28339] "TypeError: Parameterized generics cannot be used with class or instance checks" in test_functools after importing typing module

2016-10-03 Thread Guido van Rossum

Guido van Rossum added the comment:

I have merged the upstream fix (and some other things) into 3.5, 3.6, 3.7.

changeset:   104262:7f0d27180b6d
tag: tip
parent:  104259:36b052adf5a7
parent:  104261:0e0189b47291
user:Guido van Rossum 
date:Mon Oct 03 08:42:17 2016 -0700
summary: More updates from upstream typing.py (3.6->3.7)

changeset:   104261:0e0189b47291
branch:  3.6
parent:  104258:0d948a46c59a
parent:  104260:b24d0f274623
user:Guido van Rossum 
date:Mon Oct 03 08:41:37 2016 -0700
summary: More updates from upstream typing.py (3.5->3.6)

changeset:   104260:b24d0f274623
branch:  3.5
parent:  104255:ac838bf5499d
user:Guido van Rossum 
date:Mon Oct 03 08:40:50 2016 -0700
summary: More updates from upstream typing.py

--

___
Python tracker 

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



[issue21124] _struct module compilation error under Cygwin 1.7.17 on Python 3.4

2016-10-03 Thread Masayuki Yamamoto

Masayuki Yamamoto added the comment:

unpack_iterator type has not been registered into _struct module. And all users 
get only unpack_iterator object from function returning iterator. The object 
iterating doesn't need reference to type. Therefore, I think issue finish by 
PyType_Ready fix because this segfault doesn't have big impact.

However, I think if possible, it is preferable that extension module having 
un-initialize type objects gets a compile error at build time. And impossible 
case for compile error is better that wrong extension module always fails 
import.

--

___
Python tracker 

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



[issue28329] Add support for customizing scheduler's timefunc and delayfunc using subclassing

2016-10-03 Thread Raymond Hettinger

New submission from Raymond Hettinger:

Why do you need a second way to do it?  Is there any use case not handled by 
the current API?

--
nosy: +rhettinger

___
Python tracker 

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



[issue28259] Ctypes bug windows

2016-10-03 Thread Eryk Sun

Eryk Sun added the comment:

Since this is 32-bit, are you using CDLL (cdecl) or WinDLL (stdcall)? Either 
way, I made a simple test for the given function prototype, and it worked fine 
in 32-bit 3.5.2 on Windows 10 for both calling conventions. You'll have to 
provide a minimal example that reproduces the problem.

--
nosy: +eryksun

___
Python tracker 

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



[issue28329] Add support for customizing scheduler's timefunc and delayfunc using subclassing

2016-10-03 Thread Satoru Logic

Changes by Satoru Logic :


Added file: http://bugs.python.org/file44942/overridable_time_delay_v2.patch

___
Python tracker 

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



[issue28344] Python 3.5.2 installer hangs when run in session 0

2016-10-03 Thread spooja

spooja added the comment:

Thank you for the link, yes am running in session 0 via the task scheduler.

--

___
Python tracker 

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



[issue28344] Python 3.5.2 installer hangs when run in session 0

2016-10-03 Thread Eryk Sun

Eryk Sun added the comment:

For some reason you're trying to schedule the installer to run in session 0. I 
thought you were running python.exe in session 0 via the task scheduler, which 
would hang in the REPL [1].

[1]: https://en.wikipedia.org/wiki/Read%E2%80%93eval%E2%80%93print_loop

--
components: +Installation
title: Python 3.5.2 hangs when running in session 0 -> Python 3.5.2 installer 
hangs when run in session 0

___
Python tracker 

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



[issue28088] Document Transport.set_protocol and get_protocol

2016-10-03 Thread INADA Naoki

INADA Naoki added the comment:

lgtm.

But I think adding note like following may be helpful to avoid users try
switching protocols which protocol author doesn't expect.
(I'm not good English writer.  I hope someone polish my sentence).

.. note::

   Generally speaking, switching protocols requires special knowledge
   about two protocols. For example, old protocol may have inner receive
   buffer and new protocol should take over it.
   Transport doesn't take care about such issues. Protocols should support
   switching protocol using this API.

--
nosy: +inada.naoki

___
Python tracker 

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



[issue28339] "TypeError: Parameterized generics cannot be used with class or instance checks" in test_functools after importing typing module

2016-10-03 Thread Ivan Levkivskyi

Ivan Levkivskyi added the comment:

I have submitted a PR with one of the quick fixes upstream (to python/typing). 
Also I have played a bit with a more permanent fix. Here is an important 
observation: it is not easy to avoid adding parameterized generics to 
__subclasses__. For example, Node[int] should have at least one base, that base 
will have it in __subclasses__. The former is dynamically updated, so that we 
cannot "fool" it.

Also making subclass checks for all subclasses is a "deliberate act", so that 
it should be treated by common rules.

It looks like we have only three options:

1. Abandon the idea of raising TypeError for generics, most users expect True 
or False, so that some exiting code might break

2. Make __getitem__ for generics return self, so that ``Node[int] is Node`` at 
runtime (this is a subset of the first option).

3. Still force people not to use issubclass() with parameterized generics (this 
is quite bad idea and could have misleading consequences), but make an 
exception for existing stdlib modules abc and functools, all later additions 
should respect the rule.

4. Similarly to above, but just make tiny patches to abc and functools to use 
__origin__ in subclass checks if it is present and not None.

Which option is the right one? I would vote for the last one. This could break 
some (probably very small amount) existing code. So that formally speaking it 
is a backward incompatible change. We could go with option 1 for 3.5 and with 
option 4 for 3.6

Also I have found another failure in test suite with latest version from 
python/typing after importing typing while running ./python -c 'import runpy, 
typing; runpy.run_module("test")'

test test_collections failed -- Traceback (most recent call last):
  File "/Users/ivan/hg-cpython/Lib/test/test_collections.py", line 1309, in 
test_ByteString
self.assertNotIsInstance(memoryview(b""), ByteString)
AssertionError:  is an instance of 

This is because of this line in typing.py

ByteString.register(type(memoryview(b'')))

The fix for this is very simple, we just need to decide whether memoryview 
should be an instance of ByteString or not, and either remove this line or 
remove the failing test.

I do not have any strong opinion on this, what do you think?

--

___
Python tracker 

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



[issue26617] Assertion failed in gc with __del__ and weakref

2016-10-03 Thread JIahua Guo

JIahua Guo added the comment:

Hi asvetlov, debug mode of python interpreter should be enabled to reproduce 
this bug, cause assertion is disabled in release mode.
(https://hg.python.org/cpython/file/104259/Modules/gcmodule.c#l365)

One environment that can reproduce this bug:

$ cat /etc/issue
Ubuntu 14.04.3 LTS \n \l

$ uname -r
3.13.0-32-generic

$ uname -m
x86_64

$ dpkg -s python3.4-dbg | grep Version
Version: 3.4.3-1ubuntu1~14.04.4

$ python3.4-dbg crash.py
python3.4-dbg: ../Modules/gcmodule.c:364: update_refs: Assertion 
`((gc)->gc.gc_refs >> (1)) != 0' failed.
Aborted

--

___
Python tracker 

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



[issue28328] statistics.geometric_mean has no tests. Defer to 3.7?

2016-10-03 Thread INADA Naoki

INADA Naoki added the comment:

Attached patch fixes first two errors.
Last one error is from test.  I've commented it in review tool.

--
Added file: http://bugs.python.org/file44941/geometric_mean.patch

___
Python tracker 

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



[issue28328] statistics.geometric_mean has no tests. Defer to 3.7?

2016-10-03 Thread INADA Naoki

INADA Naoki added the comment:

I run attached test, and saw following errors.

On macOS 10.11 (XCode 8)

$ hg summary
parent: 104258:0d948a46c59a
 test_invalid_sequences seems don't have to stay in CAPITest.
branch: 3.6
commit: 1 modified, 1 unknown
update: (current)


$ ./python.exe -m test.test_statistics -v
...
==
ERROR: test_negative_error (__main__.TestGeometricMean) (values=[-1])
--
Traceback (most recent call last):
  File "/Users/inada-n/work/python/py36/Lib/test/test_statistics.py", line 
1741, in test_negative_error
self.assertRaises(exc, self.func, values)
  File "/Users/inada-n/work/python/py36/Lib/unittest/case.py", line 728, in 
assertRaises
return context.handle('assertRaises', args, kwargs)
  File "/Users/inada-n/work/python/py36/Lib/unittest/case.py", line 177, in 
handle
callable_obj(*args, **kwargs)
  File "/Users/inada-n/work/python/py36/Lib/statistics.py", line 567, in 
geometric_mean
if isinstance(g, (numbers.Real, Decimal)):
NameError: name 'g' is not defined

==
ERROR: test_single_value (__main__.TestGeometricMean)
--
Traceback (most recent call last):
  File "/Users/inada-n/work/python/py36/Lib/test/test_statistics.py", line 
1587, in test_single_value
self.assertEqual(self.func([x]), x)
  File "/Users/inada-n/work/python/py36/Lib/statistics.py", line 567, in 
geometric_mean
if isinstance(g, (numbers.Real, Decimal)):
NameError: name 'g' is not defined

==
ERROR: test_singleton_lists (__main__.TestGeometricMean)
--
Traceback (most recent call last):
  File "/Users/inada-n/work/python/py36/Lib/test/test_statistics.py", line 
1762, in test_singleton_lists
self.assertEqual(self.func([x]), x)
  File "/Users/inada-n/work/python/py36/Lib/statistics.py", line 567, in 
geometric_mean
if isinstance(g, (numbers.Real, Decimal)):
NameError: name 'g' is not defined

==
FAIL: test_multiply_data_points (__main__.TestGeometricMean)
--
Traceback (most recent call last):
  File "/Users/inada-n/work/python/py36/Lib/test/test_statistics.py", line 
1796, in test_multiply_data_points
self.assertApproxEqual(self.func(data), expected, rel=1e-13)
  File "/Users/inada-n/work/python/py36/Lib/test/test_statistics.py", line 227, 
in assertApproxEqual
check(first, second, tol, rel, msg)
  File "/Users/inada-n/work/python/py36/Lib/test/test_statistics.py", line 247, 
in _check_approx_num
raise self.failureException(msg)
AssertionError:   6.27015835359916 != 695.9875772495068
  values differ by more than tol=0 and rel=1e-13
  -> absolute error = 689.7174188959076
  -> relative error = 0.990990990990991

--
nosy: +inada.naoki

___
Python tracker 

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



[issue28346] 3.6 source doesn't build on centos 6

2016-10-03 Thread Berker Peksag

Changes by Berker Peksag :


--
stage:  -> resolved

___
Python tracker 

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



[issue28341] cpython tip fails to build on Mac OS X 10.11.6 w/ XCode 8.0

2016-10-03 Thread Skip Montanaro

Skip Montanaro added the comment:

Thanks, Ned. Unintuitive though it may be, that seems to have done the trick.

--

___
Python tracker 

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



[issue28346] 3.6 source doesn't build on centos 6

2016-10-03 Thread lurker10

lurker10 added the comment:

This has to be it, thank you! I used github to get source.

--
resolution:  -> not a bug
status: open -> closed

___
Python tracker 

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



[issue28346] 3.6 source doesn't build on centos 6

2016-10-03 Thread Berker Peksag

Berker Peksag added the comment:

How did you get 3.7.0a1? I assumed you cloned it from hg.python.org. If you 
clone it from the GitHub mirror, you can use the trick mentioned at 
http://bugs.python.org/issue23404#msg275285

--

___
Python tracker 

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



[issue28344] Python 3.5.2 hangs when running in session 0

2016-10-03 Thread spooja

spooja added the comment:

Sorry I did not understand your comment, what is REPL? I am not using any 
script just scheduling a task to run python using this command 
'python-3.5.2-x86.exe' with /quiet option.

Are u telling me to kill the 2nd process that is getting created by the 
installer and the installation will work fine?

--

___
Python tracker 

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



[issue28346] 3.6 source doesn't build on centos 6

2016-10-03 Thread lurker10

lurker10 added the comment:

Ok, a new error when running make touch.
Not a mercurial directory (no .hg found). I am not familiar with mercurial 
though, could be an easy fix.
It happens for both 3.7.0a1 and for the current 3.6 branch.

It's alright I'll just use the 3.6.0b1 from the official site.

--

___
Python tracker 

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



[issue18235] _sysconfigdata.py wrong on AIX installations

2016-10-03 Thread Michael Haubenwallner

Michael Haubenwallner added the comment:

...a long time since I've been in this area...

David, I'm not completely sure which code fragments you're talking about for 
"revert or change".

Anyway: If I remember correctly, the confusion here is about the idea behind 
LDSHARED and BLDSHARED.
As far as I understand, this idea originally was:

LDSHARED: The "command to create shared modules". Used as variable in the 
"Makefile (and similar) templates to build python modules" for both in-python 
and third party modules. Initialized to hold the value which works for third 
party modules to link against the _installed_ python.

BLDSHARED: Read as "Buildtime-LDSHARED". Holds the value to override LDSHARED 
with while building python itself (_PYTHON_BUILD=True), which works for 
building in-python modules to link against the _builddir_ python.

So there's no point in ever setting BLDSHARED to the value of LDSHARED.

Actually there is no point in having BLDSHARED visible at all in an installed 
python, nor using its value while building third party modules - there's just 
no code yet that prunes BLDSHARED from the installed _sysconfigdata.py.

HTH,
/haubi/

--

___
Python tracker 

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



[issue28344] Python 3.5.2 hangs when running in session 0

2016-10-03 Thread Eryk Sun

Eryk Sun added the comment:

Are you running python.exe without a script or command? That runs the REPL in 
session 0, which will block reading from stdin. It's harmless to kill this 
process. The REPL could detect that it's running in session 0 and exit. 
However, I'm not in favor of such a change because sometimes I intentionally 
run in session 0 via psexec.exe.

--
nosy: +eryksun

___
Python tracker 

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



[issue28346] 3.6 source doesn't build on centos 6

2016-10-03 Thread Berker Peksag

Berker Peksag added the comment:

Running

make distclean
make touch

should solve your problem. There isn't any significant change between 3.6.0b1 
and 3.7.0a1 to cause build problems if I recall correctly.

--

___
Python tracker 

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



[issue26617] Assertion failed in gc with __del__ and weakref

2016-10-03 Thread Andrew Svetlov

Andrew Svetlov added the comment:

I was unable to reproduce a crash but the patch looks straightforward and 
obvious.
After applying test suite for aiohttp still works without problems at least.

--
nosy: +asvetlov

___
Python tracker 

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



[issue28346] 3.6 source doesn't build on centos 6

2016-10-03 Thread lurker10

lurker10 added the comment:

I am sorry, it's actually 3.7.0a1 I was trying to build that errors.

3.6.0b1 builds fine.

--

___
Python tracker 

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



[issue28345] 8/3 is calculated incorrectly

2016-10-03 Thread Eryk Sun

Eryk Sun added the comment:

A CPython float uses the platform's double-precision floating point. The 
significand of a double has 53 bits of precision, which is 15 decimal digits of 
precision. However, uniquely representing a double in decimal requires 17 
digits, which is why the str and repr format is extended with the otherwise 
insignificant "65" digits. For output, you can format the number with 
sys.float_info.dig decimal digits. For example:

>>> sys.float_info.dig
15
>>> '%0.*g' % (sys.float_info.dig, 8/3)
'2.67'

--
nosy: +eryksun

___
Python tracker 

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



[issue28346] 3.6 source doesn't build on centos 6

2016-10-03 Thread Berker Peksag

Berker Peksag added the comment:

Thanks for the report. I think you need to run "make touch".

--
nosy: +berker.peksag

___
Python tracker 

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



[issue28346] 3.6 source doesn't build on centos 6

2016-10-03 Thread lurker10

New submission from lurker10:

Centos 6.7
Python 2.6.6 (default in Centos 6, no other python installed)
GCC 4.4.7

# ./configure
...
(no errors)

# make
python ./Tools/scripts/generate_opcode_h.py ./Lib/opcode.py ./Include/opcode.h
/bin/mkdir -p Include
python ./Parser/asdl_c.py -h Include ./Parser/Python.asdl
Traceback (most recent call last):
  File "./Parser/asdl_c.py", line 6, in 
import asdl
  File "/root/cpython/Parser/asdl.py", line 36
builtin_types = {'identifier', 'string', 'bytes', 'int', 'object', 
'singleton',
 ^

SyntaxError: invalid syntax
make: *** [Include/Python-ast.h] Error 1

--
components: Build
messages: 277937
nosy: lurker10
priority: normal
severity: normal
status: open
title: 3.6 source doesn't build on centos 6
type: compile error

___
Python tracker 

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



[issue27859] argparse - subparsers does not retain namespace

2016-10-03 Thread Nick Papior

Nick Papior added the comment:

Sorry I haven't responded previously.

Thanks a lot for helping me. I hadn't realized the `register` function.

--

___
Python tracker 

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



[issue26617] Assertion failed in gc with __del__ and weakref

2016-10-03 Thread STINNER Victor

STINNER Victor added the comment:

I don't think that the crash is a release blocker, but I just sent an email to 
python-dev to ask for reviews.

--
nosy: +larry, ned.deily
priority: normal -> release blocker

___
Python tracker 

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



[issue26617] Assertion failed in gc with __del__ and weakref

2016-10-03 Thread STINNER Victor

Changes by STINNER Victor :


--
versions: +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



[issue10716] Modernize pydoc to use better HTML and separate CSS

2016-10-03 Thread Berker Peksag

Berker Peksag added the comment:

(As a result of the discussion at 
http://psf.upfronthosting.co.za/roundup/meta/issue605, I started to re-triage 
all easy issues.)

I don't think this is a suitable task for new contributors. It requires a) good 
HTML and CSS knowledge b) familiarity with pydoc API c) possibly design of a 
new API to finish this task.

There are also some key points that needs to be discussed:

* The current API ties to the dated HTML output and we may not need some of the 
members in the new format (look at the signature of HTMLDoc.section() for 
example) Also, I know HTMLDoc is not a public API, but I saw a number of 
HTMLDoc subclasses in GitHub (even I did it myself in my own projects) so there 
is a risk of breaking working applications. My suggestion is to keep the old 
API as-is and create a new one with new output.

* The another question is that do we need HTMLDoc in 2016? Sphinx, 
sphinx-autodoc and readthedocs.org doing an amazing job and it might be better 
to refer people to alternative solutions (like we did for requests) See also 
https://mail.python.org/mailman/private/core-mentorship/2016-August/003622.html 
for a discussion about this subject.

--
versions: +Python 3.7 -Python 3.6

___
Python tracker 

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



[issue28264] Turtle.onclick events blocked by Turtle.stamp

2016-10-03 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I understand now, you mean the printing of '*  turtle click 
detected *' is suppressed by turning stamping on.  It is slightly 
confusing that the effect of clicking the stamp box, to disable or re-enable, 
does not happen until after the next left click.  If I check the box, click a 
turtle, it spins, uncheck the box, click a turtle, and it does not spin.  It 
takes at least two clicks to see the effect.  Anyway, verified on Win10 with 
3.6.0b1.

--
stage:  -> test needed
versions: +Python 3.5, Python 3.6, Python 3.7 -Python 3.4

___
Python tracker 

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



[issue28344] Python 3.5.2 hangs when running in session 0

2016-10-03 Thread SilentGhost

Changes by SilentGhost :


--
components: +Windows
nosy: +paul.moore, steve.dower, tim.golden, zach.ware

___
Python tracker 

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



[issue28345] 8/3 is calculated incorrectly

2016-10-03 Thread SilentGhost

Changes by SilentGhost :


--
stage:  -> resolved

___
Python tracker 

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



  1   2   >