[issue6259] ctypes pointer arithmetic

2015-10-10 Thread Chris Angelico

Chris Angelico added the comment:

Nudging this as a forgotten patch. Is anyone at all interested in this, or 
should it be closed as not worth the hassle? The patch is ancient and doesn't 
apply to 3.6.

Propose closing, to clean up the tracker. It can always be reopened if the 
patch is updated to current.

--
nosy: +Rosuav

___
Python tracker 

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



[issue25375] Don't mention 2.2 in the 3.x docs

2015-10-10 Thread Roundup Robot

Roundup Robot added the comment:

New changeset a81b47fb5848 by Benjamin Peterson in branch '2.7':
don't mention Python 2.2 (closes #25375)
https://hg.python.org/cpython/rev/a81b47fb5848

New changeset 275d388ca1fc by Benjamin Peterson in branch '3.4':
don't mention Python 2.2 (closes #25375)
https://hg.python.org/cpython/rev/275d388ca1fc

New changeset 0017245ff5ce by Benjamin Peterson in branch 'default':
merge 3.5 (#25375)
https://hg.python.org/cpython/rev/0017245ff5ce

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



[issue25375] Don't mention 2.2 in the 3.x docs

2015-10-10 Thread Chris Angelico

New submission from Chris Angelico:

See: https://mail.python.org/pipermail/python-list/2015-October/697818.html

Saying "In Python 2.2" is not helpful in the 3.x docs. Even in the 2.x docs, 
it's pretty safe to assume by now that everyone's on 2.2+. (At very least, 
"Since" would be better than "If".) Patch attached.

I suspect that a lot of that FAQ is outdated now, though.

--
assignee: docs@python
components: Documentation
files: no_mention_2.2.patch
keywords: patch
messages: 252769
nosy: Rosuav, docs@python
priority: normal
severity: normal
status: open
title: Don't mention 2.2 in the 3.x docs
Added file: http://bugs.python.org/file40750/no_mention_2.2.patch

___
Python tracker 

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



[issue22228] Adapt bash readline operate-and-get-next function

2015-10-10 Thread Chris Angelico

Chris Angelico added the comment:

Any other interest in this? It'd be nice to get this in trunk and start being 
able to recommend it to people.

--

___
Python tracker 

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



[issue18769] argparse remove subparser

2015-10-10 Thread Chris Angelico

Chris Angelico added the comment:

Patch applies cleanly to 3.6 and doesn't appear to add any new test failures 
(3.6 currently has a couple). Needs its own test, though.

--
nosy: +Rosuav
versions: +Python 3.6 -Python 3.5

___
Python tracker 

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



[issue20216] Misleading docs for sha1, sha256, sha512, md5 modules

2015-10-10 Thread Chris Angelico

Chris Angelico added the comment:

"bytes of binary data" seems redundant - how about just "byte string"? 
Otherwise, sure.

--
nosy: +Rosuav

___
Python tracker 

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



[issue15999] Using new 'bool' format character

2015-10-10 Thread Chris Angelico

Chris Angelico added the comment:

Has this been entirely superseded by Argument Clinic?

--
nosy: +Rosuav

___
Python tracker 

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



[issue12813] uuid4 is not tested if a uuid4 system routine isn't present

2015-10-10 Thread Chris Angelico

Chris Angelico added the comment:

3.6 doesn't have this check, so I would say that yes, this has indeed been 
fixed. Issue can be closed fixed.

--
nosy: +Rosuav

___
Python tracker 

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



[issue24575] timemodule build fail - missing definitions for _Py_BEGIN_SUPPRESS_IPH and _Py_END_SUPPRESS_IPH

2015-10-10 Thread Ilya Kulakov

Ilya Kulakov added the comment:

Why is it important to hide these 2 macroses behind Py_BUILD_CORE?

Certain tools for embedding python may try to compile modules independently. I 
realize that it's not a problem of Python to take care of that, but in that 
particular case if hiding these 2 macroses behind Py_BUILD_CORE is not 
required, it may help to retain compatibility with such tools.

--
nosy: +Ilya.Kulakov

___
Python tracker 

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



[issue25303] Add option to py_compile to compile for syntax checking without writing bytecode

2015-10-10 Thread Pavel Roskin

Pavel Roskin added the comment:

Thank you for the comments. I was annoyed by py_compile making files with names 
very similar to the original scripts, names that could not even be recognized 
by shell patterns in .gitignore unless scripts ending with "c" are banned. But 
that problem is addressed in Python 3. I don't really care what files are in 
__pycache__, I won't have that urge to remove them. And then I simply was 
annoyed by the fact that py_compile was ignoring my attempts to suppress its 
output. Now I understand the reason for that. Migrating to Python 3 would 
address my original problem with strange looking cache files. I'm going to 
close this issue.

--
nosy: +Pavel Roskin

___
Python tracker 

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



[issue25372] load_module() does not link submodule to parent package

2015-10-10 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis :


--
nosy: +Arfrever

___
Python tracker 

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



[issue25372] load_module() does not link submodule to parent package

2015-10-10 Thread Martin Panter

Martin Panter added the comment:

I don’t think it is a regression. But it is annoying, because my code that 
works fine for top-level modules and packages happens to screw up the import 
system for deeper-level module names.

--

___
Python tracker 

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



[issue25367] test_coroutines fails with --without-threads

2015-10-10 Thread Guido van Rossum

Guido van Rossum added the comment:

Can one of you produce a proper patch? Then the other can review. Serhiy can 
commit it.

--

___
Python tracker 

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



[issue25372] load_module() does not link submodule to parent package

2015-10-10 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
nosy: +brett.cannon, eric.snow, ncoghlan

___
Python tracker 

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



[issue25367] test_coroutines fails with --without-threads

2015-10-10 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

You also can use special helper: test.support.import_module().

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue25374] Deficiencies in type hint usage in Python standard libraries

2015-10-10 Thread John Michael Lafayette

New submission from John Michael Lafayette:

I love the new type hint feature in Jetbrains IDE (PEP 0484). Now when my user 
defined methods return a value, I can press (Crtl+space) and see the type of 
that value and all its methods. Also, when I pass the wrong type in, I get a 
warning. 

Oddly, this does not happen with Python standard library functions. I can't get 
the auto-complete on objects returned by the Python standard library. The 
Python standard library doesn't warn me in advance if I put the wrong type in a 
method. How does that make sense? Please support PEP 0484 by using it in the 
Python standard library where appropriate.

--
assignee: docs@python
components: Documentation
messages: 252758
nosy: John Michael Lafayette, docs@python
priority: normal
severity: normal
status: open
title: Deficiencies in type hint usage in Python standard libraries
type: behavior

___
Python tracker 

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



[issue25373] test.regrtest: -jN (with N != 1) + --slow + child error or interruption = TypeError

2015-10-10 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis :


Added file: http://bugs.python.org/file40749/regrtest-3.6.patch

