[issue16612] Integrate Argument Clinic into CPython trunk

2013-10-18 Thread Larry Hastings

Larry Hastings added the comment:

Spelling corrections from Arfrever (thanks Arfrever!), and some eentsy teensy 
weentsy bugfixes from me.  And with a dramatic new patch number just so 
everybody can keep it straight.

--
title: Integrate Argument Clinic specialized preprocessor into CPython 
trunk - Integrate Argument Clinic into CPython trunk
Added file: http://bugs.python.org/file32162/larry.clinic.patch.5.diff

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



[issue5411] Add xz support to shutil

2013-10-18 Thread Serhiy Storchaka

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


Removed file: http://bugs.python.org/file27723/shutil-lzma_2.patch

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



[issue5411] Add xz support to shutil

2013-10-18 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

 Serhiy's patch needs a versionchanged or versionadded tag in the Docs.

Done.

--
Added file: http://bugs.python.org/file32163/shutil-lzma_3.patch

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



[issue1575020] Request wave support 16 bit samples

2013-10-18 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Actually 24-bit samples are supported only on little-endian platforms (see 
issue19276). Here is simple patch which makes them supported on big-endian too.

--
keywords: +patch
resolution: out of date - 
stage: committed/rejected - patch review
status: pending - open
versions: +Python 2.7, Python 3.3
Added file: http://bugs.python.org/file32164/wave_24bit.patch

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



[issue10976] json.loads() raises TypeError on bytes object

2013-10-18 Thread Nick Guenther

Changes by Nick Guenther n...@kousu.ca:


--
nosy: +kousu

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



[issue1575020] Request wave support 16 bit samples

2013-10-18 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

And supporting the feature only on some platforms (without good reasons) is a 
bug.

--
type: enhancement - behavior

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



[issue19030] inspect.getmembers and inspect.classify_class_attrs mishandle descriptors

2013-10-18 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 39b06c3fbe2e by Ethan Furman in branch 'default':
Close #19030: inspect.getmembers and inspect.classify_class_attrs
http://hg.python.org/cpython/rev/39b06c3fbe2e

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

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



[issue10614] ZipFile: add a filename_encoding argument

2013-10-18 Thread Sergey Dorofeev

Sergey Dorofeev added the comment:

I'd like to submit patch to support zip archives created on systems that use 
non-US codepage (e.g. russian CP866).
Codepage would be specified in additional parameter of ZipFile constructor, 
named codepage.
If it is not specified, old behavior is preserved (use CP437).

--- zipfile.py-orig 2013-09-18 16:45:56.0 +0400
+++ zipfile.py  2013-10-15 00:24:06.105157572 +0400
@@ -885,7 +885,7 @@
 fp = None   # Set here since __del__ checks it
 _windows_illegal_name_trans_table = None

-def __init__(self, file, mode=r, compression=ZIP_STORED, 
allowZip64=False):
+def __init__(self, file, mode=r, compression=ZIP_STORED, 
allowZip64=False, codepage='cp437'):
 Open the ZIP file with mode read r, write w or append a.
 if mode not in (r, w, a):
 raise RuntimeError('ZipFile() requires mode r, w, or a')
@@ -901,6 +901,7 @@
 self.mode = key = mode.replace('b', '')[0]
 self.pwd = None
 self._comment = b''
+self.codepage = codepage

 # Check if we were passed a file-like object
 if isinstance(file, str):
@@ -1002,7 +1003,7 @@
 filename = filename.decode('utf-8')
 else:
 # Historical ZIP filename encoding
-filename = filename.decode('cp437')
+filename = filename.decode(self.codepage)
 # Create ZipInfo instance to store file information
 x = ZipInfo(filename)
 x.extra = fp.read(centdir[_CD_EXTRA_FIELD_LENGTH])
@@ -1157,7 +1158,7 @@
 # UTF-8 filename
 fname_str = fname.decode(utf-8)
 else:
-fname_str = fname.decode(cp437)
+fname_str = fname.decode(self.codepage)

 if fname_str != zinfo.orig_filename:
 raise BadZipFile(

--
nosy: +Sergey.Dorofeev

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



[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-18 Thread koobs

koobs added the comment:

There are 5 unique test failures that have come up in the koobs-freebsd* 
buildbots post the test_asyncio import. Would we prefer to create a meta issue 
to track them, or put them here?

--
nosy: +koobs

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



[issue16938] pydoc confused by __dir__

2013-10-18 Thread Ethan Furman

Ethan Furman added the comment:

This has been fixed in #19030: every good object will have a home class; 
non-good objects (the result of buggy __dir__, __getattribute__, or __getattr__ 
methods) will not be returned and so cannot confuse pydoc.

--
resolution:  - fixed
stage:  - committed/rejected
status: open - closed
superseder:  - inspect.getmembers and inspect.classify_class_attrs mishandle 
descriptors

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



[issue19281] add __objclass__ to the docs

2013-10-18 Thread Ethan Furman

New submission from Ethan Furman:

Currently __objclass__ is only documented in a ten-year old PEP.

--
messages: 200190
nosy: eric.araujo, ethan.furman, ezio.melotti, georg.brandl
priority: normal
severity: normal
status: open
title: add __objclass__ to the docs

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



[issue19272] Can't pickle lambda (while named functions are ok)

2013-10-18 Thread Roundup Robot

Roundup Robot added the comment:

New changeset d103ba56710e by Ethan Furman in branch 'default':
Issue #19272: slight clarification of pickle docs with regard to lambda.
http://hg.python.org/cpython/rev/d103ba56710e

--
nosy: +python-dev

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



[issue10614] ZipFile: add a filename_encoding argument

2013-10-18 Thread STINNER Victor

STINNER Victor added the comment:

Please rename codepage to encoding. By the way, 437 is a codepage, cp437 is
a (python) encoding.

I don't think that ZIP is limited to windows. I uncompressed zip files many
times on various OSes, github also produces zip (and github is probably not
using windows). And codepage term is only used on windows. Mac OS 9 users
might produce mac roman filenames.

--

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



[issue19282] dbm is not a context manager

2013-10-18 Thread Nick Guenther

New submission from Nick Guenther:

This code doesn't work. I think it should.

import dbm
with dbm.open(what is box.db, c) as db:
   db[Bpoind] = Boing

Indeed, there is nothing supporting PEP 343 for dbm on my system:
[kousu@galleon ~]$ grep -r __exit__ /usr/lib/python3.3/dbm 
[kousu@galleon ~]$

--
components: Library (Lib)
messages: 200191
nosy: kousu
priority: normal
severity: normal
status: open
title: dbm is not a context manager
versions: Python 3.1, Python 3.2, Python 3.3, Python 3.4, Python 3.5

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



[issue19030] inspect.getmembers and inspect.classify_class_attrs mishandle descriptors

2013-10-18 Thread koobs

Changes by koobs koobs.free...@gmail.com:


Added file: 
http://bugs.python.org/file32166/koobs-freebsd10-amd64-py3x-build588.log

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



[issue19030] inspect.getmembers and inspect.classify_class_attrs mishandle descriptors

2013-10-18 Thread koobs

koobs added the comment:

Multiple test_pydoc  failures found on koobs-freebsd* buildbots after 
39b06c3fbe2e6ef78a540513d4b81f2d095d1e62

Attaching complete logs from both bots to this issue, will reference #16938 as 
well

--
nosy: +koobs
Added file: 
http://bugs.python.org/file32165/koobs-freebsd9-amd64-py3x-build183.log

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



[issue19272] Can't pickle lambda (while named functions are ok)

2013-10-18 Thread Ethan Furman

Ethan Furman added the comment:

Added some clarification to the docs to make it clearer that lambda functions 
cannot be pickled.

Facundo [1], if you want to pursue being able to pickle lambda functions please 
open an enhancement issue.  Some of the questions that come to mind:

 1) for a random name, where will the name be stored  (I'm thinking a
__pickle__ dict on the module)? 

 2) for pickling the code object itself, what are the ramifications
(this is directly contrary to how pickle was designed) 

These questions should be discussed on PyDev, and will probably require a PEP.


[1] or anyone else :)

--
assignee:  - docs@python
nosy: +docs@python
resolution:  - invalid
stage:  - committed/rejected
status: open - closed
versions:  -Python 3.3

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



[issue17576] PyNumber_Index() is not int-subclass friendly (or operator.index() docos lie)

2013-10-18 Thread Mark Dickinson

Mark Dickinson added the comment:

I still need to act on some of Serhiy's comments.  I do plan to get this in for 
3.4.

--

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



[issue16938] pydoc confused by __dir__

2013-10-18 Thread koobs

koobs added the comment:

Some test failures have cropped, I have attached buildbot logs and referenced 
them in #19030

--
nosy: +koobs

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



[issue19030] inspect.getmembers and inspect.classify_class_attrs mishandle descriptors

2013-10-18 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 02c9d26d231f by Ethan Furman in branch 'default':
Issue #19030:  special-cased __dict__ as the actual dict is not returned, a 
proxy is.
http://hg.python.org/cpython/rev/02c9d26d231f

--

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



