[issue4944] os.fsync() doesn't work as expect in Windows

2015-03-27 Thread Emil Styrke

Emil Styrke added the comment:

eryksun, thank you for the explanation, the penny finally dropped for me.  It's 
the *other* child processes that keep the file open, not the parent.  Actually 
this bug started hitting me after I *stopped* doing exactly what you suggest 
(fdopen on the temp file), and instead started using file names generated by my 
program (opened with regular open) and now I see why that is.  If I use 
os.fdopen with the O_NOINHERIT flag, it works as expected.

--

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



[issue23786] test_unaligned_buffers (test.test_hash.HashEqualityTestCase) ... Fatal Python error: Bus error

2015-03-27 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

AFAIK it conforms the C standard and should be portable (but weird compiler 
bugs or misconfiguration can make it broken).

With Py_MEMCPY() the code is less optimal. Don't add regression on common 
platforms.

--

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



[issue23786] test_unaligned_buffers (test.test_hash.HashEqualityTestCase) ... Fatal Python error: Bus error

2015-03-27 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Or may be better to use explicit alignment 8 if this is 32-bit platform.

diff -r a417d89fbc38 Python/pyhash.c
--- a/Python/pyhash.c   Thu Mar 26 09:37:23 2015 +0100
+++ b/Python/pyhash.c   Fri Mar 27 12:02:55 2015 +0200
@@ -247,7 +247,7 @@ fnv(const void *src, Py_ssize_t len)
 union {
 Py_uhash_t value;
 unsigned char bytes[SIZEOF_PY_UHASH_T];
-} block;
+} block __attribute__ ((__aligned__(8)));
 
 #ifdef Py_DEBUG
 assert(_Py_HashSecret_Initialized);

--

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



[issue23786] test_unaligned_buffers (test.test_hash.HashEqualityTestCase) ... Fatal Python error: Bus error

2015-03-27 Thread STINNER Victor

STINNER Victor added the comment:

The union trick is not portable, using memcpy() is safer. Compilers should be 
able to optimize it. Use Py_MEMCPY() for the stupid Visual Studio compiler 
unable to optimize memcpy() for small sizes.

--
keywords: +patch
Added file: http://bugs.python.org/file38709/fnv_memcpy.patch

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



[issue23787] sum() function docstring lists arguments incorrectly

2015-03-27 Thread Valentine Sinitsyn

New submission from Valentine Sinitsyn:

sum() function doctstring describes expected arguments as follows (Python 
2.7.6):

sum(...)
sum(sequence[, start]) - value
...

This implies sum() should accept str, unicode, list, tuple, bytearray, buffer, 
and xrange. However, you clearly can't use this function to sum strings (which 
is also mentioned in the docstring):

 sum('abc')
Traceback (most recent call last):
  File stdin, line 1, in module
TypeError: unsupported operand type(s) for +: 'int' and 'str'

I'd suggest to describe first argument as iterable, which is actually what 
sum() expects there.

--
assignee: docs@python
components: Documentation
messages: 239388
nosy: docs@python, vsinitsyn
priority: normal
severity: normal
status: open
title: sum() function docstring lists arguments incorrectly
type: enhancement
versions: Python 2.7

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



[issue18898] Apply the setobject optimizations to dictionaries

2015-03-27 Thread STINNER Victor

STINNER Victor added the comment:

Hi, what's the status of this issue? Is anyone working one it?

--

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



[issue7511] msvc9compiler.py: ValueError when trying to compile with VC Express

2015-03-27 Thread Paul Moore

Paul Moore added the comment:

The correct solution to this issue now is to install the Microsoft supplied 
Visual C++ Compiler for Python 2.7 package (available as a free download from 
MSDN). That has all the components needed to build 32 and 64-bit extensions. 
Your setup.py needs to use setuptools (as there is a setuptools extension to 
recognise this compiler package) but otherwise the process should be seamless.

Note that in spite of the name, the process should also work for Python 3.2 and 
3.3, which also use VS2008 (but I haven't tested that explicitly).

--

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



[issue23509] Speed up Counter operators

2015-03-27 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Added explanation comments to address Victor's comment.

--
Added file: http://bugs.python.org/file38708/counter_faster_2.patch

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



[issue23488] Random objects twice as big as necessary on 64-bit builds

2015-03-27 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Updated patch addresses some Victor's comments.

--
Added file: http://bugs.python.org/file38707/random_uint32_2.patch

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



[issue7511] msvc9compiler.py: ValueError when trying to compile with VC Express

2015-03-27 Thread Florian Bruhin

Changes by Florian Bruhin python@the-compiler.org:


--
nosy: +The Compiler

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



[issue23786] test_unaligned_buffers (test.test_hash.HashEqualityTestCase) ... Fatal Python error: Bus error

2015-03-27 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

What if add double field in the block union? (And may be compile with 
-munaligned-doubles)


diff -r a417d89fbc38 Python/pyhash.c
--- a/Python/pyhash.c   Thu Mar 26 09:37:23 2015 +0100
+++ b/Python/pyhash.c   Fri Mar 27 11:52:25 2015 +0200
@@ -247,6 +247,7 @@ fnv(const void *src, Py_ssize_t len)
 union {
 Py_uhash_t value;
 unsigned char bytes[SIZEOF_PY_UHASH_T];
+double double_value;
 } block;
 
 #ifdef Py_DEBUG


What if add the __aligned__ attribute?

diff -r a417d89fbc38 Python/pyhash.c
--- a/Python/pyhash.c   Thu Mar 26 09:37:23 2015 +0100
+++ b/Python/pyhash.c   Fri Mar 27 11:58:30 2015 +0200
@@ -247,7 +247,7 @@ fnv(const void *src, Py_ssize_t len)
 union {
 Py_uhash_t value;
 unsigned char bytes[SIZEOF_PY_UHASH_T];
-} block;
+} block __attribute__ ((__aligned__(SIZEOF_PY_UHASH_T)));
 
 #ifdef Py_DEBUG
 assert(_Py_HashSecret_Initialized);

--

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



[issue23290] Faster set copying

2015-03-27 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Updated patch addresses Victor's comment. Thank you for your review Victor.

 Is msg234811 the result of set_faster_copy_3.patch?

Yes, it is. There are tests for sets with small and large number of hash 
conflicts, with and without dummy objects. The patch affects many operations 
that implicitly makes a copy, for example set1 | set2, set1  set2, set1 - set2.

--
Added file: http://bugs.python.org/file38706/set_faster_copy_4.patch

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



[issue23605] Use the new os.scandir() function in os.walk()

2015-03-27 Thread STINNER Victor

STINNER Victor added the comment:

Ben Hoyt added the comment:
 1) The new implementation is more complex. Of course, most of this is
necessary due to the topdown directory issue.

Sure,  correctness matters more than performances.

 However, one thing I'm not sure about is why you create scandir_it
manually and use a while True loop,

