[issue4559] Whats new recommendation error

2008-12-06 Thread Lennart Regebro
Lennart Regebro <[EMAIL PROTECTED]> added the comment: Fair enough, but I still think we can come up with a better example that requires more contortions than "print", which doesn't. I think a good example of contortions is binary file data, which has two different types in 2.6 and 3.0. Also ma

[issue4572] add SEEK_* values to io and/or io.IOBase

2008-12-06 Thread gumpy
New submission from gumpy <[EMAIL PROTECTED]>: Currently io.IOBase.seek(offset[, whence]) uses magic numbers for the second argument. Since this is essentially identical the C function fseek I think adding the same "constants" that C uses (SEEK_SET=0, SEEK_CUR=1, SEEK_END=2) may be worth consider

[issue4049] IDLE does not open too

2008-12-06 Thread I. Stead
I. Stead <[EMAIL PROTECTED]> added the comment: This still seems to be happening in python 3.0 as well. Here is the output from >1. open cmd.exe >2. cd \python26 >3. python.exe Lib\idlelib\idle.py C:\Program Files\Python>python.exe Lib\idlelib\idle.py Traceback (most recent call last): File "L

[issue4566] 2.6.1 breaks many applications that embed Python on Windows

2008-12-06 Thread Craig Holmquist
Craig Holmquist <[EMAIL PROTECTED]> added the comment: I understand the rationale behind #4120, but it seems like it only helps a narrow set of applications, namely "applications that link dynamically with the same version of MSVCR90 as Python and that bundle the MSVCR90 DLL and that can't instal

[issue4571] write to stdout in binary mode - is it possible?

2008-12-06 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: You can write to the underlying raw stream: sys.stdout.buffer.write(b'abc') -- nosy: +benjamin.peterson ___ Python tracker <[EMAIL PROTECTED]> ___

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2008-12-06 Thread gumpy
gumpy <[EMAIL PROTECTED]> added the comment: This problem exists for me on Ubuntu8.04 with both tk/tcl8.4.16 and 8.5. -- nosy: +gumpy ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue4571] write to stdout in binary mode - is it possible?

2008-12-06 Thread jeff deifik
New submission from jeff deifik <[EMAIL PROTECTED]>: I have a program that needs to output binary data to stdout. I don't want to convert it to a string. for example something like sys.stdout.write('0o377') to write a byte with all the bits turned on. When I try this, I get an error like: s

[issue1717] Get rid of more refercenes to __cmp__

2008-12-06 Thread Raymond Hettinger
Raymond Hettinger <[EMAIL PROTECTED]> added the comment: FWIW, the tp_compare slot in setobject.c serves only say the cmp() isn't defined. It can be ripped-out straight-away. ___ Python tracker <[EMAIL PROTECTED]> __

[issue1717] Get rid of more refercenes to __cmp__

2008-12-06 Thread Raymond Hettinger
Raymond Hettinger <[EMAIL PROTECTED]> added the comment: r67627 : complete the dedocumenting of cmp(). Amaury, I have a non-metaclass solution for you. Will post on ASPN. It uses a class decorator to sniff-out *any* defined rich ordering comparisons and the automatically fills-in those that ar

[issue4483] Error to build _dbm module during make

2008-12-06 Thread Skip Montanaro
Skip Montanaro <[EMAIL PROTECTED]> added the comment: Roumen> may be patch is not applied correctly : Roumen> http://svn.python.org/view/python/trunk/setup.py?rev=67614&view=auto Roumen> libraries = gdbm_libs ) ) Roumen> ? exts.append( Extension('dbm', ['dbmmodule.c'],

[issue4570] Bad example in set tutorial

2008-12-06 Thread Raymond Hettinger
Raymond Hettinger <[EMAIL PROTECTED]> added the comment: Fixed r67624. -- nosy: +rhettinger resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___

[issue1717] Get rid of more refercenes to __cmp__

2008-12-06 Thread Raymond Hettinger
Raymond Hettinger <[EMAIL PROTECTED]> added the comment: Either take out the C-API functions or re-define them as: lambda a, b: (a > b) - (a < b) ___ Python tracker <[EMAIL PROTECTED]>

[issue4570] Bad example in set tutorial

2008-12-06 Thread John Marter
John Marter <[EMAIL PROTECTED]> added the comment: Also, I see banana is misspelled on the first output line (line 3). ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue4570] Bad example in set tutorial