[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-18 Thread koobs

Changes by koobs koobs.free...@gmail.com:


Added file: http://bugs.python.org/file32199/koobs-freebsd9-py3x-build180.log

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



[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-18 Thread koobs

koobs added the comment:

Summary of 4 test failures below, will attach the complete buildbot logs for 
detail.

==
FAIL: test_call_later (test.test_asyncio.test_events.SelectEventLoopTests)
--
Traceback (most recent call last):
  File 
/usr/home/buildbot/python/3.x.koobs-freebsd9/build/Lib/test/test_asyncio/test_events.py,
 line 241, in test_call_later
self.assertTrue(0.09 = t1-t0 = 0.12, t1-t0)
AssertionError: False is not true : 0.12008954107295722

==
FAIL: test_signal_handling_args 
(test.test_asyncio.test_events.SelectEventLoopTests)
--
Traceback (most recent call last):
  File 
/usr/home/buildbot/python/3.x.koobs-freebsd9/build/Lib/test/test_asyncio/test_events.py,
 line 468, in test_signal_handling_args
self.assertEqual(caught, 1)
AssertionError: 0 != 1

==
FAIL: test_create_server_ssl 
(test.test_asyncio.test_events.KqueueEventLoopTests)
--
Traceback (most recent call last):
  File 
/usr/home/buildbot/python/3.x.koobs-freebsd9/build/Lib/test/test_asyncio/test_events.py,
 line 626, in test_create_server_ssl
self.assertEqual(3, proto.nbytes)
AssertionError: 3 != 0


==
Timeout (1:00:00)!
snip
Exception: Child error on test_asyncio: Exit code 1
--

--
Added file: http://bugs.python.org/file32198/koobs-freebsd9-py3x-build178.log

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



[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-18 Thread koobs

Changes by koobs koobs.free...@gmail.com:


Added file: http://bugs.python.org/file32200/koobs-freebsd9-py3x-build182.log

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



[issue19282] dbm is not a context manager

2013-10-18 Thread Claudiu.Popa

Claudiu.Popa added the comment:

Working on a patch for this.

--
nosy: +Claudiu.Popa

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



[issue12892] UTF-16 and UTF-32 codecs should reject (lone) surrogates

2013-10-18 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Changed the documentation as was discussed with Ezio on IRC.

Ezio, do you want commit this patch? Feel free to reword the documentation if 
you are feeling be better.

--
Added file: http://bugs.python.org/file32201/utf_16_32_surrogates_6.patch

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



[issue19282] dbm is not a context manager

2013-10-18 Thread Serhiy Storchaka

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


--
stage:  - needs patch
type:  - enhancement
versions:  -Python 3.1, Python 3.2, Python 3.3, Python 3.5

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



[issue12892] UTF-16 and UTF-32 codecs should reject (lone) surrogates

2013-10-18 Thread Serhiy Storchaka

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


Removed file: http://bugs.python.org/file32201/utf_16_32_surrogates_6.patch

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



[issue12892] UTF-16 and UTF-32 codecs should reject (lone) surrogates

2013-10-18 Thread Serhiy Storchaka

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


Added file: http://bugs.python.org/file32202/utf_16_32_surrogates_6.patch

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



[issue15237] Add capsule API to _decimal

2013-10-18 Thread Stefan Krah

Stefan Krah added the comment:

I believe you, but I'd like to understand why. :)

It seems to me that a module and also PyInit_xxx() can be loaded portably.
Say the handles to the module are cached somewhere after loading and
initializing.  I think this already happens in Python/dynload_shlib.c.

Why can't another module use a slightly modified form of 
_PyImport_GetDynLoadFunc()
to get any non-static function apart from PyInit_xxx() by re-using the cached
handle?

--

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



[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-18 Thread Antoine Pitrou

Antoine Pitrou added the comment:

 ==
 FAIL: test_call_later
 (test.test_asyncio.test_events.SelectEventLoopTests)
 --
 Traceback (most recent call last):
   File
   
 /usr/home/buildbot/python/3.x.koobs-freebsd9/build/Lib/test/test_asyncio/test_events.py,
   line 241, in test_call_later
 self.assertTrue(0.09 = t1-t0 = 0.12, t1-t0)
 AssertionError: False is not true : 0.12008954107295722

This one is a classical timing issue. The test is too optimistic:
many buildbots can be quite slow or loaded. Other timing tests in the
stdlib allow for much more slack.

(e.g. call_later with 0.5 and check that the resulting delay
is between 0.4 and 1.0)

--

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



[issue15237] Add capsule API to _decimal

2013-10-18 Thread Marc-Andre Lemburg

Marc-Andre Lemburg added the comment:

On 18.10.2013 11:39, Stefan Krah wrote:
 
 Stefan Krah added the comment:
 
 I believe you, but I'd like to understand why. :)

:-)

 It seems to me that a module and also PyInit_xxx() can be loaded portably.
 Say the handles to the module are cached somewhere after loading and
 initializing.  I think this already happens in Python/dynload_shlib.c.
 
 Why can't another module use a slightly modified form of 
 _PyImport_GetDynLoadFunc()
 to get any non-static function apart from PyInit_xxx() by re-using the cached
 handle?

This may work on Linux (and probably does if you use the right
DL flags), but I don't think this works reliably or at all on other
platforms such as Windows. Symbols from shared libs are not necessarily
available to all other shared libraries in the same process.

CObjects, which Capsules originate from, were added to address this
problem in a portable way. It's the Python standard approach to
importing C APIs from other extension modules.

--

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



[issue18777] Cannot compile _ssl.c using openssl 1.0

2013-10-18 Thread Stefan Krah

Stefan Krah added the comment:

The hpux bot fails at the compile stage:

http://buildbot.python.org/all/builders/IA64%20HP-UX%2011iv3%20%5BSB%5D%203.x/builds/2152/steps/compile/logs/stdio


ld -b 
build/temp.hp-ux-B.11.31-ia64-3.4-pydebug/home/cpython/buildslave/3.x.snakebite-hpux11iv3-ia64-1/build/Modules/_ssl.o
 -L/usr/local/lib -lssl -lcrypto -o 
build/lib.hp-ux-B.11.31-ia64-3.4-pydebug/_ssl.so
/usr/lib/hpux32/dld.so: Unsatisfied code symbol 'CRYPTO_THREADID_set_callback' 
in load module 'build/lib.hp-ux-B.11.31-ia64-3.4-pydebug/_ssl.so'.
sh[5]: 7508 Killed
*** Error exit code 137

--
nosy: +skrah

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



[issue19283] Need support to avoid Windows CRT compatibility issue.

2013-10-18 Thread Debarshi Goswami

New submission from Debarshi Goswami:

Some support is needed to avoid compatibility issues in different version of 
CRT in Windows.
I have an application which embeds Python interpreter and the application is 
build on MSVC11, whereas I am using Python 3.3.2 which is build on MSVC10. I 
know there are some compatibility issues which are addressed in Issue10082 and 
Issue1003535. But even other Python APIs which uses FILE pointer inside are 
failing too. I tried the following things – 
1.  PyRun_FileExFlags with MSVC11 FILE*. It crashes as expected.
2.  PyRun_FileExFlags with MSVC10 FILE* using _Py_fopen() directly passing 
to it. It is also crashing whereas _Py_fopen() returns FILE* of MSVC10 type.
3.  Py_CompileString() also crashes. I don’t know the reason, but here my 
application is not providing FILE* from outside. It uses FILE* of Python 
library which is of MSVC10 type.
I did some investigation and found if I provide FILE* of MSVC10 type from my 
application in PyRun_File() or if I call Py_CompileString(), it crashes after 
parsing the file (I am not totally sure, but it seems to me). Here is the call 
stack – 
python33.dll!PyUnicode_InternInPlace(_object * * p) Line 14220 C
python33.dll!new_identifier(const char * n, compiling * c) Line 570 C
python33.dll!alias_for_import_name(compiling * c, const _node * n, int store) 
Line 2808 C
python33.dll!ast_for_import_stmt(compiling * c, const _node * n) Line 2892  C
python33.dll!PyAST_FromNode(const _node * n, PyCompilerFlags * flags, const 
char * filename, _arena * arena) Line 724   C
python33.dll!PyParser_ASTFromFile(_iobuf * fp, const char * filename, const 
char * enc, int start, char * ps1, char * ps2, PyCompilerFlags * flags, int * 
errcode, _arena * arena) Line 2124C
python33.dll!PyRun_FileExFlags(_iobuf * fp, const char * filename, int start, 
_object * globals, _object * locals, int closeit, PyCompilerFlags * flags) Line 
1931  C

It fails in PyDict_GetItem() call in PyUnicode_InternInPlace() function. Here 
is the snippet - 

/* It might be that the GetItem call fails even
   though the key is present in the dictionary,
   namely when this happens during a stack overflow. */
Py_ALLOW_RECURSION
t = PyDict_GetItem(interned, s);
Py_END_ALLOW_RECURSION

I am not sure why PyDict_GetItem() is failing because of FILE*. It seems to me 
that Python is able to parse file provided successfully.

I am initializing interpreter successfully and PyRun_String() API works fine. 
But I dont want to use PyRun_String() as it performs everything virtually and 
provide no debug support.

--
components: Interpreter Core, Windows
messages: 200238
nosy: debarshig
priority: normal
severity: normal
status: open
title: Need support to avoid Windows CRT compatibility issue.
versions: Python 3.3

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



[issue19283] Need support to avoid Windows CRT compatibility issue.

2013-10-18 Thread Debarshi Goswami

Debarshi Goswami added the comment:

If any workaround is available. It is also fine.

--
type:  - crash

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



[issue19283] Need support to avoid Windows CRT compatibility issue.

2013-10-18 Thread Antoine Pitrou

Antoine Pitrou added the comment:

The easy answer is: don't execute a script, import a module instead (and either 
do something at that module's top-level, or execute a function inside the 
module).

Also, as for ABI issues, take a look at:
http://docs.python.org/3.3/c-api/stable.html

--
nosy: +loewis, pitrou

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



[issue19279] UTF-7 to UTF-8 decoding crash

2013-10-18 Thread Piotr Dobrogost

Changes by Piotr Dobrogost p...@bugs.python.dobrogost.net:


--
nosy: +piotr.dobrogost

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



[issue19282] dbm is not a context manager

2013-10-18 Thread Claudiu.Popa

Claudiu.Popa added the comment:

Here's a patch.

--
keywords: +patch
Added file: http://bugs.python.org/file32203/dbm.patch

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



[issue19283] Need support to avoid Windows CRT compatibility issue.

2013-10-18 Thread Debarshi Goswami

Debarshi Goswami added the comment:

My question is, even a FILE* of MSVC10 type is provided, why these APIs are 
crashing, after all it expects MSVC10 type.

--

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



[issue13405] Add DTrace probes

2013-10-18 Thread koobs

Changes by koobs koobs.free...@gmail.com:


--
nosy: +koobs

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



[issue13405] Add DTrace probes

2013-10-18 Thread koobs

koobs added the comment:

Marc, you just reminded me I need to ask antoine to re-create the custom DTrace 
builder that passes --with-dtrace, thanks :)

I've been keeping both of the FreeBSD (9.x and 10.x) buildslaves as close to 
HEAD as possible with frequent world updates, which have been receiving a lot 
of DTrace love lately.

I also note your follow-up on the PR you submitted, if I can help you or Jesús 
make progress on this, don't hesitate to let me know.

--

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



[issue19284] subprocess._args_from_interpreter_flags() mishandles -R

2013-10-18 Thread Nick Coghlan

New submission from Nick Coghlan:

Trying to provoke the buildbot failure from issue 16129 I was puzzled as to why 
setting PYTHONHASHSEED was behaving strangely.

The subprocess._args_from_interpreter_flags() helper used by test.support (and 
multiprocessing) misbehaves when PYTHONHASHSEED is set to a specific value: 
whatever the seed is, it repeats the 'R' in -R that many times (the helper 
appears to assume that the only flag with a value greater than 1 will be '-v')

--
components: Tests
keywords: buildbot
messages: 200244
nosy: ncoghlan
priority: normal
severity: normal
status: open
title: subprocess._args_from_interpreter_flags() mishandles -R
versions: Python 3.4

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



[issue19284] subprocess._args_from_interpreter_flags() mishandles -R

2013-10-18 Thread Nick Coghlan

Nick Coghlan added the comment:

I'll deal with this as part of getting issue 16129 sorted out.

--
assignee:  - ncoghlan

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



[issue19284] subprocess._args_from_interpreter_flags() mishandles -R

2013-10-18 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 0ba7280545fe by Nick Coghlan in branch 'default':
Close #19284: Handle -R properly in flag helper
http://hg.python.org/cpython/rev/0ba7280545fe

--
nosy: +python-dev
resolution:  - fixed
stage:  - committed/rejected
status: open - closed

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



[issue13405] Add DTrace probes

2013-10-18 Thread Antoine Pitrou

Antoine Pitrou added the comment:

 Marc, you just reminded me I need to ask antoine to re-create the
 custom DTrace builder that passes --with-dtrace, thanks :)

