[issue9898] cProfile.runctx doesn't allow sort argument

2010-09-19 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: This has already been done as part of issue9428 in r83524. -- nosy: +amaury.forgeotdarc resolution: -> out of date status: open -> closed ___ Python tracker

[issue9904] Cosmetic issues that may warrant a fix in symtable.h/c

2010-09-19 Thread Eli Bendersky
Changes by Eli Bendersky : -- title: Cosmetic issues that might be worthy a fix in symtable.h/c -> Cosmetic issues that may warrant a fix in symtable.h/c ___ Python tracker ___

[issue9904] Cosmetic issues that might be worthy a fix in symtable.h/c

2010-09-19 Thread Eli Bendersky
New submission from Eli Bendersky : The following minor issues may affect the readability of the code implementing symbol tables in Include/symtable.h and Python/symtable.c * The comment for st_global in symtable.h says: "borrowed ref to st_top->st_symbols. typo? (st_top->ste_symbols)

[issue9552] ssl build under Windows always rebuilds OpenSSL

2010-09-19 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: This is the patch I'm thinking of. I confirmed this works on VS8.0. (After replaced "..\\.." with "..\\..\\..") E:\PYTHON~1\py3k\PC\VS8.0>python_d.exe build_ssl.py Release Win32 -a Found a working perl at 'C:\Perl\bin\perl.exe' Found an SSL directory at '..\

[issue9552] ssl build under Windows always rebuilds OpenSSL

2010-09-19 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: - only when + when P.S. I cannot figure out how to solve this error. http://www.python.org/dev//buildbot/builders/x86%20Windows7%203.x/builds/1593/steps/compile/logs/stdio -- ___ Python tracker

[issue9552] ssl build under Windows always rebuilds OpenSSL

2010-09-19 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I'll revert my commits because I noticed after perl source like openssl-1.0.0a/crypto/x86cpuid.pl was modified, unnecessary rebuild happened again. Appropriate fix will be "only copies *.asm if there are not in tmp32/" as comments in PCBuild/build_ssl.py sai

[issue9897] multiprocessing problems

2010-09-19 Thread hume
hume added the comment: ok, I refill this to fix the un-plesant words problem. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue9899] tkinter test_font fails on OS X with Aqua Tk

2010-09-19 Thread Ned Deily
Ned Deily added the comment: r84865 for Issue1730136 introduced a new tkinter test, test_font. As it stands, the test fails on OS X 10.6 when Python is built with Aqua Tk, at least with either the Apple-supplied 8.5 or the ActiveState 8.5 (I haven't tried with any of the Aqua 8.4 version).

[issue9786] Native TLS support for pthreads

2010-09-19 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Committed as revision 84914 -- resolution: -> accepted status: open -> closed ___ Python tracker ___ __

[issue9360] nntplib cleanup

2010-09-19 Thread R. David Murray
R. David Murray added the comment: Gah. I reviewed patch4, didn't noticed today's update :( -- ___ Python tracker ___ ___ Python-bugs

[issue9360] nntplib cleanup

2010-09-19 Thread R. David Murray
R. David Murray added the comment: I tested this against my existing py3k nttp client code. Why is it a good thing to make file a keyword only parameter? But given that it is, line 720 needs to use it as such, which omission means your missing at least one test :) On line 193 you index fmt,

[issue9903] test_concurrent_futures writes on stderr

2010-09-19 Thread Antoine Pitrou
New submission from Antoine Pitrou : test_concurrent_futures writes the following on stderr: exception calling callback for Traceback (most recent call last): File "/Users/buildbot/buildarea/3.x.parc-leopard-1/build/Lib/concurrent/futures/_base.py", line 267, in _invoke_callbacks callba

[issue8432] buildbot: test_send_signal of test_subprocess failure

2010-09-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: The fix succeeded on the "sparc Debian 3.x" buildbot while test_subprocess had been failing consistently before. -- ___ Python tracker ___

[issue9902] test_undecodable_env failure

2010-09-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: Fixed! -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list m

[issue8432] buildbot: test_send_signal of test_subprocess failure

2010-09-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: The test fails mostly on very slow machines (not only BSD ones, but also the Debian sparc buildbot). Therefore, I've attempted a fix in r84910 by relaxing timings, and simply skipping the test if it seems we couldn't send the signal in time. -- _

[issue1838] Ctypes C-level infinite recursion

2010-09-19 Thread Alex
Alex added the comment: No need to solve the halting problem, just to detect a cycle in data. I've got a patch, however it requires objects to be hashable. Another case for identity dict I suppose :) Not sure if that's a reasonable requirement, in any event, proof of concept patch, against

[issue9902] test_undecodable_env failure

2010-09-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: Fix attempted in r84912. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue9902] test_undecodable_env failure

