[issue19582] Tkinter is not working with Py_SetPath

2013-11-17 Thread Debarshi Goswami

Debarshi Goswami added the comment:

Anyone tried this issue?

--

___
Python tracker 

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



[issue15809] IDLE console uses incorrect encoding.

2013-11-17 Thread irdb

irdb added the comment:

Thank you Serhiy for working on this. This patch solves the problem when all 
your input characters are encodable using system preferred encoding. But 
issue19625 persists. I still can't print something like 'Русский текст' in 
interactive mode.

Another problem is that output of interactive mode and running a module is 
different if source encoding is something other that system's default. For 
example:

(With current patch) in interactive mode:

>>> print 'آ'
آ
>>> print u'آ'
آ

But in when running same commands from a file with utf-8 encoding:

ط¢
آ

I know, you siad to use cp1256 encoding in my source file. But I really prefer 
to work with utf-8 than working with a codepage that is not fully compatible 
with my language and I believe many other programmers are the same as me (even 
if there is a codepage they can work with).

(cp1256 is only for Arabic, but (when a program does not support unicode) 
Microsoft uses it as a second option for some other similar languages like 
Urdu, Persian. But it does not include all the characters they need.)

IMO these two problems -- being a able to type any Unicode characters in 
interactive mode and getting the same output as running modules -- are more 
important than a mere representation problem in interactive mode. (and 
considering that I use utf-8 for my source files, both of them were solved by 
martin's patch. [Of course I'm not saying it's the solution, just that it 
worked better for me])

--

___
Python tracker 

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



[issue19596] Silently skipped tests in test_importlib

2013-11-17 Thread Zachary Ware

Zachary Ware added the comment:

How does this one strike you, Brett?  Setting the empty tests to None seems to 
keep the ABC happy and reduces the total number of tests from 632 to 598.

--
Added file: http://bugs.python.org/file32679/skipped_importlib_tests.v2.diff

___
Python tracker 

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



[issue19633] test_wave: failures on PPC64 buildbot

2013-11-17 Thread David Edelsohn

Changes by David Edelsohn :


--
nosy: +David.Edelsohn

___
Python tracker 

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



[issue19634] test_strftime.test_y_before_1900_nonwin() fails on AIX

2013-11-17 Thread David Edelsohn

Changes by David Edelsohn :


--
nosy: +David.Edelsohn

___
Python tracker 

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



[issue19637] test_subprocess.test_undecodable_env() failure on AIX

2013-11-17 Thread David Edelsohn

David Edelsohn added the comment:

$ LC_ALL=C python -c 'import locale; print(locale.getpreferredencoding(False))'
ISO8859-1

It's possible that some additional locales were not installed by default with 
the system, e.g., UTF-8.

--

___
Python tracker 

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



[issue19520] Win32 compiler warning in _sha3

2013-11-17 Thread Zachary Ware

Zachary Ware added the comment:

Thanks Christian, now committed.

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

___
Python tracker 

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



[issue19520] Win32 compiler warning in _sha3

2013-11-17 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 259c82332199 by Zachary Ware in branch 'default':
Issue #19520: Fix (the last!) compiler warning on 32bit Windows, in _sha3
http://hg.python.org/cpython/rev/259c82332199

--
nosy: +python-dev

___
Python tracker 

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



[issue19164] Update uuid.UUID TypeError exception: integer should not be an argument.

2013-11-17 Thread Jon Gauthier

Changes by Jon Gauthier :


--
keywords: +patch
Added file: http://bugs.python.org/file32678/issue19164.patch

___
Python tracker 

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



[issue19634] test_strftime.test_y_before_1900_nonwin() fails on AIX

2013-11-17 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 652de09a3a1a by Victor Stinner in branch 'default':
Issue #19634: Fix time_strftime() on AIX, format is a wchar_t* not a PyObject*
http://hg.python.org/cpython/rev/652de09a3a1a

--

___
Python tracker 

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



[issue19637] test_subprocess.test_undecodable_env() failure on AIX

2013-11-17 Thread STINNER Victor

New submission from STINNER Victor:

To analyze the following issue, I would like to know which locale encoding is 
used on AIX with the C locale. Example:

$ LC_ALL=C python -c 'import locale; print(locale.getpreferredencoding(False))'
ANSI_X3.4-1968

http://buildbot.python.org/all/builders/PPC64%20AIX%203.x

==
FAIL: test_undecodable_env (test.test_subprocess.POSIXProcessTestCase)
--
Traceback (most recent call last):
  File 
"/home/shager/cpython-buildarea/3.x.edelsohn-aix-ppc64/build/Lib/test/test_subprocess.py",
 line 1696, in test_undecodable_env
self.assertEqual(stdout.decode('ascii'), ascii(value))
AssertionError: "'abc\\xff'" != "'abc\\udcff'"
- 'abc\xff'
?  ^
+ 'abc\udcff'
?  ^^^

--
components: Tests
keywords: buildbot
messages: 203241
nosy: David.Edelsohn, haypo
priority: normal
severity: normal
status: open
title: test_subprocess.test_undecodable_env() failure on AIX
versions: Python 3.4

___
Python tracker 

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



[issue19504] Change "customise" to "customize".

2013-11-17 Thread Eric V. Smith

Eric V. Smith added the comment:

This patch covers the files that Vinay did not update.

--
Added file: http://bugs.python.org/file32677/customise-2.diff

___
Python tracker 

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