Well, I don't think it makes a lot of sense to re-create it, until
DTrace support is integrated.

--

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



[issue13405] Add DTrace probes

2013-10-18 Thread koobs

koobs added the comment:

antoine, is it possible test/pass --with-dtrace on a buildbot without including 
it in the master build configuration?

If not, I'm happy to create a special (dedicated) slave for Jesús so he can 
continue to test his branch at leisure without messing up the existing slave 
configurations. 

That will also remove the dependency on me, and our inconvenient timezone 
overlap for communication :)

--

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



[issue16129] No good way to set 'PYTHONIOENCODING' when embedding python.

2013-10-18 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 12d7b6171b28 by Nick Coghlan in branch 'default':
Issue #16129: Py_SetStandardStreamEncoding cleanups
http://hg.python.org/cpython/rev/12d7b6171b28

--

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



[issue16129] No good way to set 'PYTHONIOENCODING' when embedding python.

2013-10-18 Thread Nick Coghlan

Nick Coghlan added the comment:

I dealt with the comments folks made here and on python-dev regarding the docs 
and the limited API, as well as the fact it isn't safe to call PyErr_NoMemory() 
when this function fails.

However, I still haven't been able to reproduce the failure seen on the 
buildbots. It isn't a simple cross-test interference problem, as I tried the 
randomization seed from the Ubuntu log and that still passed for me. I'm still 
trying the seed from Stefan's FreeBSD system, but I expect that will be clean 
here as well.

