[issue9264] trace.py documentation is incomplete

2010-08-13 Thread Eli Bendersky
Eli Bendersky 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 improved patches for

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

2010-08-13 Thread Tim Golden
Tim Golden 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 ___ Py

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

2010-08-13 Thread Mark Dickinson
Mark Dickinson 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 ___ __

[issue9584] Allow curly braces in fnmatch

2010-08-13 Thread Mathieu Bridon
New submission from Mathieu Bridon : 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 file ... file.c

[issue9584] Allow curly braces in fnmatch

2010-08-13 Thread Mathieu Bridon
Mathieu Bridon 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. -- ___ Python tr

[issue2944] asyncore doesn't handle connection refused correctly

2010-08-13 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

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

2010-08-13 Thread Tim Golden
Tim Golden 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 believe it's the res

[issue3099] On windows, "import nul" always succeed

2010-08-13 Thread Tim Golden
Changes by Tim Golden : -- assignee: -> tim.golden nosy: +tim.golden ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue9584] Allow curly braces in fnmatch

2010-08-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks for the patch. +if j < n and pat[j] == '}': +j = j+1 I don't get what the purpose of these two lines is. Forbid empty patterns? +while i < n and pat[j] != '}': +j = j+1 You probably mean "while j

[issue1508864] threading.Timer/timeouts break on change of win32 local time

2010-08-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: The wait loop in Condition.wait() has disappeared under 3.2 (we use builtin lock-with-timeout primitives instead). Overall, I don't think this issue is very important. Changing the system time *backwards* can cause all kinds of issues in daemons and other lon

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

2010-08-13 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Éric Araujo wrote: > > Éric Araujo added the comment: > > Is it guaranteed that the -b option will be present in every version of file? Looking at the only use case of _syscmd_file(), it may not even be worth the trouble of adding the -b option. Fixing t

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

2010-08-13 Thread R. David Murray
Changes by R. David Murray : -- nosy: +Hunanyan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue9577] html parser bug related with CDATA sections

2010-08-13 Thread R. David Murray
Changes by R. David Murray : Removed file: http://bugs.python.org/file18495/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue9584] Allow curly braces in fnmatch

2010-08-13 Thread R. David Murray
R. David Murray 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 : 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... 4 checking size of dou

[issue9584] Allow curly braces in fnmatch

2010-08-13 Thread Éric Araujo
Éric Araujo 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 ___ Python tracker

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

2010-08-13 Thread Mark Dickinson
New submission from Mark Dickinson : 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 /Users/buildbot/buildarea/2.7.parc-tiger-1

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

2010-08-13 Thread Mark Dickinson
Mark Dickinson added the comment: The same warnings show up on the x86 Tiger buildbot. Leopard and Snow Leopard seem to be fine, though. -- ___ Python tracker ___ _

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

2010-08-13 Thread Mark Dickinson
Changes by Mark Dickinson : -- 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 added the comment: r83971 enables test.support.TESTFN_UNDECODEABLE on non-Windows OSes. -- ___ Python tracker ___ ___ P

[issue9584] Allow curly braces in fnmatch

2010-08-13 Thread R. David Murray
R. David Murray 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 before applying globbin

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

2010-08-13 Thread Mark Dickinson
Mark Dickinson 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. Possible workarounds:

[issue9425] Rewrite import machinery to work with unicode paths

2010-08-13 Thread STINNER Victor
STINNER Victor added the comment: I commited nullimporter_unicode.patch with an unit test as r83972. -- ___ Python tracker ___ ___ Pyt

[issue9425] Rewrite import machinery to work with unicode paths

2010-08-13 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file18434/nullimporter_unicode.patch ___ Python tracker ___ ___ Python-bugs-li

[issue9584] Allow curly braces in fnmatch

2010-08-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Doing the equivalent of brace expansion would have to be done before > applying globbing, to be consistent with the shell. I don't get the "shell consistency" argument. First, there is no single definition of "the shell". Second, users of Python generally do

[issue9584] Allow curly braces in fnmatch

