[issue27322] test_compile_path fails when python has been installed

2016-09-12 Thread Berker Peksag

Berker Peksag added the comment:

Here is a patch that reuses the helper in CommandLineTests.

--
nosy: +berker.peksag
stage: needs patch -> patch review
versions: +Python 3.5, Python 3.7
Added file: http://bugs.python.org/file44621/issue27322_v2.diff

___
Python tracker 

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



[issue28112] Add callback to functools.lru_cache

2016-09-12 Thread Alex Jurkiewicz

Alex Jurkiewicz added the comment:

OK, thanks for the feedback. For future searchers I am using the pylru module 
instead:
https://pypi.python.org/pypi/pylru

--

___
Python tracker 

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



[issue28112] Add callback to functools.lru_cache

2016-09-12 Thread Raymond Hettinger

Raymond Hettinger added the comment:

Alex, I would like to pass on this feature request and keep the lru_cache API 
focused on its core task.  As it stands now, it was already difficult to fight 
reentrancy problems.

FWIW, it is very easy to roll your own LRU variants using 
collections.OrderedDict.  Also, if you're inclined, you can post Python recipes 
and at the ASPN Python website -- that is where I post my LRU variants.

--
resolution:  -> rejected
status: open -> closed

___
Python tracker 

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



[issue23545] Turn on extra warnings on GCC

2016-09-12 Thread Martin Panter

Martin Panter added the comment:

I think Silent Ghost is talking about my -Wtype-limits warning, which is still 
present. That is the only warning I am getting. I suspect you won’t see it with 
a 32-bit build.

--

___
Python tracker 

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



[issue23102] distutils: isinstance checks fail with setuptools-monkeypatched Extension/Distribution

2016-09-12 Thread Berker Peksag

Berker Peksag added the comment:

Thanks for the updated patches. Since they both intend to fix the same problem, 
we can combine them in one patch file.

--
stage: needs patch -> patch review

___
Python tracker 

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



[issue27981] Reference leak in fp_setreadl() of Parser/tokenizer.c

