[issue9581] PosixGroupsTester fails as root

2010-08-13 Thread George Yoshida
George Yoshida qui...@users.sourceforge.net added the comment: Under 2.6, there's another failure: As for 2.6/2.7 issues, changing 'assertListEqual' to 'assertEqual' should suffice. -- keywords: +patch nosy: +quiver Added file: http://bugs.python.org/file18496/2.6.diff

[issue9575] os.listdir() crashes on some long and deep paths in Windows 7

2010-08-13 Thread Heejin
Heejin ahee...@gmail.com added the comment: Thank you for your answer. I cannot provide any error messages or stack traces because it really *crashed*. python.exe suddenly stops working and a windows pops up saying something like python.exe had a problem and needed to be closed I cannot say

[issue9264] trace.py documentation is incomplete

2010-08-13 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Alexander, I agree that the documentation isn't yet in a perfect state and can be further improved. Since there's still time for the next milestone of 3.2, there's no reason not to improve it. So I'm open to ideas and am willing to submit

[issue9575] os.listdir() crashes on some long and deep paths in Windows 7

2010-08-13 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: Thanks for the feedback. I'll close this for now as works for me. Feel free to reopen if you can come up with anything fresh. -- resolution: - works for me stage: - committed/rejected status: open - closed

[issue8433] buildbot: test_curses failure, getmouse() returned ERR

2010-08-13 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Fixed in 2.6 in r83970 (3.1 and 2.7 were fixed in revisions r83781, r83782). -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8433

[issue9584] Allow curly braces in fnmatch

2010-08-13 Thread Mathieu Bridon
New submission from Mathieu Bridon boche...@fedoraproject.org: The attached patch allows for shell curly braces with fnmatch.filter(). This makes the following possible: import fnmatch import os for file in os.listdir('.'): ... if fnmatch.fnmatch(file, '*.{txt,csv}'): ... print

[issue9584] Allow curly braces in fnmatch

2010-08-13 Thread Mathieu Bridon
Mathieu Bridon boche...@fedoraproject.org added the comment: The attached patch allows for shell curly braces with fnmatch.filter(). Oops, I meant that it allows for curly braces in fnmatch.translate(), which makes it available in the whole fnmatch module. --

[issue2944] asyncore doesn't handle connection refused correctly

2010-08-13 Thread Martin v . Löwis
Changes by Martin v. Löwis mar...@v.loewis.de: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2944 ___ ___

[issue6609] zipfile: WindowsError [267] The directory name is invalid

2010-08-13 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: Closing as won't fix: this would be the same if you had any code which tried to do os.mkdir (aux). By way of comparison, Info-ZIP's UnZip returns checkdir error: aux exists but is not directory which actually seems less useful! I don't

[issue670664] HTMLParser.py - more robust SCRIPT tag parsing

2010-08-13 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +Hunanyan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue670664 ___ ___ Python-bugs-list

[issue9577] html parser bug related with CDATA sections

2010-08-13 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: Removed file: http://bugs.python.org/file18495/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9577 ___

[issue9584] Allow curly braces in fnmatch

2010-08-13 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Thanks for this suggestion and patch. In general I think more tests would be good, A test for {} would clarify what you are expecting there. -- nosy: +r.david.murray stage: - patch review versions: +Python 3.2

[issue9585] Largefile detection in configure fails

2010-08-13 Thread David Austin
New submission from David Austin nitsuadi...@gmail.com: On a Linux Xeon server (x86_64) largefile support is (incorrectly) not included. configure determines: checking size of int... 4 checking size of long... 8 checking size of void *... 8 checking size of short... 2 checking size of float...

[issue9584] Allow curly braces in fnmatch

2010-08-13 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: In Bash, * and ? match only characters in existing files, but {a,b} always produces two filenames, even if the files don’t exist. Do we want to mimic this behavior in fnmatch? -- nosy: +eric.araujo

[issue9586] warning: comparison between pointer and integer in multiprocessing build on PPC/Tiger

2010-08-13 Thread Mark Dickinson
New submission from Mark Dickinson dicki...@gmail.com: The PPC Tiger buildbot build output shows (e.g., for 2.7): /Users/buildbot/buildarea/2.7.parc-tiger-1/build/Modules/_multiprocessing/semaphore.c:421: warning: initialization makes pointer from integer without a cast

[issue9586] warning: comparison between pointer and integer in multiprocessing build on PPC/Tiger

