[issue13212] json library is decoding/encoding when it should not

2011-10-19 Thread Ezio Melotti
Ezio Melotti added the comment: I wonder if there are concrete use cases for loading/dumping basic types. I see two options here: 1) we decide that load/dump should accept and produce only complete json object and go through a deprecation process, raising warnings first and errors then; 2) we d

[issue13141] get rid of old threading API in the examples

2011-10-19 Thread Florent Xicluna
Florent Xicluna added the comment: Proposed patch to refresh the socketserver examples. -- keywords: +patch stage: needs patch -> patch review versions: +Python 3.2 Added file: http://bugs.python.org/file23459/issue13141.diff ___ Python tracker

[issue13210] Support Visual Studio 2010

2011-10-19 Thread Sébastien Sablé
Sébastien Sablé added the comment: Martin, what I want to achieve is to ensure that someone can download Python sources and compile them without any modification using a standard install of Windows + Visual Studio 2010 SP1. I don't really care what is the default compiler used to generate the

[issue13216] Add cp65001 codec

2011-10-19 Thread Martin v . Löwis
Martin v. Löwis added the comment: We shouldn't use the MS codec if we have our own, as they may differ. As for the 65001 bug: is that actually solved by this codec? -- ___ Python tracker

[issue13210] Support Visual Studio 2010

2011-10-19 Thread Martin v . Löwis
Martin v. Löwis added the comment: > Which part of the changes do you consider unnecessary? All the parts dealing with packaging, in particular Tools/msi. > I understand there is a feature freeze on this branch (event though > the changes in this case are well localized and not intrusive), so

[issue13210] Support Visual Studio 2010

2011-10-19 Thread Sébastien Sablé
Sébastien Sablé added the comment: Packaging makes it easier to distribute Python among my colleagues and customers, so I think it is a nice addition. OK for the hg clone, I will set up that (I actually already use mercurial internally to handle those modifications). --

[issue13216] Add cp65001 codec

2011-10-19 Thread STINNER Victor
STINNER Victor added the comment: > We shouldn't use the MS codec if we have our own, as they may differ. Ok, I agree. MS codec has a nice replacement behaviour (search for a similar glyph): cp1252 encodes Ł to b'L' for example. Our codec raises a UnicodeEncodeError on u'\u0141'.encode('cp125

[issue13212] json library is decoding/encoding when it should not

2011-10-19 Thread Tomasz Buchert
Tomasz Buchert added the comment: It wouldn't be a problem if 'json' library would be a thing specific to Python. But JSON is used to gule together different technologies and programming languages. I'm afraid that the default behavior should be 1). --

[issue13163] `port` and `host` are confused in `_get_socket

2011-10-19 Thread Víctor Terrón
Víctor Terrón added the comment: I have added a docstring to _get_socket. My proposed news entry is almost exactly what you suggested (I have just replaced 'identity' with 'identify'): "Issue #13163: Fix smtplib.SMTP._get_socket so that tracebacks correctly identify host and port arguments."

[issue13163] `port` and `host` are confused in `_get_socket

2011-10-19 Thread Víctor Terrón
Changes by Víctor Terrón : Removed file: http://bugs.python.org/file23404/smtplib.py.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue7475] codecs missing: base64 bz2 hex zlib hex_codec ...

2011-10-19 Thread Nick Coghlan
Nick Coghlan added the comment: They were removed because adding new methods to builtin types violated the language moratorium. Now that the language moratorium is over, the transform/untransform convenience APIs should be added again for 3.3. It's an approved change, the original timing was

[issue1602] windows console doesn't print or input Unicode

2011-10-19 Thread STINNER Victor
STINNER Victor added the comment: I done more tests on the Windows console. I focused my tests on output. To sum up, if we implement sys.stdout using WriteConsoleW() and sys.stdout.buffer.raw using WriteConsoleA(): - print() will not fail anymore on unencodable characters, because the string

[issue1602] windows console doesn't print or input Unicode

