[issue22470] Possible integer overflow in error handlers

2014-09-30 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:


--
nosy: +Arfrever

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



[issue22286] Allow backslashreplace error handler to be used on input

2014-09-30 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:


--
nosy: +Arfrever

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



[issue22517] BufferedRWpair doesn't clear weakrefs

2014-09-30 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:


--
versions: +Python 3.3, Python 3.5

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



[issue22519] integer overflow in computing byte's object representation

2014-09-30 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:


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

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



[issue22207] Test for integer overflow on Py_ssize_t: explicitly cast to size_t

2014-09-30 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Gregory just has committed an equivalent of unicode_2.patch in a404bf4db6a6.

--
nosy: +gregory.p.smith

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



[issue22207] Test for integer overflow on Py_ssize_t: explicitly cast to size_t

2014-09-30 Thread Gregory P. Smith

Gregory P. Smith added the comment:

modify it as you see fit, i hadn't noticed this issue; just the warnings.

--

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



[issue22207] Test for integer overflow on Py_ssize_t: explicitly cast to size_t

2014-09-30 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Yes, these warning annoyed me too. But Victor's patch is purposed to check 
input data of public C API functions.

--

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



[issue22207] Test for integer overflow on Py_ssize_t: explicitly cast to size_t

2014-09-30 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Here is original Victor's patch synchronized with the tip.

--
Added file: http://bugs.python.org/file36757/issue22207_unicode_3.patch

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



[issue4093] add gc/memory management tests to pybench

2014-09-30 Thread Marc-Andre Lemburg

Marc-Andre Lemburg added the comment:

I think it's better to keep pybench speed performance oriented and rather use a 
new tool for memory performance tests.

I've recently done a lightning talk at PyCon UK on the subject and found the 
current tools we have for memory testing a bit underdeveloped:

http://www.egenix.com/library/presentations/PyCon-UK-2014-When-performance-matters/

As s result, I wrote some support helpers for this, which can be found in 
perftools.py on:

https://github.com/egenix/when-performance-matters

Perhaps this will some day turn into a pymembench :-)

For now, I'm closing the ticket.

--
status: open - closed

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



[issue22207] Test for integer overflow on Py_ssize_t: explicitly cast to size_t

2014-09-30 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I have reviewed the patch and found only few checks which looks good to me. 
Also I found two possible overflows (not fixed by the patch). All other changes 
looks redundant to me and just churn a code.

--

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



[issue22448] call_at/call_later with Timer cancellation can result in (practically) unbounded memory usage.

2014-09-30 Thread STINNER Victor

STINNER Victor added the comment:

Sorry, I'm coming later after the review and the commit, but I worry about 
performances of _run_once() since it's the core of asyncio. Yury proposed to 
only iterate once on self._scheduled when removing delayed calls, and I have 
the same concern.

Here is a patch which change _run_once() to only iterate once.

IMO the change is obvious, the current iterates twice and makes the same check 
twice (check the _cancelled attribute of handles).

--
keywords: +patch
resolution: fixed - 
status: closed - open
Added file: http://bugs.python.org/file36758/asyncio_remove_delayed.patch

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



[issue22396] AIX posix_fadvise and posix_fallocate

2014-09-30 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 8e5e19b3cd4e by Victor Stinner in branch '3.4':
Issue #22396: On 32-bit AIX platform, don't expose os.posix_fadvise() nor
https://hg.python.org/cpython/rev/8e5e19b3cd4e

New changeset 5ade1061fa3d by Victor Stinner in branch 'default':
(Merge 3.4) Issue #22396: On 32-bit AIX platform, don't expose
https://hg.python.org/cpython/rev/5ade1061fa3d

--
nosy: +python-dev

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



[issue22396] AIX posix_fadvise and posix_fallocate

2014-09-30 Thread STINNER Victor

STINNER Victor added the comment:

 Or can we simply keep the function and skip the test?

Usually, we prefer to not provide the function in Python if it is known to be 
broken. Other examples:

- HAVE_BROKEN_POLL: don't declare select.poll()
- HAVE_BROKEN_PTHREAD_SIGMASK: don't declare signal.pthread_sigmask()

There are also HAVE_BROKEN_NICE and HAVE_BROKEN_UNSETENV.

Sorry, I'm too lazy to hack configure.ac, so I used a simple #ifdef in 
Modules/posixmodule.c to define POSIX_FADVISE_AIX_BUG. If you feel more 
confortable with autotools, don't hesitate to propose a better patch :-)

I consider that the issue is now fixed.

@David: You should check with IBM why they don't fix the issue.

--
resolution:  - fixed
status: open - closed

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



[issue5309] distutils doesn't parallelize extension module compilation

2014-09-30 Thread STINNER Victor

STINNER Victor added the comment:

It looks like compilation of Python 3.5 fails on FreeBSD 6.4 because of the 
changeset bbe57429eba0a9ec21fb0f1178f409f1bba44c22:

http://buildbot.python.org/all/builders/x86%20FreeBSD%206.4%203.x/builds/5061

Compile log:
---

building '_ctypes' extension
creating 
build/temp.freebsd-6.4-RELEASE-i386-3.5-pydebug/usr/home/db3l/buildarea/3.x.bolen-freebsd/build/Modules/_ctypes/libffi
creating 
build/temp.freebsd-6.4-RELEASE-i386-3.5-pydebug/usr/home/db3l/buildarea/3.x.bolen-freebsd/build/Modules/_ctypes/libffi/src
creating 
build/temp.freebsd-6.4-RELEASE-i386-3.5-pydebug/usr/home/db3l/buildarea/3.x.bolen-freebsd/build/Modules/_ctypes/libffi/src/x86
gcc -pthread -fPIC -fno-strict-aliasing -Wsign-compare -g -O0 -Wall 
-Wstrict-prototypes 
-Ibuild/temp.freebsd-6.4-RELEASE-i386-3.5-pydebug/libffi/include 
-Ibuild/temp.freebsd-6.4-RELEASE-i386-3.5-pydebug/libffi 
-I/usr/home/db3l/buildarea/3.x.bolen-freebsd/build/Modules/_ctypes/libffi/src 
-I./Include -I. -IInclude -I/usr/local/include 
-I/usr/home/db3l/buildarea/3.x.bolen-freebsd/build/Include 
-I/usr/home/db3l/buildarea/3.x.bolen-freebsd/build -c 
/usr/home/db3l/buildarea/3.x.bolen-freebsd/build/Modules/_ctypes/_ctypes.c -o 
build/temp.freebsd-6.4-RELEASE-i386-3.5-pydebug/usr/home/db3l/buildarea/3.x.bolen-freebsd/build/Modules/_ctypes/_ctypes.o
 -Wall -fexceptions