The idea is to control lines where OSError is catched to call onerrror(),
without breaking backward compatibility. Especially, onerror() should only
be called once, even for recursive calls.

 2) In this commit http://bugs.python.org/review/23605/diff/14181/Lib/os.py
-- which is not the final one, I don't quite understand the catch_oserror
thing.
It's just a try to write differently the same thing. It didn't convince
myself that it's more readable, so I picked the first version.

What's your point about complexity? Would you like to drop os.scandir
changes in os.walk(), or do you have a simpler version to propose?

--

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



[issue23290] Faster set copying

2015-03-27 Thread STINNER Victor

STINNER Victor added the comment:

New patch looks good to me. Great job on speedup. I didn't expect that it's
still possible to enhance set.

By the way, is it possible to report latest enhancement to the dict type? I
don't remember if tou tried that richard?

--

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



[issue23290] Faster set copying

2015-03-27 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

 I didn't expect that it's still possible to enhance set.

Raymond made a lot of set optimizations recently.

 By the way, is it possible to report latest enhancement to the dict type? I
 don't remember if tou tried that richard?

May be when Raymond port his optimizations to dict (issue18898).

--

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



[issue23788] test_urllib2_localnet.test_bad_address fails: OSError not raised by urlopen

2015-03-27 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@gmail.com:


--
title: test_bad_address fails - test_urllib2_localnet.test_bad_address fails: 
OSError not raised by urlopen

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



[issue23788] test_urllib2_localnet.test_bad_address fails: OSError not raised by urlopen

2015-03-27 Thread STINNER Victor

STINNER Victor added the comment:

 Starting from Git commit 1996f3038458df2b6443c23e4705478ff5db43f8

https://github.com/python/cpython/commit/1996f3038458df2b6443c23e4705478ff5db43f8

= https://hg.python.org/cpython/rev/b7c0137cccbe

--
nosy: +haypo

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



[issue23788] test_bad_address fails

2015-03-27 Thread Raniere Silva

New submission from Raniere Silva:

Starting from Git commit 1996f3038458df2b6443c23e4705478ff5db43f8

$ ./configure
$ make
$ make test
==
FAIL: test_bad_address (test.test_urllib2_localnet.TestUrlopen)
--
Traceback (most recent call last):
  File /home/raniere/src/cpython/Lib/test/test_urllib2_localnet.py, line 656, 
in test_bad_address
http://sadflkjsasf.i.nvali.d./;)
AssertionError: OSError not raised by urlopen

--

--
components: Tests
messages: 239390
nosy: raniere
priority: normal
severity: normal
status: open
title: test_bad_address fails
versions: Python 3.5

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



[issue23786] test_unaligned_buffers (test.test_hash.HashEqualityTestCase) ... Fatal Python error: Bus error

2015-03-27 Thread Peter

Peter added the comment:

OK I recompiled with ./configure --prefix=/usr/local --enable-shared 
--with-pydebug and reran the test, unfortunately...

$ LD_LIBRARY_PATH=/usr/local/src/Python-3.4.3 ./python -m test  test_hash
[1/1] test_hash
1 test OK.


I then applied the patch in msg239385, this resulted in the same crash, I 
couldn't see any difference in gdb.

I then tried each of the patches in msg239384, with -munaligned-doubles and 
with -mnounaligned-doubles, again no difference.

I did notice that two tests failed in test_hash prior to the core dump, so here 
are the outputs from those in case that helps.

3.4.3 ./python -m test  -v test_hash.DatetimeDatetimeTests 
test_hash.DatetimeTimeTests
== CPython 3.4.3 (default, Mar 27 2015, 08:45:04) [GCC 4.6.2]
==   Solaris-2.11-sun4v-sparc-32bit-ELF big-endian
==   hash algorithm: fnv 32bit
==   /usr/local/src/Python-3.4.3/build/test_python_10340
Testing with flags: sys.flags(debug=0, inspect=0, interactive=0, optimize=0, 
dont_write_bytecode=0, no_user_site=0, no_site=0, ignore_environment=0, 
verbose=0, bytes_warning=0, quiet=0, hash_randomization=1, isolated=0)
[1/2] test_hash.DatetimeDatetimeTests
test test_hash.DatetimeDatetimeTests crashed -- Traceback (most recent call 
last):
  File frozen importlib._bootstrap, line 2218, in _find_and_load_unlocked
AttributeError: 'module' object has no attribute '__path__'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File /usr/local/src/Python-3.4.3/Lib/test/regrtest.py, line 1271, in 
runtest_inner
the_module = importlib.import_module(abstest)
  File /usr/local/src/Python-3.4.3/Lib/importlib/__init__.py, line 109, in 
import_module
return _bootstrap._gcd_import(name[level:], package, level)
  File frozen importlib._bootstrap, line 2254, in _gcd_import
  File frozen importlib._bootstrap, line 2237, in _find_and_load
  File frozen importlib._bootstrap, line 2221, in _find_and_load_unlocked
ImportError: No module named 'test.test_hash.DatetimeDatetimeTests'; 
'test.test_hash' is not a package

[2/2/1] test_hash.DatetimeTimeTests
test test_hash.DatetimeTimeTests crashed -- Traceback (most recent call last):
  File frozen importlib._bootstrap, line 2218, in _find_and_load_unlocked
AttributeError: 'module' object has no attribute '__path__'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File /usr/local/src/Python-3.4.3/Lib/test/regrtest.py, line 1271, in 
runtest_inner
the_module = importlib.import_module(abstest)
  File /usr/local/src/Python-3.4.3/Lib/importlib/__init__.py, line 109, in 
import_module
return _bootstrap._gcd_import(name[level:], package, level)
  File frozen importlib._bootstrap, line 2254, in _gcd_import
  File frozen importlib._bootstrap, line 2237, in _find_and_load
  File frozen importlib._bootstrap, line 2221, in _find_and_load_unlocked
ImportError: No module named 'test.test_hash.DatetimeTimeTests'; 
'test.test_hash' is not a package

2 tests failed:
test_hash.DatetimeDatetimeTests test_hash.DatetimeTimeTests



Thanks guys!

--

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



[issue23611] Pickle nested names with protocols 4

2015-03-27 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Issue23403. But looks it is early yet for this.

Note that this patch doesn't modify protocols. It just makes the pickler more 
smart and able to serialize more objects with existing protocols. It is the 
same as add pickle support for some type that didn't support the pickling 
before.

--

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



[issue23788] test_urllib2_localnet.test_bad_address fails: OSError not raised by urlopen

2015-03-27 Thread STINNER Victor

STINNER Victor added the comment:

Hi,

Can you please complete your bug report? Can you specifiy your OS? Can you try 
to rerun the test manually with ./python -m test -u all test_urllib2_localnet?

The test:

def test_bad_address(self):
# Make sure proper exception is raised when connecting to a bogus
# address.

