[issue14671] isinstance(obj, object) returns True for _old style_ class instances

2012-04-26 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: This is a result of how old-style classes are implemented. If you look at type(Old()), you can see that it isn't Old, but instance. (And instance is a subclass of object again.) issubclass for old-style classes doesn't check type(o) but

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

2012-04-26 Thread Balthazar Rouberol
Balthazar Rouberol roubero...@gmail.com added the comment: I know this does not fix anything at the core, but it would allow you to use json.loads() with python 3.2 (maybe 3.1?): Replace json.loads(raw_data) by raw_data = raw_data.decode('utf-8') # Or any other ISO format

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

2012-04-26 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: What if the returned JSON uses a charset other than utf-8 ? According to RFC 4627: JSON text SHALL be encoded in Unicode. The default encoding is UTF-8. RFC 4627 also offers a way to autodetect other Unicode encodings. --

[issue14127] add st_*time_ns fields to os.stat(), add ns keyword to os.*utime*(), os.*utimens*() expects a number of nanoseconds

2012-04-26 Thread Larry Hastings
Larry Hastings la...@hastings.org added the comment: Anybody else? I guess I'm gonna jst miss Alpha 3, but if nobody has any other objections I'll check this in today (Thursday). If you want me to hold off just let me know. -- ___ Python

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

2012-04-26 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: I ran tests of utf16_error_handling-3.2_4.patch on Python 3.1. Two tests are failing: - b'\x00\xd8'.decode('utf-16le', 'replace')='\ufffd\ufffd' != '\ufffd' - b'\xd8\x00'.decode('utf-16be', 'replace')='\ufffd\ufffd' != '\ufffd' I

[issue13210] Support Visual Studio 2010

2012-04-26 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13210 ___ ___

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

2012-04-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I ran tests of utf16_error_handling-3.2_4.patch on Python 3.1. Two tests are failing: - b'\x00\xd8'.decode('utf-16le', 'replace')='\ufffd\ufffd' != '\ufffd' - b'\xd8\x00'.decode('utf-16be', 'replace')='\ufffd\ufffd' != '\ufffd' I don't

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

2012-04-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Well, adding support for bytes objects using the spec from RFC 4627 (or at least with utf-8 as a default) may be an enhancement for 3.3. -- assignee: docs@python - components: +Library (Lib) -Documentation stage: - needs patch type:

[issue14673] add sys.implementation

2012-04-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: If it can contain a variable number of fields, I think it should be a dict rather than a tuple. -- nosy: +ncoghlan, pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14673

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

2012-04-26 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: Things are a little more complicated. '123' is not a valid JSON according to RFC 4627 (the top-level element can only be an object or an array). This means that the autodetection algorithm will not always work for such non-standard data.

[issue14674] Add link to RFC 4627 from json documentation

2012-04-26 Thread Serhiy Storchaka
New submission from Serhiy Storchaka storch...@gmail.com: The json module documentation should give a link to RFC 4627 and explain the current implementation is different from it. For example, according to RFC 4627 only an object or an array can be top-level JSON element. -- assignee:

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

2012-04-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Things are a little more complicated. '123' is not a valid JSON according to RFC 4627 (the top-level element can only be an object or an array). This means that the autodetection algorithm will not always work for such non-standard data. The

[issue14675] make distutils.ccompiler.CCompiler an abstract class

2012-04-26 Thread Ramchandra Apte
Changes by Ramchandra Apte maniandra...@gmail.com: -- assignee: - eric.araujo components: +Distutils nosy: +eric.araujo, tarek versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14675

[issue14675] make distutils.ccompiler.CCompiler an abstract class

2012-04-26 Thread Ramchandra Apte
New submission from Ramchandra Apte maniandra...@gmail.com: Make distutils.ccompiler.CCompiler an abstract class by making it inherit from abc.ABCMeta. Thanks -- messages: 159369 nosy: ramchandra.apte priority: normal severity: normal status: open title: make

[issue10142] Support for SEEK_HOLE/SEEK_DATA

2012-04-26 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 86dc014cdd74 by Jesus Cea in branch 'default': Close #10142: Support for SEEK_HOLE/SEEK_DATA http://hg.python.org/cpython/rev/86dc014cdd74 -- nosy: +python-dev resolution: - fixed stage: patch review -

