[Python-Dev] Memory Error the right error for coding cookie promise violation? (original) (raw)
Neal Norwitz nnorwitz at gmail.com
Tue Feb 21 09:28:06 CET 2006
- Previous message: [Python-Dev] Memory Error the right error for coding cookie promise violation?
- Next message: [Python-Dev] calendar.timegm
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 2/20/06, Bengt Richter <bokr at oz.net> wrote:
Perhaps a more informative message would be nice. Here's an easy way to trigger it:
>>> compile("#-- coding: ascii --\nprint 'ab%c'\n"%0x80, '','exec') Traceback (most recent call last): File "", line 1, in ? MemoryError
This was fixed in 2.5, but looks like it wasn't backported. I don't recall exactly why. -- n
Python 2.5a0 (trunk:42526M, Feb 20 2006, 16:00:48)
compile("#-- coding: ascii --\nprint 'ab%c'\n"%0x80, '','exec') Traceback (most recent call last): File "", line 1, in File "", line 0 SyntaxError: unknown encoding: ascii
- Previous message: [Python-Dev] Memory Error the right error for coding cookie promise violation?
- Next message: [Python-Dev] calendar.timegm
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]