[issue4757] reject unicode in zlib

2009-01-04 Thread Lukas Lueg
Lukas Lueg added the comment: The current behaviour may help the majority by ignorance and cause weird errors for others. We tell people that Python distincts between Text and Data but actually treat it all the same by implicit encoding. Modules that only operate on Bytes should reject Unicode-

[issue4836] Idle Hangs on exit Button

2009-01-04 Thread Terry Helge
Terry Helge added the comment: Additional testing - ran programs that call (import) pyGame using drPython and everything works fine ... just when using IDLE and pyGame am I getting this action. Rats!! ___ Python tracker ___

[issue4836] Idle Hangs on exit Button

2009-01-04 Thread Terry Helge
Terry Helge added the comment: Additional testing -- apparently this is only happening when I run a program that imports pyGame. If I run IDLE and do not import, it functions properly . ___ Python tracker __

[issue4840] Compile dbm in Ubuntu

2009-01-04 Thread Charles Hans
New submission from Charles Hans : I tried and failed in compile python 3.0 in ubuntu 8.10. Then I found the scripts in setup.py use "gdbm/ndbm.h" while in ubuntu 8.10 it should be gdbm-ndbm.h. So I made the following change which make the compiling ok: setup.py 787c787 < and

[issue4839] Reminder: Please Respond to Manas's Invitation

2009-01-04 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue4753] Faster opcode dispatch on gcc

2009-01-04 Thread Paolo 'Blaisorblade' Giarrusso
Paolo 'Blaisorblade' Giarrusso added the comment: @alexandre: if you add two labels per opcode and two dispatch tables, one before (like now) and one after the parameter fetch (where we have the 'case'), you can keep the same speed. And under the hood we also had two dispatch tables before, with

[issue4626] compile() doesn't ignore the source encoding when a string is passed in

2009-01-04 Thread STINNER Victor
STINNER Victor added the comment: > With my patch, the first Brett's example displays: >... >” = '”' > ^ >SyntaxError: invalid character in identifier > > The error cursor is not at the right column (bug related to the issue > 2382 or introduced by my patch?). I tried p

[issue4626] compile() doesn't ignore the source encoding when a string is passed in

2009-01-04 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file12588/tokenizer_ignore_cookie.patch ___ Python tracker ___ ___ Python-bugs

[issue4626] compile() doesn't ignore the source encoding when a string is passed in

2009-01-04 Thread STINNER Victor
STINNER Victor added the comment: Oops, I attached the wrong file :-p Added file: http://bugs.python.org/file12589/tokenizer_ignore_cookie-2.patch ___ Python tracker ___

[issue4626] compile() doesn't ignore the source encoding when a string is passed in

2009-01-04 Thread STINNER Victor
STINNER Victor added the comment: The function decode_str() (Parser/tokenizer.c) is responsible to detect the encoding using the BOM or the cookie ("coding: xxx"). decode_str() reencodes also the text to utf-8 if the encoding is different than utf-8. I think that we can just skip this functio

[issue3585] pkg-config support

2009-01-04 Thread Clinton Roy
Clinton Roy added the comment: Is there anything I can do to move this forward at all? cheers, ___ Python tracker ___ ___ Python-bugs-list mai

[issue4136] merge json library with simplejson 2.0.3

2009-01-04 Thread Bob Ippolito
Bob Ippolito added the comment: By "next patch" I'm referring to a currently nonexistent patch that would merge the json library with simplejson 2.0.7 (svn trunk at the moment). I may have time to create it next weekend. --- http://codereview.appspot.com/7311/diff/1/8 File Lib/json/decoder.p

[issue3959] Add Google's ipaddr.py to the stdlib

2009-01-04 Thread Martin v. Löwis
Martin v. Löwis added the comment: > I'm fine with this. But as Duncan mentioned, some guidance from the > benevolent powers that be on what exactly they're looking for before > we launch into a bunch of work would be appreciated. I think Guido's original message summarizes that: a module that

