[issue4459] bdist_rpm should enable --fix-python by default

2010-08-13 Thread Éric Araujo
Éric Araujo added the comment: Considering that bdist_rpm is removed in distutils2, that its use in distutils is not encouraged (platform-specific tools are more adapted and can move quicker than the stdlib), that you have a workaround, and that we can’t change behavior for fear of breaking t

[issue9600] multiprocessing Pool instantiation crashes on 64 bit 2.6.6rc1 under Windows 7

2010-08-13 Thread Brian Curtin
Brian Curtin added the comment: I should correct myself. As seen on the 2.6 Win7 buildbot[0], test_multiprocessing is skipped there likely due to the "from ._multiprocessing..." ImportError. I kind of remember this now but didn't want to backport the fix to release26-maint since it was frozen

[issue8669] lack of bdist_rpm module raises error on 'setup.py --help-commands'

2010-08-13 Thread Éric Araujo
Éric Araujo added the comment: With more knowledge now, I am sure this changeset fixed this bug. Closing. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___

[issue9600] multiprocessing Pool instantiation crashes on 64 bit 2.6.6rc1 under Windows 7

2010-08-13 Thread Brian Curtin
Brian Curtin added the comment: I just fixed a similar problem for #9513 but the problem was only ever seen when test_multiprocessing was run through regrtest on 3.x on Windows. Removing the relative import dot on _multiprocessing imports let them succeed. I've never actually seen this cause

[issue7219] Unhelpful error message when a distutils package install fails due to a permissions error

2010-08-13 Thread Éric Araujo
Éric Araujo added the comment: An IOError is raised but file_util._copy_file_contents only produces the helpful message “could not create '': ” when catching os.error. Catching both classes is easy. We’d need a regression test first, and before that, agreement from Tarek that such a change wo

[issue4947] sys.stdout fails to use default encoding as advertised

2010-08-13 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue9539] python-2.6.4: test failure in test_distutils due to linking to system libpython2.6

2010-08-13 Thread Éric Araujo
Éric Araujo added the comment: Valeo, can you reproduce the bug? Final version of 2.6 will come out on Monday. -- nosy: +barry priority: normal -> high type: -> behavior ___ Python tracker

[issue7798] document pydoc methods

2010-08-13 Thread Éric Araujo
Éric Araujo added the comment: pager is a general utility whereas cmd is for building REPLs, so I don’t think cmd is a good place. Can’t find a better one, though; shutil maybe. I have another feature in mind for a new module dedicated to the console: color codes, as seen duplicated in apps l

[issue1371826] distutils is silent about multiple -I/-L/-R

2010-08-13 Thread Éric Araujo
Changes by Éric Araujo : -- assignee: -> tarek components: +Distutils2 -Distutils stage: -> needs patch versions: +Python 2.5, Python 2.6, Python 2.7, Python 3.1 ___ Python tracker _

[issue9061] cgi.escape Can Lead To XSS Vulnerabilities

2010-08-13 Thread Éric Araujo
Éric Araujo added the comment: Markup nit fixed in r83999 (py3k) and r84001 (stupid typo), r84002 (3.1), r84003 (2.7). -- ___ Python tracker ___

[issue8688] distutils sdist is too lazy w.r.t. recalculating MANIFEST

2010-08-13 Thread Éric Araujo
Éric Araujo added the comment: Patch ported to distutils2 (http://bitbucket.org/tarek/distutils2/changeset/5abba4a77f5a). Closing. Please reopen with priority set to “release blocker” if 2.6 behaves badly before Monday. Thanks. -- resolution: -> fixed stage: patch review -> commit r

[issue8688] distutils sdist is too laze w.r.t. recalculating MANIFEST

2010-08-13 Thread Éric Araujo
Éric Araujo added the comment: Patch committed in r83993 (py3k), r83994 (3.1) and r83996 (2.7). I got the version wrong in 3.x and fixed it in r83995 and r83998. -- ___ Python tracker _

[issue9600] multiprocessing Pool instantiation crashes on 64 bit 2.6.6rc1 under Windows 7

2010-08-13 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +barry, jnoller ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue9601] ftplib should accept 250 on MKD

2010-08-13 Thread alphablue52
Changes by alphablue52 : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue9601] ftplib should accept 250 on MKD