2011-10-19 Thread STINNER Victor
STINNER Victor added the comment: unicode3.py replaces sys.stdout, sys.stdout.buffer, sys.stderr and sys.stderr.buffer to use WriteConsoleW() and WriteConsoleA(). It displays also a lot of information about encodings and displays some characters (I wrote my tests for cp850, cp1252 and cp65001

[issue7475] codecs missing: base64 bz2 hex zlib hex_codec ...

2011-10-19 Thread Nick Coghlan
Nick Coghlan added the comment: Sorry, I meant to state my rationale for the unassignment - I'm assuming this issue is covered by MAL's recent decision to step away from Unicode and codec maintenance issues. If that's incorrect, MAL can reclaim the issue, otherwise unassigning leaves it open

[issue13216] Add cp65001 codec

2011-10-19 Thread STINNER Victor
STINNER Victor added the comment: > I consider that it is useless to set the ANSI code page to 65001 in a console I did more tests on the Windows console, focused on output, see: http://bugs.python.org/issue1602#msg145898 I was wrong, it *is* useful to change the code page to 65001. Even if we

[issue13218] test_ssl failures on Ubuntu 11.10

2011-10-19 Thread Nadeem Vawda
New submission from Nadeem Vawda : Since upgrading to Ubuntu 11.10, I've been getting the following failures in test_ssl: == FAIL: test_protocol_sslv3 (test.test_ssl.ThreadedTests) Connecting to an SSLv3 server with

[issue13218] test_ssl failures on Ubuntu 11.10

2011-10-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: All the tests work fine with OpenSSL 1.0.0d under Mageia. Could you look into Ubuntu-specific patches to OpenSSL? They have known to add disruptive changes (we already have some Ubuntu-specific code in test_ssl). Also, how about the system Python? Does it sho

[issue13218] test_ssl failures on Ubuntu 11.10

2011-10-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: Actually, I think you may just have to fix skip_if_broken_ubuntu_ssl() in test_ssl.py. Could you give it a try? -- ___ Python tracker ___

[issue13218] test_ssl failures on Ubuntu 11.10

2011-10-19 Thread Nadeem Vawda
Nadeem Vawda added the comment: > Also, how about the system Python? Does it show the same test failures? Unfortunately, it seems that the system Python package doesn't install the test suite; if you try to run "python -m test.regrtest", it complains that it can't find the test modules. > Actu

[issue13218] test_ssl failures on Ubuntu 11.10

2011-10-19 Thread STINNER Victor
STINNER Victor added the comment: Attached patch updates skip_if_broken_ubuntu_ssl(): OpenSSL in Ubuntu is still broken :-( OpenSSL package version is 1.0.0e-2ubuntu4 but in Python, ssl.OPENSSL_VERSION_INFO is still (0, 9, 8, 15, 15) !? -- keywords: +patch nosy: +haypo Added file: htt

[issue13218] test_ssl failures on Ubuntu 11.10

2011-10-19 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: -giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue13218] test_ssl failures on Ubuntu 11.10

2011-10-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Attached patch updates skip_if_broken_ubuntu_ssl(): OpenSSL in Ubuntu > is still broken :-( OpenSSL package version is 1.0.0e-2ubuntu4 but in > Python, ssl.OPENSSL_VERSION_INFO is still (0, 9, 8, 15, 15) !? Are you sure? Did you rebuild? --

[issue13218] test_ssl failures on Ubuntu 11.10

2011-10-19 Thread Nadeem Vawda
Nadeem Vawda added the comment: I get (1, 0, 0, 5, 15) for ssl.OPENSSL_VERSION_INFO. A trivial modification of Victor's patch doesn't seem to fix the failures for me, though :/ -- ___ Python tracker __

[issue13218] test_ssl failures on Ubuntu 11.10

2011-10-19 Thread Nadeem Vawda
Nadeem Vawda added the comment: Sorry, that wasn't very coherent. What I meant to say is that I tried this: if ((ssl.OPENSSL_VERSION_INFO, platform.linux_distribution()) in [((0, 9, 8, 15, 15), ('debian', 'squeeze/sid', '')), ((1, 0, 0, 5, 15), ('debian', 'wheezy/sid', ''

[issue13218] test_ssl failures on Ubuntu 11.10

2011-10-19 Thread STINNER Victor
STINNER Victor added the comment: > ssl.OPENSSL_VERSION_INFO is still (0, 9, 8, 15, 15) After a recompilation, I get (1, 0, 0, 5, 15) and ssl doesn't has PROTOCOL_SSLv2. test_ssl is failing with: == FAIL: test_protocol_sslv3

[issue13219] re module doc has minor inaccuracy in character sets

2011-10-19 Thread becky lewis
New submission from becky lewis : The documentation for the re module (specifically the section for []) states that: "If you want to include a ']' or a '-' inside a set, precede it with a backslash, or place it as the first character." However, after finding a typo in a regex I wrote it turn

[issue13218] test_ssl failures on Ubuntu 11.10

2011-10-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: > AssertionError: Client protocol SSLv23 succeeded with server protocol SSLv3! > AssertionError: Client protocol SSLv23 succeeded with server protocol TLSv1! Hmm... I guess Ubuntu may have aliased SSLv23 to SSLv3. Can someone take a look at Ubuntu patches to Op

[issue13220] print function unable while multiprocessing.Process is being run

2011-10-19 Thread ben
New submission from ben : print function unable while multiprocessing.Process is being run Not sure if this really is a bug, but the multiprocessing.Process (or Pool) does not allow to print during multiprocessing tasks. I've copied the example from The Python V3.2.2 documentation, library re

[issue13218] test_ssl failures on Ubuntu 11.10

2011-10-19 Thread Nadeem Vawda
Nadeem Vawda added the comment: > Hmm... I guess Ubuntu may have aliased SSLv23 to SSLv3. Can someone take > a look at Ubuntu patches to OpenSSL? I don't know enough about OpenSSL to make sense of the actual headers on my system without spending more time on it, but it seems like Debian have di

[issue13173] Default values for string.Template

2011-10-19 Thread Bfontaine
Bfontaine added the comment: When you are using a lot of string templates like I am doing, I think it's better if the defaults is attached directly to the template instance. This: [, , , , ...] is easier to use than: [(, ), (, 1), ...] -- ___ Pytho

[issue13212] json library is decoding/encoding when it should not

2011-10-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'm thinking that we should offer a strict-option (off by default) and leave it at that. No need to break existing code. AFAICT, the OP is the only one to have had problems with this in-practice (the JSON module or its ancestor simplejson has been aroun

[issue13212] json library is decoding/encoding when it should not

2011-10-19 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue13212] json library is decoding/encoding when it should not

2011-10-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: Agreed that a strict parameter would be a good idea to implement this. Since it's technically a new feature (and not that important), I think only 3.3 should receive it. -- nosy: +pitrou ___ Python tracker

[issue6715] xz compressor support

2011-10-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Apart from this, is there anything else that needs to be done before this > change can be committed to the main repo? Things look fine to me, apart from a couple of minor comments I've made on the review tool. -- ___

[issue12989] Consistently handle path separator in Py_GetPath on Windows

2011-10-19 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue12529] cgi.parse_header fails on double quotes and semicolons

