[issue5211] Fix complex type to avoid coercion in 2.7.

2009-02-10 Thread Mark Dickinson
New submission from Mark Dickinson : In the 'coercion rules' section of the reference manual, at: http://docs.python.org/dev/reference/datamodel.html#id5 it says: """Over time, the type complex may be fixed to avoid coercion.""" In 3.x, the complex type has (necessarily) been fixed to avoid c

[issue4947] sys.stdout fails to use default encoding as advertised

2009-02-10 Thread sorin
Changes by sorin : -- nosy: +sorin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailma

[issue3734] subclassing complex

2009-02-10 Thread Mark Dickinson
Mark Dickinson added the comment: I think this issue comes down to a doc fix, though I've opened issue 5211 for anyone who fancies having a go at removing coercion from the complex type. Here's a doc patch. -- assignee: marketdickinson -> georg.brandl keywords: +patch nosy: +georg.br

[issue3734] subclassing complex

2009-02-10 Thread Blair
Blair added the comment: While Mark Dickinson's patch fixes the documentation, it does not offer a solution to the original problem, which was rooted in a need to provide special behaviour based on the numeric types. I made the original posting because I hoped that this problem could be resol

[issue4631] urlopen returns extra, spurious bytes

2009-02-10 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: -> accepted status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue5212] Incorrect note about md5 in hmac module documentation

2009-02-10 Thread .:. brainsik
New submission from .:. brainsik : The HMAC module page [1] says: Note: The md5 hash has known weaknesses but remains the default for backwards compatibility. Choose a better one for your application. However, according to the "Hash Collision Q&A" [2] linked to from the hashlib module [3], md5

[issue5212] Incorrect note about md5 in hmac module documentation

2009-02-10 Thread .:. brainsik
.:. brainsik added the comment: Bruce Schneier also says (regarding the SHA-1 collision attacks), "it doesn't affect applications such as HMAC where collisions aren't important": http://www.schneier.com/blog/archives/2005/02/sha1_broken.html ___ Python track

[issue4631] urlopen returns extra, spurious bytes

2009-02-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed in r69513, r69514. Thanks everyone! -- resolution: accepted -> fixed status: pending -> closed ___ Python tracker ___

[issue616247] More documentation for the imp module

2009-02-10 Thread Daniel Diniz
Changes by Daniel Diniz : -- assignee: jvr -> brett.cannon nosy: +brett.cannon versions: +Python 2.7, Python 3.1 -Python 2.6, Python 3.0 ___ Python tracker ___ _

[issue5094] datetime lacks concrete tzinfo impl. for UTC

2009-02-10 Thread Rafe Kaplan
Changes by Rafe Kaplan : -- keywords: +patch Added file: http://bugs.python.org/file13023/datetime-utc.patch ___ Python tracker ___ ___

[issue1533164] Installed but not listed *.pyo break bdist_rpm

2009-02-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: Indeed, this is a well-known issue. Many packages put an "optimize=1" in their setup.cfg in order to solve it. -- assignee: -> tarek nosy: +pitrou, tarek type: -> behavior versions: +Python 2.6, Python 2.7, Python 3.0, Python 3.1 -Python 2.4, Python

[issue689895] Imports can deadlock

2009-02-10 Thread Daniel Diniz
Changes by Daniel Diniz : -- assignee: -> brett.cannon nosy: +brett.cannon type: -> behavior ___ Python tracker ___ ___ Python-bugs

[issue787113] zipimport on meta_path fails with mutual importers

2009-02-10 Thread Daniel Diniz
Changes by Daniel Diniz : -- assignee: jvr -> brett.cannon nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue809254] imp.find_module doesn't work in /tmp

2009-02-10 Thread Daniel Diniz
Changes by Daniel Diniz : -- assignee: -> brett.cannon nosy: +brett.cannon type: -> behavior ___ Python tracker ___ ___ Python-bugs

[issue828743] bdist_rpm failure when no setup.py

2009-02-10 Thread Daniel Diniz
Changes by Daniel Diniz : -- assignee: -> tarek nosy: +tarek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue828450] sdist generates bad MANIFEST on Windows

2009-02-10 Thread Daniel Diniz
Changes by Daniel Diniz : -- assignee: -> tarek nosy: +tarek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue856103] reload() fails with modules from zips

2009-02-10 Thread Daniel Diniz
Changes by Daniel Diniz : -- assignee: -> brett.cannon nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue965206] importing dynamic modules via embedded python

2009-02-10 Thread Daniel Diniz
Changes by Daniel Diniz : -- assignee: -> brett.cannon nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue966431] import x.y inside of module x.y

2009-02-10 Thread Daniel Diniz
Changes by Daniel Diniz : -- assignee: -> brett.cannon nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue992389] attribute error after non-from import