[issue3959] Add Google's ipaddr.py to the stdlib

2009-01-04 Thread pmoody
pmoody added the comment: > Good idea. > > Peter M. and the ipaddr contributors, are you all happy to proceed in > accordance with Duncan's suggestions? If so, let's kick off a thread on > python-dev to get the ball rolling and see what we can come up with. I'm fine with this. But as Duncan men

[issue4834] Trouble configuring with icc on Mac OS X 10.5

2009-01-04 Thread Skip Montanaro
Skip Montanaro added the comment: Martin> I don't think this is a bug. The change actually dates from Martin> r45800; I believe the intention is that the Python binaries work Martin> on 10.3 and newer, unless you use 10.2 or older to build them Martin> (in which case the deployment t

[issue4614] Document PyModule_Create()

2009-01-04 Thread Georg Brandl
Georg Brandl added the comment: OK, fixed up and committed as r68327. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue4838] md_state is not released

2009-01-04 Thread Martin v. Löwis
New submission from Martin v. Löwis : module_dealloc should free md_state if it is non-zero, after m_free was called. -- messages: 79095 nosy: loewis priority: release blocker severity: normal status: open title: md_state is not released versions: Python 3.0, Python 3.1

[issue4575] Py_IS_INFINITY defect causes test_cmath failure on x86

2009-01-04 Thread Mark Dickinson
Mark Dickinson added the comment: Answering my own question, there *are* pitfalls: (X) > DBL_LONG_MAX will evaluate to true for some finite extended precision values that are *just* larger than DBL_LONG_MAX, but nevertheless round to DBL_LONG_MAX rather than infinity. Another not-so-bright i

[issue4614] Document PyModule_Create()

2009-01-04 Thread Martin v. Löwis
Martin v. Löwis added the comment: The patch looks about right. I believe it is a bug that md_state isn't automatically freed; m_free should be used to release any resources stored inside md_state (or any other resources that the module might hold). So please remove the note on releasing md_sta

[issue4575] Py_IS_INFINITY defect causes test_cmath failure on x86

2009-01-04 Thread Mark Dickinson
Mark Dickinson added the comment: s/false positives/false negatives/ ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue4575] Py_IS_INFINITY defect causes test_cmath failure on x86

2009-01-04 Thread Mark Dickinson
Mark Dickinson added the comment: Tim, I'm in need of some advice on Py_IS_INFINITY. It's currently implemented (on platforms that don't provide isinf) as #define Py_IS_INFINITY(X) ((X) && (X)*0.5 == (X)) I'd like to rewrite it as something like: #define Py_IS_INFINITY_D(X) ((X) < -DBL_MAX |

[issue4757] reject unicode in zlib

2009-01-04 Thread STINNER Victor
STINNER Victor added the comment: > The fact that Python 2.x also accepts Unicode ASCII strings > where strings are normally expected is intended to help with > the migration to Unicode I hate this behaviour. It doesn't help migration, it's the opposite! Sometimes it works (ASCII), and somti

[issue4834] Trouble configuring with icc on Mac OS X 10.5

2009-01-04 Thread Martin v. Löwis
Martin v. Löwis added the comment: I don't think this is a bug. The change actually dates from r45800; I believe the intention is that the Python binaries work on 10.3 and newer, unless you use 10.2 or older to build them (in which case the deployment target is set to the build machine version).

[issue4751] Patch for better thread support in hashlib

2009-01-04 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file12554/hashlibopenssl_small_lock-3.patch ___ Python tracker ___ ___ Python-

[issue4751] Patch for better thread support in hashlib

2009-01-04 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file12542/hashlibopenssl_small_lock-2.patch ___ Python tracker ___ ___ Python-

[issue4575] Py_IS_INFINITY defect causes test_cmath failure on x86

2009-01-04 Thread Mark Dickinson
Mark Dickinson added the comment: Looking at this again, I don't like my solution. I think it would be better to fix Py_IS_INFINITY directly, putting all the complication into one place; then users of Py_IS_INFINITY don't have to spend time worrying about whether they should be calling Py_FO

[issue4751] Patch for better thread support in hashlib

2009-01-04 Thread Lukas Lueg
Lukas Lueg added the comment: I've modified haypo's patch as commented. The object's lock should be free 99.9% of the time so we try non-blocking first and can thereby skip releasing and re-locking the gil (to avoid a deadlock). Added file: http://bugs.python.org/file12587/hashlibopenssl_small

[issue4751] Patch for better thread support in hashlib

2009-01-04 Thread Lukas Lueg
Changes by Lukas Lueg : Removed file: http://bugs.python.org/file12533/hashopenssl_threads-4.diff ___ Python tracker ___ ___ Python-bugs-list m

[issue4272] set timestamp in gzip stream

2009-01-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: The patches have been committed, thanks! -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue4676] python3 closes + home keys

