[issue13197] subprocess: move shell arguments to a separate keyword param

2011-10-19 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: List not only needs to be joined, it should be quoted as well. But the biggest problem will be the change of behavior between Python versions which may confuse users even more. Perhaps it's a good time to start embedding 'best practice'

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

2011-10-19 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com 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

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

2011-10-19 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com 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

[issue13210] Support Visual Studio 2010

2011-10-19 Thread Sébastien Sablé
Sébastien Sablé sa...@users.sourceforge.net 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

[issue13216] Add cp65001 codec

2011-10-19 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de 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 rep...@bugs.python.org

[issue13210] Support Visual Studio 2010

2011-10-19 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de 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

[issue13210] Support Visual Studio 2010

2011-10-19 Thread Sébastien Sablé
Sébastien Sablé sa...@users.sourceforge.net 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

[issue13216] Add cp65001 codec

2011-10-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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

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

2011-10-19 Thread Tomasz Buchert
Tomasz Buchert thin...@gmail.com 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 quinta...@gmail.com 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

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

2011-10-19 Thread Víctor Terrón
Changes by Víctor Terrón quinta...@gmail.com: Removed file: http://bugs.python.org/file23404/smtplib.py.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13163 ___

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

2011-10-19 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com 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

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

2011-10-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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

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

2011-10-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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

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

2011-10-19 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com 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

[issue13216] Add cp65001 codec

2011-10-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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

[issue13218] test_ssl failures on Ubuntu 11.10

2011-10-19 Thread Nadeem Vawda
New submission from Nadeem Vawda nadeem.va...@gmail.com: 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

[issue13218] test_ssl failures on Ubuntu 11.10

2011-10-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

[issue13218] test_ssl failures on Ubuntu 11.10

2011-10-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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 rep...@bugs.python.org http://bugs.python.org/issue13218

[issue13218] test_ssl failures on Ubuntu 11.10

2011-10-19 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com 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

[issue13218] test_ssl failures on Ubuntu 11.10

2011-10-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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

[issue13218] test_ssl failures on Ubuntu 11.10

2011-10-19 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: -giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13218 ___ ___

[issue13218] test_ssl failures on Ubuntu 11.10

2011-10-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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 nadeem.va...@gmail.com 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 rep...@bugs.python.org

[issue13218] test_ssl failures on Ubuntu 11.10

2011-10-19 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com 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),

[issue13218] test_ssl failures on Ubuntu 11.10

2011-10-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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:

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

2011-10-19 Thread becky lewis
New submission from becky lewis bex.le...@gmail.com: 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

[issue13218] test_ssl failures on Ubuntu 11.10

2011-10-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

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

2011-10-19 Thread ben
New submission from ben thelen_...@yahoo.com: 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

[issue13218] test_ssl failures on Ubuntu 11.10

2011-10-19 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com 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

[issue13173] Default values for string.Template

2011-10-19 Thread Bfontaine
Bfontaine bati...@yahoo.fr 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: [Template0, Template1, Template2, Template3, ...] is easier to use than: [(Template0, defaults0),

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

2011-10-19 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com 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

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

2011-10-19 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13212 ___ ___

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

2011-10-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

[issue6715] xz compressor support

2011-10-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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 victor.stin...@haypocalc.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12989 ___ ___

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

2011-10-19 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

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

2011-10-19 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

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

2011-10-19 Thread Senthil Kumaran
Senthil Kumaran sent...@uthcode.com added the comment: Thanks for the patch, Petri and Ben.Darnell. -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12529 ___

[issue13216] Add cp65001 codec

2011-10-19 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de 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?) -- ___

[issue13193] test_packaging and test_distutils failures under Windows

2011-10-19 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com 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

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

2011-10-19 Thread Matthias Schreiber
New submission from Matthias Schreiber antexti...@googlemail.com: 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

[issue13193] test_packaging and test_distutils failures under Windows

2011-10-19 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13193 ___ ___ Python-bugs-list

[issue12989] Consistently handle path separator in Py_GetPath on Windows

2011-10-19 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12989 ___ ___ Python-bugs-list

[issue13218] test_ssl failures on Ubuntu 11.10

2011-10-19 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13218 ___ ___ Python-bugs-list

[issue992389] attribute error due to circular import

2011-10-19 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- stage: - needs patch versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue992389 ___

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

2011-10-19 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

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

2011-10-19 Thread Senthil Kumaran
Senthil Kumaran sent...@uthcode.com 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.

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

