[issue12619] Automatically regenerate platform-specific modules

2011-10-19 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: STINNER Victor wrote: 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? No. There are differents examples: -

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

2011-10-19 Thread Paul Moore
Paul Moore p.f.mo...@gmail.com added the comment: Yes, working correctly now -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13181 ___ ___

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

2011-10-19 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti, gvanrossum ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13224 ___ ___

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

2011-10-19 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- keywords: +easy nosy: +ezio.melotti stage: - test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13223 ___

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

2011-10-19 Thread Ned Deily
Ned Deily n...@acm.org 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

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

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

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

2011-10-19 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +jnoller stage: - test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13220 ___

[issue13226] Expose RTLD_* constants in the posix module

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

[issue13227] Option to make the lru_cache type specific

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

[issue12619] Automatically regenerate platform-specific modules

2011-10-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I created the issue #13226 to provide RTLD_* constants on all platforms (not only on Linux and sunos5). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12619

[issue13146] Writing a pyc file is not atomic

2011-10-19 Thread Brett Cannon
Brett Cannon br...@python.org 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 rep...@bugs.python.org wrote: Antoine Pitrou pit...@free.fr added the comment: Should be fixed now. Thanks for

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

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

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

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

[issue13226] Expose RTLD_* constants in the posix module

2011-10-19 Thread Jakub Wilk
Changes by Jakub Wilk jw...@jwilk.net: -- nosy: +jwilk ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13226 ___ ___ Python-bugs-list mailing list

[issue12619] Automatically regenerate platform-specific modules

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

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

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

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

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

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

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

[issue13227] Option to make the lru_cache type specific

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

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

2011-10-19 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: On Thu, Oct 20, 2011 at 8:34 AM, STINNER Victor rep...@bugs.python.org 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.

[issue12619] Automatically regenerate platform-specific modules

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

[issue12296] Minor clarification in devguide

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

[issue12989] Consistently handle path separator in Py_GetPath on Windows

2011-10-19 Thread Mark Hammond
Mark Hammond skippy.hamm...@gmail.com 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

[issue13227] Option to make the lru_cache type specific

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

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

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

[issue13226] Expose RTLD_* constants in the posix module

2011-10-19 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13226 ___

[issue13222] Erroneous unclosed file warning

2011-10-19 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Indeed you were right. Thanks. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13222 ___

[issue13228] Add Quick Start section to the devguide index

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

[issue13125] test_all_project_files() expected failure

2011-10-19 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13125 ___ ___

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

2011-10-19 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti -BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4733 ___ ___

[issue13227] Option to make the lru_cache type specific

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

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

[issue13227] Option to make the lru_cache type specific

2011-10-19 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13227 ___

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

2011-10-19 Thread Víctor Terrón
Víctor Terrón quinta...@gmail.com 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

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

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

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

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

[issue13229] Add shutil.filter_walk

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

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

2011-10-19 Thread Brian Jones
Brian Jones bkjo...@gmail.com 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 rep...@bugs.python.org http://bugs.python.org/issue12527

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

2011-10-19 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: OK, I will close the issue then. Thanks for the quick reply! -- stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12527

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

2011-10-19 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com 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 head section of the HTML document. FWIW for

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

2011-10-19 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: page.decode_content() might be a better name, and would avoid confusion with the bytes.decode() method. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4733

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

2011-10-19 Thread Eric Snow
Eric Snow ericsnowcurren...@gmail.com 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

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

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

[issue13230] test_resources fails

2011-10-19 Thread Westley Martínez
New submission from Westley Martínez aniko...@gmail.com: 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

[issue13230] test_resources fails

2011-10-19 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- components: +Tests nosy: +alexis, eric.araujo, tarek stage: - needs patch versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13230

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

2011-10-19 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: Added file: http://bugs.python.org/file23479/devguide-buildbots-2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13124 ___

[issue13227] Option to make the lru_cache type specific

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

[issue13227] Option to make the lru_cache type specific

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

<    1   2