--

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



[issue16129] No good way to set 'PYTHONIOENCODING' when embedding python.

2013-10-18 Thread Nick Coghlan

Nick Coghlan added the comment:

(As expected, the original FreeBSD randomization seed passed here without any 
problems)

Before I disabled the test completely, I did a run with full error diffs 
enabled.

Here's the FreeBSD log with full diffs:
http://buildbot.python.org/all/builders/AMD64%20FreeBSD%2010.0%203.x/builds/580/steps/test/logs/stdio

This indicates both {0.stdout.encoding} and {0.stdout.encoding} produced 
the string None in the formatting operation that creates the expected output.

The Ubuntu run exhibits the same behaviour:
http://buildbot.python.org/all/builders/AMD64%20Ubuntu%20LTS%203.x/builds/2717/steps/test/logs/stdio

Note that on both symptoms, the later run passes without a problem, and (aside 
from the full diff being enabled the second time), the symptoms were identical 
(further pushing against a cross-test compatibility problem).

And the full gory list of failed logs with this error and the full diffs:
http://buildbot.python.org/all/builders/AMD64%20OpenIndiana%203.x/builds/6502/steps/test/logs/stdio
http://buildbot.python.org/all/builders/AMD64%20Snow%20Leop%203.x/builds/170/steps/test/logs/stdio
http://buildbot.python.org/all/builders/x86%20Gentoo%20Non-Debug%203.x/builds/5175/steps/test/logs/stdio
http://buildbot.python.org/all/builders/AMD64%20FreeBSD%209.0%203.x/builds/5508/steps/test/logs/stdio
http://buildbot.python.org/all/builders/x86%20Ubuntu%20Shared%203.x/builds/8767/steps/test/logs/stdio

I couldn't find a full diff failure for this one, but this log has the 
truncated diff:
http://buildbot.python.org/all/builders/PPC64%20PowerLinux%203.x/builds/861/steps/test/logs/stdio

--

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



[issue16129] No good way to set 'PYTHONIOENCODING' when embedding python.

2013-10-18 Thread Stefan Krah

Stefan Krah added the comment:

A test order problem is indeed unlikely:  I ran the tests as the buildbot user
with the same random seed and they passed. Let's blame the buildbot software. ;)

--

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



[issue19279] UTF-7 to UTF-8 decoding crash

2013-10-18 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

And here is a patch for 2.7.

--
Added file: http://bugs.python.org/file32204/utf7_errors-2.7.patch

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



[issue16129] No good way to set 'PYTHONIOENCODING' when embedding python.

2013-10-18 Thread Nick Coghlan

Nick Coghlan added the comment:

Larry - I'm kinda stumped on this one. I'm not sure how to debug the failure on 
the buildbots, because, as Victor said, sys.stdout/err having an encoding 
attribute of None *isn't* supposed to happen, so the test should be fine as it 
stands. And nobody has been able to reproduce the problem on a direct run.

It's probably OK to leave the test disabled for the alpha (since even the 
failures show that *this* feature was working correctly, it was the test case 
itself that was breaking).

While I just noticed my RHEL buildbot hit the failure as well, Stefan's 
inability to reproduce the problem on his FreeBSD system suggests that isn't 
likely to help: 
http://buildbot.python.org/all/builders/x86%20RHEL%206%203.x/builds/2871/steps/test/logs/stdio

(And /facepalm moment, I just realised all my testing tonight has been 
pointless, because I forgot to remove the skip decorator from the offending 
test...)

--

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



[issue16129] No good way to set 'PYTHONIOENCODING' when embedding python.

2013-10-18 Thread Nick Coghlan

Nick Coghlan added the comment:

Ah, that got it:

LC_ALL=C ./python -m test -W test_capi

= boom :)

And, of course it's a StringIO object at that point...

--

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



[issue16129] No good way to set 'PYTHONIOENCODING' when embedding python.

2013-10-18 Thread Nick Coghlan

Changes by Nick Coghlan ncogh...@gmail.com:


--
nosy: +larry
priority: normal - release blocker

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



[issue15237] Add capsule API to _decimal

2013-10-18 Thread Stefan Krah

Stefan Krah added the comment:

Marc-Andre Lemburg rep...@bugs.python.org wrote:
 This may work on Linux (and probably does if you use the right
 DL flags), but I don't think this works reliably or at all on other
 platforms such as Windows. Symbols from shared libs are not necessarily
 available to all other shared libraries in the same process.

Thanks. On Linux the scheme works (I stored the DLL handle in
the PyModuleObject and added a function PyModule_GetSymbol()).

--

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



[issue16129] No good way to set 'PYTHONIOENCODING' when embedding python.

2013-10-18 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 4af20969c592 by Nick Coghlan in branch 'default':
Issue #16129: this should appease the buildbots
http://hg.python.org/cpython/rev/4af20969c592

--

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



[issue16612] Integrate Argument Clinic into CPython trunk

2013-10-18 Thread Larry Hastings