___
Python tracker 

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



[issue25373] test.regrtest: -jN (with N != 1) + --slow + child error or interruption = TypeError

2015-10-10 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis :


Added file: http://bugs.python.org/file40748/regrtest-3.5.patch

___
Python tracker 

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



[issue25373] test.regrtest: -jN (with N != 1) + --slow + child error or interruption = TypeError

2015-10-10 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis :


Added file: http://bugs.python.org/file40747/regrtest-3.4.patch

___
Python tracker 

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



[issue25373] test.regrtest: -jN (with N != 1) + --slow + child error or interruption = TypeError

2015-10-10 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis :


--
keywords: +patch
Added file: http://bugs.python.org/file40746/regrtest-2.7.patch

___
Python tracker 

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



[issue25373] test.regrtest: -jN (with N != 1) + --slow + child error or interruption = TypeError

2015-10-10 Thread Arfrever Frehtes Taifersar Arahesis

New submission from Arfrever Frehtes Taifersar Arahesis:

Function runtest() (used by single-process mode) always returns tuple with test 
result as integer and test time as float.
This tuple is passed as second argument to function accumulate_result(), which 
has (in Python 3.6):
def accumulate_result(self, test, result):
ok, test_time = result
self.test_times.append((test_time, test))

test_times is later used by code, which expects that times are floats:
if self.ns.print_slow:
self.test_times.sort(reverse=True)
print("10 slowest tests:")
for time, test in self.test_times[:10]:
print("%s: %.1fs" % (test, time))

Code used by multi-process mode can return tuple with integer and string 
(describing error in subprocess), which with --slow option would cause 
TypeError.


Example:

In terminal 1:
$ LD_LIBRARY_PATH="$(pwd)" ./python -m test.regrtest -j2 --slow test_lib2to3

In terminal 2 (sufficiently quickly):
$ kill -SIGINT $(ps aux | grep '"test_lib2to3"' | grep -v grep | awk '{print 
$2}')

Output in terminal 1:

Test suite interrupted by signal SIGINT.
1 test omitted:
test_lib2to3
10 slowest tests:
Traceback (most recent call last):
  File "/tmp/cpython/Lib/runpy.py", line 170, in _run_module_as_main
"__main__", mod_spec)
  File "/tmp/cpython/Lib/runpy.py", line 85, in _run_code
exec(code, run_globals)
  File "/tmp/cpython/Lib/test/regrtest.py", line 39, in 
main_in_temp_cwd()
  File "/tmp/cpython/Lib/test/libregrtest/main.py", line 451, in 
main_in_temp_cwd
main()
  File "/tmp/cpython/Lib/test/libregrtest/main.py", line 429, in main
Regrtest().main(tests=tests, **kwargs)
  File "/tmp/cpython/Lib/test/libregrtest/main.py", line 389, in main
self.display_result()
  File "/tmp/cpython/Lib/test/libregrtest/main.py", line 261, in display_result
print("%s: %.1fs" % (test, time))
TypeError: a float is required


My suggested fix is to return string describing error as third element of that 
tuple.

--
components: Tests
messages: 252757
nosy: Arfrever, haypo
priority: normal
severity: normal
status: open
title: test.regrtest: -jN (with N != 1) + --slow + child error or interruption 
= TypeError
versions: Python 2.7, 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



[issue25367] test_coroutines fails with --without-threads

2015-10-10 Thread Arfrever Frehtes Taifersar Arahesis

Arfrever Frehtes Taifersar Arahesis added the comment:

It works.
A more standard way would be 'self.skipTest(...)' instead of 'raise 
unittest.SkipTest(...)'.

--

___
Python tracker 

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



[issue25372] load_module() does not link submodule to parent package

2015-10-10 Thread R. David Murray

R. David Murray added the comment:

I'm no expert on pep 302 either, but I'm guessing this is an intentional part 
of the design.  You'll note that updating the namespace is *not* mentioned as 
one of the things load_module has to do.  The update of the namespace is 
something the import system as a whole implements, and I'm not sure where it 
happens (probably __import__/import_module).

Unless you are saying that this is a regression, it doesn't really matter if it 
was intentional or not, since if it is not a regression then it's been that way 
for a long time.

--
nosy: +r.david.murray

___
Python tracker 

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



[issue25372] load_module() does not link submodule to parent package

2015-10-10 Thread Pathangi Jatinshravan

Pathangi Jatinshravan added the comment:

Hi, if this is not too critical of a bug, can I be assigned to this issue?

--
nosy: +Pathangi Jatinshravan

___
Python tracker 

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



[issue25372] load_module() does not link submodule to parent package

2015-10-10 Thread Martin Panter

New submission from Martin Panter:

The load_module() API adds an entry to sys.modules when loading a submodule, 
but does not add the submodule as an attribute in the parent package. I am no 
expert on PEP 302 or the import system, but this feels like a bug to me:

>>> import sys, pkgutil
>>> loader = pkgutil.find_loader("xml.etree")
>>> loader.load_module("xml.etree")

>>> sys.modules["xml.etree"]  # Entry added, per documentation and PEP 302

>>> hasattr(sys.modules["xml"], "etree")  # But not linked to parent!
False
>>> import xml.etree
>>> xml.etree  # Broken :(
Traceback (most recent call last):
  File "", line 1, in 
AttributeError: 'module' object has no attribute 'etree'

--
messages: 252753
nosy: martin.panter
priority: normal
severity: normal
status: open
title: load_module() does not link submodule to parent package
type: behavior
versions: Python 2.7, 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



[issue25362] In threading module, use with instead of try finally