2009-02-10 Thread Daniel Diniz
Changes by Daniel Diniz : -- assignee: -> brett.cannon nosy: +brett.cannon versions: +Python 2.7, Python 3.1 -Python 2.3 ___ Python tracker ___

[issue993766] bdist_dumb and --relative on Windows fails

2009-02-10 Thread Daniel Diniz
Changes by Daniel Diniz : -- assignee: -> tarek nosy: +tarek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1011113] distutils install with -b / --build-base

2009-02-10 Thread Daniel Diniz
Changes by Daniel Diniz : -- assignee: -> tarek nosy: +tarek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1059244] distutil bdist hardcodes the python location

2009-02-10 Thread Daniel Diniz
Changes by Daniel Diniz : -- assignee: -> tarek components: +Distutils -None nosy: +tarek ___ Python tracker ___ ___ Python-bugs-li

[issue1109602] Need some setup.py sanity

2009-02-10 Thread Daniel Diniz
Changes by Daniel Diniz : -- assignee: -> tarek nosy: +tarek type: -> feature request ___ Python tracker ___ ___ Python-bugs-list

[issue1109658] distutils dry-run breaks when attempting to bytecompile

2009-02-10 Thread Daniel Diniz
Changes by Daniel Diniz : -- assignee: -> tarek nosy: +tarek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1109963] bdist_wininst ignores build_lib from build command

2009-02-10 Thread Daniel Diniz
Changes by Daniel Diniz : -- assignee: -> tarek nosy: +tarek versions: +Python 2.7 -Python 2.4, Python 2.5 ___ Python tracker ___ _

[issue1214675] module warnings lacks a remove filter function

2009-02-10 Thread Daniel Diniz
Changes by Daniel Diniz : -- assignee: -> brett.cannon nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue1419652] PyImport_AppendInittab stores pointer to parameter

2009-02-10 Thread Daniel Diniz
Changes by Daniel Diniz : -- assignee: loewis -> brett.cannon nosy: +brett.cannon versions: +Python 2.7 -Python 2.4 ___ Python tracker ___ _

[issue1220756] Re-importing embedded thread dumps core

2009-02-10 Thread Daniel Diniz
Changes by Daniel Diniz : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue701743] Reloading pseudo modules

2009-02-10 Thread Daniel Diniz
Changes by Daniel Diniz : -- assignee: -> brett.cannon nosy: +brett.cannon type: -> feature request versions: +Python 2.6, Python 2.7 -Python 2.3 ___ Python tracker ___ __

[issue5094] datetime lacks concrete tzinfo impl. for UTC

2009-02-10 Thread Brett Cannon
Changes by Brett Cannon : -- stage: test needed -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue779191] BasicModuleLoader behaviour in Python 2.3c2

2009-02-10 Thread Daniel Diniz
Changes by Daniel Diniz : -- assignee: -> brett.cannon nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue4347] Circular dependency causes SystemError when adding new syntax

2009-02-10 Thread Brett Cannon
Changes by Brett Cannon : -- priority: -> normal stage: patch review -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailin

[issue1044382] Can't raise "C API version mismatch" warning

2009-02-10 Thread Daniel Diniz
Changes by Daniel Diniz : -- assignee: -> brett.cannon nosy: +brett.cannon type: -> behavior ___ Python tracker ___ ___ Python-bug

[issue1074015] current directory in sys.path handles symlinks badly

2009-02-10 Thread Daniel Diniz
Changes by Daniel Diniz : -- assignee: -> brett.cannon components: +Interpreter Core -None nosy: +brett.cannon ___ Python tracker ___ _

[issue1161031] Neverending warnings from asyncore

2009-02-10 Thread Daniel Diniz
Changes by Daniel Diniz : -- nosy: +brett.cannon type: -> behavior versions: +Python 2.6 -Python 2.4 ___ Python tracker ___ ___ Pyt

[issue1507224] sys.path issue if sys.prefix contains a colon

2009-02-10 Thread Daniel Diniz
Changes by Daniel Diniz : -- assignee: -> brett.cannon nosy: +brett.cannon type: -> behavior versions: +Python 2.6 -Python 2.5 ___ Python tracker ___

[issue1525549] Document additions from PEP 302

2009-02-10 Thread Daniel Diniz
Changes by Daniel Diniz : -- assignee: -> brett.cannon nosy: +brett.cannon versions: +Python 2.6, Python 3.0 -Python 2.5 ___ Python tracker ___ ___

[issue1514734] site.py can break the location of the python library

2009-02-10 Thread Daniel Diniz
Changes by Daniel Diniz : -- assignee: -> brett.cannon nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue2775] Implement PEP 3108

2009-02-10 Thread Brett Cannon
Changes by Brett Cannon : -- stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue1534764] sys.path gets munged with certain directory structures