Larry Hastings added the comment:

Incorporated suggestions from Antoine and Berker Peksag.  Thanks!

--
Added file: http://bugs.python.org/file32205/larry.clinic.patch.6.diff

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



[issue16129] No good way to set 'PYTHONIOENCODING' when embedding python.

2013-10-18 Thread Nick Coghlan

Nick Coghlan added the comment:

So, does that mean asked the release manager for a ruling is the buildbot 
debugging equivalent of threatened it with tech support? :)

--
priority: release blocker - normal
resolution:  - fixed
stage: needs patch - committed/rejected
status: open - pending

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



[issue17429] platform.platform() can throw Unicode error

2013-10-18 Thread STINNER Victor

STINNER Victor added the comment:

Ping myself, I just installed Fedora 19 and I cannot run the Python test suite 
with the ASCII locale encoding, because of this bug.

--

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



[issue17221] Resort Misc/NEWS

2013-10-18 Thread Serhiy Storchaka

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


--
stage: commit review - committed/rejected
status: open - closed

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



[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-18 Thread Guido van Rossum

Guido van Rossum added the comment:

@Koobs: I'll look into these, but in the future it's better to report bugs 
upstream for now, i.e. at http://code.google.com/p/tulip/ -- they will get my 
immediate attention.

@Antoine: while most of the timing-related tests use a simulated clock, there 
are still some that must use real time. I'll fix them as needed.

--

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



[issue19216] stat cache for import bootstrap

2013-10-18 Thread Brett Cannon

Changes by Brett Cannon br...@python.org:


--
assignee: brett.cannon - 

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



[issue18810] Stop doing stat calls in importlib.machinery.FileFinder to see if something is a file or folder

2013-10-18 Thread Brett Cannon

Changes by Brett Cannon br...@python.org:


--
assignee:  - brett.cannon

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



[issue19279] UTF-7 to UTF-8 decoding crash

2013-10-18 Thread Barry A. Warsaw

Barry A. Warsaw added the comment:

2.6.9 doesn't produce a SystemError afaict:

Python 2.6.9rc1+ (unknown, Oct 18 2013, 10:29:22) 
[GCC 4.4.3] on linux3
Type help, copyright, credits or license for more information.
 content = b'+1911\' rel=\'stylesheet\' type=\'text/css\' /\nlink 
 rel=alternate type=application/rss+xml'
 content.decode(utf-7, replace)
u'\ud7dd\ufffd rel=\'stylesheet\' type=\'text\ufffdcss\' \ufffd\nlink 
rel=alternate type=application\ufffdrss\uc669\ufffd'

--

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



[issue19279] UTF-7 to UTF-8 decoding crash

2013-10-18 Thread Barry A. Warsaw

Barry A. Warsaw added the comment:

On Oct 18, 2013, at 02:33 PM, Barry A. Warsaw wrote:

2.6.9 doesn't produce a SystemError afaict:

Please note that 2.6.9 is security only, so the threshold for worrying about
things is a remotely exploitable security vulnerability that cannot be
reasonably worked around in Python code.

--

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



[issue12837] Patch for issue #12810 removed a valid check on socket ancillary data

2013-10-18 Thread Brett Cannon

Brett Cannon added the comment:

Attached is a patch that silences the warning for just the 'if' statement under 
Clang using pragmas. I don't know if we have ever had it out on python-dev on 
our view of using pragmas, but this seems like a reasonable place to use it.

--
Added file: http://bugs.python.org/file32206/pragma.diff

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



[issue19279] UTF-7 to UTF-8 decoding crash

2013-10-18 Thread Barry A. Warsaw

Changes by Barry A. Warsaw ba...@python.org:


--
versions:  -Python 2.6

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



[issue19280] Add a datatype to represent mime types to the email module

2013-10-18 Thread Antoine Pitrou

Antoine Pitrou added the comment:

I don't know much about the email module, but FWIW I think str subclasses (or 
any subclass of built-in types) are a delicate thing to expose in an API. I 
think a namedtuple would be the more idiomatic choice here (perhaps with an 
appropriate __str__ for convenient conversion / %-formatting / {}-formatting).

--
nosy: +pitrou

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



[issue16803] Make test_import test_importlib run tests under both _frozen_importlib and importlib._bootstrap

2013-10-18 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 9d96a3163dbf by Brett Cannon in branch 'default':
Issue #16803: test.test_importlib.test_api now runs under frozen and
http://hg.python.org/cpython/rev/9d96a3163dbf

--

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



[issue13405] Add DTrace probes

2013-10-18 Thread Antoine Pitrou

Antoine Pitrou added the comment:

 antoine, is it possible test/pass --with-dtrace on a buildbot without
 including it in the master build configuration?
 
 If not, I'm happy to create a special (dedicated) slave for Jesús so
 he can continue to test his branch at leisure without messing up the
 existing slave configurations.

If it's just for Jesus, perhaps it's easier to give him dedicated ssh
access to the machine :-) Buildbots are really meant to regression-test
CPython, not offer workspaces to developers (I mean, the latter would
be cool, but the current manual management of buildbots doesn't make it
very workable).

--

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



[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-18 Thread Guido van Rossum

Guido van Rossum added the comment:

I fixed the easy one (the expected delay in test_call_later). I could use some 
hands with the rest -- I suspect there are similar race conditions.

I'm tracking this now in http://code.google.com/p/tulip/issues/detail?id=75

--

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



[issue19274] make zipfile.PyZipFile more usable

2013-10-18 Thread Christian Tismer

Christian Tismer added the comment:

Hi Georg,
So do you think it is ok this way?
I was not sure if extending the function with an optional
arg is ok, or if a method to configure PyZipFile would be better.
At the moment I just needed the simple functionality.
Should it maybe get a regex like compileall.py ?

And a general question:
What is the right constraint for a filter function?
As I wrote it, returning nothing would simply be treated as False.
Maybe it is better to enforce a return value which explicitly forbids
to be just None, which often just means I forgot the return value ?

About feature or fix: Well, I need this for python2.7, because without
it, the whole purpose of PyZipFile is pretty questionable. I might argue
it a fix, because it crashes on the standard library ;-)

