[issue11266] asyncore does not handle EINTR in recv, send, connect, accept,
Changes by Florian Mayer : -- nosy: +segfaulthunter ___ Python tracker <http://bugs.python.org/issue11266> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11326] connect_ex() implementation missing for SSL sockets
Florian Mayer added the comment: Thanks for the fast response and for fixing this. -- ___ Python tracker <http://bugs.python.org/issue11326> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11326] connect_ex() implementation missing for SSL sockets
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/issue11326> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11326] connect_ex() implementation missing for SSL sockets
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/issue11326> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11326] Asynchronous ssl handshakes fails for asynchronously connected sockets.
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", line 279, in do_handshake self._sslobj.do_handshake() AttributeError: 'NoneType' object has no attribute 'do_handshake' -- components: Library (Lib) files: handshake.py messages: 129477 nosy: segfaulthunter priority: normal severity: normal status: open title: Asynchronous ssl handshakes fails for asynchronously connected sockets. type: behavior versions: Python 2.6, Python 3.1, Python 3.2 Added file: http://bugs.python.org/file20899/handshake.py ___ Python tracker <http://bugs.python.org/issue11326> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11133] inspect.getattr_static code execution
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 {} ... >>> import inspect >>> inspect.getattr_static(Foo(), 'a') Hello, World. Traceback (most recent call last): File "", line 1, in File "/home/name/opt/lib/python3.2/inspect.py", line 1130, in getattr_static raise AttributeError(attr) AttributeError: a >>> -- nosy: +segfaulthunter ___ Python tracker <http://bugs.python.org/issue11133> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7203] fixer for map(None, ...) needs to consider multi-argument case
Florian Mayer added the comment: When could this possibly be wrong, if I may ask? -- ___ Python tracker <http://bugs.python.org/issue7203> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7203] fixer for map(None, ...) needs to consider multi-argument case
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. -- ___ Python tracker <http://bugs.python.org/issue7203> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7203] fixer for map(None, ...) needs to consider multi-argument case
Florian Mayer added the comment: I dare to disagree on this being an adequate fix. Request to reopen. -- ___ Python tracker <http://bugs.python.org/issue7203> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7203] fixer for map(None, ...) needs to consider multi-argument case
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.org/issue7203> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7203] fixer for map(None, ...) needs to consider multi-argument case
Changes by Florian Mayer : -- nosy: +segfaulthunter ___ Python tracker <http://bugs.python.org/issue7203> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6279] datamodel documentation confuses staticmethod with classmethod
Changes by Florian Mayer : Removed file: http://bugs.python.org/file14292/datamodel.rst.patch ___ Python tracker <http://bugs.python.org/issue6279> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6279] datamodel documentation confuses staticmethod with classmethod
Florian Mayer added the comment: Sorry, my fault. -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue6279> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6135] subprocess seems to use local 8-bit encoding and gives no choice
Changes by Florian Mayer : Added file: http://bugs.python.org/file14295/test_subprocess3.py.patch ___ Python tracker <http://bugs.python.org/issue6135> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6135] subprocess seems to use local 8-bit encoding and gives no choice
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/issue6135> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6135] subprocess seems to use local 8-bit encoding and gives no choice
Changes by Florian Mayer : Added file: http://bugs.python.org/file14294/subprocess3.patch ___ Python tracker <http://bugs.python.org/issue6135> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6135] subprocess seems to use local 8-bit encoding and gives no choice
Changes by Florian Mayer : Added file: http://bugs.python.org/file14293/subprocess.patch ___ Python tracker <http://bugs.python.org/issue6135> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6135] subprocess seems to use local 8-bit encoding and gives no choice
Changes by Florian Mayer : Removed file: http://bugs.python.org/file14291/subprocess3.patch ___ Python tracker <http://bugs.python.org/issue6135> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6135] subprocess seems to use local 8-bit encoding and gives no choice
Changes by Florian Mayer : Removed file: http://bugs.python.org/file14289/subprocess.patch ___ Python tracker <http://bugs.python.org/issue6135> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6279] datamodel documentation confuses staticmethod with classmethod
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 nosy: segfaulthunter severity: normal status: open title: datamodel documentation confuses staticmethod with classmethod Added file: http://bugs.python.org/file14292/datamodel.rst.patch ___ Python tracker <http://bugs.python.org/issue6279> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6135] subprocess seems to use local 8-bit encoding and gives no choice
Changes by Florian Mayer : Removed file: http://bugs.python.org/file14290/subprocess3.patch ___ Python tracker <http://bugs.python.org/issue6135> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6135] subprocess seems to use local 8-bit encoding and gives no choice
Changes by Florian Mayer : Added file: http://bugs.python.org/file14291/subprocess3.patch ___ Python tracker <http://bugs.python.org/issue6135> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6135] subprocess seems to use local 8-bit encoding and gives no choice
Changes by Florian Mayer : Added file: http://bugs.python.org/file14290/subprocess3.patch ___ Python tracker <http://bugs.python.org/issue6135> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6135] subprocess seems to use local 8-bit encoding and gives no choice
Changes by Florian Mayer : Removed file: http://bugs.python.org/file14286/subprocess.patch ___ Python tracker <http://bugs.python.org/issue6135> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6135] subprocess seems to use local 8-bit encoding and gives no choice
Florian Mayer added the comment: Cosmetic update. -- Added file: http://bugs.python.org/file14289/subprocess.patch ___ Python tracker <http://bugs.python.org/issue6135> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6135] subprocess seems to use local 8-bit encoding and gives no choice
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 <http://bugs.python.org/issue6135> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6269] threading documentation makes no mention of the GIL
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: georg.brandl, segfaulthunter severity: normal status: open title: threading documentation makes no mention of the GIL versions: Python 2.7 Added file: http://bugs.python.org/file14264/threading.rst.patch ___ Python tracker <http://bugs.python.org/issue6269> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3724] math.log(x, 10) gives different result than math.log10(x)
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://bugs.python.org/issue3724> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3724] math.log(x, 10) gives different result than math.log10(x)
Changes by Florian Mayer <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file11310/log.patch ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3724> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3724] math.log(x, 10) gives different result than math.log10(x)
Changes by Florian Mayer <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file11302/log.patch ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3724> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3724] math.log(x, 10) gives different result than math.log10(x)
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 internally use log10 when it gets the base 10. Patch is against revision 66056. Also adds 3 tests to test_math.py to test new behaviour implemented. -- files: log.patch keywords: patch messages: 72129 nosy: segfaulthunter severity: normal status: open title: math.log(x, 10) gives different result than math.log10(x) type: behavior versions: Python 2.6 Added file: http://bugs.python.org/file11302/log.patch ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3724> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3412] Fraction and Decimal in the Tutorial
Changes by Florian Mayer <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file10943/floating.rst ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3412> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3412] Fraction and Decimal in the Tutorial
Changes by Florian Mayer <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file10941/floating ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3412> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3412] Fraction and Decimal in the Tutorial
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.python.org/issue3412> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3412] Fraction and Decimal in the Tutorial
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 reader. -- assignee: georg.brandl components: Documentation files: floating messages: 69992 nosy: georg.brandl, segfaulthunter severity: normal status: open title: Fraction and Decimal in the Tutorial versions: Python 2.6, Python 3.0 Added file: http://bugs.python.org/file10941/floating ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3412> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3388] With keyword not mentioned in Input Output tutorial
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 components: Documentation files: with_tutorial.patch keywords: patch messages: 69854 nosy: georg.brandl, segfaulthunter severity: normal status: open title: With keyword not mentioned in Input Output tutorial versions: Python 3.0 Added file: http://bugs.python.org/file10920/with_tutorial.patch ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3388> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3288] float.as_integer_ratio method is not documented
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 Added file: http://bugs.python.org/file10918/issue3288.patch ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3288> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3310] Out-of-date example 3.0b1 Tutorial Classes page, 'issubclass'
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/classes.txt.patch ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3310> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3296] print function not executed in python 3.0 tutorial
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: Documentation files: doc-patch messages: 69311 nosy: georg.brandl, segfaulthunter severity: normal status: open title: print function not executed in python 3.0 tutorial versions: Python 3.0 Added file: http://bugs.python.org/file10824/doc-patch ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3296> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3019] Python3a5 compile failing due to high memory usage
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.python.org/issue3019> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3019] Python3a5 compile failing due to high memory usage
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 used more if I had not cancelled it. When I use ltrace to track the system calls and put it into the Makefile, the resource usage still raises but much slower, if I use ltrace and supply it a PID, the memory usage raises as fast as normal. I think this is due to something in ltrace, it's understandable because it produced a file of more than 600MB. I attached an excerpt of the output of ltrace, showing you how the system calls seem to repeat, and the output of './configure', 'make', 'uname -a', 'lspci' and 'lsmod' so you have some data about my system. I also got a screenshot showing the output of htop, make and strace together: http://img516.imageshack.us/img516/2275/screenshot1ab8.png. Maybe the output of two different programs(ltrace and strace) will help you too. I tried out building the current SVN py3k branch, resulting in a similar problem. PS: It would help if you allowed uploading of multiple files to bug reports -- components: Build files: output messages: 67585 nosy: segfaulthunter severity: normal status: open title: Python3a5 compile failing due to high memory usage type: compile error versions: Python 3.0 Added file: http://bugs.python.org/file10488/output ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3019> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com