[issue19636] Fix usage of MAX_PATH in posixmodule.c

2013-11-17 Thread STINNER Victor

STINNER Victor added the comment:

Oh, I forgot to mention that my initial concern was the following warning:

  ..\Modules\posixmodule.c(4057): warning C4267: 'function' : conversion from 
'size_t' to 'DWORD', possible loss of data 
[C:\buildbot.python.org\3.x.kloth-win64\build\PCbuild\pythoncore.vcxproj]

bufsize (Py_ssize_t) is passed to GetVolumePathNameW() which expected a DWORD. 
An OverflowError must be raised if bufsize is larger than DWORD_MAX (the 
constant is defined in Modules/_winapi.c, not in posixmodule.c).

But I prefer to fix the warning after this issue.

--

___
Python tracker 

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



[issue19635] asyncio should not depend on concurrent.futures, it is not always available

2013-11-17 Thread Guido van Rossum

Guido van Rossum added the comment:

I'll just commit it and pray.

--

___
Python tracker 

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



[issue19635] asyncio should not depend on concurrent.futures, it is not always available

2013-11-17 Thread STINNER Victor

STINNER Victor added the comment:

> Can you try this patch?

I don't have access to the buildbot. You may try the custom buildbot if you 
don't want to commit directly:
http://buildbot.python.org/all/builders/x86%20FreeBSD%206.4%20custom

--

___
Python tracker 

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



[issue19635] asyncio should not depend on concurrent.futures, it is not always available

2013-11-17 Thread Guido van Rossum

Guido van Rossum added the comment:

Can you try this patch? It tweaks the test to skip everything if it can't 
import concurrent.futures.

--
keywords: +patch
Added file: http://bugs.python.org/file32676/skipit.patch

___
Python tracker 

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



[issue19635] asyncio should not depend on concurrent.futures, it is not always available

2013-11-17 Thread STINNER Victor

Changes by STINNER Victor :


--
nosy: +sbt

___
Python tracker 

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



[issue19635] asyncio should not depend on concurrent.futures, it is not always available

2013-11-17 Thread Guido van Rossum

Guido van Rossum added the comment:

Well, what would be the incantation to just skip the tests if 
concurrent.futures can't be imported?

(Although it seems that there's a problem with concurrent.futures if the whole 
thing refuses to import just because multiprocessing isn't supported -- 
couldn't the threadpool executor still work?  Asyncio doesn't use any of the 
multiprocessing stuff.)

--

___
Python tracker 

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



[issue19635] asyncio should not depend on concurrent.futures, it is not always available

2013-11-17 Thread STINNER Victor

STINNER Victor added the comment:

> Who would be using such an old FreeBSD version anyway (while wanting to use a 
> bleeding edge Python version and the bleeding edge asyncio package)?

If we want to drop support of old FreeBSD versions, something can be done using 
the PEP 11. We have FreeBSD 6.4 and 7.2 buildbots. I'm trying to fix all 
buildbots.

--

___
Python tracker 

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



[issue19635] asyncio should not depend on concurrent.futures, it is not always available

2013-11-17 Thread Guido van Rossum

Guido van Rossum added the comment:

I don't think it's worth complicating the code for this (except perhaps by 
making the tests fail more gracefully).

The tasks and futures modules import various things from concurrent.futures 
(some exceptions, and some constants for wait()).

If a platform doesn't have threads, asyncio is not very useful anyway -- you 
can't create network connections or servers because of the way getaddrinfo() is 
called.

I recall that this was reported before and I decided I just didn't care.

Who would be using such an old FreeBSD version anyway (while wanting to use a 
bleeding edge Python version and the bleeding edge asyncio package)?

--

___
Python tracker 

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



[issue19636] Fix usage of MAX_PATH in posixmodule.c

2013-11-17 Thread STINNER Victor

Changes by STINNER Victor :


--
nosy: +tim.golden

___
Python tracker 

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



[issue19636] Fix usage of MAX_PATH in posixmodule.c

2013-11-17 Thread STINNER Victor

STINNER Victor added the comment:

posix__getfullpathname():

-char outbuf[MAX_PATH*2];
+char outbuf[MAX_PATH];
...
-wchar_t woutbuf[MAX_PATH*2], *woutbufp = woutbuf;
+wchar_t woutbuf[MAX_PATH], *woutbufp = woutbuf;

I don't know what "*2" was used here, probably a mistake with 
sizeof(wchar_t)=2? (try to allocate bytes, where the length is a number of wide 
characters)


posix__getvolumepathname() is new in Python 3.4, so not need to backport its 
fix.


path_converter():

 length = PyBytes_GET_SIZE(bytes);
 #ifdef MS_WINDOWS