2009-01-04 Thread Daniel Diniz
Daniel Diniz added the comment: I can't reproduce this with py3k on linux, but I do get a traceback in the terminal used to launch idle: Exception in Tkinter callback Traceback (most recent call last): File "/home/ajaksu/py3k/Lib/tkinter/__init__.py", line 1399, in __call__ return self.fu

[issue1180] Option to ignore or substitute ~/.pydistutils.cfg

2009-01-04 Thread Akira Kitada
Changes by Akira Kitada : -- nosy: +akitada ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue4796] Decimal to receive from_float method

2009-01-04 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Do you think it would be worth replacing the two uses of > conditional expressions in Decimal.from_float with if-else > statements? Yes, please. > Of course, from_float still won't work with earlier versions > of Python, but having one Decimal method unav

[issue1628484] Python 2.5 64 bit compile fails on Solaris 10/gcc 4.1.1

2009-01-04 Thread Roumen Petrov
Changes by Roumen Petrov : -- nosy: +rpetrov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue4837] Omits MACHINE and DEBUG when building tix8.4.3

2009-01-04 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto : Currently, to install tix we need long command like this. nmake -f python.mak TCL_MAJOR=8 TCL_MINOR=5 TCL_PATCH=2 MACHINE=IX86 DEBUG=0 INSTALL_DIR=..\..\tcltk install This patch enables us to omit MACHINE and DEBUG. (Precisely, can omit MACHINE if CPU i

[issue4010] configure options don't trickle down to distutils

2009-01-04 Thread Roumen Petrov
Changes by Roumen Petrov : Removed file: http://bugs.python.org/file12583/py-issue-4010.patch ___ Python tracker ___ ___ Python-bugs-list maili

[issue4010] configure options don't trickle down to distutils

2009-01-04 Thread Roumen Petrov
Roumen Petrov added the comment: correct patch uploaded Added file: http://bugs.python.org/file12585/py-issue-4010.patch ___ Python tracker ___ __

[issue4824] test_cmd_line failure on Mac OS X for py3k

2009-01-04 Thread Skip Montanaro
Skip Montanaro added the comment: Yeah, looks like it. Closing. -- resolution: -> duplicate status: open -> closed ___ Python tracker ___ __

[issue4753] Faster opcode dispatch on gcc

2009-01-04 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: > I managed to remove switch pretty easily by moving opcode fetching > in the FAST_DISPATCH macro and abstracting the control flow of the > switch. Here is the diff against threadceval5.patch. Added file: http://bugs.python.org/file12584/abstract-switch.

[issue4824] test_cmd_line failure on Mac OS X for py3k

2009-01-04 Thread Mark Dickinson
Mark Dickinson added the comment: Is this the same issue as issue 4388? -- nosy: +marketdickinson ___ Python tracker ___ ___ Python-bu

[issue4676] python3 closes + home keys

2009-01-04 Thread Somelauw
Somelauw added the comment: I have found a way to reproduce this error: Open the idle Hold down shift: Press up 3 times Hold [fn] (on laptop) Press the home key Idle closes for no reason Any help? ___ Python tracker

[issue4753] Faster opcode dispatch on gcc

2009-01-04 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: > Removing the switch won't be possible unless we change the semantic > EXTENDED_ARG. In addition, I doubt the improvement, if any, would worth > the increased complexity. Nevermind what I have said. I managed to remove switch pretty easily by moving opco

[issue4836] Idle Hangs on exit Button

2009-01-04 Thread skillybob
New submission from skillybob : Bring up IDLE and type in any program. Run the module and it runs just fine. Try to use the Exit button of the running program and it hangs. Pressing a second time will bring up a Windows dialog message that the program is not responding . Click to kill the progr

[issue4836] Idle Hangs on Wxit Button

2009-01-04 Thread skillybob
Changes by skillybob : -- components: IDLE nosy: skillybob severity: normal status: open title: Idle Hangs on Wxit Button type: behavior versions: Python 2.6 ___ Python tracker __

[issue4835] SIZEOF_SOCKET_T not defined

2009-01-04 Thread Skip Montanaro
New submission from Skip Montanaro : Compiling with Intel's icc I get lots of remarks like this: icc -c -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. -IInclude -I../Include -DPy_BUILD_CORE -o Parser/acceler.o ../Parser/acceler.c ../Include/longobject.h(35): rema

[issue4834] Trouble configuring with icc on Mac OS X 10.5

2009-01-04 Thread Skip Montanaro
New submission from Skip Montanaro : I get this error when trying to configure with Intel's icc on my Mac (Intel, 10.5.6, Xcode 3.1.2): >> configure:10332: checking size of size_t >> configure:10637: icc -o conftest -g -O2 conftest.c >&5 >> ld: library not found for -lgcc_s After

[issue4010] configure options don't trickle down to distutils

2009-01-04 Thread Roumen Petrov
Roumen Petrov added the comment: May I propose a patch. The patch is only for linker flags(LDFLAGS). If is accepted I will prepare another one for compiler flags. The patch is not minimal. It is mostly cleanup patch. For minimal patch - only change in Makefile.pre.in is enough. Cleanup patch re

[issue3638] Remove module level functions in _tkinter that depend on TkappObject

2009-01-04 Thread STINNER Victor
STINNER Victor added the comment: gpolo: Nice patches, good job and thanks ;-) ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue4830] regrtest.py -u largefile test_io fails on OS X 10.5.6

