[issue8693] Py_Initialize: can't initialize sys standard streams

2010-05-11 Thread Muhammad Bashir Al-Noimi
Muhammad Bashir Al-Noimi added the comment: Thanks and I'm very sorry for disturbance I'll try to get help through mailing list you've mentioned -- ___ Python tracker ___ __

[issue8693] Py_Initialize: can't initialize sys standard streams

2010-05-11 Thread Martin v . Löwis
Martin v. Löwis added the comment: Please trust me that this *is* a duplicate issue. This bug tracker is not a place to get help; it is a place to report bugs. The bug you are reporting has been reported before. Other duplicate reports are #6995, #7496, #7600, #8120. If you want help, contac

[issue8694] python3 FAQ mentions unicode()

2010-05-11 Thread Nathan Phillip Brink
New submission from Nathan Phillip Brink : http://docs.python.org/py3k/faq/programming.html#what-does-unicodeerror-ascii-decoding-encoding-error-ordinal-not-in-range-128-mean When I try to use unicode() from within python3, the call fails. I would actually expect that the FAQ should contain mor

[issue8693] Py_Initialize: can't initialize sys standard streams

2010-05-11 Thread Muhammad Bashir Al-Noimi
Muhammad Bashir Al-Noimi added the comment: For fixing this issue I tried to following: 1) Installed python-2.6.3.msi 2) Downloaded cp720.py, genwincodec.py from http://svn.python.org/view?rev=74000&view=rev 3) Copied cp720.py it to Python31\Lib\encodings 4) Run Python31\python.exe I got the f

[issue8693] Py_Initialize: can't initialize sys standard streams

2010-05-11 Thread Muhammad Bashir Al-Noimi
Muhammad Bashir Al-Noimi added the comment: humm I re-read issue1616979 I'm confused is it really duplicate issue? if yes I couldn't find the way for fixing in issue1616979 PS I'm newbie in Python and I faced this problem in first day I use Python so please forgive me if my discussion is stu

[issue8693] Py_Initialize: can't initialize sys standard streams

2010-05-11 Thread Muhammad Bashir Al-Noimi
Muhammad Bashir Al-Noimi added the comment: This is the file I'm adding for removing warning message which is not the reason of crashing -- Added file: http://bugs.python.org/file17303/cp720.py ___ Python tracker

[issue8693] Py_Initialize: can't initialize sys standard streams

2010-05-11 Thread Muhammad Bashir Al-Noimi
Changes by Muhammad Bashir Al-Noimi : -- status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8693] Py_Initialize: can't initialize sys standard streams

2010-05-11 Thread Muhammad Bashir Al-Noimi
Muhammad Bashir Al-Noimi added the comment: No No, this isn't duplicated issue because if I copied cp720.py to Python31\Lib\encodings Python still crashed and gives me the following error Fatal Python error: Py_Initialize: can't initialize sys standard streams TypeError: 'NoneType' objec

[issue8693] Py_Initialize: can't initialize sys standard streams

2010-05-11 Thread Martin v . Löwis
Martin v. Löwis added the comment: This is a duplicate of issue1616979. -- nosy: +loewis resolution: -> duplicate status: open -> closed superseder: -> cp720 encoding map ___ Python tracker __

[issue8692] Use divide-and-conquer for faster factorials

2010-05-11 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Tue, May 11, 2010 at 10:19 PM, Alexander Belopolsky wrote: .. > Similarly, while unlikely to improve performance, I would prefer not > to use any bit-trick implementation of ilog2 (in a separate function, > of course) instead of calling floating point

[issue8693] Py_Initialize: can't initialize sys standard streams

2010-05-11 Thread Muhammad Bashir Al-Noimi
Muhammad Bashir Al-Noimi added the comment: I uninstalled python-2.6.3 before installing python-3.1.2.msi -- ___ Python tracker ___ __

[issue8693] Py_Initialize: can't initialize sys standard streams

2010-05-11 Thread Muhammad Bashir Al-Noimi
New submission from Muhammad Bashir Al-Noimi : After installing python-3.1.2.msi I'm not able to run to python.exe at all because it gives me the following error message: Fatal Python error: Py_Initialize: can't initialize sys standard streams LookupError: unknown encoding: cp720 This applicat

[issue8692] Use divide-and-conquer for faster factorials

