[issue17488] subprocess.Popen bufsize=0 parameter behaves differently in Python 3 than in 2

2013-11-26 Thread Martin Panter

Martin Panter added the comment:

For the record, this issue seemed to forget about the effect of buffering the 
pipe to the subprocess’s input stream. Buffering an input pipe means that data 
is hidden away until it is flushed, and the close() method can raise a broken 
pipe error. I have sometimes found that forcing “bufsize=0” is easier than 
handling the extra broken pipe error.

Anyway I think the damage has already been done. However I did raise Issue 
19622 to clarify the documentation.

--
nosy: +vadmium

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



[issue19793] Formatting of True/Falsein in pathlib docs

2013-11-26 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

The proposed patch improves formatting of True/False in pathlib documentation. 
True becomes ``True`` if it means True constant and true if it means true 
value.

--
assignee: docs@python
components: Documentation
messages: 204461
nosy: chris.jerdonek, docs@python, pitrou, serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Formatting of True/Falsein in pathlib docs
type: enhancement
versions: Python 3.4

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



[issue19793] Formatting of True/Falsein in pathlib docs

2013-11-26 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
keywords: +patch
Added file: http://bugs.python.org/file32852/doc_pathlib_truefalse.patch

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



[issue19793] Formatting of True/False in pathlib docs

2013-11-26 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
title: Formatting of True/Falsein in pathlib docs - Formatting of True/False 
in pathlib docs

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



[issue19794] Formatting of True/False in decimal docs

2013-11-26 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

The proposed patch improves formatting of True/False in decimal documentation. 
True/False constants become ``True``/``False``.

--
assignee: docs@python
components: Documentation
files: doc_decimal_truefalse.patch
keywords: patch
messages: 204462
nosy: docs@python, facundobatista, mark.dickinson, rhettinger, 
serhiy.storchaka, skrah
priority: normal
severity: normal
stage: patch review
status: open
title: Formatting of True/False in decimal docs
type: enhancement
versions: Python 3.3, Python 3.4
Added file: http://bugs.python.org/file32853/doc_decimal_truefalse.patch

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



[issue19795] Formatting of True/False in docs

2013-11-26 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

The proposed patch improves formatting of True/False in the documentation. 
True becomes ``True`` if it means True constant and true if it means true 
value (in input arguments).

See also issue19793 and issue19794.

--
assignee: docs@python
components: Documentation
files: doc_truefalse.patch
keywords: patch
messages: 204463
nosy: docs@python, serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Formatting of True/False in docs
type: enhancement
versions: Python 2.7, Python 3.3, Python 3.4
Added file: http://bugs.python.org/file32854/doc_truefalse.patch

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



[issue19780] Pickle 4 frame headers optimization

2013-11-26 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Frames are not overlapped. And no one opcode straddles frame boundaries. When 
an implementation supports optional frames, it should support optimized frames 
as well.

All tests are passed with this optimization except test_optional_frames which 
hacks pickled data to remove some frame opcodes. This test relied on 
implementation details.

--

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



[issue19796] urllib2.HTTPError.reason is not documented as Added in 2.7

2013-11-26 Thread Alex Willmer

New submission from Alex Willmer:

issue13211 added a .reason attribute to urllib2.HTTPError in Python 2.7, 
issue16634 documented it (http://hg.python.org/cpython/rev/deb60efd32eb).

The documentation for Python 2.7 doesn't mention that this attribute was added 
in that release. This (at least weakly) implies it's available to use in 
previous 2.x releases.

--
assignee: docs@python
components: Documentation
files: HTTPError.reason-versionadded.diff
keywords: patch
messages: 204465
nosy: docs@python, moreati
priority: normal
severity: normal
status: open
title: urllib2.HTTPError.reason is not documented as Added in 2.7
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file32855/HTTPError.reason-versionadded.diff

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



[issue19773] Failed to build python 2.6.9 Solaris 10

2013-11-26 Thread lambrecht

lambrecht added the comment:

Ok thanks. 

u1662805@methpr:/home/u1662805echo $LD_LIBRARY_PATH
/usr/lib:/usr/local/lib:/METHPR/produits/apache/sas/lib:/METHPR/produits/oracle/ORACLE_HOME/client/lib

u1662805@methpr:/home/u1662805echo $LD_RUN_PATH
/usr/local/ssl/lib

u1662805@methpr:/home/u1662805make
running build
running build_ext
INFO: Can't locate Tcl/Tk libs and/or headers
building '_curses' extension
gcc -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall 
-Wstrict-prototypes -I. -I/METHPR/tmp/Python-2.6.9/./Include -I. -IInclude 
-I./Include -I/usr/local/include -I/METHPR/tmp/Python-2.6.9/Include 
-I/METHPR/tmp/Python-2.6.9 -c /METHPR/tmp/Python-2.6.9/Modules/_cursesmodule.c 
-o 
build/temp.solaris-2.10-sun4v-2.6/METHPR/tmp/Python-2.6.9/Modules/_cursesmodule.o
/METHPR/tmp/Python-2.6.9/Modules/_cursesmodule.c: In function 
`PyCursesWindow_ChgAt':
/METHPR/tmp/Python-2.6.9/Modules/_cursesmodule.c:708: warning: implicit 
declaration of function `mvwchgat'
/METHPR/tmp/Python-2.6.9/Modules/_cursesmodule.c:712: warning: implicit 
declaration of function `wchgat'
gcc -shared 
build/temp.solaris-2.10-sun4v-2.6/METHPR/tmp/Python-2.6.9/Modules/_cursesmodule.o
 -L/usr/local/lib -lncurses -o build/lib.solaris-2.10-sun4v-2.6/_curses.so
*** WARNING: renaming _curses since importing it failed: ld.so.1: python: 
fatal: relocation error: file build/lib.solaris-2.10-sun4v-2.6/_curses.so: 
symbol _unctrl: referenced symbol not found
building '_curses_panel' extension
gcc -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall 
-Wstrict-prototypes -I. -I/METHPR/tmp/Python-2.6.9/./Include -I. -IInclude 
-I./Include -I/usr/local/include -I/METHPR/tmp/Python-2.6.9/Include 
-I/METHPR/tmp/Python-2.6.9 -c /METHPR/tmp/Python-2.6.9/Modules/_curses_panel.c 
-o 
build/temp.solaris-2.10-sun4v-2.6/METHPR/tmp/Python-2.6.9/Modules/_curses_panel.o
gcc -shared 
build/temp.solaris-2.10-sun4v-2.6/METHPR/tmp/Python-2.6.9/Modules/_curses_panel.o
 -L/usr/local/lib -lpanel -lncurses -o 
build/lib.solaris-2.10-sun4v-2.6/_curses_panel.so
*** WARNING: renaming _curses_panel since importing it failed: No module 
named _curses

Failed to find the necessary bits to build these modules:
_bsddb _tkinter   bsddb185
gdbm   linuxaudiodev  ossaudiodev
To find the necessary bits, look in setup.py in detect_modules() for the 
module's name.


Failed to build these modules:
_curses_curses_panel

running build_scripts

I don't know if i have need _curses : I want to build mod_python.

--
status: closed - open

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



[issue13552] Compilation issues of the curses module on Solaris and OpenIndiana

2013-11-26 Thread STINNER Victor

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


--
title: Compilation issues of the curses module on OpenIndiana - Compilation 
issues of the curses module on Solaris and OpenIndiana

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



[issue19773] Failed to build python 2.6.9 Solaris 10

2013-11-26 Thread STINNER Victor

STINNER Victor added the comment:

 I don't know if i have need _curses : I want to build mod_python.

You don't need curses for a web application.
http://docs.python.org/dev/library/curses.html

The curses compilation is already open, so please don't reopen this issue:
http://bugs.python.org/issue13552

--
status: open - closed

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



[issue19729] [regression] str.format sublevel format parsing broken in Python 3.3.3

2013-11-26 Thread Eric V. Smith

Changes by Eric V. Smith e...@trueblade.com:


--
nosy: +eric.smith

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



[issue19797] Solaris 10. mod_python build failed.

2013-11-26 Thread lambrecht

New submission from lambrecht:

Bonjour. Any idea ? 

mod_python 3.3.1 apache 2.2.6

...
/METHPR/tmp/apache/build/libtool --silent --mode=link gcc -o mod_python.la  
-rpath /METHPR/tmp/apache/modules -module -avoid-versionfinfoob
ject.lo hlistobject.lo hlist.lo filterobject.lo connobject.lo serverobject.lo 
util.lo tableobject.lo requestobject.lo _apachemodule.lo mod_pyth
on.lo -L/METHPR/data/python/lib/python2.6/config -lm -lintl -lpython2.6 
-lsocket -lnsl -lrt -ldl -lm _eprintf.o _floatdidf.o _muldi3.o

*** Warning: Linking the shared library mod_python.la against the non-libtool
*** objects  _eprintf.o _floatdidf.o _muldi3.o is not portable!
Text relocation remains referenced
against symbol  offset  in file
.text (section) 0x1510  
/METHPR/data/python/lib/python2.6/config/libpython2.6.a(floatobject.o)
.text (section) 0x1514  
/METHPR/data/python/lib/python2.6/config/libpython2.6.a(floatobject.o)
.text (section) 0x1518  
/METHPR/data/python/lib/python2.6/config/libpython2.6.a(floatobject.o)
.text (section) 0x151c  
/METHPR/data/python/lib/python2.6/config/libpython2.6.a(floatobject.o)
.text (section) 0x1520  
/METHPR/data/python/lib/python2.6/config/libpython2.6.a(floatobject.o)
.text (section) 0x1524  
/METHPR/data/python/lib/python2.6/config/libpython2.6.a(floatobject.o)

.../...
   0x33ec  
/METHPR/produits/python/lib/python2.6/config/libpython2.6.a(fileobject.o)
__filbuf0x33fc  
/METHPR/produits/python/lib/python2.6/config/libpython2.6.a(fileobject.o)
ld: fatal: relocations remain against allocatable but non-writable sections
collect2: ld returned 1 exit status
apxs:Error: Command failed with rc=65536
.
*** Error code 1
make: Fatal error: Command failed for target `mod_python.so'
Current working directory /METHPR/data/mod_python-3.3.1/src
*** Error code 1
The following command caused the error:
cd src  make
make: Fatal error: Command failed for target `do_dso'

--
messages: 204468
nosy: lambrechtphilippe
priority: normal
severity: normal
status: open
title: Solaris 10. mod_python build failed.

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



[issue19797] Solaris 10. mod_python build failed.

2013-11-26 Thread lambrecht

Changes by lambrecht philippe.lambre...@socgen.com:


--
components: +Build
versions: +3rd party

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



[issue19797] Solaris 10. mod_python build failed.

2013-11-26 Thread Christian Heimes

Christian Heimes added the comment:

Please contact the developers of mod_python. The Python bug tracker is not the 
right place to get support for 3rd party software. The 3rd party version is 
only for 3rd party code that is part of the main Python distribution (e.g. 
sqlite or zlib).

--
nosy: +christian.heimes
resolution:  - invalid
stage:  - committed/rejected
status: open - closed

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



[issue19798] tracemalloc: rename max_size to peak_size in get_traced_memory() result

2013-11-26 Thread STINNER Victor

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


--
components: +Library (Lib)
versions: +Python 3.4

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



[issue19798] tracemalloc: rename max_size to peak_size in get_traced_memory() result

2013-11-26 Thread STINNER Victor

New submission from STINNER Victor:

Jim.J.Jewett asked me to replaced max_size with peak_size. It looks like 
Linux also uses the term peak for /proc/pid/status (or sometimes High Water 
Mark).

See attached patch.

--
files: peak_size.patch
keywords: patch
messages: 204470
nosy: haypo, neologix
priority: normal
severity: normal
status: open
title: tracemalloc: rename max_size to peak_size in get_traced_memory() 
result
Added file: http://bugs.python.org/file32856/peak_size.patch

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



[issue19780] Pickle 4 frame headers optimization

2013-11-26 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Bad wording perhaps, but:

+if not final:
+n += 9  # next frame header
 write = self.file_write
 write(FRAME)
 write(pack(Q, n))

does change how the frame length is calculated and emitted in the pickle stream.

This is not compliant with how the PEP defines it (the frame size doesn't 
include the header of the next frame):
http://www.python.org/dev/peps/pep-3154/#framing

 All tests are passed with this optimization

Well, perhaps there are not enough tests :-) But the protocol is standardized 
so that other people can implement it. The reference implementation can't do 
something different than the PEP does.

--

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



[issue18874] Add a new tracemalloc module to trace memory allocations

2013-11-26 Thread STINNER Victor

STINNER Victor added the comment:

The code has been merged. I didn't see any test_tracemalloc on buildbots. I 
tried to address all remarks on the Rietveld reviews. So I'm now closing the 
issue.

Please open new issue if you have more remarks. For example, I opened:

- #19798: tracemalloc: rename max_size to peak_size in get_traced_memory() 
result
- #19787: tracemalloc: set_reentrant() should not have to call 
PyThread_delete_key()
- #19786: tracemalloc: remove arbitrary limit of 100 frames

Thanks for your reviews.

--
resolution:  - fixed
status: open - closed

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



[issue19798] tracemalloc: rename max_size to peak_size in get_traced_memory() result

2013-11-26 Thread STINNER Victor

STINNER Victor added the comment:

@neologix: I would like your opinion first, because you accepted the PEP.

--

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



[issue19780] Pickle 4 frame headers optimization

2013-11-26 Thread STINNER Victor

STINNER Victor added the comment:

If it's an optimizatio, can I see some benchmarks numbers? :-)

I would be interested of benchmarks pickle 3 vs pickle 4.

--
nosy: +haypo

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



[issue19766] test_venv: test_with_pip() failed on AMD64 Fedora without threads 3.x buildbot

2013-11-26 Thread STINNER Victor

STINNER Victor added the comment:

In fact, it's an issue in the urllib3 library which require threads.

$ cd /home/haypo/pip/PIP/pip/_vendor/requests/packages
$ /home/haypo/prog/python/default/venv/bin/python -c 'import urllib3'
Traceback (most recent call last):
  File string, line 1, in module
  File /home/haypo/pip/PIP/pip/_vendor/requests/packages/urllib3/__init__.py, 
line 24, in module
from .poolmanager import PoolManager, ProxyManager, proxy_from_url
  File 
/home/haypo/pip/PIP/pip/_vendor/requests/packages/urllib3/poolmanager.py, 
line 14, in module
from ._collections import RecentlyUsedContainer
  File 
/home/haypo/pip/PIP/pip/_vendor/requests/packages/urllib3/_collections.py, 
line 8, in module
from threading import RLock
  File /home/haypo/prog/python/default/Lib/threading.py, line 4, in module
import _thread
ImportError: No module named '_thread'

Here is a patch for urllib3.

I reported the issue upstream:
https://github.com/shazow/urllib3/issues/289

--
keywords: +patch
Added file: http://bugs.python.org/file32857/urllib3_no_thread.patch

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



[issue19798] tracemalloc: rename max_size to peak_size in get_traced_memory() result

2013-11-26 Thread Charles-François Natali

Charles-François Natali added the comment:

 STINNER Victor added the comment:

 @neologix: I would like your opinion first, because you accepted the PEP.

Well, I'm not a native speaker, but peak does sound better than
max (I'd say the later refers to an externally-enforced limit,
contrarily to the former).

So the change looks fine, although:

`(size: int, peak_size: int)``


Would maybe be better with:

`(current: int, peak: int)``


no?

--

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



[issue19799] Clarifications for the documentation of pathlib

2013-11-26 Thread Eli Bendersky

New submission from Eli Bendersky:

Following up from Issue #19673; The initial patch clarifies the use cases of 
pure vs. concrete paths a bit and adds explicit signatures for the path class 
constructors (moving the construction discussion under the parent class).

Also, IMHO an inheritance diagram from PEP 428 is very relevant and useful. 
Would you mind if I add a .png for the pathlib rst doc?

--
assignee: eli.bendersky
components: Documentation
messages: 204477
nosy: eli.bendersky, pitrou
priority: normal
severity: normal
stage: patch review
status: open
title: Clarifications for the documentation of pathlib
type: enhancement
versions: Python 3.4, Python 3.5

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



[issue19799] Clarifications for the documentation of pathlib

2013-11-26 Thread Eli Bendersky

Changes by Eli Bendersky eli...@gmail.com:


--
keywords: +patch
Added file: http://bugs.python.org/file32858/issue19799.initial.patch

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



[issue19780] Pickle 4 frame headers optimization

2013-11-26 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

 Bad wording perhaps, but:
 
 +if not final:
 +n += 9  # next frame header
  write = self.file_write
  write(FRAME)
  write(pack(Q, n))
 
 does change how the frame length is calculated and emitted in the pickle
 stream.

Of course (as any optimizer). It produces more optimal pickled data which can 
be parsed by existing unpicklers.

 This is not compliant with how the PEP defines it (the frame size doesn't
 include the header of the next frame):
 http://www.python.org/dev/peps/pep-3154/#framing

How the pickler decides to partition the pickle stream into frames is an 
implementation detail.

  All tests are passed with this optimization
 
 Well, perhaps there are not enough tests :-) But the protocol is
 standardized so that other people can implement it. The reference
 implementation can't do something different than the PEP does.

Could you write tests which exposes behavior difference without sticking 
implementation details?

--

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



[issue19557] ast - docs for every node type are missing

2013-11-26 Thread anatoly techtonik

anatoly techtonik added the comment:

https://greentreesnakes.readthedocs.org/en/latest/

--

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



[issue19780] Pickle 4 frame headers optimization

2013-11-26 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

 If it's an optimizatio, can I see some benchmarks numbers? :-)

First create two files. Run unpatched Python:

./python -c import pickle, lzma; data = [bytes([i])*2**16 for i in 
range(256)]; with open('test.pickle4', 'wb'): pickle.dump(data, f, 4)

Then run the same with patched Python for 'test.pickle4opt'.

Now benchmark loading.

$ ./python -m timeit import pickle;  with open('test.pickle4', 'rb', 
buffering=0) as f: pickle.load(f)
10 loops, best of 3: 52.9 msec per loop

$ ./python -m timeit import pickle;  with open('test.pickle4opt', 'rb', 
buffering=0) as f: pickle.load(f)
10 loops, best of 3: 48.9 msec per loop

The difference is about 5%. On faster computers with slower files (sockets?) it 
should be larger.

--

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



[issue19780] Pickle 4 frame headers optimization

2013-11-26 Thread STINNER Victor

STINNER Victor added the comment:

 On faster computers with slower files (sockets?) it should be larger.

If your patch avoids unbuffered reads, you can test using these commands before 
your benchmark:

sync; echo 3  /proc/sys/vm/drop_caches

And use one large load() instead of running it in a loop. Or call these 
commands in the loop.

--

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



[issue19624] Switch constants in the errno module to IntEnum

2013-11-26 Thread STINNER Victor

STINNER Victor added the comment:

I don't know if it's possible/convinient, but it would be nice to have a str() 
method using os.strerror(). Or maybe a method with a different name.

--
nosy: +haypo

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



[issue19780] Pickle 4 frame headers optimization

2013-11-26 Thread Antoine Pitrou

Antoine Pitrou added the comment:

  This is not compliant with how the PEP defines it (the frame size doesn't
  include the header of the next frame):
  http://www.python.org/dev/peps/pep-3154/#framing
 
 How the pickler decides to partition the pickle stream into frames is an 
 implementation detail.

Of course, but it still has to respect the frame structure shown in the
ASCII art drawing.

 Could you write tests which exposes behavior difference without sticking 
 implementation details?

That's a good idea. At least I'll open an issue for it.

--

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



[issue19760] Deprecation warnings in ttest_sysconfig and test_distutils

2013-11-26 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 25f856d500e3 by Serhiy Storchaka in branch 'default':
Issue #19760: Silence sysconfig's 'SO' key deprecation warnings in tests.
http://hg.python.org/cpython/rev/25f856d500e3

--
nosy: +python-dev

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



[issue19760] Deprecation warnings in ttest_sysconfig and test_distutils

2013-11-26 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
assignee:  - serhiy.storchaka
resolution:  - fixed
stage: patch review - committed/rejected
status: open - closed

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



[issue19800] Write more detailed framing tests

2013-11-26 Thread Antoine Pitrou

New submission from Antoine Pitrou:

The pickle tests for protocol 4 currently don't test that framing conforms 
strictly to the frame structure shown in:
http://www.python.org/dev/peps/pep-3154/#framing

It would be nice to add tests for this, especially the frame size.

--
components: Library (Lib), Tests
messages: 204485
nosy: alexandre.vassalotti, pitrou, serhiy.storchaka
priority: low
severity: normal
status: open
title: Write more detailed framing tests
type: behavior
versions: Python 3.4

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



[issue19794] Formatting of True/False in decimal docs

2013-11-26 Thread Mark Dickinson

Mark Dickinson added the comment:

LGTM.

--

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



[issue19588] Silently skipped test in test_random

2013-11-26 Thread Julian Gindi

Julian Gindi added the comment:

Just wanted to see if there was anything else I needed to do to get this patch 
rolling :)

--

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



[issue19780] Pickle 4 frame headers optimization

2013-11-26 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

 If your patch avoids unbuffered reads, you can test using these commands
 before your benchmark:
 
 sync; echo 3  /proc/sys/vm/drop_caches

Thank you. But starting Python needs a lot of I/O. This causes very unstable 
results for this test data.

--

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



[issue19780] Pickle 4 frame headers optimization

2013-11-26 Thread STINNER Victor

STINNER Victor added the comment:

 This causes very unstable results for this test data.

So try os.system(sync; echo 3  /proc/sys/vm/drop_caches) in your timeit 
benchmark.

--

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



[issue19782] No SSL match_hostname() in imaplib

2013-11-26 Thread R. David Murray

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


--
components: +email
nosy: +barry, r.david.murray

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



[issue19784] No SSL match_hostname() in poplib

2013-11-26 Thread R. David Murray

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


--
components: +email
nosy: +barry, r.david.murray

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



[issue19780] Pickle 4 frame headers optimization

2013-11-26 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

 Of course, but it still has to respect the frame 
structure shown in the
 ASCII art drawing.

I think the ASCII art drawing is just inaccurate. It 
forbids optional framing (tested in 
test_optional_frames).

--

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



[issue19785] No SSL match_hostname() in smtplib

2013-11-26 Thread R. David Murray

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


--
components: +email
nosy: +barry, r.david.murray

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



[issue19794] Formatting of True/False in decimal docs

2013-11-26 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 04c4f141874b by Serhiy Storchaka in branch '2.7':
Issue #19794: Improved markup for True/False constants.
http://hg.python.org/cpython/rev/04c4f141874b

New changeset c1d163203f21 by Serhiy Storchaka in branch '3.3':
Issue #19794: Improved markup for True/False constants.
http://hg.python.org/cpython/rev/c1d163203f21

New changeset 67e642f5ab5d by Serhiy Storchaka in branch 'default':
Issue #19794: Improved markup for True/False constants.
http://hg.python.org/cpython/rev/67e642f5ab5d

--
nosy: +python-dev

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



[issue19794] Formatting of True/False in decimal docs

2013-11-26 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Thanks Mark.

--
resolution:  - fixed
stage: patch review - committed/rejected
status: open - closed

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



[issue19624] Switch constants in the errno module to IntEnum

2013-11-26 Thread STINNER Victor

STINNER Victor added the comment:

 This is not so easy issue because the errno module is not pure Python module. 
 ;)

An option is to rename the C errno module to _errno and leave it unchanged, and 
provide a Python errno module which enum API.

Then slowly errno module should be used instead of _errno.

Using enum for errno should not slow down Python startup time.

--

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



[issue14073] allow per-thread atexit()

2013-11-26 Thread STINNER Victor

STINNER Victor added the comment:

See also the issue #19466: the behaviour of daemon threads changed at Python 
exit in Python 3.4.

--
nosy: +haypo

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



[issue19547] HTTPS proxy support missing without warning

2013-11-26 Thread Stefan Richter

Changes by Stefan Richter ste...@02strich.de:


--
versions: +Python 2.6, Python 3.1, Python 3.2, Python 3.3, Python 3.4, Python 
3.5

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



[issue19766] test_venv: test_with_pip() failed on AMD64 Fedora without threads 3.x buildbot

2013-11-26 Thread STINNER Victor

STINNER Victor added the comment:

Cool, my patch was already applied upstream:

https://github.com/shazow/urllib3/commit/929f15866e62d02a0249284cf54d1b8b6441505a

@Nick: can you try to package a new wheel package for pip?

--

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



[issue19588] Silently skipped test in test_random

2013-11-26 Thread Zachary Ware

Zachary Ware added the comment:

Nope, your patch looks good, I just haven't gotten it committed yet :)

--

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



[issue19638] dtoa: conversion from '__int64' to 'int', possible loss of data

2013-11-26 Thread Roundup Robot

Roundup Robot added the comment:

New changeset eac133e13bb5 by Mark Dickinson in branch '3.3':
Issue #19638: Raise ValueError instead of crashing when converting billion 
character strings to float.
http://hg.python.org/cpython/rev/eac133e13bb5

New changeset 9c7ab3e68243 by Mark Dickinson in branch 'default':
Issue #19638: Merge from 3.3
http://hg.python.org/cpython/rev/9c7ab3e68243

--
nosy: +python-dev

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



[issue19638] dtoa: conversion from '__int64' to 'int', possible loss of data

2013-11-26 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 6d6a018a3bb0 by Mark Dickinson in branch '2.7':
Issue #19638: Raise ValueError instead of crashing when converting billion 
character strings to float.
http://hg.python.org/cpython/rev/6d6a018a3bb0

--

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



[issue19638] dtoa: conversion from '__int64' to 'int', possible loss of data

2013-11-26 Thread Mark Dickinson

Mark Dickinson added the comment:

Now fixed.

--
resolution:  - fixed
stage: patch review - committed/rejected
status: open - closed

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



[issue19638] dtoa: conversion from '__int64' to 'int', possible loss of data

2013-11-26 Thread STINNER Victor

STINNER Victor added the comment:

I ran test_strtod using: ./python -m test -M 6G test_strtod. The test passed 
successfully on my 64-bit Linux box. But there is an issue with the announced 
memory limit: it looks closer to 6 GB than 5 GB.

$ ./python -m test -M 6G -v test_strtod
== CPython 3.4.0b1 (default:9c7ab3e68243, Nov 26 2013, 17:24:05) [GCC 4.7.2 
20121109 (Red Hat 4.7.2-8)]
==   Linux-3.9.4-200.fc18.x86_64-x86_64-with-fedora-18-Spherical_Cow 
little-endian
==   hash algorithm: siphash24 64bit
==   /home/haypo/prog/python/default/build/test_python_2997
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_strtod
test_bigcomp (test.test_strtod.StrtodTests) ... ok
test_boundaries (test.test_strtod.StrtodTests) ... ok
test_halfway_cases (test.test_strtod.StrtodTests) ... ok
test_large_exponents (test.test_strtod.StrtodTests) ... ok
test_oversized_digit_strings (test.test_strtod.StrtodTests) ... 
 ... expected peak memory use: 5.0G
 ... process data size: 2.1G
(...)
 ... process data size: 4.1G
(...)
 ... process data size: 6.2G
(...)
 ... process data size: 2.1G
ok
test_parsing (test.test_strtod.StrtodTests) ... ok
test_particular (test.test_strtod.StrtodTests) ... ok
test_short_halfway_cases (test.test_strtod.StrtodTests) ... ok
test_underflow_boundary (test.test_strtod.StrtodTests) ... ok

--
Ran 9 tests in 63.871s

OK
1 test OK.

--

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



[issue19624] Switch constants in the errno module to IntEnum

2013-11-26 Thread Eli Bendersky

Changes by Eli Bendersky eli...@gmail.com:


--
keywords:  -easy

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



[issue19638] dtoa: conversion from '__int64' to 'int', possible loss of data

2013-11-26 Thread Mark Dickinson

Mark Dickinson added the comment:

This caused test failures on 32-bit machines on 2.7, since they can't create 
these huge strings in the first place.  I'm working on a fix.

 But there is an issue with the announced memory limit:

Thanks.  I'll look into it.

--

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



[issue19799] Clarifications for the documentation of pathlib

2013-11-26 Thread Antoine Pitrou

Antoine Pitrou added the comment:

 Would you mind if I add a .png for the pathlib rst doc?

No, it sounds ok to me.

--

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



[issue19801] Concatenating bytes is much slower than concatenating strings

2013-11-26 Thread Sworddragon

New submission from Sworddragon:

In the attachments is a testcase which does concatenate 10 times a string 
and than 10 times a bytes object. Here is my result:

sworddragon@ubuntu:~/tmp$ ./test.py
String: 0.03165316581726074
Bytes : 0.5805566310882568

--
components: Benchmarks
files: test.py
messages: 204503
nosy: Sworddragon
priority: normal
severity: normal
status: open
title: Concatenating bytes is much slower than concatenating strings
type: behavior
versions: Python 3.3
Added file: http://bugs.python.org/file32859/test.py

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



[issue19793] Formatting of True/False in pathlib docs

2013-11-26 Thread Antoine Pitrou

Antoine Pitrou added the comment:

I think :const:`True` is the norm, but the patch looks good to me regardless.

--

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



[issue19638] dtoa: conversion from '__int64' to 'int', possible loss of data

2013-11-26 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 4c523ea2b429 by Mark Dickinson in branch '2.7':
Issue #19638: Skip large digit string tests on 32-bit platforms.
http://hg.python.org/cpython/rev/4c523ea2b429

--

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



[issue19802] socket.SO_PRIORITY is missing

2013-11-26 Thread Sworddragon

New submission from Sworddragon:

socket(7) does contain SO_PRIORITY but trying to use this value will result in 
this error: AttributeError: 'module' object has no attribute 'SO_PRIORITY'

--
components: Library (Lib)
messages: 204506
nosy: Sworddragon
priority: normal
severity: normal
status: open
title: socket.SO_PRIORITY is missing
type: behavior
versions: Python 2.7, Python 3.3

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



[issue19801] Concatenating bytes is much slower than concatenating strings

2013-11-26 Thread R. David Murray

R. David Murray added the comment:

It is definitely not a good idea to rely on that optimization of += for string. 
 Obviously bytes doesn't have the same optimization.  (String didn't either for 
a while in Python3, and there was some controversy around adding it back 
exactly because one should not rely on it.)

--
nosy: +r.david.murray

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



[issue19801] Concatenating bytes is much slower than concatenating strings

2013-11-26 Thread R. David Murray

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


--
type: behavior - performance

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



[issue19801] Concatenating bytes is much slower than concatenating strings

2013-11-26 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Indeed. If you want to concatenate a lot of bytes objects efficiently, there 
are three solutions:
- concatenate to a bytearray
- write to a io.BytesIO object
- use b''.join to concatenate all objects at once

--
nosy: +pitrou

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



[issue19801] Concatenating bytes is much slower than concatenating strings

2013-11-26 Thread Benjamin Peterson

Changes by Benjamin Peterson benja...@python.org:


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

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



[issue19802] socket.SO_PRIORITY is missing

2013-11-26 Thread Benjamin Peterson

Changes by Benjamin Peterson benja...@python.org:


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

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



[issue19802] socket.SO_PRIORITY is missing

2013-11-26 Thread R. David Murray

R. David Murray added the comment:

For the record, a little googling indicates this may be a linux-only option 
(FreeBSD 6.4, for example, does not support it, nor does OS X 10.8, which are 
two systems to which I currently have access).  That doesn't mean it shouldn't 
be added.

--
components: +Tests -Library (Lib)
nosy: +r.david.murray
type: behavior - enhancement

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



[issue19793] Formatting of True/False in pathlib docs

2013-11-26 Thread Georg Brandl

Georg Brandl added the comment:

``False`` is actually the preferred way, being shorter and easier to read (and 
we don't need to link to the documentation for False).

--
nosy: +georg.brandl

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



[issue14910] argparse: disable abbreviation

2013-11-26 Thread Eli Bendersky

Changes by Eli Bendersky eli...@gmail.com:


--
nosy: +eli.bendersky

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



[issue19802] socket.SO_PRIORITY is missing

2013-11-26 Thread Claudiu.Popa

Claudiu.Popa added the comment:

Here's a simple patch which adds this flag. It has no tests, because I noticed 
that there are no tests for per-platform flags in test_socket.py (only for CAN, 
RDS and general flags).

--
keywords: +patch
nosy: +Claudiu.Popa
Added file: http://bugs.python.org/file32860/socket.patch

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



[issue19802] socket.SO_PRIORITY is missing

2013-11-26 Thread R. David Murray

R. David Murray added the comment:

Yeah, I'm not sure how you'd write a test in such a way that it would test 
anything meaningful.  Parse the .h file in the test?  Seems like overkill.

--

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



[issue19557] ast - docs for every node type are missing

2013-11-26 Thread Georg Brandl

Georg Brandl added the comment:

When citing a link, it's customary to give at least a comment *why* you are 
citing it.

--
nosy: +georg.brandl

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



[issue19679] smtpd.py (SMTPChannel): implement enhanced status codes

2013-11-26 Thread Leslie P. Polzer

Leslie P. Polzer added the comment:

Sounds reasonable, I will propose a patch soon. Thanks!

--

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



[issue17523] Additional tests for the os module.

2013-11-26 Thread Will Weaver

Will Weaver added the comment:

It seems that I probably missed some tests as I only ran then on Mac OS. Such a 
minor addition so no need to do anything about it. If I go about it in a better 
way I'll make a new issue.

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

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



[issue11489] json.dumps not parsable by json.loads (on Linux only)

2013-11-26 Thread Roundup Robot

Roundup Robot added the comment:

New changeset c85305a54e6d by Serhiy Storchaka in branch '2.7':
Issue #11489: JSON decoder now accepts lone surrogates.
http://hg.python.org/cpython/rev/c85305a54e6d

New changeset 8abbdbe86c01 by Serhiy Storchaka in branch '3.3':
Issue #11489: JSON decoder now accepts lone surrogates.
http://hg.python.org/cpython/rev/8abbdbe86c01

New changeset 5f7326ed850f by Serhiy Storchaka in branch 'default':
Issue #11489: JSON decoder now accepts lone surrogates.
http://hg.python.org/cpython/rev/5f7326ed850f

--
nosy: +python-dev

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



[issue19793] Formatting of True/False in pathlib docs

2013-11-26 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 835007ccf2b0 by Serhiy Storchaka in branch 'default':
Issue #19793: Improved markup for True/False constants in pathlib documentation.
http://hg.python.org/cpython/rev/835007ccf2b0

--
nosy: +python-dev

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



[issue19793] Formatting of True/False in pathlib docs

2013-11-26 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
resolution:  - fixed
stage: patch review - committed/rejected
status: open - closed

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



[issue11489] json.dumps not parsable by json.loads (on Linux only)

2013-11-26 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
resolution:  - fixed
stage: patch review - committed/rejected
status: open - closed

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



[issue19509] No SSL match_hostname() in ftp, imap, nntp, pop, smtp modules

2013-11-26 Thread Larry Hastings

Larry Hastings added the comment:

I don't know enough about SSL to make a feature vs bug/security fix ruling on 
this.  Can a second person who does--maybe Bill Janssen?--chime in?

--

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



[issue19509] No SSL match_hostname() in ftp, imap, nntp, pop, smtp modules

2013-11-26 Thread Donald Stufft

Donald Stufft added the comment:

I agree with Christian, mail.stufft.io should not be able to masquerade as 
smtp.google.com and being able to do so is a pretty big security hole.

--
nosy: +dstufft

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



[issue19509] No SSL match_hostname() in ftp, imap, nntp, pop, smtp modules

2013-11-26 Thread Antoine Pitrou

Antoine Pitrou added the comment:

I think adding an API in bugfix releases must be an exceptional decision and 
I'm honestly not convinced this issue justifies it.
It'd be more convincing if there was actually demand for this feature (e.g. 
from higher-level library authors).

--

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



[issue19509] No SSL match_hostname() in ftp, imap, nntp, pop, smtp modules

2013-11-26 Thread Donald Stufft

Donald Stufft added the comment:

Probably the higher level libraries don't even realize it's not happening, it's 
similar to the issue of SSL validation for HTTPS connections where a vast 
swathe of people didn't even realize that their certificates weren't being 
validated.

--

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



[issue19509] No SSL match_hostname() in ftp, imap, nntp, pop, smtp modules

2013-11-26 Thread Christian Heimes

Christian Heimes added the comment:

I agree with Antoine. The five attached bug reports only refer to Python 3.4.

--

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



[issue19509] No SSL match_hostname() in ftp, imap, nntp, pop, smtp modules

2013-11-26 Thread Antoine Pitrou

Antoine Pitrou added the comment:

 Probably the higher level libraries don't even realize it's not
 happening, it's similar to the issue of SSL validation for HTTPS
 connections where a vast swathe of people didn't even realize that
 their certificates weren't being validated.

Exactly. And we didn't add certificate checking in bugfix releases in
the name of security.

Now I appreciate that it would be a bit of a pity to wait for 3.5 to add
this, so perhaps Larry wants to make an exception to the 3.4 feature
freeze so that this feature can come in (assuming Christian's patch is
ready).

--

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



[issue19509] No SSL match_hostname() in ftp, imap, nntp, pop, smtp modules

2013-11-26 Thread Georg Brandl

Georg Brandl added the comment:

For a true security fix, the default for check_hostname would have to be True.  
However, that will create a lot of backward compatibility problems for 
questionable gain.

I think Larry should make an exception for 3.4 and allow this new feature.

--

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



[issue19638] dtoa: conversion from '__int64' to 'int', possible loss of data

2013-11-26 Thread Mark Dickinson

Mark Dickinson added the comment:

Peak memory usage appears to be around 4 times the string length on Python 3.3, 
and around 3 times the string length on Python 3.4.

For 3.4, the peak occurs while formatting the exception message;  presumably at 
that point we've got all three of (a) the original string, (b) the exception 
message string being built, and (c) some sort of temporary string used during 
formatting.

For the purposes of this issue, I'll update the constants in the bigmemtest 
decorators.

--
status: closed - open

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



[issue19509] No SSL match_hostname() in ftp, imap, nntp, pop, smtp modules

2013-11-26 Thread Larry Hastings

Larry Hastings added the comment:

Okay, you have my permission to add match_hostname() and fix the security hole 
you cite.  Can you have it done soon, so it can bake for a while in trunk 
before we cut beta 2?

--

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



[issue19662] smtpd.py should not decode utf-8

2013-11-26 Thread Illirgway

Illirgway added the comment:

Here is another patch for fixing this issue:

https://github.com/Illirgway/cpython/commit/12d7c59e0564c408a65dd782339f585ab6b14b34

Sorry for my bad english

--
nosy: +Illirgway
versions: +Python 3.3 -Python 3.5
Added file: http://bugs.python.org/file32861/python3.3-lib-smtpd-patch.diff

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



[issue19557] ast - docs for every node type are missing

2013-11-26 Thread anatoly techtonik

anatoly techtonik added the comment:

SO link serves a proof that a problem is actual. It is needed, because, for 
example Brett doesn't think it is important.

2nd link is the same proof, and also an example of documentation wanted.

--

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



[issue19509] No SSL match_hostname() in ftp, imap, nntp, pop, smtp modules

2013-11-26 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
stage: needs patch - patch review
versions:  -Python 3.2, Python 3.3

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



[issue19662] smtpd.py should not decode utf-8

2013-11-26 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
stage:  - patch review
versions: +Python 3.4 -Python 3.3

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



[issue19557] ast - docs for every node type are missing

2013-11-26 Thread anatoly techtonik

anatoly techtonik added the comment:

In fact it may be the documentation that could be merged.

--

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



[issue19792] pathlib does not support symlink in Windows XP

2013-11-26 Thread Antoine Pitrou

Antoine Pitrou added the comment:

 Also, how many people uses pathlib in Python 3.4 in Windows XP with
 third-party drivers enabling symbolic link support? Should be small.

I've never heard of third-party driver for symlink link support before 
(granted, I'm not a Windows user). I'm willing to bet that this is a niche 
situation indeed, so I'm not very warm for tweaking pathlib around it.

--
nosy: +brian.curtin, tim.golden

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



[issue19791] test_pathlib should use can_symlink or skip_unless_symlink from test.support

2013-11-26 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Mmh... The reason it's like that is that pathlib is originally 2.7-compatible 
(and I'd like to do a 1.0 release on PyPI by the Python 3.4 timeframe). How 
about we defer this to Python 3.5, to make merging easier ?

--

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



[issue19509] No SSL match_hostname() in ftp, imap, nntp, pop, smtp modules

2013-11-26 Thread Donald Stufft

Donald Stufft added the comment:

I assumed we were talking about 3.4 and didn't even notice that the issues had 
3.3 and 3.2 attached to it.

--

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



[issue19729] [regression] str.format sublevel format parsing broken in Python 3.3.3

2013-11-26 Thread Georg Brandl

Georg Brandl added the comment:

Hmm, sucks.

Benjamin, can you come up with a fix?  I'll give it a few weeks to wait for 
more potential regressions and then do a 3.3.4.

--

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



[issue11508] Virtual Interfaces cause uuid._find_mac to raise a ValueError under Linux

2013-11-26 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 72951ffbdc76 by Serhiy Storchaka in branch '2.7':
Issue #11508: Fixed uuid.getnode() and uuid.uuid1() on environment with
http://hg.python.org/cpython/rev/72951ffbdc76

New changeset a5c26e57f429 by Serhiy Storchaka in branch '3.3':
Issue #11508: Fixed uuid.getnode() and uuid.uuid1() on environment with
http://hg.python.org/cpython/rev/a5c26e57f429

New changeset efd0e6d675ff by Serhiy Storchaka in branch 'default':
Issue #11508: Fixed uuid.getnode() and uuid.uuid1() on environment with
http://hg.python.org/cpython/rev/efd0e6d675ff

--
nosy: +python-dev

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



[issue11508] Virtual Interfaces cause uuid._find_mac to raise a ValueError under Linux

2013-11-26 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Thank you Kent for your contribution.

--
resolution:  - fixed
stage: patch review - committed/rejected
status: open - closed
versions: +Python 2.7

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



[issue19803] memoryview complain ctypes byte array are not native single character

2013-11-26 Thread HCT

New submission from HCT:

I'm trying to create ctypes buffer to be used back and forth with C libraries, 
but I keep getting errors. I need to slice the buffer to cut out different 
pieces to work on, so I try to get a memoryview of the buffer. does the error 
message imply that c_ubyte, c_uint8, c_byte and c_char are not native single 
character types?

 memoryview(c_ubyte()).cast('B')
Traceback (most recent call last):
  File stdin, line 1, in module
ValueError: memoryview: source format must be a native single character format 
prefixed with an optional '@'
 memoryview((c_ubyte*1024)()).cast('B')
Traceback (most recent call last):
  File stdin, line 1, in module
ValueError: memoryview: source format must be a native single character format 
prefixed with an optional '@'
 memoryview(c_uint8()).cast('B')
Traceback (most recent call last):
  File stdin, line 1, in module
ValueError: memoryview: source format must be a native single character format 
prefixed with an optional '@'
 memoryview((c_uint8*1024)()).cast('B')
Traceback (most recent call last):
  File stdin, line 1, in module
ValueError: memoryview: source format must be a native single character format 
prefixed with an optional '@'
 memoryview((c_byte*1024)()).cast('B')
Traceback (most recent call last):
  File stdin, line 1, in module
ValueError: memoryview: source format must be a native single character format 
prefixed with an optional '@'
 memoryview((c_char*1024)()).cast('B')
Traceback (most recent call last):
  File stdin, line 1, in module
ValueError: memoryview: source format must be a native single character format 
prefixed with an optional '@'
 memoryview((c_char*1024)())[0]
Traceback (most recent call last):
  File stdin, line 1, in module
NotImplementedError: memoryview: unsupported format (1024)c
 memoryview((c_byte*1024)())[0]
Traceback (most recent call last):
  File stdin, line 1, in module
NotImplementedError: memoryview: unsupported format (1024)b
 memoryview((c_ubyte*1024)())[0]
Traceback (most recent call last):
  File stdin, line 1, in module
NotImplementedError: memoryview: unsupported format (1024)B
 memoryview((c_uint8*1024)())[0]
Traceback (most recent call last):
  File stdin, line 1, in module
NotImplementedError: memoryview: unsupported format (1024)B


--
components: Library (Lib), ctypes
messages: 204536
nosy: hct
priority: normal
severity: normal
status: open
title: memoryview complain ctypes byte array are not native single character
versions: Python 3.3

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



[issue19588] Silently skipped test in test_random

2013-11-26 Thread Roundup Robot

Roundup Robot added the comment:

New changeset c8e138646be1 by Zachary Ware in branch '2.7':
Issue #19588: Fixed tests in test_random that were silently skipped most
http://hg.python.org/cpython/rev/c8e138646be1

New changeset c65882d79c5f by Zachary Ware in branch '3.3':
Issue #19588: Fixed tests in test_random that were silently skipped most
http://hg.python.org/cpython/rev/c65882d79c5f

New changeset 28ec217ce510 by Zachary Ware in branch 'default':
Issue #19588: Merge with 3.3
http://hg.python.org/cpython/rev/28ec217ce510

--
nosy: +python-dev

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



[issue19588] Silently skipped test in test_random

2013-11-26 Thread Zachary Ware

Zachary Ware added the comment:

Thanks for the patch, Julian!

--
assignee:  - zach.ware
resolution:  - fixed
stage: patch review - committed/rejected
status: open - closed

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



  1   2   >