2015-10-10 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 9049134eecae by Benjamin Peterson in branch '2.7':
use the with statement for locking the internal condition (closes #25362)
https://hg.python.org/cpython/rev/9049134eecae

New changeset 62e87422a1a9 by Benjamin Peterson in branch '3.4':
use the with statement for locking the internal condition (closes #25362)
https://hg.python.org/cpython/rev/62e87422a1a9

New changeset 794101c6e560 by Benjamin Peterson in branch '3.5':
merge 3.4 (#25362)
https://hg.python.org/cpython/rev/794101c6e560

New changeset 555ab69f071a by Benjamin Peterson in branch 'default':
merge 3.5 (#25362)
https://hg.python.org/cpython/rev/555ab69f071a

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



[issue25371] select.select docstring needs comma

2015-10-10 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 99c82576bb70 by Benjamin Peterson in branch '3.4':
add a missing comma (closes #25371)
https://hg.python.org/cpython/rev/99c82576bb70

New changeset ae98209ff69a by Benjamin Peterson in branch '3.5':
merge 3.4 (#25371)
https://hg.python.org/cpython/rev/ae98209ff69a

New changeset d2d8c1c8c258 by Benjamin Peterson in branch 'default':
merge 3.5 (#25371)
https://hg.python.org/cpython/rev/d2d8c1c8c258

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



[issue25371] select.select docstring needs comma

2015-10-10 Thread Chris Angelico

New submission from Chris Angelico:

The grammar of the IMPORTANT NOTICE on the select module and the select.select 
function wants a comma, I think. Patch attached.

--
assignee: docs@python
components: Documentation
files: add_comma.patch
keywords: patch
messages: 252750
nosy: Rosuav, docs@python
priority: normal
severity: normal
status: open
title: select.select docstring needs comma
Added file: http://bugs.python.org/file40745/add_comma.patch

___
Python tracker 

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



[issue25367] test_coroutines fails with --without-threads

2015-10-10 Thread Guido van Rossum

Guido van Rossum added the comment:

Can you test with this patch?

--
keywords: +patch
Added file: http://bugs.python.org/file40744/coro-skip.diff

___
Python tracker 

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



[issue25177] OverflowError in statistics.mean when summing large floats

2015-10-10 Thread Steven D'Aprano

Steven D'Aprano added the comment:

On Sat, Oct 10, 2015 at 04:28:22PM +, Bar Harel wrote:
> Any comments on the patch?

Not yet, I've been unable to look at it, but thank you. If I haven't 
responded by the 17th of this month, please ping me again.

--

___
Python tracker 

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



[issue25361] Is python-3-5-0.exe compiled with SSE2 instrutions? If so should we mention this?

2015-10-10 Thread eryksun

eryksun added the comment:

Sorry, I forgot to include the link to readme.txt:

[2]: https://hg.python.org/cpython/file/v3.5.0/PCbuild/readme.txt

--

___
Python tracker 

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



[issue25361] Is python-3-5-0.exe compiled with SSE2 instrutions? If so should we mention this?

2015-10-10 Thread eryksun

eryksun added the comment:

Building Python 3.5 requires Visual Studio 2015 and Windows 8.1, so this would 
be a vanishingly small audience that's building to deploy on old 32-bit Windows 
7 machines. I don't think the PSF needs to worry about this. Anyway, the "/arch 
(x86)" docs [1] explain how to configure a project to use IA32, and 
PCBuild/readme.txt [2] explains how to build Python using Visual Studio 2015. I 
know this doesn't really help a novice user; just tell them to install Python 
3.4!

[1]: https://msdn.microsoft.com/en-us/library/7t5yh4fd

--

___
Python tracker 

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



[issue25370] Add support of pickling very large bytes and str objects with protocol < 4

2015-10-10 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

Pickle protocols < 4 allow to pickle bytes and str object with 32-bit size. One 
of features of protocol 4 was the support of 64-bit sizes.

It is possible to add support of very large bytes and str objects with 
protocols 2 and 3. The idea is that the long string is splitted on chunks with 
32-bit sizes and the resulting string is reconstructed with calling ''.join(). 
The main part of the feature can be implemented in Python as helpers in copyreg.

The question is: is it worthwhile to implement this feature? I already 
implemented two other features of protocol 4 for protocols 2 and 3: nested 
objects and __new__ with keyword arguments.

--
components: Extension Modules, Library (Lib)
messages: 252745
nosy: alexandre.vassalotti, pitrou, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Add support of pickling very large bytes and str objects with protocol < 
4
type: enhancement
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



[issue24164] Support pickling objects with __new__ with keyword arguments with protocol 2+

2015-10-10 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Thank you for your review Victor.

--
assignee:  -> serhiy.storchaka
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

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



[issue24164] Support pickling objects with __new__ with keyword arguments with protocol 2+

2015-10-10 Thread Roundup Robot

Roundup Robot added the comment:

New changeset bc5894a3a0e6 by Serhiy Storchaka in branch 'default':
Issue #24164: Objects that need calling ``__new__`` with keyword arguments,
https://hg.python.org/cpython/rev/bc5894a3a0e6

--
nosy: +python-dev

___
Python tracker 

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



[issue25361] Is python-3-5-0.exe compiled with SSE2 instrutions? If so should we mention this?

2015-10-10 Thread Laura Creighton

Laura Creighton added the comment:

Ok, where do we put the info about how to create a private build?  And
who will write it?  (I lack the understanding.) Does it belong in:
https://docs.python.org/3/using/windows.html

or some place else?

--

___
Python tracker 

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



[issue25361] Is python-3-5-0.exe compiled with SSE2 instrutions? If so should we mention this?

2015-10-10 Thread eryksun

eryksun added the comment:

> Windows requires SSE these days, since Vista IIRC, so the problem 
> is probably someone on XP.

Windows 8 is the first to require SSE2 [1][2]. I'm sure it's no coincidence 
that this became the default in VS 2012. 

There is probably a small minority of users that upgraded to 32-bit Windows 7 
on old hardware. Python 3.5 excludes them, but I don't think the build should 
switch to using /arch:IA32 just to support them. If a user on such a system 
really needs 3.5, it's possible to create a private build without SSE2. Most 
packages that have extension modules will also have to be built from source 
instead of using prebuilt wheels.

[1]: http://windows.microsoft.com/en-us/windows7/products/system-requirements
[2]: http://windows.microsoft.com/en-US/windows-8/system-requirements

--

___
Python tracker 

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



[issue24784] Build fails with --with-pydebug and --without-threads

2015-10-10 Thread Arfrever Frehtes Taifersar Arahesis

Arfrever Frehtes Taifersar Arahesis added the comment:

> Call to PyGILState_Check() in Modules/socketmodule.c was introduced in 
> revision 75fcc7a3738a.

Actually that call was moved from another place.

--

___
Python tracker 

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



[issue24784] Build fails with --with-pydebug and --without-threads

2015-10-10 Thread Arfrever Frehtes Taifersar Arahesis

Arfrever Frehtes Taifersar Arahesis added the comment:

Calls to PyGILState_Check() in Python/fileutils.c were introduced in revisions 
0b99d7043a99 and cfe541c694f3.
Call to PyGILState_Check() in Modules/socketmodule.c was introduced in revision 
75fcc7a3738a.

--
assignee:  -> haypo
nosy: +haypo

___
Python tracker 

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



[issue24870] Optimize ascii and latin1 decoder with surrogateescape and surrogatepass error handlers

2015-10-10 Thread INADA Naoki

INADA Naoki added the comment:

UTF-8 and Latin1 are typical encoding for MySQL query.
When inserting BLOB:

# Decode binary data
x = data.decode('ascii', 'surrogateescape')
# %-format query
psql = sql % (escape(x),)  # sql is unicode
# Encode sql to connection encoding (latin1 or utf8)
query_bytes = psql.encode('utf-8', 'surrogateescape')

So decoder speedup is required only for ascii, but encoder speedup is required 
for utf-8 and latin1.

I'll consider other ways including creating speedup module and register it on 
PyPI.

--

___
Python tracker 

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



[issue25369] test_regrtest fails with --without-threads

2015-10-10 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis :


--
keywords: +patch
Added file: http://bugs.python.org/file40743/test_regrtest.patch

___
Python tracker 

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



[issue25369] test_regrtest fails with --without-threads

2015-10-10 Thread Arfrever Frehtes Taifersar Arahesis

New submission from Arfrever Frehtes Taifersar Arahesis:

6 tests of test.test_regrtest.ProgramsTestCase class introduced in revision 
3393d86c3bb2 (in Python >=3.6) fail with --without-threads, because they 
unconditionally use -j4 option, but -jN where N != 1 is not supported with 
--without-threads. They also use --timeout option, which is also not supported 
with --without-threads.

==
FAIL: test_module_autotest (test.test_regrtest.ProgramsTestCase)
--
Traceback (most recent call last):
  File "/tmp/cpython/Lib/test/test_regrtest.py", line 471, in 
test_module_autotest
self.run_tests(args)
  File "/tmp/cpython/Lib/test/test_regrtest.py", line 445, in run_tests
output = self.run_python(args)
  File "/tmp/cpython/Lib/test/test_regrtest.py", line 417, in run_python
proc = self.run_command(args, **kw)
  File "/tmp/cpython/Lib/test/test_regrtest.py", line 411, in run_command
self.fail(msg)
AssertionError: Command ['/tmp/cpython/python', '-X', 'faulthandler', '-I', 
'-Wd', '-E', '-bb', '-m', 'test.autotest', '-uall', '-rwW', '--timeout', 
'3600', '-j4', 'test_regrtest_21191_noop19', 'test_regrtest_21191_noop20', 
'test_regrtest_21191_noop21', 'test_regrtest_21191_noop22'] failed with exit 
code 2

stdout:
---
Using random seed 5351037
Multiprocess option requires thread support

---

stderr:
---
Warning: The timeout option requires faulthandler.dump_traceback_later
---


==

--
assignee: haypo
components: Tests
messages: 252737
nosy: Arfrever, haypo
priority: normal
severity: normal
status: open
title: test_regrtest fails with --without-threads
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



[issue25368] test_eintr fails with --without-threads

2015-10-10 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis :


--
title: test_eintr -> test_eintr fails with --without-threads

___
Python tracker 

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



[issue25368] test_eintr

2015-10-10 Thread Arfrever Frehtes Taifersar Arahesis

New submission from Arfrever Frehtes Taifersar Arahesis:

test.test_eintr.EINTRTests.test_all() fails with --without-threads since 
revision 10efb1797e7b (in Python >=3.6), because 
faulthandler.dump_traceback_later() and 
faulthandler.cancel_dump_traceback_later() are not available with 
--without-threads.

==
FAIL: test_all (test.test_eintr.EINTRTests)
--
Traceback (most recent call last):
  File "/tmp/cpython/Lib/test/test_eintr.py", line 20, in test_all
script_helper.assert_python_ok("-u", tester)
  File "/tmp/cpython/Lib/test/support/script_helper.py", line 135, in 
assert_python_ok
return _assert_python(True, *args, **env_vars)
  File "/tmp/cpython/Lib/test/support/script_helper.py", line 121, in 
_assert_python
err))
AssertionError: Process return code is 1
command line: ['/tmp/cpython/python', '-X', 'faulthandler', '-I', '-u', 
'/tmp/cpython/Lib/test/eintrdata/eintr_tester.py']

stdout:
---
ERROR
ERROR
ERROR
ERROR
ERROR

==
ERROR: setUpClass (__main__.OSEINTRTest)
--
Traceback (most recent call last):
  File "/tmp/cpython/Lib/test/eintrdata/eintr_tester.py", line 55, in setUpClass
faulthandler.dump_traceback_later(10 * 60, exit=True)
AttributeError: module 'faulthandler' has no attribute 'dump_traceback_later'

==
ERROR: setUpClass (__main__.SocketEINTRTest)
--
Traceback (most recent call last):   
  File "/tmp/cpython/Lib/test/eintrdata/eintr_tester.py", line 55, in setUpClass
faulthandler.dump_traceback_later(10 * 60, exit=True)
AttributeError: module 'faulthandler' has no attribute 'dump_traceback_later'

==
ERROR: setUpClass (__main__.TimeEINTRTest)
--
Traceback (most recent call last):
  File "/tmp/cpython/Lib/test/eintrdata/eintr_tester.py", line 55, in setUpClass
faulthandler.dump_traceback_later(10 * 60, exit=True)
AttributeError: module 'faulthandler' has no attribute 'dump_traceback_later'

==
ERROR: setUpClass (__main__.SignalEINTRTest)
--
Traceback (most recent call last):
  File "/tmp/cpython/Lib/test/eintrdata/eintr_tester.py", line 55, in setUpClass
faulthandler.dump_traceback_later(10 * 60, exit=True)
AttributeError: module 'faulthandler' has no attribute 'dump_traceback_later'

==
ERROR: setUpClass (__main__.SelectEINTRTest)
--
Traceback (most recent call last):
  File "/tmp/cpython/Lib/test/eintrdata/eintr_tester.py", line 55, in setUpClass
faulthandler.dump_traceback_later(10 * 60, exit=True)
AttributeError: module 'faulthandler' has no attribute 'dump_traceback_later'

--
Ran 0 tests in 0.004s

FAILED (errors=5)
---

stderr:
---
Traceback (most recent call last):
  File "/tmp/cpython/Lib/test/eintrdata/eintr_tester.py", line 474, in 
test_main()
  File "/tmp/cpython/Lib/test/eintrdata/eintr_tester.py", line 470, in test_main
SelectEINTRTest)
  File "/tmp/cpython/Lib/test/support/__init__.py", line 1809, in run_unittest
_run_suite(suite)
  File "/tmp/cpython/Lib/test/support/__init__.py", line 1784, in _run_suite
raise TestFailed(err)
test.support.TestFailed: multiple errors occurred
---

--

--
assignee: haypo
components: Tests
messages: 252736
nosy: Arfrever, haypo
priority: normal
severity: normal
status: open
title: test_eintr
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



[issue25367] test_coroutines fails with --without-threads

2015-10-10 Thread Arfrever Frehtes Taifersar Arahesis

New submission from Arfrever Frehtes Taifersar Arahesis:

test.test_coroutines.CoroAsyncIOCompatTest.test_asyncio_1() fails with 
--without-threads, because it imports asyncio module, which is known to not 
work with --without-threads.
This test should be skipped when import of asyncio fails.

==
ERROR: test_asyncio_1 (test.test_coroutines.CoroAsyncIOCompatTest)
--
Traceback (most recent call last):
  File "/tmp/cpython/Lib/test/test_coroutines.py", line 1325, in test_asyncio_1
import asyncio
  File "/tmp/cpython/Lib/asyncio/__init__.py", line 21, in 
from .base_events import *
  File "/tmp/cpython/Lib/asyncio/base_events.py", line 18, in 
import concurrent.futures
  File "/tmp/cpython/Lib/concurrent/futures/__init__.py", line 8, in 
from concurrent.futures._base import (FIRST_COMPLETED,
  File "/tmp/cpython/Lib/concurrent/futures/_base.py", line 8, in 
import threading
  File "/tmp/cpython/Lib/threading.py", line 4, in 
import _thread
ImportError: No module named '_thread'

--

--
components: Tests
messages: 252735
nosy: Arfrever, giampaolo.rodola, gvanrossum, haypo, pitrou, yselivanov
priority: normal
severity: normal
status: open
title: test_coroutines fails with --without-threads
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



[issue25194] Opt-in motivations & affiliations page for core contributors

2015-10-10 Thread Ezio Melotti

Ezio Melotti added the comment:

A few comments:

1) In the "Restrictions on scope" section, you could turn "Contributor 
Licensing Agreement" into a link.
2) You call this a "program" in a couple of place, and I'm not sure that's the 
right term (to me "program" sounds like an organized effort brought forward by 
the PSF rather than just a self-compiled list of names).
3) I would have kept the 2 disclosure-related cases separate from the 
availability for paid work, but I guess practicality beats purity and the 
paragraph you added to clarifies the difference does a good-enough job.
4) In the "commercial contacts" bullet point, you could clarify what kind of 
contacts are allowed (e.g. link, email address, phone numbers, company address, 
etc.).
5) Several devs already have a bio page on the wiki.  Instead of repeating it 
here, it might be easier to just add a link to that.  This makes the list 
shorter and easier to read, and allows people to write as much as they want on 
their wiki page.
6) If the bio is moved to the wiki, a more concise table-based approach might 
work better.  The table can include columns for names, affiliations, 
availability for paid work (just a check mark), link to bio, and possibly other 
links.