-if (length > MAX_PATH) {
+if (length > MAX_PATH-1) {
 FORMAT_EXCEPTION(PyExc_ValueError, "%s too long for Windows");
 Py_DECREF(bytes);
 return 0;

I don't know if this fix should be backported to Python 3.3.

--
components: +Windows

___
Python tracker 

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



[issue19636] Fix usage of MAX_PATH in posixmodule.c

2013-11-17 Thread STINNER Victor

New submission from STINNER Victor:

The length of a path is not always correctly handled in posixmodule.c, the 
worst case is posix__getvolumepathname() which pass a length two times smaller 
than the buffer (GetVolumePathNameW() expects a number of WCHAR characters, not 
a number of bytes).

MAX_PATH includes the final null character, so no need to write MAX_PATH+1, 
especially when the function supports path longer than MAX_PATH-1 wide 
characters by allocating a larget buffer.

http://msdn.microsoft.com/en-us/library/aa365247%28VS.85%29.aspx
"
Maximum Path Length Limitation

In the Windows API (with some exceptions discussed in the following 
paragraphs), the maximum length for a path is MAX_PATH, which is defined as 260 
characters. A local path is structured in the following order: drive letter, 
colon, backslash, name components separated by backslashes, and a terminating 
null character. For example, the maximum path on drive D is "D:\some 
256-character path string" where "" represents the invisible 
terminating null character for the current system codepage. (The characters < > 
are used here for visual clarity and cannot be part of a valid path string.)"

Attached patch fixes usage of MAX_PATH in posixmodule.c.

--
files: win_max_path.patch
keywords: patch
messages: 203231
nosy: haypo
priority: normal
severity: normal
status: open
title: Fix usage of MAX_PATH in posixmodule.c
Added file: http://bugs.python.org/file32675/win_max_path.patch

___
Python tracker 

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



[issue17457] Unittest discover fails with namespace packages and builtin modules

2013-11-17 Thread Michael Foord

Michael Foord added the comment:

I do want to get this into 3.4. The logic is non-trivial though, so I need to 
understand it before I can add it to discovery. It certainly *looks* good.

--

___
Python tracker 

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



[issue17276] HMAC: deprecate default hash

2013-11-17 Thread STINNER Victor

STINNER Victor added the comment:

Well, if deprecating is not an option, it's probably better to add a red 
warning explaining why the default choice may not fit all use cases.

--

___
Python tracker 

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



[issue19633] test_wave: failures on PPC64 buildbot

2013-11-17 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Thank you for your report.

This patch should fix the issue.

--
components: +Library (Lib) -Tests
keywords: +patch
stage:  -> patch review
type:  -> behavior
Added file: http://bugs.python.org/file32674/wave_byteswap.patch

___
Python tracker 

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



[issue19630] marshal.dump cannot write to temporary file

2013-11-17 Thread STINNER Victor

STINNER Victor added the comment:

I cannot reproduce the issue on Python 3 (on Linux), I suppose that it is 
specific to Python 2.

On Python 3, mashal.dump(obj, fileobj) only calls fileobj.write(data), no test 
on fileobj type is done.

--
nosy: +haypo

___
Python tracker 

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



[issue17006] Warn users about hashing secrets?

2013-11-17 Thread STINNER Victor

STINNER Victor added the comment:

> For passwords a key stretching and key derivation function like PBKDF2, 
> bcrypt or scrypt is much more secure.

It looks like Python 3.4 now provides something for pbkdf2, so it may be 
interested to mention it on the top of the hashlib in your warning.

http://docs.python.org/dev/library/hashlib.html#hashlib.pbkdf2_hmac

--
nosy: +haypo

___
Python tracker 

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



[issue17618] base85 encoding

2013-11-17 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Now committed, thanks for the reviews and the code!

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

___
Python tracker 

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



[issue17618] base85 encoding

2013-11-17 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 42366e293b7b by Antoine Pitrou in branch 'default':
Issue #17618: Add Base85 and Ascii85 encoding/decoding to the base64 module.
http://hg.python.org/cpython/rev/42366e293b7b

--
nosy: +python-dev

___
Python tracker 

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



[issue19635] asyncio should not depend on concurrent.futures, it is not always available

2013-11-17 Thread STINNER Victor

New submission from STINNER Victor:

On old FreeBSD versions, concurrent.futures cannot be used. I don't remember 
why, it's probably related to semaphores (something like a low hardcoded 
limit). See for example first lines of Lib/test/test_concurrent_futures.py:
---
# Skip tests if _multiprocessing wasn't built.
test.support.import_module('_multiprocessing')   
# Skip tests if sem_open implementation is broken.
test.support.import_module('multiprocessing.synchronize')
# import threading after _multiprocessing to raise a more revelant error  
# message: "No module named _multiprocessing". _multiprocessing is not compiled
# without thread support.
test.support.import_module('threading')
---

The problem is that asyncio always try to import concurrent.futures. Example: 

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

test test_asyncio crashed -- Traceback (most recent call last):
  File "/usr/home/db3l/buildarea/3.x.bolen-freebsd/build/Lib/test/regrtest.py", 
line 1276, in runtest_inner
test_runner()
  File 
"/usr/home/db3l/buildarea/3.x.bolen-freebsd/build/Lib/test/test_asyncio/__init__.py",
 line 31, in test_main
run_unittest(suite())
  File 
"/usr/home/db3l/buildarea/3.x.bolen-freebsd/build/Lib/test/test_asyncio/__init__.py",
 line 21, in suite
__import__(mod_name)
  File 
"/usr/home/db3l/buildarea/3.x.bolen-freebsd/build/Lib/test/test_asyncio/test_base_events.py",
 line 11, in 
from asyncio import base_events
  File 
"/usr/home/db3l/buildarea/3.x.bolen-freebsd/build/Lib/asyncio/__init__.py", 
line 21, in 
from .futures import *
  File 
"/usr/home/db3l/buildarea/3.x.bolen-freebsd/build/Lib/asyncio/futures.py", line 
21, in 
Error = concurrent.futures._base.Error
AttributeError: 'module' object has no attribute 'futures'

--
messages: 203222
nosy: gvanrossum, haypo
priority: normal
severity: normal
status: open
title: asyncio should not depend on concurrent.futures, it is not always 
available
versions: Python 3.4

___
Python tracker 

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



[issue8402] Add a function to escape metacharacters in glob/fnmatch

2013-11-17 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Updated patch addresses Ezio's and Eric's comments.

--
Added file: http://bugs.python.org/file32673/glob_escape_2.patch

___
Python tracker 

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



[issue19634] test_strftime.test_y_before_1900_nonwin() fails on AIX

2013-11-17 Thread STINNER Victor

STINNER Victor added the comment:

I keep the issue open until the test succeed on AIX.

--

___
Python tracker 

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



[issue19634] test_strftime.test_y_before_1900_nonwin() fails on AIX

2013-11-17 Thread Roundup Robot

Roundup Robot added the comment:

New changeset fd9ce1d4b820 by Victor Stinner in branch 'default':
Issue #19634: time.strftime("%y") now raises a ValueError on AIX when given a
http://hg.python.org/cpython/rev/fd9ce1d4b820

--
nosy: +python-dev

___
Python tracker 

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



[issue19634] test_strftime.test_y_before_1900_nonwin() fails on AIX

2013-11-17 Thread STINNER Victor

New submission from STINNER Victor:

The isuse #13674 added tests on strftime() for %y format with year < 1900 on 
Windows. It looks like AIX doesn't support them.

http://buildbot.python.org/all/builders/PPC64%20AIX%203.x/builds/1039/steps/test/logs/stdio

==
FAIL: test_y_before_1900_nonwin (test.test_strftime.Y1900Tests)
--
Traceback (most recent call last):
  File 
"/home/shager/cpython-buildarea/3.x.edelsohn-aix-ppc64/build/Lib/test/test_strftime.py",
 line 193, in test_y_before_1900_nonwin
time.strftime("%y", (1899, 1, 1, 0, 0, 0, 0, 0, 0)), "99")
AssertionError: '0/' != '99'
- 0/
+ 99

