[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

[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

[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]> ___

[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 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]> _

[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

[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]>

[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).

[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

[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

[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]> ___

[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] 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

[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 _

[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

[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'

[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]> ___ ___

[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 Raymond Hettinger
Raymond Hettinger <[EMAIL PROTECTED]> added the comment: Fixed r67624. -- nosy: +rhettinger resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___

[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'],

[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

[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]> __

[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

[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 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]> ___

[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

[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

[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

[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

<    1   2