[issue3264] Use -lcrypto instead of -lcrypt on Solaris 2.6 when available

2008-07-02 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: Ok. I have no further ideas on what the problem might be, but I'm confident that linking with a different library is not the right thing to do. Linking with -lcrypt did always work on Solaris 2.6, so I'm not going to change that. --

[issue3265] Python-2.5.2/Modules/_ctypes/malloc_closure.c:70: error: `MAP_ANONYMOUS' undeclared

2008-07-02 Thread Martin Mokrejs
Martin Mokrejs <[EMAIL PROTECTED]> added the comment: Thanks, but I can only help with testing. :( ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue3266] Python-2.5.2/Modules/mmapmodule.c:915: error: `O_RDWR' undeclared

2008-07-02 Thread Martin Mokrejs
Martin Mokrejs <[EMAIL PROTECTED]> added the comment: So adding these two lines helped: # diff /usr/scratch/Python-2.5.2/Modules/mmapmodule.c.ori /usr/scratch/Python-2.5.2/Modules/mmapmodule.c 36a37 > #include 38a40 > #include # ___ Python tracker <[EMAIL P

[issue3265] Python-2.5.2/Modules/_ctypes/malloc_closure.c:70: error: `MAP_ANONYMOUS' undeclared

2008-07-02 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: > I will stop posting URLs. ;-) Thanks. None of the URLs seem to be helpful, anyway. Please avoid posting URLs without any indication as to what specific conclusion you like to see drawn from the page. It seems that Solaris 2.6 just doesn't

[issue3264] Use -lcrypto instead of -lcrypt on Solaris 2.6 when available

2008-07-02 Thread Martin Mokrejs
Martin Mokrejs <[EMAIL PROTECTED]> added the comment: # ar x /usr/lib/libcrypt.a;nm -g des_crypt.o U ___errno 033c T _des_crypt 0274 T _des_encrypt U _des_encrypt1 01b0 T _des_setkey U _mutex_lock U _mutex_unlock U _thr_getspecific

[issue3264] Use -lcrypto instead of -lcrypt on Solaris 2.6 when available

2008-07-02 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: Something must be broken with your system installation. des_crypt.o should define the function _des_crypt (ar x /usr/lib/libcrypt.a;nm -g des_crypt.o). What linker are you using? It seems that the shared version of libcrypt was only added in

[issue3265] Python-2.5.2/Modules/_ctypes/malloc_closure.c:70: error: `MAP_ANONYMOUS' undeclared

2008-07-02 Thread Martin Mokrejs
Martin Mokrejs <[EMAIL PROTECTED]> added the comment: http://unix.derkeiler.com/Newsgroups/comp.unix.solaris/2004-07/0256.html http://source.winehq.org/source/libs/wine/mmap.c I will stop posting URLs. ;-) ___ Python tracker <[EMAIL PROTECTED]>

[issue3265] Python-2.5.2/Modules/_ctypes/malloc_closure.c:70: error: `MAP_ANONYMOUS' undeclared

2008-07-02 Thread Martin Mokrejs
Martin Mokrejs <[EMAIL PROTECTED]> added the comment: A Goggle search gives between many others: http://gcc.gnu.org/ml/gcc/2000-09/msg00054.html http://www.ravenbrook.com/project/mps/master/design/vmso/ http://developers.sun.com/solaris/articles/read_mmap.html Added file: http://bugs.python.org/

[issue3268] Cleanup of tp_basicsize inheritance

2008-07-02 Thread Adam Olsen
New submission from Adam Olsen <[EMAIL PROTECTED]>: inherit_special contains logic to inherit the base type's tp_basicsize if the new type doesn't have it set. The logic was spread over several lines, but actually does almost nothing (presumably an artifact of previous versions), so here's a pat

[issue3267] yield in list comprehensions possibly broken in 3.0

2008-07-02 Thread Erick Tryzelaar
New submission from Erick Tryzelaar <[EMAIL PROTECTED]>: This may be a known consequence of python 3.0, but I couldn't find any reference to it, nor a test case that covers it. Here's a valid use of yield in 2.5.1: >>> def foo(): ... x=[(yield x) for x in 1,2,3] ... yield 5 ... yield x >

[issue3264] Use -lcrypto instead of -lcrypt on Solaris 2.6 when available

2008-07-02 Thread Martin Mokrejs
Martin Mokrejs <[EMAIL PROTECTED]> added the comment: # ar tv /usr/lib/libcrypt.a rw-rw-r-- 0/1 1296 Jul 16 05:57 1997 crypt.o rw-rw-r-- 0/1 4996 Jul 16 05:57 1997 cryptio.o rw-rw-r-- 0/1 1508 Jul 16 05:57 1997 des_encrypt.o rw-rw-r-- 0/1 5356 Jul 16 05:58 1997 des_crypt.o # ls -la /usr/l

[issue3266] Python-2.5.2/Modules/mmapmodule.c:915: error: `O_RDWR' undeclared