2010-08-13 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: The same warnings show up on the x86 Tiger buildbot. Leopard and Snow Leopard seem to be fine, though. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9586

[issue9586] warning: comparison between pointer and integer in multiprocessing build on Tiger

2010-08-13 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- title: warning: comparison between pointer and integer in multiprocessing build on PPC/Tiger - warning: comparison between pointer and integer in multiprocessing build on Tiger ___ Python tracker

[issue9425] Rewrite import machinery to work with unicode paths

2010-08-13 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: r83971 enables test.support.TESTFN_UNDECODEABLE on non-Windows OSes. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9425 ___

[issue9584] Allow curly braces in fnmatch

2010-08-13 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Ah, I had forgotten that detail, Éric. No, it doesn't seem as if implementing braces as matchers is appropriate. fnmatch is only implementing the shell file name globbing. Doing the equivalent of brace expansion would have to be done

[issue9586] warning: comparison between pointer and integer in multiprocessing build on Tiger

2010-08-13 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: See also: http://paulbeachsblog.blogspot.com/2007/12/building-firebird-20x-macos-semaphoreh.html It looks as though SEM_FAILED is defined as -1 on OS X 10.4, and (sem_t *)-1 on OS X 10.5+, so it's really a bug in the OS X header file.

[issue9425] Rewrite import machinery to work with unicode paths

2010-08-13 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I commited nullimporter_unicode.patch with an unit test as r83972. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9425 ___

[issue9425] Rewrite import machinery to work with unicode paths

2010-08-13 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: Removed file: http://bugs.python.org/file18434/nullimporter_unicode.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9425 ___

[issue9584] Allow curly braces in fnmatch

2010-08-13 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: My view is that people using fnmatch/glob are expecting to get back the same list of files that they would if they ran 'echo globpattern' in the shell. The major shells (sh, bash, zsh, csh) seem to be pretty consistent in this regard

[issue9586] warning: comparison between pointer and integer in multiprocessing build on Tiger

2010-08-13 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: BTW, as far as I can tell from the standard (see e.g., section 6.5.9p2 of www.open-std.org/jtc1/sc22/wg14/www/docs/n1256.pdf ), comparison between a pointer and an integer gives undefined behaviour, except in the case where the integer can

[issue9560] platform.py: use -b option for file command in _syscmd_file()

2010-08-13 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Looking at the only use case of _syscmd_file(), it may not even be worth the trouble of adding the -b option. Fixing the doc-string may be enough: (...) Well, my problem is that _syscmd_file() fails with a non encodable

[issue9560] platform.py: use -b option for file command in _syscmd_file()

2010-08-13 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: @lemburg: Your mail client likes to change the issues' title by adding some spaces :-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9560

[issue9425] Rewrite import machinery to work with unicode paths

2010-08-13 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: Removed file: http://bugs.python.org/file18469/_PyFile_FromFdUnicode.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9425 ___

[issue9584] Allow curly braces in fnmatch

2010-08-13 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: My view is that people using fnmatch/glob are expecting to get back the same list of files that they would if they ran 'echo globpattern' in the shell. But it's not the case since we currently don't process braces anyway. The major shells

[issue9581] PosixGroupsTester fails as root

2010-08-13 Thread George Yoshida
George Yoshida qui...@users.sourceforge.net added the comment: test_initgroups fails only if the test is invoked by a root and the user is assigned to only one group. If I understand test_initgroups correctly, it (1)looks for an unused gid, (2)inits process user's group with that gid, (3)checks

[issue9560] platform.py: use -b option for file command in _syscmd_file()

2010-08-13 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: STINNER Victor wrote: STINNER Victor victor.stin...@haypocalc.com added the comment: Looking at the only use case of _syscmd_file(), it may not even be worth the trouble of adding the -b option. Fixing the doc-string may be enough:

[issue9560] platform.py: use -b option for file command in _syscmd_file()

2010-08-13 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: @r.david.murray, @lemburg: So, can I commit my patch? However, it is still possible to have that path contain weird characters, so the example is still valid. It's not only a question of weird characters. Use case of #8611:

[issue9425] Rewrite import machinery to work with unicode paths

2010-08-13 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: Removed file: http://bugs.python.org/file18444/pyerr_warnformat-2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9425 ___

[issue9581] PosixGroupsTester fails as root

2010-08-13 Thread George Yoshida
Changes by George Yoshida qui...@users.sourceforge.net: Removed file: http://bugs.python.org/file18498/test_setgroups.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9581 ___

