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

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

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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

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

[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

[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

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

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

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

[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

[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

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

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

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

[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

[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

[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

[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

[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

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

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

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

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

[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

[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

[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

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

[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

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

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

[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

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

[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

[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

[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

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

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

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

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

[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

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

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

[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

[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

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

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

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

[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

[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

[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

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

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

[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

[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

[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

[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

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

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

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

[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

[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

[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

[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

[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

[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

[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

[issue4631] urlopen returns extra, spurious bytes

2009-02-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a patch without the _checkClosed() hack. The solution is simply to remove redundant _checkClosed() calls in IOBase (for example, readline() doesn't need to do an explicit `closed` check as it calls read()). Added file: http://bugs.python.org/file13021/u

[issue4631] urlopen returns extra, spurious bytes

2009-02-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: I took a look at the patch and it looks ok, apart from the _checkClosed() hack (but I don't think there's any immediate solution). It should be noted that HTTPResponse.readline() will be awfully slow since, as HTTPResponse doesn't have peek(), readline() will ca

[issue3734] subclassing complex

2009-02-10 Thread Mark Dickinson
Mark Dickinson added the comment: So there's a hint about what's happening here at the bottom of the section http://docs.python.org/reference/datamodel.html#id5 of the docs, where it says: """In the current implementation, the built-in numeric types int, long and float do not use coercion; t

[issue5209] nntplib needs updating to RFC 3977

2009-02-10 Thread Travis Hassloch
Travis Hassloch added the comment: Attached is a difference which implements CAPABILITIES and MODE READER and leaves some TODO comments for other RFC 3977 commands. -- keywords: +patch Added file: http://bugs.python.org/file13020/nntplib.diff ___ Pyt

[issue722647] lower-level API for longs

2009-02-10 Thread Mark Dickinson
Mark Dickinson added the comment: Closing. -- resolution: -> rejected status: open -> closed ___ Python tracker ___ ___ Python-bugs

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

2009-02-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le mardi 10 février 2009 à 21:18 +, Antoine Pitrou a écrit : > Note: a 64-bit build shows an even greater allocation unit: > > >>> class C(object): > ...__slots__ = ('x') > ... > >>> l = [C() for i in range(20)] > >>> [id(l[i+1]) - id(l[i]) for i in ra

[issue1732212] repr of 'nan' floats not parseable

2009-02-10 Thread Martin v. Löwis
Changes by Martin v. Löwis : -- resolution: -> rejected status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing

[issue5206] with context object for unittest assertRaises()

2009-02-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: Humph! The time machine strikes again. -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bu

[issue1732212] repr of 'nan' floats not parseable

2009-02-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: Recommend closing this. We like to have eval(repr(obj))==obj where possible but it is not a strict requirement. Am opposed to the two proposed solutions (float attributes or new literals). Mark's solution of defining nan=float('nan') whereever you care abo

[issue5200] unicode.normalize gives wrong result for some characters

2009-02-10 Thread Martin v. Löwis
Martin v. Löwis added the comment: > The same applies "Å" and "A", "Ä" and "A" and "Ö" and "O" > which also are also different letters as "Ø" and "O" are. Sure. And rightfully, they "Å" is *not* (I repeat: not) normalized as "A", under NFD: py> unicodedata.normalize("NFD", u"Å") u'A\u030a'

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

2009-02-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: Some tests on py3k (32-bit build): >>> l = [object() for i in range(20)] >>> [id(l[i+1]) - id(l[i]) for i in range(len(l)-1)] [16, -96, 104, 8, 8, 8, 8, 8, -749528, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8] >>> class C(object): ...__slots__ = () ... >>> l = [C() for i

[issue5202] wave.py cannot write wave files into a shell pipeline

2009-02-10 Thread David Jones
David Jones added the comment: On 10 Feb 2009, at 16:57, Guilherme Polo wrote: > > Guilherme Polo added the comment: > > Now, is there some problem if we remove the calls to the "tell" method > in _write_header ? See patch attached (tests are very welcome too). Yes __

[issue3694] Undetected error in _struct.pack_into

2009-02-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, a patch for 2.6 should be provided as well. Besides, PyExc_OverflowError is probably a better choice than PyExc_IndexError (but I'm not sure on this one). ___ Python tracker _

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

2009-02-10 Thread Mark Dickinson
Mark Dickinson added the comment: Some comments, while I remember: * the argument to _Py_HashPointer is not always divisible by 8. It's called to create hashes for various objects, including methodobjects; see the line: y = _Py_HashPointer((void*)(a->m_ml->ml_meth)); in meth_hash in

[issue5200] unicode.normalize gives wrong result for some characters

2009-02-10 Thread Peter Landgren
Peter Landgren added the comment: The same applies "Å" and "A", "Ä" and "A" and "Ö" and "O" which also are also different letters as "Ø" and "O" are. ("Ø" is the Danish version of "Ö" ) Maybe not in the unicode world but in treal life. That's why I'm a little confused. Will wait and see what

[issue722647] lower-level API for longs

2009-02-10 Thread Mark Dickinson
Mark Dickinson added the comment: I recommend closing this due to lack of interest/PEP/patch. 2.7 and 3.1 now have n.bit_length(), which matches Gregory's proposed n.bitwid(). I'm semi-interested in the bit-access methods n.bit(x) and n.bit(hi, lo), but not enough to write a PEP or patch rig

[issue5200] unicode.normalize gives wrong result for some characters

2009-02-10 Thread Martin v. Löwis
Martin v. Löwis added the comment: > Should not the Danish letter "Ø" be normalized as "O"? I get "Ø" for all > NFC/NFD/NFKC/NFKD > normalizations? I think you have a fundamental misunderstanding what a "decomposition" is. "Ø" should *not* be decomposed as "O", because clearly, "Ø" and "O" ar

[issue5200] unicode.normalize gives wrong result for some characters

2009-02-10 Thread Peter Landgren
Peter Landgren added the comment: Thanks for the fast response. I understand that python follows the unicode specification. I think the unicode standard is not correct in this case for the Swedish letters. I have asked unicode.org for an explanation. Should not the Danish letter "Ø" be no

  1   2   >