2016-09-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 2be31da53dcc by Benjamin Peterson in branch '3.5':
restructure fp_setreadl so as to avoid refleaks (closes #27981)
https://hg.python.org/cpython/rev/2be31da53dcc

New changeset 4ac3de437100 by Benjamin Peterson in branch '3.6':
merge 3.5 (#27981)
https://hg.python.org/cpython/rev/4ac3de437100

New changeset aa63b94946bf by Benjamin Peterson in branch 'default':
merge 3.6 (#27981)
https://hg.python.org/cpython/rev/aa63b94946bf

--

___
Python tracker 

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



[issue23102] distutils: isinstance checks fail with setuptools-monkeypatched Extension/Distribution

2016-09-12 Thread Greg Turner

Greg Turner added the comment:

Double Huzzah.

I can probably cook up a test and even look at those method invocations in 
considerably less than the existing 1.5-year lifecycle of this bug, but not 
necessarily immediately due to reasons.

--
Added file: 
http://bugs.python.org/file44620/0002-distutils-type-checks-can-fail-issue-23102.patch

___
Python tracker 

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



[issue28112] Add callback to functools.lru_cache

2016-09-12 Thread Berker Peksag

Changes by Berker Peksag :


--
nosy: +ncoghlan, rhettinger
stage:  -> needs patch
versions:  -Python 3.3, Python 3.4, 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



[issue27952] Finish converting fixcid.py from regex to re

2016-09-12 Thread Berker Peksag

Berker Peksag added the comment:

Done. I'm going to pretend 2.7 doesn't exist :)

--
nosy: +berker.peksag
status: open -> closed

___
Python tracker 

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



[issue27952] Finish converting fixcid.py from regex to re

2016-09-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 5ae3782c4e05 by Berker Peksag in branch '3.5':
Issue #27952: Capture stderr in run_script()
https://hg.python.org/cpython/rev/5ae3782c4e05

New changeset 33d118a27035 by Berker Peksag in branch '3.6':
Issue #27952: Merge from 3.5
https://hg.python.org/cpython/rev/33d118a27035

New changeset 6acd2b575a3c by Berker Peksag in branch 'default':
Issue #27952: Merge from 3.6
https://hg.python.org/cpython/rev/6acd2b575a3c

--

___
Python tracker 

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



[issue23102] distutils: isinstance checks fail with setuptools-monkeypatched Extension/Distribution

2016-09-12 Thread Greg Turner

Greg Turner added the comment:

Huzzah

--
Added file: 
http://bugs.python.org/file44619/0001-distutils-type-checks-can-fail-issue-23102.patch

___
Python tracker 

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



[issue28112] Add callback to functools.lru_cache

2016-09-12 Thread Alex Jurkiewicz

New submission from Alex Jurkiewicz:

I'd like to add support for functools.lru_cache to have a callback parameter 
that runs every time an item is evicted from the cache. I've written a small 
prototype here:

https://github.com/alexjurkiewicz/cpython/commit/2f788387466720d47f2c82242ac33b107b0bf470

The prototype is incomplete:
* No C implementation
* Doesn't run on lru_cache.cache_clear()
* It would be nice to pass through args/kwargs for each evicted item

Comments welcome!

--
components: Library (Lib)
messages: 276171
nosy: aj
priority: normal
severity: normal
status: open
title: Add callback to functools.lru_cache
type: enhancement
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



[issue17188] Document 'from None' in raise statement doc.

2016-09-12 Thread Thomi Richards

Thomi Richards added the comment:

Re-uploaded the patch without the typo.

--
Added file: http://bugs.python.org/file44618/issue17188_3.4.patch

___
Python tracker 

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



[issue6087] distutils.sysconfig.get_python_lib gives surprising result when used with a Python build

2016-09-12 Thread Kesara Rathnayake

Kesara Rathnayake added the comment:

Test output:

[cpython.25567]$ ./python.exe -m test test_distutils test_sysconfig -j3
Run tests in parallel using 3 child processes
0:00:01 [1/2/1] test_sysconfig failed
test test_sysconfig failed -- Traceback (most recent call last):
  File "/Users/kesara/pycon/cpython.25567/Lib/test/test_sysconfig.py", line 
283, in test_user_similar
self.assertEqual(user_path, global_path.replace(base, user, 1))
AssertionError: '/Users/kesara/.local/lib/python3.6' != 
'/Users/kesara/pycon/cpython.25567/Lib'
- /Users/kesara/.local/lib/python3.6
+ /Users/kesara/pycon/cpython.25567/Lib
0:00:05 [2/2/2] test_distutils failed
test test_distutils failed -- Traceback (most recent call last):
  File 
"/Users/kesara/pycon/cpython.25567/Lib/distutils/tests/test_sysconfig.py", line 
40, in test_get_python_lib
sysconfig.get_python_lib(prefix=TESTFN))
AssertionError: '/Users/kesara/pycon/cpython.25567/Lib' == 
'/Users/kesara/pycon/cpython.25567/Lib'

2 tests failed:
test_distutils test_sysconfig

Total duration: 6 sec
Tests result: FAILURE

--

___
Python tracker 

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



[issue6087] distutils.sysconfig.get_python_lib gives surprising result when used with a Python build

2016-09-12 Thread Robert Collins

Robert Collins added the comment:

Ok, so we need to figure out whether the tests are wrong, or the 'fix' is wrong.

--

___
Python tracker 

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



[issue27981] Reference leak in fp_setreadl() of Parser/tokenizer.c

2016-09-12 Thread Berker Peksag

Berker Peksag added the comment:

Thanks for the patch, David!

--
components: +Interpreter Core
nosy: +berker.peksag
resolution:  -> fixed
stage:  -> resolved
status: open -> closed
type:  -> behavior
versions: +Python 3.5, Python 3.7

___
Python tracker 

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



[issue27981] Reference leak in fp_setreadl() of Parser/tokenizer.c

2016-09-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset aa88456f1749 by Berker Peksag in branch '3.5':
Issue #27981: Fix refleak in fp_setreadl()
https://hg.python.org/cpython/rev/aa88456f1749

New changeset 095c77323a6e by Berker Peksag in branch '3.6':
Issue #27981: Merge from 3.5
https://hg.python.org/cpython/rev/095c77323a6e

New changeset e4b16748aca2 by Berker Peksag in branch 'default':
Issue #27981: Merge from 3.6
https://hg.python.org/cpython/rev/e4b16748aca2

--
nosy: +python-dev

___
Python tracker 

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



[issue6087] distutils.sysconfig.get_python_lib gives surprising result when used with a Python build

2016-09-12 Thread Kesara Rathnayake

Kesara Rathnayake added the comment:

These patches break both test_distutils & test_sysconfig tests.

--

___
Python tracker 

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



[issue28092] Build failure for 3.6 on Centos 5.11

2016-09-12 Thread Benjamin Peterson

Benjamin Peterson added the comment:

On Mon, Sep 12, 2016, at 10:34, Łukasz Langa wrote:
> 
> Łukasz Langa added the comment:
> 
> Benjamin, what's the rationale behind switching those to inline
> functions? Does it improve runtime performance or build speed? If not, I
> don't understand why the additional complexity.

Macros for the stub case of dtrace are "fine" because they're so simple.
I mainly converted them to see if it would cause problems (e.g., this
bug report) before seeking further expansion.

Many of CPython's uglier macros could be replaced by inline funtions.
Inline functions provide the same performance benefit of macros while
improving type safety, debugability, and avoiding notorious macro quirks
like double evaluation.

--

___
Python tracker 

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



[issue25895] urllib.parse.urljoin does not handle WebSocket URLs

2016-09-12 Thread Martin Panter

Martin Panter added the comment:

IMO if a versionadded/versionchanged notice is relevant, that is a good sign it 
is a feature rather than bug fix. If the 3.6.1 documentation says “added in 
3.5.3”, how do you know if it is in 3.6.0?

I looked at the history of other schemes being added to try and understand if 
it is a bug fix or not. I guess it is not that clear. In Python 2 the sftp and 
sips schemes are documented as a new feature in 2.5. Is that why you aren’t 
proposing any change to 2.7?

imap (Issue 618024), mms (7ec771893410): 2.3 features
rsync (Issue 981299): 2.3 bugfix (3a7e34dc6ae2)
svn: 2.4 bugfix (349a0fd598e0)
sftp (Issue 1407902): 2.5 feature (r42108); 2.4 bugfix reverted (r42123); 
documented (r42125) with version (r42158)
sips (r43520): 2.5 feature; documented with version
nfs (Issue 4962): 2.7 (r70757), 3.1 (r70760) features; 2.6 bugfix (r81131); 
undocumented
git (Issue 8657): 2.6, 2.7, 3.1 bugfixes; undocumented
tel (Issue 16713): 2.7, 3.2, 3.3 bugfixes; undocumented

--

___
Python tracker 

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



[issue18828] urljoin behaves differently with custom and standard schemas

2016-09-12 Thread Martin Panter

Martin Panter added the comment:

Recording bugs reports for specific schemes as dependencies of this:

Issue 25895: ws(s)
Issue 16134: rtmp(e/s/t)
Issue 23759: coap(s)

--
dependencies: +Add support for RTMP schemes to urlparse, urllib.parse.urljoin 
does not handle WebSocket URLs, urllib.parse: make coap:// known

___
Python tracker 

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



[issue15393] JSONDecoder.raw_decode breaks on leading whitespace

2016-09-12 Thread Robert Collins

Robert Collins added the comment:

I think the patch should either be rejected, or also handle trailing spaces: if 
we're taking the RFC definition of whitespace not being structural then we 
should also eat trailing space, which will change the  check for extra data in 
decode to just checking end == s.len().

Obviously a test for the trailing case needs to be added as well.

--
nosy: +rbcollins

___
Python tracker 

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



[issue25895] urllib.parse.urljoin does not handle WebSocket URLs

2016-09-12 Thread Robert Collins

Robert Collins added the comment:

I find details like this extremely useful in the main docs, so please do add 
there.

--

___
Python tracker 

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



[issue27952] Finish converting fixcid.py from regex to re

2016-09-12 Thread Xiang Zhang

Xiang Zhang added the comment:

Can we silence the debug output?

./python -m test  test_tools
Run tests sequentially
0:00:00 [1/1] test_tools
*recursedown('@test_20410_tmp')
1 test OK.

Total duration: 4 sec
Tests result: SUCCESS

--
nosy: +xiang.zhang
status: closed -> open

___
Python tracker 

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



[issue6087] distutils.sysconfig.get_python_lib gives surprising result when used with a Python build

2016-09-12 Thread Kesara Rathnayake

Kesara Rathnayake added the comment:

Updated patch based on vinay.sajip's patch.

--
Added file: http://bugs.python.org/file44617/6087_sysconfig.diff

___
Python tracker 

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



[issue6087] distutils.sysconfig.get_python_lib gives surprising result when used with a Python build

2016-09-12 Thread Kesara Rathnayake

Kesara Rathnayake added the comment:

Updated patch based on vinay.sajip's patch.

--
Added file: http://bugs.python.org/file44616/6087_distutils_sysconfig.diff

___
Python tracker 

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



[issue6087] distutils.sysconfig.get_python_lib gives surprising result when used with a Python build

2016-09-12 Thread Kesara Rathnayake

Kesara Rathnayake added the comment:

This issue still exists in Python 3.7.

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



[issue25895] urllib.parse.urljoin does not handle WebSocket URLs

2016-09-12 Thread Markus Holtermann

Markus Holtermann added the comment:

Thanks for your input, Berker. Updated as suggested. I still include the 
versionchanged annotation as I suspect more people to look at the docs than the 
entire changelog

--
Added file: 
http://bugs.python.org/file44615/0001-Enable-WebSocket-URL-schemes-in-urllib.parse.urljoin.patch

___
Python tracker 

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



[issue16288] TextTestResult uses TestCase.__str__() which isn't customisable (vs id() or shortDescription())

2016-09-12 Thread Robert Collins

Robert Collins added the comment:

@Chris - I don't like the idea of making new classes on the fly like that, it 
seems more likely to provoke bugs (as type(case) != SomeSpecificClass) anymore 
after that, vs just not relying on __str__ directly.

Going back to Michael's proposal of short description, long description and 
repr (with str == repr) for debugging. - that is missing id(), and id() is IMO 
definitely still needed.

I was proposing id(), friendlyId(), shortDescription(), and __str__ calls 
friendlyId(), and __repr__ is a regular <...> repr.

--

___
Python tracker 

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



[issue27981] Reference leak in fp_setreadl() of Parser/tokenizer.c

2016-09-12 Thread David Dudson (BigDaveNz)

David Dudson (BigDaveNz) added the comment:

Please find a fix attached.

This applies cleanly to 3.5/3.6/3.7 but not 2.7

Ran tests on 3.7 (master branch HEAD) only.

--
keywords: +patch
nosy: +David Dudson (BigDaveNz)
Added file: 
http://bugs.python.org/file44614/0001-Issue-27981-Prevent-a-leak-of-PyObject_CallObject-s-.patch

___
Python tracker 

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



[issue25895] urllib.parse.urljoin does not handle WebSocket URLs

2016-09-12 Thread Berker Peksag

Berker Peksag added the comment:

I think a Misc/NEWS entry is enough. We didn't use versionadded/versionchanged 
directives for similar changes in the past (mimetypes.types_map for example) 
Even if we decide to add an annotation it should be versionchanged, not 
versionadded (the API is not new.)

The rest of the patch looks good to me.

--
nosy: +berker.peksag
versions: +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



[issue27181] Add geometric mean to `statistics` module

2016-09-12 Thread Steven D'Aprano

Steven D'Aprano added the comment:

On Mon, Sep 12, 2016 at 03:35:14PM +, Mark Dickinson wrote:
> statistics.geometric_mean(0.7 for _ in range(5000))

I've raised a new ticket #28111

--

___
Python tracker 

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



[issue28092] Build failure for 3.6 on Centos 5.11

2016-09-12 Thread Ned Deily

Ned Deily added the comment:

[discussion with Steven about compiler versions taken off-list]

--

___
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 when checking for inf

2016-09-12 Thread Steven D'Aprano

New submission from Steven D'Aprano:

>>> statistics.geometric_mean([0.7 for _ in range(5000)])
Traceback (most recent call last):
  File "/Users/mdickinson/Python/cpython-git/Lib/statistics.py", line 362, in 
float_nroot
isinfinity = math.isinf(x)
OverflowError: int too large to convert to float

See #27975 and #27181

--
assignee: steven.daprano
components: Library (Lib)
messages: 276149
nosy: haypo, mark.dickinson, steven.daprano
priority: normal
severity: normal
status: open
title: geometric_mean can raise OverflowError when checking for inf
type: behavior
versions: Python 3.6

___
Python tracker 

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



[issue28104] Set documentation is incorrect

2016-09-12 Thread Raymond Hettinger

Changes by Raymond Hettinger :


--
assignee: docs@python -> rhettinger

___
Python tracker 

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



[issue23102] distutils: isinstance checks fail with setuptools-monkeypatched Extension/Distribution

2016-09-12 Thread Berker Peksag

Berker Peksag added the comment:

The patch doesn't apply cleanly:

applying 
http://bugs.python.org/file37554/distutils_accomodate_distribution_ducktypes.patch
patching file Lib/distutils/cmd.py
Hunk #1 FAILED at 51
1 out of 1 hunks FAILED -- saving rejects to file Lib/distutils/cmd.py.rej
abort: patch failed to apply

So the next step would be to update the patch.

We also need a test case to make sure that the patch fixes the problem reported 
in msg233034.

+1 for relying on duck typing. Perhaps we could also look for methods that are 
called in Command (e.g. get_command_obj(), run_command())

--
nosy: +berker.peksag, jason.coombs
stage:  -> needs patch
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



[issue20140] UnicodeDecodeError in ntpath.py when home dir contains non-ascii signs

2016-09-12 Thread Eryk Sun

Eryk Sun added the comment:

> It might be worth testing a patch that changes expanduser to 
> decode the environment variables 

If expanduser() is passed a unicode path, it can use 
_winreg.ExpandEvironmentStrings(u'%USERPROFILE%') instead of decoding 
os.environ['USERPROFILE']. In 2.7, os.environ is a lossy ANSI encoding of the 
native Unicode environment block.

--
nosy: +eryksun

___
Python tracker 

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



[issue28103] Style fix in zipfile.rst

2016-09-12 Thread Berker Peksag

Berker Peksag added the comment:

Thanks!

--
nosy: +berker.peksag
resolution:  -> fixed
stage: commit review -> resolved
status: open -> closed
versions: +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



[issue28103] Style fix in zipfile.rst

2016-09-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 138625694ed6 by Berker Peksag in branch '3.5':
Issue #28103: Use ``'...'`` style in zipfile documentation
https://hg.python.org/cpython/rev/138625694ed6

New changeset 89b0ca61ad03 by Berker Peksag in branch '3.6':
Issue #28103: Merge from 3.5
https://hg.python.org/cpython/rev/89b0ca61ad03

New changeset 5b41ff5b2a8e by Berker Peksag in branch 'default':
Issue #28103: Merge from 3.6
https://hg.python.org/cpython/rev/5b41ff5b2a8e

--
nosy: +python-dev

___
Python tracker 

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



[issue28092] Build failure for 3.6 on Centos 5.11

2016-09-12 Thread Steven D'Aprano

Steven D'Aprano added the comment:

Ned, I know my system is old so I understand if 3.6 no longer supports 
gcc 4.1. Tell me what minimum version I should use (4.8?) and I'll find 
a way to upgrade or use another system.

Shouldn't the build system explicitly report that the compiler is too 
old, and suggest a minimum version, rather than just dump some random 
C-level error in the user's lap? There's a big gap between "able to run 
configure/make" and "able to diagnose configure/make errors" where users 
are currently not well provided for. It is very frustrating to deal with 
these sorts of errors especially when most of the help you get from the 
internet is "run make distclean and try again".

--

___
Python tracker 

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



[issue15393] JSONDecoder.raw_decode breaks on leading whitespace

2016-09-12 Thread Bayard Randel

Bayard Randel added the comment:

I've provided an updated patch for 3.6. Additionally I've updated the docstring 
for decoder.raw_decode to explain that whitespace at the beginning of the 
document will be ignored. I believe the concerns around the backwards 
incompatible change to the function signature were addressed by aalien's second 
patch.

--
nosy: +Bayard Randel
Added file: http://bugs.python.org/file44613/issue15393_3.6.patch

___
Python tracker 

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



[issue25895] urllib.parse.urljoin does not handle WebSocket URLs

2016-09-12 Thread Markus Holtermann

Changes by Markus Holtermann :


Removed file: 
http://bugs.python.org/file44609/0001-Enable-WebSocket-URL-schemes-in-urllib.parse.urljoin.3.6.patch

___
Python tracker 

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



[issue25895] urllib.parse.urljoin does not handle WebSocket URLs

2016-09-12 Thread Markus Holtermann

Changes by Markus Holtermann :


Removed file: 
http://bugs.python.org/file44610/0001-Enable-WebSocket-URL-schemes-in-urllib.parse.urljoin.master.patch

___
Python tracker 

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




[issue25895] urllib.parse.urljoin does not handle WebSocket URLs

2016-09-12 Thread Yury Selivanov

Changes by Yury Selivanov :


--
nosy:  -yselivanov

___
Python tracker 

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



[issue25895] urllib.parse.urljoin does not handle WebSocket URLs

2016-09-12 Thread Markus Holtermann

Markus Holtermann added the comment:

Since the patch applies cleanly to the 3.5, 3.6 and master branch I only 
attached one updated version of it.

--
Added file: 
http://bugs.python.org/file44612/0001-Enable-WebSocket-URL-schemes-in-urllib.parse.urljoin.patch

___
Python tracker 

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



[issue25895] urllib.parse.urljoin does not handle WebSocket URLs

2016-09-12 Thread Markus Holtermann

Changes by Markus Holtermann :


Removed file: 
http://bugs.python.org/file44608/0001-Enable-WebSocket-URL-schemes-in-urllib.parse.urljoin.3.5.patch

___
Python tracker 

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



[issue27946] issues in elementtree and elsewhere due to PyDict_GetItem

2016-09-12 Thread Tim Mitchell

Tim Mitchell added the comment:

Added test to patch

--

___
Python tracker 

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



[issue27946] issues in elementtree and elsewhere due to PyDict_GetItem

2016-09-12 Thread Tim Mitchell

Changes by Tim Mitchell :


Removed file: 
http://bugs.python.org/file44605/0001-issue27946-Hold-reference-to-dict-in-PyDict_GetItem.patch

___
Python tracker 

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



[issue28040] compact dict : SystemError: returned NULL without setting an error.

2016-09-12 Thread INADA Naoki

INADA Naoki added the comment:

> So what if we delete mp->ma_used == ix or use mp->ma_keys->dk_nentries == ix? 
> Do we still have any case breaking the order?

Yes.  `mp->ma_used == ix` means no more guard about key ordering.

class C:
...

a, b = C()
a.a, a.b = 1, 2  # shared key order is [a, b]

# b has [a, b] pending slot too, and no guard when inserting  pending slot.
b.b, b.a = 3, 4  # continue to using sharing key

assert list(b.__dict__.keys()) == ['b', 'a'])  # AssertionError!