2008-12-06 Thread John Marter
New submission from John Marter <[EMAIL PROTECTED]>: On http://docs.python.org/3.0/tutorial/datastructures.html#sets there is the following section in the section on sets >>> basket = {'apple', 'orange', 'apple', 'pear', 'orange', 'banana'} >>> print(basket) {'orange', 'bananna', 'pear', 'apple'

[issue998998] pickle bug - recursively memoizing class?

2008-12-06 Thread mike bayer
mike bayer <[EMAIL PROTECTED]> added the comment: This bug can be reproduced very easily: import pickle class MyClass(object): pass m = MyClass() m2 = MyClass() s = set([m]) m.foo = set([m2]) m2.foo = s print pickle.dumps(s) This bug is critical a

[issue1717] Get rid of more refercenes to __cmp__

2008-12-06 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: tp_richcompare is less convenient to implement than tp_compare. See for example how in Objects/longobject.c, long_richcompare() calls long_compare() *and* a helper method Py_CmpToRich. Likewise, turning __cmp__ into the whole set of _

[issue4509] bugs in array.array with exports (buffer protocol)

2008-12-06 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: Sorry, typo: the segfault issue is #4569. ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Py

[issue4509] bugs in array.array with exports (buffer protocol)

2008-12-06 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: The bytearray patch has been committed to 2.6, 2.7, 3.0, 3.1. Now the array.array problem remains. -- components: +Extension Modules -Interpreter Core stage: patch review -> needs patch title: possible memoryview bug -> bugs in array.

[issue4509] possible memoryview bug

2008-12-06 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: The segfault happens even when the array is not being resized, I've opened a separate bug for it: #4509. ___ Python tracker <[EMAIL PROTECTED]> ___

[issue4569] Segfault when mutating a memoryview to an array.array

2008-12-06 Thread Antoine Pitrou
New submission from Antoine Pitrou <[EMAIL PROTECTED]>: >>> from array import array >>> a = array('i', range(16)) >>> m = memoryview(a) >>> m[:] = array('i', range(16)) Erreur de segmentation -- components: Interpreter Core messages: 77195 nosy: pitrou priority: critical severity: normal

[issue4567] Registry key not set if unattended installation used

2008-12-06 Thread Stuart Axon
Stuart Axon <[EMAIL PROTECTED]> added the comment: If you type msiexec /? it pops a window with this text in it: Windows (R) Installer. V 3.01.4001.5512 msiexec /Option [Optional Parameter] Install Options Installs or configures a product /a

[issue4567] Registry key not set if unattended installation used

2008-12-06 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: > In order to install python silently, run > > msiexec python-2.5.2.msi /quiet I'm puzzled. According to all msiexec documentation I could find, there is no /quiet option to msiexec (plus you also need to specify /i, according to the docs).

[issue4528] test_httpservers consistently fails on OS X using tarball, but not svn tag r30

2008-12-06 Thread Martin Diers
Changes by Martin Diers <[EMAIL PROTECTED]>: -- title: test_httpservers consistently fails on OS X -> test_httpservers consistently fails on OS X using tarball, but not svn tag r30 ___ Python tracker <[EMAIL PROTECTED]>

[issue1717] Get rid of more refercenes to __cmp__

2008-12-06 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: Yes, tp_compare should go. ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-li

[issue1717] Get rid of more refercenes to __cmp__

2008-12-06 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: Do we also get rid of the tp_compare type slot? 6 types still use it, they should convert this to a tp_richcompare slot ___ Python tracker <[EMAIL PROTECTED]> _

[issue4567] Registry key not set if unattended installation used

2008-12-06 Thread Stuart Axon
Stuart Axon <[EMAIL PROTECTED]> added the comment: Sure, no problem - sorry for the lack of detail... The windows installer (tested on 2.5.2) normally puts some values in the windows registry at: HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\ (where is the python version). Including the impo

[issue1717] Get rid of more refercenes to __cmp__

2008-12-06 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: Do the API functions PyObject_Compare() and PyObject_Cmp() also go away? -- nosy: +amaury.forgeotdarc ___ Python tracker <[EMAIL PROTECTED]> ___

[issue4565] io write() performance very slow

2008-12-06 Thread Barry A. Warsaw
Changes by Barry A. Warsaw <[EMAIL PROTECTED]>: -- priority: high -> release blocker ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Pyth