2009-01-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Do you know how to get python to > run from the locally built directory without installing it? Well, precisely as I told you, but unfortunately it seems it doesn't work for you. I'm no Mac OS X user, so I advise you search the tracker for similar problems,

[issue4833] Explicit directories for zipfiles

2009-01-04 Thread Robert Schuppenies
New submission from Robert Schuppenies : We have an issue with the Python cheeseshop which is probably an issue with Python itself as well. When we create a zip file with standard linux tools ('zip os-zipped.zip *'), uploading it works fine. But if we use the zipfile module from Python and try t

[issue3959] Add Google's ipaddr.py to the stdlib

2009-01-04 Thread David Moss
David Moss added the comment: > David, in the event of netaddr's complete or partial inclusion, > are you +1 with this and the maintenance of an ip/net library > in Python? Yes, I would be very happy to help with this. > If there's going to be lots of discussion, perhaps it should be > take

[issue4815] idle 3.1a1 utf8

2009-01-04 Thread Martin v. Löwis
Martin v. Löwis added the comment: > utf8 has a special flag No, it doesn't. > as a special mark for editors. That's the BOM, or UTF-8 signature. It's optional, and UTF-8-encoded files typically do *not* have the UTF-8 signature. > Even after making change in > it in IDLE, it does not becam

[issue1628484] Python 2.5 64 bit compile fails on Solaris 10/gcc 4.1.1

2009-01-04 Thread Antoine Pitrou
Changes by Antoine Pitrou : Removed file: http://bugs.python.org/file10031/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue1628484] Python 2.5 64 bit compile fails on Solaris 10/gcc 4.1.1

