[issue13290] get vars for object with __slots__

2012-10-05 Thread Michele Orrù

Michele Orrù added the comment:

As a reference, linking the discussion on python-dev. 
http://mail.python.org/pipermail/python-dev/2012-October/122011.html

--

___
Python tracker 

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



[issue16146] MIMEApplication cannot access

2012-10-05 Thread R. David Murray

R. David Murray added the comment:

Ah, I'd forgotten python2 email used the lazy importer.  We dropped that in 
python3.

I don't think that I want to fix this, since you have to do the import in 
python3 anyway.

--
components: +email
nosy: +barry

___
Python tracker 

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



[issue16146] MIMEApplication cannot access

2012-10-05 Thread Yinian Sun

Yinian Sun added the comment:

These MIME except MIMEApplication can be directly accessed.

>>> import email
>>> email.mime.Text

>>> email.mime.Application
Traceback (most recent call last):
  File "", line 1, in 
AttributeError: 'module' object has no attribute 'Application'

According to Lib\email\__init__.py, it uses LazyImporter to deal with name 
mapping from new-style names to old-style name, and the _MIMENAMES list just 
doesn't include 'Application'. This causes the behavior inconformity. As 
issue1424065, the MIMEApplication added after other MIME class.

--

___
Python tracker 

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



[issue14668] Document the path option in the Windows installer

2012-10-05 Thread Ezio Melotti

Ezio Melotti added the comment:

Brian, can this be closed?

--
nosy: +ezio.melotti

___
Python tracker 

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



[issue8109] Server-side support for TLS Server Name Indication extension

2012-10-05 Thread danblack

danblack added the comment:

happy with this?

I'm not sure what i've done to make s._set_context(newctx) work but s.context = 
newctx fail. I though the code here 
http://bugs.python.org/review/8109/diff2/5815:5989/Lib/ssl.py effectively maps 
them.

--

___
Python tracker 

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



[issue15837] Added test to test_random.py testing Random.shuffle

2012-10-05 Thread Ezio Melotti

Ezio Melotti added the comment:

I left a review on rietveld.

FWIW these are the results of the tests using timeit:

# with int=int
$ ./python -m timeit -s 'from random import random, shuffle; lst = 
list(range(10))'  'shuffle(lst, random)'
10 loops, best of 3: 507 msec per loop

# without int=int
$ ./python -m timeit -s 'from random import random, shuffle; lst = 
list(range(10))'  'shuffle(lst, random)'
10 loops, best of 3: 539 msec per loop

--
nosy: +ezio.melotti

___
Python tracker 

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



[issue16098] Bisect optimization in heapq.nsmallest is never used

2012-10-05 Thread Jesús Cea Avión

Changes by Jesús Cea Avión :


--
nosy: +jcea

___
Python tracker 

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



[issue2091] file accepts 'rU+' as a mode

2012-10-05 Thread Ezio Melotti

Changes by Ezio Melotti :


--
versions: +Python 3.3, Python 3.4 -Python 3.1

___
Python tracker 

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



[issue13633] Handling of hex character references in HTMLParser.handle_charref

2012-10-05 Thread Ezio Melotti

Changes by Ezio Melotti :


--
versions: +Python 3.4 -Python 2.7, Python 3.2, Python 3.3

___
Python tracker 

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



[issue8912] `make patchcheck` should check the whitespace of .c/.h files

2012-10-05 Thread Ezio Melotti

Changes by Ezio Melotti :


--
nosy: +ezio.melotti
versions: +Python 3.3, Python 3.4

___
Python tracker 

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



[issue812369] module shutdown procedure based on GC

2012-10-05 Thread Neil Schemenauer

Neil Schemenauer added the comment:

It's been quite a long time since I played with this patch so my memory might 
be a bit fuzzy.  As I recall, it sounds good in theory but in practice it 
doesn't really work.  One of the core problems is that many extension modules 
keep references to Python objects in global or static variables.  These 
references keep pretty much everything alive and prevent GC cleanup of modules.

So, a necessary condition to this working is to get rid of those references and 
use the new module struct facility introduced by Martin.  That would be a huge 
amount of work but I think should be the long term goal.

--

___
Python tracker 

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



[issue15631] Python 3.3/3.4 installation issue on OpenSUSE lib/lib64 folders

2012-10-05 Thread Skip Montanaro

Skip Montanaro added the comment:

I applied the OpenSUSE patch to the current cpython tip (3.4a0), rebuilt, then 
reinstalled.  I verified that sys.path contains directories which contain 
"lib64".  I can import the time module now, which failed before applying the 
patch.

The patch didn't apply perfectly (two chunks were slightly offset), so I 
generated a new patch, which is attached.

It's been awhile since I did anything with bug reports.  I tweaked a few 
fields.  Let me know if I muffed anything.

--
keywords: +patch
nosy: +skip.montanaro
stage:  -> patch review
title: Python 3.3 beta 1 installation issue lib/lib64 folders -> Python 3.3/3.4 
installation issue  on OpenSUSE lib/lib64 folders
versions: +Python 3.4
Added file: http://bugs.python.org/file27445/opensuse.diff

___
Python tracker 

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



[issue16136] Removal of VMS support

2012-10-05 Thread Jesús Cea Avión

Jesús Cea Avión added the comment:

: host smtp.hp.com[15.193.32.72] said: 550 5.1.1
: Recipient address rejected: User unknown in
virtual alias table (in reply to RCPT TO command)

Looks like he is not in HP anymore. Searching in linkedin I think I have found 
him. Lets try that route.

--

___
Python tracker 

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



[issue16136] Removal of VMS support

2012-10-05 Thread Jesús Cea Avión

Jesús Cea Avión added the comment:

I am sending an email to Mathew Sandeep. Lets see...

--

___
Python tracker 

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



[issue16145] Abort in _csv module

2012-10-05 Thread Roger Binns

Roger Binns added the comment:

(APSW author here).  I haven't ported to the new Python 3.3 Unicode handling 
yet but it is on my todo list.  The PEPs and doc said the C API would remain 
backwards compatible.  The APSW code supports Python 2.3 onwards.

SQLite APIs support both UTF-8 and UTF-16.  Py_UNICODE_SIZE is used to select 
between two code paths - if 2 then the UTF-16 APIs are used and if 4 then a 
UTF-8 conversion is made and those APIs used.  Python 3.3 makes Py_UNICODE_SIZE 
meaningless and will be quite a bit of work to integrate as a third branch.

It should be noted that at no point is there any dependence of the underlying 
bytes/pointer living a long time.  They are only used at the point which data 
needs to be transferred between Python types and SQLite APIs (both ways) and 
not held outside of that period.

--

___
Python tracker 

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



[issue16133] asyncore.dispatcher.recv doesn't handle EAGAIN / EWOULDBLOCK

2012-10-05 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 6a1d8e78b23d by Christian Heimes in branch 'default':
Issue #16133: add Windows project file for _sha3 module. I choose to build 
_sha3 as a sparat module as it's rather large (190k for AMD64).
http://hg.python.org/cpython/rev/6a1d8e78b23d

--
nosy: +python-dev

___
Python tracker 

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



[issue13896] Make shelf instances work with 'with' as context managers

2012-10-05 Thread Filip Gruszczyński

Filip Gruszczyński added the comment:

Crap, it was so long ago, that I honestly don't remember why I added this if. 
It made sense back then.

--

___
Python tracker 

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



[issue16113] Add SHA-3 (Keccak) support

2012-10-05 Thread Christian Heimes

Christian Heimes added the comment:

The code has landed in default. Let's see how the build bots like my patch and 
the reference implementation.

--
stage: patch review -> commit review

___
Python tracker 

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



[issue16113] Add SHA-3 (Keccak) support

2012-10-05 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 11c9a894680e by Christian Heimes in branch 'default':
Issue #16113: integrade SHA-3 (Keccak) patch from 
http://hg.python.org/sandbox/cheimes
http://hg.python.org/cpython/rev/11c9a894680e

--
nosy: +python-dev

___
Python tracker 

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



[issue3754] cross-compilation support for python build

2012-10-05 Thread Roumen Petrov

Roumen Petrov added the comment:

Hi Václav,
uploaded file py3k-20121004-CROSS.tgz contain current status of patch extracted 
as is from my repository, i.e. on small chunks. I have no idea what is in 3.3.0 
.

--
Added file: http://bugs.python.org/file27444/py3k-20121004-CROSS.tgz

___
Python tracker 

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



[issue15833] most failures to write byte-compiled file no longer suppressed

2012-10-05 Thread Roumen Petrov

Roumen Petrov added the comment:

Did 0016-CROSS-reload-may-fail-with-operation-on-closed-file-.patch fix issue ?

--
keywords: +patch
nosy: +rpetrov
Added file: 
http://bugs.python.org/file27443/0016-CROSS-reload-may-fail-with-operation-on-closed-file-.patch

___
Python tracker 

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



[issue12067] Doc: remove errors about mixed-type comparisons.

2012-10-05 Thread Mike Hoy

Changes by Mike Hoy :


--
hgrepos:  -153

___
Python tracker 

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



[issue16145] Abort in _csv module

2012-10-05 Thread STINNER Victor

STINNER Victor added the comment:

"In general APSW does not look ready for the Python 3.3 Unicode implementation."

I bet that most Python modules implemented in C use the "legacy" (old) Unicode 
API (Py_UNICODE*). Python 3.3 must call PyUnicode_READY() everywhere (where the 
new API is used to get attribute of a string, ex: PyUnicode_GET_LENGTH).

--

___
Python tracker 

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



[issue16145] Abort in _csv module

2012-10-05 Thread STINNER Victor

STINNER Victor added the comment:

"I think we need to add a couple of PyUnicode_READY() to some functions in 
Modules/_csv.c."

Oh yes, the _csv module was in my TODO list. I forgot to fix it :-/

--
nosy: +haypo

___
Python tracker 

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



[issue16113] Add SHA-3 (Keccak) support

2012-10-05 Thread Gregory P. Smith

Gregory P. Smith added the comment:

don't worry about optimization settings in python itself for now.  the 
canonical optimized version will be in a future openssl version.  now that it 
has been declared the standard it will get a *lot* more attention in the next 
few years.

as it is, we _may_ want to replace this reference implementation with one from 
libtomcrypt in the future when it gets around to implementing it just so that 
the code for all of our bundled hash functions comes from the same place.

--

___
Python tracker 

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



[issue16145] Abort in _csv module

2012-10-05 Thread Stefan Krah

Stefan Krah added the comment:

David is right, the existing (APSW) code should continue to work.
I think we need to add a couple of PyUnicode_READY() to some
functions in Modules/_csv.c.

--

___
Python tracker 

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



[issue16134] Add support for RTMP schemes to urlparse

2012-10-05 Thread Gregory P. Smith

Changes by Gregory P. Smith :


--
assignee:  -> gregory.p.smith
nosy: +gregory.p.smith

___
Python tracker 

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



[issue16137] Using time.asctime() with an array with negative tm_hour causes Python Crash.

2012-10-05 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

No, it's you found (msg172016) the correct issue. ;)

--

___
Python tracker 

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



[issue16147] Rewrite PyUnicode_FromFormatV() to use the _PyUnicodeWriter API

2012-10-05 Thread STINNER Victor

STINNER Victor added the comment:

"Split PyUnicode_FromFormatV() into smaller functions: add 
unicode_fromformat_arg(). It requires to copy vargs using Py_VA_COPY: without 
Py_VA_COPY, the function does crash. I don't understand why."

Ok, here is the answer.
http://stackoverflow.com/questions/8047362/is-gcc-mishandling-a-pointer-to-a-va-list-passed-to-a-function

In short: va_list can be an array (of 1 element) on some platforms (ex: AMD64).

--

___
Python tracker 

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



[issue12067] Doc: remove errors about mixed-type comparisons.

2012-10-05 Thread Mike Hoy

Mike Hoy added the comment:

Changed patch to include suggestions by Chris Jerdonek.

http://bugs.python.org/issue12067#msg170953

--
hgrepos: +153
Added file: http://bugs.python.org/file27442/issue12067-expressions_v2.diff

___
Python tracker 

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



[issue16137] Using time.asctime() with an array with negative tm_hour causes Python Crash.

2012-10-05 Thread R. David Murray

R. David Murray added the comment:

Ah, looks like Serhiy found the correct issue.

--

___
Python tracker 

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



[issue16137] Using time.asctime() with an array with negative tm_hour causes Python Crash.

2012-10-05 Thread R. David Murray

R. David Murray added the comment:

This sounds like Issue 10814, but that was supposedly fixed.

--

___
Python tracker 

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



[issue16137] Using time.asctime() with an array with negative tm_hour causes Python Crash.

2012-10-05 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Yes, it looks as issue8013. Fix was not applied to 2.7.

--

___
Python tracker 

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



[issue16113] Add SHA-3 (Keccak) support

2012-10-05 Thread Christian Heimes

Christian Heimes added the comment:

New patch. I've removed the dependency on uint64 types. On platforms without a 
uint64 type the module is using the 32bit implementation with interleave tables.

By the way the SSE / SIMD instructions aren't useful. They are two to four 
times slower.

--

___
Python tracker 

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



[issue16113] Add SHA-3 (Keccak) support

2012-10-05 Thread Christian Heimes

Changes by Christian Heimes :


Added file: http://bugs.python.org/file27441/521e85a613bf.diff

___
Python tracker 

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



[issue16113] Add SHA-3 (Keccak) support

2012-10-05 Thread Christian Heimes

Changes by Christian Heimes :


Removed file: http://bugs.python.org/file27438/622009fb6192.diff

___
Python tracker 

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



[issue16113] Add SHA-3 (Keccak) support

2012-10-05 Thread Christian Heimes

Changes by Christian Heimes :


Removed file: http://bugs.python.org/file27431/49a949116245.diff

___
Python tracker 

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



[issue16113] Add SHA-3 (Keccak) support

2012-10-05 Thread Christian Heimes

Changes by Christian Heimes :


Removed file: http://bugs.python.org/file27426/44920b1d9db1.diff

___
Python tracker 

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



[issue16145] Abort in _csv module

2012-10-05 Thread Stefan Krah

Stefan Krah added the comment:

R. David Murray  wrote:
> My understanding was that code that calls the public APIs should continue to
> work. Is this a new requirement in 3.3, or is it that it has always been a
> requirement but code could get away without the ready before?  

It's a new requirement.

> Either way we need to add an note to the Porting section of What's New.

Good point. The main hint I find is here:

http://docs.python.org/py3k/whatsnew/3.3.html#deprecated-functions-and-types-of-the-c-api

But you have to click through to:

http://docs.python.org/py3k/c-api/unicode.html#PyUnicode_FromUnicode

PEP 393 on the other hand has this paragraph:

"Extension modules using the legacy API may inadvertently call PyUnicode_READY,
 by calling some API that requires that the object is ready, and then continue
 accessing the (now invalid) Py_UNICODE pointer. Such code will break with this
 PEP. The code was already flawed in 3.2, as there is was no explicit guarantee
 that the PyUnicode_AS_UNICODE result would stay valid after an API call (due
 to the possibility of string resizing). Modules that face this issue need to
 re-fetch the Py_UNICODE pointer after API calls; doing so will continue to
 work correctly in earlier Python versions."

--

___
Python tracker 

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



[issue16137] Using time.asctime() with an array with negative tm_hour causes Python Crash.

2012-10-05 Thread Viktor Chynarov

Viktor Chynarov added the comment:

Serhiy, when I use a large number, Python also crashes.

>>> initial_struct_time = [tm for tm in time.localtime()]
>>> initial_struct_time[3] = 101
>>> faulty_time = time.asctime(initial_struct_time)

The above code leads to crash.