2010-08-13 Thread Eric Smith
Eric Smith added the comment: I'm not sure it has to be consistent with the shell to be useful, as long as the behavior is documented and we possibly add a note explaining the differences from the shell. But I agree that a discussion on python-ideas would be helpful. -- nosy: +eric.s

[issue9584] Allow curly braces in fnmatch

2010-08-13 Thread R. David Murray
R. David Murray 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 ' in the shell. The major shells (sh, bash, zsh, csh) seem to be pretty consistent in this regard (though sh does less brace expansi

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

2010-08-13 Thread Mark Dickinson
Mark Dickinson 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 be interpreted as a

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

2010-08-13 Thread STINNER Victor
STINNER Victor 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 filename on Linux because the fi

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

2010-08-13 Thread STINNER Victor
STINNER Victor added the comment: @lemburg: Your mail client likes to change the issues' title by adding some spaces :-) -- ___ Python tracker ___ __

[issue9425] Rewrite import machinery to work with unicode paths

2010-08-13 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file18469/_PyFile_FromFdUnicode.patch ___ Python tracker ___ ___ Python-bugs-l

[issue9425] Rewrite import machinery to work with unicode paths

2010-08-13 Thread STINNER Victor
STINNER Victor added the comment: r83973 ignores the name argument of PyFile_FromFd() because it was already ignored (it did always produce an error) and it avoids my complex _PyFile_FromFdUnicode.patch. Thanks Antoine to having notice that name was ignored. -- _

[issue4762] PyFile_FromFd() doesn't set the file name

2010-08-13 Thread STINNER Victor
STINNER Victor added the comment: r83973 ignores the name argument of PyFile_FromFd() because it was already ignored (it did always produce an error). -- ___ Python tracker ___

[issue9584] Allow curly braces in fnmatch

2010-08-13 Thread Antoine Pitrou
Antoine Pitrou 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 > ' in the shell. But it's not the case since we currently don't process braces anyway. > The major shells (sh, bash, zsh, csh) see

[issue9581] PosixGroupsTester fails as root

2010-08-13 Thread George Yoshida
George Yoshida 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 if initgroups worked. Attac

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

2010-08-13 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: STINNER Victor wrote: > > STINNER Victor 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

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

2010-08-13 Thread STINNER Victor
STINNER Victor 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: install Python in a directory

[issue9425] Rewrite import machinery to work with unicode paths

2010-08-13 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file18444/pyerr_warnformat-2.patch ___ Python tracker ___ ___ Python-bugs-list

[issue9581] PosixGroupsTester fails as root

2010-08-13 Thread George Yoshida
Changes by George Yoshida : Removed file: http://bugs.python.org/file18498/test_setgroups.diff ___ Python tracker ___ ___ Python-bugs-list mail

[issue9581] PosixGroupsTester fails as root

2010-08-13 Thread George Yoshida
Changes by George Yoshida : Added file: http://bugs.python.org/file18499/test_setgroups.diff ___ Python tracker ___ ___ Python-bugs-list mailin

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

2010-08-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: > (2) define a PY_SEM_FAILED macro and use that That sounds reasonable. -- ___ Python tracker ___ _

[issue9581] PosixGroupsTester fails as root

2010-08-13 Thread George Yoshida
George Yoshida 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 428, in > test_setgroups

[issue9581] PosixGroupsTester fails as root

2010-08-13 Thread George Yoshida
Changes by George Yoshida : Added file: http://bugs.python.org/file18500/py3k.diff ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

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

2010-08-13 Thread Jesse Noller
Jesse Noller added the comment: I agree with Antoine -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

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

2010-08-13 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: STINNER Victor wrote: > > STINNER Victor 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 problems in 2.7. If we get complaints about

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