2010-08-13 Thread alphablue52
New submission from alphablue52 : I try to use ftplib for a Webspace running on a Windows Server machine. The server responses 250 instead of 257 (which would be correct according to RFC959, ftp) It would be nice if ftplib could also tolerate the 250 "Requested file ation okay, completed" code

[issue9600] multiprocessing Pool instantiation crashes on 64 bit 2.6.6rc1 under Windows 7

2010-08-13 Thread cipater
cipater added the comment: prior to this I already imported Pool (from multiprocessing import Pool) I also tried the 64 bit 2.6.5 and got the same error. -- ___ Python tracker _

[issue9600] multiprocessing Pool instantiation crashes on 64 bit 2.6.6rc1 under Windows 7

2010-08-13 Thread cipater
New submission from cipater : I'm running 2.6.6rc1 64 bit on Windows 7 I get the following error when I try to instantiate a Pool: >>> import multiprocessing >>> p = Pool(processes = 2) Traceback (most recent call last): File "", line 1, in File "c:\Python26\lib\multiprocessing\__init__.py

[issue8688] distutils sdist is too laze w.r.t. recalculating MANIFEST

2010-08-13 Thread Éric Araujo
Éric Araujo added the comment: 2.6 regression reverted in r83992. Tarek is okay with my patch for the other branches. I noticed the first fix did not have a versionadded in the docs, so I’ll add that and commit. -- assignee: tarek -> eric.araujo priority: release blocker -> high

[issue9425] Rewrite import machinery to work with unicode paths

2010-08-13 Thread STINNER Victor
STINNER Victor added the comment: I created #9599: Add PySys_FormatStdout and PySys_FormatStderr functions. -- ___ Python tracker ___

[issue9599] Add PySys_FormatStdout and PySys_FormatStderr functions

2010-08-13 Thread STINNER Victor
New submission from STINNER Victor : For my work #9425 (Rewrite import machinery to work with unicode paths), I need a function to write unicode strings to sys.stderr (especially to write messages on import in verbose mode). Attached patch creates PySys_FormatStdout() and PySys_FormatStderr().

[issue8688] distutils sdist is too laze w.r.t. recalculating MANIFEST

2010-08-13 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: This is a regression introduced in 2.6.6rc1. After discussion in irc with merwok, it is agreed that he will revert to pre-2.6.6rc1 behavior and not apply any fix. It's way too late to be changing behavior in 2.6.6. Folks using Python 2.6 will just have to

[issue9425] Rewrite import machinery to work with unicode paths

2010-08-13 Thread STINNER Victor
STINNER Victor added the comment: r83976 adds PyErr_WarnFormat() (pyerr_warnformat-2.patch). -- ___ Python tracker ___ ___ Python-bugs

[issue9568] test_urllib2_localnet fails on OS X 10.3

2010-08-13 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Thanks guys. I'll allow this in for 2.6.6 if you can commit it before Sunday 8/15. I'd like the buildbots to have plenty of time to turn green before schedule release on Monday. Please include a NEWS item and close this issue once it's been committed. --

[issue2944] asyncore doesn't handle connection refused correctly

2010-08-13 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Just to close the loop: thanks for reverting this for 2.6.6! -- ___ Python tracker ___ ___ Python-b

[issue8688] distutils sdist is too laze w.r.t. recalculating MANIFEST

2010-08-13 Thread Éric Araujo
Éric Araujo added the comment: New version of the patch to address Tarek’s comments and add NEWS and docs entries. -- ___ Python tracker ___

[issue8688] distutils sdist is too laze w.r.t. recalculating MANIFEST

2010-08-13 Thread Éric Araujo
Changes by Éric Araujo : Added file: http://bugs.python.org/file18517/sdist-manifest-marker.diff ___ Python tracker ___ ___ Python-bugs-list ma

[issue8688] distutils sdist is too laze w.r.t. recalculating MANIFEST

2010-08-13 Thread Éric Araujo
Changes by Éric Araujo : Removed file: http://bugs.python.org/file18482/sdist-manifest-marker.diff ___ Python tracker ___ ___ Python-bugs-list

[issue9425] Rewrite import machinery to work with unicode paths