# as indicated by the comment below, this might fail with some ISP,
# so we run the test only when -unetwork/-uall is specified to
# mitigate the problem a bit (see #17564)
support.requires('network')
self.assertRaises(OSError,
  # Given that both VeriSign and various ISPs have in
  # the past or are presently hijacking various invalid
  # domain name requests in an attempt to boost traffic
  # to their own sites, finding a domain name to use
  # for this test is difficult.  RFC2606 leads one to
  # believe that '.invalid' should work, but experience
  # seemed to indicate otherwise.  Single character
  # TLDs are likely to remain invalid, so this seems to
  # be the best choice. The trailing '.' prevents a
  # related problem: The normal DNS resolver appends
  # the domain names from the search path if there is
  # no '.' the end and, and if one of those domains
  # implements a '*' rule a result is returned.
  # However, none of this will prevent the test from
  # failing if the ISP hijacks all invalid domain
  # requests.  The real solution would be to be able to
  # parameterize the framework with a mock resolver.
  urllib.request.urlopen,
  http://sadflkjsasf.i.nvali.d./;)

--

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



[issue22117] Rewrite pytime.h to work on nanoseconds

2015-03-27 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 2309597e7a00 by Victor Stinner in branch 'default':
Issue #22117: Add a new Python timestamp format _PyTime_t to pytime.h
https://hg.python.org/cpython/rev/2309597e7a00

--
nosy: +python-dev

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



[issue23789] decimal.Decimal: __format__ behaviour

2015-03-27 Thread Paul Eckhardt

New submission from Paul Eckhardt:

The bahaviour of __format__ for decimal.Decimal type differs in one detail from 
float:
The minimum number of digits used for the exponent is 1 for Decimal, and 2 for 
float.
e.g.: {:8.2E}.format(1.0) -- 1.00E+00
  {:8.2E}.format(Decimal(1.0)) --  1.00E+0

Is there any reason for this?
If not, the following patch should do:

--- /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/decimal.py  
2015-03-27 12:55:22.0 +0100
+++ ./decimal.py2015-03-27 14:00:09.0 +0100
@@ -6116,7 +6116,7 @@
 
 if exp != 0 or spec['type'] in 'eE':
 echar = {'E': 'E', 'e': 'e', 'G': 'E', 'g': 'e'}[spec['type']]
-fracpart += {0}{1:+}.format(echar, exp)
+fracpart += {0}{1:+03d}.format(echar, exp)
 if spec['type'] == '%':
 fracpart += '%'

--
components: Library (Lib)
messages: 239394
nosy: MonsieurPaul
priority: normal
severity: normal
status: open
title: decimal.Decimal: __format__ behaviour
type: behavior
versions: Python 2.7

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



[issue23790] When xdrlib.Packer().pack_string() fails, the Packer is corrupted

2015-03-27 Thread Oskar Hahn

Changes by Oskar Hahn m...@oshahn.de:


Added file: http://bugs.python.org/file38711/reset_buffer.patch

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



[issue23790] When xdrlib.Packer().pack_string() fails, the Packer is corrupted

2015-03-27 Thread Oskar Hahn

New submission from Oskar Hahn:

When xdrlib.Packer().pack_string() is called with an unsupported value, it 
raises a TypeError. But it calles self.pack_uint(n) before it raises the 
exception so the buffer is changed.

There are two possible solutions to solve this behaviour. The argument s can be 
tested to be supported, or undo the call of self.pack_uint(n).

I added two alternative patches for this two solutions.

This is my first patch for cpython, I hope it is ok.

--
components: Library (Lib)
files: test_value.patch
keywords: patch
messages: 239396
nosy: ostcar
priority: normal
severity: normal
status: open
title: When xdrlib.Packer().pack_string() fails, the Packer is corrupted
versions: Python 3.4, Python 3.5
Added file: http://bugs.python.org/file38710/test_value.patch

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



[issue23786] test_unaligned_buffers (test.test_hash.HashEqualityTestCase) ... Fatal Python error: Bus error

2015-03-27 Thread Peter

Peter added the comment:

Sorry I copied the wrong term buffer :-)
This is the output after I commented out the HashEqualityTestCase class which 
causes the core dump.

LD_LIBRARY_PATH=/usr/local/src/Python-3.4.3 ./python -m test -v test_hash
== CPython 3.4.3 (default, Mar 27 2015, 08:45:04) [GCC 4.6.2]
==   Solaris-2.11-sun4v-sparc-32bit-ELF big-endian
==   hash algorithm: fnv 32bit
==   /usr/local/src/Python-3.4.3/build/test_python_10730
Testing with flags: sys.flags(debug=0, inspect=0, interactive=0, optimize=0, 
dont_write_bytecode=0, no_user_site=0, no_
site=0, ignore_environment=0, verbose=0, bytes_warning=0, quiet=0, 
hash_randomization=1, isolated=0)
[1/1] test_hash
test_empty_string (test.test_hash.BytesHashRandomizationTests) ... ok
test_fixed_hash (test.test_hash.BytesHashRandomizationTests) ... ok
test_long_fixed_hash (test.test_hash.BytesHashRandomizationTests) ... ok
test_null_hash (test.test_hash.BytesHashRandomizationTests) ... ok
test_randomized_hash (test.test_hash.BytesHashRandomizationTests) ... ok
test_randomized_hash (test.test_hash.DatetimeDateTests) ... ok
test_randomized_hash (test.test_hash.DatetimeDatetimeTests) ... FAIL
test_randomized_hash (test.test_hash.DatetimeTimeTests) ... FAIL
test_hashes (test.test_hash.HashBuiltinsTestCase) ... ok
test_hash_distribution (test.test_hash.HashDistributionTestCase) ... ok
test_default_hash (test.test_hash.HashInheritanceTestCase) ... ok
test_error_hash (test.test_hash.HashInheritanceTestCase) ... ok
test_fixed_hash (test.test_hash.HashInheritanceTestCase) ... ok
test_hashable (test.test_hash.HashInheritanceTestCase) ... ok
test_not_hashable (test.test_hash.HashInheritanceTestCase) ... ok
test_empty_string (test.test_hash.MemoryviewHashRandomizationTests) ... ok
test_fixed_hash (test.test_hash.MemoryviewHashRandomizationTests) ... ok
test_long_fixed_hash (test.test_hash.MemoryviewHashRandomizationTests) ... ok
test_null_hash (test.test_hash.MemoryviewHashRandomizationTests) ... ok
test_randomized_hash (test.test_hash.MemoryviewHashRandomizationTests) ... ok
test_empty_string (test.test_hash.StrHashRandomizationTests) ... ok
test_fixed_hash (test.test_hash.StrHashRandomizationTests) ... ok
test_long_fixed_hash (test.test_hash.StrHashRandomizationTests) ... ok
test_null_hash (test.test_hash.StrHashRandomizationTests) ... ok
test_randomized_hash (test.test_hash.StrHashRandomizationTests) ... ok
test_ucs2_string (test.test_hash.StrHashRandomizationTests) ... ok

==
FAIL: test_randomized_hash (test.test_hash.DatetimeDatetimeTests)
--
Traceback (most recent call last):
  File /usr/local/src/Python-3.4.3/Lib/test/test_hash.py, line 193, in 