2010-05-11 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Tue, May 11, 2010 at 9:07 PM, Daniel Stutzbach wrote: > > Daniel Stutzbach added the comment: > > On Tue, May 11, 2010 at 7:38 PM, Alexander Belopolsky > wrote: >> Speaking of micro-optimizations, did you consider a better than naive >> algorithm for

[issue8692] Use divide-and-conquer for faster factorials

2010-05-11 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: On Tue, May 11, 2010 at 7:38 PM, Alexander Belopolsky wrote: > Speaking of micro-optimizations, did you consider a better than naive > algorithm for "Count the number of set bits in n" in your patch? > HAKMEM 169 comes to mind and being a divide and conquer t

[issue8692] Use divide-and-conquer for faster factorials

2010-05-11 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: On Tue, May 11, 2010 at 7:15 PM, Alexander Belopolsky wrote: > The main value in setting a theoretically justified limit is that > overflow exception can carry a meaningful message, e.g. "factorial > result would have too many digits", rather than an unhelpfu

[issue8692] Use divide-and-conquer for faster factorials

2010-05-11 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Tue, May 11, 2010 at 7:42 PM, Daniel Stutzbach wrote: .. > Isn't that adding an extra check in every case ... Speaking of micro-optimizations, did you consider a better than naive algorithm for "Count the number of set bits in n" in your patch? HAKMEM

[issue8692] Use divide-and-conquer for faster factorials

2010-05-11 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Tue, May 11, 2010 at 7:42 PM, Daniel Stutzbach wrote: .. > Isn't that adding an extra check in every case to speed up a > you-can't-seriously-expect-that-to-work corner case? > The check is cheap - just a machine integer comparison, so I would not eve

[issue8688] distutils sdist is too laze w.r.t. recalculating MANIFEST

2010-05-11 Thread Dan Buch
Changes by Dan Buch : -- nosy: +meatballhat ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue8680] Add a sandbox in Distutils2

2010-05-11 Thread Dan Buch
Changes by Dan Buch : -- nosy: +meatballhat ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue8679] write a distutils to distutils2 converter

2010-05-11 Thread Dan Buch
Changes by Dan Buch : -- nosy: +meatballhat ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue8681] Make the zlib module emit more detailed error messages

2010-05-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed in r81098 (2.7), r81099 (2.6), r81100 (3.2), r81101 (3.1). Thanks! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue8692] Use divide-and-conquer for faster factorials

2010-05-11 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: On Tue, May 11, 2010 at 5:33 PM, Alexander Belopolsky wrote: > It seems to me that the value of n for which number of digits will exceed > sys.maxsize can be estimated fairly accurately using Stirling formula.  Only > two values are relevant in practice - o

[issue8672] Error decompressing valid zlib data

2010-05-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: The patch was committed in r81094 (2.7), r81095 (2.6), r81096 (3.2) and r81097 (3.1). Thank you! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue8692] Use divide-and-conquer for faster factorials

2010-05-11 Thread Mark Dickinson
Mark Dickinson added the comment: On Tue, May 11, 2010 at 11:33 PM, Alexander Belopolsky wrote: > It seems to me that the value of n for which number of digits will exceed > sys.maxsize can be estimated fairly accurately using Stirling formula.  Only > two values are relevant in practice - on