[issue9581] PosixGroupsTester fails as root

2010-08-13 Thread George Yoshida
Changes by George Yoshida qui...@users.sourceforge.net: Added file: http://bugs.python.org/file18499/test_setgroups.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9581 ___

[issue9586] warning: comparison between pointer and integer in multiprocessing build on Tiger

2010-08-13 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: (2) define a PY_SEM_FAILED macro and use that That sounds reasonable. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9586 ___

[issue9581] PosixGroupsTester fails as root

2010-08-13 Thread George Yoshida
George Yoshida qui...@users.sourceforge.net added the comment: FAIL: test_setgroups (test.test_posix.PosixGroupsTester) -- Traceback (most recent call last): File /home/antoine/py3k/__svn__/Lib/test/test_posix.py, line

[issue9581] PosixGroupsTester fails as root

2010-08-13 Thread George Yoshida
Changes by George Yoshida qui...@users.sourceforge.net: Added file: http://bugs.python.org/file18500/py3k.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9581 ___

[issue9586] warning: comparison between pointer and integer in multiprocessing build on Tiger

2010-08-13 Thread Jesse Noller
Jesse Noller jnol...@gmail.com added the comment: I agree with Antoine -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9586 ___ ___

[issue9560] platform.py: use -b option for file command in _syscmd_file()

2010-08-13 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: STINNER Victor wrote: STINNER Victor victor.stin...@haypocalc.com added the comment: @r.david.murray, @lemburg: So, can I commit my patch? Yes, go ahead with 3.2 patch. It should not go into 2.7, though, since it doesn't solve any

[issue9587] unittest.assertRaises() return the raised exception

2010-08-13 Thread Denver Coneybeare
New submission from Denver Coneybeare denver.coneybe...@gmail.com: It would be great if unittest.assertRaises() returned the raised exception when it passes. This allows the caller to easily perform further checks on the exception, such as its attribute values. Currently assertRaises()

[issue9581] PosixGroupsTester fails as root

2010-08-13 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: George's patches work for me (thank you!). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9581 ___

[issue8411] New GIL: improve condition variable emulation on NT

2010-08-13 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Closing as fixed, since nothing strange seems to have appeared so far. -- resolution: accepted - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8411

[issue2281] Enhanced cPython profiler with high-resolution timer

2010-08-13 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- assignee: pitrou - nosy: +belopolsky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2281 ___ ___

[issue7862] fileio.c: ValueError vs. IOError with impossible operations

2010-08-13 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: All of them should probably raise io.UnsupportedOperation instead (which inherits from both IOError and ValueError). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7862

[issue9587] unittest.assertRaises() return the raised exception

2010-08-13 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- assignee: - michael.foord ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9587 ___ ___

[issue9584] Allow curly braces in fnmatch

2010-08-13 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Well, Windows supports * and ? globs, but not brace expansion, as far as I can tell (at least on XP, which is what I currently have access to). In fact, I don't believe I've run into brace expansion anywhere except in the unix shell,

[issue9585] Largefile detection in configure fails

2010-08-13 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The expression largefile support is a bit misleading. What it simply does is that it uses long long instead of long in order to store and compute file offsets. But, since a long is wide enough on your system to hold a off_t (both are 64 bits),

[issue9584] Allow curly braces in fnmatch

2010-08-13 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: I don't see any reason to turn this down except, perhaps, for keeping something simple. Certainly I don't believe that Windows users will be confused by the fact that there are wildcards other than * and ?. fnmatch already implements [] and

[issue5867] No way to create an abstract classmethod

2010-08-13 Thread Daniel Urban
Daniel Urban urban.dani...@gmail.com added the comment: @abstractmethod @classmethod def ... doesn't work because classmethod objects doesn't have a __dict__, so setting arbitrary attributes don't work, and abstractmethod tries to set the __isabstractmethod__ atribute to True. The other

[issue9396] Standardise (and publish?) cache handling in standard library

2010-08-13 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Have we had any luck getting this to play nicely with the buildbots yet? (I lost track of where the last checkin got to). The necessary Modules/Setup change to adjust when _collections is built should have propagated through by now.

[issue9548] locale can be imported at startup but relies on too many library modules

2010-08-13 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9548 ___ ___ Python-bugs-list mailing

[issue9545] Adding _collections to static build