2011-10-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 489237756488 by Senthil Kumaran in branch '2.7': Fix closes Issue12529 - cgi.parse_header failure on double quotes and http://hg.python.org/cpython/rev/489237756488 -- nosy: +python-dev resolution: -> fixed stage: patch review -> committed

[issue12529] cgi.parse_header fails on double quotes and semicolons

2011-10-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset f5bd78b11275 by Senthil Kumaran in branch '3.2': 3.2 - Fix closes Issue12529 - cgi.parse_header failure on double quotes and http://hg.python.org/cpython/rev/f5bd78b11275 New changeset 8564d2b240b6 by Senthil Kumaran in branch 'default': default -

[issue12529] cgi.parse_header fails on double quotes and semicolons

2011-10-19 Thread Senthil Kumaran
Senthil Kumaran added the comment: Thanks for the patch, Petri and Ben.Darnell. -- nosy: +orsenthil ___ Python tracker ___ ___ Python

[issue13216] Add cp65001 codec

2011-10-19 Thread Martin v . Löwis
Martin v. Löwis added the comment: >> As for the 65001 bug: is that actually solved by this codec? > > Sorry, which bug? #6501 and friends (isn't it interesting that the issue of code page 65001 is reported as bug 6501?) -- ___ Python tracker

[issue13193] test_packaging and test_distutils failures under Windows