[issue14675] make distutils.ccompiler.CCompiler an abstract class

2012-04-26 Thread Ramchandra Apte
Ramchandra Apte maniandra...@gmail.com added the comment: Sorry, distutils.ccompiler.CCompiler should have abc.ABCMeta as the metaclass. (for example like this) class CCompiler(metaclass = abc.ABCMeta): ... Thanks -- ___ Python tracker

[issue14673] add sys.implementation

2012-04-26 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14673 ___

[issue10142] Support for SEEK_HOLE/SEEK_DATA

2012-04-26 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: You broke test_io www.python.org/dev/buildbot/all/builders/x86 Gentoo Non-Debug 3.x/builds/2143/steps/test/logs/stdio -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org

[issue13210] Support Visual Studio 2010

2012-04-26 Thread Richard Oudkerk
Richard Oudkerk shibt...@gmail.com added the comment: the errno codes (EAGAIN etc) are provided only as a compatibility for posix apps that test errno. On windows, we use the WSA return values from the api functions and WsaGetLastError(). ... So, the proposed patch is not a change, it is

[issue13210] Support Visual Studio 2010

2012-04-26 Thread Brian Curtin
Brian Curtin br...@python.org added the comment: I recently added what you just mentioned in the vs2010port branch for WSA and non-WSA to work together. I still need to figure out some distutils/packaging failures, but the port is nearly ready*. * I've only focused on 32-bit debug builds, but

[issue10142] Support for SEEK_HOLE/SEEK_DATA

2012-04-26 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: Yes, backing out changeset. Never suppose anything... -- resolution: fixed - stage: committed/rejected - patch review status: closed - open ___ Python tracker rep...@bugs.python.org

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

2012-04-26 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- title: json.loads() throws TypeError on bytes object - json.loads() raises TypeError on bytes object ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10976

[issue8767] Configure: Cannot disable unicode

2012-04-26 Thread Stefano Taschini
Changes by Stefano Taschini tasch...@ieee.org: -- nosy: +taschini ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8767 ___ ___ Python-bugs-list

[issue14675] make distutils.ccompiler.CCompiler an abstract class

2012-04-26 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: distutils is closed to improvements, it only gets bugfixes. distutils2/packaging can get new features. Can you tell more about the use case or motivation for this request? -- components: +Distutils2 -Distutils nosy: +alexis versions:

[issue14673] add sys.implementation

2012-04-26 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: *version* is a version tuple, in the format of :data:`sys.version_info`, which represents the version of the Python implementation, **not** the version of the Python specification it implements. If that version number is specific to each

[issue13210] Support Visual Studio 2010

2012-04-26 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Except that Microsoft's C library also uses some of the non-WSA versions. For instance read() (or _read()) is documented to set errno to EBADF or EINVAL on error. So EBADF and EINVAL are just as native as WSAEBADF and

[issue13210] Support Visual Studio 2010

2012-04-26 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Brian, I posted a suggested port five weeks ago. What kind of problems are you having? It's really a very straightforward thing. -- ___ Python tracker rep...@bugs.python.org

[issue13210] Support Visual Studio 2010

2012-04-26 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Also, I'm not sure distutils and all that is really necessary. As I understood it, the goal is to make it so that the casual hacker can compile and run python using visual studio 2010. 3.3 continues to be officially distributed

[issue10142] Support for SEEK_HOLE/SEEK_DATA

2012-04-26 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: Added file: http://bugs.python.org/file25370/6447a9323b11.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10142 ___

[issue10142] Support for SEEK_HOLE/SEEK_DATA

2012-04-26 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: New patch proposed, with testsuite fixed. Please, review. Last chance :-). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10142 ___

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

2012-04-26 Thread Richard Oudkerk
Richard Oudkerk shibt...@gmail.com added the comment: New patch which adds timeout to ResourceSharer.stop() which defaults to 0. When stop() fails it now uses the logger. pthread_sigmask() only stops this background thread from receiving signals. Signals will still be delivered to other

[issue13210] Support Visual Studio 2010

2012-04-26 Thread Brian Curtin
Brian Curtin br...@python.org added the comment: No, this is the real thing. Python 3.3 distributed on VS2010. In order to ship a fully built Python 3.3 MSI for users, I've found it's not just as easy as updating errno. I'll strip out all of the project file changes and whatnot and post a

