[issue6990] threading.local subclasses don't cleanup their state and it gets recycled

2009-09-25 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Thanks for the excellent test case! Is seems enough to remove the statement Py_CLEAR(self-key); from local_clear(). self-key is a string which cannot cause cycles (and is not visited in local_traverse()); now local_dealloc() does its

[issue4434] Embedding into a shared library fails

2009-09-25 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Does it help if you add the --whole-archive option when linking with the static library? As explained there: http://www.lysium.de/blog/index.php?/archives/222-Lost-static-objects-in-static-libraries-with-GNU-linker-ld.html This way your

[issue6991] logging encoding failes some situation

2009-09-25 Thread Naoki INADA
Changes by Naoki INADA songofaca...@gmail.com: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6991 ___ ___ Python-bugs-list

[issue6991] logging encoding failes some situation

2009-09-25 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- assignee: - vinay.sajip nosy: +vinay.sajip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6991 ___

[issue6991] logging encoding failes some situation

2009-09-25 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Thanks, but I'm not sure I understand the reasoning. stream.write(unicode_string) should not do decode() internally, though of course it would do encode(). Can you explain a little more (with an illustrative example) what problem you are

[issue6991] logging encoding failes some situation

2009-09-25 Thread Naoki INADA
Naoki INADA songofaca...@gmail.com added the comment: Please see and execute an attached foo.py. In Python 2.6.2, this cause following error: python foo.py Traceback (most recent call last): File foo.py, line 3, in module f.write('\xaa') File C:\usr\Python2.6\lib\codecs.py, line 686, in

[issue6992] multiple authors in setup.by

2009-09-25 Thread anatoly techtonik
New submission from anatoly techtonik techto...@gmail.com: setup.py should allow to specify multiple authors in package description. -- assignee: tarek components: Distutils messages: 93105 nosy: tarek, techtonik severity: normal status: open title: multiple authors in setup.by

[issue6991] logging encoding failes some situation

2009-09-25 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: There seems to be a problem with your foo.py. In it, you are writing a byte-string to a stream returned from codecs.open. I don't think this is correct: you should be writing a Unicode string to that stream, which will convert to bytes using

[issue6998] Bug in Tutorial (introduction.rst)

2009-09-25 Thread Michael Markert
New submission from Michael Markert markert.mich...@gmail.com: There is a `print` statement in line 225 of introduction.rst instead of a print function, rendering the snippet buggy in Python3. -- assignee: georg.brandl components: Documentation messages: 93132 nosy: cofi, georg.brandl

[issue3890] ssl.SSLSocket.recv() implementation may not work with non-blocking sockets

2009-09-25 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: I'll make this a release blocker, but I agree a test would be useful to have. Let's try to get this in for 2.6.3. -- nosy: +barry priority: - release blocker ___ Python tracker