---
`mp->ma_keys->dk_nentries == ix` is nonsense.  It prohibits to inserting 
pending slot:

a, b = C()
a.a, a.b = 1, 2  # shared key order is [a, b]

# Since ma_keys is shared, b's dk_nentries == 2
b.a = 3  # ix = 0, dk_nentries = 2; stop using sharing keys.

---

To keep using sharing key, my idea is adding one more member to dict: 
mp->ma_values_end.

When inserting to pending or empty slot, check that `ix >= mp_ma_values_end` to 
ensure ordering
and `set mp->ma_values_end = ix+1` if it's OK.

a, b = C()  # Both of ma_values_end = 0
a.a, a.b = 1, 2  # shared key order is [a, b], a's ma_values_end = 2
b.b = 3  # ma_values_end (=0) <= ix (=1); OK; set ma_values_end = 2
b.a = 4  # ma_values_end (=2) >  ix (=0); NG; convert to combined table

But testing such an implementation detail is hard from pure Python. (No API for 
checking ma_values_end,
the dict is split or combined, and two dict share keys).

I don't know adding such hack is worth enough.
Dict is made by tons of hacks, you know.

I think new OrderedDict implementation based on new dict implementation is more 
worth.
If dict is far more efficient than OrderedDict, people may use dict even when 
OrderedDict should be used.
But I don't know it can be done after beta1.