2010-08-13 Thread STINNER Victor
STINNER Victor added the comment: r83990 closes #9542 by creating the PyUnicode_FSDecoder() PyArg_ParseTuple parser. -- ___ Python tracker ___ __

[issue9542] Create PyUnicode_FSDecoder() function

2010-08-13 Thread STINNER Victor
STINNER Victor added the comment: Commited to 3.2 as r83990. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue9596] PC/getpathp.c unused?

2010-08-13 Thread Martin v . Löwis
Martin v. Löwis added the comment: $ grep getpath PCbuild/* PCbuild/pythoncore.vcproj: RelativePath="..\PC\getpathp.c" So it's fairly obvious that it is used, no? -- ___ 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/file18514/_Py_wchar2char-2.patch ___ Python tracker ___ ___ Python-bugs-list m

[issue9425] Rewrite import machinery to work with unicode paths

2010-08-13 Thread STINNER Victor
STINNER Victor added the comment: r83989 creates _Py_wchar2char() function (_Py_wchar2char-2.patch). -- ___ Python tracker ___ ___ Pyt

[issue8912] `make patchcheck` should check the whitespace of .c/.h files

2010-08-13 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I opened issue9598 for the untabify bug. For the purposes of source checking, I believe non-ascii characters should be disallowed in python C source code. According to my understanding of C89 standard, interpretation of characters outside of the basic

[issue6884] Impossible to include file in sdist that starts with 'build' on Win32

2010-08-13 Thread Éric Araujo
Éric Araujo added the comment: Test by haypo on win32: - ['README', 'setup.py', 'somecode\\__init__.py'] ? ^^ + ['README', 'buildout.cfg', 'setup.py', 'somecode/__init__.py'] ? ^ The bug is confirmed. I’ll use os.s

[issue9598] untabify.py fails on files that contain non-ascii characters

2010-08-13 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue7962] Demo and Tools need to be tested and pruned

2010-08-13 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- dependencies: +untabify.py fails on files that contain non-ascii characters ___ Python tracker ___ ___

[issue9598] untabify.py fails on files that contain non-ascii characters

2010-08-13 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : For example: $ ./python.exe Tools/scripts/untabify.py Modules/_heapqmodule.c Traceback (most recent call last): ... (result, consumed) = self._buffer_decode(data, self.errors, final) UnicodeDecodeError: 'utf8' codec can't decode byte 0xe7 in pos

[issue8912] `make patchcheck` should check the whitespace of .c/.h files

2010-08-13 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Note directly related to this issue, but untabify.py fails on files that contain non-ascii characters. For example: $ ./python.exe Tools/scripts/untabify.py Modules/_heapqmodule.c Traceback (most recent call last): ... (result, consumed) = self.

[issue9597] mac: Install 2to3 in /usr/local/bin

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

[issue8912] `make patchcheck` should check the whitespace of .c/.h files

2010-08-13 Thread Éric Araujo
Éric Araujo added the comment: I wonder how to have sane code reuse between patchcheck and Mercurial hooks. Mark seems to have started seconding Dirkjan with hooks, see e.g. http://hg.python.org/hooks/rev/0344575ad60e, so I wonder if we’re going to use only hooks (pro: they will be invoked on

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

2010-08-13 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

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

2010-08-13 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: -> pitrou status: pending -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Un

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

2010-08-13 Thread STINNER Victor
STINNER Victor added the comment: Le vendredi 13 août 2010 20:36:22, vous avez écrit : > 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. C

[issue9597] mac: Install 2to3 in /usr/local/bin

2010-08-13 Thread Sridhar Ratnakumar
New submission from Sridhar Ratnakumar : According to Mac/Makefile.in, scripts like pydoc, idle, smtpd.py and so on gets symlinked in /usr/local/bin but there is none for 2to3. Perhaps this was forgotten? -- assignee: ronaldoussoren components: 2to3 (2.x to 3.0 conversion tool), Build,

[issue9203] Use computed gotos by default

2010-08-13 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

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

2010-08-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: I've committed an updated version of the C patch in r83988, after Victor's comments on IRC. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> pending ___ Python tracker

[issue9425] Rewrite import machinery to work with unicode paths

2010-08-13 Thread STINNER Victor
STINNER Victor added the comment: > I know this is not introduced by your patch, just moved, but couldn’t > the typo in UNDECODEABLE be fixed? (extraneous e) I wasn't sure that it was a typo, so I kept it unchanged. It's now fixed by r83987. -- ___

[issue2281] Enhanced cPython profiler with high-resolution timer

2010-08-13 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Can someone post a diff against current py3k? I would like to take a look, but the files attached to this issue seem to be more than a year old. -- ___ Python tracker

[issue6884] Impossible to include file in sdist that starts with 'build' on Win32

2010-08-13 Thread Éric Araujo
Éric Araujo added the comment: Attaching a unit test translation of Chris’ report. The test pass on POSIX (linux2), can someone test on win32? Tracing the flow from sdist to filelist, it seems to be not a regex error but a logic error. A file explicitly added should not be removed by the excl

[issue586680] -S hides standard dynamic modules

2010-08-13 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: wont fix -> duplicate superseder: -> test_heapq: AttributeError: 'int' object has no attribute 'pop' ___ Python tracker ___ _

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

2010-08-13 Thread STINNER Victor
STINNER Victor added the comment: I just fear that the loop is "endless". Imagine the worst case: confstr() returns a counter (n, n+1, n+2, ...). In 64 bits, it can be long. I would prefer to see a condition to stop after 2 steps. It should maybe stop when an error at the 3rd step. -

[issue9595] PC/getpathp.c unused?

2010-08-13 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue9520] Add Patricia Trie high performance container

2010-08-13 Thread Dmitry Chichkov
Changes by Dmitry Chichkov : Added file: http://bugs.python.org/file18515/dc.dict.bench.0.02.py ___ Python tracker ___ ___ Python-bugs-list mai

[issue9596] PC/getpathp.c unused?

2010-08-13 Thread Antoine Pitrou
New submission from Antoine Pitrou : 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 messages: 113839

[issue9595] PC/getpathp.c unused?

2010-08-13 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: pitrou priority: normal severity: normal status: open title: PC/getpathp.c unused? ___ Python tracker ___

[issue5867] No way to create an abstract classmethod

2010-08-13 Thread Guido van Rossum
Guido van Rossum 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 abstractproperty pro

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

2010-08-13 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: Specifically "python$(VERSION)-32 python" instead of "python$(VERSION)-32 pythonw"? -- ___ Python tracker ___ _

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

2010-08-13 Thread Sridhar Ratnakumar
New submission from Sridhar Ratnakumar : >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 $(DESTDIR)$(prefix)/bin/pythonw$(VERSION)-32 pythonw

[issue9425] Rewrite import machinery to work with unicode paths

2010-08-13 Thread Éric Araujo
Éric Araujo added the comment: I know this is not introduced by your patch, just moved, but couldn’t the typo in UNDECODEABLE be fixed? (extraneous e) -- ___ 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/file18431/_Py_wchar2char.patch ___ Python tracker ___ ___ Python-bugs-list mai

[issue9425] Rewrite import machinery to work with unicode paths

2010-08-13 Thread STINNER Victor
STINNER Victor 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 the second pass. Because I w

[issue5867] No way to create an abstract classmethod

2010-08-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thank you. I'm not an ABC expert but it looks ok. Guido, what do you think? -- nosy: +gvanrossum ___ Python tracker ___

[issue9203] Use computed gotos by default

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

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

2010-08-13 Thread Brian Curtin
Brian Curtin 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 setup -> Add

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

2010-08-13 Thread Michael Foord
Michael Foord 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 AppData/pythonx.y For both Windows

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

2010-08-13 Thread Joseph Copenhaver
Joseph Copenhaver added the comment: It is better, thanks. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

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

2010-08-13 Thread Greg Brockman
Greg Brockman 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 workers. I've add

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

2010-08-13 Thread Antoine Pitrou
Antoine Pitrou 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() function (which wi

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

[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

[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

[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

[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://

[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

[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 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 Ezio Melotti
Changes by Ezio Melotti : -- components: -Regular Expressions nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing

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

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

[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

[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

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

[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: /

[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

[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

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

[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

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

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

[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

[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

[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

[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

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

[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

[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

[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

[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

  1   2   >