--

___
Python tracker 

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



[issue25099] test_compileall fails when run by unprivileged user on installed Python

2015-10-10 Thread Roundup Robot

Roundup Robot added the comment:

New changeset fc0a7aa7ae61 by Brett Cannon in branch '3.4':
Issue #25099: Skip relevant tests in test_compileall when an entry on
https://hg.python.org/cpython/rev/fc0a7aa7ae61

--

___
Python tracker 

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



[issue25365] test_pickle fails with --without-threads

2015-10-10 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Thank you for your report Arfrever.

--
resolution:  -> fixed
stage:  -> resolved
status: open -> closed
type:  -> behavior

___
Python tracker 

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



[issue25365] test_pickle fails with --without-threads

2015-10-10 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 1cb9ce2d83d8 by Serhiy Storchaka in branch '3.4':
Issue #25365: test_pickle now works in threads disabled builds.
https://hg.python.org/cpython/rev/1cb9ce2d83d8

New changeset 48cb00431ce6 by Serhiy Storchaka in branch '3.5':
Issue #25365: test_pickle now works in threads disabled builds.
https://hg.python.org/cpython/rev/48cb00431ce6

New changeset 655fd1e9b444 by Serhiy Storchaka in branch 'default':
Issue #25365: test_pickle now works in threads disabled builds.
https://hg.python.org/cpython/rev/655fd1e9b444