2008-07-02 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: Why do you think there is a typo? O_RDWR is a valid constant that should be provided on all Unix-like systems. Can you please find out from the open(2) man page: a) whether Solaris 2.6 supports the O_RDWR constant, b) what header files to in

[issue3265] Python-2.5.2/Modules/_ctypes/malloc_closure.c:70: error: `MAP_ANONYMOUS' undeclared

2008-07-02 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: Can you please report from the mmap man page how anonymous mappings can be achieved on Solaris 2.6? -- assignee: -> theller nosy: +loewis, theller ___ Python tracker <[EMAIL PROTECTED]>

[issue3264] Use -lcrypto instead of -lcrypt on Solaris 2.6 when available

2008-07-02 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: Why didn't it link with /usr/lib/libcrypt.so? That has always worked on Solaris, including Solaris 2.6. In addition, even if it did decide to use libcrypt.a for some strange reason, it should still link successfully, since libcrypt.a should

[issue3259] fix_imports needs to be using the 'as' keyword

2008-07-02 Thread Brett Cannon
Changes by Brett Cannon <[EMAIL PROTECTED]>: -- resolution: -> invalid ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list

[issue3259] fix_imports needs to be using the 'as' keyword

2008-07-02 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: Gotcha. Here is to hoping that won't cause issues with someone's variable name being silly. -- status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___

[issue3261] Lib/test/test_cookielib declares utf-8 encoding, but contains non-valid bytes

2008-07-02 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: On Wed, Jul 2, 2008 at 3:30 PM, Leonardo Soto <[EMAIL PROTECTED]> wrote: > > Leonardo Soto <[EMAIL PROTECTED]> added the comment: > > Thanks, that was fast! > It was simple and came into my inbox at just the right time. =)

[issue3259] fix_imports needs to be using the 'as' keyword

2008-07-02 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: Yeah, but then commands will be replaced with subprocess. $ cat > m import commands commands.getoutput() $ 2to3 m RefactoringTool: Skipping implicit fixer: buffer RefactoringTool: Skipping implicit fixer: idioms RefactoringTool: Skipping i

[issue3088] test_multiprocessing hangs on OS X 10.5.3

2008-07-02 Thread Jesse Noller
Jesse Noller <[EMAIL PROTECTED]> added the comment: Barring the segfaults Mark is seeing, I went through and removed all of the tests, and I have been incrementally adding them back one by one. _TestQueue seems to be the one (at least, the first) which is hanging intermittently in a racquire()

[issue3088] test_multiprocessing hangs on OS X 10.5.3

2008-07-02 Thread Adam Olsen
Adam Olsen <[EMAIL PROTECTED]> added the comment: Also, make sure you do a "make clean" since you last updated the tree or touched any file or ran configure. The automatic dependency checking isn't 100% reliable. ___ Python tracker <[EMAIL PROTECTED]>

[issue3088] test_multiprocessing hangs on OS X 10.5.3

2008-07-02 Thread Adam Olsen
Adam Olsen <[EMAIL PROTECTED]> added the comment: That looks better. It crashed while deleting an exception, who's args tuple has a bogus refcount. Could be a refcount issue of the exception or the args, or of something that that references them, or a dangling pointer, or a buffer overrun, etc.

[issue3262] re.split doesn't split with zero-width regex

2008-07-02 Thread Matthew Barnett
Changes by Matthew Barnett <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file10794/split_zero_width.diff ___ Python tracker <[EMAIL PROTECTED]> ___

[issue3262] re.split doesn't split with zero-width regex

2008-07-02 Thread Matthew Barnett
Matthew Barnett <[EMAIL PROTECTED]> added the comment: New patch version after studying #988761 and doing more testing. Added file: http://bugs.python.org/file10797/split_zero_width_2.diff ___ Python tracker <[EMAIL PROTECTED]>

[issue3088] test_multiprocessing hangs on OS X 10.5.3

2008-07-02 Thread Mark Dickinson
Mark Dickinson <[EMAIL PROTECTED]> added the comment: Here's a new traceback (a different error again, this time: a negative refcount in Objects/tupleobject.c.) Added file: http://bugs.python.org/file10796/traceback2.txt ___ Python tracker <[EMAIL PROTECTED]

[issue3088] test_multiprocessing hangs on OS X 10.5.3

2008-07-02 Thread Mark Dickinson
Mark Dickinson <[EMAIL PROTECTED]> added the comment: > Are you sure that's right? Not at all. :-) > That traceback has no mention of > PyObject_Malloc or obmalloc.c. Try checking the date. Also, if you > use "gdb ./python.exe " to start gdb it should print a > warning if the program doesn'

[issue3088] test_multiprocessing hangs on OS X 10.5.3

2008-07-02 Thread Jesse Noller
Jesse Noller <[EMAIL PROTECTED]> added the comment: Doubtful Miki - I do the work on the module on an 8 Core Gentoo, 8 Core Mac Pro and Dual Core Macbook Pro - it's not a # of cores issue, unless it's simply a >1 issue. ___ Python tracker <[EMAIL PROTECTED]>

[issue3266] Python-2.5.2/Modules/mmapmodule.c:915: error: `O_RDWR' undeclared