2010-09-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: It can be reproduced quite easily with the right locale: $ LANG=fr_FR.iso8859-1 ./python -m test.regrtest -v test_subprocess -- ___ Python tracker

[issue9902] test_undecodable_env failure

2010-09-19 Thread Antoine Pitrou
New submission from Antoine Pitrou : Under the "x86 debian parallel 3.x" buildbot, there's the following failure: == FAIL: test_undecodable_env (test.test_subprocess.POSIXProcessTestCase)

[issue9900] Threading Bug or misuse of the api ?

2010-09-19 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- resolution: -> invalid ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue9900] Threading Bug or misuse of the api ?

2010-09-19 Thread Rob Watson
Rob Watson added the comment: it seemed changing PyEval_ReleaseLock() to PyThreadState_DeleteCurrent() has fixed my problem. Thanks -- resolution: invalid -> ___ Python tracker ___

[issue9901] GIL destruction can fail

2010-09-19 Thread Antoine Pitrou
New submission from Antoine Pitrou : test_finalize_with_trace (in test_threading) sometimes fails because of failing to destroy the GIL (in _PyEval_FiniThreads()). This can be reproduced quite reliably by launching several copies in parallel: $ ./python -m test.regrtest -j10 -F test_threading

[issue9900] Threading Bug or misuse of the api ?

2010-09-19 Thread Martin v . Löwis
Martin v. Löwis added the comment: Please include a message when closing an issue to indicate why it's closed. AFAICT, this is indeed incorrect usage of the API: you should have used PyEval_SaveThread instead of PyEval_ReleaseLock. -- nosy: +loewis resolution: -> invalid ___

[issue9900] Threading Bug or misuse of the api ?

2010-09-19 Thread Rob Watson
Changes by Rob Watson : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue9900] Threading Bug or misuse of the api ?

2010-09-19 Thread Rob Watson
Changes by Rob Watson : -- status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue9900] Threading Bug or misuse of the api ?

2010-09-19 Thread Rob Watson
Changes by Rob Watson : -- resolution: invalid -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue9900] Threading Bug or misuse of the api ?

2010-09-19 Thread Rob Watson
Changes by Rob Watson : -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue9900] Threading Bug or misuse of the api ?

