[issue11266] asyncore does not handle EINTR in recv, send, connect, accept,

2011-03-03 Thread Florian Mayer
Changes by Florian Mayer : -- nosy: +segfaulthunter ___ Python tracker <http://bugs.python.org/issue11266> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11326] connect_ex() implementation missing for SSL sockets

2011-03-01 Thread Florian Mayer
Florian Mayer added the comment: Thanks for the fast response and for fixing this. -- ___ Python tracker <http://bugs.python.org/issue11326> ___ ___ Python-bug

[issue11326] connect_ex() implementation missing for SSL sockets

2011-02-25 Thread Florian Mayer
Florian Mayer added the comment: The select call after the connect_ex waits until the connection is done, for the first write event is fired then, so the socket is connected afterwards. -- ___ Python tracker <http://bugs.python.org/issue11

[issue11326] connect_ex() implementation missing for SSL sockets

2011-02-25 Thread Florian Mayer
Florian Mayer added the comment: A workaround would be exposing _ssl.wrapssl in ssl so that it can be called once the socket is connected and no non-public API had to be used. -- ___ Python tracker <http://bugs.python.org/issue11

[issue11326] Asynchronous ssl handshakes fails for asynchronously connected sockets.

2011-02-25 Thread Florian Mayer
New submission from Florian Mayer : The asynchronous do_handshakes fails for sockets that were connected asynchronously. Tested on 2.6, 3.1 and 3.2. Traceback (most recent call last): File "handshake.py", line 17, in s.do_handshake() File "/usr/lib/python2.6/ssl.py

[issue11133] inspect.getattr_static code execution

2011-02-20 Thread Florian Mayer
Florian Mayer added the comment: Apparently another way to get getattr_static to execute code in Python 2.3rc3 is simply the following. >>> class Foo: ... @property ... def __dict__(self): ... print("Hello, World.") ... return {} ...

[issue7203] fixer for map(None, ...) needs to consider multi-argument case

2009-10-27 Thread Florian Mayer
Florian Mayer added the comment: When could this possibly be wrong, if I may ask? -- ___ Python tracker <http://bugs.python.org/issue7203> ___ ___ Python-bug

[issue7203] fixer for map(None, ...) needs to consider multi-argument case

2009-10-27 Thread Florian Mayer
Florian Mayer added the comment: At least converting map(None, a, b, ...) to map(lambda *xs: xs, a, b, ...) I can understand if you prefer not to add the itertools.zip_longest workaround, although that would be the correct translation, of course

[issue7203] fixer for map(None, ...) needs to consider multi-argument case

2009-10-27 Thread Florian Mayer
Florian Mayer added the comment: I dare to disagree on this being an adequate fix. Request to reopen. -- ___ Python tracker <http://bugs.python.org/issue7

[issue7203] fixer for map(None, ...) needs to consider multi-argument case

