[issue6816] Provide CPython command line functionality via runpy module

2009-11-19 Thread Chris Withers
Changes by Chris Withers ch...@simplistix.co.uk: -- nosy: -cjw296 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6816 ___ ___ Python-bugs-list

[issue1488943] difflib.Differ() doesn't always add hints for tab characters

2009-11-19 Thread Phillip Hellewell
Phillip Hellewell ssho...@gmail.com added the comment: Please apply the patch ASAP. This bug is affecting downstream product viewvc in a very adverse way. See http://viewvc.tigris.org/issues/show_bug.cgi?id=436 It's sad that I spent several hours tracking down this bug only to find out that

[issue7355] Struct incorrectly compiles format strings

2009-11-19 Thread Steve Krenzel
New submission from Steve Krenzel sgk...@gmail.com: The struct module has a calcsize() method which reports the size of the data for a specified format string. In some instances, to the best of my knowledge, this is wrong. To repro: from struct import calcsize calcsize(ci) 8 calcsize(ic) 5

[issue5862] multiprocessing 'using a remote manager' example errors and possible 'from_address' code leftover

2009-11-19 Thread Alexander Dutton
Changes by Alexander Dutton d...@alexdutton.co.uk: -- nosy: +alexdutton ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5862 ___ ___

[issue7355] Struct incorrectly compiles format strings

2009-11-19 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: It's a padding issue, having to do with putting values at the correct word boundaries. -- nosy: +eric.smith resolution: - invalid stage: - committed/rejected status: open - closed ___ Python tracker

[issue1859] textwrap doesn't linebreak on \n

2009-11-19 Thread Tom Lynn
Tom Lynn tl...@users.sourceforge.net added the comment: This bug should be re-opened, since there is definitely a bug here. I think the patch was incorrectly rejected. If I can expand palfrey's example: from textwrap import * T = TextWrapper(replace_whitespace=False, width=75) text = '''\

[issue7353] Why was Include/intobject.h removed in 3.1?

2009-11-19 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: However, that header file was removed in this commit: http://svn.python.org/view?view=revrevision=71697 Hmm. That was me. with this message: Issue #4910: PyNumber_Int is deprecated in 3.0.1; will be removed in 3.1. That's the

[issue7353] Why was Include/intobject.h removed in 3.1?

2009-11-19 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: I didn't mean to assign this to Georg. Apologies. -- assignee: georg.brandl - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7353 ___

[issue6454] Add example keyword argument to optparse constructor

2009-11-19 Thread Marcin Kasperski
Marcin Kasperski marcin.kasper...@mekk.waw.pl added the comment: I found this bug while looking for suggestions how to add examples to the optparse help call, but I feel there is a better and more general solution - just provide some minimal formatting for description: treat empty line as

[issue7351] Documentation typos found in zipfile — Work with ZIP archives

2009-11-19 Thread Retro
Retro vinet...@gmail.com added the comment: I suggest renaming the class from BadZipfile to BadZipFile. We have a class named LargeZipFile. It would make sence to have the previously mentioned class named as BadZipFile then. What is your verdict on that? --

[issue7355] Struct incorrectly compiles format strings

2009-11-19 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: What Eric said. You can see the padding explicitly in the results of struct.pack: struct.pack(ci, '*', 0x12131415) # 8-byte result, 3 padding bytes '*\x00\x00\x00\x15\x14\x13\x12' struct.pack(ic, 0x12131415, '*') # 5-byte result, no

[issue7356] parsing of ldconfig output in ctypes/utils.py depends on the locale