--
components: Tests
messages: 203218
nosy: haypo, tim.golden
priority: normal
severity: normal
status: open
title: test_strftime.test_y_before_1900_nonwin() fails on AIX
versions: Python 3.4

___
Python tracker 

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



[issue19633] test_wave: failures on PPC64 buildbot

2013-11-17 Thread STINNER Victor

New submission from STINNER Victor:

Some test_wave are failing, but only on PPC64 (big endian, right?).

It may be related to issue #1575020.

http://buildbot.python.org/all/builders/PPC64%20PowerLinux%203.x/builds/1099/steps/test/logs/stdio


==
ERROR: test_unseekable_incompleted_write (test.test_wave.WavePCM16Test)
--
Traceback (most recent call last):
  File 
"/home/shager/cpython-buildarea/3.x.edelsohn-powerlinux-ppc64/build/Lib/test/audiotests.py",
 line 243, in test_unseekable_incompleted_write
self.check_file(testfile, self.nframes + 1, self.frames)
  File 
"/home/shager/cpython-buildarea/3.x.edelsohn-powerlinux-ppc64/build/Lib/test/audiotests.py",
 line 84, in check_file
self.assertEqual(f.readframes(nframes), frames)
  File 
"/home/shager/cpython-buildarea/3.x.edelsohn-powerlinux-ppc64/build/Lib/wave.py",
 line 257, in readframes
data.fromfile(chunk.file.file, nitems)
EOFError: read() didn't return enough bytes

==
ERROR: test_unseekable_incompleted_write (test.test_wave.WavePCM32Test)
--
Traceback (most recent call last):
  File 
"/home/shager/cpython-buildarea/3.x.edelsohn-powerlinux-ppc64/build/Lib/test/audiotests.py",
 line 243, in test_unseekable_incompleted_write
self.check_file(testfile, self.nframes + 1, self.frames)
  File 
"/home/shager/cpython-buildarea/3.x.edelsohn-powerlinux-ppc64/build/Lib/test/audiotests.py",
 line 84, in check_file
self.assertEqual(f.readframes(nframes), frames)
  File 
"/home/shager/cpython-buildarea/3.x.edelsohn-powerlinux-ppc64/build/Lib/wave.py",
 line 257, in readframes
data.fromfile(chunk.file.file, nitems)
EOFError: read() didn't return enough bytes

==
FAIL: test_write_array (test.test_wave.WavePCM16Test)
--
Traceback (most recent call last):
  File 
"/home/shager/cpython-buildarea/3.x.edelsohn-powerlinux-ppc64/build/Lib/test/audiotests.py",
 line 163, in test_write_array
self.check_file(TESTFN, self.nframes, self.frames)
  File 
"/home/shager/cpython-buildarea/3.x.edelsohn-powerlinux-ppc64/build/Lib/test/audiotests.py",
 line 83, in check_file
self.assertEqual(f.getnframes(), nframes)
AssertionError: 96 != 48

==
FAIL: test_write_memoryview (test.test_wave.WavePCM16Test)
--
Traceback (most recent call last):
  File 
"/home/shager/cpython-buildarea/3.x.edelsohn-powerlinux-ppc64/build/Lib/test/audiotests.py",
 line 171, in test_write_memoryview
self.check_file(TESTFN, self.nframes, self.frames)
  File 
"/home/shager/cpython-buildarea/3.x.edelsohn-powerlinux-ppc64/build/Lib/test/audiotests.py",
 line 83, in check_file
self.assertEqual(f.getnframes(), nframes)
AssertionError: 96 != 48