2010-08-13 Thread Denver Coneybeare
New submission from Denver Coneybeare : 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() returns None (when it doesn't re

[issue9581] PosixGroupsTester fails as root

2010-08-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: George's patches work for me (thank you!). -- ___ Python tracker ___ ___ Python-bugs-list mailing li

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

2010-08-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Closing as fixed, since nothing strange seems to have appeared so far. -- resolution: accepted -> fixed status: open -> closed ___ Python tracker __

[issue2281] Enhanced cPython profiler with high-resolution timer

2010-08-13 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: pitrou -> nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

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

2010-08-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: All of them should probably raise io.UnsupportedOperation instead (which inherits from both IOError and ValueError). -- ___ Python tracker ___

[issue9425] Rewrite import machinery to work with unicode paths

2010-08-13 Thread STINNER Victor
STINNER Victor added the comment: Note about _Py_wchar2char(): it is possible to convert character by character (instead of working on substrings) because the input string doesn't contain surrogate pairs. _Py_char2wchar() ensures the the output string doens't contain surrogate pairs: if a byt

[issue8844] Condition.wait() doesn't raise KeyboardInterrupt

2010-08-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: The portability API is now available (see Include/pytime.h). -- ___ Python tracker ___ ___ Python-bu

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

2010-08-13 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: -> michael.foord ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue9584] Allow curly braces in fnmatch

2010-08-13 Thread R. David Murray
R. David Murray 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, whereas as you say * and

[issue9585] Largefile detection in configure fails

2010-08-13 Thread Antoine Pitrou
Antoine Pitrou 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), it wouldn

[issue9584] Allow curly braces in fnmatch

2010-08-13 Thread Tim Golden
Tim Golden 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 [!] which are no

[issue5867] No way to create an abstract classmethod

2010-08-13 Thread Daniel Urban
Daniel Urban 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 order: @classmethod @abstrac

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

2010-08-13 Thread Nick Coghlan
Nick Coghlan 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 : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue9545] Adding _collections to static build

2010-08-13 Thread Nick Coghlan
Nick Coghlan 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, so long as it com

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

2010-08-13 Thread Nick Coghlan
Changes by Nick Coghlan : -- resolution: -> accepted ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

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

2010-08-13 Thread Nick Coghlan
Changes by Nick Coghlan : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

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

2010-08-13 Thread STINNER Victor
STINNER Victor added the comment: Commited as r83981. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Pytho

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

2010-08-13 Thread Brian Curtin
New submission from Brian Curtin : 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 it fails because

[issue9425] Rewrite import machinery to work with unicode paths

2010-08-13 Thread STINNER Victor
STINNER Victor 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 _

[issue9425] Rewrite import machinery to work with unicode paths

2010-08-13 Thread Antoine Pitrou
Antoine Pitrou 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 decrement `size`

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

2010-08-13 Thread Brian Curtin
Brian Curtin 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 run those test

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

2010-08-13 Thread Florent Xicluna
New submission from Florent Xicluna : Various buildbots show a failure on test_heapq. * "x86 FreeBSD 3.x" failed on revision r83882 (r83869 was OK) http://www.python.org/dev/buildbot/all/builders/x86%20FreeBSD%203.x/builds/492 and next runs were OK, too * "PPC (Leopard|Tiger) 3.x" and

[issue9558] build_ext fails on VS8.0

2010-08-13 Thread R. David Murray
R. David Murray added the comment: Éric, 'release blocker' policy depends on the release manager :) Barry, for example, likes people to set release blocker on issues they want him to make sure he looks at before the release. The release manager can always knock it down. As can other develo

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

2010-08-13 Thread Antoine Pitrou
Antoine Pitrou 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 tracker

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

2010-08-13 Thread Florent Xicluna
Florent Xicluna 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", "copyright", "credits" or "licens

[issue9590] __init__ TypeError reverses expected vs received args