[issue14443] Distutils test_bdist_rpm failure

2012-04-26 Thread Dave Malcolm
Dave Malcolm dmalc...@redhat.com added the comment: As a post-processing step, rpmbuild will attempt to byte-compile any .py files it encounters, and the results must be listed in the %files manifest. [1] This is done by the script brp-python-bytecompile, which uses the compileall module.

[issue13210] Support Visual Studio 2010

2012-04-26 Thread Brian Curtin
Brian Curtin br...@python.org added the comment: Also, I personally don't care about distutils, but I need all of the tests to pass before I can consider merging this. Distutils and packaging need a few changes to be able to compile extensions and create setups and whatever with VS2010.

[issue13210] Support Visual Studio 2010

2012-04-26 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Could you attach a file with the distutils/packaging test output? I don’t really know the packaging.compiler module, but I may be able to make sense of the error messages and work with you to fix them. --

[issue14632] Race condition in WatchedFileHandler leads to unhandled exception

2012-04-26 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Buildbots seem not to be complaining, so closing. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14632 ___

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

2012-04-26 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: I mean a string that starts with '\u'. b'\x00...'. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10976 ___

[issue8767] Configure: Cannot disable unicode

2012-04-26 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Reopening per this python-dev thread where MvL said that not being able to build 2.7 without unicode is a bug (but someone would need to care enough to contribute a patch to fix it). -- nosy: +r.david.murray priority: normal -

[issue14673] add sys.implementation

2012-04-26 Thread Eric Snow
Eric Snow ericsnowcurren...@gmail.com added the comment: @antoine - I wondered about that. In the end I got something up to start with. The list of fields in sys.implementation may change over time, unlike sys.version_info, et al. However, during interpreter execution, I would expect that

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

2012-04-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Le jeudi 26 avril 2012 à 15:48 +, Serhiy Storchaka a écrit : I mean a string that starts with '\u'. b'\x00...'. According to the RFC, that should be escaped: All Unicode characters may be placed within the quotation marks except

[issue13210] Support Visual Studio 2010

2012-04-26 Thread Richard Oudkerk
Richard Oudkerk shibt...@gmail.com added the comment: This doesn't change that, and as far as I know, this has worked and continues to work. errno is supported. Using your patch, does the following throw an AssertionError? import os, errno try: ... os.read(-1, 10) ... except OSError as

[issue14673] add sys.implementation

2012-04-26 Thread Eric Snow
Eric Snow ericsnowcurren...@gmail.com added the comment: @Éric - that's a good point. I considered it for a little bit, but went with the quick and easy think to get it rolling. There is a real benefit to mandating an API sys.implementation.version. importlib would use that version to

[issue14673] add sys.implementation

2012-04-26 Thread Eric Snow
Eric Snow ericsnowcurren...@gmail.com added the comment: I'm going to write a PEP for this, after all. I want to make sure that it's easy to access, in one place, these points that are coming up and their resolutions. -- ___ Python tracker

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

2012-04-26 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: According to current implementation this is acceptable. json.loads('\u', strict=False) '\x00' -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10976

[issue14443] Distutils test_bdist_rpm failure

2012-04-26 Thread Dave Malcolm
Dave Malcolm dmalc...@redhat.com added the comment: __os_install_post is defined within /usr/lib/rpm/redhat/macros and contains this fragment: /usr/lib/rpm/brp-python-bytecompile %{__python} %{?_python_bytecompile_errors_terminate_build} \ Hence it will use %{__python} as the default when

[issue14669] test_multiprocessing failure on OS X Tiger

2012-04-26 Thread Richard Oudkerk
Richard Oudkerk shibt...@gmail.com added the comment: I can't work out what is wrong here. The code does not to account for a partial read of the message from the socket. The attached patch fixes that, but it does not address the cause of this failure. -- keywords: +patch Added

[issue14676] DeprecationWarning missing in default warning filters documentation

2012-04-26 Thread Peter Eisentraut
New submission from Peter Eisentraut pete...@gmx.net: DeprecationWarning was disabled by default in Python 2.7, but the documentation section Default Warning Filters does not list it as ignored. In the 3.x branches, this was already fixed. Trivial patch attached. -- assignee:

[issue1065986] Fix pydoc crashing on unicode strings

2012-04-26 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1065986 ___ ___ Python-bugs-list

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

2012-04-26 Thread Daniel Swanson
Daniel Swanson popcorn.tomato.d...@gmail.com added the comment: I am using windows and as I recall, it installed a desktop shortcut for me. but I could be wrong. -- nosy: +weirdink13 ___ Python tracker rep...@bugs.python.org

[issue13210] Support Visual Studio 2010

2012-04-26 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Using your patch, does the following throw an AssertionError? Yes, it looks as though it will. It seems I was too agressive, since errnomodule has different entries for EBADF and WSAEBADF. This is the kind of feedback I'd like

[issue13210] Support Visual Studio 2010

2012-04-26 Thread Brian Curtin
Brian Curtin br...@python.org added the comment: Yes. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13210 ___ ___ Python-bugs-list mailing list

[issue13210] Support Visual Studio 2010

2012-04-26 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Super, I must have missed that memo. At PyCon there wasn't much enthusiasm for it, and this was considered a toy project :) You may be interested in my patch to see what I did with the project files, then. Otherwise, I'll be

[issue14677] Python 2.6 Printing Error

2012-04-26 Thread mesheb82
New submission from mesheb82 meshe...@gmail.com: I’m running: Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)] on win32 I was testing out some print functionality and I made an error in typing (I meant to use %8.8f), but is this behavior intentional or is it an

[issue14678] Update zipimport to support importlib.invalidate_caches()

2012-04-26 Thread Brett Cannon
New submission from Brett Cannon br...@python.org: zipimport's finders that get cached in sys.path_importer_cache should probably be updated to support importlib.invalidate_caches() (else the module should get re-implemented in pure Python in importlib and then be tossed). --

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

2012-04-26 Thread Fabian Groffen
Fabian Groffen grob...@gentoo.org added the comment: % echo test /var/tmp/testfile % python Python 2.7.3 (default, Apr 26 2012, 19:06:37) [GCC 4.2.1 (Gentoo 4.2.1_p5666, Apple Inc. build 5666) (dot 3)] on darwin Type help, copyright, credits or license for more information. import shutil

[issue14678] Update zipimport to support importlib.invalidate_caches()

2012-04-26 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: zipimport in Python sounds good to me. -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14678 ___

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

2012-04-26 Thread Fabian Groffen
Fabian Groffen grob...@gentoo.org added the comment: it seems errnomodule.c has no idea of ENOTSUP, and that's not the only missing one. OSX 10.7: $ grep ^#define\sE /usr/include/sys/errno.h | awk '{print $2}' | while read line ; do grep -q ${line} Modules/errnomodule.c || echo missing: $line

[issue10142] Support for SEEK_HOLE/SEEK_DATA

2012-04-26 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: Added file: http://bugs.python.org/file25374/c7abfb4d4260.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10142 ___

[issue10142] Support for SEEK_HOLE/SEEK_DATA

2012-04-26 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: New patch, after neolo...@free.fr review. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10142 ___

[issue14677] Python 2.6 Printing Error

2012-04-26 Thread Eric V. Smith
Eric V. Smith e...@trueblade.com added the comment: The s causes the argument to be converted to a string, then the formatting is applied. So it's working as designed. This is the logical equivalent of: '%8.8s' % str(101.) -- nosy: +eric.smith resolution: - invalid status:

[issue14678] Update zipimport to support importlib.invalidate_caches()

2012-04-26 Thread Eric V. Smith
Changes by Eric V. Smith e...@trueblade.com: -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14678 ___ ___ Python-bugs-list

[issue14127] add st_*time_ns fileds to os.stat(), add ns keyword to os.*utime*(), os.*utimens*() expects a number of nanoseconds

2012-04-26 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Somehow patch #2 doesn't show up in Rietveld. :-( It's because it's a git-style diff, so it includes no base revision, and it didn't apply cleanly to the default head (which is tried as a fall-back in case of a missing base revision).

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

2012-04-26 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: UTF-16 units are 16-bit words, not bytes, so '\ud' sounds correct to me. You resynchronize on the word boundary: the invalid word is skipped. I agree. The only odd case is when the number of bytes is not even (pun intended). In that

