[issue3464] Python NCURSES
New submission from nandhakumar [EMAIL PROTECTED]: i have installed python 2.4 and ncurses 5.4 in my linux server. Python script is working fine but when i tried using thread function in my script(which also uses ncurses) it gives the following error: Traceback (most recent call last): File .py, line 199, in ? curses.wrapper(AnDoRun) File /usr/local/lib/python2.4/curses/wrapper.py, line 44, in wrapper return func(stdscr, *args, **kwds) File .py, line 182, in AnDoRun ando.start() File .py, line 136, in start self.proxyManagerThread.start() File /usr/local/lib/python2.4/threading.py, line 416, in start _start_new_thread(self.__bootstrap, ()) thread.error: can't start new thread help me how can i solve this problem ASAP -- components: None messages: 70377 nosy: nandha severity: normal status: open title: Python NCURSES type: compile error versions: Python 2.4 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3464 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3453] PyType_Ready doesn't ensure that all bases are ready
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: PyType_Ready is called for each class in tp_bases. This is done in typeobject.c::best_base() Isn't it the case in your program? -- nosy: +amaury.forgeotdarc ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3453 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3464] Python NCURSES
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: The python issue tracker is not the correct place to get this kind of help. Please ask on the comp.lang.python newsgroup: http://www.python.org/community/lists -- nosy: +amaury.forgeotdarc resolution: - invalid status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3464 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3453] PyType_Ready doesn't ensure that all bases are ready
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: Forget my last remark: it applies to heap types (created with type_new()) and not to static types. However, it seems that a non-ready class in tp_bases can happen only when an extension type inherits from another extension type. It is good practice to call PyType_Ready() on every type you define (otherwise tp_methods doesn't work); doesn't this answer the initial problem? ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3453 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3460] PyUnicode_Join could perhaps be simpler
Marc-Andre Lemburg [EMAIL PROTECTED] added the comment: The comment gives a wrong impression: The problem is not (only) that a codec might by evil, it's the fact that a codec may well execute Python code and thus allow the list to be changed by other threads during the operation. Now, since in Python 3.x codecs are no longer being invoked, it is probably safe to assume that Python code is not being executed while PyUnicode_Join() is running, but please double-check. It's also wise to apply a sanity check at the end of the loop to check whether the sequence length has indeed not changed (as assert maybe). ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3460 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3465] doctest unable to use '...' for unicode literals
New submission from Piotr Wysocki [EMAIL PROTECTED]: Might be related to 2811 -- components: Library (Lib) files: doctest_problem.py messages: 70382 nosy: wysek severity: normal status: open title: doctest unable to use '...' for unicode literals versions: Python 2.5 Added file: http://bugs.python.org/file11002/doctest_problem.py ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3465 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3465] doctest unable to use '...' for unicode literals
Piotr Wysocki [EMAIL PROTECTED] added the comment: As I would like to use '...' in order not to care about some part of a unicode string containing unicode literals (using ELLIPSIS). The unicode string is inside the value of a dict returned by a function. It is working on Python 2.4.4 and not working on Python 2.5.2. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3465 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3465] doctest unable to use '...' for unicode literals
Piotr Wysocki [EMAIL PROTECTED] added the comment: I am attaching the output of doctest_problem.py on Python 2.5.2 in case it is necessary. At the moment I haven't a clue where to look for a bug. Anybody? ;) -- components: +Tests, Unicode Added file: http://bugs.python.org/file11003/doctest_problem_output.txt ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3465 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3460] PyUnicode_Join could perhaps be simpler
Antoine Pitrou [EMAIL PROTECTED] added the comment: Well the potentially dangerous function would have been PyUnicode_FromObject, but in py3k it only accepts unicode instances (either exact or subclasses), and since we are only interested in the underlying buffer we can replace those calls with PyUnicode_Check. I'll work on a patch and keep you updated. -- assignee: - pitrou ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3460 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3465] doctest unable to use '...' for unicode literals
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: This has nothing to do with doctest. Starting with your script, I get: a = f() b = repr(a) Traceback (most recent call last): File stdin, line 1, in module UnicodeEncodeError: 'ascii' codec can't encode character u'\u0105' in position 4: ordinal not in range(128) __repr__() is supposed to return a str object. In your case, I suggest to use %r instead of %s: def __repr__(self): return '%s %r' % (self.__class__.__name__, self.x) -- nosy: +amaury.forgeotdarc resolution: - invalid status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3465 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3462] test_builtin fails after test_decimal
Antoine Pitrou [EMAIL PROTECTED] added the comment: My wild uneducated guess is that it's due to a nan-like value being in the globals, and comparing unequal to itself: d = {1: float('nan')} d {1: nan} d == d False import decimal nan = decimal.Decimal('nan') d = {1: nan} d == d False -- nosy: +pitrou ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3462 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3460] PyUnicode_Join could perhaps be simpler
Antoine Pitrou [EMAIL PROTECTED] added the comment: Here is a patch. On my measurements it makes str.join() 30% to 50% faster on non-trivial input. -- keywords: +patch Added file: http://bugs.python.org/file11004/strjoin3k.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3460 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3459] optimize bytes.join()
Antoine Pitrou [EMAIL PROTECTED] added the comment: Raymond, Martin, any opinion on this? -- nosy: +loewis, rhettinger ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3459 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2538] memoryview of bytes is not readonly
Antoine Pitrou [EMAIL PROTECTED] added the comment: The patch should probably come with a test :) -- nosy: +pitrou ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2538 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3462] test_builtin fails after test_decimal
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: Bingo! doctest sets the __builtins__._ variable, and the last doctest in decimal.py (in lexicographic order) is Decimal.__round__, which ends with round(Decimal('sNaN123'), 0) Decimal('NaN123') This is the value you see in Benjamin's output. Here is a trivial patch: Index: Lib/test/regrtest.py === --- Lib/test/regrtest.py(revision 65283) +++ Lib/test/regrtest.py(working copy) @@ -647,6 +647,8 @@ def cleanup_test_droppings(testname, verbose): import shutil +__builtins__._ = None + # Try to clean up junk commonly left behind. While tests shouldn't leave # any files or directories behind, when a test fails that can be tedious # for it to arrange. The consequences can be especially nasty on Windows, -- nosy: +amaury.forgeotdarc ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3462 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3462] test_builtin fails after test_decimal
Benjamin Peterson [EMAIL PROTECTED] added the comment: On Tue, Jul 29, 2008 at 8:30 AM, Amaury Forgeot d'Arc [EMAIL PROTECTED] wrote: Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: Bingo! doctest sets the __builtins__._ variable, and the last doctest in decimal.py (in lexicographic order) is Decimal.__round__, which ends with round(Decimal('sNaN123'), 0) Decimal('NaN123') This is the value you see in Benjamin's output. Here is a trivial patch: Shouldn't this be fixed in test_decimal so it cleans properly after it's self? ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3462 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3462] test_builtin fails after test_decimal
Antoine Pitrou [EMAIL PROTECTED] added the comment: I think the cleanup should either be in regrtest.py as Amaury proposes, or in doctest itself. There's nothing wrong in decimal and its test suite. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3462 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3462] test_builtin fails after test_decimal
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: I was leaning towards the doctest should not pollute the __builtins__ module side. test_decimal might not be the only test that leaks one object outside the module. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3462 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3462] test_builtin fails after test_decimal
Benjamin Peterson [EMAIL PROTECTED] added the comment: I vote for fixing doctest then! -- components: +Library (Lib), Tests type: - behavior ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3462 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3466] urllib2 should support HTTPS connections with client keys
New submission from Marcelo Fernández [EMAIL PROTECTED]: Despite httplib does have support for HTTPS with client keys[1], urllib2 should support them too, because of the added value that urllib2 has, like cookielib automatic handling. [1]: http://code.activestate.com/recipes/117004/ However, I made a workaround: #-*- coding: utf-8 -*- import httplib import urllib2 key_file = None cert_file = None class HTTPSClientAuthConnection(httplib.HTTPSConnection): def __init__(self, host): httplib.HTTPSConnection.__init__(self, host, key_file=key_file, cert_file=cert_file) class HTTPSClientAuthHandler(urllib2.HTTPSHandler): def https_open(self, req): return self.do_open(HTTPSClientAuthConnection, req) Regards, Marcelo -- components: Library (Lib) messages: 70397 nosy: marcelo_fernandez severity: normal status: open title: urllib2 should support HTTPS connections with client keys type: feature request ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3466 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3462] test_builtin fails after test_decimal
Antoine Pitrou [EMAIL PROTECTED] added the comment: The doctest patch looks fine to me. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3462 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3462] test_builtin fails after test_decimal
Antoine Pitrou [EMAIL PROTECTED] added the comment: Well except that it would be better spelt as: __builtins__._ = None ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3462 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3462] test_builtin fails after test_decimal
Benjamin Peterson [EMAIL PROTECTED] added the comment: Ok. Thanks! Applied in r65285. -- resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3462 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3462] test_builtin fails after test_decimal
Benjamin Peterson [EMAIL PROTECTED] added the comment: On Tue, Jul 29, 2008 at 10:29 AM, Antoine Pitrou [EMAIL PROTECTED] wrote: Antoine Pitrou [EMAIL PROTECTED] added the comment: Well except that it would be better spelt as: __builtins__._ = None __builtins__ is a dict here, though. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3462 ___ -- Cheers, Benjamin Peterson There's no place like 127.0.0.1. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3462 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3462] test_builtin fails after test_decimal
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: You know what? It's a mess. - from the __main__ module, __builtins__ is a module. - in all other modules, __builtins__ is a dict. The fix is correct for most modules: ./python Lib\test\test_decimal.py but fails for ./python Lib\doctest.py ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3462 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3462] test_builtin fails after test_decimal
Antoine Pitrou [EMAIL PROTECTED] added the comment: Selon Amaury Forgeot d'Arc [EMAIL PROTECTED]: You know what? It's a mess. - from the __main__ module, __builtins__ is a module. - in all other modules, __builtins__ is a dict. (why is it so? :-O) Anyway: import builtins as b b._ = None ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3462 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3462] test_builtin fails after test_decimal
Antoine Pitrou [EMAIL PROTECTED] added the comment: Ok, I've found it: « But why is __builtins__ a module in __main__ and a dict elsewhere? Because in *interactive* mode, printing vars() would include __builtins__, which would be rather large. Code that incorrectly assumes it's always one or the other is incorrect and has always been incorrect; the wart was present when this feature first appeared. Since this has never been documented AFAIK, it's probably just been (incorrectly) reverse-engineered and copied around. » http://mail.python.org/pipermail/python-3000/2007-March/006170.html :-S ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3462 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3462] test_builtin fails after test_decimal
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: It is actually documented, at the bottom of http://docs.python.org/dev/library/__builtin__.html import builtin is the correct thing to do. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3462 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2394] [Py3k] Finish the memoryview object implementation
Stefan Behnel [EMAIL PROTECTED] added the comment: Also, the implementation does not follow the revised buffer PEP 3118. It still calls get/releasebuffer(NULL) to acquire a lock, which is no longer allowed by the buffer protocol. I think this should become a release blocker for the last beta. -- nosy: +scoder ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2394 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2394] [Py3k] Finish the memoryview object implementation
Georg Brandl [EMAIL PROTECTED] added the comment: I agree, buffer interface should be completed before going into rc phase. -- priority: critical - release blocker ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2394 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3422] sphinx.doc.autodoc: Hook for changing argspec
Georg Brandl [EMAIL PROTECTED] added the comment: Thanks, committed the patch with a few changes in r65290. Let me know if it works! -- resolution: - accepted status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3422 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2819] Full precision summation
Mark Dickinson [EMAIL PROTECTED] added the comment: See r65292 for more updates to the test-suite: I've replaced the Python version of msum by a version based on lsum in the original ASPN recipe. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2819 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3422] sphinx.doc.autodoc: Hook for changing argspec
Pauli Virtanen [EMAIL PROTECTED] added the comment: Thanks, works OK. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3422 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3467] sqlite3 path is hard coded in setup.py
New submission from Eric L. Frederich [EMAIL PROTECTED]: In setup.py, the paths that it searches for sqlite in is hard coded in a list sqlite_inc_paths. This should also search any path in either $PATH or $LD_LIBRARY_PATH. This is necessary for non-default installations of sqlite for users without root access, or for those with root access that have multiple versions installed in different locations. -- components: Installation messages: 70411 nosy: ericfrederich severity: normal status: open title: sqlite3 path is hard coded in setup.py type: compile error versions: Python 2.5 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3467 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3366] Add gamma and error functions to math module
nirinA raseliarison [EMAIL PROTECTED] added the comment: pure Python codes are posted to ASPN: http://code.activestate.com/recipes/576391/ http://code.activestate.com/recipes/576393/ i also rewrote the patch so that they don't use the high_word/low_word macros anymore. Added file: http://bugs.python.org/file11005/pymath.c.diff ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3366 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3436] csv.DictReader inconsistency
Guido van Rossum [EMAIL PROTECTED] added the comment: I know this has been closed, but perhaps the fieldnames attribute could be made into a property that reads the first line of the file if it hasn't been read yet? -- nosy: +gvanrossum ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3436 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3468] Satisfy her lovemaking desire
New submission from Guido van Rossum [EMAIL PROTECTED]: Give your lady only the very best, find out how here http://www.pinehelp.com/ -- messages: 70414 nosy: gvanrossum severity: normal status: open title: Satisfy her lovemaking desire ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3468 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3468] Satisfy her lovemaking desire
Guilherme Polo [EMAIL PROTECTED] added the comment: something going on roundup? -- nosy: +gpolo resolution: - invalid status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3468 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3467] sqlite3 path is hard coded in setup.py
Martin v. Löwis [EMAIL PROTECTED] added the comment: User with non-standard search paths should edit Modules/Setup. -- nosy: +loewis ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3467 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3468] Satisfy her lovemaking desire
Martin v. Löwis [EMAIL PROTECTED] added the comment: Looking at the message id, this came in through email. I have now trained this as spam in spambayes (which unfortunately also means that user:5 gets associated with being spam; we'll have to watch this and train potential other misclassifications also). It was a lucky shot of the spambot to guess a valid email address when sending to the report address. To make this really safe, I can't think of anything else but require PGP signing of messages (but this really belongs to tracker-discuss). -- nosy: +loewis ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3468 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2542] PyErr_ExceptionMatches must not fail
Guido van Rossum [EMAIL PROTECTED] added the comment: Ping? Anyone cares about this? ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2542 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com