2009-11-19 Thread Matthias Klose
New submission from Matthias Klose d...@debian.org: % /sbin/ldconfig -p | grep GL libGLU.so.1 (libc6) = /usr/lib/libGLU.so.1 libGLEW.so.1.5 (libc6) = /usr/lib/libGLEW.so.1.5 libGL.so.1 (libc6, Système d'exploitation ABI : Linux 2.4.20) = /usr/lib/libGL.so.1 the regexp fails to parse

[issue5833] readline update

2009-11-19 Thread Matthias Klose
Matthias Klose d...@debian.org added the comment: msg94560 should read backported to the 2.6 branch. can we close the report? -- nosy: +doko ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5833

[issue7351] Documentation typos found in zipfile — Work with ZIP archives

2009-11-19 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: The old name could be deprecated and replaced by the right one, but as Eric Smith mentioned on #python-dev, the class with the old name can't be removed because - even if unlikely - the object might exist in a pickle. So we can either live

[issue7353] cporting docs recommend using Include/intobject.h, which was removed in 3.1?

2009-11-19 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: You didn't. Doc bugs are automatically assigned to Georg by the tracker. -- nosy: +r.david.murray priority: - normal stage: - needs patch title: Why was Include/intobject.h removed in 3.1? - cporting docs recommend using

[issue7353] cporting docs recommend using Include/intobject.h, which was removed in 3.1?

2009-11-19 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: -r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7353 ___ ___

[issue5833] readline update

2009-11-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Can we close the report? Well there's something else in the original patch, although I don't care about it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5833

[issue7355] Struct incorrectly compiles format strings

2009-11-19 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Reopening for possible doc clarification. Suggestions welcome! -- assignee: - mark.dickinson components: +Documentation, Extension Modules -Library (Lib) keywords: +easy priority: - low resolution: invalid - stage:

[issue7357] tarfile doesn't detect disk full error on extraction

2009-11-19 Thread Eli Venter
New submission from Eli Venter even...@jcvi.org: tarfile doesn't seem to return any error or raise any exception when an extraction fills up the disk, making it hard to use safely. Both extractall and extract suffer from this problem. I'm using CentOS 5.2 and python 2.6.2. --

[issue7358] cPickle crash on failed assertion

2009-11-19 Thread Ryan Shaw
New submission from Ryan Shaw ryan.s...@stanfordalumni.org: def save_object(r, key, m): r.set(key, cPickle.dumps(m)) [4] save_object(r, 'cluster', cluster) python: ./Modules/cStringIO.c:419: O_cwrite: Assertion `oself-pos + l 2147483647' failed. Aborted Linux 2.6.30.9-96.fc11.x86_64 #1

[issue1859] textwrap doesn't linebreak on \n

2009-11-19 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: I think the code originally wasn't meant to support this feature (honor embedded newlines when replace_whitespace=False). I'm thinking that we could add it though. Maybe Mark is interested in getting this into 2.7 and 3.2? I imagine it

[issue7358] cPickle crash on failed assertion

2009-11-19 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: What are the types and values of cluster and r? Can you reproduce this in a self-contained script? -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7358

[issue7351] Documentation typos found in zipfile — Work with ZIP archives

2009-11-19 Thread Retro
Retro vinet...@gmail.com added the comment: I am merely speaking of renaming the class name from BadZipfile to BadZipFile. class BadZipFile(exceptions.Exception): # etc. Only the name is fixed at class definition. I am aiming for that in this bug report. And then every other BadZipfile

[issue7359] mailbox cannot modify mailboxes in system mail spool

2009-11-19 Thread Matthias Klose
New submission from Matthias Klose d...@debian.org: no change in behaviour in 2.6 the mailbox module in python 2.5 cannot modify mboxes in read-only directories, e.g. the system mail spool. This is because mailbox._singlefileMailbox.flush() tries to write the modified mailbox to a temporary

[issue7360] [mailbox] race: mbox may lose data with concurrent access

2009-11-19 Thread Matthias Klose
New submission from Matthias Klose d...@debian.org: [forwarded from http://bugs.debian.org/451733] the mailbox._singlefileMailbox class is not safe with concurrent access, because mailbox._singlefileMailbox.flush() replaces the underlying file with a new copy by constructing a temporary file

[issue7360] [mailbox] race: mbox may lose data with concurrent access

2009-11-19 Thread Matthias Klose
Changes by Matthias Klose d...@debian.org: Added file: http://bugs.python.org/file15364/mailbox-race.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7360 ___

[issue7351] Documentation typos found in zipfile — Work with ZIP archives

2009-11-19 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: It might be doable for Python and its stdlib, but all the programs and modules that are using the old name will start raising errors if they don't find the old name anymore. If the old name is deprecated for at least one Python version (e.g.

[issue7357] tarfile doesn't detect disk full error on extraction

2009-11-19 Thread Lars Gustäbel
Lars Gustäbel l...@gustaebel.de added the comment: The TarFile constructor (as well as tarfile.open) takes an errorlevel keyword argument. See http://docs.python.org/dev/library/tarfile.html#tarfile-objects I quote: If errorlevel is 0, all errors are ignored when using TarFile.extract().

[issue5827] os.path.normpath doesn't preserve unicode

2009-11-19 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: assertTrue() also accepts a 'msg' argument where to explain what went wrong in case of failure [1]. [1]: http://docs.python.org/library/unittest.html#unittest.TestCase.assertTrue -- ___ Python

[issue7360] [mailbox] race: mbox may lose data with concurrent access

2009-11-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: the mailbox._singlefileMailbox class is not safe with concurrent access, because mailbox._singlefileMailbox.flush() replaces the underlying file with a new copy by constructing a temporary file and then renaming it. This breaks all other class

[issue3783] dbm.sqlite proof of concept

2009-11-19 Thread Runar Tenfjord
Runar Tenfjord runar.tenfj...@gmail.com added the comment: By utilizing triggers on inserts and deletes it is possible to keep track of the size and speed up __len__ by 10 x. SQL: CREATE TABLE IF NOT EXISTS info (key TEXT UNIQUE NOT NULL, value INTEGER NOT NULL); INSERT OR IGNORE INTO

[issue3783] dbm.sqlite proof of concept

2009-11-19 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- stage: - needs patch versions: +Python 3.2 -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3783 ___

[issue5827] os.path.normpath doesn't preserve unicode

2009-11-19 Thread Erik Carstensen
Erik Carstensen sandb...@virtutech.com added the comment: Also, assertTrue has an alias failUnless which I personally find more descriptive (I don't know if either form is preferred for inclusion in Python though). -- ___ Python tracker

[issue7360] [mailbox] race: mbox may lose data with concurrent access

2009-11-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Oops, sorry: I don't think this class aims at being safe against concurrent access, so having it fail loudly is a good thing. I now understand that the problem is that it doesn't fail loudly. That's what I get for replying too quickly. Still, I

[issue5827] os.path.normpath doesn't preserve unicode

2009-11-19 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: failUnless is deprecated in Python3.1 [1]. The assert* methods are preferred over the fail* ones that are now deprecated. [1]: http://docs.python.org/3.1/library/unittest.html#unittest.TestCase.failUnless --

[issue7360] [mailbox] race: mbox may lose data with concurrent access

2009-11-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Actually, the doc is quite clear about it: « Be very cautious when modifying mailboxes that might be simultaneously changed by some other process. The safest mailbox format to use for such tasks is Maildir; try to avoid using single-file formats

[issue5080] PyArg_Parse* should raise TypeError for float parsed with integer format

2009-11-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: +1 for a TypeError too. -- nosy: +pitrou priority: - normal stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5080 ___

[issue5080] PyArg_Parse* should raise TypeError for float parsed with integer format

2009-11-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/issue5080 ___ ___ Python-bugs-list

[issue7085] strptime problem

2009-11-19 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: I committed a fix in r76403 (trunk), r76404 (2.6), r76405 (3.2), 76406 (3.1) -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org

[issue7144] imp.load_module in thread causes core dump on OSX 10.6

2009-11-19 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: I've just committed a fix for this issue in all 4 active branches (2.6, 2.7, 3.1 and 3.2) -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org

[issue7356] parsing of ldconfig output in ctypes/utils.py depends on the locale

2009-11-19 Thread Thomas Heller
Thomas Heller thel...@ctypes.org added the comment: I'm curious: Which output do you get from: 'LANG=C /sbin/ldconfig -p | fgrep GL' -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7356

[issue7180] pydoc -k can generate AttributeError on Mac OS X

2009-11-19 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: The problem occurs in two occassions: 1) python was configured/built without the Carbon bindings (such as the copy that Apple ships) 2) python was build in 64-bit mode In both cases Carbon.File does not have an FSSpec type. Luckily

[issue7358] cPickle crash on failed assertion

2009-11-19 Thread Ryan Shaw
Ryan Shaw ryan.s...@stanfordalumni.org added the comment: r is the Redis python client. cluster is a large cluster tree along the lines of the cluster_node class found here: http://jesolem.blogspot.com/2009/04/hierarchical-clustering-in-python.html --

[issue7179] Unportable test(1) construct

2009-11-19 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: Fixed the postflight issue in r76407 (trunk), r76408 (2.6), r76409 (3.2) and r76410 (3.1). -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker

[issue7358] cPickle crash on failed assertion

2009-11-19 Thread Ryan Shaw
Ryan Shaw ryan.s...@stanfordalumni.org added the comment: I can't reproduce this in a self-contained script. Pickling a smaller cluster object and storing it in Redis works fine. The cluster object that caused the crash was large, a binary tree with 5000 leaves holding the results of a

[issue7351] Documentation typos found in zipfile — Work with ZIP archives

2009-11-19 Thread Retro
Retro vinet...@gmail.com added the comment: I made a patch which fixes the BadZipfile issue. Please take a look and decide whether you'll toss it or use it. Maybe it'll come handy some other time in the future. -- keywords: +patch Added file:

[issue7356] parsing of ldconfig output in ctypes/utils.py depends on the locale

2009-11-19 Thread Matthias Klose
Matthias Klose d...@debian.org added the comment: $ LANG=C /sbin/ldconfig -p | fgrep GL libGLU.so.1 (libc6) = /usr/lib/libGLU.so.1 libGLEW.so.1.5 (libc6) = /usr/lib/libGLEW.so.1.5 libGL.so.1 (libc6, OS ABI: Linux 2.4.20) = /usr/lib/libGL.so.1 --

[issue7117] Backport py3k float repr to trunk

2009-11-19 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Short float repr is now enabled in r76379. Misc/NEWS entries added/updated in r76411. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7117

[issue7355] Struct incorrectly compiles format strings

2009-11-19 Thread Steve Krenzel
Steve Krenzel sgk...@gmail.com added the comment: Just for clarification, why does ci get padded but ic doesn't? While I agree that updating the documentation would help clarify, perhaps either everything should be padded to word boundaries or nothing should. It is weird behavior that ic !=

[issue7355] Struct incorrectly compiles format strings

2009-11-19 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: It's basically because nothing comes after it. If you put something after it, such as a zero length integer, you'll see: from struct import calcsize calcsize(ci) 8 calcsize(ic) 5 calcsize(ic0i) 8 --

[issue7355] Struct incorrectly compiles format strings

2009-11-19 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Just for clarification, why does ci get padded but ic doesn't? Because no padding is necessary in the second case: both the integer and the character already start at a position that's a multiple of 4---the integer at position 0 and the

[issue7361] Strange importlib error during test_multiprocessing failure

2009-11-19 Thread R. David Murray
New submission from R. David Murray rdmur...@bitdance.com: One of the buildbots suffered a test_multiprocessing failure, which itself is not such an unusual thing. But the error that was subsequently thrown looks like it might point to a place where importlib's error handling could be improved.

[issue7355] Struct incorrectly compiles format strings

2009-11-19 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: I'm half-convinced that struct.pack *should* ideally add trailing padding in the same situation that C does, for consistency with C. Then calcsize would match C's sizeof. If you're writing or reading a struct from C, it's probably

[issue7356] parsing of ldconfig output in ctypes/utils.py depends on the locale

2009-11-19 Thread Thomas Heller
Thomas Heller thel...@ctypes.org added the comment: I assume the patch is fine, would you like to apply it? Thanks. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7356 ___

[issue444582] Finding programs in PATH, addition to os

2009-11-19 Thread Andy Buckley
Changes by Andy Buckley a...@insectnation.org: -- nosy: +andybuckley ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue444582 ___ ___ Python-bugs-list

[issue7362] Incorrect error message with def((x)=0)

2009-11-19 Thread James Lingard
New submission from James Lingard j...@aristanetworks.com: def f((x)=0): pass gives the following incorrect error message: SyntaxError: non-default argument follows default argument def f((x)): pass is treated exactly the same as def f(x): pass, so it would seem sensible for the same to be

[issue7362] Incorrect error message with def((x)=0)

2009-11-19 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Fixed in r76416. -- nosy: +benjamin.peterson resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7362

[issue7353] cporting docs recommend using Include/intobject.h, which was removed in 3.1?

2009-11-19 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Hmm, I wish intobject.h hadn't been removed so soon. I'm not really sure how a file of #defines could suffer bitrot. This point is probably moot, though because there's little point in having its presence skip a version. I suppose sticking

[issue7363] Inconsisten Indentation In SocketServer Docs

2009-11-19 Thread Yuv Gre
New submission from Yuv Gre ubershme...@gmail.com: A bit nitpicky but there are 3 spaces instead of 4 in the docs. This is relevant to py3k and trunk. http://docs.python.org/library/socketserver.html#socketserver-udpserver- example -- assignee: georg.brandl components: Documentation

[issue7364] Traceback contains incorrect line number for duplicate argument in lambda definition

2009-11-19 Thread James Lingard
New submission from James Lingard j...@aristanetworks.com: The following python file: lambda a, a: 0 when executed gives the following backtrace: File /tmp/test.py, line 0 SyntaxError: duplicate argument 'a' in function definition Note that the line number is 0, not 1. (It's always

[issue7364] Traceback contains incorrect line number for duplicate argument in lambda definition

2009-11-19 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Fixed in r76423. -- nosy: +benjamin.peterson resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7364

[issue7365] grp and pwd should treat uid and gid as unsigned

2009-11-19 Thread Ed Plese
New submission from Ed Plese e...@edplese.com: Both Linux and Solaris define uid_t and gid_t as unsigned integers. The pwd and grp modules cast these to signed long values that are then converted with PyInt_FromLong. For large values, greater than 2 ** 32 - 1, the result is correct when Python

[issue5683] Speed up cPickle's pickling generally

2009-11-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Are you still willing to work on this? -- versions: +Python 3.2 -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5683 ___

[issue7359] mailbox cannot modify mailboxes in system mail spool

2009-11-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The same remark as in issue7360, that is it is not robust at all to overwrite the file rather than doing an atomic rename from a temporary file. The only possible exception would be if you only /append/ to the mbox file (and that's assuming all

[issue7360] [mailbox] race: mbox may lose data with concurrent access

2009-11-19 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +akuchling ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7360 ___ ___ Python-bugs-list mailing

[issue6594] json C serializer performance tied to structure depth on some systems

2009-11-19 Thread Valentin Kuznetsov
Valentin Kuznetsov vkuz...@gmail.com added the comment: Hi, I just found this bug and would like to add my experience with performance of large JSON docs. I have a few JSON docs about 180MB in size which I read from data-services. I use python2.6, run on Linux, 64- bit node w/ 16GB of RAM and

[issue6594] json C serializer performance tied to structure depth on some systems

2009-11-19 Thread Bob Ippolito
Bob Ippolito b...@redivi.com added the comment: Did you try the trunk of simplejson? It doesn't work quite the same way as the current json module in Python 2.6+. Without the data or a tool to produce data that causes the problem, there isn't much I can do to help. --

[issue7361] Strange importlib error during test_multiprocessing failure

2009-11-19 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: I will obviously have a look, but why the heck is test_multiprocessing calling importlib? Is it meant to do that? Or is this part of the -j flag for regrtest? -- assignee: - brett.cannon ___ Python

[issue444582] Finding programs in PATH, addition to os

2009-11-19 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- nosy: -brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue444582 ___ ___ Python-bugs-list

[issue7361] Strange importlib error during test_multiprocessing failure

2009-11-19 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: And it looks like the error was triggered from a malformed .pyc file that was truncated. Guess I need to be more careful with that possibility. =) -- ___ Python tracker rep...@bugs.python.org

[issue7311] Bug on regexp of HTMLParser

2009-11-19 Thread Glenn Linderman
Glenn Linderman v+pyt...@g.nevcal.com added the comment: Re: the BTW -- and should be entity-escaped when used in attribute values inside tag attributes... (but are probably seldom found as part of tag attribute values) But the example you showed is not an attribute in a tag, but rather text

[issue7361] Strange importlib error during test_multiprocessing failure

2009-11-19 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: This was on a buildbot, and regrtest -j isn't used there, but in any case it wouldn't affect importlib as far as I know. From the traceback it looks like multiprocessing is just doing an import. --

[issue7311] Bug on regexp of HTMLParser

2009-11-19 Thread Chiyuan Zhang
Chiyuan Zhang plus...@gmail.com added the comment: re: Yes. In fact, the BTW is a different problem with respect to this bug. And that seems to be more complicated to fix. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7311

[issue7366] weakref module example relies on behaviour not guaranteed by id()

2009-11-19 Thread James Henstridge
New submission from James Henstridge ja...@jamesh.id.au: The documentation for the weakref module contains an example that uses WeakValueDictionary to implement a id2obj() lookup function that doesn't store strong references to those objects. This example implicitly assumes that the id() of an

[issue7366] weakref module example relies on behaviour not guaranteed by id()

2009-11-19 Thread James Henstridge
James Henstridge ja...@jamesh.id.au added the comment: Forgot to include a link to the documentation I was talking about: http://docs.python.org/library/weakref#example This example also appears in the 2.7a0 and 3.2a0 documentation. -- ___

[issue7342] str(datetime_obj) doesn't include microseconds if their value is 0

2009-11-19 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: If __str__ is supposed to produce nice output, the microsecond shouldn't be visible at all imho (special cases are not special enough to break the rules). If the date/time object is read by a human he probably doesn't care of the

[issue7367] OSError [errno 13] permission denied

2009-11-19 Thread Jay Lugo
New submission from Jay Lugo jacewick...@gmail.com: I spend the better part of a day figuring out this relatively simple problem with the help files in IDLE with python 2.6 on a mac OSX I came about the solution by following the code errors all over up and down the program files. Eventual I