2009-01-04 Thread Antoine Pitrou
Changes by Antoine Pitrou : Removed file: http://bugs.python.org/file10033/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue1628484] Python 2.5 64 bit compile fails on Solaris 10/gcc 4.1.1

2009-01-04 Thread Antoine Pitrou
Changes by Antoine Pitrou : Removed file: http://bugs.python.org/file10524/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue1628484] Python 2.5 64 bit compile fails on Solaris 10/gcc 4.1.1

2009-01-04 Thread Antoine Pitrou
Changes by Antoine Pitrou : Removed file: http://bugs.python.org/file10526/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue1628484] Python 2.5 64 bit compile fails on Solaris 10/gcc 4.1.1

2009-01-04 Thread Antoine Pitrou
Changes by Antoine Pitrou : Removed file: http://bugs.python.org/file10525/DigiLink_esig_logo.jpg ___ Python tracker ___ ___ Python-bugs-lis

[issue1628484] Python 2.5 64 bit compile fails on Solaris 10/gcc 4.1.1

2009-01-04 Thread Antoine Pitrou
Changes by Antoine Pitrou : Removed file: http://bugs.python.org/file10527/DigiLink_esig_logo.jpg ___ Python tracker ___ ___ Python-bugs-lis

[issue4830] regrtest.py -u largefile test_io fails on OS X 10.5.6

2009-01-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, you must indeed use the newly built python, that is "./python -m test.regrtest [any arguments]". Out of curiosity, why did you specifically run test_io? Any problem on your platform? -- nosy: +pitrou resolution: -> invalid status: open -> closed

[issue4826] exec() docstring bug about file objects

2009-01-04 Thread Benjamin Peterson
Benjamin Peterson added the comment: Thanks! Fixed in r68301. -- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue4506] 3.0 make test failures on Solaris 10

2009-01-04 Thread Mark Dickinson
Mark Dickinson added the comment: autoconf checks for isinf and isnan fixed in r68299. I also added a check for isfinite, which should really be used in preference to finite: isfinite is standard in C99, while finite doesn't seem to be part of any standard. __

[issue4831] exec() behavior - revisited

2009-01-04 Thread Georg Brandl
Georg Brandl added the comment: Yes, the dictionary will always contain "a" afterwards. However, a cleaner way would be to use locals().copy(), or, if you don't need current locals in the exec'd string, just a fresh dict. In scopes not using the optimized locals, there may be some other effect

[issue4831] exec() behavior - revisited

2009-01-04 Thread David M. Beazley
David M. Beazley added the comment: One further followup just to make sure I'm clear. Is it always safe to pass the result of locals() into exec and extract the result as shown in my example? Since I'm writing about this in a book, I just want to make absolutely certain I know what's going

[issue4832] idle filename extension

2009-01-04 Thread Pavel Kosina
New submission from Pavel Kosina : There should not be necessity to write filename *with extension* at the saving dialog. It should be enough, at least on Windows, to put there just "hello" and get "hello.py". It is really complication especially for beginners. If they, as they are used to from a

[issue4831] exec() behavior - revisited

2009-01-04 Thread Georg Brandl
Georg Brandl added the comment: > Please forgive me, but I'm really trying to wrap my brain around the > behavior of exec() in Python 3. Here's a quote from the documentation: >"In all cases, if the optional parts are omitted, the code is > executed in the current scope." > This is

[issue4815] idle 3.1a1 utf8

2009-01-04 Thread Pavel Kosina
Pavel Kosina added the comment: Martin v. Löwis napsal(a), dne 4.1.2009 14:39: > Why that? This file is already encoded in utf-8 just fine. It is, > simultaneously, also encoded in ASCII, cp1250, cp1252, and nearly > any other encoding in use (as long as it is ASCII-based). > Well I am not m

[issue4831] exec() behavior - revisited