[issue4561] Optimize new io library

2008-12-06 Thread Barry A. Warsaw
Changes by Barry A. Warsaw <[EMAIL PROTECTED]>: -- priority: high -> release blocker ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Pyth

[issue1717] Get rid of more refercenes to __cmp__

2008-12-06 Thread Barry A. Warsaw
Changes by Barry A. Warsaw <[EMAIL PROTECTED]>: -- priority: critical -> release blocker ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue4449] AssertionError in Doc/includes/mp_benchmarks.py

2008-12-06 Thread Barry A. Warsaw
Changes by Barry A. Warsaw <[EMAIL PROTECTED]>: -- priority: deferred blocker -> release blocker ___ Python tracker <[EMAIL PROTECTED]> ___

[issue4567] Registry key not set if unattended installation used

2008-12-06 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: Can you please be more explicit? What exact command line have you been using, and what exact registry do you think should have been set but wasn't? -- nosy: +loewis ___ Python tracker <[EMAIL PROT

[issue1717] Get rid of more refercenes to __cmp__

2008-12-06 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: OK, remove it in 3.0.1, provided that's released this year. Performance fixes are always fair game for bugfix releases. Please don't "fix" the what's new document (or undo the fix). I do hope cmp() was already undocumented elsewhere. ___

[issue4509] possible memoryview bug

2008-12-06 Thread gumpy
gumpy <[EMAIL PROTECTED]> added the comment: It turns out the problems in array are more serious than I thought and allow writing to unallocated memory through a memoryview leading to memory corruption, segfaults and possibly exploits. The following example extends an array enough to trigger a re

[issue4568] Improved optparse "varargs" callback example

2008-12-06 Thread Gregg Lind
New submission from Gregg Lind <[EMAIL PROTECTED]>: In the trunk (r67617) documentation for *optparse* callback example 6 doesn't handle negative number arguments, and fixing it is "left as an exercise for the reader." Well, I'm a reader, and I've attached my stab at it. Caveat: It relies in tr

[issue1717] Get rid of more refercenes to __cmp__

2008-12-06 Thread Christian Heimes
Christian Heimes <[EMAIL PROTECTED]> added the comment: A quick ballot on #python-dev resulted in 3 of 3 votes for removing cmp() in a quick bug fix release. About the io misery: My quick fix for the buffer reallocation schema has made the situation a bit better. For the 3.0.x series I like to

[issue4566] 2.6.1 breaks many applications that embed Python on Windows

2008-12-06 Thread Christian Heimes
Christian Heimes <[EMAIL PROTECTED]> added the comment: A mess it is :/ -- nosy: +christian.heimes ___ Python tracker <[EMAIL PROTECTED]> ___ __

[issue1717] Get rid of more refercenes to __cmp__

2008-12-06 Thread Raymond Hettinger
Raymond Hettinger <[EMAIL PROTECTED]> added the comment: Since cmp() was documented as removed in whatsnew3.0, it may be fair game to complete the removal, treating it as a bugfix. If as Georg suggests it is done *very* quickly in 3.0.1 (say in the next week or so), it is likely harmless and b

[issue4566] 2.6.1 breaks many applications that embed Python on Windows

2008-12-06 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: I would claim that this is not a bug. There is simpler no other way to deal with this entire SxS mess. -- nosy: +loewis ___ Python tracker <[EMAIL PROTECTED]> __

[issue1717] Get rid of more refercenes to __cmp__

2008-12-06 Thread Raymond Hettinger
Changes by Raymond Hettinger <[EMAIL PROTECTED]>: -- nosy: +rhettinger ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list m

[issue4565] io write() performance very slow

2008-12-06 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: > I'm a bit surprised by the adopted approach. > It seems you are merely translating the Python code into C. > I think the proper approach for the buffered IO classes would be > to use a fixed-size buffer which never gets reallocated.

[issue2848] Remove mimetools usage from the stdlib

2008-12-06 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: Benoit has a good point, so I have opened this issue again so we can get 2.7 even closer to 3.x compatibility. -- resolution: fixed -> status: closed -> open ___ Python tracker <[EMAIL PROTECTED]> <

[issue4561] Optimize new io library