2011-10-19 Thread Nadeem Vawda
Nadeem Vawda added the comment: > The test creates a temporary directory which is inserted at the head of > sys.path. > packaging.database.get_distribution should thus find Spamlib-0.1.dist-info. > Can someone with a Windows install help me with this? Printing sys.path and > os.listdir(sys.pat

[issue13221] No "edit with IDLE" in right click context menu

2011-10-19 Thread Matthias Schreiber
New submission from Matthias Schreiber : I dont have the context menu "edit with IDLE" anymore. I installed Python 3.2 first and then 2.7 I tried to open a .py file that's written with 3.2, but it were opened with the 2.7 IDLE. So I uninstalled 2.7 and tried to open it again. Now the context men

[issue13193] test_packaging and test_distutils failures under Windows

2011-10-19 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +flox ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue12989] Consistently handle path separator in Py_GetPath on Windows

2011-10-19 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +flox ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue13218] test_ssl failures on Ubuntu 11.10

2011-10-19 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue992389] attribute error due to circular import

2011-10-19 Thread Florent Xicluna
Changes by Florent Xicluna : -- stage: -> needs patch versions: +Python 3.3 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list

[issue6090] zipfile: Bad error message when zipping a file with timestamp before 1980

2011-10-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 649ac338203f by Senthil Kumaran in branch '2.7': Fix closes Issue6090 - Raise a ValueError, instead of failing with unrelated http://hg.python.org/cpython/rev/649ac338203f New changeset 12f3e86e9041 by Senthil Kumaran in branch '3.2': 3.2 - Fix clo

[issue6090] zipfile: Bad error message when zipping a file with timestamp before 1980

2011-10-19 Thread Senthil Kumaran
Senthil Kumaran added the comment: Fixed in all active branches. Thanks for the patch, Petri. Mark, for this issue, raising ValueError from zipfile was seemingly a right thing to do, the previous error from struct for a side effect of sending a value lower than 1980. -- nosy: +orsen

[issue13205] NameErrors in generated setup.py (codecs, split_multiline)

2011-10-19 Thread Éric Araujo
Éric Araujo added the comment: Excellent, thanks! I’ll move the tests into the existing test_run.py file. -- ___ Python tracker ___

[issue5788] datetime.timedelta is inconvenient to use...

2011-10-19 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Sorry for commenting on a closed issue but I just bumped into a problem requiring a total_minute() method I ended up implementing by doing some raw math by hand. Would it be a reasonable addition? If so I'll open a separate issue. -- nosy: +giampao

[issue12170] index() and count() methods of bytes and bytearray should accept byte ints

2011-10-19 Thread Petri Lehtinen
Petri Lehtinen added the comment: Thanks for the review, Antoine. Attached an updated the patch: - The function definition now uses STRINGLIB(...) and the function is only defined when !STRINGLIB_IS_UNICODE (so I took both approaches) - Added a "versionadded:: 3.3" to the documentation.

[issue12170] index() and count() methods of bytes and bytearray should accept byte ints

2011-10-19 Thread Petri Lehtinen
Changes by Petri Lehtinen : Removed file: http://bugs.python.org/file23464/issue12170_v2.patch ___ Python tracker ___ ___ Python-bugs-list mai

[issue12604] VTRACE macro in _sre.c should use do {} while (0)

2011-10-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset f35514dfadf8 by Senthil Kumaran in branch '2.7': Fix Issue 12604 - Use a proper no-op macro expansion for VTRACE macro in _sre.c http://hg.python.org/cpython/rev/f35514dfadf8 New changeset ab028084f704 by Senthil Kumaran in branch '3.2': 3.2 - Fix

[issue12170] index() and count() methods of bytes and bytearray should accept byte ints

2011-10-19 Thread Petri Lehtinen
Petri Lehtinen added the comment: Fixed a minor inconsistency. -- Added file: http://bugs.python.org/file23465/issue12170_v2.patch ___ Python tracker ___ ___

[issue13216] Add cp65001 codec

2011-10-19 Thread STINNER Victor
STINNER Victor added the comment: > > Sorry, which bug? > #6501 and friends Hum, this particular issue, #6501, doesn't concern the code page 65001. The typical usecase (issues #7441 and #10920) is: C:\victor\cpython>chcp 65001 Page de codes active : 65001 C:\victor\cpython>pcbui

[issue12367] select.error has no errno attribute

2011-10-19 Thread Nadeem Vawda
Nadeem Vawda added the comment: The AMD64 FreeBSD 8.2 3.x buildbot has been experiencing sporadic lockups since changeset 8bbfb24d4824 was committed: http://www.python.org/dev/buildbot/all/builders/AMD64%20FreeBSD%208.2%203.x/builds/1174/steps/test/logs/stdio http://www.python.org/dev