My Python version information and computer architecture are shown below:
Python 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit (AMD64)] on 
win32

--

___
Python tracker 

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



[issue16145] Abort in _csv module

2012-10-05 Thread R. David Murray

R. David Murray added the comment:

I'm going to reopen this at least until we have more information.

--
resolution: invalid -> 
stage: committed/rejected -> needs patch
status: closed -> open
type:  -> behavior

___
Python tracker 

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



[issue16145] Abort in _csv module

2012-10-05 Thread Arfrever Frehtes Taifersar Arahesis

Arfrever Frehtes Taifersar Arahesis added the comment:

Apparently 
http://docs.python.org/py3k/whatsnew/3.3.html#pep-393-flexible-string-representation
 says:
"On the C API side, PEP 393 is fully backward compatible."

--

___
Python tracker 

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



[issue16145] Abort in _csv module

2012-10-05 Thread R. David Murray

R. David Murray added the comment:

My understanding was that code that calls the public APIs should continue to 
work.  Is this a new requirement in 3.3, or is it that it has always been a 
requirement but code could get away without the ready before?  

Either way we need to add an note to the Porting section of What's New.

--
nosy: +r.david.murray

___
Python tracker 

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



[issue16147] Rewrite PyUnicode_FromFormatV() to use the _PyUnicodeWriter API

2012-10-05 Thread STINNER Victor

New submission from STINNER Victor:

Attached patch rewrites PyUnicode_FromFormatV():
 * simplify the code: replace 4 steps with one unique step. PyUnicode_Format() 
has the same design. It avoids to store intermediate results which require to 
allocate an array of pointers in the heap.
 * use the _PyUnicodeWriter API for speed (and its convinient API): 
overallocate the buffer to reduce the number of "realloc()"
 * Implement "width" and "precision" in Python, don't rely on sprintf(). It 
avoids to need of a temporary buffer allocated on the heap: only use a small 
buffer allocated in the stack.
 * Detect integer overflow when parsing width and precision, as done in 
PyUnicode_Format()
 * Add _PyUnicodeWriter_WriteCstr() function
 * Split PyUnicode_FromFormatV() into smaller functions: add 
unicode_fromformat_arg(). It requires to copy vargs using Py_VA_COPY: without 
Py_VA_COPY, the function does crash. I don't understand why.
 * Inline parse_format_flags(): the format of an argument is now only parsed 
once, it's no more needed to have a subfunction.
 * Optimize PyUnicode_FromFormatV() for characters between two arguments: 
search the next "%" and copy the substring in one chunk, instead of copying 
character per character.
 * Replace "prec too big" with "precision too big" in error messages

_tescapi.test_string_from_format() is 20% faster with the patch according to 
timeit. I don't know how to write better benchmarks because PyUnicode_FromV() 
is not exposed in Python. I wrote a benchmark using ctypes to call the 
function, but it looks like the ctypes overhead is too high.

I wrote the patch to simplify the code, but it may be faster thanks to the 
_PyUnicodeWriter API and some optimizations implemented in the patch.

--
files: unicode_fromformat.patch
keywords: patch
messages: 172138
nosy: haypo
priority: normal
severity: normal
status: open
title: Rewrite PyUnicode_FromFormatV() to use the _PyUnicodeWriter API
type: performance
versions: Python 3.4
Added file: http://bugs.python.org/file27440/unicode_fromformat.patch

___
Python tracker 

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



[issue16145] Abort in _csv module

2012-10-05 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Oh, I see the issue has already been solved.

--

___
Python tracker 

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



[issue16114] incorrect path in subprocess.Popen() FileNotFoundError message

2012-10-05 Thread Andrew Svetlov

Andrew Svetlov added the comment:

I'm ok with your patch if it will be applied to 3.2 etc and after that new 
issue will fix Windows problem.
BTW, the patch fails for 3.2 and 3.3 but works for 3.4

--

___
Python tracker 

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



[issue16145] Abort in _csv module

2012-10-05 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

How do you get values to write? Most likely, the problem has nothing to do with 
csv module, but written values are broken. Possible error in sqlite module, or 
in any conversion function, or in you APSW C-code. Can you dump this values 
before sending to writerow?

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue16119] Python 2.7 _socket DLL import error on Windows Vista

2012-10-05 Thread Spiros K.

Changes by Spiros K. :


--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue16145] Abort in _csv module

2012-10-05 Thread Stefan Krah

Stefan Krah added the comment:

In general APSW does not look ready for the Python 3.3 Unicode
implementation. Example: src/statementcache.c:217

Py_UNICODE *out;
PyObject *res=PyUnicode_FromUnicode(NULL, size);


Python 3.3 docs:

"If the buffer is NULL, PyUnicode_READY() must be called once the string 
content has been filled before using any of the access macros such as 
PyUnicode_KIND()."


The abort() in the traceback occurs precisely because PyUnicode_READY()
hasn't been called, so I'm closing this as invalid.

--
nosy: +skrah
resolution:  -> invalid
stage:  -> committed/rejected
status: open -> closed

___
Python tracker 

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



[issue16115] test that executable arg to Popen() takes precedence over args[0] arg

2012-10-05 Thread Chris Jerdonek

Chris Jerdonek added the comment:

Thanks, Andrew.  I'm hoping to finish preparing the patch sometime this weekend.

--