2008-12-06 Thread Christian Heimes
Christian Heimes <[EMAIL PROTECTED]> added the comment: Roundup doesn't display .log files as plain text files. Added file: http://bugs.python.org/file12257/test_write.txt ___ Python tracker <[EMAIL PROTECTED]> _

[issue4561] Optimize new io library

2008-12-06 Thread Christian Heimes
Changes by Christian Heimes <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file12256/test_write.log ___ Python tracker <[EMAIL PROTECTED]> ___ __

[issue4561] Optimize new io library

2008-12-06 Thread Christian Heimes
Christian Heimes <[EMAIL PROTECTED]> added the comment: I'll come up with some reading benchmarks tomorrow. For now here is a benchmark of write(). You can clearly see the excessive usage of closed, len() and isinstance(). Added file: http://bugs.python.org/file12256/test_write.log

[issue4561] Optimize new io library

2008-12-06 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: I don't think this is a public API, so the function should probably be renamed _count_lineendings. Also, are there some benchmark numbers? ___ Python tracker <[EMAIL PROTECTED]>

[issue1717] Get rid of more refercenes to __cmp__

2008-12-06 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: I'd release 3.0.1 quickly, maybe also with the in-development improvements to the io library that alleviate the factor-1000 slowdowns. ___ Python tracker <[EMAIL PROTECTED]>

[issue1717] Get rid of more refercenes to __cmp__

2008-12-06 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Well what would you suggest we do? ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-

[issue1717] Get rid of more refercenes to __cmp__

2008-12-06 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: I hope the smiley really indicates a joke... ___ Python tracker <[EMAIL PROTECTED]> ___ ___ P

[issue4561] Optimize new io library

2008-12-06 Thread Christian Heimes
Changes by Christian Heimes <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file12248/count_linenendings.patch ___ Python tracker <[EMAIL PROTECTED]> ___

[issue4561] Optimize new io library

2008-12-06 Thread Christian Heimes
Christian Heimes <[EMAIL PROTECTED]> added the comment: I've updated the patch with proper formatting, some minor cleanups and a unit test. Added file: http://bugs.python.org/file12255/count_linenendings2.patch ___ Python tracker <[EMAIL PROTECTED]>

[issue4565] io write() performance very slow

2008-12-06 Thread Christian Heimes
Christian Heimes <[EMAIL PROTECTED]> added the comment: For more bug reports see #4533 and #4561. I suggest we close this bug report as duplicate and keep the discussion in #4561. -- nosy: +christian.heimes ___ Python tracker <[EMAIL PROTECTED]>

[issue4565] io write() performance very slow

2008-12-06 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: Hi Amaury, > There is a project to rewrite it in C Thanks for publicizing this. I'm a bit surprised by the adopted approach. It seems you are merely translating the Python code into C. I think the proper approach for the buffered IO classes

[issue4561] Optimize new io library

2008-12-06 Thread Antoine Pitrou
Changes by Antoine Pitrou <[EMAIL PROTECTED]>: -- nosy: +pitrou ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list mailing

[issue4528] test_httpservers consistently fails on OS X

2008-12-06 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' <[EMAIL PROTECTED]>: -- nosy: +giampaolo.rodola ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-

[issue4561] Optimize new io library

2008-12-06 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' <[EMAIL PROTECTED]>: -- nosy: +giampaolo.rodola ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-

[issue4565] io write() performance very slow

2008-12-06 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' <[EMAIL PROTECTED]>: -- nosy: +giampaolo.rodola ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-

[issue4483] Error to build _dbm module during make

2008-12-06 Thread Roumen Petrov
Roumen Petrov <[EMAIL PROTECTED]> added the comment: may be patch is not applied correctly : http://svn.python.org/view/python/trunk/setup.py?rev=67614&view=auto libraries = gdbm_libs ) ) ? exts.append( Extension('dbm', ['dbmmodule.c'], ? define_macros=[('HAVE_GDBM_NDBM_H',None)],

[issue4483] Error to build _dbm module during make

2008-12-06 Thread Roumen Petrov
Roumen Petrov <[EMAIL PROTECTED]> added the comment: now 2008-12-06 trunk fail on linux -- nosy: +rpetrov versions: +Python 2.7 ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue4559] Whats new recommendation error

2008-12-06 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: But that's all part of the "make it easy to port" strategy. I stick to my claim that trying to write code that runs unchanged in 3.0 is a non-goal of Python 2.6, and I do not want to suggest that this is a good idea in the official document