[issue13210] Support Visual Studio 2010

2012-04-26 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: For instance, the sxs patch and the errnomodule patch could go in now without disturbing anything whatsoever. I'm not convinced that the errno change is actually correct. -- ___ Python tracker

[issue13210] Support Visual Studio 2010

2012-04-26 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Brian, do I understand you correctly that 2010 is to the official compiler for 3.3? Unless we switch to VS 2012, yes. -- ___ Python tracker rep...@bugs.python.org

[issue14127] add st_*time_ns fields to os.stat(), add ns keyword to os.*utime*(), os.*utimens*() expects a number of nanoseconds

2012-04-26 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- title: add st_*time_ns fileds to os.stat(), add ns keyword to os.*utime*(), os.*utimens*() expects a number of nanoseconds - add st_*time_ns fields to os.stat(), add ns keyword to os.*utime*(), os.*utimens*()

[issue13210] Support Visual Studio 2010

2012-04-26 Thread Brian Curtin
Brian Curtin br...@python.org added the comment: I don't have a link handy, but from what I've read we could go from VS2010 to VS2012 with relative ease since it's supposed to be able to work with 2010 solutions/project files. I haven't tried this with the beta, but I'll take a look.

[issue14673] add sys.implementation

2012-04-26 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: If the main motivation for this is that importlib can use it, I fail to see the point to make it cross-implementation. Other implementations of Python may not use byte code files at all, or use different byte code syntaxes, or not use the

[issue14127] add st_*time_ns fields to os.stat(), add ns keyword to os.*utime*(), os.*utimens*() expects a number of nanoseconds

2012-04-26 Thread Larry Hastings
Larry Hastings la...@hastings.org added the comment: FYI, Martin was replying to Guido's comment from more than a month ago, when I posted revision #2 of my first patch series. By sheer coincidence I posted revision #2 of a new patch series yesterday. But Reitveld worked fine for that!

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

2012-04-26 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Thanks for the analysis. Yes, it looks like there's a difference between OS X and current FreeBSDs, for example. chflags(2) on the latter is documented as returning EOPNOTSUPP and on the former ENOTSUP. shutil should check for both. A quick search

[issue6818] remove/delete method for zipfile/tarfile objects

2012-04-26 Thread Yuval Greenfield
Yuval Greenfield ubershme...@gmail.com added the comment: I'm not sure I understand how http://bugs.python.org/review/6818/show works. I've looked all over and only found remarks for zipfile.remove.patch and not for zipfile.remove.2.patch which addressed all the aforementioned issues. Also, I

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

2012-04-26 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: I had this text ready before ned chimed in, I’ll post it anyway because it was a lot of work ;): You're right, 2.7’s errnos are incomplete compared to 3.2. Antoine added ENOTSUP in c370866f30a7 and it runs as “Solaris-specific”. So it’s currently

[issue13210] Support Visual Studio 2010

2012-04-26 Thread Brian Curtin
Brian Curtin br...@python.org added the comment: VS11 opened the VS2010 project fine without doing conversion. Note that this just uses VS11 to work with the project in VS2010 mode with the 2010 compiler. Doing the conversion to VS11's compiler is another thing to consider, although probably

[issue14679] Changes to html.parser break third-party code

2012-04-26 Thread Vinay Sajip
New submission from Vinay Sajip vinay_sa...@yahoo.co.uk: The change to html.parser.tagfind in ba4baaddac8d is causing third-party code (Django) to fail. See http://mail.python.org/pipermail/python-dev/2012-April/119074.html for more information. Other patterns which changed (e.g.

[issue14679] Changes to html.parser break third-party code

2012-04-26 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14679 ___ ___ Python-bugs-list

[issue13210] Support Visual Studio 2010

2012-04-26 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: -haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13210 ___ ___ Python-bugs-list

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

2012-04-26 Thread Fabian Groffen
Fabian Groffen grob...@gentoo.org added the comment: I don't want to go through the paperwork nonsense just for a trivial patch, hence I didn't supply one, but instead provided all the information for you guys to make the correct fix. -- ___ Python

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

2012-04-26 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Trivial patches don’t require paperwork; non-trivial patches require a simple contributor agreement (print, sign, scan, email). We don’t like that either but it is required. If you have any suggestion to make the process simpler, please share

