[issue19631] exec BNF in simple statements

2013-11-17 Thread engelbert gruber
New submission from engelbert gruber: the doc says:: exec_stmt ::= exec or_expr [in expression [, expression]] imho it should read :: exec_stmt ::= exec expression [in expression [, expression]] | exec( expression [ , expression [ , expression ]] ) -- assignee

[issue12291] file written using marshal in 3.2 can be read by 2.7, but not 3.2 or 3.3

2011-06-26 Thread engelbert gruber
engelbert gruber grub...@users.sourceforge.net added the comment: add interleaved writing to the same file (which might happen or not?) the tests pass when vinay's marshal.c is applied. sorry for another patch -- Added file: http://bugs.python.org/file22479

[issue8890] Use tempfile instead of /tmp in examples

2011-06-26 Thread engelbert gruber
engelbert gruber grub...@users.sourceforge.net added the comment: Assumption: /tmp is used in examples so the examples work because /tmp is always writeable module tempfile is for creating temporary files, the name of which is unimported, when a user is trying code from documentation

[issue5950] Make zipimport work with zipfile containing comments

2011-06-26 Thread engelbert gruber
engelbert gruber grub...@users.sourceforge.net added the comment: +1*4 -- nosy: +grubert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5950

[issue11197] information leakage with SimpleHTTPServer

2011-06-25 Thread engelbert gruber
engelbert gruber grub...@users.sourceforge.net added the comment: SimpleHTTPServer does not exist in Python3.1 up instead http.server. All versions (3.x 2011-06-25) reply the contents from the served directory on a request of the upper directory and act similar with files. Maybe documentation

[issue11197] information leakage with SimpleHTTPServer

2011-06-25 Thread engelbert gruber
engelbert gruber grub...@users.sourceforge.net added the comment: My test setup: test.html 2.5/test.html 2.7/test.html in 2.5 and 2.7 execute :: python.exe -m SimpleHTTPServer 8000 ``http://localhost:8000/../`` shows the contents of the ``2.x`` directory. ``http://localhost:8000

[issue11197] information leakage with SimpleHTTPServer

2011-06-25 Thread engelbert gruber
Changes by engelbert gruber grub...@users.sourceforge.net: -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11197 ___ ___ Python

[issue12291] file written using marshal in 3.2 can be read by 2.7, but not 3.2 or 3.3

2011-06-25 Thread engelbert gruber
engelbert gruber grub...@users.sourceforge.net added the comment: patch to test_marshal.py that obviously fails in current implementation. IMHO is file might not be seekable one can not cache so maybe do not do it. -- nosy: +grubert Added file: http://bugs.python.org/file22472

[issue5476] datetime: timedelta(minutes = i) silently fails with numpy.int32 input

2009-05-18 Thread engelbert gruber
engelbert gruber grub...@users.sourceforge.net added the comment: testing with 2.6 and numpy 1.3 already :: timedelta(seconds = int32(36)) TypeError: unsupported type for timedelta seconds component: numpy.int32 But not if I apply a change to numpy to fix issue2263 then ``timedelta

[issue2263] struct.pack() + numpy int raises SystemError

2009-05-18 Thread engelbert gruber
engelbert gruber grub...@users.sourceforge.net added the comment: issue5476 has a problem with timedelta(microseconds = int32(36)) interestingly 0 to 35 work , if the patch for this issue2263 is applied. -- ___ Python tracker rep...@bugs.python.org

[issue2263] struct.pack() + numpy int raises SystemError

2009-02-12 Thread engelbert gruber
engelbert gruber grub...@users.sourceforge.net added the comment: Including Py_TPFLAGS_INT_SUBCLASS in numpy's BASEFLAGS cures this. This is an external problem then. But I could not find any reference to Py_TPFLAGS_*_SUBCLASS in the documentation, that is a python problem

[issue2263] struct.pack() + numpy int raises SystemError

2009-02-09 Thread engelbert gruber
engelbert gruber grub...@users.sourceforge.net added the comment: in 2.7 svn _struct.c formatdef native_table[] = { {'B', sizeof(char), 0, nu_ubyte, np_ubyte}, formatdef bigendian_table[] {'B', 1, 0, nu_ubyte, bp_uint}, formatdef lilendian_table

[issue2263] struct.pack() + numpy int raises SystemError

2009-01-28 Thread engelbert gruber
engelbert gruber grub...@users.sourceforge.net added the comment: on ubuntu 8.04, Python 2.7a0 (trunk:69044) and numpy 1.2.1 (. is OK, e means SystemError) * signed always works, longlong also. * unsigned native works half of the time * unsigned little/big endian never works * the numpy type

[issue2532] file that breaks 2to3 (despite being correct python)

2008-07-20 Thread engelbert gruber
engelbert gruber [EMAIL PROTECTED] added the comment: Truncating the file to 2448 lines helps, seams to be a size not content problem. All fixes work exept fix_next.py . And removing the lines :: | mod=file_input any+ makes even this run through

[issue2532] file that breaks 2to3 (despite being correct python)

2008-07-19 Thread engelbert gruber
engelbert gruber [EMAIL PROTECTED] added the comment: The much simpler input might be another problem:: # this is accepted b = (a = 0\n * 100) # this one breaks it (a = 0\n * 100) this looks similar to ``map(None, t)`` on a line by itself is translated to ``list(map(None, t

[issue1513299] Clean up usage of map() in the stdlib

2008-07-18 Thread engelbert gruber
engelbert gruber [EMAIL PROTECTED] added the comment: and now it is 2.6 ? -- nosy: +grubert ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1513299

[issue1513299] Clean up usage of map() in the stdlib

2008-07-18 Thread engelbert gruber
engelbert gruber [EMAIL PROTECTED] added the comment: i just wanted to get rid of one python2.6 -3 warning in string and found that a patch was already waiting. from this thing i conclude smaller patches might get committed earlier , do they ? On Fri, Jul 18, 2008 at 8:42 PM, Georg Brandl

[issue1513299] Clean up usage of map() in the stdlib

2008-07-18 Thread engelbert gruber
engelbert gruber [EMAIL PROTECTED] added the comment: so i add a one liner replacing map(None with list ? On 7/18/08, Georg Brandl [EMAIL PROTECTED] wrote: Georg Brandl [EMAIL PROTECTED] added the comment: That is true. Barry might not want to allow a large catch-all patch; but since

[issue1513299] Clean up usage of map() in the stdlib

2008-07-18 Thread engelbert gruber
engelbert gruber [EMAIL PROTECTED] added the comment: it is only one in string.py, but then again it is save to do. thanks On 7/18/08, Georg Brandl [EMAIL PROTECTED] wrote: Georg Brandl [EMAIL PROTECTED] added the comment: I can replace those too

[issue1513299] Clean up usage of map() in the stdlib

2008-07-18 Thread engelbert gruber
engelbert gruber [EMAIL PROTECTED] added the comment: http://bugs.python.org/issue3390 is similar trivial , replacing has_key by in (this small patches might be considered tweaking the bugfix statistic) i am off now (tell me if you think i should stay there) On 7/18/08, Georg Brandl [EMAIL

[issue3390] [PATCH] replace last has_key in unittest by in operator

2008-07-17 Thread engelbert gruber
New submission from engelbert gruber [EMAIL PROTECTED]: take the line from python-3 -- components: Library (Lib) files: lib_unittest-r65058 messages: 69877 nosy: grubert severity: normal status: open title: [PATCH] replace last has_key in unittest by in operator type: behavior versions