[issue4559] Whats new recommendation error

2008-12-06 Thread Lennart Regebro
Lennart Regebro <[EMAIL PROTECTED]> added the comment: Well, that *is* the intention of a from __future__ import, isn't it? That doesn't mean that's the intention of 2.6 as a whole, just that statement. ___ Python tracker <[EMAIL PROTECTED]>

[issue4559] Whats new recommendation error

2008-12-06 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Then what did you mean by "just to make it possible to write code that runs under both" ? ___ Python tracker <[EMAIL PROTECTED]> ___

[issue4559] Whats new recommendation error

2008-12-06 Thread Lennart Regebro
Lennart Regebro <[EMAIL PROTECTED]> added the comment: I've never said that is the goal. You are misrepresenting or misinterpreting my standpoint. ___ Python tracker <[EMAIL PROTECTED]> ___

[issue4559] Whats new recommendation error

2008-12-06 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: You're misrepresenting or misunderstanding the goal of 2.6. Its goal isn't to make it easy to write code that runs under both. Its stated goal is to make it easy to write code that can easily be *ported* to 3.0. That's a very different st

[issue4506] 3.0 make test failures on Solaris 10

2008-12-06 Thread Skip Montanaro
Skip Montanaro <[EMAIL PROTECTED]> added the comment: > can you come up with a configure patch that would allow isinf to be > detected on Solaris? The plot thickens. I know squat about autoconf sorts of things so I asked on the autoconf mailing list. Eric Drake responded (in part): The Pyth

[issue4559] Whats new recommendation error

2008-12-06 Thread Lennart Regebro
Lennart Regebro <[EMAIL PROTECTED]> added the comment: A future import is not much of a contortion, and metaclasses is not exactly an everyday occurrence, after 9 years of python I have yet to write a metaclass... Of course I don't like that it specifically mentiones 2.6, while 2.6 has lot's of

[issue4561] Optimize new io library