[issue8683] HPUX Segmentation fault in Modules/gcmodule.c -- if (!gc_list_is_empty(from)) {

2010-05-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, I'm closing. Thank you for testing Python, anyway! -- resolution: -> invalid status: open -> closed ___ Python tracker ___

[issue8256] TypeError: bad argument type for built-in operation

2010-05-11 Thread Filip Gruszczyński
Filip Gruszczyński added the comment: Amaury, could you elaborate a little more on this? I am pretty new to all this and I would happily write the patch, if only you could give me some clue on how I should approach this. -- ___ Python tracker

[issue7897] Support parametrized tests in unittest

2010-05-11 Thread Nick Coghlan
Nick Coghlan added the comment: No, I'm saying I don't see summarising the parameterised tests separately from the overall test run as a particularly important feature, since you can test multiple parameters in a single test manually now. The important part is for the framework to be able to

[issue8692] Use divide-and-conquer for faster factorials

2010-05-11 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I also started to wonder if a tighter upper limit for an acceptable argument can be found. In discussion of issue2138 I saw the following exchange: """ > Should there be some upper limit on the argument math.factorial would take? I'd say not. Any such

[issue8692] Use divide-and-conquer for faster factorials

2010-05-11 Thread Mark Dickinson
Mark Dickinson added the comment: Yes, I'm interested in seeing the pure Python version. It could go into test_math, and would be a useful form of documentation. Are there sufficient tests already in test_math.py to exercise the code thoroughly, or are more needed? I'll try to find time to

[issue8692] Use divide-and-conquer for faster factorials

2010-05-11 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: On Tue, May 11, 2010 at 4:18 PM, Alexander Belopolsky wrote: > While the error message is wrong in both cases, I think OverflowError is a > better exception in this case and there should not be a difference between > math.factorial(2.**63) and math.factoria

[issue8016] Support for cp858

2010-05-11 Thread Tim Hatch
Tim Hatch added the comment: Uploading corrected diff -- the old one missed a couple of instances of DOTLESS I -> EURO. -- versions: +Python 2.7 Added file: http://bugs.python.org/file17301/cp858.diff ___ Python tracker

[issue3704] cookielib doesn't handle URLs with / in parameters

2010-05-11 Thread R. David Murray
R. David Murray added the comment: I don't expect anything; I had written that it looked OK to me but apparently I accidentally deleted that text before posting. But I'm not someone who has ever programmed using cookielib so I wouldn't expect my opinion to count for too much. -- __

[issue8692] Use divide-and-conquer for faster factorials

2010-05-11 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I've noticed that your patch changes >>> math.factorial(2.**63) Traceback (most recent call last): File "", line 1, in OverflowError: Python int too large to convert to C long to >>> math.factorial(2.**63) Traceback (most recent call last): File "

[issue779285] Carbon Event ReceiveNextEvent

2010-05-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: I have the strong impression that Carbon is no longer used (or is being phased out) in modern Mac ports of Python. Reopen is this is wrong and there is a problem in 2.6,7 or 3.1,2. -- nosy: +tjreedy resolution: -> out of date status: open -> closed

[issue8575] Update/reorganize _winreg documentation

2010-05-11 Thread Brian Curtin
Brian Curtin added the comment: I should also note that the 2.6 and 3.1 commits also exposed the *ReflectionKey documentation. That documentation was added as part of a feature for 2.7/3.2, but those documentation pieces should have been backported on their own but were not. --

[issue7152] urllib2.build_opener() skips ProxyHandler

2010-05-11 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 2.5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue2620] Multiple buffer overflows in unicode processing

2010-05-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: Neal committed changes for 2.4,2.5, so I removed those. 3.0 is dead. Is this an issue for 3.1,3.2 or should it be closed? -- nosy: +tjreedy ___ Python tracker _

[issue8672] Error decompressing valid zlib data

2010-05-11 Thread Gregory P. Smith
Gregory P. Smith added the comment: patch looks good. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue5219] IDLE/Tkinter: edit win stops updating when tooltip is active

2010-05-11 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 3.0 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue2122] mmap.flush does not check for errors on windows

2010-05-11 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 2.7, Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1621] Do not assume signed integer overflow behavior

2010-05-11 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 2.5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue1621] Do not assume signed integer overflow behavior

2010-05-11 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 2.7, Python 3.2 -Python 2.5, Python 3.0 ___ Python tracker ___ ___ Python-bugs-list ma

[issue4188] Lib/threading.py causes infinite recursion when running as verbose

2010-05-11 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.2 -Python 3.0 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1598083] Top-level exception handler writes to stdout unsafely

2010-05-11 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 2.7, Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue5945] PyMapping_Check returns 1 for lists

2010-05-11 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.2 -Python 3.0 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4608] urllib.request.urlopen does not return an iterable object

2010-05-11 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.2 -Python 3.0 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1669539] Change (fix!) os.path.isabs() semantics on Win32

2010-05-11 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 2.7, Python 3.1, Python 3.2 -Python 3.0 ___ Python tracker ___ ___ Python-bugs-list

[issue1646068] Dict lookups fail if sizeof(Py_ssize_t) < sizeof(long)

2010-05-11 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 2.7, Python 3.1, Python 3.2 -Python 3.0 ___ Python tracker ___ ___ Python-bugs-list

[issue1599254] mailbox: other programs' messages can vanish without trace

2010-05-11 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue8681] Make the zlib module emit more detailed error messages

2010-05-11 Thread Gregory P. Smith
Gregory P. Smith added the comment: zliberrors.patch looks good to me. On Mon, May 10, 2010 at 3:37 PM, Antoine Pitrou wrote: > > New submission from Antoine Pitrou : > > This is a patch to use our own error descriptions when the zlib doesn't > provide anything in particular. It would have ma

[issue1451466] reading very large files

2010-05-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: Is this still an issue for 2.7? -- nosy: +tjreedy ___ Python tracker ___ ___ Python-bugs-list mai

[issue3699] test_bigaddrspace broken

2010-05-11 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.2 -Python 3.0 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1397] mysteriously failing test_bsddb3 threading test in other threads

2010-05-11 Thread Gregory P. Smith
Gregory P. Smith added the comment: bsddb3 isn't in py3k. -- priority: high -> normal versions: -Python 2.5, Python 3.1, Python 3.2 ___ Python tracker ___ __

[issue5464] msgfmt.py does not work with plural form

2010-05-11 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue8575] Update/reorganize _winreg documentation

2010-05-11 Thread Brian Curtin
Brian Curtin added the comment: Committed in r81088-r81091. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue2437] Distutils runtime_library_dirs broken on Windows

2010-05-11 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.2 -Python 2.3, Python 3.0 ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue886488] WinPython 2.3.3 crashes using popen2 to spawn lots of child

2010-05-11 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue5180] 3.1 cannot unpickle 2.7-created pickle

2010-05-11 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.2 -Python 3.0 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue3657] pickle can pickle the wrong function

2010-05-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: 'works for me' contradicts 'open', so I unset that -- nosy: +tjreedy resolution: works for me -> versions: +Python 2.7 ___ Python tracker ___ _

[issue1868] threading.local doesn't free attrs when assigning thread exits

2010-05-11 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 2.7, Python 3.1, Python 3.2 -Python 3.0 ___ Python tracker ___ ___ Python-bugs-list ma

[issue1615] descriptor protocol bug

2010-05-11 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 2.7 -Python 2.5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1745035] DoS smtpd vulnerability

2010-05-11 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 2.7, Python 3.1, Python 3.2 -Python 3.0 ___ Python tracker ___ ___ Python-bugs-list

[issue3710] Reference leak in thread._local

2010-05-11 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 2.7, Python 3.1, Python 3.2 -Python 3.0 ___ Python tracker ___ ___ Python-bugs-list ma

[issue3006] subprocess.Popen causes socket to remain open after close

2010-05-11 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 2.7, Python 3.1, Python 3.2 -Python 3.0 ___ Python tracker ___ ___ Python-bugs-list ma

[issue1397] mysteriously failing test_bsddb3 threading test in other threads

2010-05-11 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 2.7, Python 3.1, Python 3.2 -Python 3.0 ___ Python tracker ___ ___ Python-bugs-list ma

[issue2716] Reimplement audioop because of copyright issues

2010-05-11 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 2.7, Python 3.1, Python 3.2 -Python 3.0 ___ Python tracker ___ ___ Python-bugs-list ma

[issue965065] document docs.python.org in PEP-101

2010-05-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: PEP 101 now says ___ If this is a final release, also unpack the HTML docs to /data/ftp.python.org/pub/docs.python.org/release/X.Y[.Z]. ___ If this is a major release: Tell the DE to adapt redirects for docs.python.org/X.Y in the Apach

[issue4653] Patch to fix typos for Py3K

2010-05-11 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.2 -Python 3.0 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8692] Use divide-and-conquer for faster factorials

2010-05-11 Thread Daniel Stutzbach
New submission from Daniel Stutzbach : (Making an educated guess about who to add to the Nosy list) Attached is a patch to improve math.factorial by using a divide-and-conquer algorithm. The old algorithm performs n-1 multiplications, mostly on numbers with a very large number of digits. The

[issue8691] Doc: left alignment is not the default for numbers

2010-05-11 Thread Terry J. Reedy
New submission from Terry J. Reedy : As reported on python-list by Alan G Isaac, Lib Ref 6.1.3.1. Format Specification Mini-Language, for instance http://docs.python.org/dev/py3k/library/string.html#formatstrings wrongly says in the alignment section "'<'Forces the field to be left-aligned

[issue3704] cookielib doesn't handle URLs with / in parameters

2010-05-11 Thread John J Lee
John J Lee added the comment: What specific breakage do you expect resulting from my patch being backported? There is no behaviour change here, except to the minimal extent that all bug fixes involve behaviour change. This seems a clear-cut backport candidate. It's not a surprise to me that

[issue8689] sqlite3 parameter substitution breaks with multiple parameters

2010-05-11 Thread angri
Changes by angri : -- nosy: +angri ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailma

[issue8683] HPUX Segmentation fault in Modules/gcmodule.c -- if (!gc_list_is_empty(from)) {

2010-05-11 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: Using OPT="-O1" fixes this issue. Please feel free to close it. -- ___ Python tracker ___ ___ Py

[issue8690] multiprocessing.dummy.Queue does not expose same interface as multiprocessing.Queue

2010-05-11 Thread Jason Baker
New submission from Jason Baker : The multiprocessing.dummy.Queue class is merely an import of Queue.Queue. There are a few methods that this does not provide however: close, join_thread, and cancel_join_thread. I don't know what the best way to handle this is, but it should be pretty trivi

[issue8678] crashers in rgbimg

2010-05-11 Thread Brett Cannon
Brett Cannon added the comment: Because it's a crasher it could still be patched if someone chose to do the work. -- components: +Extension Modules ___ Python tracker ___ __

[issue8683] HPUX Segmentation fault in Modules/gcmodule.c -- if (!gc_list_is_empty(from)) {

2010-05-11 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: I am using "cc: HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]" .. with the following options. cc +DD64 -Ae -D_REENTRANT +Z -c -g -DNDEBUG -O -I. -IInclude -I./Include -DPy_BUILD_CORE -o Modules/gcmodule.o Modules/gcmodule.c So that is +O2 level.

[issue1641] asyncore delayed calls feature

2010-05-11 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: On Tue, May 11, 2010 at 11:55 AM, Giampaolo Rodola' wrote: > Moreover, reset() and delay() methods are not implemented in sched. > > Other problems which comes to mind are: you can't easily know whether a call > has already been cancelled, you can't manually

[issue8683] HPUX Segmentation fault in Modules/gcmodule.c -- if (!gc_list_is_empty(from)) {

2010-05-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Still debugging it. In gcmodule.c:collect(..) the value of the > variable `generation` is 80 - shouldn't it be less than > NUM_GENERATIONS (3)? Certainly. Have you tried using different optimization options? Which compiler are you using? --

[issue8683] HPUX Segmentation fault in Modules/gcmodule.c -- if (!gc_list_is_empty(from)) {

2010-05-11 Thread srid
srid added the comment: Still debugging it. In gcmodule.c:collect(..) the value of the variable `generation` is 80 - shouldn't it be less than NUM_GENERATIONS (3)? -- nosy: +ronaldoussoren ___ Python tracker _

[issue1641] asyncore delayed calls feature

2010-05-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Adding a call: > > scheduler = sched.scheduler(time.time, time.sleep) > scheduler.enter(10, 1, function, (arg,)) > > ...vs: > > asyncore.call_later(10, function, arg) I don't really see the difference. How hard it is to build a scheduler object at startup

[issue1641] asyncore delayed calls feature

2010-05-11 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: > Let the user leverage the existing scheduler API. Cut out > scheduled_task and call_later, which just wraps the scheduler API. > The user can simply call scheduled_tasks.enter() or > scheduled_tasks.cancel(). It's one less API for them to learn and >

[issue8689] sqlite3 parameter substitution breaks with multiple parameters

2010-05-11 Thread Simon Jagoe
New submission from Simon Jagoe : I have been using sqlalchemy and sqlamp in a project for a while with Python 2.5.x and Python 2.6.4. With a recent upgrade to Python 2.6.5 (on Ubuntu Lucid Lynx), a particular operation began to fail when using sqlite. I have tracked this to using the sqlite3

[issue8685] set(range(100000)).difference(set()) is slow

2010-05-11 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I have two problems with this proposal: 1. In constrained memory environments, creating a temporary internal copy of a large set may cause the difference operation to fail that would otherwise succeed. 2. The break-even point between extra lookups and

[issue8685] set(range(100000)).difference(set()) is slow

2010-05-11 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue1285086] urllib.quote is too slow

2010-05-11 Thread Florent Xicluna
Changes by Florent Xicluna : Added file: http://bugs.python.org/file17299/urllib_quote_speed_test.py ___ Python tracker ___ ___ Python-bugs-

[issue8256] TypeError: bad argument type for built-in operation

2010-05-11 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue1285086] urllib.quote is too slow

2010-05-11 Thread Florent Xicluna
Florent Xicluna added the comment: actually, there's a simpler implementation, using s.rstrip(always_safe + safe). It is as fast as the previous one. -- Added file: http://bugs.python.org/file17298/issue1285086_using_rstrip.diff ___ Python tracker

[issue1285086] urllib.quote is too slow

2010-05-11 Thread Florent Xicluna
Changes by Florent Xicluna : Removed file: http://bugs.python.org/file17297/urllib_quote_speed_test.py ___ Python tracker ___ ___ Python-bug

[issue7978] SocketServer doesn't handle syscall interruption

2010-05-11 Thread Christophe Simonis
Changes by Christophe Simonis : -- nosy: +Christophe Simonis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue1381] cmath is numerically unsound

2010-05-11 Thread Sebastien Binet
Sebastien Binet added the comment: > Note that in your program, you're feeding complex(-0.0, -2.0) to asinh, > not complex(0.0, -2.0). ah! (ducking) -- ___ Python tracker ___ __

[issue1381] cmath is numerically unsound

2010-05-11 Thread Mark Dickinson
Mark Dickinson added the comment: > Note that in your program, you're feeding complex(-0.0, -2.0) to asinh, > not complex(0.0, 2.0). Bah; that should be complex(0.0, -2.0) in the second line, of course. Anyway, try passing conj(2*I) to asinh in your C program and see what happens. :) -

[issue7897] Support parametrized tests in unittest

2010-05-11 Thread Yaroslav Halchenko
Yaroslav Halchenko added the comment: Hi Nick, Am I reading your right, Are you suggesting to implement this manual looping/collecting/reporting separately in every unittest which needs that? On Tue, 11 May 2010, Nick Coghlan wrote: > Nick Coghlan added the comment: > I agree with Michael -

[issue1381] cmath is numerically unsound

2010-05-11 Thread Mark Dickinson
Mark Dickinson added the comment: > that may very well be so, but I'd naively standardize on C/Fortran > > behaviour (but that's probably my physicist bias) Yep, that's exactly what Python does. :) (Also follows the LISP standard). Note that in your program, you're feeding complex(-0.0, -2.0

[issue1381] cmath is numerically unsound

2010-05-11 Thread Sebastien Binet
Sebastien Binet added the comment: hi Mark, that may very well be so, but I'd naively standardize on C/Fortran behaviour (but that's probably my physicist bias) on my platform, the following piece of C-code: $ cat test_cmath.c #include #include int main(int argc, char** argv) { complex

[issue1285086] urllib.quote is too slow

2010-05-11 Thread Florent Xicluna
Florent Xicluna added the comment: The speed test script did not work on 2.5 (because timeit.Timer does not accept a callable). Fixed version, which benchmarks the str.translate(...) version. Change the '_new_quote_setup' assignment to test other variants. -- Added file: http://bugs.p

[issue1381] cmath is numerically unsound

2010-05-11 Thread Mark Dickinson
Mark Dickinson added the comment: A bit more explanation: Python takes account of the sign of zero when deciding which side of the branch cut a value lies, which is the proper thing to do when you have signed zeros available (according to the likes of Kahan, anyway); I suspect that numpy is

[issue8687] sched.py module doesn't have a test suite

2010-05-11 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Patch in attachment. -- keywords: +patch Added file: http://bugs.python.org/file17296/test_sched.patch ___ Python tracker ___ ___

[issue1285086] urllib.quote is too slow

2010-05-11 Thread Florent Xicluna
Florent Xicluna added the comment: New patch, using str.translate instead of regexp. It is faster for normal cases (85% less time than stdlib quote), and the penalty for the real-quoting case is less than 5%. It should apply to 3.x with some adaptation. -- Added file: http://bugs.pyth

[issue1381] cmath is numerically unsound

2010-05-11 Thread Mark Dickinson
Mark Dickinson added the comment: Python's result looks fine to me, as does numpy's: they're both giving a valid inverse hyperbolic sine: >>> from cmath import sinh >>> sinh(1.3169578969248166-1.5707963267948966j) (1.0605752387249067e-16-1.9998j) >>> sinh(-1.3169578969248164-1.57

[issue8675] audioop module needs an int -> Py_ssize_t upgrade

2010-05-11 Thread Mark Dickinson
Mark Dickinson added the comment: The audioop module was made PY_SSIZE_T_CLEAN in r81083. -- components: +Extension Modules resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker

  1   2   >