[issue14579] CVE-2012-2135: Vulnerability in the utf-16 decoder after error handling

2012-04-27 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14579 ___ ___ Python-bugs-list

[issue14339] Optimizing bin, oct and hex

2012-04-27 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Serhiy: what's the status of your contributor form? Note that you can also fax it, or scan it and send it by email. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14339

[issue14676] DeprecationWarning missing in default warning filters documentation

2012-04-27 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- keywords: +easy nosy: +ezio.melotti stage: - patch review type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14676 ___

[issue1521950] shlex.split() does not tokenize like the shell

2012-04-27 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1521950 ___ ___

[issue14656] Add a macro for unreachable code

2012-04-27 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14656 ___ ___

[issue13934] sqlite3 test typo

2012-04-27 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13934 ___ ___

[issue14673] add sys.implementation

2012-04-27 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: When I added sys.subversion, people requested that it shall contain the CPython string. When sys._mercurial was introduced, it copied that. So there are plenty of ways already to figure out that it is CPython which you are using.

[issue8767] Configure: Cannot disable unicode

2012-04-27 Thread Stefano Taschini
Stefano Taschini tasch...@ieee.org added the comment: Here's the patch. It has four goals: 1. Allow ./configure --disable-unicode to work; 2. Have the naked interpreter running with no unicode support; 3. Be able to compile most of the stdlib; 4. Be able to run the test suite.

[issue2387] cStringIO and unicode

2012-04-27 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: It seems the documentation is not enough accurate. Unlike the StringIO module, this module is not able to accept Unicode strings that cannot be encoded as plain ASCII strings. I understand that u'foo' can be encoded as plan ASCII,

[issue14673] add sys.implementation

2012-04-27 Thread Eric Snow
Eric Snow ericsnowcurren...@gmail.com added the comment: An updated patch using a dict. (FYI, I have the PEP up on python-ideas.) -- Added file: http://bugs.python.org/file25378/sys_implementation_2.diff ___ Python tracker rep...@bugs.python.org

[issue14610] configure script hangs on pthread verification and PTHREAD_SCOPE_SYSTEM verification on Ubuntu

2012-04-27 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Yes, this code is hanging in my system. I'm posting the strace output. If there's any other information that may be helpful I'll happily provide it. Well, in that case it's a bug in your pthread implementation: returning from main()

[issue14681] Problem in installation of version 2.3.5 on mac OS X 10.5.8

2012-04-27 Thread rampythonnewbie
New submission from rampythonnewbie ramumca7...@gmail.com: Hello, I am working on an application that runs only on Python version 2.3.5. Presently i am using mac os x 10.5.8. It came with pre-installed python 2.5.1. Now, when i am running that application with existing version, it is showing

[issue11618] Locks broken wrt timeouts on Windows

2012-04-27 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Antoine: of course, sorry for rushing you. Martin, This is an XP patch. The vista option is put in there as a compile time option, and disabled by hand. I'm not adding any apis that weren't already in use since the new gil

[issue13210] Support Visual Studio 2010

2012-04-27 Thread Richard Oudkerk
Richard Oudkerk shibt...@gmail.com added the comment: The problems with error numbers seem to be caused by the addition of a new section in errno.h: /* POSIX SUPPLEMENT */ #define EADDRINUSE 100 #define EADDRNOTAVAIL 101 ... #define ETXTBSY 139 #define EWOULDBLOCK 140 Of

[issue14339] Optimizing bin, oct and hex

2012-04-27 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: You may call assert(_PyUnicode_CheckConsistency(v, 1)) to ensure that the newly created string is consistent (see the function for the details). Done in the following changeset: changeset: 76560:3bdcf0cab164 parent:

[issue2387] cStringIO and unicode

2012-04-27 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: This was fixed in 2.7.3 actually (27ae7d4e1983): Python 2.7.3+ (2.7:8b8b580e3fd3, Apr 25 2012, 17:24:51) [GCC 4.5.2] on linux2 Type help, copyright, credits or license for more information. from cStringIO import StringIO

[issue8767] Configure: Cannot disable unicode

2012-04-27 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8767 ___ ___ Python-bugs-list mailing

[issue13621] Unicode performance regression in python3.3 vs python3.2