2008-07-02 Thread Martin Mokrejs
New submission from Martin Mokrejs <[EMAIL PROTECTED]>: Some typo in the sources showing up on Solaris 2.6 only? building 'mmap' extension gcc -shared -fPIC -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -I/usr/scratch/Python-2.5.2/./Include -I. -IInclude -I./Include

[issue3265] Python-2.5.2/Modules/_ctypes/malloc_closure.c:70: error: `MAP_ANONYMOUS' undeclared

2008-07-02 Thread Martin Mokrejs
New submission from Martin Mokrejs <[EMAIL PROTECTED]>: Hi, when building on Solaris 2.6 with gcc I get the following error: building '_ctypes' extension gcc -shared -fPIC -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -I/usr/scratch/Python-2.5.2/./Include -Ibuild/t

[issue3088] test_multiprocessing hangs on OS X 10.5.3

2008-07-02 Thread Miki Tebeka
Miki Tebeka <[EMAIL PROTECTED]> added the comment: I just run "make test" and it never moves past test_multiprocessing. Maybe it's my machine which is dual cpu quad core (total of 8 cores)? ___ Python tracker <[EMAIL PROTECTED]>

[issue3262] re.split doesn't split with zero-width regex

2008-07-02 Thread Matthew Barnett
Matthew Barnett <[EMAIL PROTECTED]> added the comment: I've found that this issue has been discussed before: #988761. ___ Python tracker <[EMAIL PROTECTED]> ___

[issue3088] test_multiprocessing hangs on OS X 10.5.3

2008-07-02 Thread Adam Olsen
Adam Olsen <[EMAIL PROTECTED]> added the comment: On Wed, Jul 2, 2008 at 5:08 PM, Mark Dickinson <[EMAIL PROTECTED]> wrote: > > Mark Dickinson <[EMAIL PROTECTED]> added the comment: > > Okay. I just got about 5 perfect runs of the test suite, followed by: > > Macintosh-3:trunk dickinsm$ ./python

[issue3122] sys.getsizeof() gives an AttributeError for _sre objects.

2008-07-02 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: It now works for SRE objects in the py3k branch since r64672, but my patch is still needed for types that define tp_getattr. ___ Python tracker <[EMAIL PROTECTED]> _

[issue3263] Odd code fragment in ABC definitions

2008-07-02 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: There are tons of ways to violate Liskov in Python. Liskov is not always the right rule. NotImplemented is not appropriate -- it is only used as a magic return value from binary functions. -- resolution: -> rejected status: open -

[issue3262] re.split doesn't split with zero-width regex

2008-07-02 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Probably by design. There's probably even a unittest for this behavior. -- nosy: +gvanrossum ___ Python tracker <[EMAIL PROTECTED]>

[issue3263] Odd code fragment in ABC definitions

2008-07-02 Thread Raymond Hettinger
Raymond Hettinger <[EMAIL PROTECTED]> added the comment: I don't think we should build in explicit support for bad designs that violate the Liskov substitution principle. Are there any valid use cases for wanting non-hashable subclasses of hashable classes? If for some reason, this feature sur

[issue3264] Use -lcrypto instead of -lcrypt on Solaris 2.6 when available

2008-07-02 Thread Martin Mokrejs
New submission from Martin Mokrejs <[EMAIL PROTECTED]>: Hi, although the issues libraries to be created with -fpic are known I still do believe ./config could do something here: building 'crypt' extension gcc -shared -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes build/

[issue3263] Odd code fragment in ABC definitions

2008-07-02 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: This is precisely under discussion in issue2235: if a base class is hashable, a derived class may set __hash__ to None, and disallow hashing. -- nosy: +amaury.forgeotdarc ___ Python tracker <

[issue3088] test_multiprocessing hangs on OS X 10.5.3

2008-07-02 Thread Mark Dickinson
Mark Dickinson <[EMAIL PROTECTED]> added the comment: Okay. I just got about 5 perfect runs of the test suite, followed by: Macintosh-3:trunk dickinsm$ ./python.exe -m test.regrtest [...] test_multiprocessing Assertion failed: (bp != NULL), function PyObject_Malloc, file Objects/obmalloc.c, li

[issue3247] dir of an "_sre.SRE_Match" object not working

2008-07-02 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: Done in several changes: r64672 r64674 r64681. Now the dir() is even more complete than before. I get: ['__class__', '__copy__', '__deepcopy__', '__delattr__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '

[issue3263] Odd code fragment in ABC definitions

2008-07-02 Thread Raymond Hettinger
New submission from Raymond Hettinger <[EMAIL PROTECTED]>: In the Hashable ABC, there is a peculiar code fragment: if "__hash__" in B.__dict__: if B.__dict__["__hash__"]: return True break When would the innermost i

[issue3262] re.split doesn't split with zero-width regex

2008-07-02 Thread Matthew Barnett
Matthew Barnett <[EMAIL PROTECTED]> added the comment: The attached patch appears to work. -- keywords: +patch Added file: http://bugs.python.org/file10794/split_zero_width.diff ___ Python tracker <[EMAIL PROTECTED]>

[issue3088] test_multiprocessing hangs on OS X 10.5.3

2008-07-02 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: And please add the "-v" option at the end, so we can see which function fails ___ Python tracker <[EMAIL PROTECTED]> ___

[issue2235] __eq__ / __hash__ check doesn't take inheritance into account

2008-07-02 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: Isn't that a serious compatibility issue? 2.5 code should work on 2.6 with minimal effort. For deque objects, I don't get your point: Python 2.6b1+ (trunk, Jul 1 2008, 22:35:48) [MSC v.1500 32 bit Intel)] on win32 >>> from collection

[issue3261] Lib/test/test_cookielib declares utf-8 encoding, but contains non-valid bytes

2008-07-02 Thread Leonardo Soto
Leonardo Soto <[EMAIL PROTECTED]> added the comment: Thanks, that was fast! ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list maili

[issue3261] Lib/test/test_cookielib declares utf-8 encoding, but contains non-valid bytes

2008-07-02 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: Backported to 2.5 in r64680 and blocked/merged in 3.0 (which had no issues) in r64678 and r64679. -- assignee: -> brett.cannon status: pending -> closed versions: +Python 2.6 ___ Python tracker <[EM

[issue3262] re.split doesn't split with zero-width regex

2008-07-02 Thread Matthew Barnett
New submission from Matthew Barnett <[EMAIL PROTECTED]>: re.split doesn't split a string when the regex matches a zero characters. For example: re.split(r'\b', 'a b') returns ['a b'] instead of ['', 'a', ' ', 'b', '']. re.split(r'(? __

[issue3088] test_multiprocessing hangs on OS X 10.5.3

2008-07-02 Thread Adam Olsen
Adam Olsen <[EMAIL PROTECTED]> added the comment: On Wed, Jul 2, 2008 at 3:44 PM, Mark Dickinson <[EMAIL PROTECTED]> wrote: > > Mark Dickinson <[EMAIL PROTECTED]> added the comment: > >> Mark, can you try commenting out _TestCondition and seeing if you can >> still get it to hang?; > > I removed

[issue3261] Lib/test/test_cookielib declares utf-8 encoding, but contains non-valid bytes

2008-07-02 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: Well, r64673 was a failed attempt at fixing this by blindly changing the file over to UTF-8. But r64677 reverted the previous commit and just changed the encoding specification for the file. I am not backporting to 2.5 and forward-porting to 3.

[issue3088] test_multiprocessing hangs on OS X 10.5.3

2008-07-02 Thread Jesse Noller
Jesse Noller <[EMAIL PROTECTED]> added the comment: That output exceeds my knowledge of python internals by several light years. :( ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue3088] test_multiprocessing hangs on OS X 10.5.3

2008-07-02 Thread Mark Dickinson
Mark Dickinson <[EMAIL PROTECTED]> added the comment: > Mark, can you try commenting out _TestCondition and seeing if you can > still get it to hang?; I removed the _TestCondition class entirely from test_multiprocessing, and did make test again. It didn't hang! :-) It crashed instead. :-(

[issue2235] __eq__ / __hash__ check doesn't take inheritance into account

2008-07-02 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: Unhashable types that implement an "I'm not hashable" __hash__ method will indeed require modification in 2.6 in order to avoid incorrectly passing an "isinstance(obj, collections.Hashable)" check (note that several of the mutable standard libra

[issue3088] test_multiprocessing hangs on OS X 10.5.3

2008-07-02 Thread Jesse Noller
Jesse Noller <[EMAIL PROTECTED]> added the comment: Mark, can you try commenting out _TestCondition and seeing if you can still get it to hang?; ___ Python tracker <[EMAIL PROTECTED]> ___

[issue3088] test_multiprocessing hangs on OS X 10.5.3

2008-07-02 Thread Jesse Noller
Jesse Noller <[EMAIL PROTECTED]> added the comment: Thanks. I'm a been mystified why it hanging on you - I'm on a 2008 Macbook Pro running latest 10.5.4. I'm still trying to get it to hang though. ___ Python tracker <[EMAIL PROTECTED]>

[issue3119] pickle.py is limited by python's call stack

2008-07-02 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: Hi, Le mercredi 02 juillet 2008 à 20:43 +, Aaron Gallagher a écrit : > Aaron Gallagher <[EMAIL PROTECTED]> added the comment: > > Ah, I didn't know that a list would be as fast for appending and popping. > I knew that lists were optimiz

[issue3088] test_multiprocessing hangs on OS X 10.5.3

2008-07-02 Thread Mark Dickinson
Mark Dickinson <[EMAIL PROTECTED]> added the comment: > What platform mark? OS X 10.5.4/Intel Core 2 Duo. (It's a 2007 Macbook Pro.) ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue3088] test_multiprocessing hangs on OS X 10.5.3

2008-07-02 Thread Mark Dickinson
Mark Dickinson <[EMAIL PROTECTED]> added the comment: Here's an interesting snippet from the my most recent attempt to run 'make test'. I got a failed assertion: [...] test_multibytecodec_support test_multifile test_multiprocessing Assertion failed: (bp != NULL), function PyObject_Malloc, file

[issue3088] test_multiprocessing hangs on OS X 10.5.3

2008-07-02 Thread Jesse Noller
Jesse Noller <[EMAIL PROTECTED]> added the comment: What platform mark? ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list mailing l

[issue3088] test_multiprocessing hangs on OS X 10.5.3

2008-07-02 Thread Mark Dickinson
Mark Dickinson <[EMAIL PROTECTED]> added the comment: > The G4 buildbot is green right now. Sure. But it looks like test_multiprocessing hung on build 3645, which as far as I can tell included all the recent fixes. My machine's behaving the same way: when doing 'make test', sometimes test_m

[issue3088] test_multiprocessing hangs on OS X 10.5.3

2008-07-02 Thread Jesse Noller
Jesse Noller <[EMAIL PROTECTED]> added the comment: Looking through the buildbot's history (OSX G4) I can see it hung *prior* and after the change to turn the manager tests back on, so it's unrelated to those tests. I'll reopen this bug. -- resolution: fixed -> accepted status: closed

[issue3088] test_multiprocessing hangs on OS X 10.5.3

2008-07-02 Thread Jesse Noller
Jesse Noller <[EMAIL PROTECTED]> added the comment: The G4 buildbot is green right now. ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bug

[issue3088] test_multiprocessing hangs on OS X 10.5.3

2008-07-02 Thread Mark Dickinson
Mark Dickinson <[EMAIL PROTECTED]> added the comment: The g4 buildbot still isn't happy, either. See: http://www.python.org/dev/buildbot/trunk.stable/g4%20osx.4%20trunk/builds/ 3645/step-test/0 (This was a run of revision 64663, I think.) ___ Python tracker

[issue3119] pickle.py is limited by python's call stack

2008-07-02 Thread Aaron Gallagher
Aaron Gallagher <[EMAIL PROTECTED]> added the comment: Ah, I didn't know that a list would be as fast for appending and popping. I knew that lists were optimized for .append() and .pop(), but I didn't know that a list would be just as fast as a deque if it was just used as a stack. And I'll b

[issue3247] dir of an "_sre.SRE_Match" object not working

2008-07-02 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: The cause is that this object use a custom tp_getattr slot, and use Py_FindMethod from there. and py3k removed the special "__methods__" lookup that allowed to lists these items. Of course, nowadays the way to add methods is not to put

[issue3238] backport python 3.0 language functionality to python 2.6 by adding 7 opcodes to ceval.c

2008-07-02 Thread Collin Winter
Collin Winter <[EMAIL PROTECTED]> added the comment: I don't know why this is assigned to me. -- assignee: collinwinter -> components: +None -2to3 (2.x to 3.0 conversion tool) ___ Python tracker <[EMAIL PROTECTED]>

[issue3261] Lib/test/test_cookielib declares utf-8 encoding, but contains non-valid bytes

2008-07-02 Thread Leonardo Soto
New submission from Leonardo Soto <[EMAIL PROTECTED]>: http://svn.python.org/projects/python/branches/release25-maint/Lib/test/test_cookielib.py contains non-utf8 bytes. Currently, That confuses Jython. -- messages: 69115 nosy: leosoto severity: normal status: open title: Lib/test/test_

[issue3260] fix_imports does not handle intra-package renames

2008-07-02 Thread Brett Cannon
New submission from Brett Cannon <[EMAIL PROTECTED]>: ``from test import test_support`` should lead to ``from test import support as test_support``. Also does not work for ``from test.test_support import Error``. There is also no good way to handle ``import test.test_support`` since ``import tes

[issue3259] fix_imports needs to be using the 'as' keyword

2008-07-02 Thread Brett Cannon
New submission from Brett Cannon <[EMAIL PROTECTED]>: If you run ``echo "import commands" | ./2to3 -f imports -``, you end up with ``import subprocess``. That's bad as the code in the module works off of 'commands'. The fix really should be ``import subprocess as commands``. -- assignee:

[issue2876] Write UserDict fixer for 2to3

2008-07-02 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: There is a possible patch in issue2046. -- superseder: -> patch to fix_import: UserDict -> collections ___ Python tracker <[EMAIL PROTECTED]> _

[issue2046] patch to fix_import: UserDict -> collections

2008-07-02 Thread Brett Cannon
Changes by Brett Cannon <[EMAIL PROTECTED]>: -- superseder: Write UserDict fixer for 2to3 -> ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue2046] patch to fix_import: UserDict -> collections

2008-07-02 Thread Brett Cannon
Changes by Brett Cannon <[EMAIL PROTECTED]>: -- superseder: -> Write UserDict fixer for 2to3 ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue3235] Improve subprocess module usage

2008-07-02 Thread Martin Mokrejs
Martin Mokrejs <[EMAIL PROTECTED]> added the comment: Georg, but would you please improve the docs explaining what communicate really does? The syntax is nice but I don't see how can I use poll() described in the same above to use that. Providing Examples section would be the best. Of course I do

[issue3088] test_multiprocessing hangs on OS X 10.5.3

2008-07-02 Thread Jesse Noller
Jesse Noller <[EMAIL PROTECTED]> added the comment: Miki where does it hang? I've run it in a tight loop for over 500 iterations without a single hang. ___ Python tracker <[EMAIL PROTECTED]> _

[issue3088] test_multiprocessing hangs on OS X 10.5.3

2008-07-02 Thread Miki Tebeka
Miki Tebeka <[EMAIL PROTECTED]> added the comment: Still hangs for me on revision 64665 ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bug

[issue1690840] xmlrpclib methods submit call on __str__, __repr__

2008-07-02 Thread Ralf Schmitt
Changes by Ralf Schmitt <[EMAIL PROTECTED]>: -- nosy: +schmir ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list mailing

[issue3125] test_multiprocessing causes test_ctypes to fail

2008-07-02 Thread Jesse Noller
Jesse Noller <[EMAIL PROTECTED]> added the comment: Tests are back on as of r64663 on trunk. -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]>

[issue3088] test_multiprocessing hangs on OS X 10.5.3

2008-07-02 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: Not sure that all problems reported here are resolved. For example, "test_get (__main__.WithProcessesTestQueue)" does not seem to use threading.local at all. ___ Python tracker <[EMAIL PROTECTED]>

[issue449227] rlcompleter add "(" to callables feature

2008-07-02 Thread Facundo Batista
Facundo Batista <[EMAIL PROTECTED]> added the comment: Fixed in 64664. Thank you everybody! -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> __

[issue3125] test_multiprocessing causes test_ctypes to fail

2008-07-02 Thread Jesse Noller
Jesse Noller <[EMAIL PROTECTED]> added the comment: I closed the wrong bug -- resolution: fixed -> accepted status: closed -> open ___ Python tracker <[EMAIL PROTECTED]> ___ __

[issue3088] test_multiprocessing hangs on OS X 10.5.3

2008-07-02 Thread Jesse Noller
Jesse Noller <[EMAIL PROTECTED]> added the comment: Tests are back on as of r64663 on trunk. -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]>

[issue3258] ctypes assertion failure in trunk

2008-07-02 Thread Tim Golden
Tim Golden <[EMAIL PROTECTED]> added the comment: The comment just before _ctypes.c:309 indicates that when a NULL is returned at that point, an error condition should already obtain. ___ Python tracker <[EMAIL PROTECTED]> __

[issue3258] ctypes assertion failure in trunk

2008-07-02 Thread Tim Golden
New submission from Tim Golden <[EMAIL PROTECTED]>: The following code raises an Assertion Failure under debug in r64518 running on Windows XP SP2: import ctypes class X (ctypes.Structure): pass ctypes.POINTER (X) Assertion failed: PyErr_Occurred(), file ..\Modules\_ctypes\_ctypes.c, line 3

[issue2235] __eq__ / __hash__ check doesn't take inheritance into account

2008-07-02 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: I don't like the changes in listobject.c and dictobject.c: they seem to imply that all unhashable types must be modified when upgrading to 2.6. ___ Python tracker <[EMAIL PROTECTED]>

[issue3257] "#define socklen_t int" in pyconfig.h

2008-07-02 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: This block is only to support the older VC6 compiler. Since your installation was most certainly compiled with VS7, your change is correct. (or better, something like: #if !defined(_MSC_VER) || _MSC_VER + 0 >= 1300 ) The trunk versi

[issue600362] relocate cgi.parse_qs() into urlparse

2008-07-02 Thread Facundo Batista
Facundo Batista <[EMAIL PROTECTED]> added the comment: Hi Senthil, some details: - You should not withdraw the parse_qsl from cgi.rst (btw, why didn't you extracted also the parse_qs one?), but put a Deprecation message, saying that the user should use it from the urlparse module. - In cgi.py,

[issue3257] "#define socklen_t int" in pyconfig.h

2008-07-02 Thread fgoujeon
fgoujeon <[EMAIL PROTECTED]> added the comment: Erratum: The culpables are these lines (from line 428): /* Define to `int' if doesn't define. */ #if _MSC_VER + 0 >= 1300 /* VC.NET typedefs socklen_t in ws2tcpip.h. */ #else #define socklen_t int #endif Sorry.

