[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...')

--
components: +Library (Lib)
nosy: +yoch.melka

___
Python tracker 
<https://bugs.python.org/issue28375>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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(self))
return True
except StopIteration:
return False

--
components: Library (Lib)
messages: 253690
nosy: yoch.melka
priority: normal
severity: normal
status: open
title: collections.abc.Iterable don't implement __bool__
type: enhancement

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue25513>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 module
y = pickle.load(fp)
TypeError: __new__() missing 1 required positional argument: 'arg'

Best regards

--
components: Library (Lib)
files: bug.py
messages: 192290
nosy: yoch.melka
priority: normal
severity: normal
status: open
title: pickle fail to handle some class with __new__
versions: Python 3.3
Added file: http://bugs.python.org/file30774/bug.py

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18359
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13112] backreferences in comprehensions

2011-10-08 Thread yoch

yoch yoch.me...@gmail.com added the comment:

Okay, thanks ;)

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13112
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13112] backreferences in comprehensions

2011-10-05 Thread yoch

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 of the first comprehension

It would be possible to do this ?

Thanks

--
messages: 144976
nosy: yoch.melka
priority: normal
severity: normal
status: open
title: backreferences in comprehensions
type: feature request

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13112
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12505] python interpreter not handle wildards properly

2011-07-06 Thread yoch

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 the compilation options msvc, as mentioned here:
http://msdn.microsoft.com/en-us/library/8bch7bkk.aspx

Regards,
yoch

--
components: Windows
files: test_argv_1.py
messages: 139930
nosy: yoch.melka
priority: normal
severity: normal
status: open
title: python interpreter not handle wildards properly
versions: Python 3.2
Added file: http://bugs.python.org/file22592/test_argv_1.py

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12505
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12505] python interpreter not handle wildards properly

2011-07-06 Thread yoch

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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12505] python interpreter not handle wildards properly

2011-07-06 Thread yoch

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 this feature (arguments 
expanding) to work only with cygwin ...

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12505
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12505] python interpreter not handle wildards properly

2011-07-06 Thread yoch

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 invoked before python's main(). Or am I missing 
something? (entirely possible, it's been a while since I've used setargv.obj)
[/q]
I dont't know. But what difference does it make, after all?
( I'm not sure I understand, my english is poor ;) )

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12505
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12505] python interpreter not handle wildards properly

2011-07-06 Thread yoch

yoch yoch.me...@gmail.com added the comment:

Okay. Thanks :)

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12505
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com