2009-01-04 Thread David M. Beazley
New submission from David M. Beazley : Please forgive me, but I'm really trying to wrap my brain around the behavior of exec() in Python 3. Here's a quote from the documentation: "In all cases, if the optional parts are omitted, the code is executed in the current scope." This is refe

[issue4753] Faster opcode dispatch on gcc

2009-01-04 Thread Paolo 'Blaisorblade' Giarrusso
Paolo 'Blaisorblade' Giarrusso added the comment: @Skip: if one decides to generate binary code, there is no need to use switches. Inline threading (also known as "code copying" in some research papers) is what you are probably looking for: http://blog.mozilla.com/dmandelin/2008/08/27/inline-th

[issue1529269] Python 2.5b2 fails to build on Solaris 10 (GCC Compiler)

2009-01-04 Thread Jörg Prante
Jörg Prante added the comment: Modules/_ctypes/libffi/src/sparc/v8.S and Modules/_ctypes/libffi/src/sparc/v9.S are SPARC assembler codes. The python build process seems to pass the gcc compile flags to compile these assembler source files. It makes no sense if the debugging option -g is enable

[issue4753] Faster opcode dispatch on gcc

2009-01-04 Thread Paolo 'Blaisorblade' Giarrusso
Paolo 'Blaisorblade' Giarrusso added the comment: @Alexandre: > > So, can you try dropping the switch altogether, using always computed > > goto and seeing how does the resulting code get compiled? > Removing the switch won't be possible unless we change the semantic > EXTENDED_ARG. In addition

[issue4815] idle 3.1a1 utf8

2009-01-04 Thread Martin v. Löwis
Martin v. Löwis added the comment: > With this file - hello.py (attached) - I should be also asked for > converting to utf8. Why that? This file is already encoded in utf-8 just fine. It is, simultaneously, also encoded in ASCII, cp1250, cp1252, and nearly any other encoding in use (as long as

[issue4753] Faster opcode dispatch on gcc

2009-01-04 Thread Ralph Corderoy
Changes by Ralph Corderoy : ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python

[issue4136] merge json library with simplejson 2.0.3

2009-01-04 Thread Martin v. Löwis
Martin v. Löwis added the comment: http://codereview.appspot.com/7311/diff/1/8 File Lib/json/decoder.py (right): http://codereview.appspot.com/7311/diff/1/8#newcode55 Line 55: def py_scanstring(s, end, encoding=None, strict=True, _b=BACKSLASH, _m=STRINGCHUNK.match): This function should get som

[issue4753] Faster opcode dispatch on gcc

2009-01-04 Thread Ralph Corderoy
Ralph Corderoy added the comment: Regarding compressing the opcode table to make better use of cache; what if the most frequently occurring opcodes where placed together, e.g. the opcodes were ordered by frequency, most frequent first. Just based on a one-off static analysis of a body of code.

[issue4815] idle 3.1a1 utf8

2009-01-04 Thread Pavel Kosina
Pavel Kosina added the comment: With this file - hello.py (attached) - I should be also asked for converting to utf8. When I open it, nothing changes, after making changes and saving then the encodings is my windows standard cp1250 Added file: http://bugs.python.org/file12582/hello.py __

[issue4753] Faster opcode dispatch on gcc

2009-01-04 Thread Skip Montanaro
Skip Montanaro added the comment: I'm sure this is the wrong place to bring this up, but I had a thought about simple JIT compilation coupled with the opcode dispatch changes in this issue. Consider this silly function: >>> def f(a, b): ... result = 0 ... while b: ... r

[issue4753] Faster opcode dispatch on gcc

2009-01-04 Thread Facundo Batista
Changes by Facundo Batista : -- nosy: +facundobatista ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue3783] dbm.sqlite proof of concept

2009-01-04 Thread Skip Montanaro
Skip Montanaro added the comment: Hopefully I'm not picking at a scab here. I updated the dbm.sqlite module in the sandbox. It now orders by rowid instead of by key. (I saw no performance penalty for the small table sizes I was using to ordering. I switched from ordering by key to ordering by