gcc -pthread -fPIC -fno-strict-aliasing -Wsign-compare -g -O0 -Wall 
-Wstrict-prototypes 
-Ibuild/temp.freebsd-6.4-RELEASE-i386-3.5-pydebug/libffi/include 
-Ibuild/temp.freebsd-6.4-RELEASE-i386-3.5-pydebug/libffi 
-I/usr/home/db3l/buildarea/3.x.bolen-freebsd/build/Modules/_ctypes/libffi/src 
-I./Include -I. -IInclude -I/usr/local/include 
-I/usr/home/db3l/buildarea/3.x.bolen-freebsd/build/Include 
-I/usr/home/db3l/buildarea/3.x.bolen-freebsd/build -c 
/usr/home/db3l/buildarea/3.x.bolen-freebsd/build/Modules/_ctypes/callbacks.c -o 
build/temp.freebsd-6.4-RELEASE-i386-3.5-pydebug/usr/home/db3l/buildarea/3.x.bolen-freebsd/build/Modules/_ctypes/callbacks.o
 -Wall -fexceptions
gcc -pthread -fPIC -fno-strict-aliasing -Wsign-compare -g -O0 -Wall 
-Wstrict-prototypes 
-Ibuild/temp.freebsd-6.4-RELEASE-i386-3.5-pydebug/libffi/include 
-Ibuild/temp.freebsd-6.4-RELEASE-i386-3.5-pydebug/libffi 
-I/usr/home/db3l/buildarea/3.x.bolen-freebsd/build/Modules/_ctypes/libffi/src 
-I./Include -I. -IInclude -I/usr/local/include 
-I/usr/home/db3l/buildarea/3.x.bolen-freebsd/build/Include 
-I/usr/home/db3l/buildarea/3.x.bolen-freebsd/build -c 
/usr/home/db3l/buildarea/3.x.bolen-freebsd/build/Modules/_ctypes/callproc.c -o 
build/temp.freebsd-6.4-RELEASE-i386-3.5-pydebug/usr/home/db3l/buildarea/3.x.bolen-freebsd/build/Modules/_ctypes/callproc.o
 -Wall -fexceptions