--
nosy: +python-dev

___
Python tracker 

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



[issue25361] Is python-3-5-0.exe compiled with SSE2 instrutions? If so should we mention this?

2015-10-10 Thread Laura Creighton

Laura Creighton added the comment:

He says that he got an error saying something was compiled SSE2 and needed to 
be SSE, but if we are going to detect XP then that will be
a better error message.

--

___
Python tracker 

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



[issue25341] File mode wb+ appears as rb+

2015-10-10 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis :


--
nosy: +Arfrever

___
Python tracker 

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



[issue25361] Is python-3-5-0.exe compiled with SSE2 instrutions? If so should we mention this?

2015-10-10 Thread Laura Creighton

Laura Creighton added the comment:

Further conversation has confirmed that the person is on XP.

--

___
Python tracker 

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



[issue24784] Build fails with --with-pydebug and --without-threads

2015-10-10 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis :


--
keywords: +3.5regression
nosy: +Arfrever
title: Build fails --without-threads -> Build fails with --with-pydebug and 
--without-threads
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



[issue25364] zipfile broken with --without-threads

2015-10-10 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Thank you for your report Arfrever.

--
resolution:  -> fixed
stage:  -> resolved
status: open -> closed
type:  -> behavior

___
Python tracker 

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



[issue25364] zipfile broken with --without-threads

2015-10-10 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 15740b3ad148 by Serhiy Storchaka in branch '3.5':
Issue #25364: zipfile now works in threads disabled builds.
https://hg.python.org/cpython/rev/15740b3ad148

New changeset 44b37c3ee76c by Serhiy Storchaka in branch 'default':
Issue #25364: zipfile now works in threads disabled builds.
https://hg.python.org/cpython/rev/44b37c3ee76c

--
nosy: +python-dev

___
Python tracker 

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



[issue25363] x=[1,2,3].append([1,2,3]) bug

2015-10-10 Thread Eric V. Smith

Changes by Eric V. Smith :


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

___
Python tracker 

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



[issue25177] OverflowError in statistics.mean when summing large floats

2015-10-10 Thread Bar Harel

Bar Harel added the comment:

Any comments on the patch?

--

___
Python tracker 

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



[issue25366] test_venv fails with --without-threads

2015-10-10 Thread Arfrever Frehtes Taifersar Arahesis

New submission from Arfrever Frehtes Taifersar Arahesis:

test.test_venv.EnsurePipTest.test_with_pip() fails with --without-threads, 
because some dependencies of PIP (cachecontrol, lockfile) unconditionally 
import threading module.

==
FAIL: test_with_pip (test.test_venv.EnsurePipTest)
--
Traceback (most recent call last):
  File "/tmp/cpython/Lib/test/test_venv.py", line 356, in test_with_pip
with_pip=True)
subprocess.CalledProcessError: Command '['/tmp/tmpgt_wdmiq/bin/python', '-Im', 
'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/tmp/cpython/Lib/test/test_venv.py", line 362, in test_with_pip
self.fail(msg.format(exc, details))
AssertionError: Command '['/tmp/tmpgt_wdmiq/bin/python', '-Im', 'ensurepip', 
'--upgrade', '--default-pip']' returned non-zero exit status 1

**Subprocess Output**
Traceback (most recent call last):
  File "/tmp/cpython/Lib/runpy.py", line 170, in _run_module_as_main
"__main__", mod_spec)
  File "/tmp/cpython/Lib/runpy.py", line 85, in _run_code
exec(code, run_globals)
  File "/tmp/cpython/Lib/ensurepip/__main__.py", line 4, in 
ensurepip._main()
  File "/tmp/cpython/Lib/ensurepip/__init__.py", line 209, in _main
default_pip=args.default_pip,
  File "/tmp/cpython/Lib/ensurepip/__init__.py", line 116, in bootstrap