___
Python tracker 

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



[issue16115] test that executable arg to Popen() takes precedence over args[0] arg

2012-10-05 Thread Andrew Svetlov

Andrew Svetlov added the comment:

ok, it will be better.

--

___
Python tracker 

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



[issue16146] MIMEApplication cannot access

2012-10-05 Thread R. David Murray

R. David Murray added the comment:

This is by design.  If you want to load the application module, you have to do 
so explicitly:

  import email.mime.application

This is similar to the way many other packages are organized.  An __init__ file 
importing a submodule is the (relatively) exceptional case rather than the 
common case.  This is so that applications that do not need particular 
submodules do not incur the performance and memory hit of importing those 
submodules implicitly.

--
nosy: +r.david.murray
resolution:  -> invalid
stage:  -> committed/rejected
status: open -> closed

___
Python tracker 

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



[issue16145] Abort in _csv module

2012-10-05 Thread Roger Binns

Roger Binns added the comment:

I'm the APSW author.  You do not need SQLite installed - APSW's setup can fetch 
the current SQLite and use it privately not affecting the rest of the system.

An easier way of testing is:

  python3 setup.py fetch --sqlite --version 3.7.14 build_ext --inplace --force

Create test.sql with these contents

  .output output_file
  .mode csv
  select 3, '4';

Then run:

  env PYTHONPATH=. python3 tools/shell.py
  .read test.sql

The actual code where the problem happens does the following:

- Create a StringIO
- Initialize csv.writer using the StringIO
- Write one row with two values (this is when the crash happens in Python 3.3 
on the first write)
- Copy the current contents of the StringIO to the actual output file changing 
encoding as needed
- Truncate StringIO and seek back to offset zero ready for the next line

The relevant code is in tools/shell.py in the output_csv function.  Writing 
just that sequence of code above doesn't result in the assertion.  valgrind 
doesn't show any problems either (using pydebug, without pymalloc and all the 
freelists set to zero).

A stack trace is here:  https://code.google.com/p/apsw/issues/detail?id=132#c4

If not using a debug/nopymalloc build then you get a crash happening later.

--

___
Python tracker 

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



[issue16114] incorrect path in subprocess.Popen() FileNotFoundError message

2012-10-05 Thread Chris Jerdonek

Chris Jerdonek added the comment:

Sorry, I was confusing this issue with issue 15533.  Yes, I support adding the 
file path to the error message in the Windows implementation, though my 
preference would be for that to be addressed as part of a separate issue.

--

___
Python tracker 

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



[issue16114] incorrect path in subprocess.Popen() FileNotFoundError message

2012-10-05 Thread Chris Jerdonek

Chris Jerdonek added the comment:

I will be opening a separate issue to have the same behavior in a future 
version after this issue is closed.  For existing releases, we don't want to 
break working code that could be relying on the difference.

--

___
Python tracker 

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



[issue16115] test that executable arg to Popen() takes precedence over args[0] arg

2012-10-05 Thread Chris Jerdonek

Chris Jerdonek added the comment:

Actually, I was still working on this.  I had assigned it to myself.

+p = subprocess.Popen(["nonexistent","-c",'import sys; sys.exit(42)'],
+executable=sys.executable, cwd=python_dir)

The test for the executable argument should really test the executable argument 
independent of the cwd argument.  Also, it would be better if the test uses a 
valid args[0] to demonstrate precedence.  I had prepared a test but did not 
upload it yet, because I also wanted to add an accompanying clarification to 
the docs which I am still preparing.  Reopening.

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

___
Python tracker 

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



[issue16146] MIMEApplication cannot access

2012-10-05 Thread yinian1992

New submission from yinian1992:

I have a python 2.7.3 installation both on Debian 6 and Windows 7. And under 
both environment email.mime.application cannot access.

>>> email.mime.application
Traceback (most recent call last):
  File "", line 1, in 
AttributeError: 'module' object has no attribute 'application'

It seems that the import list of email module's __init__.py doesn't include it.

--
components: Library (Lib)
files: __init__.patch
keywords: patch
messages: 172126
nosy: yinian1992
priority: normal
severity: normal
status: open
title: MIMEApplication cannot access
versions: Python 2.7
Added file: http://bugs.python.org/file27439/__init__.patch

___
Python tracker 

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



[issue16114] incorrect path in subprocess.Popen() FileNotFoundError message

2012-10-05 Thread Andrew Svetlov

Andrew Svetlov added the comment:

Maybe better to fix Windows behavior for unifying FileNotFoundError?

--

___
Python tracker 

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



[issue16115] test that executable arg to Popen() takes precedence over args[0] arg

2012-10-05 Thread Andrew Svetlov

Changes by Andrew Svetlov :


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

___
Python tracker 

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



[issue16115] test that executable arg to Popen() takes precedence over args[0] arg

2012-10-05 Thread Andrew Svetlov

Andrew Svetlov added the comment:

Committed. Thank you, Kushal Das.
BTW, please fill http://www.python.org/psf/contrib/ as contributor of Python 
project.
We would to get that agreement from everybody who has pushed any patch.
Thanks again.

--

___
Python tracker 

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



[issue16115] test that executable arg to Popen() takes precedence over args[0] arg

2012-10-05 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 0df5aeab229f by Andrew Svetlov in branch '3.3':
Issue #16115: Add test for check that executable arg to Popen() takes 
precedence over args[0] arg\n\n 
   Patch by Kushal Das