2010-09-19 Thread Rob Watson
New submission from Rob Watson : Is the below a bug or a misuse of the api ? This was compiled with visual studio 2008 and python26 64bit void testfunction() { for (int x = 1;x <= 10;x++) { PyGILState_STATE gstate = PyGILState_Ensure();

[issue1838] Ctypes C-level infinite recursion

2010-09-19 Thread Guido van Rossum
Guido van Rossum added the comment: So has anyone got an idea on how to fix this without solving the halting problem? -- ___ Python tracker ___ _

[issue4844] ZipFile doesn't range check in _EndRecData()

2010-09-19 Thread Alan McIntyre
Alan McIntyre added the comment: I had to look up the abbreviation (Easier to Ask Forgiveness than Permission), but that does sound like a good idea. Thanks for mentioning it. :-) -- ___ Python tracker __

[issue9119] Python download page needs to mention crypto code in Windows installer

2010-09-19 Thread Georg Brandl
Georg Brandl added the comment: Not quite everything (index.html and download.html are special, in that they're not generated from reST), but otherwise that is correct. -- nosy: +georg.brandl ___ Python tracker __

[issue9252] PyImport_Import calls __import__ with dummy fromlist

2010-09-19 Thread Brett Cannon
Brett Cannon added the comment: Fixed in r84908. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bug

[issue9360] nntplib cleanup

2010-09-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: > To make the distinction easier to remember, would it help if the > methods that are currently set to return bytes instead accepted the > typical encoding+errors parameters, with parallel *b APIs to get at > the raw bytes? Not really, no. For raw messages, whi

[issue4844] ZipFile doesn't range check in _EndRecData()

2010-09-19 Thread Charles-Francois Natali
Charles-Francois Natali added the comment: Following EAFP principle, it would be better - cleaner and more efficient - to put the stuct.unpack inside a try/except clause than checking the lengths beforehand. -- nosy: +neologix ___ Python tracker <

[issue9360] nntplib cleanup

2010-09-19 Thread Nick Coghlan
Nick Coghlan added the comment: To make the distinction easier to remember, would it help if the methods that are currently set to return bytes instead accepted the typical encoding+errors parameters, with parallel *b APIs to get at the raw bytes? My concern with the current API is that there

[issue9899] [REGRESSION] test_tk broken on MacOSX 10.6

2010-09-19 Thread Ismail Donmez
New submission from Ismail Donmez : py3k branch, revision 84907 == ERROR: test_font_eq (tkinter.test.test_tkinter.test_font.FontTest) -- Traceback (most recent

[issue2090] __import__ with fromlist=

2010-09-19 Thread Brett Cannon
Brett Cannon added the comment: I replied to the Stack Overflow question. I should also mention that importlib is on PyPI and compatible back to PYthon 2.3. I still plan to get to this some day, but I don't view this as a critical fix, just a nice thing to do for folks. -- _

[issue9119] Python download page needs to mention crypto code in Windows installer

2010-09-19 Thread Éric Araujo
Éric Araujo added the comment: Yes, everything under docs.python.org is generated from files from the Doc directory of a CPython checkout. s/.html/.rst/ and you have your filename. -- ___ Python tracker _

[issue9898] cProfile.runctx doesn't allow sort argument

2010-09-19 Thread Ram Rachum
New submission from Ram Rachum : The `cProfile.runctx` function currently doesn't allow using the `sort` argument. For some reason the `sort` argument is allowed in `run` but not in `runctx`. Attached is a patch that allows using `sort` in `runctx`. -- components: Library (Lib) files:

[issue8998] add crypto routines to stdlib

2010-09-19 Thread Antoine Pitrou
Changes by Antoine Pitrou : Removed file: http://bugs.python.org/file18928/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue8998] add crypto routines to stdlib

2010-09-19 Thread Martin v . Löwis
Martin v. Löwis added the comment: >> Unless "base64" is an OpenSSL trademark, this is FUD. > > The license clearly states: "All advertising materials mentioning > features or use of this software". Do you somehow disagree that > base64 is a feature of the OpenSSL library? What specific "adver

[issue9360] nntplib cleanup

2010-09-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is the current state of the cleanup work. Coding is roughly finished; most methods are unit-tested. The documentation remains to be done. Review welcome. -- stage: -> patch review Added file: http://bugs.python.org/file18931/nntplib_cleanup5.patc

[issue9897] multiprocessing problems

2010-09-19 Thread Jesse Noller
Jesse Noller added the comment: hume; filing this again doesn't help. I closed issue 9851 as a duplicate of this for you. -- ___ Python tracker ___ _

[issue9851] multiprocessing socket timeout will break client

2010-09-19 Thread Jesse Noller
Jesse Noller added the comment: Duplicate; 9897 -- resolution: -> duplicate status: open -> closed ___ Python tracker ___ ___ Python-

[issue1800] ctypes callback fails when called in Python with array argument

2010-09-19 Thread Lenard Lindstrom
Lenard Lindstrom added the comment: I will check it out. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue1838] Ctypes C-level infinite recursion

2010-09-19 Thread Alex
Alex added the comment: I concur with Daniel, this strikes me as a legitimate bug. Crashing is obviously possibly by calling into arbitrary C code, but in this case control never leaves the runtime. -- nosy: +alex status: pending -> open ___ Pytho

[issue9880] Python 2.7 Won't Build: SystemError: unknown opcode

2010-09-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: You can look at Python/compile.c (the ast-to-bytecode compiler), Python/peephole.c (the bytecode optimizer), Python/marshal.c (the on-disk bytecode serializer/unserialize). First step could be to actually disable the optimizer (see PyCode_Optimize in peephol

[issue9897] multiprocessing problems

2010-09-19 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: -> jnoller nosy: +jnoller ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue9880] Python 2.7 Won't Build: SystemError: unknown opcode

2010-09-19 Thread Tom Browder
Tom Browder added the comment: I'm getting no interest from the gcc group at the moment. I would like to help track down the bug and will nose around the Python source to zero in on where the problem is for detailed debugging. Can anyone point me to the key files that concern the byte compi

[issue8998] add crypto routines to stdlib

2010-09-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: > pyOpenSSL is stable, in production use and > has a decent API. The ssl module is good enough for HTTPS client > use. pyOpenSSL provides a robust server side implementation with > all the required certificate and context handling needed for this. > > We could

[issue8998] add crypto routines to stdlib

2010-09-19 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Antoine Pitrou wrote: > > Antoine Pitrou added the comment: > >> It may be worthwhile investigating adding the EVP interface >> from evpy (with the ctypes bindings converted to real C wrappers) >> to pyOpenSSL and then adding the pyOpenSSL package to the

[issue8998] add crypto routines to stdlib

2010-09-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: > It may be worthwhile investigating adding the EVP interface > from evpy (with the ctypes bindings converted to real C wrappers) > to pyOpenSSL and then adding the pyOpenSSL package to the stdlib. pyOpenSSL being LGPL'ed, I'm not sure this is possible. On the

[issue9786] Native TLS support for pthreads

2010-09-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: Patch looks good to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue1838] Ctypes C-level infinite recursion

2010-09-19 Thread Mark Lawrence
Mark Lawrence added the comment: I'm not convinced that this needs doing, so I'll close in a couple of weeks unless anyone objects. -- nosy: +BreamoreBoy status: open -> pending ___ Python tracker

[issue1827] svnversion_init() doesn't support svn urls in sandbox/trunk

2010-09-19 Thread Mark Lawrence
Mark Lawrence added the comment: Is this ever likely to happen given the switch to Mercurial, or is that a different scenario to this? -- nosy: +BreamoreBoy ___ Python tracker _

[issue1800] ctypes callback fails when called in Python with array argument

2010-09-19 Thread Mark Lawrence
Mark Lawrence added the comment: Anybody? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue1794] Hot keys must work in any keyboard layout