2011-10-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Excellent, thanks! I’ll move the tests into the existing test_run.py file. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13205 ___

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

2011-10-19 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com 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.

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

2011-10-19 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org 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

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

2011-10-19 Thread Petri Lehtinen
Changes by Petri Lehtinen pe...@digip.org: Removed file: http://bugs.python.org/file23464/issue12170_v2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12170 ___

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

2011-10-19 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

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

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

[issue13216] Add cp65001 codec

2011-10-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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\cpythonchcp 65001 Page de codes active : 65001

[issue12367] select.error has no errno attribute

2011-10-19 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com 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

[issue12367] select.error has no errno attribute

2011-10-19 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com 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

[issue12367] select.error has no errno attribute

2011-10-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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

[issue13222] Erroneous unclosed file warning

2011-10-19 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' g.rod...@gmail.com: /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

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

2011-10-19 Thread Cameron Hayne
New submission from Cameron Hayne cameron.ha...@gmail.com: 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

[issue6715] xz compressor support

2011-10-19 Thread Nadeem Vawda
Changes by Nadeem Vawda nadeem.va...@gmail.com: Removed file: http://bugs.python.org/file23393/bdf0afbbbd80.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6715 ___

[issue6715] xz compressor support

2011-10-19 Thread Nadeem Vawda
Changes by Nadeem Vawda nadeem.va...@gmail.com: Added file: http://bugs.python.org/file23466/371a133b770a.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6715 ___

[issue13222] Erroneous unclosed file warning

2011-10-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

[issue13170] distutils2 test failures

2011-10-19 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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 -- ___

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

2011-10-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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 devn...@psf.upfronthosting.co.za 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

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

2011-10-19 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

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

2011-10-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

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

2011-10-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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 rep...@bugs.python.org http://bugs.python.org/issue13181

[issue12915] Add inspect.locate and inspect.resolve

2011-10-19 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +eric.snow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12915 ___ ___ Python-bugs-list

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

2011-10-19 Thread Éric Araujo
New submission from Éric Araujo mer...@netwok.org: 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 class 'str'. (Use case: printing an exception and its

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

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

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

2011-10-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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 class 'str'. (Use case: printing an exception and its message: I

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

2011-10-19 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- Removed message: http://bugs.python.org/msg145945 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13224 ___

[issue868845] Need unit tests for ... reprs

2011-10-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I opened #13224 with a patch to change str(class). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue868845 ___

[issue12619] Automatically regenerate platform-specific modules

2011-10-19 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Related : #1565071 and #3990 . There is no reason to keep plat-xxx files if cannot be managed properly. +1 -- ___ Python tracker rep...@bugs.python.org

[issue11637] Add cwd to sys.path for hooks

2011-10-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

[issue13225] Failing packaging hooks should not stop operation

2011-10-19 Thread Éric Araujo
New submission from Éric Araujo mer...@netwok.org: 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

[issue12375] Add packages_root to sys.path for hooks

2011-10-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I have a patch for this. -- assignee: tarek - eric.araujo versions: +3rd party ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12375 ___

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

2011-10-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I’ve opened #13225 about the error handling. -- assignee: tarek - eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12416 ___

[issue12619] Automatically regenerate platform-specific modules

2011-10-19 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com 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,

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

2011-10-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

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

2011-10-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

[issue12619] Automatically regenerate platform-specific modules

2011-10-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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

[issue13225] Failing packaging hooks should not stop operation

2011-10-19 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk 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

[issue12619] Automatically regenerate platform-specific modules

2011-10-19 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de 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

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

2011-10-19 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

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

2011-10-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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 pit...@free.fr added the comment: If they don't hurt, why remove them? Bogus constants don't hurt? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12619 ___

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

2011-10-19 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13121 ___

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

2011-10-19 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +brian.curtin, mhammond ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1602 ___ ___

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

2011-10-19 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com 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.

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

2011-10-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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

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

2011-10-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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. --

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

2011-10-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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 devn...@psf.upfronthosting.co.za 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

[issue11931] Regular expression documentation patch

2011-10-19 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com 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

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

2011-10-19 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

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

2011-10-19 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: Thanks for the report. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12668 ___

[issue12619] Automatically regenerate platform-specific modules

2011-10-19 Thread Jakub Wilk
Jakub Wilk jw...@jwilk.net 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 rep...@bugs.python.org

  1   2   >