2012-04-27 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: Andrew+Dalke (*1000): -23.076923% /python -m timeit 'Andrew+Dalke' gives me very close results with Python 3.2 (wide mode) and 3.3. Somethings like 0.15 vs 0.151 microseconds. But using longer (ASCII) strings, Python 3.3 is 2.6x

[issue1065986] Fix pydoc crashing on unicode strings

2012-04-27 Thread Stefano Taschini
Stefano Taschini tasch...@ieee.org added the comment: Here's my patch, along the lines of the work-around I posted earlier. A few remarks: 1. The modifications in pydoc only touch the four console pagers and the html pager (html.page). 2. A module-wide default encoding is initialized

[issue14681] Problem in installation of version 2.3.5 on mac OS X 10.5.8

2012-04-27 Thread rampythonnewbie
rampythonnewbie ramumca7...@gmail.com added the comment: Hello, I am working on an application that runs only on Python version 2.3.5. Presently i am using mac os x 10.5.8. It came with pre-installed python 2.5.1. Now, when i am running that application with existing version, it is showing

[issue10976] json.loads() raises TypeError on bytes object

2012-04-27 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: According to current implementation this is acceptable. Then perhaps auto-detection can be restricted to strict mode? Non-strict mode would always use utf-8. Or we can just skip auto-detection altogether (I don't think many people produce

[issue14059] Implement multiprocessing.Barrier

2012-04-27 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: RawValue uses ctypes, right? That's problematic for platforms which don't support ctypes. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14059

[issue14681] Problem in installation of version 2.3.5 on mac OS X 10.5.8

2012-04-27 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Both 2.3.5 and 2.5.1 are very old versions, and are unsupported. We would only take bug reports for Python 2.7 and 3.2. Furthermore, it is not obvious that you are actually reporting a bug; it sounds like you're looking for help instead, which

[issue14682] Backport missing errnos to 2.7

2012-04-27 Thread Hynek Schlawack
New submission from Hynek Schlawack h...@ox.cx: In order to fix issue14662, we need to back port at least ENOTSUP to 2.7 (presuming we don’t want to check for magic numbers). The question is, whether we should back port all/most of them when we’re at it? There doesn’t seem to be much harm to

[issue11618] Locks broken wrt timeouts on Windows

2012-04-27 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: This is an XP patch. The vista option is put in there as a compile time option, and disabled by hand. I'm not adding any apis that weren't already in use since the new gil (windows Semaphores). Martin means that you shouldn't use #ifdef's

[issue14642] Fix importlib.h build rule to not depend on hg

2012-04-27 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset b3d3f3238c13 by Martin v. Loewis in branch 'default': Issue #14642: Add hg touch extension, and make touch target. http://hg.python.org/cpython/rev/b3d3f3238c13 -- ___

[issue14683] os.path.isdir.__name__ is _isdir on Windows (2.7.3)

2012-04-27 Thread Luke McCarthy
New submission from Luke McCarthy l...@iogopro.co.uk: This caused something to break in our code. I know, maybe it shouldn't rely on that. -- messages: 159460 nosy: shaurz priority: normal severity: normal status: open title: os.path.isdir.__name__ is _isdir on Windows (2.7.3)

[issue13621] Unicode performance regression in python3.3 vs python3.2

2012-04-27 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: But try ASCII+UCS2 or ASCII+UCS4. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13621 ___

[issue13210] Support Visual Studio 2010

2012-04-27 Thread Richard Oudkerk
Richard Oudkerk shibt...@gmail.com added the comment: According to http://msdn.microsoft.com/en-us/library/5814770t.aspx the supported errno values in VS2010 are E2BIG EACCES EAGAIN EBADF ECHILD EDEADLOCK EDOM EEXIST EILSEQ EINVAL EMFILE ENOENT ENOEXEC ENOMEM ENOSPC ERANGE EXDEV

[issue14339] Optimizing bin, oct and hex

2012-04-27 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: I sent the signed form. Martin, sorry for the delay. Mark, sorry, that involuntarily let you down. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14339

[issue11618] Locks broken wrt timeouts on Windows

2012-04-27 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: I understand what he meant, but that wasn't the intent of the patch. The patch is to use simulated critical sections using a semaphore, same as the new GIL implementation already does. If you want dynamic runtime detection, then

[issue11618] Locks broken wrt timeouts on Windows

2012-04-27 Thread Brian Curtin
Brian Curtin br...@python.org added the comment: We do the runtime checks for a few things in winreg as well as the os.symlink implementation and i think a few other supplemental functions for symlinking. -- ___ Python tracker rep...@bugs.python.org

[issue14682] Backport missing errnos to 2.7

2012-04-27 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: Benjamin should talk about this, but I am +1 to backport the missing DEFINEs. In fact, hardwired values are actually a bug, as reported in the linked issue. -- nosy: +jcea ___ Python tracker

[issue4489] shutil.rmtree is vulnerable to a symlink attack

2012-04-27 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: Anybody working on this one? I’d give it a shot otherwise. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4489 ___

[issue11618] Locks broken wrt timeouts on Windows

2012-04-27 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Ok, but the patch as provided would become more compliated. For general consumption, the primitives would need to become dynamically allocated structures, and so on. I'm not sure that its worth the effort, but I can have a

[issue10976] json.loads() raises TypeError on bytes object

2012-04-27 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: Related to this question is a question about errors. How to inform the user, if an error occurred in the decoding with detected encoding? Leave UnicodeDecodeError or convert it to ValueError? If there is a syntax error in JSON --

[issue13621] Unicode performance regression in python3.3 vs python3.2

2012-04-27 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I'm closing this as won't fix. The only way to get back the exact performance of 3.2 is to restore to the 3.2 implementation, which clearly is no option. I don't consider performance regressions in micro benchmarks inherently as a bug. If

[issue14683] os.path.isdir.__name__ is _isdir on Windows (2.7.3)

2012-04-27 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: This is not a bug. Due to function name aliasing, this can easily happen, and the function's name should be considered as an implementation detail. -- nosy: +loewis resolution: - wont fix status: open - closed

[issue14682] Backport missing errnos to 2.7

2012-04-27 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: That's like introducing a new API, and therefore it should be limited to feature releases. -- nosy: +loewis, pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14682

[issue8767] Configure: Cannot disable unicode

2012-04-27 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I find the injection of a fake unicode class too hacky. Instead, I suggest that each module does try: _unicode = unicode except NameError: # no unicode support in this build class _unicode: pass and then have the

[issue14682] Backport missing errnos to 2.7

2012-04-27 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: So what does that mean for issue14662? Backport only ENOTSUP, check against “45” or “won't fix”? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14682

[issue14672] Windows installer: add desktop shortcut(s)

2012-04-27 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Is it really the case that novice users fail to understand the Start menu? -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14672

[issue14682] Backport missing errnos to 2.7

2012-04-27 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: So what does that mean for issue14662? Backport only ENOTSUP, check against “45” or “won't fix”? Then, backporting only ENOTSUP would be a reasonable solution. Or perhaps backport it as a private attribute (_ENOTSUP). --

[issue14672] Windows installer: add desktop shortcut(s)

2012-04-27 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14672 ___ ___ Python-bugs-list

[issue14682] Backport missing errnos to 2.7

2012-04-27 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: I think it's okay to just backport ENOTSUP. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14682 ___

[issue13903] New shared-keys dictionary implementation

2012-04-27 Thread Mark Shannon
Mark Shannon m...@hotpy.org added the comment: Decref cached-keys when type is deallocated. Patch attached. -- Added file: http://bugs.python.org/file25381/cached_keys.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13903

[issue14662] shutil.move broken in 2.7.3 on OSX (chflags fails)

2012-04-27 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: This is a fix for 2.7. As Benjamin said in http://bugs.python.org/issue14682#msg159477 it’s okay to back port ENOTSUP, I did it as part of the patch here. I wasn’t sure whether we should document it? I’m porting the patch to tip right now,

[issue14662] shutil.move broken in 2.7.3 on OSX (chflags fails)

2012-04-27 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: This one is against tip. -- Added file: http://bugs.python.org/file25383/expand-chflags-catch-tip.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14662

[issue14662] shutil.move broken in 2.7.3 on OSX (chflags fails)

2012-04-27 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: And finally against 3.2 -- Added file: http://bugs.python.org/file25384/expand-chflags-catch-3.2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14662

[issue14605] Make import machinery explicit

2012-04-27 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset c18256de00bb by Brett Cannon in branch 'default': Issue #14605: Insert to the front of sys.meta_path, don't append. http://hg.python.org/cpython/rev/c18256de00bb New changeset 3bd60cc27664 by Brett Cannon in branch

[issue7185] csv reader utf-8 BOM error

2012-04-27 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: I checked out. Files opened in utf-8-sig are seekable. open('test', 'w', encoding='utf-8-sig').write('qwerty\nйцукен\n') open('test', 'r', encoding=utf-8).read() '\ufeffqwerty\nйцукен\n' open('test', 'r', encoding=utf-8-sig).read()

[issue13903] New shared-keys dictionary implementation

2012-04-27 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset a3beae842f13 by Benjamin Peterson in branch 'default': decref cached keys on type deallocation (#13903) http://hg.python.org/cpython/rev/a3beae842f13 -- ___ Python

[issue13903] New shared-keys dictionary implementation

2012-04-27 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: New changeset a3beae842f13 by Benjamin Peterson in branch 'default': decref cached keys on type deallocation (#13903) http://hg.python.org/cpython/rev/a3beae842f13 Is there any way to detect / avoid leaks on this separate refcounting scheme?

[issue14605] Make import machinery explicit

2012-04-27 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 7025ee00dbf6 by Brett Cannon in branch 'default': Issue #14605: Use None in sys.path_importer_cache to represent no http://hg.python.org/cpython/rev/7025ee00dbf6 -- ___

[issue14674] Add link to RFC 4627 from json documentation

2012-04-27 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- keywords: +easy nosy: +eric.araujo stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14674 ___

[issue14605] Make import machinery explicit

2012-04-27 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 141ed4b426e1 by Brett Cannon in branch 'default': Issue #14605: Don't error out if get_importer() returns None. http://hg.python.org/cpython/rev/141ed4b426e1 -- ___

[issue14605] Make import machinery explicit

2012-04-27 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: OK, so the todo of this issue is now finished. I am just waiting for the buildbots to come back green before I close this issue fully. -- stage: commit review - committed/rejected status: open - pending

[issue13903] New shared-keys dictionary implementation

2012-04-27 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: This patch integrates the dictkeys' refcounting into the refcount checking framework. Seems to work ok, but it would be better if someone more acquainted with the code could confirm it. -- Added file:

[issue14605] Make import machinery explicit

2012-04-27 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14605 ___ ___ Python-bugs-list

[issue7185] csv reader utf-8 BOM error

2012-04-27 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Serhiy, the bug is about csv in particular. Can you confirm that using utf-8-sig allows one to process a file with a bom using the csv module? -- ___ Python tracker rep...@bugs.python.org

[issue1767933] Badly formed XML using etree and utf-16

2012-04-27 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: Here is a patch which solves the problem of writing ElementTree with utf-16 or utf-32 encoding. -- keywords: +patch nosy: +storchaka versions: +Python 3.3 Added file: http://bugs.python.org/file25386/etree_write_utf16.patch

[issue14684] zlib set dictionary support inflateSetDictionary

2012-04-27 Thread Sam Rushing
New submission from Sam Rushing rushing@gmail.com: Google's SPDY protocol requires the use of a pre-defined compression dictionary. The current zlib module doesn't expose the two functions for setting the dictionary. This patch is minimal in the sense that it only exposes the two

[issue14642] Fix importlib.h build rule to not depend on hg

2012-04-27 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Can this issue be closed, Martin, thanks to your extension? -- assignee: - loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14642 ___

[issue7185] csv reader utf-8 BOM error

2012-04-27 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: I ran the script above (only replaced 'utf-8' on 'utf-8-sig') and did not see anything strange. I looked at the source (cvs.py and _cvs.c) and also did not see anything that could lead to this effect. If the bug exists, it in utf-8-sig

[issue14646] Require loaders set __loader__ and __package__

2012-04-27 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 496c68f90a03 by Brett Cannon in branch 'default': Issue #14646: __import__() now sets __loader__ if need be. http://hg.python.org/cpython/rev/496c68f90a03 -- nosy: +python-dev

[issue14646] Require loaders set __loader__ and __package__

2012-04-27 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- resolution: - fixed stage: test needed - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14646 ___

[issue14685] segfault in --without-threads build

2012-04-27 Thread Stefan Krah
New submission from Stefan Krah stefan-use...@bytereef.org: The build --without-threads segfaults in run_tests.py: http://www.python.org/dev/buildbot/all/builders/AMD64%20Fedora%20without%20threads%203.x/builds/2123/steps/test/logs/stdio -- components: Tests messages: 159496 nosy:

[issue14304] Implement utf-8-bmp codec

2012-04-27 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: Andrew, the patch solves your issue? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14304 ___

[issue13916] disallow the surrogatepass handler for non utf-* encodings

2012-04-27 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13916 ___ ___ Python-bugs-list

[issue14339] Optimizing bin, oct and hex

2012-04-27 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Serhiy: thanks for submitting the form! No need to apologise: it was my bad for making the commit prematurely. And now that I see that all-important asterisk next to your name, I'll reclose the issue. :-) -- status: open - closed

[issue14666] test_sendall_interrupted hangs on FreeBSD with a zombi multiprocessing thread

2012-04-27 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset f163c4731c58 by Antoine Pitrou in branch 'default': Issue #14666: stop multiprocessing's resource-sharing thread after the tests are done. http://hg.python.org/cpython/rev/f163c4731c58 -- nosy: +python-dev

[issue14583] try/except import fails --without-threads

2012-04-27 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: This issue is now apparently causing a segfault: (gdb) r ./Tools/scripts/run_tests.py -j 1 -u all -W --timeout=3600 Starting program: /home/stefan/pydev/cpython/python ./Tools/scripts/run_tests.py -j 1 -u all -W --timeout=3600 [...]

[issue14685] segfault in --without-threads build

2012-04-27 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Appears to be related to #14583. -- keywords: +buildbot resolution: - duplicate stage: needs patch - committed/rejected status: open - closed superseder: - try/except import fails --without-threads

[issue14007] xml.etree.ElementTree - XMLParser and TreeBuilder's doctype() method missing

2012-04-27 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- priority: normal - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14007 ___

[issue14686] SystemError in unicodeobject.c

2012-04-27 Thread Stefan Krah
New submission from Stefan Krah stefan-use...@bytereef.org: Seen on the Gentoo buildbot: http://www.python.org/dev/buildbot/all/builders/x86%20Gentoo%20Non-Debug%203.x/builds/2154/steps/test/logs/stdio== ERROR: test_format

[issue14686] SystemError in unicodeobject.c

2012-04-27 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: -- type: crash - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14686 ___ ___

[issue14686] SystemError in unicodeobject.c

2012-04-27 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: On another bot: http://www.python.org/dev/buildbot/all/builders/x86%20Gentoo%203.x/builds/2205/steps/test/logs/stdio [250/364] test_bool python: Objects/unicodeobject.c:13501: formatlong: Assertion `unicode_modifiable(result)'

[issue14686] SystemError in unicodeobject.c

2012-04-27 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: It's my fault. It should be fixed by: changeset: 76590:7bacccd889c2 tag: tip user:Victor Stinner victor.stin...@gmail.com date:Sat Apr 28 00:25:34 2012 +0200 files: Objects/unicodeobject.c description:

[issue3177] Add shutil.open

2012-04-27 Thread Miki Tebeka
Miki Tebeka miki.teb...@gmail.com added the comment: Just to note there's http://pypi.python.org/pypi/desktop/0.4 out there. -- nosy: +tebeka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3177

[issue7185] csv reader utf-8 BOM error

2012-04-27 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I wasn't sure which script you were referring to, so I checked it myself and got the same results as you: after the seek(0) on the file object opened with utf-8-sig, csv read all the lines in the file, including reading the header line

[issue3177] Add shutil.open

2012-04-27 Thread Hobs
Hobs hobsonl...@gmail.com added the comment: Had no idea. Sounds like a good place for it. On Apr 28, 2012 6:54 AM, Miki Tebeka rep...@bugs.python.org wrote: Miki Tebeka miki.teb...@gmail.com added the comment: Just to note there's http://pypi.python.org/pypi/desktop/0.4 out there.

[issue14687] Optimize str%tuple for the PEP 393

2012-04-27 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@gmail.com: PyUnicode_Format() creates short temporary substrings. Attached patch tries to avoid substrings. For example, it avoids write of 1 character and repetition of 1 character like a space. PyUnicode_Format() now works in two steps: -

[issue14686] SystemError in unicodeobject.c

2012-04-27 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14686 ___

[issue7185] csv reader utf-8 BOM error

2012-04-27 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: I was referring to the script inlined in the message http://bugs.python.org/issue7185#msg94340 . -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7185