[issue13210] Support Visual Studio 2010

2012-04-26 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: MVL wrote: I'm not convinced that the errno change is actually correct. You are right, as SBT pointed out. There are cases where we have had errno.EFOO and errno.WSAEFOO point to different values, because one was used by

[issue14673] add sys.implementation

2012-04-26 Thread Eric Snow
Eric Snow ericsnowcurren...@gmail.com added the comment: Thanks for bringing this up, Martin. sys.implementation is about having an implementation-specific location (hence sys) to consolidate explicit values concerning the implementation. It's partly about clarifying the run-time distinction

[issue13210] Support Visual Studio 2010

2012-04-26 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: [the Soney PS3 sdk also has weird error codes for its otherwise posix compatible api. I did write a translation layer to convert those codes into posix codes where appropriate. I could show you what I did, but I'd proably set

[issue11618] Locks broken wrt timeouts on Windows

2012-04-26 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: So, what do you think, should this go in? Any qualms about the thread_nt_cv.h header? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11618

[issue11618] Locks broken wrt timeouts on Windows

2012-04-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: So, what do you think, should this go in? Any qualms about the thread_nt_cv.h header? On the principle it's ok, but I'd like to do a review before it goes in :) -- ___ Python tracker

[issue14680] pydoc with -w option does not work for a lot of help topics

2012-04-26 Thread Gregor
New submission from Gregor gregor.hochsch...@gmx.de: pydoc with pydoc with -w option (to write html files) does not work for a lot of help topics (e.g. EXPRESSIONS, FORMATTING, TUPLELITERALS, def, if, else...) If you look at the source you can see that when using the switch '-w'

[issue14621] Hash function is not randomized properly

2012-04-26 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: One possible fix: ... Main loop looks like this: .. Well, it was decided to not impact performances to workaround one specific class of attack, whereas there are many other ways to DoS Python. So we chose to keep the main loop

[issue14621] Hash function is not randomized properly

2012-04-26 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: Removed file: http://bugs.python.org/file25282/hash.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14621 ___

[issue14621] Hash function is not randomized properly

2012-04-26 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: Oops, I attached the wrong hash.py file. -- Added file: http://bugs.python.org/file25375/hash.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14621

[issue11618] Locks broken wrt timeouts on Windows

2012-04-26 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: -1. Choice of operating system must be a run-time decision, not a compile-time decision. We will have to support XP for quite some time. -- ___ Python tracker rep...@bugs.python.org

[issue14621] Hash function is not randomized properly

2012-04-26 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: We should see if more security can be gained without sacrificing speed. -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14621

[issue14621] Hash function is not randomized properly

2012-04-26 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: Problem with current randomization of hash function is following: Suffix does not influence whether two keys have some hash or not (it is xor-ed after everything). Yes, the suffix is used to protect the secret. Without the suffix, it

[issue14673] add sys.implementation

2012-04-26 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: So I'm w/ Antoine that a dict would be better so that the other VMs can add whatever they want into that object (e.g. Jython could specify what JVM they are running against) without causing confusion as to what some index means to each VM. The

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

2012-04-26 Thread Raphael Cruzeiro
Raphael Cruzeiro raphaelcruze...@raphaelcruzeiro.com 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. -- Added file:

[issue14443] Distutils test_bdist_rpm failure

2012-04-26 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: I tried the simple fix a couple of different ways on the RHEL6 buildbot. First by changing line 315 of Lib/distutils/command/bdist_rpm.py to be: rpm_cmd = ['rpmbuild', '--define', '__python %s' % sys.executable] And then a second time by

[issue14671] isinstance(obj, object) returns True for _old style_ class instances

2012-04-26 Thread Q
Q abon...@gmail.com added the comment: I do not mean to reopen the bug (there are supposedly much more important things to work on in Python). But just for the record, let me state that I feel like there is some misleading inconsistency here: - by definition, a new style class is Any class

[issue14671] isinstance(obj, object) returns True for _old style_ class instances

2012-04-26 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: 2012/4/26 Q rep...@bugs.python.org: issubclass(obj.__class__, object) to be the official way to distinguish between the new-style and the old-style classes? Just do type(cls) is types.ClassType. --