[issue13227] Option to make the lru_cache type specific

2011-10-19 Thread Nick Coghlan
Nick Coghlan added the comment: Looks good to me (although it took me longer than it should have to figure out why you didn't need to store the keyword argument names a second time) -- ___ Python tracker

[issue13227] Option to make the lru_cache type specific

2011-10-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: Nick, Ezio, and Victor, thanks for looking at the code. Here's an updated the patch: * optimization for fast globals() are now keyword-only arguments * now types the keyword values, not the key/values tuples * expanded tests * added the doc update

[issue13124] Add "Running a Build Slave" page to the devguide

2011-10-19 Thread Eric Snow
Changes by Eric Snow : Added file: http://bugs.python.org/file23479/devguide-buildbots-2.diff ___ Python tracker ___ ___ Python-bugs-list mail

[issue13230] test_resources fails

2011-10-19 Thread Ezio Melotti
Changes by Ezio Melotti : -- components: +Tests nosy: +alexis, eric.araujo, tarek stage: -> needs patch versions: +Python 3.3 ___ Python tracker ___

[issue13230] test_resources fails

2011-10-19 Thread Westley Martínez
New submission from Westley Martínez : After running the uber test on the latest build of python (./python -bb -E -Wd -m test -r -w -uall) I get one error: == ERROR: test_resources (packaging.tests.test_command_install_data.Ins

[issue4733] Add a "decode to declared encoding" version of urlopen to urllib

2011-10-19 Thread Senthil Kumaran
Senthil Kumaran added the comment: - page.encoding is a good idea. - page.decode_content sounds definitely better than page.decode which can be confusing as page is not a bytes object, but a file-like object. I am thinking if an attribute to urlopen would be better? Not exactly the mode like

[issue13124] Add "Running a Build Slave" page to the devguide

2011-10-19 Thread Eric Snow
Eric Snow added the comment: Per Ezio's and Stefan's feedback I cleaned things up a little: * consolidated on "Buildbot" * clarified the meaning of the "standard development toolchain" * % changed to $ * cleaned up the network ports section * removed a bunch of outdated/unnecessary info I did

[issue4733] Add a "decode to declared encoding" version of urlopen to urllib

2011-10-19 Thread Ezio Melotti
Ezio Melotti added the comment: page.decode_content() might be a better name, and would avoid confusion with the bytes.decode() method. -- ___ Python tracker ___ ___

[issue4733] Add a "decode to declared encoding" version of urlopen to urllib

2011-10-19 Thread Ezio Melotti
Ezio Melotti added the comment: > Christian Heimes wrote: > There is no generic and simple way to detect the encoding of a > remote site. Sometimes the encoding is mentioned in the HTTP header, > sometimes it's embedded in the section of the HTML document. FWIW for HTML pages the encodin

[issue12527] assertRaisesRegex doc'd with 'msg' arg, but it's not implemented?

2011-10-19 Thread Ezio Melotti
Ezio Melotti added the comment: OK, I will close the issue then. Thanks for the quick reply! -- stage: -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue12527] assertRaisesRegex doc'd with 'msg' arg, but it's not implemented?

2011-10-19 Thread Brian Jones
Brian Jones added the comment: I've just done a fresh hg pull and new build, and I can no longer reproduce the problem. Yay! -- ___ Python tracker ___ _

[issue13229] Add shutil.filter_walk

2011-10-19 Thread Nick Coghlan
New submission from Nick Coghlan : I needed a depth-limited, filtered search of a directory tree recently and came up with the following wrapper around os.walk that brings in a few niceties like glob-style filtering, depth limiting and symlink traversal that is safe from infinite loops. It als

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

2011-10-19 Thread Nick Coghlan
Nick Coghlan added the comment: I'm fine with people needing to drop down to the lower level lookup() API if they want the filtering functionality in Python code. For most purposes, constraining the expected codec input and output formats really isn't a major issue - we just need it in the co

[issue12527] assertRaisesRegex doc'd with 'msg' arg, but it's not implemented?

2011-10-19 Thread Ezio Melotti
Ezio Melotti added the comment: Brian, can you still reproduce this? I tried now with "Python 3.3.0a0 (default:bfbe144986d7, Oct 20 2011, 04:35:19)" and I can see the message (same output posted by Benjamin). If I run the test with python3.2 (i.e. "Python 3.2 (r32:88445, Mar 25 2011, 19:28:2

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

2011-10-19 Thread Víctor Terrón
Víctor Terrón added the comment: FWIU, only the name of the method, getAnswer, would be a HTML link in the "self.getAnswer()" line that pydoc should generate, while strong (highlighted) text would be used for instance attributes. I have written a patch for that, by checking for "self." matche

[issue13227] Option to make the lru_cache type specific

2011-10-19 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

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

2011-10-19 Thread Ezio Melotti
Ezio Melotti added the comment: I'm not sure adding a strict option is a good idea. HTMLParser got a strict argument and it's causing more problems than it solves. If another problem comes up later we would either have to change the behavior for strict and break code that by then is using s

[issue13227] Option to make the lru_cache type specific

2011-10-19 Thread Nick Coghlan
Nick Coghlan added the comment: Features looks good, but the current patch doesn't handle keyword arguments correctly (more details in the Reitveld review). -- nosy: +ncoghlan ___ Python tracker _

[issue4733] Add a "decode to declared encoding" version of urlopen to urllib

2011-10-19 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue13125] test_all_project_files() expected failure

2011-10-19 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue13228] Add "Quick Start" section to the devguide index