--

___
Python tracker 

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



[issue27946] issues in elementtree and elsewhere due to PyDict_GetItem

2016-09-12 Thread Tim Mitchell

Changes by Tim Mitchell :


Added file: 
http://bugs.python.org/file44611/0001-issue27946-Hold-reference-to-dict-in-PyDict_GetItem.patch

___
Python tracker 

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



[issue28024] fileinput causes RecursionErrors when dealing with large numbers of empty files

2016-09-12 Thread Berker Peksag

Changes by Berker Peksag :


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



[issue27946] issues in elementtree and elsewhere due to PyDict_GetItem

2016-09-12 Thread Robert Collins

Robert Collins added the comment:

Please add the reproducer as a test case (in test_dict.py I think) - even 
though it needs elementree to trigger it is a dict bug :).

I also wonder if there are similar cases lying under other C collections like 
list, tuple and set. E.g. list.find() calls obj.__eq__, and so on.

--
nosy: +rbcollins

___
Python tracker 

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



[issue28024] fileinput causes RecursionErrors when dealing with large numbers of empty files

2016-09-12 Thread Josh Rosenberg

Josh Rosenberg added the comment:

Ah. System I was working on when I checked this didn't have latest micro 
release. Guess I can recheck when it gets updated.

--

___
Python tracker 

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