==
FAIL: test_write_array (test.test_wave.WavePCM32Test)
--
Traceback (most recent call last):
  File 
"/home/shager/cpython-buildarea/3.x.edelsohn-powerlinux-ppc64/build/Lib/test/audiotests.py",
 line 163, in test_write_array
self.check_file(TESTFN, self.nframes, self.frames)
  File 
"/home/shager/cpython-buildarea/3.x.edelsohn-powerlinux-ppc64/build/Lib/test/audiotests.py",
 line 83, in check_file
self.assertEqual(f.getnframes(), nframes)
AssertionError: 192 != 48

==
FAIL: test_write_memoryview (test.test_wave.WavePCM32Test)
--
Traceback (most recent call last):
  File 
"/home/shager/cpython-buildarea/3.x.edelsohn-powerlinux-ppc64/build/Lib/test/audiotests.py",
 line 171, in test_write_memoryview
self.check_file(TESTFN, self.nframes, self.frames)
  File 
"/home/shager/cpython-buildarea/3.x.edelsohn-powerlinux-ppc64/build/Lib/test/audiotests.py",
 line 83, in check_file
self.assertEqual(f.getnframes(), nframes)
AssertionError: 192 != 48

--
components: Tests
messages: 203217
nosy: haypo, serhiy.storchaka
priority: normal
severity: normal
status: open
title: test_wave: failures on PPC64 buildbot
versions: Python 3.4

___
Python tracker 

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



[issue19599] Failure of test_async_timeout() of test_multiprocessing_spawn: TimeoutError not raised

2013-11-17 Thread Richard Oudkerk

Richard Oudkerk added the comment:

Hopefully the applied change will fix failure (or at least make this much less 
likey).

--
resolution:  -> fixed
stage:  -> committed/rejected
status: open -> closed
type:  -> behavior

___
Python tracker 

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



[issue19591] Use specific asserts in ctype tests

2013-11-17 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
assignee:  -> serhiy.storchaka
resolution:  -> fixed
stage: commit review -> committed/rejected
status: open -> closed
versions: +Python 2.7, Python 3.3

___
Python tracker 

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



[issue17618] base85 encoding

2013-11-17 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Yet one nitpick and the patch LGTM.

--

___
Python tracker 

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



[issue7434] general pprint rewrite

2013-11-17 Thread Evgeny Kapun

Changes by Evgeny Kapun :


--
nosy: +abacabadabacaba

___
Python tracker 

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



[issue19603] Use specific asserts in test_decr

2013-11-17 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Mimicing assertNotIsinstance looks fine. Thank you for your review.

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

___
Python tracker 

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



[issue19603] Use specific asserts in test_decr

2013-11-17 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 2407ecebcf7d by Serhiy Storchaka in branch '3.3':
Issue #19603: Use specific asserts in test_decr.
http://hg.python.org/cpython/rev/2407ecebcf7d

New changeset 6049c954a703 by Serhiy Storchaka in branch 'default':
Issue #19603: Use specific asserts in test_decr.
http://hg.python.org/cpython/rev/6049c954a703

New changeset 38fcb9a63398 by Serhiy Storchaka in branch '2.7':
Issue #19603: Use specific asserts in test_decr.
http://hg.python.org/cpython/rev/38fcb9a63398

--
nosy: +python-dev

___
Python tracker 

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



[issue17893] Refactor reduce protocol implementation

2013-11-17 Thread Alexandre Vassalotti

Alexandre Vassalotti added the comment:

Merged with issue #17810

--
resolution:  -> duplicate
status: open -> closed
superseder:  -> Implement PEP 3154 (pickle protocol 4)

___
Python tracker 

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



[issue14455] plistlib unable to read json and binary plist files

2013-11-17 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I added a lot of comments on Rietveld.

--

___
Python tracker 

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



[issue15216] Support setting the encoding on a text stream after creation

2013-11-17 Thread Andrei Dorian Duma

Andrei Dorian Duma added the comment:

I have to postpone this for a few weeks. Sorry if I stayed in anyone's way.

--

___
Python tracker 

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



[issue19448] SSL: add OID / NID lookup

2013-11-17 Thread Christian Heimes

Christian Heimes added the comment:

Thanks!

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

___
Python tracker 

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



[issue19448] SSL: add OID / NID lookup

2013-11-17 Thread Roundup Robot

Roundup Robot added the comment:

New changeset f43f65038e2a by Christian Heimes in branch 'default':
Issue #19448: Add private API to SSL module to lookup ASN.1 objects by OID, 
NID, short name and long name.
http://hg.python.org/cpython/rev/f43f65038e2a

--
nosy: +python-dev

___
Python tracker 

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



[issue1684] CGIHTTPServer does not chdir prior to executing the CGI script

2013-11-17 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
nosy: +neologix

___
Python tracker 

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



[issue17006] Warn users about hashing secrets?

2013-11-17 Thread Ezio Melotti

Ezio Melotti added the comment:

This might be useful to whoever attempts to write a patch: 
http://docs.python.org/devguide/documenting.html#security-considerations-and-other-concerns

--

___
Python tracker 

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



[issue19603] Use specific asserts in test_decr

2013-11-17 Thread Ezio Melotti

Ezio Melotti added the comment:

New patch LGTM.
In addition to the assertHasNoAttr that I suggested, on IRC David suggested 
assertNotHasAttr to mimic assertNotIn and assertNotIsinstance, and someone else 
suggested assertNoAttr.
Since it's only used within this file and all the suggestions are equally 
understandable to me, I don't think it matters too much, but feel free to 
change it if you think any of the alternative is better.

--
nosy: +r.david.murray

___
Python tracker 

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



[issue17618] base85 encoding

2013-11-17 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Updated patch after Serhiy's comments.

--
Added file: http://bugs.python.org/file32672/base85-3.patch

___
Python tracker 

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



[issue19599] Failure of test_async_timeout() of test_multiprocessing_spawn: TimeoutError not raised

2013-11-17 Thread Roundup Robot

Roundup Robot added the comment:

New changeset ba7d53b5f3de by Richard Oudkerk in branch '2.7':
Issue #19599: Increase sleep period.
http://hg.python.org/cpython/rev/ba7d53b5f3de

New changeset 7d6a9e7060c7 by Richard Oudkerk in branch '3.3':
Issue #19599: Increase sleep period.
http://hg.python.org/cpython/rev/7d6a9e7060c7

--
nosy: +python-dev

___
Python tracker 

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



[issue19338] multiprocessing: sys.exit() from a child with a non-int exit code exits with 0

2013-11-17 Thread Richard Oudkerk

Richard Oudkerk added the comment:

Thanks for the patches.

Fixed in 7aabbe919f55, 11cafbe6519f.

--
resolution:  -> fixed
stage:  -> committed/rejected
status: open -> closed

___
Python tracker 

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



[issue19629] support.rmtree fails on symlinks under Windows

2013-11-17 Thread Jeremy Kloth

Changes by Jeremy Kloth :


--
nosy: +jkloth

___
Python tracker 

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



[issue16998] Lost updates with multiprocessing.Value

2013-11-17 Thread Richard Oudkerk

Changes by Richard Oudkerk :


--
resolution:  -> fixed
stage:  -> committed/rejected
status: open -> closed
type: behavior -> 

___
Python tracker 

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



[issue16998] Lost updates with multiprocessing.Value

2013-11-17 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 7aabbe919f55 by Richard Oudkerk in branch '2.7':
Issue 16998: Clarify that += on a shared value is not atomic.
http://hg.python.org/cpython/rev/7aabbe919f55

New changeset 11cafbe6519f by Richard Oudkerk in branch '3.3':
Issue 16998: Clarify that += on a shared value is not atomic.
http://hg.python.org/cpython/rev/11cafbe6519f

--
nosy: +python-dev

___
Python tracker 

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



[issue18742] Abstract base class for hashlib

2013-11-17 Thread Christian Heimes

Christian Heimes added the comment:

It seems the name of the ABC needs more discussion. I'll address it in PEP 452 
for Python 3.5.

--
versions: +Python 3.5 -Python 3.4

___
Python tracker 

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



[issue19448] SSL: add OID / NID lookup

2013-11-17 Thread Christian Heimes

Changes by Christian Heimes :


--
assignee:  -> christian.heimes

___
Python tracker 

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



[issue19448] SSL: add OID / NID lookup

2013-11-17 Thread Antoine Pitrou

Antoine Pitrou added the comment:

> OK, let's keep it as private API for now and maybe make it public in
> 3.5. I'm going to rename ASN1Object to _ASN1Object, remove the docs
> and adjust the tests. Agreed?

Yup.

--

___
Python tracker 

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



[issue19448] SSL: add OID / NID lookup

2013-11-17 Thread Christian Heimes

Christian Heimes added the comment:

OK, let's keep it as private API for now and maybe make it public in 3.5. I'm 
going to rename ASN1Object to _ASN1Object, remove the docs and adjust the 
tests. Agreed?

--

___
Python tracker 

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



[issue18742] Abstract base class for hashlib

2013-11-17 Thread Antoine Pitrou

Antoine Pitrou added the comment:

> * "Cryptographic Hash Function" is the correct technical term for
> algorithms like SHA-1.

Sure, but in a programming context, it's confusing when the "function"
is implemented by a class with additional properties and methods.
Why not simply "CryptoHash"? It sounds descriptive enough to me.

> * I don't want to import yet another module just for the ABC. I'd
> rather not provide a sample implementation of hexdigest() if you think
> it is too slow.

Well, it's probably not excruciatingly slow, so if you don't want
another import, I guess the current implementation is ok :)

--

___
Python tracker 

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



[issue18742] Abstract base class for hashlib

2013-11-17 Thread Christian Heimes

Christian Heimes added the comment:

* "Cryptographic Hash Function" is the correct technical term for algorithms 
like SHA-1. http://en.wikipedia.org/wiki/Cryptographic_hash_function

* PEP 452 is going to suggest that 3rd party libraries register their hash 
function as subclasses of the ABC.

* __slots__ are required for subclassing. All our ABCs in Python 3.x have 
__slots__

* I don't want to import yet another module just for the ABC. I'd rather not 
provide a sample implementation of hexdigest() if you think it is too slow.

--

___
Python tracker 

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



[issue11344] Add os.path.splitpath(path) function

2013-11-17 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

The pathlib module is not in the stdlib yet, while a patch for splitpath() 
waits for review almost a year.

--

___
Python tracker 

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



[issue18528] Possible fd leak in socketmodule

2013-11-17 Thread Christian Heimes

Christian Heimes added the comment:

OK, I'm rejecting it.

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

___
Python tracker 

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



[issue15809] IDLE console uses incorrect encoding.