2011-10-19 Thread Ezio Melotti
New submission from Ezio Melotti : Attached patch adds to the index page a list of 5 steps necessary to set up Python and make a patch. These informations are currently scattered around a few pages and many contributors are already familiar with Mercurial and the process of creating patches,

[issue13222] Erroneous unclosed file warning

2011-10-19 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Indeed you were right. Thanks. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue13226] Expose RTLD_* constants in the posix module

2011-10-19 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

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

2011-10-19 Thread STINNER Victor
STINNER Victor added the comment: > I think it may even make sense to build the filtering > options into codecs.lookup() itself: > > def lookup(encoding, decoded_format=None, encoded_format=None): > info = _lookup(encoding) # The existing codec lookup algorithm > if ((decoded_for

[issue13227] Option to make the lru_cache type specific

2011-10-19 Thread STINNER Victor
STINNER Victor added the comment: The patch doesn't update the doc. You may also test type(square(3)). Except of these nits, the patch looks good. The typed option is an important feature, and your patch contains a good example of its usage (the re module). -- nosy: +haypo _

[issue12989] Consistently handle path separator in Py_GetPath on Windows

2011-10-19 Thread Mark Hammond
Mark Hammond added the comment: The first chunk of that patch is for when pythonhome==NULL. There is also a similar block just under it when MS_WINDOWS is not defined. While I don't know in which cases this will be built without that define, it looks as though the *buf++ = DELIM; should als

[issue12296] Minor clarification in devguide

2011-10-19 Thread Ezio Melotti
Ezio Melotti added the comment: I don't think we need to mention that. Actually the tone of the whole paragraph could be relaxed a bit, because it first says that "any change **will** break code" (which is not true), except "new semantic, obviously" (which is not true either). The whole sen

[issue12619] Automatically regenerate platform-specific modules