test_randomized_hash
run1 = self.get_hash(self.repr_, seed='random')
  File /usr/local/src/Python-3.4.3/Lib/test/test_hash.py, line 187, in 
get_hash
**env)
  File /usr/local/src/Python-3.4.3/Lib/test/script_helper.py, line 106, in 
assert_python_ok
return _assert_python(True, *args, **env_vars)
  File /usr/local/src/Python-3.4.3/Lib/test/script_helper.py, line 92, in 
_assert_python
err.decode('ascii', 'ignore')))
AssertionError: Process return code is -10, command line was: 
['/usr/local/src/Python-3.4.3/python', '-X', 'faulthandle
r', '-c', 'import datetime; print(hash(datetime.datetime(1, 2, 3, 4, 5, 6, 
7)))'], stderr follows:
Fatal Python error: Bus error

Current thread 0x0001 (most recent call first):
  File string, line 1 in module

==
FAIL: test_randomized_hash (test.test_hash.DatetimeTimeTests)
--
Traceback (most recent call last):
  File /usr/local/src/Python-3.4.3/Lib/test/test_hash.py, line 193, in 
test_randomized_hash
run1 = self.get_hash(self.repr_, seed='random')
  File /usr/local/src/Python-3.4.3/Lib/test/test_hash.py, line 187, in 
get_hash
**env)
  File /usr/local/src/Python-3.4.3/Lib/test/script_helper.py, line 106, in 
assert_python_ok
return _assert_python(True, *args, **env_vars)
  File /usr/local/src/Python-3.4.3/Lib/test/script_helper.py, line 92, in 