http://hg.python.org/cpython/rev/0df5aeab229f

New changeset 0fcfb6066e17 by Andrew Svetlov in branch 'default':
Merge issue #16115: Add test for check that executable arg to Popen() takes 
precedence over args[0] arg\n\n 
   Patch by Kushal Das
http://hg.python.org/cpython/rev/0fcfb6066e17

--
nosy: +python-dev

___
Python tracker 

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



[issue13896] Make shelf instances work with 'with' as context managers

2012-10-05 Thread Andrew Svetlov

Changes by Andrew Svetlov :


--
assignee:  -> asvetlov

___
Python tracker 

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



[issue13896] Make shelf instances work with 'with' as context managers

2012-10-05 Thread Andrew Svetlov

Andrew Svetlov added the comment:

Filip, please describe why you prevent closing if writeback attribute is not 
present.
I see comment for __del__ related to #1339007, but at __exit__ call __enter__ 
has called already and __init__ has finished definitely with success.
Also I would to see reference to http://bugs.python.org/issue1339007 in __del__ 
comment to cleaner description of issue.

--

___
Python tracker 

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



[issue15833] most failures to write byte-compiled file no longer suppressed

2012-10-05 Thread STINNER Victor

STINNER Victor added the comment:

Issue #16139 has been marked as a duplicate of this issue.

--
nosy: +haypo

___
Python tracker 

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



[issue15833] most failures to write byte-compiled file no longer suppressed

2012-10-05 Thread Charles-François Natali

Charles-François Natali added the comment:

We should probably catch all OSErrors, and log a warning in verbose mode, as 
suggested by Antoine.
Catching individual errnos is tedious and error-prone.

--
nosy: +neologix

___
Python tracker 

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



[issue16123] IDLE - deprecate running without a subprocess

2012-10-05 Thread Andrew Svetlov

Andrew Svetlov added the comment:

Change priority to deferred blocker for reminding to remove no-subprocess mode 
in 3.5.

Thanks, Roger.

--
priority: normal -> deferred blocker

___
Python tracker 

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



[issue16139] Python 3.3 fails when starting from read-only FS

2012-10-05 Thread Charles-François Natali

Charles-François Natali added the comment:

> This is more or less a duplicate of #15833

Indeed, closing as duplicate.

--
resolution:  -> duplicate
stage:  -> committed/rejected
status: open -> closed
superseder:  -> most failures to write byte-compiled file no longer suppressed
type: crash -> behavior

___
Python tracker 

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



[issue16123] IDLE - deprecate running without a subprocess

2012-10-05 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 0430986a8c03 by Andrew Svetlov in branch 'default':
Issue #16123: IDLE - deprecate running without a subprocess.
http://hg.python.org/cpython/rev/0430986a8c03

--
nosy: +python-dev

___
Python tracker 

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



[issue14574] SocketServer doesn't handle client disconnects properly

2012-10-05 Thread Charles-François Natali

Charles-François Natali added the comment:

> Are you referring to the comment where I mention ECONNABORTED?  That is a 
> regular unix error (windows version is WSAECONNABORTED).
> This error occurs when the local stack decides to kill the connection, as 
> opposed to ECONNRESET which occurs on account of receiving a RST packet.

Oops, I misread. ECONNABORTED is fine.

> New patch includes documentation change.

LGTM.

> If 2.7 is still in bugfix mode, then this patch could probably be accepted.

I guess so.

--

___
Python tracker 

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



[issue16123] IDLE - deprecate running without a subprocess

2012-10-05 Thread Andrew Svetlov

Andrew Svetlov added the comment:

Looks good for me.

--

___
Python tracker 

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



[issue16145] Abort in _csv module

2012-10-05 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Well, can you try to enable core dumps and get a complete stack trace?

--

___
Python tracker 

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



[issue16113] Add SHA-3 (Keccak) support

2012-10-05 Thread Christian Heimes

Changes by Christian Heimes :


Added file: http://bugs.python.org/file27438/622009fb6192.diff

___
Python tracker 

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



[issue16058] ConfigParser no longer deepcopy compatible in 2.7

2012-10-05 Thread Andrew Svetlov

Andrew Svetlov added the comment:

ConfigParser is not intended to be deep copy-able, at least documentation says 
nothing about it.

--
nosy: +asvetlov, lukasz.langa

___
Python tracker 

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



[issue16128] hashable documentation error

2012-10-05 Thread Andrew Svetlov

Andrew Svetlov added the comment:

Please write what exact text you want to see in documentation.

--
nosy: +asvetlov

___
Python tracker 

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



[issue16124] fcntl_ioctl still not 100% sane with unsigned longs

2012-10-05 Thread Andrew Svetlov

Andrew Svetlov added the comment:

Is it affected for 3.3 and 3.4 also?

--
nosy: +asvetlov
versions: +Python 3.3, Python 3.4

___
Python tracker 

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



[issue16145] Abort in _csv module

2012-10-05 Thread Arfrever Frehtes Taifersar Arahesis

New submission from Arfrever Frehtes Taifersar Arahesis:

Commit f2adbb1065eb introduced abort in _csv module in debug builds in Python 
3.3, when using APSW shell.

(You need to have SQLite >=3.7.14 installed.)