2011-10-19 Thread STINNER Victor
STINNER Victor added the comment: > FYI, in Debian we have at least: > one package using the CDROM module, Is it cdsuite? (http://offog.org/code/cdsuite.html) > 3 packages using the IN module, I found policykit (it uses IN.INT_MAX). What are the 2 others? Which constants are used? > 14 pack

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

2011-10-19 Thread Nick Coghlan
Nick Coghlan added the comment: On Thu, Oct 20, 2011 at 8:34 AM, STINNER Victor wrote: >> str.transform('bz2') ==> CodecLookupError > > A lookup error is surprising here. It may be a TypeError instead. The bz2 can > be used with .transform, but not on str. So: No, it's the same concept as the

[issue13227] Option to make the lru_cache type specific

2011-10-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: Updated patch to include tests and an application to the re module. -- Added file: http://bugs.python.org/file23475/typed_lru2.diff ___ Python tracker _

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

2011-10-19 Thread Ezio Melotti
Ezio Melotti added the comment: Here's a patch against 2.7. I rephrased the section a bit. If it's more understandable I'll commit it. -- assignee: docs@python -> ezio.melotti keywords: +patch nosy: +ezio.melotti stage: -> commit review versions: +Python 3.2, Python 3.3 Added file:

[issue13150] Most of Python's startup time is sysconfig

2011-10-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 677e625e2ef1 by Victor Stinner in branch 'default': Issue #13150: Add a comment in _sysconfigdata to explain the origin of this file http://hg.python.org/cpython/rev/677e625e2ef1 -- ___ Python tracker <

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

2011-10-19 Thread STINNER Victor
STINNER Victor added the comment: > *.encode('rot_13') ==> CodecLookupError I like the idea of raising a lookup error on .encode/.decode if the codec is not a classic text codec (like ASCII or UTF-8). > *.transform('ascii') ==> CodecLookupError Same comment. > str.transform('bz2') ==> Codec

[issue12619] Automatically regenerate platform-specific modules

2011-10-19 Thread STINNER Victor
STINNER Victor added the comment: > > There are differents examples: > > - LONG_MAX is 9223372036854775807 even on 32 bits system > > - On Mac OS X, FAT programs contains 32 and 64 binaries, whereas > > constants are changed for 32 or 64 bits > > That's because the h2py.py script doesn't kno

[issue13226] Expose RTLD_* constants in the posix module

2011-10-19 Thread Jakub Wilk
Changes by Jakub Wilk : -- nosy: +jwilk ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

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

2011-10-19 Thread Nick Coghlan
Nick Coghlan added the comment: Oops, typo in my second error example. The command should be: b'a'.decode('rot_13') (Since str objects don't offer a decode() method any more) -- ___ Python tracker _

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

2011-10-19 Thread Nick Coghlan
Nick Coghlan added the comment: Some further comments after getting back up to speed with the actual status of this problem (i.e. that we had issues with the error checking and reporting in the original 3.2 commit). 1. I agree with the position that the codecs module itself is intended to be

[issue13146] Writing a pyc file is not atomic

2011-10-19 Thread Brett Cannon
Brett Cannon added the comment: And thanks for doing this, Antoine! One less thing on my never-ending todo list. =) On Mon, Oct 17, 2011 at 10:35, Antoine Pitrou wrote: > > Antoine Pitrou added the comment: > > Should be fixed now. Thanks for the reviews! > > -- > resolution:  -> fixe

[issue12619] Automatically regenerate platform-specific modules

2011-10-19 Thread STINNER Victor
STINNER Victor added the comment: I created the issue #13226 to provide RTLD_* constants on all platforms (not only on Linux and sunos5). -- ___ Python tracker ___

[issue13227] Option to make the lru_cache type specific

2011-10-19 Thread Raymond Hettinger
New submission from Raymond Hettinger : Based on a comment from Andrew Koenig, it is suggested that the lru_cache() offer an option to become type specific so that equal objects of different typed don't get cached to the same entry. Here's an example: @lru_cache(typed=True) def square(x):

[issue13226] Expose RTLD_* constants in the posix module

2011-10-19 Thread STINNER Victor
New submission from STINNER Victor : We have a sys.setdlopenflags() function, but required constants are not available on all platforms. The DLFCN is only available on Linux and sunos5 (is plat-sunos5 available for all Solaris and OpenIndiana versions?), but not on OpenBSD, FreBSD, Mac OS X, .

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

2011-10-19 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +jnoller stage: -> test needed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

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

2011-10-19 Thread Ezio Melotti
Ezio Melotti added the comment: > I installed Python 3.2 first and then 2.7 This probably made 2.7 the default Python. > I tried to open a .py file that's written with 3.2, > but it were opened with the 2.7 IDLE. So this is normal. > So I uninstalled 2.7 and tried to open it again. > Now the c

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

2011-10-19 Thread Ned Deily
Ned Deily added the comment: This sounds like an issue with Windows installation rather than an IDLE issue. -- components: +Installation, Windows -IDLE nosy: +brian.curtin, loewis, ned.deily, tim.golden ___ Python tracker

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

2011-10-19 Thread Ezio Melotti
Changes by Ezio Melotti : -- keywords: +easy nosy: +ezio.melotti stage: -> test needed ___ Python tracker ___ ___ Python-bugs-list ma

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

2011-10-19 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti, gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

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

2011-10-19 Thread Paul Moore
Paul Moore added the comment: Yes, working correctly now -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[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

[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

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

[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

[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

[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

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

[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

[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

[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 Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +brian.curtin, mhammond ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[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

[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

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

[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

[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

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

[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

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

[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

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

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

[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

[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

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

[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

[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

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

[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

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

[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

[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

[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

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

[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

[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

[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

[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

[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

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

[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

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

[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

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

[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
Changes by Petri Lehtinen : Removed file: http://bugs.python.org/file23464/issue12170_v2.patch ___ Python tracker ___ ___ Python-bugs-list mai

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

[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

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

  1   2   >