2013-11-17 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
stage: needs patch -> patch review

___
Python tracker 

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



[issue8402] Add a function to escape metacharacters in glob/fnmatch

2013-11-17 Thread Michele Orrù

Changes by Michele Orrù :


--
nosy:  -maker

___
Python tracker 

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



[issue15809] IDLE console uses incorrect encoding.

2013-11-17 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Here is a patch with a hack which corrects a line number in displayed 
traceback. It doesn't solve a problem totally, but perhaps it is a good enough 
approximation.

--
Added file: http://bugs.python.org/file32671/idle_compile_coding_3.patch

___
Python tracker 

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



[issue15809] IDLE console uses incorrect encoding.

2013-11-17 Thread irdb

irdb added the comment:

Well, if there is no other way around this, I think it's better to apply 
Martin's patch. At least then we will be able to enter any valid utf-8 
character in IDLE (although print statement won't print correctly unless the 
string is decoded first).

(As a Windows user, currently I can't print u'йцук' in interactive mode and get 
an "Unsupported characters in input" error because my default system encoding 
(cp1256) can't encode Russian.)

Also it will be more Unicode friendly which is not a bad thing.

--

___
Python tracker 

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



[issue19630] marshal.dump cannot write to temporary file

2013-11-17 Thread Tim Golden

Changes by Tim Golden :


--
resolution:  -> wont fix
stage:  -> committed/rejected

___
Python tracker 

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



[issue1625576] add ability to specify name to os.fdopen

2013-11-17 Thread Christian Heimes

Changes by Christian Heimes :


--
status: open -> languishing
versions: +Python 3.4 -Python 3.2

___
Python tracker 

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



[issue2213] build_tkinter.py does not handle paths with spaces

2013-11-17 Thread Christian Heimes

Changes by Christian Heimes :


--
nosy:  -christian.heimes

___
Python tracker 

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



[issue979658] Improve HTML documentation of a directory

2013-11-17 Thread Christian Heimes

Changes by Christian Heimes :


--
nosy:  -christian.heimes

___
Python tracker 

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



[issue1299] distutils.sysconfig is not cross-platform compatible

2013-11-17 Thread Christian Heimes

Changes by Christian Heimes :


--
assignee: tarek -> 
status: open -> languishing

___
Python tracker 

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



[issue1744456] Patch for feat. 1713877 Expose callbackAPI in readline module

2013-11-17 Thread Christian Heimes

Christian Heimes added the comment:

Closing as duplicate

--
stage: patch review -> committed/rejected
status: open -> closed
versions: +Python 3.4 -Python 3.2

___
Python tracker 

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



[issue1684] CGIHTTPServer does not chdir prior to executing the CGI script

2013-11-17 Thread Christian Heimes

Changes by Christian Heimes :


--
versions: +Python 3.4 -Python 3.2

___
Python tracker 

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



[issue2292] Missing *-unpacking generalizations

2013-11-17 Thread fhahn

fhahn added the comment:

I've updated the patch to apply to the current tip.

But this patch breaks *-unpacking, I'll try to take a closer look during the 
next week.

--
nosy: +fhahn
Added file: http://bugs.python.org/file32670/starunpack2.diff

___
Python tracker 

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



[issue18233] SSLSocket.getpeercertchain()

2013-11-17 Thread Christian Heimes

Christian Heimes added the comment:

It's just nice to have for debugging and extended verification.

--
versions: +Python 3.5 -Python 3.4

___
Python tracker 

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



[issue18233] SSLSocket.getpeercertchain()

2013-11-17 Thread Antoine Pitrou

Antoine Pitrou added the comment:

@Dustin

> My two-cents is to leave it a tuple (why not?).

Because tuples are more used for struct-like data. Here we are returning an 
unknown number of homogenous objects, which generally calls for a list.

@Christian

> I'd rather return a list or tuple of X509 objects but #18369 won't be ready 
> for 3.4. Ideas?

Unless the feature is really important to have right now, I think it's ok to 
defer it until we have X509 objects.

--

___
Python tracker 

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



[issue18379] SSLSocket.getpeercert(): OCSP and CRL DP URIs

2013-11-17 Thread Christian Heimes

Christian Heimes added the comment:

Are you satisfied with my patch? I'd like to commit it before beta 1

--

___
Python tracker 

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



[issue18233] SSLSocket.getpeercertchain()

2013-11-17 Thread Christian Heimes

Christian Heimes added the comment:

I'd rather return a list or tuple of X509 objects but #18369 won't be ready for 
3.4. Ideas?

--

___
Python tracker 

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



[issue19336] No API to get events from epoll without allocating a list

2013-11-17 Thread Christian Heimes

Christian Heimes added the comment:

@Alex: ping

--

___
Python tracker 

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



[issue1763] Get path to shell/known folders on Windows

2013-11-17 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
nosy:  -serhiy.storchaka

___
Python tracker 

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



[issue19508] Add warning that Python doesn't verify SSL certs by default

2013-11-17 Thread Antoine Pitrou

Antoine Pitrou added the comment:

I've added a different warning to 2.7, as the ssl docs there don't have the 
"security considerations" section.

--
resolution:  -> fixed
stage: needs patch -> committed/rejected
versions:  -Python 2.7, Python 3.2

___
Python tracker 

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



[issue16632] Enable DEP and ASLR

2013-11-17 Thread Christian Heimes

Christian Heimes added the comment:

I no longer see the crashs.

--

___
Python tracker 

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



[issue18391] socket.fromfd()'s API is difficult or impossible to use correctly in general

2013-11-17 Thread Christian Heimes

Christian Heimes added the comment:

Do you want to work on a patch for 3.4? You have about five days until 3.4 is 
going into feature freeze.

--

___
Python tracker 

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



[issue19508] Add warning that Python doesn't verify SSL certs by default

2013-11-17 Thread Roundup Robot

Roundup Robot added the comment:

New changeset a197b3c3b2c9 by Antoine Pitrou in branch '2.7':
Issue #19508: warn that ssl doesn't validate certificates by default
http://hg.python.org/cpython/rev/a197b3c3b2c9

--

___
Python tracker 

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



[issue18293] ssl.wrap_socket (cert_reqs=...), getpeercert, and unvalidated certificates

2013-11-17 Thread Christian Heimes

Christian Heimes added the comment:

I may address the issue in my PEP for Python 3.5. Python 3.4 beta 1 will be 
released next week and no new features are allowed in beta and RC phase.

--
versions: +Python 3.5 -Python 3.4

___
Python tracker 

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



[issue8402] Add a function to escape metacharacters in glob/fnmatch

2013-11-17 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Could anyone please review the patch before feature freeze?

--

___
Python tracker 

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



[issue19632] doc build warning

2013-11-17 Thread Antoine Pitrou

New submission from Antoine Pitrou:

This is on 2.7:

reading sources... [100%] whatsnew/index
  
/home/antoine/cpython/27/Doc/library/functions.rst:1186: WARNING: duplicate 
object description of repr, other instance in 
/home/antoine/cpython/27/Doc/library/repr.rst, use :noindex: for one of them
looking for now-outdated files... none found

--
assignee: docs@python
components: Documentation
messages: 203180
nosy: docs@python, pitrou
priority: low
severity: normal
stage: needs patch
status: open
title: doc build warning
versions: Python 2.7

___
Python tracker 

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



[issue19508] Add warning that Python doesn't verify SSL certs by default

2013-11-17 Thread Roundup Robot

Roundup Robot added the comment:

New changeset f86fdaf529ea by Antoine Pitrou in branch '3.3':
Issue #19508: direct the user to read the security considerations for the ssl 
module
http://hg.python.org/cpython/rev/f86fdaf529ea

New changeset 18d95780100e by Antoine Pitrou in branch 'default':
Issue #19508: direct the user to read the security considerations for the ssl 
module
http://hg.python.org/cpython/rev/18d95780100e

--
nosy: +python-dev

___
Python tracker 

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



[issue13968] Support recursive globs

2013-11-17 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

In updated patch fixed warning/errors when ran with -b or -bb options.

--
Added file: http://bugs.python.org/file32669/glob_recursive_4.patch

___
Python tracker 

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



[issue19508] Add warning that Python doesn't verify SSL certs by default

2013-11-17 Thread Georg Brandl

Georg Brandl added the comment:

Sounds good.

--
nosy: +georg.brandl

___
Python tracker 

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



[issue18617] TLS and Intermediate Certificates

2013-11-17 Thread Antoine Pitrou

Antoine Pitrou added the comment:

I'm afraid downloading certs on the fly would open a whole new can of worms, so 
I'd rather have it documented indeed :)

--
nosy: +pitrou

___
Python tracker 

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



[issue18617] TLS and Intermediate Certificates

2013-11-17 Thread Christian Heimes

Christian Heimes added the comment:

Donald, could you please provide a doc update that explains the problem?

--
assignee:  -> docs@python
nosy: +docs@python

___
Python tracker 

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



[issue15464] ssl: add set_msg_callback function

2013-11-17 Thread Christian Heimes

Christian Heimes added the comment:

The patch won't be ready for 3.4 beta1 next weekend. Deferring to 3.5

--
versions: +Python 3.5 -Python 3.4

___
Python tracker 

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



[issue14518] Add bcrypt $2a$ to crypt.py

2013-11-17 Thread Christian Heimes

Christian Heimes added the comment:

I think it would be better to provide a dedicated implementation of bcrypt. 
Most operating systems do not provide bcrypt (Linux, Windows).

--
status: open -> pending

___
Python tracker 

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



[issue18528] Possible fd leak in socketmodule

2013-11-17 Thread Antoine Pitrou

Antoine Pitrou added the comment:

If none of use really understands the problem Coverity is trying to warn us 
about, I'd say "let languish or close".

--

___
Python tracker 

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



[issue18742] Abstract base class for hashlib

2013-11-17 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Some comments:
- AbstractCryptoHashFunction should be called CryptoHashBase or something (but 
does it warrant being public? I don't think so)
- having "Function" in a class name is a bit confusing to me. Why not simply 
"CryptoHash"?
- you don't need to add a __slots__ to your ABCs, IMO
- the default hexdigest() implementation looks a bit suboptimal to me, why not 
use binascii?

--

___
Python tracker 

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



[issue8813] SSLContext doesn't support loading a CRL

2013-11-17 Thread Christian Heimes

Christian Heimes added the comment:

Yes, you are right. OpenSSL uses the same API to load certs and CRLs. CRL 
checks must be enabled, though.

--

___
Python tracker 

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



[issue18528] Possible fd leak in socketmodule

2013-11-17 Thread Christian Heimes

Christian Heimes added the comment:

The patch has been languishing for some time. Commit or close?

--

___
Python tracker 

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



  1   2   >