2009-02-10 Thread Daniel Diniz
Changes by Daniel Diniz : -- assignee: -> brett.cannon nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue1538778] pyo's are not overwritten by different optimization levels

2009-02-10 Thread Daniel Diniz
Changes by Daniel Diniz : -- assignee: -> brett.cannon nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue1539925] warnings in interactive sessions

2009-02-10 Thread Daniel Diniz
Changes by Daniel Diniz : -- assignee: -> brett.cannon nosy: +brett.cannon type: -> feature request ___ Python tracker ___ ___ Pyt

[issue1548371] filterwarnings('error') has no effect

2009-02-10 Thread Daniel Diniz
Changes by Daniel Diniz : -- assignee: -> brett.cannon components: +Library (Lib) -None nosy: +brett.cannon type: -> behavior versions: +Python 2.6 -Python 2.5 ___ Python tracker ___

[issue1548687] C modules reloaded on certain failed imports

2009-02-10 Thread Daniel Diniz
Changes by Daniel Diniz : -- assignee: -> brett.cannon nosy: +brett.cannon versions: +Python 2.6 -Python 2.5 ___ Python tracker ___ ___

[issue1590864] import deadlocks when using PyObjC threads

2009-02-10 Thread Daniel Diniz
Changes by Daniel Diniz : -- assignee: -> brett.cannon nosy: +brett.cannon versions: +Python 2.6 -Python 2.5 ___ Python tracker ___ ___

[issue1635217] Add example of distutils setup() with "requires" argument

2009-02-10 Thread Daniel Diniz
Changes by Daniel Diniz : -- assignee: -> tarek nosy: +tarek type: -> feature request versions: +Python 2.6 -Python 2.5 ___ Python tracker ___ ___

[issue1644818] Allow importing built-in submodules

2009-02-10 Thread Daniel Diniz
Changes by Daniel Diniz : -- assignee: -> brett.cannon nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue1562822] decimal module borks thread

2009-02-10 Thread Daniel Diniz
Changes by Daniel Diniz : -- assignee: -> brett.cannon nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue1552880] Unicode Imports

2009-02-10 Thread Daniel Diniz
Changes by Daniel Diniz : -- assignee: -> brett.cannon nosy: +brett.cannon, ezio.melotti ___ Python tracker ___ ___ Python-bugs-lis

[issue616247] More documentation for the imp module

2009-02-10 Thread Brett Cannon
Changes by Brett Cannon : -- stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue2227] time.strptime too strict? should it assume current year?

2009-02-10 Thread Brett Cannon
Changes by Brett Cannon : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue4011] Create DAG for PEP 101

2009-02-10 Thread Brett Cannon
Changes by Brett Cannon : -- stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue5186] Reduce hash collisions for objects with no __hash__ method

2009-02-10 Thread Adam Olsen
Adam Olsen added the comment: On my 64-bit linux box there's nothing in the last 4 bits: >>> [id(o)%16 for o in [object() for i in range(128)]] [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,

[issue5186] Reduce hash collisions for objects with no __hash__ method

2009-02-10 Thread Adam Olsen
Adam Olsen added the comment: Upon further inspection, although a shift of 4 (on a 64-bit linux box) isn't perfect for dict, it's fairly close to it and well beyond random hash values. Mixing things more is just gonna lower it towards random values. >>> c() 2: 1, 1, 1, 2, 2, 1,

[issue5213] _resolve_name in importlib/__init__.py left an index on rindex usage

2009-02-10 Thread Guilherme Polo
New submission from Guilherme Polo : I guess this happened due to the transition from rsplit to rindex. -- assignee: brett.cannon components: Library (Lib) files: _resolve_name_rindex.diff keywords: easy, patch messages: 81621 nosy: brett.cannon, gpolo severity: normal status: open title

[issue3844] Script: find untested C functions

2009-02-10 Thread Daniel Diniz
Daniel Diniz added the comment: Closing: resource available externally ( http://bazaar.launchpad.net/~ajaksu/ccoverage/trunk/files ) -- resolution: -> invalid status: open -> closed ___ Python tracker

[issue5204] test.os/TestInvalidFD/test_fdopen on VC6

2009-02-10 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Thanks, committed in r69516. -- resolution: accepted -> fixed status: open -> closed ___ Python tracker ___ _

[issue1665206] Hangup when using cgitb in a thread while still in import

2009-02-10 Thread Daniel Diniz
Changes by Daniel Diniz : -- assignee: -> brett.cannon nosy: +brett.cannon versions: +Python 2.6 -Python 2.4 ___ Python tracker ___ ___

[issue1175686] add "reload" function to IDLE

2009-02-10 Thread Daniel Diniz
Daniel Diniz added the comment: It seems discussion in issue 1721083 is more advanced... should this one be closed? :) ___ Python tracker ___ __