[issue4394] make the storage of the password optional in .pypirc (using the prompt)

2009-01-04 Thread Tarek Ziadé
Tarek Ziadé added the comment: I have fixed issue4400, and I am back at work for this feature. I will propose it in Distutils-SIG to see what people think. -- assignee: -> tarek ___ Python tracker __

[issue4524] Build fails at running build_scripts

2009-01-04 Thread Tarek Ziadé
Tarek Ziadé added the comment: I will write an isolated test in distutils to reproduce this issue, -- assignee: -> tarek components: +Distutils nosy: +tarek ___ Python tracker _

[issue4706] try to build a C module, but don't worry if it doesn't work

2009-01-04 Thread Tarek Ziadé
Tarek Ziadé added the comment: I can see two cases here: 1/ a compiler is not found, and build_ext can't proceed 2/ a compiler is found but it fails For 2/, I don't think it's wise to fail silently if a compiler is found and the build fails, because that can hide an unexpected problem. For 1/

[issue1628484] Python 2.5 64 bit compile fails on Solaris 10/gcc 4.1.1

2009-01-04 Thread Jörg Prante
Jörg Prante added the comment: Hi Bob, thank you for your patch. I spent hours on Solaris 10 SPARC to get almost the same analysis. Just a detail, I ended up patching $LDFLAGS in the SunOS 5 part in the configure.in file (like other architectures like Darwin have set their LDFLAGS there, too).

[issue4796] Decimal to receive from_float method

2009-01-04 Thread Mark Dickinson
Mark Dickinson added the comment: Raymond, Do you think it would be worth replacing the two uses of conditional expressions in Decimal.from_float with if-else statements? Alex Goretoy pointed out (on c.l.p) that the trunk version of decimal.py can no longer be imported into Python 2.4 (and 2.3

[issue4830] regrtest.py -u largefile test_io fails on OS X 10.5.6

2009-01-04 Thread Cem Karan
New submission from Cem Karan : I'm running OS X 10.5.6 (uname -a == Darwin 9.6.0 Darwin Kernel Version 9.6.0: Mon Nov 24 17:37:00 PST 2008; root:xnu-1228.9.59~1/RELEASE_I386 i386) I get the following error after compiling Python 3.0. Note that I have NOT installed it; I'm just trying to r

[issue4829] confusing error for file("foo", "w++")

2009-01-04 Thread Ulrich Eckhardt
New submission from Ulrich Eckhardt : Specifying the '+' more than once while opening a file results in the error "Must have exactly one of read/write/append mode". The attached patch extends that with ".. and at most one optional plus". Further, the patch checks these after the loop that parses

[issue4811] invalid reST markup in several documents

2009-01-04 Thread Georg Brandl
Georg Brandl added the comment: Thanks very much! I've added this to the Python doc tools in r68290. ___ Python tracker ___ ___ Python-bugs-lis

[issue4828] patch suggestion for webbrowser

2009-01-04 Thread Yinon Ehrlich
New submission from Yinon Ehrlich : this will find applications/batch files ending with .com or .cmd too. ___ Python tracker ___ ___ Python-bu

[issue4828] patch suggestion for webbrowser

2009-01-04 Thread Yinon Ehrlich
Changes by Yinon Ehrlich : -- components: Library (Lib) files: webbrowser.patch keywords: patch nosy: Yinon severity: normal status: open title: patch suggestion for webbrowser versions: Python 2.6 Added file: http://bugs.python.org/file12580/webbrowser.patch ___

[issue4811] invalid reST markup in several documents

2009-01-04 Thread Gabriel Genellina
Changes by Gabriel Genellina : Added file: http://bugs.python.org/file12579/suspicious.rar ___ Python tracker ___ ___ Python-bugs-list mailing

[issue4825] TypeError with complex.real() and complex.imag()

2009-01-04 Thread Georg Brandl
Changes by Georg Brandl : -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Un