[issue27946] issues in elementtree and elsewhere due to PyDict_GetItem

2016-09-12 Thread Tim Mitchell

Tim Mitchell added the comment:

see also similar dict issue 27945

--

___
Python tracker 

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



[issue28024] fileinput causes RecursionErrors when dealing with large numbers of empty files

2016-09-12 Thread Berker Peksag

Changes by Berker Peksag :


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



[issue27946] issues in elementtree and elsewhere due to PyDict_GetItem

2016-09-12 Thread Tim Mitchell

Tim Mitchell added the comment:

see also similar dict issue 27945

--

___
Python tracker 

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



[issue28024] fileinput causes RecursionErrors when dealing with large numbers of empty files

2016-09-12 Thread Duane Griffin

Duane Griffin added the comment:

This was fixed in 2.7, 3.5 and head when #15068 was fixed.

--
nosy: +duaneg, serhiy.storchaka

___
Python tracker 

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



[issue20140] UnicodeDecodeError in ntpath.py when home dir contains non-ascii signs

2016-09-12 Thread Robert Collins

Robert Collins added the comment:

Given two (or more) parameters where one is unicode and one is not, upcasting 
will occur multiples times in path.join on windows: 
 - '\\' is str and will cast up safely in all codecs
 - the other str (or bytes) parameter will be upcast using sys.defaultencoding 
which is often / usually ASCII on Windows

This will then fail when the str parameter is not valid ASCII.

>From this we can conclude that this is a failure to use path.join correctly: 
>if all the parameters passed in were unicode, no error would occur as only 
>'\\' would be getting coerced to unicode.

The interesting question is why there was a str parameter that wasn't valid 
ASCII; and that lies with path.expanduser() which is returning a str for the 
non-ascii home directory.

Changing that to return unicode rather than a no-encoding specified str when 
HOME or HOMEPATH etc etc contain non-ascii characters is a change that would 
worry me - specifically that we'd encounter code that assumes it is always str, 
e.g. by calling path.join(expanduser('~fred'), '\xe1\xbd\x84D') which will then 
blow up.

Worth noting too is that 

 expanduser(u'~user/\u14ffd')

will also blow up in the same way in the same situation - as it ends up 
decoding the user home path when it concatenates userhome and path[i:].

So, what to do:
 - It might be worth testing a patch that changes expanduser to decode the 
environment variables - I'm not sure whether we'd want the filesystemencoding 
or the defaultencoding for handling these environment variables. Steve Dower 
probably knows :).
 - Or we say 'sorry, too hard in 2.7' and move on: join *itself* is fine here, 
given the limits of 2.7.

--
nosy: +rbcollins, steve.dower

___
Python tracker 

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



[issue17188] Document 'from None' in raise statement doc.

2016-09-12 Thread Thomi Richards

Thomi Richards added the comment:

OK, it seems that patch applies cleanly to 3.5 and 3.6.

--

___
Python tracker 

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



[issue25895] urllib.parse.urljoin does not handle WebSocket URLs

2016-09-12 Thread Markus Holtermann

Changes by Markus Holtermann :