2010-09-19 Thread Mark Lawrence
Mark Lawrence added the comment: >From msg86386 "Nevertheless, after reading your comments I came to the >conclusion that doing what you want is very unlikely to happen." so closing. -- nosy: +BreamoreBoy ___ Python tracker

[issue1785] "inspect" gets broken by some descriptors

2010-09-19 Thread Mark Lawrence
Mark Lawrence added the comment: I can't apply the patch to any current SVN version. -- nosy: +BreamoreBoy ___ Python tracker ___ ___

[issue1783] nonexistent data items declared as exports in sysmodule.h

2010-09-19 Thread Mark Lawrence
Mark Lawrence added the comment: The 1st declaration still exists, the 2nd has been removed. -- nosy: +BreamoreBoy ___ Python tracker ___

[issue1778] SyntaxError.offset sometimes wrong

2010-09-19 Thread Mark Lawrence
Mark Lawrence added the comment: This will go nowhere until someone supplies a patch. I'm assuming unit tests can be built using the attached test file. -- nosy: +BreamoreBoy stage: unit test needed -> needs patch versions: +Python 2.7, Python 3.2 -Python 2.6

[issue8998] add crypto routines to stdlib

2010-09-19 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Just another data point for the discussion: The PSF is currently funding the effort to port pyOpenSSL to Python 3.x and the port is nearly finished. It may be worthwhile investigating adding the EVP interface from evpy (with the ctypes bindings converted t

[issue1763] Winpath module - easy access to Windows directories like My Documents

2010-09-19 Thread Mark Lawrence
Mark Lawrence added the comment: No reply to msg110596. -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing

[issue1744] readline module - set/get quote delimiters

2010-09-19 Thread Mark Lawrence
Mark Lawrence added the comment: Can a committer review this please. Can't test it myself as I don't have a *NIX box, sorry. -- nosy: +BreamoreBoy stage: -> patch review ___ Python tracker __

[issue1738] filecmp.dircmp does exact match only

2010-09-19 Thread Mark Lawrence
Mark Lawrence added the comment: Patch worked fine with 2.7. I reworked it for SVN trunk but got this failure. FAILED (failures=1) Traceback (most recent call last): File "test_filecmp.py", line 179, in test_main() File "test_filecmp.py", line 176, in test_main support.run_unittes

[issue2090] __import__ with fromlist=

2010-09-19 Thread Aaron Sterling
Changes by Aaron Sterling : -- versions: +Python 2.7, Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8998] add crypto routines to stdlib