[issue3257] "#define socklen_t int" in pyconfig.h

2008-07-02 Thread fgoujeon
New submission from fgoujeon <[EMAIL PROTECTED]>: Hello all, I'm using MinGW 4.2.1 and was unable to compile my code when including pyconfig.h. The culpables are these lines (from line 428): /* Define to `int' if doesn't define. */ #if 1 //_MSC_VER + 0 >= 1300 /* VC.NET typedefs socklen_t in

[issue2235] __eq__ / __hash__ check doesn't take inheritance into account

2008-07-02 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: Suggestion from GvR (one I like): instead of re-using Py_None, add a new C function that is stored in the tp_hash slot as a sentinel instead of the Py_None value used in the posted version of the patch. This will avoid breaking code that just ch

[issue754016] urlparse goes wrong with IP:port without scheme

2008-07-02 Thread Facundo Batista
Facundo Batista <[EMAIL PROTECTED]> added the comment: I think this last patch is ok, but the third case that was raised in the web-sig should be addressed: """ There's even a 3rd case: HTTP's Request-URI. For example, '//path' must be treated as an abs_path consisting of two path_segments ['',

[issue2195] urlparse() does not handle URLs with port numbers properly

2008-07-02 Thread Facundo Batista
Facundo Batista <[EMAIL PROTECTED]> added the comment: Duplicate of the #754016 one. -- nosy: +facundobatista resolution: -> duplicate status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> __

[issue678464] Docs don't define sequence-ness very well

2008-07-02 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: I think the glossary now has some good definitions of iterable and sequence, so we can close this. (after 5 years!) -- nosy: +benjamin.peterson resolution: -> out of date status: open -> closed ___

[issue648658] xmlrpc can't do proxied HTTP

2008-07-02 Thread Barry A. Warsaw
Changes by Barry A. Warsaw <[EMAIL PROTECTED]>: -- nosy: +barry ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list mailin

[issue3256] Multiprocessing docs are not 3.0-ready

2008-07-02 Thread Benjamin Peterson
Changes by Benjamin Peterson <[EMAIL PROTECTED]>: -- assignee: georg.brandl -> jnoller ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Py

[issue3173] external strftime for Python?

2008-07-02 Thread Skip Montanaro
Skip Montanaro <[EMAIL PROTECTED]> added the comment: Good question. I don't claim that the strftime.c I found is complete for our needs, only that we can avoid the "rewrite strftime from scratch" problem Guido indicated. S ___ Python tracker <[EMAIL PROTECT

[issue3256] Multiprocessing docs are not 3.0-ready

2008-07-02 Thread Jesse Noller
Jesse Noller <[EMAIL PROTECTED]> added the comment: If you're willing to make the patch - I can review and submit. I appreciate it ___ Python tracker <[EMAIL PROTECTED]> ___ __

[issue3256] Multiprocessing docs are not 3.0-ready

2008-07-02 Thread Andrii V. Mishkovskyi
New submission from Andrii V. Mishkovskyi <[EMAIL PROTECTED]>: Multiprocessing docs contain examples, that are not valid py3k code, mostly because of print used as a statement. Example (taken from multiprocessing.rst): from multiprocessing import Process def f(name): print 'hello', name if

[issue678464] Docs don't define sequence-ness very well

2008-07-02 Thread Skip Montanaro
Skip Montanaro <[EMAIL PROTECTED]> added the comment: (Sorry for the delay responding. Gmail thought Facundo's response was spam. :-/) In defense of my bug report, note that I submitted it in January 2003! It's quite possible that the docs have improved in this regard since then. If you think

[issue3190] Pydoc should ignore __package__ attributes

2008-07-02 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: Fixed for 2.6b2 in rev 64656 (will be ported to Py3k as part of the normal merge process) -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]>

[issue3255] [proposal] alternative for re.sub

2008-07-02 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto <[EMAIL PROTECTED]>: I often do same mistake again and again. Most of re module's method takes optional argument "flags" like this. finditer( pattern, string[, flags]) But, sub() takes optional argument "count" not "flags". sub( pattern, repl, string[, co