Added file: 
http://bugs.python.org/file44609/0001-Enable-WebSocket-URL-schemes-in-urllib.parse.urljoin.3.6.patch

___
Python tracker 

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



[issue25895] urllib.parse.urljoin does not handle WebSocket URLs

2016-09-12 Thread Markus Holtermann

Changes by Markus Holtermann :


Added file: 
http://bugs.python.org/file44610/0001-Enable-WebSocket-URL-schemes-in-urllib.parse.urljoin.master.patch

___
Python tracker 

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



[issue25895] urllib.parse.urljoin does not handle WebSocket URLs

2016-09-12 Thread Markus Holtermann

Changes by Markus Holtermann :


Added file: 
http://bugs.python.org/file44608/0001-Enable-WebSocket-URL-schemes-in-urllib.parse.urljoin.3.5.patch

___
Python tracker 

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



[issue17188] Document 'from None' in raise statement doc.

2016-09-12 Thread Thomi Richards

Thomi Richards added the comment:

I have attached a patch for 3.4, based on the patch submitted by Nitika 
Agarwal. The main difference is that I think it's better to be explicit and 
show a separate example of `raise X from None`.

I will submit a patch for later versions as well.

--
nosy: +thomir
Added file: http://bugs.python.org/file44607/issue17188_3.4.patch

___
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-09-12 Thread Robert Collins

Changes by Robert Collins :


--
nosy: +rbcollins

___
Python tracker 

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



[issue28109] What's new item for PEP 526 -- Variable annotations

2016-09-12 Thread Guido van Rossum

Guido van Rossum added the comment:

Patch LGTM.

--

___
Python tracker 

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



[issue25895] urllib.parse.urljoin does not handle WebSocket URLs

2016-09-12 Thread Markus Holtermann

Markus Holtermann added the comment:

As discussed with rbcollins during the KiwiPyCon sprints, I'll add patches for 
3.5, 3.6 and master with docs mentioning the addition of `ws` and `wss`  as of 
3.5.3

--
nosy: +MarkusH

___
Python tracker 

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



[issue28109] What's new item for PEP 526 -- Variable annotations

2016-09-12 Thread Ivan Levkivskyi

Ivan Levkivskyi added the comment:

Second update, implemented comments by Yury an Guido.

--
Added file: http://bugs.python.org/file44606/whats-new-pep-526-v3.diff

___
Python tracker 

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



[issue27946] issues in elementtree and elsewhere due to PyDict_GetItem

2016-09-12 Thread Tim Mitchell

Tim Mitchell added the comment:

Verified problem.  Added patch to keep reference to dict in PyDict_GetItem.

--
keywords: +patch
nosy: +Tim Mitchell
Added file: 
http://bugs.python.org/file44605/0001-issue27946-Hold-reference-to-dict-in-PyDict_GetItem.patch

___
Python tracker 

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



[issue16384] import.c doesn't handle EOFError from PyMarshal_Read*

2016-09-12 Thread Eric Snow

Eric Snow added the comment:

With issue #28007 wrapped up, there isn't a lot left to do here.  I was 
considering that we don't want to abort when we have problems loading a codec 
during startup.  However, Steve Dower made the point to me that a problem with 
the main codec during startup should be fatal.  Consequently I'm closing this 
bug.

--
resolution:  -> duplicate
stage: patch review -> resolved
status: open -> closed
superseder:  -> Bad .pyc files prevent import of otherwise valid .py files.

___
Python tracker 

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



[issue25895] urllib.parse.urljoin does not handle WebSocket URLs

2016-09-12 Thread Robert Collins

Robert Collins added the comment:

It is a bugfix, but we should document when it started working using the 
version added segment IMO. I think addding this to 3.6 now would be ok.

--
nosy: +rbcollins

___
Python tracker 

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



[issue28040] compact dict : SystemError: returned NULL without setting an error.

2016-09-12 Thread Stefan Krah

Stefan Krah added the comment:

It could still be a stack overflow, but on the surface it does
not look like one. It's definitely related to the aforementioned
revision:

==3442== Invalid read of size 8
==3442==at 0x49DBD8: _PyDict_Pop (dictobject.c:1743)
==3442==by 0x4A0BE2: dict_pop (dictobject.c:2732)
==3442==by 0x4AA5F8: _PyCFunction_FastCallDict (methodobject.c:229)
==3442==by 0x4AA70B: _PyCFunction_FastCallKeywords (methodobject.c:267)
==3442==by 0x55FE63: call_function (ceval.c:4794)
==3442==by 0x55AA82: _PyEval_EvalFrameDefault (ceval.c:3267)
==3442==by 0x54D9CC: PyEval_EvalFrameEx (ceval.c:718)
==3442==by 0x560123: _PyFunction_FastCall (ceval.c:4876)
==3442==by 0x56023B: fast_function (ceval.c:4906)
==3442==by 0x55FF91: call_function (ceval.c:4815)
==3442==by 0x55AA82: _PyEval_EvalFrameDefault (ceval.c:3267)
==3442==by 0x54D9CC: PyEval_EvalFrameEx (ceval.c:718)
==3442==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3442== 
==3442== 
==3442== Process terminating with default action of signal 11 (SIGSEGV)
==3442==  Access not within mapped region at address 0x0
==3442==at 0x49DBD8: _PyDict_Pop (dictobject.c:1743)
==3442==by 0x4A0BE2: dict_pop (dictobject.c:2732)
==3442==by 0x4AA5F8: _PyCFunction_FastCallDict (methodobject.c:229)
==3442==by 0x4AA70B: _PyCFunction_FastCallKeywords (methodobject.c:267)
==3442==by 0x55FE63: call_function (ceval.c:4794)
==3442==by 0x55AA82: _PyEval_EvalFrameDefault (ceval.c:3267)
==3442==by 0x54D9CC: PyEval_EvalFrameEx (ceval.c:718)
==3442==by 0x560123: _PyFunction_FastCall (ceval.c:4876)
==3442==by 0x56023B: fast_function (ceval.c:4906)
==3442==by 0x55FF91: call_function (ceval.c:4815)
==3442==by 0x55AA82: _PyEval_EvalFrameDefault (ceval.c:3267)
==3442==by 0x54D9CC: PyEval_EvalFrameEx (ceval.c:718)