2010-08-13 Thread Anthony Long
New submission from Anthony Long : 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 TestSomething(Se

[issue9590] __init__ TypeError reverses expected vs received args

2010-08-13 Thread Florent Xicluna
Florent Xicluna 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 | should not chang

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

2010-08-13 Thread Brian Curtin
Brian Curtin 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 or anyone else

[issue9590] __init__ TypeError reverses expected vs received args

2010-08-13 Thread Mark Dickinson
Mark Dickinson 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 look at the source fo

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

2010-08-13 Thread Antoine Pitrou
Antoine Pitrou 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 logic in addbuilddi

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

2010-08-13 Thread David Watson
David Watson 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 encoding in the POSIX spec f

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

2010-08-13 Thread David Watson
David Watson 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 the confstr() call only appea

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

2010-08-13 Thread Mark Dickinson
Mark Dickinson 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 Michael Foord
Michael Foord added the comment: If you want the exception then use assertRaises in a with statement. The exception is available as an attribute on the context manager. -- resolution: -> rejected stage: -> committed/rejected status: open -> closed ___

[issue9591] kqueu not reporting EOF under certain circumstances

2010-08-13 Thread Volodymyr Kostyrko
New submission from Volodymyr Kostyrko : This one is BSD related. FreeBSD 8.1. This works: # cat test.py | ./test.py -1 684 32768 0 0 # This hangs: # ./test.py < file -1 684 0 0 0 The difference is that in second case popped kevent lacks any data on EOF. -- components: Library (Lib) f

[issue9591] kqueue not reporting EOF under certain circumstances

2010-08-13 Thread Volodymyr Kostyrko
Changes by Volodymyr Kostyrko : -- title: kqueu not reporting EOF under certain circumstances -> kqueue not reporting EOF under certain circumstances ___ Python tracker ___ _

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

2010-08-13 Thread Kristján Valur Jónsson
Kristján Valur Jónsson 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 can't discuss this s

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

2010-08-13 Thread Michael Foord
Michael Foord 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. -- ___ Python tracker

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

2010-08-13 Thread Mark Dickinson
Mark Dickinson added the comment: Since r83837, the py3k _ctypes module fails to build on my OS X 10.6 machine: *** WARNING: renaming "_ctypes" since importing it failed: dlopen(build/lib.macosx-10.6-x86_64-3.2-pydebug/_ctypes.so, 2): Symbol not found: _ffi_closure_alloc Referenced from: /

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

2010-08-13 Thread Mark Dickinson
Mark Dickinson 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 __

[issue9592] Limitations in objects returned by multiprocessing Pool

2010-08-13 Thread Freek Dijkstra
New submission from Freek Dijkstra : 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: multiprocessing.Pool's promises a map f

[issue9592] Limitations in objects returned by multiprocessing Pool

2010-08-13 Thread R. David Murray
Changes by R. David Murray : -- nosy: +jnoller ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

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

2010-08-13 Thread Barry A. Warsaw
Barry A. Warsaw 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 __

[issue9593] utf8 codec readlines error after "\x85 "

2010-08-13 Thread Joseph Copenhaver
New submission from Joseph Copenhaver : The IO readlines() facility incorrectly processes utf8 files for some unknown reason. Specifically, the call generates too many entries in the lines array result after a character sequence "\x85 blah" which gets cut as ("\x85 ","blah") according the the

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

2010-08-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a C version of addbuilddir. It solves the present issue. -- Added file: http://bugs.python.org/file18509/c-addbuildir.patch ___ Python tracker _

[issue9593] utf8 codec readlines error after "\x85 "

2010-08-13 Thread Ezio Melotti
Changes by Ezio Melotti : -- components: -Regular Expressions nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing

[issue5867] No way to create an abstract classmethod

2010-08-13 Thread Daniel Urban
Daniel Urban 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, value): inst.callable.__i

[issue9593] utf8 codec readlines error after "\x85 "

2010-08-13 Thread Antoine Pitrou
Antoine Pitrou 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 break compatib

[issue5867] No way to create an abstract classmethod

2010-08-13 Thread Antoine Pitrou
Antoine Pitrou 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 : -- status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue9593] utf8 codec readlines error after "\x85 "

2010-08-13 Thread Joseph Copenhaver
Joseph Copenhaver 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 behavior and specify a list

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

2010-08-13 Thread Tim Golden
Tim Golden 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 fill in the executabl

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

2010-08-13 Thread Brian Curtin
Brian Curtin 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. -- assignee: brian.c

[issue5867] No way to create an abstract classmethod

2010-08-13 Thread Daniel Urban
Daniel Urban 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 ___

  1   2   >