Anyway, tell me and I'l add test, docs and put it into dev.

cheers - chris

--

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



[issue16662] load_tests not invoked in package/__init__.py

2013-10-18 Thread Barry A. Warsaw

Barry A. Warsaw added the comment:

The failure in test_discovery.py is odd.  It's failing because 
loadTestsFromModule() is being passed a keyword arguemnt use_load_tests=False.

On the surface, the failure makes sense because if you look in 
test_discover.py, it's defining a lambda for loader.loadTestsFromModule that 
takes only one argument, the module name.

But the deeper question is why self.loadTestsFromModule() is being passed 
use_load_tests=False?  loadTestsFromModule() is documented to take *only* the 
module name:

http://docs.python.org/3/library/unittest.html#unittest.TestLoader.loadTestsFromModule

But then if you look at loader.py, loadTestsFromModule does indeed take an 
undocumented use_load_tests keyword argument.

So it seems like there's two problems here.  use_load_tests is undocumented, 
and the lambda in test_discovery.py should take that keyword argument.  
Michael, can you weigh in on this?

--

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



[issue16662] load_tests not invoked in package/__init__.py

2013-10-18 Thread Barry A. Warsaw

Barry A. Warsaw added the comment:

On the second failure, the expected output just needs to be updated.  Is that 
the right thing to do?

--

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



[issue18606] Add statistics module to standard library

2013-10-18 Thread Steven D'Aprano

Steven D'Aprano added the comment:

Here is the updated version which I hope is not too late for alpha 4. Main 
changes:

* sum is now private

* docstrings have been simplified and shrunk somewhat

* I have a draft .rst file, however I'm having trouble getting Sphinx working 
on my system and I have no idea whether the reST is working.

--
Added file: http://bugs.python.org/file32207/statistics.patch

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



[issue19276] test_wave failing on PPC64 Linux

2013-10-18 Thread David Edelsohn

David Edelsohn added the comment:

Thanks!

--

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



[issue16662] load_tests not invoked in package/__init__.py

2013-10-18 Thread Michael Foord

Michael Foord added the comment:

use_load_tests was deliberately undocumented. IIRC it only exists to allow us 
to load tests from a package module (__init__.py) without invoking load_tests - 
it maybe that it can just go away altogether now. 

I'll need to look at the code to confirm.

--

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



[issue19274] make zipfile.PyZipFile more usable

2013-10-18 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I don't think this is needed. You can walk a tree and call writepy() for files 
and directories which you want.

--
nosy: +serhiy.storchaka

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



[issue18416] Move to absolute file paths for module.__file__

2013-10-18 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 76184b5339f2 by Brett Cannon in branch 'default':
Issue #18416: Have importlib.machinery.PathFinder treat '' as the cwd
http://hg.python.org/cpython/rev/76184b5339f2

--
nosy: +python-dev

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



[issue18416] Move to absolute file paths for module.__file__

2013-10-18 Thread Brett Cannon

Brett Cannon added the comment:

I went with option 1 (changed PathFinder to consider '' the cwd) which allowed 
me to flat-out remove the special-casing for '' in FileFinder.

Thanks for the initial patch, Madison!

--
resolution:  - fixed
stage: test needed - committed/rejected
status: open - closed

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



[issue19170] telnetlib: use selectors

2013-10-18 Thread Charles-François Natali

Changes by Charles-François Natali cf.nat...@gmail.com:


--
nosy: +haypo, pitrou

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



[issue18716] Deprecate the formatter module

2013-10-18 Thread Brett Cannon

Brett Cannon added the comment:

Documented in f1fde6ef92e2

--
status: open - closed

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



[issue19274] make zipfile.PyZipFile more usable

2013-10-18 Thread Christian Tismer

Christian Tismer added the comment:

@serhiy.storchaka

 I don't think this is needed. You can walk a tree and call writepy()
 for files and directories which you want.

What exactly do mean by this and needed?
I cannot see the connection of my initial post and your reply.

Running PyZipFile on a package dir of the standard lib _does_ traverse
the tree, and there is no way to stop it from doing that.
That was the whole point of the issue.
Please correct me if I'm missing something.

--

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



[issue18416] Move to absolute file paths for module.__file__

2013-10-18 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 33844153cd02 by Brett Cannon in branch 'default':
Issue #18416: Fix various os calls in importlib.machinery.FileFinder
http://hg.python.org/cpython/rev/33844153cd02

--

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



[issue18606] Add statistics module to standard library

2013-10-18 Thread Georg Brandl

Georg Brandl added the comment:

The rst file is missing from your patch.

I already posted a patch with statistics.rst five days ago.  I have no idea why 
you ignored it.

--

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



[issue19274] make zipfile.PyZipFile more usable

2013-10-18 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

this is a filter function. Not needed means that you can got what you want 
without adding a filter function to zipfile.PyZipFile. Just don't call 
writepy() on directories which contains files which shouldn't be zipped.

--

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