[issue12367] select.error has no errno attribute

2011-10-19 Thread Nadeem Vawda
Nadeem Vawda added the comment: Sorry, please disregard my last message - I confused the commit times for 8bbfb24d4824 and f6b8e4226260. There haven't been any further lockups since f6b8e4226260 was committed. -- ___ Python tracker

[issue12367] select.error has no errno attribute

2011-10-19 Thread STINNER Victor
STINNER Victor added the comment: > The tracebacks say that the lockups are happening in test_errno The test was added by f6b8e4226260 the 17th october, the last lockup occurred the 16th (19:08:15). Before, I added a workaround to see the failure but avoid the lockup: 60fecfbea397 (Oct 16 20

[issue13222] Erroneous unclosed file warning

2011-10-19 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' : /opt/python3.2/lib/python3.2/site-packages/psutil/_pslinux.py:389: ResourceWarning: unclosed file <_io.FileIO name=7 mode='rb'> return [x for x in f.read().split('\x00') if x] I get this while running tests. The method in question is defined as such:

[issue13223] pydoc removes 'self' in HTML for method docstrings with example code

2011-10-19 Thread Cameron Hayne
New submission from Cameron Hayne : If the docstring for a method has example code that uses 'self', the 'self' will not appear in the HTML generated by pydoc.writedoc Example: #- def getAnswer(self): """ Return the answer. Example of use: answ

[issue6715] xz compressor support

2011-10-19 Thread Nadeem Vawda
Changes by Nadeem Vawda : Removed file: http://bugs.python.org/file23393/bdf0afbbbd80.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue6715] xz compressor support

2011-10-19 Thread Nadeem Vawda
Changes by Nadeem Vawda : Added file: http://bugs.python.org/file23466/371a133b770a.diff ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue13222] Erroneous unclosed file warning

2011-10-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: Since the "name" is 7, it's certainly another file than the one opened in: f = open("/proc/%s/cmdline" % self.pid) It could be that you called open on the result of os.pipe(), or perhaps you used a subprocess and didn't call communicate() or close() on

[issue13170] distutils2 test failures

2011-10-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset cda119958db3 by Éric Araujo in branch 'default': Kludge around shlex not supporting unicode in 2.x (#13170). http://hg.python.org/distutils2/rev/cda119958db3 -- ___ Python tracker

[issue11751] Increase distutils.filelist / packaging.manifest test coverage

2011-10-19 Thread Éric Araujo
Éric Araujo added the comment: Python 2.7 contains distutils, not distutils2. You’d have to clone hg.python.org/distutils2 and apply the patch I’m attaching. Thanks for the help! -- Added file: http://bugs.python.org/file23467/distutils2-manifest.diff __

[issue12915] Add inspect.locate and inspect.resolve

2011-10-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1405df4a1535 by Éric Araujo in branch 'default': Expand tests and fix bugs in packaging.util.resolve_name. http://hg.python.org/cpython/rev/1405df4a1535 -- nosy: +python-dev ___ Python tracker

[issue11254] distutils doesn't byte-compile .py files to __pycache__ during installation

2011-10-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1cc4d822123b by Éric Araujo in branch 'default': More fixes for PEP 3147 compliance in packaging (#11254) http://hg.python.org/cpython/rev/1cc4d822123b -- ___ Python tracker

[issue11254] distutils doesn't byte-compile .py files to __pycache__ during installation

2011-10-19 Thread Éric Araujo
Éric Araujo added the comment: Installation was not completely fixed. Distutils delegates to each command’s get_outputs method to make the list of all files to install or package in an sdist, and the previous patch missed edits to these get_outputs methods. I should have fixed it in packagi

[issue13181] pysetup install creates .pyc files but pysetup remove doesn't delete them

2011-10-19 Thread Éric Araujo
Éric Araujo added the comment: I think this is #11254, for which I’ve just pushed a fix. Can you update your 3.3 clone and try to reproduce? -- ___ Python tracker ___

[issue12915] Add inspect.locate and inspect.resolve

2011-10-19 Thread Eric Snow
Changes by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue13224] Change str(class) to return only the class name

2011-10-19 Thread Éric Araujo
New submission from Éric Araujo : Suggestion by Guido on #868845: Off-topic: I sometimes wish that the str() of a class would return the class name rather than its repr(); that way "print(str)" would print "str" instead of . (Use case: printing an exception and its message: I wish I could pr

[issue13224] Change str(class) to return only the class name

2011-10-19 Thread Éric Araujo
Changes by Éric Araujo : -- keywords: +patch Added file: http://bugs.python.org/file23468/change-class-__str__.diff ___ Python tracker ___ ___

[issue13224] Change str(class) to return only the class name

2011-10-19 Thread Éric Araujo
Éric Araujo added the comment: Suggestion by Guido on #868845: > I sometimes wish that the str() of a class would return the class name > rather than its repr(); that way "print(str)" would print "str" > instead of . (Use case: printing an exception and its > message: I wish I could print("%s:

[issue13224] Change str(class) to return only the class name

2011-10-19 Thread Éric Araujo
Changes by Éric Araujo : -- Removed message: http://bugs.python.org/msg145945 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue868845] Need unit tests for <...> reprs

2011-10-19 Thread Éric Araujo
Éric Araujo added the comment: I opened #13224 with a patch to change str(class). -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue12619] Automatically regenerate platform-specific modules

2011-10-19 Thread Charles-François Natali
Charles-François Natali added the comment: > Related : #1565071 and #3990 . There is no reason to keep plat-xxx files if > cannot be managed properly. +1 -- ___ Python tracker _

[issue11637] Add cwd to sys.path for hooks

2011-10-19 Thread Éric Araujo
Éric Araujo added the comment: This was fixed for setup hooks but not command hooks; I have a patch for that. -- resolution: fixed -> stage: committed/rejected -> commit review status: closed -> open versions: +3rd party ___ Python tracker

[issue13225] Failing packaging hooks should not stop operation

2011-10-19 Thread Éric Araujo
New submission from Éric Araujo : As discussed in #11637, failing hooks should not stop operation. I see different issues: a) a hook is not found b) a hook is not callable c) a hook raises an exception Current code will raise a Packaging exception for a) and b), and let the exception propaga

[issue12375] Add packages_root to sys.path for hooks

2011-10-19 Thread Éric Araujo
Éric Araujo added the comment: I have a patch for this. -- assignee: tarek -> eric.araujo versions: +3rd party ___ Python tracker ___ ___

[issue12416] packaging needs {pre,post}-{install,remove} hooks

2011-10-19 Thread Éric Araujo
Éric Araujo added the comment: I’ve opened #13225 about the error handling. -- assignee: tarek -> eric.araujo ___ Python tracker ___

[issue12619] Automatically regenerate platform-specific modules

2011-10-19 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: I don't see why these modules should be auto-generated. The constants in the modules hardly ever change and are also not affected by architecture differences (e.g. Mac OS X, Solaris, etc.) AFAICT. If you think they need to be auto-generated, you should make

[issue11552] Confusing error message when hook module cannot be loaded

2011-10-19 Thread Éric Araujo
Éric Araujo added the comment: Maybe your bug was #11637, or one of the other bugs that I fixed in 1405df4a1535. Your simple example now works. -- assignee: tarek -> eric.araujo resolution: -> out of date stage: -> committed/rejected status: open -> closed type: crash -> behavior _

[issue12703] Improve error reporting for packaging.util.resolve_name

2011-10-19 Thread Éric Araujo
Éric Araujo added the comment: I have added tests and fixed one or two bugs in 1405df4a1535. I have another patch that checks that error messages are useful, with one exception: if you try to import a.b and b raises an ImportError, then the calling code will see an Attribute error. Right no

[issue12619] Automatically regenerate platform-specific modules

2011-10-19 Thread STINNER Victor
STINNER Victor added the comment: > you should make a case by example Did you read comments of this issue and my email thread on python-dev? There are differents examples: - LONG_MAX is 9223372036854775807 even on 32 bits system - On Mac OS X, FAT programs contains 32 and 64 binaries, where

[issue13225] Failing packaging hooks should not stop operation

2011-10-19 Thread Vinay Sajip
Vinay Sajip added the comment: > An option (--strict) would be needed to switch from logging messages to > exceptions; I wonder if an elegant way to do that would be a custom logging > handler. I'm not sure a custom logging handler is the way to go. I think it would be better to log the exc

[issue12619] Automatically regenerate platform-specific modules

2011-10-19 Thread Martin v . Löwis
Martin v. Löwis added the comment: Victor, please accept that this entire infrastructure was originally added because there was a need for it, and the need did not go away. It's probably relevant only for a minority of applications, but you would make this minority's lifes much more complicat

[issue13121] collections.Counter's += copies the entire object

2011-10-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5cced40374df by Raymond Hettinger in branch 'default': Issue #13121: Support in-place math operators for collections.Counter(). http://hg.python.org/cpython/rev/5cced40374df -- nosy: +python-dev ___ Pyth

[issue13164] importing rlcompleter module writes a control sequence in stdout

2011-10-19 Thread Éric Araujo
Éric Araujo added the comment: Can you give a simpler script (maybe in Python :) to reproduce this? Also, 2.6 only gets security fixes now, so please use 2.7, 3.2 or 3.3. -- nosy: +eric.araujo versions: +Python 2.7, Python 3.2, Python 3.3 -Python 2.6 _

[issue12619] Automatically regenerate platform-specific modules

2011-10-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: > If they don't hurt, why remove them? Bogus constants don't hurt? -- ___ Python tracker ___ ___ P

[issue13121] collections.Counter's += copies the entire object

2011-10-19 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue1602] windows console doesn't print or input Unicode

2011-10-19 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +brian.curtin, mhammond ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue12185] Decimal documentation lists "first" and "second" arguments, should be "self" and "other"

