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
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
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
engelbert gruber grub...@users.sourceforge.net added the comment:
+1*4
--
nosy: +grubert
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5950
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
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
Changes by engelbert gruber grub...@users.sourceforge.net:
--
nosy: +rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11197
___
___
Python
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
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
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
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
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
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
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
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
engelbert gruber [EMAIL PROTECTED] added the comment:
and now it is 2.6 ?
--
nosy: +grubert
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1513299
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
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
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
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
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
21 matches
Mail list logo