2010-09-19 Thread Georg Brandl
Georg Brandl added the comment: > The license clearly states: "All advertising materials mentioning > features or use of this software". Do you somehow disagree that base64 > is a feature of the OpenSSL library? > > http://www.openssl.org/docs/crypto/BIO_f_base64.html That's funny. Do you think

[issue2090] __import__ with fromlist=

2010-09-19 Thread Aaron Sterling
Aaron Sterling added the comment: FWIW, I also get this behavior on 2.6.5 and there are claims that it occurs on 2.6.4 and 3.1.1. see http://stackoverflow.com/questions/3745221/import-calls-init-py-twice/3745273#3745273 -- nosy: +Aaron.Sterling versions: +Python 2.6 -Python 2.7 _

[issue9897] multiprocessing problems

2010-09-19 Thread hume
New submission from hume : when use multiprocessing managers, while use socket to communicate between server process and client process, if I used the global socket timeout feature(no matter how large the value is) the client will always say File "c:\python27\lib\multiprocessing\connection.p

[issue9896] Introspectable range objects

2010-09-19 Thread Daniel Urban
Daniel Urban added the comment: > What is the use case for this? The basic idea was, that in Python almost everything is introspectable, so why range objects aren't. It was pretty straightforward to implement it, so I've done it (actually when I was working on rangeobject.c, I was surprised

[issue9552] ssl build under Windows always rebuilds OpenSSL

2010-09-19 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Thanks. I've committed in r84902(py3k). -- resolution: -> fixed status: open -> closed versions: +Python 2.7, Python 3.1 ___ Python tracker

[issue9884] The 4th parameter of method always None or 0 on x64 Windows.

2010-09-19 Thread Owen
Owen added the comment: Note: This issue also occurs on other 64 bit windows OS(i.e. windows xp 64bit) Load "testPy2.dll" needs vc++ runtime library (http://download.microsoft.com/download/2/d/6/2d61c766-107b-409d-8fba-c39e61ca08e8/vcredist_x64.exe) Update "testPy2.dll", use this to reproduce