--

___
Python tracker 

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



[issue6858] IDLE: allow syntax highlighting of files without .py extension

2016-09-12 Thread ppperry

Changes by ppperry :


--
title: This is a python file, apply syntax highlighting -> IDLE: allow syntax 
highlighting of files without .py extension

___
Python tracker 

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



[issue28007] Bad .pyc files prevent import of otherwise valid .py files.

2016-09-12 Thread Eric Snow

Eric Snow added the comment:

I was going to ask Ned, but I'm fine with holding off until 3.7. :)

--

___
Python tracker 

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



[issue28108] Python configure fails to detect tzname on platforms that have it.

2016-09-12 Thread Alexander Belopolsky

Alexander Belopolsky added the comment:

> I don't think tzname is really all that useful.

I agree. More so after issue 25283 (Make tm_gmtoff and tm_zone available on all 
platforms).  That's why I don't see why the time module need to set tzname to 
anything other than what the C library does.

Interestingly, glibc may even change tzname[0] as a side-effect of calling  
localtime:

(on Linux)
$ cat lt.c
#include 
#include 


int main() {
  struct tm tm = {0, 0, 0, 1, 1, -100};
  time_t t;
  t = mktime();
  localtime();
  printf("%s/%s  %d %d\n", tzname[0], tzname[1], timezone, daylight);
  t = 0;
  localtime();
  printf("%s/%s  %d %d\n", tzname[0], tzname[1], timezone, daylight);
}

$ gcc lt.c -o lt
$ ./lt
LMT/EDT  18000 1
EST/EDT  18000 1

I think that's a bug in glibc because it makes no sense to change tzname[0] 
while not updating timezone.

--

___
Python tracker 

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



[issue28108] Python configure fails to detect tzname on platforms that have it.

2016-09-12 Thread Marc-Andre Lemburg

Marc-Andre Lemburg added the comment:

> The real issue is that when setting the tzname tuple in the time module, we 
> use a guess based on the value of tm_zone probed in June and January.  I am 
> not sure whether this is wise.  Shouldn't we just use C tzname is it is 
> available?

I don't think tzname is really all that useful. In mxDateTime,
I use strftime() with "%Z" to obtain the timezone string for
a given local time.

tzname tries to identify non-DST vs. DST of the local time zone,
but this may fail for cases where a country switches DST settings
in a particular year as it happened in Russia:

https://www.timeanddate.com/time/zone/russia/moscow

--

___
Python tracker 

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



[issue28108] Python configure fails to detect tzname on platforms that have it.

2016-09-12 Thread Alexander Belopolsky

Alexander Belopolsky added the comment:

The real issue is that when setting the tzname tuple in the time module, we use 
a guess based on the value of tm_zone probed in June and January.  I am not 
sure whether this is wise.  Shouldn't we just use C tzname is it is available?

--

___
Python tracker 

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



[issue28040] compact dict : SystemError: returned NULL without setting an error.

2016-09-12 Thread STINNER Victor

STINNER Victor added the comment:

I didn't see any segfault on the Python test suite on buildbots. It's
either a bug in Blaze (Python C API change like METH_CALL) or a real bug in
CPython. It's a beta, we can fix bugs later :-)

--

___
Python tracker 

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



[issue28007] Bad .pyc files prevent import of otherwise valid .py files.

2016-09-12 Thread Brett Cannon

Brett Cannon added the comment:

I don't think we should try and squeeze this in for 3.6 since we have now hit 
beta and this is a feature since this is changing semantics that date back to 
Python 2. I'm going to go ahead and change the target to 3.7.

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



[issue26182] Deprecation warnings for the future async and await keywords in Python 3.6

2016-09-12 Thread Brett Cannon

Brett Cannon added the comment:

I'm fine with it being in b2 because IMO the warning really should make it in 
3.6 and for stuff like this it's more critical to hit the RC for people's 
testing than the beta to work out semantic changes.

--

___
Python tracker 

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



[issue28108] Python configure fails to detect tzname on platforms that have it.

2016-09-12 Thread Marc-Andre Lemburg

Marc-Andre Lemburg added the comment:

If you want to separately check for the definition of tzname,
I guess you have to add a AC_DEFINE() section specifically
for tzname.

--

___
Python tracker 

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



[issue28040] compact dict : SystemError: returned NULL without setting an error.

2016-09-12 Thread Ned Deily

Ned Deily added the comment:

Yes, he's had a *long* day.  I'll take your advice, Stefan.  Thanks.

--

___
Python tracker 

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



[issue28007] Bad .pyc files prevent import of otherwise valid .py files.

2016-09-12 Thread Eric Snow

Changes by Eric Snow :


Removed file: http://bugs.python.org/file44601/issue28007.diff

___
Python tracker 

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



[issue28007] Bad .pyc files prevent import of otherwise valid .py files.

2016-09-12 Thread Eric Snow

Changes by Eric Snow :


Added file: http://bugs.python.org/file44604/issue28007.diff

___
Python tracker 

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



[issue28040] compact dict : SystemError: returned NULL without setting an error.

2016-09-12 Thread Stefan Krah

Stefan Krah added the comment:

If Victor can't reply now (it's getting late in Europe), I'd just release.  
Pretend that I set it to deferred blocker. :)

--
priority: release blocker -> deferred blocker

___
Python tracker 

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



[issue28109] What's new item for PEP 526 -- Variable annotations

2016-09-12 Thread Ivan Levkivskyi

Ivan Levkivskyi added the comment:

Updated patch