/usr/home/db3l/buildarea/3.x.bolen-freebsd/build/Modules/_ctypes/callproc.c: In 
function `py_dl_open':
/usr/home/db3l/buildarea/3.x.bolen-freebsd/build/Modules/_ctypes/callproc.c:1336:
 warning: initialization discards qualifiers from pointer target type
gcc -pthread -fPIC -fno-strict-aliasing -Wsign-compare -g -O0 -Wall 
-Wstrict-prototypes 
-Ibuild/temp.freebsd-6.4-RELEASE-i386-3.5-pydebug/libffi/include 
-Ibuild/temp.freebsd-6.4-RELEASE-i386-3.5-pydebug/libffi 
-I/usr/home/db3l/buildarea/3.x.bolen-freebsd/build/Modules/_ctypes/libffi/src 
-I./Include -I. -IInclude -I/usr/local/include 
-I/usr/home/db3l/buildarea/3.x.bolen-freebsd/build/Include 
-I/usr/home/db3l/buildarea/3.x.bolen-freebsd/build -c 
/usr/home/db3l/buildarea/3.x.bolen-freebsd/build/Modules/_ctypes/stgdict.c -o 
build/temp.freebsd-6.4-RELEASE-i386-3.5-pydebug/usr/home/db3l/buildarea/3.x.bolen-freebsd/build/Modules/_ctypes/stgdict.o
 -Wall -fexceptions
gcc -pthread -fPIC -fno-strict-aliasing -Wsign-compare -g -O0 -Wall 
-Wstrict-prototypes 
-Ibuild/temp.freebsd-6.4-RELEASE-i386-3.5-pydebug/libffi/include 
-Ibuild/temp.freebsd-6.4-RELEASE-i386-3.5-pydebug/libffi 
-I/usr/home/db3l/buildarea/3.x.bolen-freebsd/build/Modules/_ctypes/libffi/src 
-I./Include -I. -IInclude -I/usr/local/include 
-I/usr/home/db3l/buildarea/3.x.bolen-freebsd/build/Include 
-I/usr/home/db3l/buildarea/3.x.bolen-freebsd/build -c 
/usr/home/db3l/buildarea/3.x.bolen-freebsd/build/Modules/_ctypes/cfield.c -o 
build/temp.freebsd-6.4-RELEASE-i386-3.5-pydebug/usr/home/db3l/buildarea/3.x.bolen-freebsd/build/Modules/_ctypes/cfield.o
 -Wall -fexceptions
gcc -pthread -fPIC -fno-strict-aliasing -Wsign-compare -g -O0 -Wall 
-Wstrict-prototypes 
-Ibuild/temp.freebsd-6.4-RELEASE-i386-3.5-pydebug/libffi/include 
-Ibuild/temp.freebsd-6.4-RELEASE-i386-3.5-pydebug/libffi 
-I/usr/home/db3l/buildarea/3.x.bolen-freebsd/build/Modules/_ctypes/libffi/src 
-I./Include -I. -IInclude -I/usr/local/include 
-I/usr/home/db3l/buildarea/3.x.bolen-freebsd/build/Include 
-I/usr/home/db3l/buildarea/3.x.bolen-freebsd/build -c 
/usr/home/db3l/buildarea/3.x.bolen-freebsd/build/Modules/_ctypes/libffi/src/prep_cif.c
 -o 

[issue22521] ctypes compilation fails on FreeBSD: Undefined symbol ffi_call_win32

2014-09-30 Thread STINNER Victor

New submission from STINNER Victor:

On buildbots FreeBSD 6.4 and 7.2, the compilation of the ctypes module fails 
because the function ffi_call_win32 is missing. I don't understand why a 
win32 function would be needed on FreeBSD!?

http://buildbot.python.org/all/builders/x86%20FreeBSD%207.2%203.x/builds/5618/steps/test/logs/stdio

http://buildbot.python.org/all/builders/x86%20FreeBSD%206.4%203.x/builds/5060/steps/compile/logs/stdio

*** WARNING: renaming _ctypes since importing it failed: 
build/lib.freebsd-6.4-RELEASE-i386-3.5-pydebug/_ctypes.so: Undefined symbol 
ffi_call_win32

--
messages: 227878
nosy: haypo, koobs
priority: normal
severity: normal
status: open
title: ctypes compilation fails on FreeBSD: Undefined symbol ffi_call_win32
type: compile error
versions: Python 3.4, Python 3.5

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



[issue11406] There is no os.listdir() equivalent returning generator instead of list

2014-09-30 Thread Antoine Pitrou

Antoine Pitrou added the comment:

I haven't really followed, but now that the PEP is accepted, what is the 
progress on this one?

--

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



[issue22521] ctypes compilation fails on FreeBSD: Undefined symbol ffi_call_win32

2014-09-30 Thread STINNER Victor

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


--
components: +ctypes
keywords: +buildbot

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



[issue22521] ctypes compilation fails on FreeBSD: Undefined symbol ffi_call_win32

2014-09-30 Thread STINNER Victor

STINNER Victor added the comment:

 I don't understand why a win32 function would be needed on FreeBSD!?

I see the function defined in libffi, but I don't see it used in the ctypes 
module.

Note: the system libffi is not used, these buildbots compile the embedded 
version of libffi: checking for --with-system-ffi... no in configure logs.

--

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



[issue22522] sys.excepthook doesn't receive the traceback when called from code.InteractiveInterpreter

2014-09-30 Thread Claudiu Popa

New submission from Claudiu Popa:

It seems that sys.excepthook doesn't receive the traceback when an error occurs 
during a code.InteractiveInterpreter run. The problem is here: 
https://hg.python.org/cpython/file/5ade1061fa3d/Lib/code.py#l168. last_tb was 
previously set to None right before. The attached patch passes 
sys.last_traceback to sys.excepthook.

--
components: Library (Lib)
files: code_excepthook_traceback.patch
keywords: patch
messages: 227881
nosy: Claudiu.Popa, r.david.murray
priority: normal
severity: normal
status: open
title: sys.excepthook doesn't receive the traceback when called from 
code.InteractiveInterpreter
type: behavior
versions: Python 3.5
Added file: http://bugs.python.org/file36759/code_excepthook_traceback.patch

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



[issue11406] There is no os.listdir() equivalent returning generator instead of list

2014-09-30 Thread Ben Hoyt

Ben Hoyt added the comment:

Yes, PEP 471 has been accepted, and I've got a mostly-finished C implementation 
of os.scandir() for CPython 3.5, as well as tests and docs. If you want a sneak 
preview, see posixmodule_scandir*.c, test/test_scandir.py, and os.rst here: 
https://github.com/benhoyt/scandir

It's working well on Windows, but the Linux version has a couple of tiny issues 
yet (core dumps ;-).

Given that os.scandir() will solve this issue (as well as the bigger 
performance problem due to listdir throwing away file type info), can we close 
this issue and open another one to track the implementation of os.scandir() / 
PEP 471?

--

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



[issue5309] distutils doesn't parallelize extension module compilation

2014-09-30 Thread STINNER Victor

STINNER Victor added the comment:

There is a similar error on OpenIndiana buildbot, Python cannot be compiled 
since this build:

http://buildbot.python.org/all/builders/AMD64%20OpenIndiana%203.x/builds/8664/steps/compile/logs/stdio

gcc -fPIC -Wsign-compare -g -O0 -Wall -Wstrict-prototypes 
-I/usr/local/include/ncursesw -m64 -Werror=declaration-after-statement 
-Ibuild/temp.solaris-2.11-i86pc.64bit-3.5-pydebug/libffi/include 
-Ibuild/temp.solaris-2.11-i86pc.64bit-3.5-pydebug/libffi 
-I/export/home/buildbot/64bits/3.x.cea-indiana-amd64/build/Modules/_ctypes/libffi/src
 -I./Include -I. -IInclude -I/usr/local/include 
-I/export/home/buildbot/64bits/3.x.cea-indiana-amd64/build/Include 
-I/export/home/buildbot/64bits/3.x.cea-indiana-amd64/build -c 
/export/home/buildbot/64bits/3.x.cea-indiana-amd64/build/Modules/_ctypes/libffi/src/x86/sysv.S
 -o 
build/temp.solaris-2.11-i86pc.64bit-3.5-pydebug/export/home/buildbot/64bits/3.x.cea-indiana-amd64/build/Modules/_ctypes/libffi/src/x86/sysv.o
 -Wall -fexceptions
gcc -fPIC -Wsign-compare -g -O0 -Wall -Wstrict-prototypes 
-I/usr/local/include/ncursesw -m64 -Werror=declaration-after-statement 
-Ibuild/temp.solaris-2.11-i86pc.64bit-3.5-pydebug/libffi/include 
-Ibuild/temp.solaris-2.11-i86pc.64bit-3.5-pydebug/libffi 
-I/export/home/buildbot/64bits/3.x.cea-indiana-amd64/build/Modules/_ctypes/libffi/src
 -I./Include -I. -IInclude -I/usr/local/include 
-I/export/home/buildbot/64bits/3.x.cea-indiana-amd64/build/Include 
-I/export/home/buildbot/64bits/3.x.cea-indiana-amd64/build -c 
/export/home/buildbot/64bits/3.x.cea-indiana-amd64/build/Modules/_ctypes/libffi/src/x86/win32.S
 -o 
build/temp.solaris-2.11-i86pc.64bit-3.5-pydebug/export/home/buildbot/64bits/3.x.cea-indiana-amd64/build/Modules/_ctypes/libffi/src/x86/win32.o
 -Wall -fexceptions
/var/tmp//ccqBa4n2.s: Assembler messages:
/var/tmp//ccqBa4n2.s:8: Error: suffix or operands invalid for `push'
/var/tmp//ccqBa4n2.s:17: Error: suffix or operands invalid for `push'
/var/tmp//ccqBa4n2.s:18: Error: suffix or operands invalid for `push'
/var/tmp//ccqBa4n2.s:79: Error: suffix or operands invalid for `jmp'
/var/tmp//ccqBa4n2.s:138: Error: suffix or operands invalid for `pop'
/var/tmp//ccqBa4n2.s:147: Error: suffix or operands invalid for `push'
/var/tmp//ccqBa4n2.s:155: Error: suffix or operands invalid for `push'
/var/tmp//ccqBa4n2.s:156: Error: suffix or operands invalid for `push'
/var/tmp//ccqBa4n2.s:163: Error: suffix or operands invalid for `push'
/var/tmp//ccqBa4n2.s:176: Error: suffix or operands invalid for `pop'
/var/tmp//ccqBa4n2.s:210: Error: suffix or operands invalid for `jmp'
/var/tmp//ccqBa4n2.s:251: Error: suffix or operands invalid for `pop'
/var/tmp//ccqBa4n2.s:261: Error: suffix or operands invalid for `pop'
/var/tmp//ccqBa4n2.s:268: Error: suffix or operands invalid for `push'
/var/tmp//ccqBa4n2.s:272: Error: suffix or operands invalid for `push'
/var/tmp//ccqBa4n2.s:315: Error: suffix or operands invalid for `jmp'
/var/tmp//ccqBa4n2.s:358: Error: suffix or operands invalid for `pop'
/var/tmp//ccqBa4n2.s:359: Error: suffix or operands invalid for `pop'
/var/tmp//ccqBa4n2.s:370: Error: suffix or operands invalid for `push'
/var/tmp//ccqBa4n2.s:383: Error: suffix or operands invalid for `pop'
/var/tmp//ccqBa4n2.s:416: Error: suffix or operands invalid for `jmp'
/var/tmp//ccqBa4n2.s:459: Error: suffix or operands invalid for `pop'
/var/tmp//ccqBa4n2.s:460: Error: suffix or operands invalid for `pop'
/var/tmp//ccqBa4n2.s:461: Error: suffix or operands invalid for `pop'
/var/tmp//ccqBa4n2.s:471: Error: suffix or operands invalid for `jmp'
*** WARNING: renaming _curses since importing it failed: ld.so.1: python: 
fatal: relocation error: file 
build/lib.solaris-2.11-i86pc.64bit-3.5-pydebug/_curses.so: symbol newscr: 
referenced symbol not found
*** WARNING: renaming _curses_panel since importing it failed: No module 
named '_curses'
error: [Errno 2] No such file or directory: 
'build/temp.solaris-2.11-i86pc.64bit-3.5-pydebug/export/home/buildbot/64bits/3.x.cea-indiana-amd64/build/Modules/_decimal/_decimal.o'
make: *** [sharedmods] Error 1