$ cd /tmp
$ wget http://apsw.googlecode.com/files/apsw-3.7.14-r2.zip
$ unzip apsw-3.7.14-r2.zip
$ cd apsw-3.7.14-r2
$ python3.3dm setup.py build
...
$ PYTHONPATH="$(ls -d build/lib*)" python3.3dm tools/shell.py
SQLite version 3.7.14.1 (APSW 3.7.14-r2)
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> .output output_file
sqlite> .mode csv
sqlite> select "a";
python3.3dm: /tmp/cpython/Modules/_csv.c:: join_append: Assertion 
`(((PyASCIIObject*)field)->state.ready)' failed.
Aborted
$ 

In bash shell:
$ PYTHONPATH="$(ls -d build/lib*)" python3.3dm tools/shell.py <<< $'.output 
output_file\n.mode csv\nselect "a";'
python3.3dm: /tmp/cpython/Modules/_csv.c:: join_append: Assertion 
`(((PyASCIIObject*)field)->state.ready)' failed.
Aborted
$

--
keywords: 3.3regression
messages: 172110
nosy: Arfrever, pitrou, rogerbinns
priority: normal
severity: normal
status: open
title: Abort in _csv module
versions: Python 3.3, Python 3.4

___
Python tracker 

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



[issue16123] IDLE - deprecate running without a subprocess

2012-10-05 Thread Roger Serwy

Roger Serwy added the comment:

I agree that a message within the shell would be more informative to the user. 
The _rev1 patch also adds a message to the shell.

--
Added file: http://bugs.python.org/file27437/idle_deprecate_rev1.patch

___
Python tracker 

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



[issue16137] Using time.asctime() with an array with negative tm_hour causes Python Crash.

2012-10-05 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Viktor, what happen when a large positive number (>=100) used as tm_hour?

--
nosy: +serhiy.storchaka

___
Python tracker 

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



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

2012-10-05 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
type:  -> enhancement

___
Python tracker 

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



[issue16098] Bisect optimization in heapq.nsmallest is never used

2012-10-05 Thread Francisco Martín Brugué

Francisco Martín Brugué added the comment:

I've to say that I also ran into that by following coverage numbers and as a 
newbie is not so easy to see what Raymond told. IMHO that information could be 
put as a comment.

Regards

francis

--
nosy: +francismb

___
Python tracker 

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



[issue16144] misleading sentence in reference/import

2012-10-05 Thread Chris Jerdonek

Changes by Chris Jerdonek :


--
nosy: +brett.cannon, ncoghlan

___
Python tracker 

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



[issue812369] module shutdown procedure based on GC

2012-10-05 Thread Martin v . Löwis

Martin v. Löwis added the comment:

At the moment, it's like that the status of the patch needs to be 
reestablished. Does it apply? Does it work? Does the test suite still pass?

--

___
Python tracker 

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



[issue16141] Possible simplification for logging.StreamHandler exception handling

2012-10-05 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
nosy: +vinay.sajip
stage:  -> patch review

___
Python tracker 

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



[issue16144] misleading sentence in reference/import

2012-10-05 Thread Manuel Pégourié-Gonnard

New submission from Manuel Pégourié-Gonnard:

I find the following sentences, from import.rst, section "Finders and loaders", 
misleading: "Python includes a number of default finders and importers. One 
knows how to locate frozen modules, and another knows how to locate built-in 
modules." in that one may think frozen comes before built-in, while the 
converse is true.

Attached is a patch with a hopefully clearer version. While at it, the patch 
also turns into links the references to PEPs in the introduction.

--
assignee: docs@python
components: Documentation
files: import-doc-fixes.patch
keywords: patch
messages: 172105
nosy: docs@python, mpg
priority: normal
severity: normal
status: open
title: misleading sentence in reference/import
versions: Python 3.4
Added file: http://bugs.python.org/file27436/import-doc-fixes.patch

___
Python tracker 

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



[issue16141] Possible simplification for logging.StreamHandler exception handling

2012-10-05 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

> Couldn't this be simplified to the following?

I think this is idiomatic now (since 2.5).

There are some places where similar outdated code used. See the attached patch. 
There are more dubious places in Lib/multiprocessing/managers.py and 
Lib/asyncore.py.

--
keywords: +patch
nosy: +serhiy.storchaka
Added file: http://bugs.python.org/file27435/reraise_keyboard_interrupt.patch

___
Python tracker 

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



[issue10156] Initialization of globals in unicodeobject.c

2012-10-05 Thread Stefan Krah

Stefan Krah added the comment:

See also #16143.

--
versions: +Python 3.3, Python 3.4

___
Python tracker 

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



[issue16143] Building with configure option "--without-doc-strings" crashes first time through PyUnicode_DecodeUTF8Stateful

2012-10-05 Thread Stefan Krah

Stefan Krah added the comment:

Sorry, wrong issue number: Related to #10156.

--

___
Python tracker 

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



[issue16143] Building with configure option "--without-doc-strings" crashes first time through PyUnicode_DecodeUTF8Stateful

2012-10-05 Thread Stefan Krah

Stefan Krah added the comment:

This seems related to #9242: _Py_InitializeEx_Private() calls _Py_ReadyTypes(),
which uses the Unicode API, well before actually calling _PyUnicode_Init().

--
nosy: +georg.brandl, skrah
priority: normal -> release blocker
stage:  -> needs patch

___
Python tracker 

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