_assert_python
err.decode('ascii', 'ignore')))
AssertionError: Process return code is -10, command line was: 
['/usr/local/src/Python-3.4.3/python', '-X', 'faulthandle
r', '-c', 'import datetime; print(hash(datetime.time(0, 0)))'], stderr follows:
Fatal Python error: Bus error

Current thread 0x0001 (most recent call first):
  File string, line 1 in module

--
Ran 26 tests in 3.429s

FAILED (failures=2)
test test_hash failed

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23786
___
___
Python-bugs-list mailing list

[issue23788] test_urllib2_localnet.test_bad_address fails: OSError not raised by urlopen

2015-03-27 Thread Raniere Silva

Raniere Silva added the comment:

 Can you please complete your bug report? Can you specifiy your OS?

GNU/Linux.

$ uname -a
Linux pupunha 3.19.2-1-ARCH #1 SMP PREEMPT Wed Mar 18 16:21:02 CET 2015 x86_64 
GNU/Linux
$ gcc --version
gcc (GCC) 4.9.2 20150304 (prerelease)

 Can you try to rerun the test manually with ./python -m test -u all 
 test_urllib2_localnet?

$ ./python -m test -u all test_urllib2_localnet
[1/1] test_urllib2_localnet
test test_urllib2_localnet failed -- Traceback (most recent call last):
  File /home/raniere/src/cpython/Lib/test/test_urllib2_localnet.py, line 656, 
in test_bad_address
http://sadflkjsasf.i.nvali.d./;)
AssertionError: OSError not raised by urlopen

1 test failed:
test_urllib2_localnet

--

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



[issue23451] Deprecation warnings building 3.5 Visual Studio Windows 8.1 64 bit

2015-03-27 Thread Roundup Robot

Roundup Robot added the comment:

New changeset f64d0b99d405 by Victor Stinner in branch 'default':
Issue #23451, #22117: Python 3.5 now requires Windows Vista or newer, so
https://hg.python.org/cpython/rev/f64d0b99d405

--

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



[issue22117] Rewrite pytime.h to work on nanoseconds

2015-03-27 Thread Roundup Robot

Roundup Robot added the comment:

New changeset f64d0b99d405 by Victor Stinner in branch 'default':
Issue #23451, #22117: Python 3.5 now requires Windows Vista or newer, so
https://hg.python.org/cpython/rev/f64d0b99d405

--

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



[issue23786] test_unaligned_buffers (test.test_hash.HashEqualityTestCase) ... Fatal Python error: Bus error

2015-03-27 Thread Peter

Peter added the comment:

Hi haypo,

I just realized you had created a patch too, the fnv_memcpy.patch worked!

$ LD_LIBRARY_PATH=/usr/local/src/Python-3.4.3 ./python -m test test_hash
[1/1] test_hash
1 test OK.

Running the full regression test now, but I bet everything passes.

--

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



[issue7511] msvc9compiler.py: ValueError when trying to compile with VC Express

2015-03-27 Thread Zachary Ware

Zachary Ware added the comment:

Paul Moore added the comment:

 Note that in spite of the name, the process should also work for Python
 3.2 and 3.3, which also use VS2008 (but I haven't tested that explicitly).


Just 3.2; 3.3 was the first version to use VS2010.

--

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



[issue23715] PEP 475: handle EINTR in the signal module

2015-03-27 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 35bc15fa4930 by Victor Stinner in branch 'default':
Issue #23715: Fix test_sigtimedwait() of test_eintr
https://hg.python.org/cpython/rev/35bc15fa4930

--

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



[issue23789] decimal.Decimal: __format__ behaviour

2015-03-27 Thread Paul Moore

Paul Moore added the comment:

I believe it's the way it is because Python follows the Standard Decimal 
Specification, which includes tests for conformance to the current formatting 
behaviour.

--
nosy: +paul.moore

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



[issue22117] Rewrite pytime.h to work on nanoseconds

2015-03-27 Thread Roundup Robot

Roundup Robot added the comment:

New changeset b0b4c4d365b1 by Victor Stinner in branch 'default':
Issue #22117: Fix test_gdb for the new time.sleep()
https://hg.python.org/cpython/rev/b0b4c4d365b1

--

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



[issue23445] Use -Og for debug builds

2015-03-27 Thread Roundup Robot

Roundup Robot added the comment:

New changeset c663dbb84c8c by Victor Stinner in branch '3.4':
Issue #23445: Fix test.support.python_is_optimized() for CFLAGS=-Og
https://hg.python.org/cpython/rev/c663dbb84c8c

New changeset 5b5a22b9327b by Victor Stinner in branch '2.7':
Issue #23445: Fix test_gdb.python_is_optimized() for CFLAGS=-Og
https://hg.python.org/cpython/rev/5b5a22b9327b

--

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



[issue23445] Use -Og for debug builds

2015-03-27 Thread STINNER Victor

STINNER Victor added the comment:

 Done. It shouldn't break anything.

You're change skipped some test_gdb tests. I fixed the check in 
test_gdb/test.support.

--
nosy: +haypo

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



[issue23787] sum() function docstring lists arguments incorrectly

2015-03-27 Thread R. David Murray

R. David Murray added the comment:

In python3 the docstring does say iterable.  It wouldn't be a bad thing to 
change it in 2.7, but it is not much of a priority.  iterable vs sequence makes 
no difference to the str question: a string is an iterable.  The docstring 
explicitly says strings are excepted, as you mentioned, so there's nothing to 
do about that.

I note that python3 also does not support iterables of byte-like objects.  I'm 
not sure if this would actually be helpful to add to the docstring, though, 
since sum(b'abc') works and a docstring is probably not an appropriate place to 
go into detail as to why.

--
nosy: +r.david.murray

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



[issue23789] decimal.Decimal: __format__ behaviour

2015-03-27 Thread R. David Murray

Changes by R. David Murray rdmur...@bitdance.com:


--
nosy: +skrah

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



[issue23788] test_urllib2_localnet.test_bad_address fails: OSError not raised by urlopen

2015-03-27 Thread R. David Murray

R. David Murray added the comment:

How did you determine it was that commit?  It's a doc update, so it can't be 
affecting the code.  The test passes for me, on linux.

--
nosy: +r.david.murray

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



[issue23790] When xdrlib.Packer().pack_string() fails, the Packer is corrupted

2015-03-27 Thread R. David Murray

R. David Murray added the comment:

Your patches are great, thanks.  Now we have to decide which to use :)

--
nosy: +r.david.murray

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



[issue23788] test_urllib2_localnet.test_bad_address fails: OSError not raised by urlopen

2015-03-27 Thread STINNER Victor

STINNER Victor added the comment:

Can you try simply:

   socket.create_connection((sadflkjsasf.i.nvali.d., 80))

Here is raise: socket.gaierror: [Errno -2] Name or service not known

And what are your DNS servers?

   cat /etc/resolv.conf

--

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



[issue23790] When xdrlib.Packer().pack_string() fails, the Packer is corrupted

2015-03-27 Thread Oskar Hahn

Oskar Hahn added the comment:

I would prefer the reset_buffer.patch because I do not like argument testing at 
the begin of a function/method.

--

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



[issue23793] Support __add__ for deques.

2015-03-27 Thread Raymond Hettinger

New submission from Raymond Hettinger:

One more step towards making the deque API a little closer to that for lists:
  
 deque('abc') + deque('def')
deque(['a', 'b', 'c', 'd', 'e', 'f'])

--
assignee: rhettinger
components: Extension Modules
files: deque_add4.diff
keywords: patch
messages: 239419
nosy: rhettinger
priority: normal
severity: normal
stage: patch review
status: open
title: Support __add__ for deques.
type: enhancement
versions: Python 3.5
Added file: http://bugs.python.org/file38712/deque_add4.diff

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



[issue23794] http package should support HTTP/2

2015-03-27 Thread Alex Gaynor

New submission from Alex Gaynor:

The spec is available at https://http2.github.io/

--
components: Library (Lib)
messages: 239424
nosy: alex
priority: normal
severity: normal
status: open
title: http package should support HTTP/2

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



[issue23792] help crash leaves terminal in raw mode

2015-03-27 Thread Rusi

New submission from Rusi:

Start python3.4
Do help(something) which invokes the pager
Ctrl-C
A backtrace results and after that the terminal is in raw mode even after 
exiting python

[python 3.4 under debian testing with xfce4]

--
components: IDLE
messages: 239417
nosy: RusiMody
priority: normal
severity: normal
status: open
title: help crash leaves terminal in raw mode
type: crash
versions: Python 3.4

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



[issue23792] help crash leaves terminal in raw mode

2015-03-27 Thread R. David Murray

R. David Murray added the comment:

I can't reproduce this.  Maybe it is a debian bug?

--
nosy: +r.david.murray

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



[issue23790] When xdrlib.Packer().pack_string() fails, the Packer is corrupted

2015-03-27 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I doubt that this issue is worth fixing. It is common that when error is happen 
inside complex operation, the output can be incomplete. When you pickle a list 
containing non-pickleable data, resulting file content will be not 
unpickleable. When you write a number of lines in text file, and one of lines 
contains non-encodable characters, resulting file content will be incomplete 
and may even don't contain complete lines.

And when other xdrlib.Packer methods that write complex data (pack_uhyper, 
pack_list, pack_farray, pack_array) fail, they left incomplete output.

--
nosy: +serhiy.storchaka

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



[issue23792] help crash leaves terminal in raw mode

2015-03-27 Thread Berker Peksag

Berker Peksag added the comment:

This looks like a duplicate of issue 21398. I can reproduce it with Python 
3.4.1 (compiled myself) on Ubuntu 12.04.

 help(str)

Ctrl-C

:Traceback (most recent call last):
  File stdin, line 1, in module
  File /usr/local/lib/python3.4/_sitebuiltins.py, line 103, in __call__
return pydoc.help(*args, **kwds)
  File /usr/local/lib/python3.4/pydoc.py, line 1817, in __call__
self.help(request)
  File /usr/local/lib/python3.4/pydoc.py, line 1867, in help
else: doc(request, 'Help on %s:', output=self._output)
  File /usr/local/lib/python3.4/pydoc.py, line 1603, in doc
pager(render_doc(thing, title, forceload))
  File /usr/local/lib/python3.4/pydoc.py, line 1411, in pager
pager(text)
  File /usr/local/lib/python3.4/pydoc.py, line 1431, in lambda
return lambda text: pipepager(text, 'less')
  File /usr/local/lib/python3.4/pydoc.py, line 1453, in pipepager
pipe.close()
  File /usr/local/lib/python3.4/os.py, line 957, in close
returncode = self._proc.wait()
  File /usr/local/lib/python3.4/subprocess.py, line 1565, in wait
(pid, sts) = self._try_wait(0)
  File /usr/local/lib/python3.4/subprocess.py, line 1513, in _try_wait
(pid, sts) = _eintr_retry_call(os.waitpid, self.pid, wait_flags)
  File /usr/local/lib/python3.4/subprocess.py, line 491, in _eintr_retry_call
return func(*args)
KeyboardInterrupt

--
nosy: +berker.peksag

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



[issue23792] help crash leaves terminal in raw mode

2015-03-27 Thread Ezio Melotti

Ezio Melotti added the comment:

I can reproduce on Python 3 on Ubuntu 14.10.
When I hit Ctrl+C I get:
 help(range)
...
 |  __hash__(self, /)
 |  Return hash(self).
 |  
:Traceback (most recent call last):
  File stdin, line 1, in module
  File /home/wolf/dev/py/py3k/Lib/_sitebuiltins.py, line 103, in __call__
return pydoc.help(*args, **kwds)
  File /home/wolf/dev/py/py3k/Lib/pydoc.py, line 1833, in __call__
self.help(request)
  File /home/wolf/dev/py/py3k/Lib/pydoc.py, line 1886, in help
else: doc(request, 'Help on %s:', output=self._output)
  File /home/wolf/dev/py/py3k/Lib/pydoc.py, line 1619, in doc
pager(render_doc(thing, title, forceload))
  File /home/wolf/dev/py/py3k/Lib/pydoc.py, line 1409, in pager
pager(text)
  File /home/wolf/dev/py/py3k/Lib/pydoc.py, line 1431, in lambda
return lambda text: pipepager(text, 'less')
  File /home/wolf/dev/py/py3k/Lib/pydoc.py, line 1455, in pipepager
pipe.write(text)
  File /home/wolf/dev/py/py3k/Lib/subprocess.py, line 900, in __exit__
self.wait()
  File /home/wolf/dev/py/py3k/Lib/subprocess.py, line 1552, in wait
(pid, sts) = self._try_wait(0)
  File /home/wolf/dev/py/py3k/Lib/subprocess.py, line 1502, in _try_wait
(pid, sts) = os.waitpid(self.pid, wait_flags)
KeyboardInterrupt


If I keep pressing Enter the rest of the help gets printed.  Once the pager is 
done, pressing enter doesn't go on a new line and the prompts () are printed 
one after the other on the same line.  The same happens on my shell prompt once 
I exit from the interpreter. `reset` fixes it.

On Python 2 Ctrl+C does nothing.

--
nosy: +ezio.melotti
type: crash - behavior
versions: +Python 3.5

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



[issue23791] Identify Moved Lines with difflib

2015-03-27 Thread Brian

New submission from Brian:

It would be a helpful feature to incorporate logic into the difflib module to 
optionally identify and ignore identical, but relocated lines when doing a 
diff. This would be used when the order of lines in a document is not critical, 
but rather just the overall content. The Notepad++ Compare plug-in has this 
feature for reference. 

I would be willing to help submit a patch for this change. The only drawbacks I 
see using this function is it will either have to increase processing time or 
increase memory usage.

--
components: Library (Lib)
messages: 239416
nosy: bkiefer
priority: normal
severity: normal
status: open
title: Identify Moved Lines with difflib
type: enhancement
versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4, Python 3.5, Python 3.6

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



[issue22117] Rewrite pytime.h to work on nanoseconds

2015-03-27 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 0378c10ba164 by Victor Stinner in branch 'default':
Issue #22117: Fix rounding in _PyTime_FromSecondsObject()
https://hg.python.org/cpython/rev/0378c10ba164

--

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



[issue23671] string.Template doesn't work with the self keyword argument

2015-03-27 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

It matches error messages generated by builtin unbound methods.

 str.format()
Traceback (most recent call last):
  File stdin, line 1, in module
TypeError: descriptor 'format' of 'str' object needs an argument

It would be incorrect to say substitute method wants x y z, because the 
substitute method doesn't need any arguments.

 string.Template('spam').substitute()
'spam'

--

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



[issue23671] string.Template doesn't work with the self keyword argument

2015-03-27 Thread Éric Araujo

Éric Araujo added the comment:

descriptor 'substitute' of 'Template' object needs an argument

These error messages don’t seem very user-friendly.  I think the style in the 
rest of the module is like substitute method wants x y z.

--
nosy: +eric.araujo

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



[issue23787] sum() function docstring lists arguments incorrectly

2015-03-27 Thread Valentine Sinitsyn

Valentine Sinitsyn added the comment:

Yes, strings aren't an issue. I only used them as an example.

I came across this issue during code review, discussing if it is okay to pass 
generator expression to sum() (like sum(x*2 for x in xrange(5)) or is it better 
to convert it to the list first (sum([x*2 for x in xrange(5)])). Both variants 
work so docstring is sort of specification here.

Surely, it's not a high priority task anyways.

--

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



[issue23792] help crash leaves terminal in raw mode

2015-03-27 Thread R. David Murray

R. David Murray added the comment:

The print of KeyboardInterrupt whould be dropped.  less itself does nothing if 
you press ctl-c, and the pager is used when pydoc is called from the shell 
command line, and printing KeyboardInterrupt there just looks wrong.

--

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



[issue23789] decimal.Decimal: __format__ behaviour

2015-03-27 Thread Mark Dickinson

Mark Dickinson added the comment:

 I believe it's the way it is because Python follows the Standard Decimal 
 Specification

Yes, exactly.  This is behaving as designed and as tested.

--
nosy: +mark.dickinson
resolution:  - not a bug
status: open - closed

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



[issue23792] help crash leaves terminal in raw mode

2015-03-27 Thread R. David Murray

Changes by R. David Murray rdmur...@bitdance.com:


--
stage: patch review - commit review

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



[issue23792] help crash leaves terminal in raw mode

2015-03-27 Thread R. David Murray

R. David Murray added the comment:

Updated patch.

--
Added file: 
http://bugs.python.org/file38715/keyboardinterrupt_in_pydoc_pager.patch

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



[issue23787] sum() function docstring lists arguments incorrectly

2015-03-27 Thread Raymond Hettinger

Changes by Raymond Hettinger raymond.hettin...@gmail.com:


--
keywords: +patch
Added file: http://bugs.python.org/file38716/sum_doc.diff

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



[issue23795] argparse -- incorrect usage for mutually exclusive

2015-03-27 Thread paul j3

paul j3 added the comment:

I can't reproduce this with either 3.4.2 or the latest development 
'argparse.py' file (that I just downloaded).

There have been some issues with the method used format the usage line, 
_format_actions_usage.  It formats the line with all the group brackets, and 
then tries to filter out the unnecessary ones.  As such it is fragile, and 
messed up by extra characters.

But I'm not aware of a relevant patch being applied and then latter removed.

--
nosy: +paul.j3

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



[issue23058] argparse silently ignores arguments

2015-03-27 Thread paul j3

Changes by paul j3 ajipa...@gmail.com:


--
nosy: +paul.j3

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



[issue23058] argparse silently ignores arguments

2015-03-27 Thread paul j3

paul j3 added the comment:

Without actually running this case I think it is caused by the  
http://bugs.python.org/issue9351  patch.

You can check the __call__ method for class _SubParsersAction and how it 
handles invocation of the subparser.  Does it get the existing namespace, or a 
new one (None)?

There is an inherent ambiguity when the same argument ('dest' actually) is 
defined for both the parser and the subparser.  Doubly so when both get it via 
'parents'.  Which default and which argument string has priority?

That other issue tried to fix the case where the subparser's default was being 
ignored, and in the process created a case where the parser's argument string 
is being ignored.

Wouldn't it be safer all around if the subparsers took different arguments, or 
at least different namespace 'dest', than the main parser?

--

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



[issue23792] help crash leaves terminal in raw mode

2015-03-27 Thread Ezio Melotti

Ezio Melotti added the comment:

Patch WFM too.

--
stage:  - patch review

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



[issue23792] help crash leaves terminal in raw mode

2015-03-27 Thread R. David Murray

R. David Murray added the comment:

I do see the anomalous behavior inside python, but on my gentoo system when I 
exit python the terminal is fine.

--

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



[issue23794] http package should support HTTP/2

2015-03-27 Thread Berker Peksag

Changes by Berker Peksag berker.pek...@gmail.com:


--
nosy: +berker.peksag
stage:  - needs patch
type:  - enhancement
versions: +Python 3.6

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



[issue23795] argparse -- incorrect usage for mutually exclusive

2015-03-27 Thread João Ferreira

New submission from João Ferreira:

The usage that is printed by argparse with the --help argument is slightly 
incorrect when using mutually exclusive groups. This happens in version 3.4.3 
but did not happen in version 3.4.0.

I have this minimal example:

import argparse

p = argparse.ArgumentParser()

g1 = p.add_mutually_exclusive_group(required=False)
g1.add_argument(-a)
g1.add_argument(-b)

g2 = p.add_mutually_exclusive_group(required=False)
g2.add_argument(-c)
g2.add_argument(-d)

p.parse_args()

In python 3.4.0, python test.py --help produces the usage:

usage: test.py [-h] [-a A | -b B] [-c C | -d D]

In python 3.4.3, the usage is:

usage: test.py [-h] [-a A | -b B [-c C | -d D]

Note the absence of the closing square bracket after B.

--
components: Library (Lib)
messages: 239425
nosy: jotomicron
priority: normal
severity: normal
status: open
title: argparse -- incorrect usage for mutually exclusive
type: enhancement
versions: Python 3.4

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



[issue23793] Support __add__ for deques.

2015-03-27 Thread Raymond Hettinger

Changes by Raymond Hettinger raymond.hettin...@gmail.com:


Added file: http://bugs.python.org/file38713/deque_add5.diff

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



[issue23794] http package should support HTTP/2

2015-03-27 Thread Ian Cordasco

Changes by Ian Cordasco graffatcolmin...@gmail.com:


--
nosy: +icordasc

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



[issue23792] help crash leaves terminal in raw mode

2015-03-27 Thread R. David Murray

R. David Murray added the comment:

The attached patch fixes the issue for me.

--
keywords: +patch
Added file: 
http://bugs.python.org/file38714/keyboardinterrupt_in_pydoc_pager.patch

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



[issue9334] argparse does not accept options taking arguments beginning with dash (regression from optparse)

2015-03-27 Thread paul j3

paul j3 added the comment:

http://bugs.python.org/issue22672
float arguments in scientific notation not supported by argparse

is a newer complaint about the same issue.  I've closed it with link to here.

--

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



[issue22500] Argparse always stores True for positional arguments

2015-03-27 Thread paul j3

Changes by paul j3 ajipa...@gmail.com:


--
status: open - closed

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



[issue23720] __del__() order is broken since 3.4.0

2015-03-27 Thread Terry J. Reedy

Terry J. Reedy added the comment:

While this is not a bug, Antoine said he might look at improving the situation, 
so I leave it to him to close it or not.

--
nosy: +terry.reedy
stage:  - needs patch
type: behavior - performance
versions:  -Python 3.4

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



[issue23760] Tkinter in Python 3.4 on Windows don't post internal clipboard data to the Windows clipboard on exit

2015-03-27 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
nosy: +serhiy.storchaka, terry.reedy
stage:  - test needed

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



[issue23791] Identify Moved Lines with difflib

2015-03-27 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
stage:  - test needed
versions:  -Python 2.7, Python 3.2, Python 3.3, Python 3.4, Python 3.6

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



[issue22672] float arguments in scientific notation not supported by argparse

2015-03-27 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
resolution:  - duplicate
stage: patch review - resolved
superseder:  - argparse does not accept options taking arguments beginning 
with dash (regression from optparse)

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



[issue23762] python.org page on new-style classes should be updated

2015-03-27 Thread Terry J. Reedy

Terry J. Reedy added the comment:

This tracker can only handle changes to the docs.  Deleting a web page would be 
an issue for the python.org tracker on github.  But we should not make a 
request there until the docs have been checked and we are sure it should go.

--
stage:  - needs patch

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



[issue22117] Rewrite pytime.h to work on nanoseconds

2015-03-27 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 45d9093d259d by Victor Stinner in branch 'default':
Issue #22117: time.monotonic() now uses the new _PyTime_t API
https://hg.python.org/cpython/rev/45d9093d259d

New changeset a88735cbeb50 by Victor Stinner in branch 'default':
Issue #22117: time.time() now uses the new _PyTime_t API
https://hg.python.org/cpython/rev/a88735cbeb50

New changeset abf38a17d3a8 by Victor Stinner in branch 'default':
Issue #22117: The gc module now uses _PyTime_t timestamp
https://hg.python.org/cpython/rev/abf38a17d3a8

New changeset a3c5e05d2cef by Victor Stinner in branch 'default':
Issue #22117: The signal modules uses the new _PyTime_t API
https://hg.python.org/cpython/rev/a3c5e05d2cef

--

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



[issue9351] argparse set_defaults on subcommands should override top level set_defaults

2015-03-27 Thread Rémi Rampin

Changes by Rémi Rampin remiram...@gmail.com:


--
nosy: +remram

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



[issue23555] behavioural change in argparse set_defaults in python 2.7.9

2015-03-27 Thread paul j3

Changes by paul j3 ajipa...@gmail.com:


--
status: open - closed

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



[issue23555] behavioural change in argparse set_defaults in python 2.7.9

2015-03-27 Thread paul j3

paul j3 added the comment:

This is another manifestation of the
http://bugs.python.org/issue9351 partial patch  (on how the namespace of the 
parser relates to the namespace of the subparser).

see also
http://bugs.python.org/issue23058

--

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



[issue22672] float arguments in scientific notation not supported by argparse

2015-03-27 Thread paul j3

paul j3 added the comment:

closed with reference to #9334

--
status: open - closed

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



[issue23762] python.org page on new-style classes should be updated

2015-03-27 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Unfortunately, new-style classes have not yet been integrated into Python's 
standard documention is not even true for 2.7.  I think the page should be 
deleted.  Any of the reverences that are both useful and not in the docs could 
be added to the docs.

--
nosy: +terry.reedy

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



[issue23550] Add to unicodedata a function to query the Quick_Check property for a character

2015-03-27 Thread Hammerite

Hammerite added the comment:

My remark about the arrays not being static is not entirely accurate. 
_PyUnicode_CategoryNames, _PyUnicode_BidirectionalNames and 
_PyUnicode_EastAsianWidthNames are not static, however decomp_prefix is static. 
It would not add any significant bulk to the patch to make these three static 
in addition to the new array, but I will await another review before submitting 
a further patch, since I anticipate there will be a need for it.

--

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



[issue23720] __del__() order is broken since 3.4.0

2015-03-27 Thread Raymond Hettinger

Changes by Raymond Hettinger raymond.hettin...@gmail.com:


--
assignee:  - pitrou
priority: normal - low
resolution:  - not a bug

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



[issue23762] python.org page on new-style classes should be updated

2015-03-27 Thread Berker Peksag

Berker Peksag added the comment:

IMHO, it can stay as a historical document. We just need to add a note to point 
out the correct documentation. So I think this can be handled on GitHub. I 
can't update the content since I don't have edit rights, so please open a new 
issue at https://github.com/python/pythondotorg/issues

--
nosy: +berker.peksag

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



[issue23618] PEP 475: handle EINTR in the socket module

2015-03-27 Thread Roundup Robot

Roundup Robot added the comment:

New changeset f841d3bc30ee by Victor Stinner in branch 'default':
Issue #23618, #22117: refactor socketmodule.c
https://hg.python.org/cpython/rev/f841d3bc30ee

--
nosy: +python-dev

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



[issue22117] Rewrite pytime.h to work on nanoseconds

2015-03-27 Thread Roundup Robot

Roundup Robot added the comment:

New changeset f841d3bc30ee by Victor Stinner in branch 'default':
Issue #23618, #22117: refactor socketmodule.c
https://hg.python.org/cpython/rev/f841d3bc30ee

New changeset ae551abe398d by Victor Stinner in branch 'default':
Issue #22117: Write unit tests for _PyTime_AsTimeval()
https://hg.python.org/cpython/rev/ae551abe398d

New changeset c0c7d258c1ed by Victor Stinner in branch 'default':
Issue #22117: The socket module uses _PyTime_t timestamp for timeouts
https://hg.python.org/cpython/rev/c0c7d258c1ed

--

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



[issue23796] BufferedReader.peek() crashes if closed

2015-03-27 Thread Martin Panter

Martin Panter added the comment:

Confirmed it does indeed affect the current 3.5 (default) branch.

--

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



[issue23794] http package should support HTTP/2

2015-03-27 Thread Martin Panter

Martin Panter added the comment:

This project may be of use for the client side of things: 
https://github.com/lukasa/hyper (apparently MIT licensed).

--
nosy: +vadmium

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



[issue22117] Rewrite pytime.h to work on nanoseconds

2015-03-27 Thread Roundup Robot

Roundup Robot added the comment:

New changeset adbc9e6162fe by Victor Stinner in branch 'default':
Issue #22117: The thread module uses the new _PyTime_t timestamp API
https://hg.python.org/cpython/rev/adbc9e6162fe

--

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



[issue17909] Autodetecting JSON encoding

2015-03-27 Thread Berker Peksag

Changes by Berker Peksag berker.pek...@gmail.com:


--
nosy: +berker.peksag

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



[issue23796] BufferedReader.peek() crashes if closed

2015-03-27 Thread Martin Panter

New submission from Martin Panter:

If the BufferedReader object has already been closed, calling peek() can cause 
a strange error message or a crash:

$ python3 -bWall
Python 3.4.2 (default, Oct  8 2014, 14:33:30) 
[GCC 4.9.1 20140903 (prerelease)] on linux
Type help, copyright, credits or license for more information.
 from io import *
 b = BufferedReader(BytesIO())
 b.close()
 b.peek()
Traceback (most recent call last):
  File stdin, line 1, in module
ValueError: PyMemoryView_FromBuffer(): info-buf must not be NULL
 b = BufferedReader(BytesIO(b12))
 b.read(1)
b'1'
 b.close()
 b.peek()
Segmentation fault (core dumped)
[Exit 139]

I’m not able to check with 3.5 at the moment, but looking at the code, I 
suspect this also applies to 3.5 and there needs to be a CHECK_CLOSED() call 
added somewhere around Modules/_io/bufferedio.c:884.

--
components: IO
messages: 239445
nosy: vadmium
priority: normal
severity: normal
status: open
title: BufferedReader.peek() crashes if closed
type: crash
versions: Python 3.4, Python 3.5

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



[issue23529] Limit decompressed data when reading from LZMAFile and BZ2File

2015-03-27 Thread Martin Panter

Martin Panter added the comment:

Yes my patch should be ready, unless we want to work on factoring more common 
logic out of the gzip read() method.

--

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



[issue23792] help crash leaves terminal in raw mode

2015-03-27 Thread Martin Panter

Martin Panter added the comment:

I suspect you also need ignore signals while piping data to the child process. 
Similar to how the POSIX system() call ignores SIGINT and SIGQUIT soon after 
spawning the child, until after the child has exited.

Try with a large help text on Linux, like

import _pyio
help(_pyio)

Also, Python 2 still gets interrupted for me, it is just that it doesn’t seem 
to happen immediately if it is up to the pipe.close() call.

--
nosy: +vadmium

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



[issue23794] http package should support HTTP/2

2015-03-27 Thread Ian Cordasco

Changes by Ian Cordasco graffatcolmin...@gmail.com:


--
nosy: +Lukasa

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



[issue22117] Rewrite pytime.h to work on nanoseconds

2015-03-27 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 7605d9d262ca by Victor Stinner in branch 'default':
Issue #22117: remove _PyTime_INTERVAL() macro
https://hg.python.org/cpython/rev/7605d9d262ca

New changeset d1ef5ff79125 by Victor Stinner in branch 'default':
Issue #22117: Fix ssl to use _PyTime_t API on sock_timeout
https://hg.python.org/cpython/rev/d1ef5ff79125

--

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



[issue23430] socketserver.BaseServer.handle_error() should not catch exiting exceptions

2015-03-27 Thread Martin Panter

Martin Panter added the comment:

Patch v3:

* Changed the structure of exception handling for the forking server so that 
there is only one os._exit(status) call site
* Rewrote tests to log results to a temporary file. This avoids sending a 
string of code to a Python subprocess. I use threading.Event and os.waitpid() 
to synchronize.
* Tests now call the handle_request() public API, and create a trivial TCP 
connection to trigger a request.
* Added doc string explaining simple_subprocess()

Let me know what you think.

--
Added file: http://bugs.python.org/file38717/socketserver-exit.v3.patch

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



[issue23430] socketserver.BaseServer.handle_error() should not catch exiting exceptions

2015-03-27 Thread Martin Panter

Martin Panter added the comment:

Oops I forgot to refresh the patch. Patch v4 also closes the server in the 
tests.

--
Added file: http://bugs.python.org/file38718/socketserver-exit.v4.patch

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



[issue22117] Rewrite pytime.h to work on nanoseconds

2015-03-27 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 930be74bbae5 by Victor Stinner in branch 'default':
Issue #22117: Use the new _PyTime_t API in the select module
https://hg.python.org/cpython/rev/930be74bbae5

New changeset 5aa39b88bd55 by Victor Stinner in branch 'default':
Issue #22117: Use the _PyTime_t API for time.clock_settime()
https://hg.python.org/cpython/rev/5aa39b88bd55

New changeset 47123ac83733 by Victor Stinner in branch 'default':
Issue #22117: Add the new _PyTime_ROUND_FLOOR rounding method for the datetime
https://hg.python.org/cpython/rev/47123ac83733

--

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



[issue22117] Rewrite pytime.h to work on nanoseconds

2015-03-27 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 0850452048ec by Victor Stinner in branch 'default':
Issue #22117: Fix _PyTime_GetMonotonicClock() and
https://hg.python.org/cpython/rev/0850452048ec

--

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



  1   2   >