--

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



[issue2202] urllib2 fails against IIS 6.0 (No support for MD5-sess auth)

2014-09-30 Thread Mathieu Dupuy

Mathieu Dupuy added the comment:

But I think md5-sess should really be integrated. It's a standard mechanism 
described by a RFC (https://www.ietf.org/rfc/rfc2617.txt), and people need it, 
however insecure it may be (aren't other method (md5) insecure too ?).

--

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



[issue16038] ftplib: unlimited readline() from connection

2014-09-30 Thread Georg Brandl

Changes by Georg Brandl ge...@python.org:


--
versions:  -Python 3.1

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



[issue18747] Re-seed OpenSSL's PRNG after fork

2014-09-30 Thread Georg Brandl

Changes by Georg Brandl ge...@python.org:


--
versions:  -Python 3.1

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



[issue16042] smtplib: unlimited readline() from connection

2014-09-30 Thread Georg Brandl

Changes by Georg Brandl ge...@python.org:


--
versions:  -Python 3.1

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



[issue5309] distutils doesn't parallelize extension module compilation

2014-09-30 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Thanks for noticing this.
Looking at an old build, the ctypes and curses compile errors under OpenIndiana 
are not new:
http://buildbot.python.org/all/builders/AMD64%20OpenIndiana%203.x/builds/8658/steps/compile/logs/stdio

Simply, it seems that a ctypes compile error is now interpreted as a failure of 
the compilation build step. I'll try to fix that.

(the problem looks similar on the FreeBSD 6.4 buildbot)

--

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



[issue22521] ctypes compilation fails on FreeBSD: Undefined symbol ffi_call_win32

2014-09-30 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Those FreeBSD versions are totally obsolete, perhaps we should simply ignore 
any failures on them.

--
nosy: +pitrou

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



[issue5309] distutils doesn't parallelize extension module compilation

2014-09-30 Thread STINNER Victor

STINNER Victor added the comment:

 the ctypes and curses compile errors under OpenIndiana are not new

FYI the compilation error of curses on OpenIndiana is *old*, at least 3 years 
old :-(
http://bugs.python.org/issue13552

I just opened the issue #22521 for the compilation error of ctypes on FreeBSD.

--

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



[issue5309] distutils doesn't parallelize extension module compilation

2014-09-30 Thread Jonas Wagner

Jonas Wagner added the comment:

I don't understand where this error comes from...

The compilation commands are exactly the same in both the before and after 
logs. The order of commands is also the same.

The only difference is this message:

*** WARNING: renaming _ssl since importing it failed: 
build/lib.freebsd-6.4-RELEASE-i386-3.5-pydebug/_ssl.so: Undefined symbol 
X509_check_ca

This message probably occurs because _ssl.so is now built in parallel with 
_ctypes.

In the logs, one can see that the command to build _ctypes.o is executed; 
because of that, I wonder why the file is missing. Maybe we could check for 
wrong dependency tracking in the _ctypes makefile (similar to 
http://bugs.python.org/issue22359)

--

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



[issue16041] poplib: unlimited readline() from connection

2014-09-30 Thread Georg Brandl

Changes by Georg Brandl ge...@python.org:


--
versions:  -Python 3.1

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



[issue16038] ftplib: unlimited readline() from connection

2014-09-30 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 783e7b4375ac by Georg Brandl in branch '3.2':
Issue #16038: CVE-2013-1752: ftplib: Limit amount of data read by
https://hg.python.org/cpython/rev/783e7b4375ac

--

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



[issue16042] smtplib: unlimited readline() from connection

2014-09-30 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 0f362676460d by Georg Brandl in branch '3.2':
Issue #16042: CVE-2013-1752: smtplib: Limit amount of data read by
https://hg.python.org/cpython/rev/0f362676460d

--

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



[issue16037] httplib: header parsing is unlimited

2014-09-30 Thread Roundup Robot

Roundup Robot added the comment:

New changeset deee87d61436 by Georg Brandl in branch '3.2':
Issue #16037: HTTPMessage.readheaders() raises an HTTPException when more than
https://hg.python.org/cpython/rev/deee87d61436

--

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



[issue16041] poplib: unlimited readline() from connection

2014-09-30 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 76be07730f8d by Georg Brandl in branch '3.2':
Issue #16041: CVE-2013-1752: poplib: Limit maximum line lengths to 2048 to
https://hg.python.org/cpython/rev/76be07730f8d

--

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



[issue18709] SSL module fails to handle NULL bytes inside subjectAltNames general names (CVE-2013-4238)

2014-09-30 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 386b0f478117 by Georg Brandl in branch '3.2':
Issue #18709: Fix CVE-2013-4238. The SSL module now handles NULL bytes
https://hg.python.org/cpython/rev/386b0f478117

--

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



[issue18747] Re-seed OpenSSL's PRNG after fork

2014-09-30 Thread Roundup Robot

Roundup Robot added the comment:

New changeset bdf73458df5f by Christian Heimes in branch '3.2':
Issue #18747: document issue with OpenSSL's CPRNG state and fork
https://hg.python.org/cpython/rev/bdf73458df5f

--

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



[issue18709] SSL module fails to handle NULL bytes inside subjectAltNames general names (CVE-2013-4238)

2014-09-30 Thread Georg Brandl

Changes by Georg Brandl ge...@python.org:


--
status: open - closed

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



[issue17997] ssl.match_hostname(): sub string wildcard should not match IDNA prefix

2014-09-30 Thread Georg Brandl

Georg Brandl added the comment:

Since it's been out in 3.2.x for so long, I won't apply this for 3.2 since at 
this point a behavior change might do more harm than good.

--
resolution:  - fixed
status: open - closed
versions: +Python 3.3, Python 3.4 -Python 3.2

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



[issue18747] Re-seed OpenSSL's PRNG after fork

2014-09-30 Thread Georg Brandl

Changes by Georg Brandl ge...@python.org:


--
resolution:  - fixed
status: open - closed

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



[issue16041] poplib: unlimited readline() from connection

2014-09-30 Thread Georg Brandl

Changes by Georg Brandl ge...@python.org:


--
versions:  -Python 3.2

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



[issue16042] smtplib: unlimited readline() from connection

2014-09-30 Thread Georg Brandl

Changes by Georg Brandl ge...@python.org:


--
versions:  -Python 3.2

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



[issue16038] ftplib: unlimited readline() from connection

2014-09-30 Thread Georg Brandl

Changes by Georg Brandl ge...@python.org:


--
resolution:  - fixed
status: open - closed

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



[issue21308] PEP 466: backport ssl changes

2014-09-30 Thread Matthias Klose

Matthias Klose added the comment:

causing #22523, still referencing _ssl.sslwrap.

--
nosy: +doko

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



[issue22523] [regression] Lib/ssl.py still references _ssl.sslwrap

2014-09-30 Thread Matthias Klose

New submission from Matthias Klose:

the backport in issue #21308 caused this regression. _ssl.sslwrap is still 
referenced in some files.

--
components: Library (Lib)
messages: 227896
nosy: alex, benjamin.peterson, christian.heimes, doko, dstufft, 
giampaolo.rodola, janssen, pitrou
priority: release blocker
severity: normal
status: open
title: [regression] Lib/ssl.py still references _ssl.sslwrap
versions: Python 2.7

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



[issue16037] httplib: header parsing is unlimited

2014-09-30 Thread Georg Brandl

Changes by Georg Brandl ge...@python.org:


--
resolution:  - fixed
status: open - closed

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



[issue20218] Add methods to `pathlib.Path`: `write_text`, `read_text`, `write_bytes`, `read_bytes`

2014-09-30 Thread Matthias Troffaes

Matthias Troffaes added the comment:

Chiming in here: Sphinx's testing framework does include a feature that allows 
easily read/write files into/from text/bytes directly from path-like objects. 
There is thus a demand out there. If this feature were to make it into stdlib, 
it would be loved at least by Sphinx testers and sphinx extension module 
testers.

Current implementation in Sphinx:

https://bitbucket.org/birkenfeld/sphinx/src/f87ae5c0272e7384dc976414d091aa8b175827cd/tests/path.py?at=default#cl-129

Discussion to move to pathlib on Sphinx tracker:

https://bitbucket.org/birkenfeld/sphinx/issue/1241/move-test-utilities-into-a-sphinx#comment-12645576

Some code examples of how this is typically used in Sphinx:

https://bitbucket.org/tk0miya/sphinx-testing/src/ee89298fa8f848b7c3ca93656df5330db85b4291/README.rst?at=default

https://github.com/mcmtroffaes/sphinxcontrib-bibtex/commit/0a0bf07a34e6f7e3c66ddacc0da02b4a2caba794

--
nosy: +matthiastroffaes

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



[issue22523] [regression] Lib/ssl.py still references _ssl.sslwrap

2014-09-30 Thread Matthias Klose

Matthias Klose added the comment:

forwarded from https://bugs.debian.org/762010

--

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



[issue20218] Add methods to `pathlib.Path`: `write_text`, `read_text`, `write_bytes`, `read_bytes`

2014-09-30 Thread Ram Rachum

Ram Rachum added the comment:

Matthias: Do you prefer having both `write_bytes` and `write_text` instead of 
just `write` with a `binary` option? Do you prefer `append` and `exclusive` 
modes to be allowed or not?

--

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



[issue458343] distutils should zap .o as well as .so

2014-09-30 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 94af1af93670 by Antoine Pitrou in branch 'default':
Remove pointless vile hack that can cause the build step to fail when some 
extension modules can't be imported.
https://hg.python.org/cpython/rev/94af1af93670

--
nosy: +python-dev

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



[issue5309] distutils doesn't parallelize extension module compilation

2014-09-30 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 94af1af93670 by Antoine Pitrou in branch 'default':
Remove pointless vile hack that can cause the build step to fail when some 
extension modules can't be imported.
https://hg.python.org/cpython/rev/94af1af93670

--

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



[issue22456] __base__ undocumented

2014-09-30 Thread anupama srinivas murthy

anupama srinivas murthy added the comment:

I have documented the function in object.rst file. I do not know the use of the 
function and have not mentioned that. My documentation is based on what I 
understood from the comments below and the explanation here:
http://code.activestate.com/lists/python-list/334282/

--
keywords: +patch
nosy: +anupama.srinivas.murthy
Added file: http://bugs.python.org/file36760/function-documentation.patch

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



[issue22419] wsgiref request length

2014-09-30 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 0d115d14adfd by Georg Brandl in branch '3.2':
Issue #22419: Limit the length of incoming HTTP request in wsgiref server to
https://hg.python.org/cpython/rev/0d115d14adfd

--

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



[issue22517] BufferedRWpair doesn't clear weakrefs

2014-09-30 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 4fa5239624b8 by Georg Brandl in branch '3.2':
Issue #22517: When a io.BufferedRWPair object is deallocated, clear its
https://hg.python.org/cpython/rev/4fa5239624b8

--

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



[issue5309] distutils doesn't parallelize extension module compilation

2014-09-30 Thread Antoine Pitrou

Antoine Pitrou added the comment:

The change I just pushed should fix the failures, waiting for the buildbots to 
compile now.

--

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



[issue5309] distutils doesn't parallelize extension module compilation

2014-09-30 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Looks ok on OpenIndiana, closing now.

--
resolution:  - fixed
status: open - closed

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



[issue22518] integer overflow in encoding unicode

2014-09-30 Thread STINNER Victor

STINNER Victor added the comment:

 New changeset f86fde20e9ce by Benjamin Peterson in branch 'default':
 merge 3.4 (closes #22518)
 https://hg.python.org/cpython/rev/f86fde20e9ce

This changeset added  other. It looks like you commited a conflict.

-if (requiredsize2*outsize)
+if (outsize = PY_SSIZE_T_MAX/2  requiredsize  2*outsize)
 requiredsize = 2*outsize;

I'm not sure that this change is correct. Why not raising an exception on 
overflow?

--
nosy: +haypo

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



[issue20218] Add methods to `pathlib.Path`: `write_text`, `read_text`, `write_bytes`, `read_bytes`

2014-09-30 Thread Antoine Pitrou

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


--
nosy: +georg.brandl
resolution: rejected - 
status: closed - open

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



[issue22519] integer overflow in computing byte's object representation

2014-09-30 Thread STINNER Victor

STINNER Victor added the comment:

It would be nice to have a bigmem test checking that repr(b'\x00'*(2**30+1)) 
doesn't crash anymore.

--
nosy: +haypo

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



[issue22518] integer overflow in encoding unicode

2014-09-30 Thread STINNER Victor

STINNER Victor added the comment:

It would be nice to add a bigmem test to check that repr('\x00'*(2**30+1)) 
doesn't crash anymore.

--

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



[issue22520] integer overflow in computing unicode's object representation

2014-09-30 Thread STINNER Victor

STINNER Victor added the comment:

It would be nice to add a bigmem test to check that repr('\x00'*(2**30+1)) 
doesn't crash anymore.

--
nosy: +haypo
resolution: fixed - 
status: closed - open

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



[issue22519] integer overflow in computing byte's object representation

2014-09-30 Thread STINNER Victor

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


--
resolution: fixed - 
status: closed - open

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



[issue22518] integer overflow in encoding unicode

2014-09-30 Thread STINNER Victor

STINNER Victor added the comment:

 It would be nice to add a bigmem test to check that repr('\x00'*(2**30+1)) 
 doesn't crash anymore.

Ooops, wrong issue, the test is : (\u * (2**29)).encode(latin1, 
errors=xmlcharrefreplace).

--

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



[issue22518] integer overflow in encoding unicode

2014-09-30 Thread STINNER Victor

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


--
resolution: fixed - 
status: closed - open

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



[issue16037] httplib: header parsing is unlimited

2014-09-30 Thread Berker Peksag

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


--
stage: patch review - resolved

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



[issue20218] Add methods to `pathlib.Path`: `write_text`, `read_text`, `write_bytes`, `read_bytes`

2014-09-30 Thread Georg Brandl

Georg Brandl added the comment:

Note that these methods were already part of Jason's path.py when I imported it 
for use by Sphinx.

I think these convenience methods are useful indeed, so if it is fine with your 
philosophy for pathlib, I'd be happy to see them there.  The 
write_text/write_bytes style would be preferred for me, and I agree that too 
many options, e.g. append and exclusive, are not as helpful.

--

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



[issue20218] Add methods to `pathlib.Path`: `write_text`, `read_text`, `write_bytes`, `read_bytes`

2014-09-30 Thread Matthias Troffaes

Matthias Troffaes added the comment:

Thanks for the quick response. I agree with Georg on all points, i.e. longer 
function names and no extra options.

--

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



[issue22518] integer overflow in encoding unicode

2014-09-30 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

 I'm not sure that this change is correct. Why not raising an exception on
 overflow?

This is correct. This check prevents overflow.

--

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



[issue2399] Patches for Tools/msi

2014-09-30 Thread Berker Peksag

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


--
stage: needs patch - resolved

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



[issue22518] integer overflow in encoding unicode

2014-09-30 Thread STINNER Victor

STINNER Victor added the comment:

 This is correct. This check prevents overflow.

Oh, I didn't understand that requiredsize = 2*outsize; is only used for 
performances, to overallocate the buffer. So I agree that it's fine to not 
overallocate if it would overflow.

--

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



[issue21831] integer overflow in 'buffer' type allows reading memory

2014-09-30 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:


--
nosy: +Arfrever

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



[issue22518] integer overflow in encoding unicode

2014-09-30 Thread STINNER Victor

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


--
type: crash - security

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



[issue22519] integer overflow in computing byte's object representation

2014-09-30 Thread STINNER Victor

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


--
type: crash - security

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



[issue22520] integer overflow in computing unicode's object representation

2014-09-30 Thread STINNER Victor

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


--
type: crash - security

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



[issue22517] BufferedRWpair doesn't clear weakrefs

2014-09-30 Thread STINNER Victor

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


--
type: crash - security

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



[issue22421] securing pydoc server

2014-09-30 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 02dae04b3e2b by Georg Brandl in branch '3.2':
Issue #22421 - Secure pydoc server run. Bind it to localhost instead of all 
interfaces.
https://hg.python.org/cpython/rev/02dae04b3e2b

--

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



[issue22448] call_at/call_later with Timer cancellation can result in (practically) unbounded memory usage.

2014-09-30 Thread STINNER Victor

STINNER Victor added the comment:

 Turned out that single loop approach is not faster than loop+comprehension

IMO it makes the code simpler and easier to understand.

--

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



[issue22448] call_at/call_later with Timer cancellation can result in (practically) unbounded memory usage.

2014-09-30 Thread Yury Selivanov

Yury Selivanov added the comment:

 IMO it makes the code simpler and easier to understand.

But it's a tad slower, like 2-3% ;) You can test it yourself, we only tested it 
on huge tasks list of 1M items.

FWIW, I'm not opposed to your patch.

--

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



[issue22421] securing pydoc server

2014-09-30 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:


--
nosy: +Arfrever

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



[issue22517] BufferedRWpair doesn't clear weakrefs

2014-09-30 Thread Antoine Pitrou

Antoine Pitrou added the comment:

It's an actual crash, AFAIK.

--
type: security - crash

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



[issue22518] integer overflow in encoding unicode

2014-09-30 Thread Georg Brandl

Georg Brandl added the comment:

Benjamin, could you make a patch for 3.2 as well?

--
nosy: +georg.brandl

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



[issue20994] Disable TLS Compression

2014-09-30 Thread Georg Brandl

Georg Brandl added the comment:

I wouldn't consider this important enough for 3.2; since it lacks the means to 
do the opt-back-in.

--
nosy: +georg.brandl
versions:  -Python 3.2

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



[issue22518] integer overflow in encoding unicode

2014-09-30 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

 Ooops, wrong issue, the test is : (\u * (2**29)).encode(latin1,
 errors=xmlcharrefreplace).

(\u * (sys.maxsize//8+1)).encode(latin1, errors=xmlcharrefreplace)

or

(\xff * (sys.maxsize//6+1)).encode(ascii, errors=xmlcharrefreplace)

--

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



[issue16039] imaplib: unlimited readline() from connection

2014-09-30 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 5d1c03316af7 by Georg Brandl in branch '3.2':
Issue #16039: CVE-2013-1752: Change use of readline in imaplib module to limit
https://hg.python.org/cpython/rev/5d1c03316af7

--

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



[issue16039] imaplib: unlimited readline() from connection

2014-09-30 Thread Georg Brandl

Changes by Georg Brandl ge...@python.org:


--
versions:  -Python 3.1, Python 3.2

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



[issue20218] Add methods to `pathlib.Path`: `write_text`, `read_text`, `write_bytes`, `read_bytes`

2014-09-30 Thread Georg Brandl

Georg Brandl added the comment:

Next try.

--
Added file: http://bugs.python.org/file36761/pathlib_readwrite_v5.patch

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



[issue16039] imaplib: unlimited readline() from connection

2014-09-30 Thread STINNER Victor

STINNER Victor added the comment:

 New changeset 5d1c03316af7 by Georg Brandl in branch '3.2':
 Issue #16039: CVE-2013-1752: Change use of readline in imaplib module to limit
 https://hg.python.org/cpython/rev/5d1c03316af7

I'm not sure that this change is correct, the test failed on Windows. Or maybe, 
it's just an issue with test test?

http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%203.x/builds/5168/steps/test/logs/stdio

==
ERROR: test_connect (test.test_smtpnet.SmtpSSLTest)
--
Traceback (most recent call last):
  File C:\buildbot.python.org\3.x.kloth-win64\build\lib\test\test_smtpnet.py, 
line 16, in test_connect
server = smtplib.SMTP_SSL(self.testServer, self.remotePort)
  File C:\buildbot.python.org\3.x.kloth-win64\build\lib\smtplib.py, line 862, 
in __init__
SMTP.__init__(self, host, port, local_hostname, timeout)
  File C:\buildbot.python.org\3.x.kloth-win64\build\lib\smtplib.py, line 260, 
in __init__
(code, msg) = self.connect(host, port)
  File C:\buildbot.python.org\3.x.kloth-win64\build\lib\smtplib.py, line 321, 
in connect
(code, msg) = self.getreply()
  File C:\buildbot.python.org\3.x.kloth-win64\build\lib\smtplib.py, line 367, 
in getreply
line = self.file.readline(_MAXLINE + 1)
TypeError: readline() takes exactly 1 positional argument (2 given)

--
resolution: fixed - 
status: closed - open

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



[issue16039] imaplib: unlimited readline() from connection

2014-09-30 Thread Georg Brandl

Georg Brandl added the comment:

Let me check that.

--

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



[issue11406] There is no os.listdir() equivalent returning generator instead of list

2014-09-30 Thread Antoine Pitrou

Antoine Pitrou added the comment:

 Given that os.scandir() will solve this issue (as well as the bigger 
 performance problem due to listdir throwing away file type info), can we 
 close this issue and open another one to track the implementation of 
 os.scandir() / PEP 471?

This makes sense. Can you do it?

--

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



[issue22448] call_at/call_later with Timer cancellation can result in (practically) unbounded memory usage.

2014-09-30 Thread Yury Selivanov

Yury Selivanov added the comment:

Victor,

During the code review we tried the single loop approach. At the end Joshua 
wrote a small benchmark to test if it's really faster to do it in one loop or 
not. Turned out that single loop approach is not faster than loop+comprehension 
(but it's not much slower either, I'd say they are about the same in terms of 
speed).

One loop approach might work faster on PyPy, but unfortunately, they still 
don't support 3.3 to test.

--

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



[issue20939] test_geturl of test_urllibnet fails with 'https://www.python.org/' != 'http://www.python.org/'

2014-09-30 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 97c329849ef3 by Ned Deily in branch '3.2':
Issue #20939: Use www.example.com instead of www.python.org to avoid test
https://hg.python.org/cpython/rev/97c329849ef3

--

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



[issue16039] imaplib: unlimited readline() from connection

2014-09-30 Thread Arfrever Frehtes Taifersar Arahesis

Arfrever Frehtes Taifersar Arahesis added the comment:

This error is rather related to issue #16042, not issue #16039.

--

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



[issue16039] imaplib: unlimited readline() from connection

2014-09-30 Thread Georg Brandl

Changes by Georg Brandl ge...@python.org:


--
resolution:  - fixed
status: open - closed

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



[issue14156] argparse.FileType for '-' doesn't work for a mode of 'rb'

2014-09-30 Thread Serhiy Storchaka

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


--
stage:  - test needed
type: crash - behavior
versions:  -Python 3.2, Python 3.3

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



[issue16042] smtplib: unlimited readline() from connection

2014-09-30 Thread Arfrever Frehtes Taifersar Arahesis

Arfrever Frehtes Taifersar Arahesis added the comment:

New changeset 4065c4539fcb by Georg Brandl in branch '3.2':
Fix-up for 0f362676460d: add missing size argument to SSLFakeFile.readline(), 
as in 2.6 backport
https://hg.python.org/cpython/rev/4065c4539fcb

--

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



[issue22524] PEP 471 implementation: os.scandir() directory scanning function

2014-09-30 Thread Ben Hoyt

New submission from Ben Hoyt:

Opening this to track the implementation of PEP 471: os.scandir() [1]. This 
supercedes Issue #11406 (and possibly others)?

The implementation is most of the way there, but not yet done as a CPythono 3.5 
patch. Before I have a proper patch, it's available on GitHub [2] -- see 
posixmodule_scandir*.c, test/test_scandir.py, and os.rst.

[1] http://legacy.python.org/dev/peps/pep-0471/
[2] https://github.com/benhoyt/scandir

--
components: Library (Lib)
messages: 227933
nosy: benhoyt, haypo, mmarkk, pitrou, tim.golden
priority: normal
severity: normal
status: open
title: PEP 471 implementation: os.scandir() directory scanning function
type: enhancement
versions: Python 3.5

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



[issue11406] There is no os.listdir() equivalent returning generator instead of list

2014-09-30 Thread Ben Hoyt

Ben Hoyt added the comment:

Okay, I've opened http://bugs.python.org/issue22524, but I don't have the 
permissions to close this one, so could someone with bugs.python.org 
superpowers please do that?

--

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



[issue19529] Fix unicode_aswidechar() with 4byte unicode and 2byte wchar_t, for AIX

2014-09-30 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Georg, what is your decision?

--
nosy: +serhiy.storchaka
stage:  - commit review

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



[issue11406] There is no os.listdir() equivalent returning generator instead of list

2014-09-30 Thread Nick Coghlan

Nick Coghlan added the comment:

This approach has been rejected in favour of the accepted PEP 471 proposal to 
add os.scandir() (issue #22524)

--
resolution:  - rejected
stage: needs patch - resolved
status: open - closed
superseder:  - PEP 471 implementation: os.scandir() directory scanning function

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



[issue19529] Fix unicode_aswidechar() with 4byte unicode and 2byte wchar_t, for AIX

2014-09-30 Thread Georg Brandl

Georg Brandl added the comment:

Looks obvious and is potentially a security fix, so it can/should go in.  
Please add a NEWS entry.

--

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



[issue22524] PEP 471 implementation: os.scandir() directory scanning function

2014-09-30 Thread Giampaolo Rodola'

Changes by Giampaolo Rodola' g.rod...@gmail.com:


--
nosy: +giampaolo.rodola

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



  1   2   3   >