2011-10-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: Sorry, I'm going to reject this one. I applied the patch and looked at the generated docs, finding them to be less readable than before. AFAICT, we've had no issues with people mis-reading the text as currently presented. Also, I looked back at the und

[issue1602] windows console doesn't print or input Unicode

2011-10-19 Thread STINNER Victor
STINNER Victor added the comment: win_console.patch: a more complete prototype * patch the site module to replace sys.stdout and sys.stderr by UnicodeConsole and BytesConsole classes which use WriteConsoleW and WriteConsoleA * UnicodeConsole inherits from io.TextIOBase and BytesConsole inher

[issue1602] windows console doesn't print or input Unicode

2011-10-19 Thread STINNER Victor
STINNER Victor added the comment: test_win_console.py: Small script to test win_console.patch. Write some characters into sys.stdout.buffer (WriteConsoleA) and sys.stdout (WriteConsoleW). The test is written for cp850, cp1252 and cp65001 code pages. -- Added file: http://bugs.python.o

[issue13224] Change str(class) to return only the class name

2011-10-19 Thread STINNER Victor
STINNER Victor added the comment: It looks like your change breaks backward compatibility (e.g. tests written using doctests). I don't know if it's a problem or not. -- nosy: +haypo ___ Python tracker ___

[issue11931] Regular expression documentation patch