2010-08-13 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Note that the following sequence should work even without changing the buildbot behaviour: - in one checkin, modify Modules/Setup.dist. The buildbots will pick up this change on their *subsequent* build (as the build triggered by this checkin,

[issue9567] Add attribute pointing to wrapped function in functools.update_wrapper

2010-08-13 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- resolution: - accepted ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9567 ___ ___ Python-bugs-list

[issue9573] importing a module that executes fork() raises RuntimeError

2010-08-13 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9573 ___ ___ Python-bugs-list mailing

[issue9560] platform.py: use -b option for file command in _syscmd_file()

2010-08-13 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Commited as r83981. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9560 ___

[issue9588] Skip subprocess shell tests on Windows per file association setup

2010-08-13 Thread Brian Curtin
New submission from Brian Curtin cur...@acm.org: The fix for #2304 causes issues on Windows if you have file associations setup that aren't Python interpters. In my case I have an association setup to open .py files in gvim, which causes the shell tests to hang until I quit the editor, then

[issue9425] Rewrite import machinery to work with unicode paths

2010-08-13 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: r83981 closes #9560: avoid the filename in _syscmd_file() to fix a bug with non encodable filenames in platform.architecture(). -- ___ Python tracker rep...@bugs.python.org

[issue9425] Rewrite import machinery to work with unicode paths

2010-08-13 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: About wchar2char: - PEP 383 says “With this PEP, non-decodable bytes = 128 will be represented as lone surrogate codes U+DC80..U+DCFF. Bytes below 128 will produce exceptions”. Your patch accepts bytes below 128. - I don't understand why you

[issue9588] Skip subprocess shell tests on Windows per file association setup

2010-08-13 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: Attached is a patch that fixes this for me, and I *think* it's looking in the most correct area for the information. Tim or any other Windows users, would you mind seeing that the skip does not occur on your machines, thus allowing it to properly

[issue9589] test_heapq: AttributeError: 'int' object has no attribute 'pop'

2010-08-13 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: This is a variant of the kind of annoyance pointed out in #9548. Here, it seems addbuilddir() in Lib/site.py shouldn't import sysconfig, because it imports the re module. -- nosy: +pitrou ___ Python

[issue9589] test_heapq: AttributeError: 'int' object has no attribute 'pop'

2010-08-13 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: For some reason, sys.modules['heapq'] contains the Python implementation instead of the C implementation. Tested with r83981 on python 3: Python 3.2a1+ (py3k:83981M, Aug 13 2010, 19:02:31) [GCC 4.3.4] on linux2 Type help,

[issue9590] __init__ TypeError reverses expected vs received args

2010-08-13 Thread Anthony Long
New submission from Anthony Long antl...@gmail.com: import unittest from selenium import selenium class SetupSomething(unittest.TestCase): def setUp(self, URL): self.selenium = selenium(localhost, , *firefox, self.URL) def tearDown(self): pass class

[issue9590] __init__ TypeError reverses expected vs received args

2010-08-13 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: Definitely it does not look like a bug. import unittest help(unittest.TestCase) ... | If it is necessary to override the __init__ method, the base class | __init__ method must always be called. It is important that subclasses

[issue9333] Expose a way to enable os.symlink on Windows

2010-08-13 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: I've tried changing privileges for a user and I'm not seeing that they get reflected in real-time while an application is running. Maybe I'm not doing it right, but I'm not seeing it. I'm also not able to find anything about that being supported

[issue9590] __init__ TypeError reverses expected vs received args

2010-08-13 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: What flox said. There's no reversal here: you've defined an __init__ method that takes no arguments. The unittest framework tries to instantiate a TestSomething instance by calling it with two arguments (one of which is self). If you

[issue9589] test_heapq: AttributeError: 'int' object has no attribute 'pop'

2010-08-13 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Here is a patch which works if the patch in #9548 is also applied. It won't work alone because opening a file in text mode currently imports locale which imports re, etc. ... all before adding the build dir to sys.path. Of course, since the

[issue9580] os.confstr() doesn't decode result according to PEP 383

2010-08-13 Thread David Watson
David Watson bai...@users.sourceforge.net added the comment: The CS_PATH variable is a colon-separated list of directories (the value for the PATH environment variable that finds all standard utilities), so the file system encoding is certainly correct there. I don't see any reference to an

[issue9579] In 3.x, os.confstr() returns garbage if value is longer than 255 bytes

2010-08-13 Thread David Watson
David Watson bai...@users.sourceforge.net added the comment: I don't see why confstr() values shouldn't change. sysconf() values can change between calls, IIRC. Implementations can also define their own confstr variables - they don't have to stick to the POSIX stuff. And using a loop means

[issue9586] warning: comparison between pointer and integer in multiprocessing build on Tiger

2010-08-13 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Actually, since SEM_FAILED isn't public and is only used in one file, it seems simplest just to redefine it on Mac. Here's a patch. -- keywords: +patch Added file: http://bugs.python.org/file18505/sem_failed_tiger.patch

[issue9587] unittest.assertRaises() return the raised exception

2010-08-13 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: That was a bit abrupt, want't it? Denver is well aware of this and said: but sometimes using the context manager approach adds unnecessary bloat to already long-winded unit tests. I happen to agree with him and don't see why we

[issue9587] unittest.assertRaises() return the raised exception

2010-08-13 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Sorry, it's a reopened bug requesting a feature that has already been considered and rejected previously. Yes I was abrupt, my apologies - I'm trying to clear my backlog before I go away. --

[issue5504] ctypes should work with systems where mmap can't be PROT_WRITE and PROT_EXEC

2010-08-13 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Same error on the buildbots, here: http://www.python.org/dev/buildbot/3.x/builders/PPC%20Leopard%203.x/builds/288/steps/compile/logs/stdio -- ___ Python tracker rep...@bugs.python.org

[issue9592] Limitations in objects returned by multiprocessing Pool

2010-08-13 Thread Freek Dijkstra
New submission from Freek Dijkstra fr...@macfreek.nl: I came across three limitation in the multiprocessing module that were not handled correctly. Attached is a file that reproduces the errors in minimal code. I tested them with Python 2.6.5 and 3.1.2. Expected result:

[issue9592] Limitations in objects returned by multiprocessing Pool

2010-08-13 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +jnoller ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9592 ___ ___ Python-bugs-list

[issue7467] The zipfile module does not check files' CRCs, including in ZipFile.testzip

2010-08-13 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: After chatting with __ap__ on irc, i'm going to reject this patch for 2.6.6. -- nosy: +barry priority: release blocker - status: open - closed ___ Python tracker rep...@bugs.python.org

[issue9593] utf8 codec readlines error after \x85

2010-08-13 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- components: -Regular Expressions nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9593 ___

[issue5867] No way to create an abstract classmethod

2010-08-13 Thread Daniel Urban
Daniel Urban urban.dani...@gmail.com added the comment: Here is a patch, which adds a descriptor to classmethod and staticmethod. Pseudocode: __get__(self, inst, owner): if getattr(inst.callable, '__isabstractmethod__', False): return True return False __set__(self, inst,

[issue9593] utf8 codec readlines error after \x85

2010-08-13 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: U+0085 corresponds to a line terminator (*). and codecs.open() observes this convention. Do note that the new io.open() (or the built-in open() in 3.x) only recognizes '\r' and '\n' as line separators. In any case, changing this behaviour would

[issue5867] No way to create an abstract classmethod

2010-08-13 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The patch doesn't check that instantiating these methods work at all. -- nosy: +benjamin.peterson, pitrou stage: - patch review versions: +Python 3.2 -Python 3.1 ___ Python tracker

[issue9180] Memory Error

2010-08-13 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9180 ___ ___

[issue9593] utf8 codec readlines error after \x85

2010-08-13 Thread Joseph Copenhaver
Joseph Copenhaver joseph.copenha...@gmail.com added the comment: I now recognize the issue was in regard to format problems and not python, but the area where this code will be used requires the use of the codecs module. Is there any way to get the efficiency of codecs I/O readlines() chunking

[issue9588] Skip subprocess shell tests on Windows per file association setup

2010-08-13 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: Assuming I understand you correctly, could I propose this rather less involved patch which simply specifies the sys.executable as part of the command line. The test doesn't propose to test file associations and indeed two of the test already

[issue9588] Skip subprocess shell tests on Windows per file association setup

2010-08-13 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: Yeah that's much better :) I should have asked if you left out sys.executable out intentionally before coming up with my patch...I assumed it was intended to be different due to shell=1 or something. Go ahead and apply if you want. --

[issue5867] No way to create an abstract classmethod

2010-08-13 Thread Daniel Urban
Daniel Urban urban.dani...@gmail.com added the comment: If I understand correctly, some tests are needed for the instantiation of classes with abstract static/classmethods. I added them in issue5867a.diff. -- Added file: http://bugs.python.org/file18512/issue5867a.diff

[issue9593] utf8 codec readlines error after \x85

2010-08-13 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Is there any way to get the efficiency of codecs I/O readlines() chunking behavior and specify a list of characters to use? Can the file delimiter be changed in python as in perl? No, but you can use readlines() from the standard open()

[issue9205] Parent process hanging in multiprocessing if children terminate unexpectedly

2010-08-13 Thread Greg Brockman
Greg Brockman g...@mit.deu added the comment: I'll take another stab at this. In the attachment (assign-tasks.patch), I've combined a lot of the ideas presented on this issue, so thank you both for your input. Anyway: - The basic idea of the patch is to record the mapping of tasks to

[issue9593] utf8 codec readlines error after \x85

2010-08-13 Thread Joseph Copenhaver
Joseph Copenhaver joseph.copenha...@gmail.com added the comment: It is better, thanks. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9593 ___

[issue7175] Define a standard location and API for configuration files

2010-08-13 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: It would be nice to settle this. Personally I would like to see the defaults being: Linux: ~/.pythonx.y Mac OS X: ~/.pythonx.y with a fallback of ~/Library/Preferences/.pythonx.y Windows: ~/pythonx.y perhaps with a backup of

[issue9588] Add sys.executable to test_subprocessing.CommandsWithSpaces shell tests

2010-08-13 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: Fixed in r83983, r83984, and r83985. Thanks, Tim. -- assignee: tim.golden - brian.curtin resolution: - fixed stage: needs patch - committed/rejected status: open - closed title: Skip subprocess shell tests on Windows per file association

[issue9203] Use computed gotos by default

2010-08-13 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I've committed a patch in r83986. I will watch the buildbots and close if everything's fine. -- assignee: - pitrou resolution: - fixed stage: needs patch - committed/rejected status: open - pending

[issue5867] No way to create an abstract classmethod

2010-08-13 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Thank you. I'm not an ABC expert but it looks ok. Guido, what do you think? -- nosy: +gvanrossum ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5867

[issue9425] Rewrite import machinery to work with unicode paths

2010-08-13 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: New version of the patch _Py_wchar2char-2.patch: - _Py_wchar2char() only escapes characters in range U+DC80..U+DCFF (instead of U+DC00..U+DCFF) - add a comment to _Py_char2wchar() I don't understand why you decrement `size` in

[issue9425] Rewrite import machinery to work with unicode paths

2010-08-13 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: Removed file: http://bugs.python.org/file18431/_Py_wchar2char.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9425 ___

[issue9594] typo on Mac/Makefile.in? s/pythonw/python/

2010-08-13 Thread Sridhar Ratnakumar
New submission from Sridhar Ratnakumar sridh...@activestate.com: From Mac/Makefile.in: [...] ifneq ($(LIPO_32BIT_FLAGS),) lipo $(LIPO_32BIT_FLAGS) -output $(DESTDIR)$(prefix)/bin/python$(VERSION)-32 pythonw lipo $(LIPO_32BIT_FLAGS) -output

[issue9594] typo on Mac/Makefile.in? s/pythonw/python/

2010-08-13 Thread Sridhar Ratnakumar
Sridhar Ratnakumar sridh...@activestate.com added the comment: Specifically python$(VERSION)-32 python instead of python$(VERSION)-32 pythonw? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9594

[issue5867] No way to create an abstract classmethod

2010-08-13 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: As you figured out it is not yet supported. I object to making changes to the classmethod implementation. I expect the best thing to do is to add a new @abc.abstractclassmethod decorator defined in pure Python (maybe the definition of

[issue9595] PC/getpathp.c unused?

2010-08-13 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: pitrou priority: normal severity: normal status: open title: PC/getpathp.c unused? ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9595 ___

[issue9596] PC/getpathp.c unused?

2010-08-13 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: PC/getpathp.c claims it is “Used by DOS, OS/2, Windows 3.1, Windows 95/98, Windows NT”, but Modules/getpath.c already tries to be cross-platform. It is not obvious whether the former is used at all. -- components: Interpreter Core

[issue9520] Add Patricia Trie high performance container

2010-08-13 Thread Dmitry Chichkov
Changes by Dmitry Chichkov dchich...@gmail.com: Added file: http://bugs.python.org/file18515/dc.dict.bench.0.02.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9520 ___

[issue9595] PC/getpathp.c unused?

2010-08-13 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9595 ___

  1   2   >