yoch added the comment:
Same issue here (python 3.6). This is very annoying, especially in case of
large entries in FieldStorage, because the whole data is written to the log.
Example:
FieldStorage('image', 'upload.jpg', b'...can be very long...')
--
components: +Library (Lib
New submission from yoch:
collections.abc.Iterable don't implement the __bool__ method. This may
seriously degrade performance in case __len__ is not efficient.
I suggest to implement it as :
class Iterable:
...
def __bool__(self):
try:
next(iter(self
New submission from yoch:
Hi,
If some class objects have extra arguments in the __new__ constructor , pickle
fail to serialize it.
Here the output of provided test-case :
Traceback (most recent call last):
File /home/yoch/bug.py, line 19, in module
y = pickle.load(fp)
TypeError
yoch yoch.me...@gmail.com added the comment:
Okay, thanks ;)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13112
___
___
Python-bugs-list
New submission from yoch yoch.me...@gmail.com:
Hi,
I would like to use backreferences in list comprehensions (or other
comprehensions), such as :
[[elt for elt in lst if elt] for lst in matrix if \{1}]
# \{1} is back reference to [elt for elt in lst if elt]
# to filter the result
New submission from yoch yoch.me...@gmail.com:
Hi,
I'm using sys.argv to retrieve files and process them on the command line.
Wildcards arguments (like : test.py *.txt) works fine under Linux (expanded),
but not on Windows.
It also affects the fileinput functions.
The solution is to change
yoch yoch.me...@gmail.com added the comment:
Escape the wildcard like '*' will work (like on Linux).
I think \* will not work...
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12505
yoch yoch.me...@gmail.com added the comment:
'setargv.obj' not C runtime, it's only static library to allow expanding
wildcards arguments received by the program. (MinGW uses approximately the same
principle for executables compilation)
And, it's not appropriate to tell people who need
yoch yoch.me...@gmail.com added the comment:
With cmd and program compiled with setargv.obj, 'command *' is expanded, but
not 'command *'. So, it's possible to escape them normally.
[q]
While it might be a separate .obj file, I believe it's still part of the
logical C runtime that gets
yoch yoch.me...@gmail.com added the comment:
Okay. Thanks :)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12505
___
___
Python-bugs-list
10 matches
Mail list logo