2011-10-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 068d89194ffd by Raymond Hettinger in branch '3.2': Issue 11931: Minor punctuation/grammar/wording fixups to the regex docs http://hg.python.org/cpython/rev/068d89194ffd -- nosy: +python-dev ___ Python tr

[issue11931] Regular expression documentation patch

2011-10-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: Applied many of these changes to 3.2 and 3.3. If someone is interested, feel free to backport them to 2.7. -- resolution: -> fixed status: open -> closed versions: -Python 3.1, Python 3.2, Python 3.3 ___ Python

[issue12668] 3.2 What's New: it's integer->string, not the opposite

2011-10-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 48e0db1cf7e4 by Raymond Hettinger in branch '3.2': Issue 12668: Fix wording in Whatsnew3.2 http://hg.python.org/cpython/rev/48e0db1cf7e4 -- nosy: +python-dev ___ Python tracker

[issue12668] 3.2 What's New: it's integer->string, not the opposite

2011-10-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for the report. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue12619] Automatically regenerate platform-specific modules

2011-10-19 Thread Jakub Wilk
Jakub Wilk added the comment: FYI, in Debian we have at least: one package using the CDROM module, 3 packages using the IN module, 14 packages using the DLFCN module. -- ___ Python tracker

[issue12619] Automatically regenerate platform-specific modules

2011-10-19 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: STINNER Victor wrote: > > STINNER Victor added the comment: > >> you should make a case by example > > Did you read comments of this issue and my email thread on python-dev? No. > There are differents examples: > > - LONG_MAX is 9223372036854775807 e

  1   2   >