[issue16113] Add SHA-3 (Keccak) support

2012-10-05 Thread Christian Heimes

Christian Heimes added the comment:

I've documented the optimization options of Keccak. The block also contains a 
summarization of my modifications of the reference code.

http://hg.python.org/sandbox/cheimes/file/57948df78dbd/Modules/_sha3/sha3module.c#l22

--

___
Python tracker 

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



[issue812369] module shutdown procedure based on GC

2012-10-05 Thread Stefan Friesel

Stefan Friesel added the comment:

What is the status of this? Does the patch need more reviewing?

--
nosy: +Stefan.Friesel

___
Python tracker 

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



[issue16137] Using time.asctime() with an array with negative tm_hour causes Python Crash.

2012-10-05 Thread Mark Lawrence

Mark Lawrence added the comment:

I can reproduce this on Windows Vista running 2.7.3.  With 3.3.0 I get
>>> faulty_time = time.asctime(initial_struct_time)
Traceback (most recent call last):
  File "", line 1, in 
TypeError: Tuple or struct_time argument required
>>>

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue16143] Building with configure option "--without-doc-strings" crashes first time through PyUnicode_DecodeUTF8Stateful

2012-10-05 Thread Gregory Andersen

New submission from Gregory Andersen:

Seems unicode_empty is still NULL at this point.

A gdb backtrace from an x86_64 build.  Reproduced on i686 and mips build as 
well.

Program received signal SIGSEGV, Segmentation fault.
0x0044f61e in PyUnicode_DecodeUTF8Stateful (s=0x59a767 "", size=0, 
errors=0x0, consumed=0x0) at Objects/unicodeobject.c:4726
4726Py_INCREF(unicode_empty);
(gdb) bt
#0  0x0044f61e in PyUnicode_DecodeUTF8Stateful (s=0x59a767 "", size=0, 
errors=0x0, consumed=0x0) at Objects/unicodeobject.c:4726
#1  0x00433087 in PyType_Ready (type=0x7d5340) at 
Objects/typeobject.c:4235
#2  0x004332ae in PyType_Ready (type=) at 
Objects/typeobject.c:4116
#3  PyType_Ready (type=0x7d54e0) at Objects/typeobject.c:4146
#4  0x0041bbfe in _Py_ReadyTypes () at Objects/object.c:1576
#5  0x004a6eb0 in _Py_InitializeEx_Private (install_sigs=, install_importlib=) at Python/pythonrun.c:301
#6  Py_InitializeEx (install_sigs=) at Python/pythonrun.c:401
#7  Py_Initialize () at Python/pythonrun.c:407
#8  0x004bb9fc in Py_Main (argc=1, argv=0x82f010) at Modules/main.c:646
#9  0x0041949e in main (argc=1, argv=0x7fffe658) at 
./Modules/python.c:66

--
components: Interpreter Core
messages: 172097
nosy: Gregory.Andersen
priority: normal
severity: normal
status: open
title: Building with configure option "--without-doc-strings" crashes first 
time through PyUnicode_DecodeUTF8Stateful
type: crash
versions: Python 3.3

___
Python tracker 

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



[issue15111] Wrong ImportError message with importlib

2012-10-05 Thread Brett Cannon

Brett Cannon added the comment:

Actually, I take it back, it removed a test without adding a new one. Obviously 
that's my bad.

--

___
Python tracker 

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



[issue15111] Wrong ImportError message with importlib

2012-10-05 Thread Brett Cannon

Brett Cannon added the comment:

http://hg.python.org/cpython/rev/dc18a2a66d16 did add a test, just not the 
right one.

--

___
Python tracker 

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



[issue16123] IDLE - deprecate running without a subprocess

2012-10-05 Thread Andrew Svetlov

Changes by Andrew Svetlov :


--
nosy: +asvetlov

___
Python tracker 

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



[issue16116] Can not install C extension modules to inside a venv on Python 3.3.0 for Win32

2012-10-05 Thread Andrew Svetlov

Changes by Andrew Svetlov :


--
nosy: +asvetlov

___
Python tracker 

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



[issue16116] Can not install C extension modules to inside a venv on Python 3.3.0 for Win32

2012-10-05 Thread Vinay Sajip

Vinay Sajip added the comment:

> I have tested the workaround and it works correctly.
> Please see attached log file.

Thanks for the update.

> btw, it seems to me that "-IC:\Python33\include -IC:\Python33\include"
> should be "-IC:\Users\msmhrt\mypython\3.3.0\include -IC:\Python33\include".

Could well be a similar problem; I'll look into it.

--

___
Python tracker 

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



[issue15111] Wrong ImportError message with importlib

2012-10-05 Thread Chris Jerdonek

Chris Jerdonek added the comment:

> I don't know why, but it seems that the bug reappeared in 3.3.

Part of it could be that the original fix added no tests.

--

___
Python tracker 

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



[issue5845] rlcompleter should be enabled automatically

2012-10-05 Thread Steven D'Aprano

Changes by Steven D'Aprano :


--
nosy: +stevenjd

___
Python tracker 

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



[issue16142] ArgumentParser inconsistent with parse_known_args

2012-10-05 Thread R. David Murray

R. David Murray added the comment:

Right.  I didn't read what you wrote carefully enough.  Clearly 
parse_known_args is buggy here.

--

___
Python tracker 

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



  1   2   >