2008-12-06 Thread David M. Beazley
David M. Beazley <[EMAIL PROTECTED]> added the comment: bash-3.2$ uname -a Darwin david-beazleys-macbook.local 9.5.1 Darwin Kernel Version 9.5.1: Fri Sep 19 16:19:24 PDT 2008; root:xnu-1228.8.30~1/RELEASE_I386 i386 bash-3.2$ ./python.exe -c "import sys; print(sys.version)" 3.1a0 (py3k:67609, Dec

[issue4084] Decimal.max(NaN, x) gives incorrect results when x is finite and long

2008-12-06 Thread Mark Dickinson
Changes by Mark Dickinson <[EMAIL PROTECTED]>: -- versions: +Python 3.1 ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list

[issue4199] add shorthand global and nonlocal statements

2008-12-06 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: I think I may have been merging add_ast_fields when I wrote the patch. Here's a new patch that handles "global x, = (5,)". To do it, I added a new flag* to the Global and Nonlocal AST objects that indicates whether the value needs to be un

[issue4565] io write() performance very slow

2008-12-06 Thread Istvan Albert
Istvan Albert <[EMAIL PROTECTED]> added the comment: Well I would strongly dispute that anyone other than the developers expected this. The release documentation states: "The net result of the 3.0 generalizations is that Python 3.0 runs the pystone benchmark around 10% slower than Python 2.5."

[issue4559] Whats new recommendation error

2008-12-06 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: It is true for 2.6 unless you use various from __future__ imports, which I consider a form of contortion. Even with 2.6 I don't see how you can specify a metaclass without doing something weird like foo = MyMetaclass('foo', bases_tuple,

[issue4558] with_stdc89

2008-12-06 Thread Roumen Petrov
Roumen Petrov <[EMAIL PROTECTED]> added the comment: make EXTRA_CFLAGS='-std=c89' works for me. Added file: http://bugs.python.org/file12253/python-trunk-20081206-c89.patch ___ Python tracker <[EMAIL PROTECTED]> <http://

[issue4567] Registry key not set if unattended installation used

2008-12-06 Thread Stuart Axon
New submission from Stuart Axon <[EMAIL PROTECTED]>: If the msi is installed with /quiet it installs to the default location, but the registry key is not set, making it harder for other programs to find the installation. - in my case I had to make a batch file that installed it, then read the l

[issue4483] Error to build _dbm module during make

2008-12-06 Thread Skip Montanaro
Skip Montanaro <[EMAIL PROTECTED]> added the comment: Fix checked in for py3k (r67612), release26-maint (r67613), release30-maint (r67615) branches as well as trunk (r67614). -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL P

[issue2848] Remove mimetools usage from the stdlib

2008-12-06 Thread Benoit Boissinot
Benoit Boissinot <[EMAIL PROTECTED]> added the comment: > Why does it need to be in 2.6? mimetools is still there. Because it outputs a warning with python2.6 -3, it's annoying for people trying to port their application to python3k -- nosy: +bboissin __

[issue3167] math test fails on Solaris 10

2008-12-06 Thread Skip Montanaro
Skip Montanaro <[EMAIL PROTECTED]> added the comment: Mark> Could you try the attached patch to see if it fixes the math.log Mark> and math.log10 test failures. (The patch is generated against the Mark> trunk, but should apply cleanly to py3k or either of the 2.6 or Mark> 3.0 mainten

[issue1597850] Cross compiling patches for MINGW

2008-12-06 Thread n03702
n03702 <[EMAIL PROTECTED]> added the comment: There is port of cross-2.6-0.7.diff patch for python 3.0 final -- nosy: +n03702 Added file: http://bugs.python.org/file12252/cross-3.0-0.7.diff ___ Python tracker <[EMAIL PROTECTED]>

[issue3682] test_math: math.log(-ninf) fails to raise exception on OpenBSD

2008-12-06 Thread Mark Dickinson
Mark Dickinson <[EMAIL PROTECTED]> added the comment: Damien, if you're still there: Please could you try the patch "math_log.patch" attached to issue 3167, and let me know whether it fixes the test failure? ___ Python tracker <[EMAIL PROTECTED]>

[issue4558] with_stdc89

2008-12-06 Thread Christian Heimes
Christian Heimes <[EMAIL PROTECTED]> added the comment: Python core code must be compliant with the C89 standard but we don't have any checks for C89 compatibility. This patch adds a clean way to check our code base. You can verify my patch by adding a // comment somewhere in the code and ./conf

[issue4558] with_stdc89

2008-12-06 Thread Roumen Petrov
Roumen Petrov <[EMAIL PROTECTED]> added the comment: P.S. About C++ comments ( // ) I think that another issue is already opened (problem on AIX ? ) . ___ Python tracker <[EMAIL PROTECTED]> ___

[issue3167] math test fails on Solaris 10

2008-12-06 Thread Mark Dickinson
Mark Dickinson <[EMAIL PROTECTED]> added the comment: Skip, Jean: Could you try the attached patch to see if it fixes the math.log and math.log10 test failures. (The patch is generated against the trunk, but should apply cleanly to py3k or either of the 2.6 or 3.0 maintenance branches. Adde

[issue4558] with_stdc89

2008-12-06 Thread Roumen Petrov
Roumen Petrov <[EMAIL PROTECTED]> added the comment: Christian did you like to propose a separate configure flag for every dialect that GCC support? I prefer variables like OPT. ___ Python tracker <[EMAIL PROTECTED]>

[issue4561] Optimize new io library

2008-12-06 Thread Christian Heimes
Christian Heimes <[EMAIL PROTECTED]> added the comment: What's your OS, David? Please post the output of "uname -r" and ./python -c "import sys; print(sys.version)" ___ Python tracker <[EMAIL PROTECTED]> _

[issue4558] with_stdc89

2008-12-06 Thread Christian Heimes
Christian Heimes <[EMAIL PROTECTED]> added the comment: I think you don't get the point of the patch. The configure option *enforces* the C89 standard. Every non C89 conform C feature like // comments and the "inline" keyword will cause a compiler error. The patch is meant for testing the Python

[issue1717] Get rid of more refercenes to __cmp__

2008-12-06 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Bah. That means we'll have to start deprecating cmp() in 3.1, and won't be able to remove it until 3.2 or 3.3. :-) ___ Python tracker <[EMAIL PROTECTED]> ___

[issue4566] 2.6.1 breaks many applications that embed Python on Windows

2008-12-06 Thread Craig Holmquist
Craig Holmquist <[EMAIL PROTECTED]> added the comment: I've attached a manifest file that references the C runtime; adding this file to the Apache bin folder seems to workaround this issue. Added file: http://bugs.python.org/file12250/httpd.exe.manifest ___ P

[issue4558] with_stdc89

2008-12-06 Thread Roumen Petrov
Roumen Petrov <[EMAIL PROTECTED]> added the comment: There is no reason to overload configure script. Please look into pyport.h : #define Py_LOCAL(type) static type #define Py_LOCAL_INLINE(type) static inline type Someone add USE_INLINE - not finished. I guess that other source files has to use

[issue4506] 3.0 make test failures on Solaris 10

2008-12-06 Thread Mark Dickinson
Mark Dickinson <[EMAIL PROTECTED]> added the comment: The segfault is a little worrying; I don't understand that at all. Skip, can you come up with a configure patch that would allow isinf to be detected on Solaris? I'll also patch Py_IS_INFINITY to make sure that it forces its argument into

[issue4564] bytearray.fromhex doesn't respect bytearray subclass

2008-12-06 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: The same kind of request has been rejected several times: issue2267, issue1562. The explanation given is here: http://mail.python.org/pipermail/python-list/2005-January/300791.html """a base class has no idea what requirements may exis

[issue4565] io write() performance very slow

2008-12-06 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: This is expected: the I/O stack has been completely rewritten... in almost pure-python code. There is a project to rewrite it in C. It started at http://svn.python.org/view/sandbox/trunk/io-c/ -- assignee: -> amaury.forgeotda

[issue4445] String allocations waste 3 bytes of memory on average.

2008-12-06 Thread Mark Dickinson
Mark Dickinson <[EMAIL PROTECTED]> added the comment: Applied to py3k in r67610. -- status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___ __

[issue4566] 2.6.1 breaks many applications that embed Python on Windows

2008-12-06 Thread Craig Holmquist
Craig Holmquist <[EMAIL PROTECTED]> added the comment: I've attached the test program I was using. The commands I used to compile it are: cl /MT /c /IC:\Python26\include testpy.c link /LIBPATH:C:\Python26\libs testpy.obj ___ Python tracker <[EMAIL PROTECTED]

[issue4509] possible memoryview bug

2008-12-06 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: New bytearray patch at http://codereview.appspot.com/10049. I think I've covered all bases. array.array will need another patch (I must admit I care a bit less about it, since it's not a builtin type). The patch will have to be backported for

[issue4199] add shorthand global and nonlocal statements

2008-12-06 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: - the add_ast_fields() function seems to be added by this patch, but it is already in svn. - Are 1-tuple supported? t = [1] global a, = t -- nosy: +amaury.forgeotdarc ___ Python tr

[issue4566] 2.6.1 breaks many applications that embed Python on Windows

2008-12-06 Thread Craig Holmquist
Changes by Craig Holmquist <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file12249/testpy.c ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue4566] 2.6.1 breaks many applications that embed Python on Windows

2008-12-06 Thread Craig Holmquist
New submission from Craig Holmquist <[EMAIL PROTECTED]>: Applications on Windows that don't link to the MSVCR90.DLL via a manifest are broken with Python 2.6.1. This includes apps that link with the C library statically and apps that link with other versions of it. These applications worked fin

[issue4565] io write() performance very slow

2008-12-06 Thread Istvan Albert
New submission from Istvan Albert <[EMAIL PROTECTED]>: The write performance into text files is substantially slower (5x-8x) than that of python 2.5. This makes python 3.0 unsuited to any application that needs to write larger amounts of data. test code follows --

[issue3439] create a numbits() method for int and long types

2008-12-06 Thread Mark Dickinson
Changes by Mark Dickinson <[EMAIL PROTECTED]>: -- assignee: -> marketdickinson ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bu

[issue4561] Optimize new io library

2008-12-06 Thread David M. Beazley
David M. Beazley <[EMAIL PROTECTED]> added the comment: Just checked it with branches/py3k and the performance is the same. ___ Python tracker <[EMAIL PROTECTED]> ___ __

[issue4564] bytearray.fromhex doesn't respect bytearray subclass

2008-12-06 Thread Antoine Pitrou
New submission from Antoine Pitrou <[EMAIL PROTECTED]>: The following code says it all: >>> class B(bytearray): pass ... >>> b = B.fromhex("0c0a") >>> b bytearray(b'\x0c\n') >>> isinstance(b, B) False -- messages: 77130 nosy: pitrou priority: normal severity: normal status: open title:

  1   2   >