--
Added file: http://bugs.python.org/file44603/whats-new-pep-526-v2.diff

___
Python tracker 

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



[issue28110] launcher.msi has different product codes between 32 and 64-bit

2016-09-12 Thread Steve Dower

Changes by Steve Dower :


--
title: py launcher has different product codes between 32 and 64-bit -> 
launcher.msi has different product codes between 32 and 64-bit

___
Python tracker 

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



[issue28110] py launcher has different product codes between 32 and 64-bit

2016-09-12 Thread Steve Dower

New submission from Steve Dower:

The launcher.msi file that is part of 3.6.0b1 is different between the 32-bit 
and 64-bit release - specifically, a different product code.

This means that when you install one followed by the other, it will insist on 
updating the launcher even though the are the same. This may cause unnecessary 
UAC prompts.

Other than this, there aren't any ill effects. But they're supposed to be using 
the same product code, so I need to investigate why they are different.

--
assignee: steve.dower
components: Windows
messages: 276113
nosy: paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
stage: needs patch
status: open
title: py launcher has different product codes between 32 and 64-bit
type: behavior
versions: Python 3.6

___
Python tracker 

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



[issue28108] Python configure fails to detect tzname on platforms that have it.

2016-09-12 Thread Alexander Belopolsky

Alexander Belopolsky added the comment:

> HAVE_TZNAME is only set iff struct tm does not have a tm_zone member ...

I've figured that much from reading the generated configure script, but thanks 
for the pointer to the documentation.

--

___
Python tracker 

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



[issue28108] Python configure fails to detect tzname on platforms that have it.

2016-09-12 Thread Marc-Andre Lemburg

Marc-Andre Lemburg added the comment:

Looking at the autoconf documentation, HAVE_TZNAME is only set iff struct tm 
does not have a tm_zone member *and* the external array tzname is found:

https://www.gnu.org/software/autoconf/manual/autoconf-2.64/html_node/Particular-Structures.html

If the struct tm does have a tm_zone member (which it does on Linux), the check 
for tzname is not even run.

--

___
Python tracker 

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



[issue28109] What's new item for PEP 526 -- Variable annotations

2016-09-12 Thread Ned Deily

Changes by Ned Deily :


--
nosy: +ned.deily

___
Python tracker 

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



[issue28040] compact dict : SystemError: returned NULL without setting an error.

2016-09-12 Thread Ned Deily

Ned Deily added the comment:

OK, thanks, Stefan!  OK with you, Victor?

--

___
Python tracker 

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



[issue28109] What's new item for PEP 526 -- Variable annotations

2016-09-12 Thread Guido van Rossum

Guido van Rossum added the comment:

This should probably wait until b1 is released; it looks like What's New is 
mostly empty anyways. The release manager needs to focus on the release.

--

___
Python tracker 

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



[issue28040] compact dict : SystemError: returned NULL without setting an error.

2016-09-12 Thread Stefan Krah

Stefan Krah added the comment:

I'm not sure. In the Blaze test suite, 1e7b636b6009 has the SystemError.
4a5b61b0d090 segfaults.

Blaze is pushing Python's dynamic capabilities to absolute limits,
so perhaps this is specific to a few applications only.


For Blaze *itself* there is no difference whether this is fixed now
or in the next beta.  So releasing 3.6.0b1  now and setting this back
to blocker afterwards sounds good to me.

--

___
Python tracker 

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



[issue28040] compact dict : SystemError: returned NULL without setting an error.

2016-09-12 Thread Ned Deily

Ned Deily added the comment:

The immediate question is: is this serious enough to block 3.6.0b1 or can it 
wait for b2?   The b1 bits are just about ready to be published.

--

___
Python tracker 

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



[issue28040] compact dict : SystemError: returned NULL without setting an error.

2016-09-12 Thread Stefan Krah

Stefan Krah added the comment:

Yes, I'm sure. I even cloned a fresh repo. Also, I tested in
release mode (not --with-pydebug).


https://github.com/blaze/blaze

--

___
Python tracker 

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



[issue28109] What's new item for PEP 526 -- Variable annotations

2016-09-12 Thread Ivan Levkivskyi

New submission from Ivan Levkivskyi:

The attached patch contains a simple item summarizing PEP 526 in 3.6 What's New.

--
assignee: docs@python
components: Documentation
files: whats-new-pep-526.diff
keywords: patch
messages: 276105
nosy: docs@python, gvanrossum, levkivskyi
priority: normal
severity: normal
status: open
title: What's new item for PEP 526 -- Variable annotations
versions: Python 3.6
Added file: http://bugs.python.org/file44602/whats-new-pep-526.diff

___
Python tracker 

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



[issue28040] compact dict : SystemError: returned NULL without setting an error.

2016-09-12 Thread STINNER Victor

STINNER Victor added the comment:

> The Blaze test suite segfaults with 4a5b61b0d090.

What is the Blaze test suite?

Are you sure that you really recompiled Python from scratch? Try:

make distclean && ./configure --with-pydebug && make

--

___
Python tracker 

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



[issue28040] compact dict : SystemError: returned NULL without setting an error.

2016-09-12 Thread Stefan Krah

Stefan Krah added the comment:

The Blaze test suite segfaults with 4a5b61b0d090.

--
nosy: +skrah

___
Python tracker 

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



[issue28106] [Benchmarks] Add --testonly argument to perf.py to run benchmarks only for correctness checking

2016-09-12 Thread STINNER Victor

STINNER Victor added the comment:

Please use the new benchmark suite: https://github.com/python/performance

performance already has such option: --debug-single-sample. It's already used 
by runtests.py which is run by tox and automatically by Travis CI. Enjoy!

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

___
Python tracker 

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



[issue27213] Rework CALL_FUNCTION* opcodes

2016-09-12 Thread STINNER Victor

STINNER Victor added the comment:

Thanks for the report, warning fixed in the issue #28105.

--

___
Python tracker 

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



  1   2   3   >