2009-10-25 Thread Florian Mayer
Florian Mayer added the comment: A full fix would be list(map(fun, *zip(*itertools.zip_longest(a, b, ... and if fun is None list(map(lambda *xs: xs, *zip(*itertools.zip_longest(a, b, ... -- ___ Python tracker <http://bugs.python.

[issue7203] fixer for map(None, ...) needs to consider multi-argument case

2009-10-25 Thread Florian Mayer
Changes by Florian Mayer : -- nosy: +segfaulthunter ___ Python tracker <http://bugs.python.org/issue7203> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6279] datamodel documentation confuses staticmethod with classmethod

2009-06-14 Thread Florian Mayer
Changes by Florian Mayer : Removed file: http://bugs.python.org/file14292/datamodel.rst.patch ___ Python tracker <http://bugs.python.org/issue6279> ___ ___ Python-bug

[issue6279] datamodel documentation confuses staticmethod with classmethod

2009-06-14 Thread Florian Mayer
Florian Mayer added the comment: Sorry, my fault. -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue6279> ___ ___ Python-bugs-list mai

[issue6135] subprocess seems to use local 8-bit encoding and gives no choice

2009-06-13 Thread Florian Mayer
Changes by Florian Mayer : Added file: http://bugs.python.org/file14295/test_subprocess3.py.patch ___ Python tracker <http://bugs.python.org/issue6135> ___ ___ Python-bug

[issue6135] subprocess seems to use local 8-bit encoding and gives no choice

2009-06-13 Thread Florian Mayer
Florian Mayer added the comment: Should we also cover the unusual case where stdout, stderr and stdin have different encodings, because now we are assuming the are all the same. -- ___ Python tracker <http://bugs.python.org/issue6

[issue6135] subprocess seems to use local 8-bit encoding and gives no choice

2009-06-13 Thread Florian Mayer
Changes by Florian Mayer : Added file: http://bugs.python.org/file14294/subprocess3.patch ___ Python tracker <http://bugs.python.org/issue6135> ___ ___ Python-bugs-list m

[issue6135] subprocess seems to use local 8-bit encoding and gives no choice

2009-06-13 Thread Florian Mayer
Changes by Florian Mayer : Added file: http://bugs.python.org/file14293/subprocess.patch ___ Python tracker <http://bugs.python.org/issue6135> ___ ___ Python-bugs-list m

[issue6135] subprocess seems to use local 8-bit encoding and gives no choice

2009-06-13 Thread Florian Mayer
Changes by Florian Mayer : Removed file: http://bugs.python.org/file14291/subprocess3.patch ___ Python tracker <http://bugs.python.org/issue6135> ___ ___ Python-bug

[issue6135] subprocess seems to use local 8-bit encoding and gives no choice

2009-06-13 Thread Florian Mayer
Changes by Florian Mayer : Removed file: http://bugs.python.org/file14289/subprocess.patch ___ Python tracker <http://bugs.python.org/issue6135> ___ ___ Python-bugs-list m

[issue6279] datamodel documentation confuses staticmethod with classmethod

2009-06-13 Thread Florian Mayer
New submission from Florian Mayer : I think it is confusing that the datamodel documentation says __new__ is a staticmethod while it actually is a classmethod (as it takes the class as its first argument). Patch supplied. -- files: datamodel.rst.patch keywords: patch messages: 89331

[issue6135] subprocess seems to use local 8-bit encoding and gives no choice

2009-06-13 Thread Florian Mayer
Changes by Florian Mayer : Removed file: http://bugs.python.org/file14290/subprocess3.patch ___ Python tracker <http://bugs.python.org/issue6135> ___ ___ Python-bug

[issue6135] subprocess seems to use local 8-bit encoding and gives no choice

2009-06-13 Thread Florian Mayer
Changes by Florian Mayer : Added file: http://bugs.python.org/file14291/subprocess3.patch ___ Python tracker <http://bugs.python.org/issue6135> ___ ___ Python-bugs-list m

[issue6135] subprocess seems to use local 8-bit encoding and gives no choice

2009-06-13 Thread Florian Mayer
Changes by Florian Mayer : Added file: http://bugs.python.org/file14290/subprocess3.patch ___ Python tracker <http://bugs.python.org/issue6135> ___ ___ Python-bugs-list m

[issue6135] subprocess seems to use local 8-bit encoding and gives no choice

2009-06-13 Thread Florian Mayer
Changes by Florian Mayer : Removed file: http://bugs.python.org/file14286/subprocess.patch ___ Python tracker <http://bugs.python.org/issue6135> ___ ___ Python-bugs-list m

[issue6135] subprocess seems to use local 8-bit encoding and gives no choice

2009-06-13 Thread Florian Mayer
Florian Mayer added the comment: Cosmetic update. -- Added file: http://bugs.python.org/file14289/subprocess.patch ___ Python tracker <http://bugs.python.org/issue6

[issue6135] subprocess seems to use local 8-bit encoding and gives no choice

2009-06-13 Thread Florian Mayer
Florian Mayer added the comment: I wrote a patch to add encoding and error to subprocess.Popen in Python 2.7 (trunk). -- keywords: +patch nosy: +segfaulthunter Added file: http://bugs.python.org/file14286/subprocess.patch ___ Python tracker <h

[issue6269] threading documentation makes no mention of the GIL

2009-06-11 Thread Florian Mayer
New submission from Florian Mayer : I think the GIL should be mentioned in the threading documentation, so that people do not try to use them for scalability reasons. -- assignee: georg.brandl components: Documentation files: threading.rst.patch keywords: patch messages: 89259 nosy

[issue3724] math.log(x, 10) gives different result than math.log10(x)

2008-09-03 Thread Florian Mayer
Florian Mayer <[EMAIL PROTECTED]> added the comment: Uploaded small documentation patch warning the user of math.log(x, 10) inaccuracy. Added file: http://bugs.python.org/file11362/math_doc.patch ___ Python tracker <[EMAIL PROTECTED]> <http://

[issue3724] math.log(x, 10) gives different result than math.log10(x)

2008-08-29 Thread Florian Mayer
Changes by Florian Mayer <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file11310/log.patch ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue3724] math.log(x, 10) gives different result than math.log10(x)

2008-08-29 Thread Florian Mayer
Changes by Florian Mayer <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file11302/log.patch ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue3724] math.log(x, 10) gives different result than math.log10(x)

2008-08-29 Thread Florian Mayer
New submission from Florian Mayer <[EMAIL PROTECTED]>: I have found out that the result of math.log(x, 10) is slightly more inaccurate than the one of math.log10(x). Probably the best example is math.log(1000, 10) and math.log10(1000). I have attached a patch that forces math.log to inte

[issue3412] Fraction and Decimal in the Tutorial

2008-07-18 Thread Florian Mayer
Changes by Florian Mayer <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file10943/floating.rst ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue3412] Fraction and Decimal in the Tutorial

2008-07-18 Thread Florian Mayer
Changes by Florian Mayer <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file10941/floating ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue3412] Fraction and Decimal in the Tutorial

2008-07-18 Thread Florian Mayer
Florian Mayer <[EMAIL PROTECTED]> added the comment: Updated file to fix a minor problem Added file: http://bugs.python.org/file10942/floating.rst ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue3412] Fraction and Decimal in the Tutorial

2008-07-18 Thread Florian Mayer
New submission from Florian Mayer <[EMAIL PROTECTED]>: I think that when floating point number limitations are mentioned we should also tell that there are alternatives for processing numbers with decimal extensions. I wrote a text that introduces the Decimal and the Fraction type to the

[issue3388] With keyword not mentioned in Input Output tutorial

2008-07-16 Thread Florian Mayer
New submission from Florian Mayer <[EMAIL PROTECTED]>: I think that the Python 3.0 Tutorial should show the reader that the with keyword is an excellent way of reading data from a file and closing it afterwards, even if exceptions occur. -- assignee: georg.brandl comp

[issue3288] float.as_integer_ratio method is not documented

2008-07-16 Thread Florian Mayer
Florian Mayer <[EMAIL PROTECTED]> added the comment: I tried to include the method in the Python 3.0 Tutorial but also to mention problems with floating point arithmetic that express in returning different numbers than what one entered. -- keywords: +patch nosy: +segfaulthunter

[issue3310] Out-of-date example 3.0b1 Tutorial Classes page, 'issubclass'

2008-07-16 Thread Florian Mayer
Florian Mayer <[EMAIL PROTECTED]> added the comment: This patch removes incompatibility to Python 3.0, though it also removes the "common ancestor" part. -- keywords: +patch nosy: +segfaulthunter Added file: http://bugs.python.org/file10916/c

[issue3296] print function not executed in python 3.0 tutorial

2008-07-05 Thread Florian Mayer
New submission from Florian Mayer <[EMAIL PROTECTED]>: It is for sure only a minor issue, but the new tutorial should not confuse readers as the print function is not executed here and does not do anything at all. Patch is attached. -- assignee: georg.brandl components: Documen

[issue3019] Python3a5 compile failing due to high memory usage

2008-05-31 Thread Florian Mayer
Florian Mayer <[EMAIL PROTECTED]> added the comment: Added the output of GDB as the memory usage was nearing 70%. Hope it helps. Added file: http://bugs.python.org/file10490/gdb_output ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue3019] Python3a5 compile failing due to high memory usage

2008-05-31 Thread Florian Mayer
New submission from Florian Mayer <[EMAIL PROTECTED]>: I have tried building Python3a5 today using the tarball offered on your internet site. The process './python -E setup.py build' keeps on allocating my memory using more than 80% of my RAM, I am certain that it would have us