[issue28375] cgi.py spam in Apache server logs

2019-03-29 Thread yoch
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...') --

[issue25513] collections.abc.Iterable don't implement __bool__

2015-10-29 Thread yoch
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

[issue18359] pickle fail to handle some class with __new__

2013-07-04 Thread yoch
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 y = pickle.load(fp) TypeErro

[issue13112] backreferences in comprehensions

2011-10-08 Thread yoch
yoch added the comment: Okay, thanks ;) -- ___ Python tracker <http://bugs.python.org/issue13112> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13112] backreferences in comprehensions

2011-10-05 Thread yoch
New submission from yoch : 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 of the first comprehension It

[issue12505] python interpreter not handle wildards properly

2011-07-06 Thread yoch
yoch added the comment: Okay. Thanks :) -- ___ Python tracker <http://bugs.python.org/issue12505> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12505] python interpreter not handle wildards properly

2011-07-06 Thread yoch
yoch 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 r

[issue12505] python interpreter not handle wildards properly

2011-07-06 Thread yoch
yoch 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 thi

[issue12505] python interpreter not handle wildards properly

2011-07-06 Thread yoch
yoch added the comment: Escape the wildcard like '*' will work (like on Linux). I think \* will not work... -- ___ Python tracker <http://bugs.python.o

[issue12505] python interpreter not handle wildards properly

2011-07-06 Thread yoch
New submission from yoch : 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 the compilation op