[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-18 Thread Stefan Krah

Stefan Krah added the comment:

The --without-threads buildbot fails, so I guess all tests need to be
skipped in that case:

http://buildbot.python.org/all/builders/AMD64%20Fedora%20without%20threads%203.x/builds/5333/steps/test/logs/stdio

--
nosy: +skrah

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



[issue19229] operator.py: move the Python implementation in the else block of try/except ImportError

2013-10-18 Thread Zachary Ware

Changes by Zachary Ware zachary.w...@gmail.com:


--
nosy: +zach.ware

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



[issue19259] Provide Python implementation of operator.compare_digest()

2013-10-18 Thread Zachary Ware

Zachary Ware added the comment:

Oops, forgot to provide the [1] link...

[1] https://mail.python.org/pipermail/python-dev/2013-October/129477.html

--

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



[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-18 Thread Guido van Rossum

Guido van Rossum added the comment:

Maybe adding something that returns [] from suite() if therea re no threads in 
test/test_asyncio/__init__.py would help?  I don't have time to test this, but 
go ahead and commit something if it's a release blocker.

Even better would or course be to fix asyncio to actually work if there are no 
threads -- the only issue is what to do about run_in_executor(), I guess it 
will have to run the function in-line...

--

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



[issue18810] Stop doing stat calls in importlib.machinery.FileFinder to see if something is a file or folder

2013-10-18 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 11f2f4af1979 by Brett Cannon in branch 'default':
Issue #18810: Be optimistic with stat calls when seeing if a directory
http://hg.python.org/cpython/rev/11f2f4af1979

--
nosy: +python-dev

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



[issue18810] Stop doing stat calls in importlib.machinery.FileFinder to see if something is a file or folder

2013-10-18 Thread Brett Cannon

Brett Cannon added the comment:

The directory savings has actually been handled w/o semantics changes; in the 
last commit for this issue.

The possibility of leaning on file extensions has been asked on python-dev. 
Once that is resolved then this issue will either get another commit or simply 
be closed.

--

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



[issue18606] Add statistics module to standard library

2013-10-18 Thread Steven D'Aprano

Steven D'Aprano added the comment:

Georg Brandl wrote:
 The rst file is missing from your patch.

Oops! Sorry about that. Fixed now.

 I already posted a patch with statistics.rst five days ago.  
 I have no idea why you ignored it.

I'm sorry if I stepped on your toes, but I didn't ignore your patch. If I've 
failed to follow the right procedure, it is due to inexperience, not malice. 
You yourself suggested it was only a temporary version just good enough to get 
the module committed, and in any case, it was already out of date since I've 
made sum private.

--
Added file: http://bugs.python.org/file32208/statistics.patch

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



[issue17759] test_urllibnet.test_bad_address() fails on Ubuntu 13.04

2013-10-18 Thread Barry A. Warsaw

Barry A. Warsaw added the comment:

I'm going to close this as invalid:

Python 3.3.2+ (3.3:247344a0d12e, Oct 18 2013, 13:14:59) 
[GCC 4.8.1] on linux
Type help, copyright, credits or license for more information.
 from socket import *
 gethostbyname('in.val.id')
Traceback (most recent call last):
  File stdin, line 1, in module
socket.gaierror: [Errno -5] No address associated with hostname

Same goes for 2.7 and 3.4.

--

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



[issue18810] Stop doing stat calls in importlib.machinery.FileFinder to see if something is a file or folder

2013-10-18 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 9895a9c20e8a by Brett Cannon in branch 'default':
Add NEWS entry for issue #18810
http://hg.python.org/cpython/rev/9895a9c20e8a

--

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



[issue19274] make zipfile.PyZipFile more usable

2013-10-18 Thread Christian Tismer

Christian Tismer added the comment:

Ah, I understand:

The case that does not compile comes from the toplevel test folder,
which I could have excluded explicitly.

But it is not a complete solution:
If I want to add every package from the standard lib, then I necessarily
encounter enclosed test folders, for instance:

Lib/unittest

contains

Lib/unittest/test

Your hint to just not call writepy() on directories which contain files
which shouldn't be zipped means that I cannot use writepy at all,
because many library packages contain tests.
But that is the only purpose of class PyZipFile, therefore the patch.

--

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



[issue19259] Provide Python implementation of operator.compare_digest()

2013-10-18 Thread Zachary Ware

Zachary Ware added the comment:

Even after reading through #15061, I still wonder why _compare_digest is in 
_operator at all.  It makes even less sense to me to put a Python 
implementation in operator; shouldn't the Python implementation be in the 
module that actually uses it?

Branching from the recent discussion[1] about where to place a PBKDF2 wrapper, 
it would make the most sense to me to move hmac into hashlib as suggested and 
move _compare_digest into hashlib's C somewhere.

For the record, the reason I didn't try to implement a _compare_digest in 
operator.py in the first place was because #15061 made it pretty clear that 
operator.c was just a convenient place to stick the function, not that it was 
supposed to actually be part of the operator module.

--
nosy: +zach.ware

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



[issue17759] test_urllibnet.test_bad_address() fails on Ubuntu 13.04

2013-10-18 Thread Barry A. Warsaw

Changes by Barry A. Warsaw ba...@python.org:


--
resolution:  - invalid
status: open - closed

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



[issue8964] platform._sys_version does not parse correctly IronPython 2.x version

2013-10-18 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
nosy: +ezio.melotti

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



[issue16612] Integrate Argument Clinic into CPython trunk

2013-10-18 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

This is awesome!

Clinic adds too much visual garbage. Could we move all generated content into 
separated *_clinic.h files?

--

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



[issue19285] test_asyncio failures on FreeBSD

2013-10-18 Thread Stefan Krah

New submission from Stefan Krah:

I'm splitting this off of #19262, since certain failures (hanging for
one hour) remind me of #15599, which is an issue of epic proportions.

Also it should not be a release blocker, since threading failures under
FreeBSD-9 (running under KVM!) aren't uncommon.

--
keywords: buildbot
messages: 200294
nosy: gvanrossum, koobs, pitrou, skrah
priority: normal
severity: normal
stage: needs patch
status: open
title: test_asyncio failures on FreeBSD
type: behavior
versions: Python 3.4

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



  1   2   3   >