_run_pip(args + [p[0] for p in _PROJECTS], additional_paths)
  File "/tmp/cpython/Lib/ensurepip/__init__.py", line 40, in _run_pip
import pip
  File "/tmp/tmp1bl0s_61/pip-7.1.2-py2.py3-none-any.whl/pip/__init__.py", line 
15, in 
  File "/tmp/tmp1bl0s_61/pip-7.1.2-py2.py3-none-any.whl/pip/vcs/mercurial.py", 
line 10, in 
  File "/tmp/tmp1bl0s_61/pip-7.1.2-py2.py3-none-any.whl/pip/download.py", line 
44, in 
  File 
"/tmp/tmp1bl0s_61/pip-7.1.2-py2.py3-none-any.whl/pip/_vendor/cachecontrol/__init__.py",
 line 9, in 
  File 
"/tmp/tmp1bl0s_61/pip-7.1.2-py2.py3-none-any.whl/pip/_vendor/cachecontrol/wrapper.py",
 line 1, in 
  File 
"/tmp/tmp1bl0s_61/pip-7.1.2-py2.py3-none-any.whl/pip/_vendor/cachecontrol/adapter.py",
 line 5, in 
  File 
"/tmp/tmp1bl0s_61/pip-7.1.2-py2.py3-none-any.whl/pip/_vendor/cachecontrol/controller.py",
 line 11, in 
  File 
"/tmp/tmp1bl0s_61/pip-7.1.2-py2.py3-none-any.whl/pip/_vendor/cachecontrol/cache.py",
 line 5, in 
  File "/tmp/cpython/Lib/threading.py", line 4, in 
import _thread
ImportError: No module named '_thread'


--

--
components: Tests
messages: 252725
nosy: Arfrever, dstufft, ncoghlan, vinay.sajip
priority: normal
severity: normal
status: open
title: test_venv fails with --without-threads
versions: 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



[issue25363] x=[1,2,3].append([1,2,3]) bug

2015-10-10 Thread Xiang Zhang

Xiang Zhang added the comment:

This is the right behaviour.

x=[1, 2, 3].append([1, 2, 3]) acts as:

x=([1, 2, 3].append([1, 2, 3])

Since append is a in-place operation it return None. Then x is None.

--
nosy: +xiang.zhang

___
Python tracker 

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



[issue25364] zipfile broken with --without-threads

2015-10-10 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
assignee:  -> serhiy.storchaka

___
Python tracker 

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



[issue25365] test_pickle fails with --without-threads

2015-10-10 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
assignee:  -> serhiy.storchaka

___
Python tracker 

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



[issue25099] test_compileall fails when run by unprivileged user on installed Python

2015-10-10 Thread Brett Cannon

Brett Cannon added the comment:

I feel I have already spent way too much time on this issue, but if you want to 
backport even further then feel free to.

--

___
Python tracker 

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



[issue25365] test_pickle fails with --without-threads

2015-10-10 Thread Arfrever Frehtes Taifersar Arahesis

New submission from Arfrever Frehtes Taifersar Arahesis:

test.test_pickle.CompatPickleTests.test_exceptions() test introduced in 
revision 8d86dfe53b97 (in Python >=3.4) fails with --without-threads, because 
it unconditionally imports multiprocessing module, which is known to not work 
with --without-threads.
The last part of this test should probably be skipped when import of 
multiprocessing fails.

==
ERROR: test_exceptions (test.test_pickle.CompatPickleTests)
--
Traceback (most recent call last):
  File "/tmp/cpython/Lib/test/test_pickle.py", line 383, in test_exceptions
import multiprocessing.context
  File "/tmp/cpython/Lib/multiprocessing/__init__.py", line 16, in 
from . import context
  File "/tmp/cpython/Lib/multiprocessing/context.py", line 3, in 
import threading
  File "/tmp/cpython/Lib/threading.py", line 4, in 
import _thread
ImportError: No module named '_thread'

--

--
components: Tests
messages: 252722
nosy: Arfrever, alexandre.vassalotti, pitrou, serhiy.storchaka
priority: normal
severity: normal
status: open
title: test_pickle fails with --without-threads
versions: 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



[issue25342] test_json segfault on OpenBSD

2015-10-10 Thread Stefan Krah

Stefan Krah added the comment:

Adjusting the estimate at runtime 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



[issue25364] zipfile broken with --without-threads

2015-10-10 Thread Arfrever Frehtes Taifersar Arahesis

New submission from Arfrever Frehtes Taifersar Arahesis:

zipfile module unconditionally requires threading module since revision 
4973ccd46e32 (in Python >=3.5), which causes errors in over 50 
Lib/test/test_*.py files.


[  1/399] test_cmd_line
test test_cmd_line crashed -- Traceback (most recent call last):
  File "/tmp/cpython/Lib/test/libregrtest/runtest.py", line 149, in 
runtest_inner
the_module = importlib.import_module(abstest)
  File "/tmp/cpython/Lib/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
  File "", line 986, in _gcd_import
  File "", line 969, in _find_and_load
  File "", line 958, in _find_and_load_unlocked
  File "", line 673, in _load_unlocked
  File "", line 654, in exec_module
  File "", line 222, in _call_with_frames_removed
  File "/tmp/cpython/Lib/test/test_cmd_line.py", line 11, in 
from test.support import script_helper
  File "/tmp/cpython/Lib/test/support/script_helper.py", line 14, in 
import zipfile
  File "/tmp/cpython/Lib/zipfile.py", line 16, in 
import threading
  File "/tmp/cpython/Lib/threading.py", line 4, in 
import _thread
ImportError: No module named '_thread'

--
components: Library (Lib)
keywords: 3.5regression
messages: 252720
nosy: Arfrever, alanmcintyre, serhiy.storchaka, twouters
priority: normal
severity: normal
status: open
title: zipfile broken with --without-threads
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



[issue25363] x=[1,2,3].append([1,2,3]) bug

2015-10-10 Thread grafika

New submission from grafika:

>>> [1,2,3].append([1,2,3])  
>>>  
>>> x=[1,2,3].append([1,2,3])
>>> x
>>> x
>>> type(x)  
   
>>> x=[1,2,3]
>>> x.append([1,2,3])
>>> x
[1, 2, 3, [1, 2, 3]] 
>>>

--
components: Windows
files: pybug.jpg
messages: 252718
nosy: lenivaya10001, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: x=[1,2,3].append([1,2,3]) bug
type: behavior
versions: Python 3.4
Added file: http://bugs.python.org/file40742/pybug.jpg

___
Python tracker 

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



[issue5380] pty.read raises IOError when slave pty device is closed

2015-10-10 Thread Guido van Rossum

Guido van Rossum added the comment:

OK, I'm closing this as won't fix. If someone disagrees please explain.

--
resolution:  -> wont fix
status: open -> closed

___
Python tracker 

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



[issue25362] In threading module, use with instead of try finally

2015-10-10 Thread Nir Soffer

Changes by Nir Soffer :


Added file: 
http://bugs.python.org/file40741/0001-In-threading-module-use-with-instead-of-try-finally.patch

___
Python tracker 

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



[issue25362] In threading module, use with instead of try finally

2015-10-10 Thread Eric V. Smith

Changes by Eric V. Smith :


--
title: Use with instead of try finally -> In threading module, use with instead 
of try finally

___
Python tracker 

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



[issue24940] RotatingFileHandler uses tell in non-binary mode to determine size of the file in bytes

2015-10-10 Thread Vinay Sajip

Vinay Sajip added the comment:

But this is a change in behaviour which might cause people a problem. The way 
it is now, the size may be approximate rather than exact, which is reasonable 
for the use case.

--

___
Python tracker 

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



[issue25362] Use with instead of try finally

2015-10-10 Thread Nir Soffer

New submission from Nir Soffer:

Using "with" is more clear and less error prone.

--
components: Library (Lib)
files: 0001-Use-with-instead-of-try-finally.patch
keywords: patch
messages: 252716
nosy: nirs
priority: normal
severity: normal
status: open
title: Use with instead of try finally
versions: Python 3.6
Added file: 
http://bugs.python.org/file40740/0001-Use-with-instead-of-try-finally.patch

___
Python tracker 

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



[issue25322] contextlib.suppress not tested for nested usage

2015-10-10 Thread R. David Murray

R. David Murray added the comment:

I had no problem understanding that ignored meant the exception had been 
ignored, but making it clearer certainly doesn't hurt.

--

___
Python tracker 

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



[issue25361] Is python-3-5-0.exe compiled with SSE2 instrutions? If so should we mention this?

2015-10-10 Thread Steve Dower

Steve Dower added the comment:

Did that report come with any reason for SSE to be relevant, such as an error 
message or log file?

Windows requires SSE these days, since Vista IIRC, so the problem is probably 
someone on XP.

--

___
Python tracker 

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



[issue25356] Idle (Python 3.4 on Ubuntu) does not allow typing accents

2015-10-10 Thread Gian Carlo Martinelli

Gian Carlo Martinelli added the comment:

@Terry
Using 'Find in Files' (Alt+F3) works fine. I can type everything normally. Also 
in the Output everything is fine.

Apparently the problem is only with diacriticals (I mentioned 'ç', but it is 
working (I have a particular key for that in my keyboard... it is a Brazilian 
keyboard)).

@Serhiy
The problem is both with standalone keys ('`~^) and accented characters (ãẽéáà 
etc)



Today I found a very strange behaviour.

IF I start IDLE with a clean file, everything works fine. 

If then I open a .py file, or save the new file as .py, after 3-5 seconds these 
keys stop working. Very strange...

I hope I was clear in describing this.

@Ankit: check if this behavior is the same for you.

--

___
Python tracker 

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



[issue25361] Is python-3-5-0.exe compiled with SSE2 instrutions? If so should we mention this?

2015-10-10 Thread Laura Creighton

Laura Creighton added the comment:

Okay then, wherever we put the -- Beginning with 3.5 we are not
supporting 3.5 we need to also tell people whose CPUs lack SSE2
that they are out of luck, as well.

--

___
Python tracker 

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



[issue25352] Add 'make this my default python' to windows installs for Python3.5 and later

2015-10-10 Thread Laura Creighton

Laura Creighton added the comment:

Okay, sorry for the noise then.  The problems of not having a windows system to 
check.

--

___
Python tracker 

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



[issue25361] Is python-3-5-0.exe compiled with SSE2 instrutions? If so should we mention this?

2015-10-10 Thread eryksun

eryksun added the comment:

With Visual Studio 2010 and earlier, SSE support had to be explicitly enabled. 
Starting with VS2012 it's on by default [1]:

Because the x86 compiler generates code that uses SSE2 
instructions by default, you must specify /arch:IA32 to 
disable generation of SSE and SSE2 instructions for x86 
processors.

For 3.5, the 32-bit build does use SSE2 instructions. For example, float_add 
uses the addsd instruction (opcode F2 0F 58):

0:000> s python35!float_add l100 f2 0f 58
71f6c5d8  f2 0f 58 44 24 08 8b 0d-84 11 18 72 f2 0f 11 44  ..XD$..r...D
0:000> u 71f6c5d8 l3
python35!float_add+0x98:
71f6c5d8 f20f58442408addsd   xmm0,mmword ptr [esp+8]
71f6c5de 8b0d84111872mov ecx,dword ptr [python35!free_list 
(72181184)]
71f6c5e4 f20f11442410movsd   mmword ptr [esp+10h],xmm0

Thus 3.5 doesn't support older CPUs that lack SSE2, such as the AMD Athlon XP. 
I didn't check the installer itself, but that would be a pointless exercise.

[1]: https://msdn.microsoft.com/en-us/library/7t5yh4fd

--
nosy: +eryksun

___
Python tracker 

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



[issue25322] contextlib.suppress not tested for nested usage

2015-10-10 Thread Martin Panter

Changes by Martin Panter :


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



[issue25161] Missing periods at the end of sentences

2015-10-10 Thread Martin Panter

Martin Panter added the comment:

Thanks very much for the patches.

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



[issue25322] contextlib.suppress not tested for nested usage

2015-10-10 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 452f76cbebdd by Martin Panter in branch '3.4':
Issue #25322: Fix test for nested contextlib.suppress
https://hg.python.org/cpython/rev/452f76cbebdd

New changeset 836ac579e179 by Martin Panter in branch '3.5':
Issue #25322: Merge contextlib.suppress test fix from 3.4 into 3.5
https://hg.python.org/cpython/rev/836ac579e179

New changeset c601496c2829 by Martin Panter in branch 'default':
Issue #25322: Merge contextlib.suppress test fix from 3.5
https://hg.python.org/cpython/rev/c601496c2829

--
nosy: +python-dev

___
Python tracker 

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



[issue25161] Missing periods at the end of sentences

2015-10-10 Thread Roundup Robot

Roundup Robot added the comment:

New changeset b9a0ecae02cb by Martin Panter in branch '2.7':
Issue #25161: Add full stops in documentation; patch by Takase Arihiro
https://hg.python.org/cpython/rev/b9a0ecae02cb

--

___
Python tracker 

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



[issue25352] Add 'make this my default python' to windows installs for Python3.5 and later

2015-10-10 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Desktop shortcuts all have a label.  The 3.4 and 3.5 labels have the python 
version.

--

___
Python tracker 

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



[issue25161] Missing periods at the end of sentences

2015-10-10 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 4dfead9635e5 by Martin Panter in branch '3.4':
Issue #25161: Add full stops in documentation; patch by Takase Arihiro
https://hg.python.org/cpython/rev/4dfead9635e5

New changeset be34d96e2184 by Martin Panter in branch '3.5':
Issue #25161: Merge full stops from 3.4 into 3.5
https://hg.python.org/cpython/rev/be34d96e2184

New changeset fe87a6f9caa7 by Martin Panter in branch 'default':
Issue #25161: Merge full stops from 3.5
https://hg.python.org/cpython/rev/fe87a6f9caa7

--
nosy: +python-dev

___
Python tracker 

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



[issue25361] Is python-3-5-0.exe compiled with SSE2 instrutions? If so should we mention this?

2015-10-10 Thread Laura Creighton

New submission from Laura Creighton:

Another report in to webmaster:
I tried to install Python 3.5.0 from [1]https://www.python.org/ftp/python/
3.5.0/python-3.5.0.exe but I get an error and I'm not able to install, is
this exe compiled with SSE2 instructions? Apparently no msi available

Does this need a mention somewhere?

--
assignee: docs@python
components: Documentation, Installation, Windows
messages: 252703
nosy: docs@python, lac, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Is python-3-5-0.exe compiled with SSE2 instrutions? If so should we 
mention this?
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



[issue25322] contextlib.suppress not tested for nested usage

2015-10-10 Thread Martin Panter

Martin Panter added the comment:

Okay maybe “ignored” wasn’t the best choice of variable name. Perhaps I will 
write “outer_continued = True” instead.

--
assignee:  -> martin.panter
nosy: +berker.peksag
stage:  -> commit review
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



[issue22413] Bizarre StringIO(newline="\r\n") translation

2015-10-10 Thread Martin Panter

Changes by Martin Panter :


--
resolution: wont fix -> 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



[issue5380] pty.read raises IOError when slave pty device is closed

2015-10-10 Thread Xavier de Gaye

Xavier de Gaye added the comment:

The line discipline [1] of a terminal driver and a pty is controlled by 
terminal attributes set with tcsetattr() [2][3].

IMHO (as a developer running ptys over asyncio), using a pty implies writing 
code at the low level such as configuring the line discipline, or possibly 
dealing with the notions of controlling terminal, process group and so on. So 
it seems right that Python io would not support ptys as Python io sits at a 
higher level.

[1] http://en.wikipedia.org/wiki/Line_discipline
[2] http://www.gnu.org/software/libc/manual/html_node/Terminal-Modes.html
[3] 
http://docs.python.org/3/library/termios.html?highlight=termios#module-termios

--

___
Python tracker 

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



[issue22413] Bizarre StringIO(newline="\r\n") translation

2015-10-10 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 57fc950298bb by Martin Panter in branch '2.7':
Issue #22413: Document newline effect on StringIO initializer and getvalue
https://hg.python.org/cpython/rev/57fc950298bb

New changeset cba4bf2a1721 by Martin Panter in branch '3.4':
Issue #22413: Document newline effect on StringIO initializer and getvalue
https://hg.python.org/cpython/rev/cba4bf2a1721

New changeset 451da3327f68 by Martin Panter in branch '3.5':
Issue #22413: Merge StringIO doc from 3.4 into 3.5
https://hg.python.org/cpython/rev/451da3327f68

New changeset 46df76819b79 by Martin Panter in branch '3.5':
Issue #22413: Remove comment made out of date by Argument Clinic
https://hg.python.org/cpython/rev/46df76819b79

New changeset c12d3f941731 by Martin Panter in branch 'default':
Issue #22413: Merge StringIO doc from 3.5
https://hg.python.org/cpython/rev/c12d3f941731

--
nosy: +python-dev

___
Python tracker 

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



[issue25161] Missing periods at the end of sentences

2015-10-10 Thread Martin Panter

Changes by Martin Panter :


--
assignee: docs@python -> martin.panter
nosy: +berker.peksag
stage: patch review -> commit review

___
Python tracker 

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



[issue25352] Add 'make this my default python' to windows installs for Python3.5 and later

2015-10-10 Thread Laura Creighton

Laura Creighton added the comment:

I think it would be useful if the IDLE icon was overlayed with 
the text of what version of Python you are running.

--

___
Python tracker 

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



[issue24402] input() uses sys.__stdout__ instead of sys.stdout for prompt

2015-10-10 Thread Martin Panter

Martin Panter added the comment:

My second attempt seems to have avoided the hang.

For the record, the backtrace from 3.4.koobs-freebsd9 did say it was hanging at 
the os.waitpid() line, but I still don’t understand why.

--
status: open -> closed

___
Python tracker 

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



[issue25341] File mode wb+ appears as rb+

2015-10-10 Thread Xiang Zhang

Xiang Zhang added the comment:

I make a patch which now identifies the difference between wb+ and rb+,
and modifies the corresponding tests. Though I don't know whether this
need to be fixed.

--

___
Python tracker 

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



[issue25341] File mode wb+ appears as rb+

2015-10-10 Thread Xiang Zhang

Changes by Xiang Zhang <18518281...@126.com>:


--
keywords: +patch
Added file: http://bugs.python.org/file40739/file_mode.patch

___
Python tracker 

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



[issue25341] File mode wb+ appears as rb+

2015-10-10 Thread Mark Williams

Mark Williams added the comment:

Python's test suite may test the current behavior but that does not lessen
the problem.

I gave an example of apparently correct code that fails (that was actually
encountered by a Python user) in my original description.  Another such
example: you cannot duplicate a file object -- same path, same mode --- and
be sure that the duplicate is a true duplicate.  Data corruption could
occur in application code if the duplicated file were opened "rb+" instead
of "wb+", as the duplicate would not truncate existing data.

Another way to think about the problem is accuracy of intent.  The mode
attribute on file objects can be incorrect, and by "incorrect" I mean "not
describe the mode under which the file was opened."  Why have a mode
attribute at all, then?  I, for one, would prefer *no* mode attribute to
one that's sometimes incorrect.  But a correct one is even better!

On Sat, Oct 10, 2015 at 1:27 AM, Xiang Zhang  wrote:

>
> Xiang Zhang added the comment:
>
> I think Mark is right. Since wb+ and rb+ have different behaviours they
> should be treat separately.
>
> But this behaviour treating wb+ and rb+ as the same is well tested and
> seems to intended to do so.
>
> --
> nosy: +xiang.zhang
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

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



[issue25040] xml.sax.make_parser makes bad use of parser_list argument default value

2015-10-10 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
status: open -> pending

___
Python tracker 

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



[issue25341] File mode wb+ appears as rb+

2015-10-10 Thread Xiang Zhang

Xiang Zhang added the comment:

I think Mark is right. Since wb+ and rb+ have different behaviours they
should be treat separately.

But this behaviour treating wb+ and rb+ as the same is well tested and
seems to intended to do so.

--
nosy: +xiang.zhang

___
Python tracker 

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



[issue25099] test_compileall fails when run by unprivileged user on installed Python

2015-10-10 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Do you want to backport the fix to 3.4 (and 2.7?)? Issue21264 was reported for 
3.4.

--

___
Python tracker 

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