[issue1299] distutils.sysconfig is not cross-platform compatible

2009-02-10 Thread Daniel Diniz
Changes by Daniel Diniz : -- assignee: -> tarek components: +Distutils -Windows nosy: +tarek ___ Python tracker ___ ___ Python-bugs-li

[issue2100] unit test UnicodeWarning

2009-02-10 Thread Daniel Diniz
Changes by Daniel Diniz : -- nosy: +brett.cannon, ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue5186] Reduce hash collisions for objects with no __hash__ method

2009-02-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: Instead of a shift, how about a rotate or byteswap in case the lower bits ever become significant again in some build. ___ Python tracker ___

[issue2308] Make structseq more like collections.namedtuple

2009-02-10 Thread Daniel Diniz
Daniel Diniz added the comment: Closing as a duplicate of issue 1820. -- nosy: +ajaksu2, rhettinger resolution: -> duplicate status: open -> closed superseder: -> Enhance Object/structseq.c to match namedtuple and tuple api ___ Python tracker

[issue2437] Distutils runtime_library_dirs broken on Windows

2009-02-10 Thread Daniel Diniz
Changes by Daniel Diniz : -- assignee: -> tarek nosy: +tarek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue2454] sha and md5 fixer

2009-02-10 Thread Daniel Diniz
Changes by Daniel Diniz : -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue2412] Check 2to3 for support of print function.

2009-02-10 Thread Daniel Diniz
Changes by Daniel Diniz : -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue2953] _zip_directory_cache untested and undocumented

2009-02-10 Thread Daniel Diniz
Changes by Daniel Diniz : -- nosy: +tarek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue2805] 2to3 doesn't correct divisions

2009-02-10 Thread Daniel Diniz
Changes by Daniel Diniz : -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue1820] Enhance Object/structseq.c to match namedtuple and tuple api

2009-02-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: See also issue 2308 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue2972] arguments and default path not set in site.py and sitecustomize.py

2009-02-10 Thread Daniel Diniz
Changes by Daniel Diniz : -- assignee: -> brett.cannon nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue3099] On windows, "import nul" always succeed

2009-02-10 Thread Daniel Diniz
Changes by Daniel Diniz : -- assignee: -> brett.cannon nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue3370] importing with_statement causes exec to raise syntax error on block that doesn't end with a newline

2009-02-10 Thread Daniel Diniz
Daniel Diniz added the comment: Closing: fixed in trunk, 2.5 won't be receiving bugfixes anymore. -- nosy: +ajaksu2 resolution: -> out of date status: open -> closed ___ Python tracker

[issue3444] add warnings for intra-package imports

2009-02-10 Thread Daniel Diniz
Changes by Daniel Diniz : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue2805] 2to3 doesn't correct divisions

2009-02-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: I thought the right way to handle this is with a -3 option. That's the only way to reliably detect the intended meaning of / and its change in meaning in 3.0. -- nosy: +rhettinger ___ Python tracker

[issue3619] A more informative message for ImportError

2009-02-10 Thread Daniel Diniz
Changes by Daniel Diniz : -- assignee: -> brett.cannon nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue5204] test.os/TestInvalidFD/test_fdopen on VC6

2009-02-10 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : -- stage: commit review -> committed/rejected ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue5214] Add KOI8-RU as a known encoding

2009-02-10 Thread Dwayne Bailey
New submission from Dwayne Bailey : >>> u = unicode("bob", "KOI8-RU") Traceback (most recent call last): File "", line 1, in LookupError: unknown encoding: KOI8-RU This could be broadened to see that we support all encodings that are supported by iconv. -- components: Unicode message

[issue1635363] Add command line help to windows unistall binary

2009-02-10 Thread Akira Kitada
Changes by Akira Kitada : -- assignee: -> tarek components: +Windows nosy: +tarek ___ Python tracker ___ ___ Python-bugs-list maili

[issue969718] BASECFLAGS are not passed to module build line

2009-02-10 Thread Akira Kitada
Changes by Akira Kitada : -- nosy: +tarek type: -> behavior versions: +Python 2.6, Python 2.7, Python 3.0, Python 3.1 -Python 2.4 ___ Python tracker ___ ___

[issue1648890] HP-UX: ld -Wl,+b...

2009-02-10 Thread Akira Kitada
Changes by Akira Kitada : -- nosy: +tarek type: -> behavior versions: +Python 2.6, Python 2.7, Python 3.0, Python 3.1 -Python 2.5 ___ Python tracker ___ __

[issue5215] change value of local variable in debug

2009-02-10 Thread mproeller
New submission from mproeller : The following code produces problems: import pdb def func(): b = 13 pdb.set_trace() a = b + 2 print a func() If I change the value of b (e.g. to 3) everything works fine (print a => displays 5) but if I want to change b (e.g. to 3)

<    1   2