[issue10729] fwbackups python lib error

2010-12-18 Thread Ayman Elmasry
New submission from Ayman Elmasry : I hope this topic is not completely unfitting here. fwbackups error after backup attempt which concerned python lib: ERROR : Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/fwbackups/operations/backup.py", line 698, in start pkg

[issue9775] Multiprocessing, logging and atexit play not well together

2010-12-18 Thread Georg Brandl
Georg Brandl added the comment: Not reproducable anymore. -- resolution: -> out of date status: open -> closed ___ Python tracker ___ ___

[issue9234] argparse: aliases for positional arguments (subparsers)

2010-12-18 Thread Steven Bethard
Steven Bethard added the comment: Looks good to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue10728] argparse.ArgumentParser.print_help uses sys.stdout

2010-12-18 Thread Steven Bethard
Steven Bethard added the comment: Yep, this is a documentation bug. Help is definitely intended to print to stdout. -- versions: -Python 3.1 ___ Python tracker ___ ___

[issue9234] argparse: aliases for positional arguments (subparsers)

2010-12-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: Steven, can you go ahead and apply this? -- ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue9234] argparse: aliases for positional arguments (subparsers)

2010-12-18 Thread Steven Bethard
Steven Bethard added the comment: Applied in r87362. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___

[issue10730] add .svgz to mimetypes.suffix_map

2010-12-18 Thread Grygoriy Fuchedzhy
New submission from Grygoriy Fuchedzhy : Please add '.svgz': '.svg.gz' map to mimetypes.suffix_map -- components: Library (Lib) messages: 124282 nosy: gry priority: normal severity: normal status: open title: add .svgz to mimetypes.suffix_map type: feature request __

[issue10729] fwbackups python lib error

2010-12-18 Thread Eric Smith
Eric Smith added the comment: fwbackups is a third party package. See if you can submit a bug at http://www.diffingo.com/oss/fwbackups -- nosy: +eric.smith resolution: -> invalid stage: -> committed/rejected status: open -> closed ___ Python track

[issue10729] fwbackups python lib error

2010-12-18 Thread Ayman Elmasry
Ayman Elmasry added the comment: thank you -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue5587] vars() no longer has a useful __repr__

2010-12-18 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed in 3.2 (r87368) and 3.1 (r87370), thanks for the patch! -- assignee: -> ezio.melotti resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker

[issue9990] PyMemoryView_FromObject alters the Py_buffer after calling PyObject_GetBuffer when ndim 1

2010-12-18 Thread Mark Dickinson
Mark Dickinson added the comment: I'll take a look at this. -- assignee: -> mark.dickinson ___ Python tracker ___ ___ Python-bugs-lis

[issue10731] UnicodeDecodeError in OS X tkinter when binding to

2010-12-18 Thread Marc Culler
New submission from Marc Culler : In OS X tkinter the "two-finger scroll" generates events. The following code: bug.py import tkinter def mouse_wheel(event): print('Mouse wheel event') tk = tkinter.Tk() list = tkinter.Listbox(tk) list.bind('', mouse_wheel) for n in range(20): li

[issue10573] Consistency in unittest assert methods: order of actual, expected

2010-12-18 Thread Ezio Melotti
Ezio Melotti added the comment: The attached patch changes the following things - assertDictContainsSubset(expected, actual, msg=None) + assertDictContainsSubset(subset, dictionary, msg=None) This doesn't change the order of the args, even though the name of the method might suggest the opposi

[issue10728] argparse.ArgumentParser.print_help uses sys.stdout

2010-12-18 Thread R. David Murray
R. David Murray added the comment: Fixed in r87372. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue10729] fwbackups python lib error

2010-12-18 Thread R. David Murray
R. David Murray added the comment: Ayman: FYI it looks like you are trying to run the program on a Python version older than what it requires (the delete keyword for NamedTemporaryFile was introduced in version 2.6, as you can find out by looking it up in the python documentation for the temp

[issue10694] zipfile.py end of central directory detection not robust

2010-12-18 Thread Kevin Hendricks
Kevin Hendricks added the comment: Same problem exists in Python 3.1.3 and in later versions as well. Same patch should also work. -- versions: +Python 3.1, Python 3.2 ___ Python tracker _

[issue10573] Consistency in unittest assert methods: order of actual, expected

2010-12-18 Thread Georg Brandl
Georg Brandl added the comment: If Michael and Raymond reach a consensus, this can go in before beta2. -- nosy: +georg.brandl ___ Python tracker ___

[issue10730] add .svgz to mimetypes.suffix_map

2010-12-18 Thread R. David Murray
R. David Murray added the comment: What are the media types, and are they registered with IANA? A citation from http://www.isi.edu/in-notes/iana/assignments/media-types will be needed in order for this addition to happen if they are not x- types. I checked out of curiousity, and the last tim

[issue7242] Forking in a thread raises RuntimeError

2010-12-18 Thread Oren Held
Oren Held added the comment: Just adding some info: This bug is not Solaris-specific; I reproduced it on HP-UX 11.31. On Python 2.6.4, thread_test.py fails with the same RunTime error exception. On Python 2.6.6, it passes and things look good. -- nosy: +Oren_Held

[issue6791] httplib read status memory usage

2010-12-18 Thread Senthil Kumaran
Senthil Kumaran added the comment: In the morning, I had a comment on the patch wondering why read _MAXLENGH + 1 and then check for len of header > _MAXLENGH. Instead of just reading _MAXLENGH (and if the length matched rejecting). ( Looks like it did not go through). I think that either way

[issue10404] IDLE on OS X popup menus do not work: cannot set/clear breakpoints

2010-12-18 Thread Georg Brandl
Georg Brandl added the comment: Looks fine, David, do you want to commit? -- assignee: ronaldoussoren -> r.david.murray nosy: +r.david.murray ___ Python tracker ___

[issue10731] UnicodeDecodeError in OS X tkinter when binding to

2010-12-18 Thread R. David Murray
Changes by R. David Murray : -- assignee: -> ronaldoussoren components: +Macintosh -Tkinter nosy: +ned.deily, ronaldoussoren ___ Python tracker ___ _

[issue10731] UnicodeDecodeError in OS X tkinter when binding to

2010-12-18 Thread R. David Murray
Changes by R. David Murray : -- type: crash -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue10730] add .svgz to mimetypes.suffix_map

2010-12-18 Thread Grygoriy Fuchedzhy
Grygoriy Fuchedzhy added the comment: I'm not sure we are talking about the same table. I don't see .mp4 there. suffix_map = { '.tgz': '.tar.gz', '.taz': '.tar.gz', '.tz': '.tar.gz', '.tbz2': '.tar.bz2', } *.svgz is gzipped *.svg files. -- __

[issue10404] IDLE on OS X popup menus do not work: cannot set/clear breakpoints

2010-12-18 Thread R. David Murray
R. David Murray added the comment: Committed to py3k in r87374, 3.1 in r87375, and 2.7 in r87376. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker __

[issue10730] add .svgz to mimetypes.suffix_map

2010-12-18 Thread R. David Murray
R. David Murray added the comment: You are correct, I misread your message. However, my point still stands. .svg is not a file extension that appears in the types_map table, so adding the line you request to the suffix_map table is not something we would do by itself. So, to correct my que

[issue10723] Undocumented built-in exceptions

2010-12-18 Thread Georg Brandl
Georg Brandl added the comment: Committed in r87378. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Pytho

[issue10730] add .svgz to mimetypes.suffix_map

2010-12-18 Thread Grygoriy Fuchedzhy
Grygoriy Fuchedzhy added the comment: *.svg and *.svgz files have image/svg+xml media type. I have following in /etc/mime.types callisto ~ $ grep svg /etc/mime.types image/svg+xml svg svgz -- ___ Python tracker

[issue6791] httplib read status memory usage

2010-12-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Partially backported in r87382 (3.1) and r87383 (2.7). Not everything could be merged in because of HTTP 0.9 support and (in 2.7) a slightly different architecture. Thank you. -- stage: patch review -> committed/rejected status: open -> closed __

[issue10573] Consistency in unittest assert methods: order of actual, expected

2010-12-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: These three changes look fine. The argument order for assertDictContainsSubset is problematic (doesn't match its own name and doesn't match the order for other __contains__ methods elsewhere in Python), but it's too late to change it now :-( --

[issue9286] email.utils.parseaddr returns garbage for invalid input

2010-12-18 Thread R. David Murray
R. David Murray added the comment: Committed in r87384. Barry, I've added you as nosy in case you disagree with this fix. The essential point is that before, parseaddr would turn 'merwok w...@example.com' into 'merwok...@example.com', and now it preserves the whitespace. My theory is that

[issue10573] Consistency in unittest assert methods: order of actual, expected

2010-12-18 Thread Michael Foord
Michael Foord added the comment: The argument order doesn't match the name (which isn't a huge deal I don't think) - but subset in dict does match the element in container order of assertIn. -- ___ Python tracker

[issue10716] Modernize pydoc to use CSS

2010-12-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: There's no rush on this one. There desired properties are: * separate content from presentation * validated CSS and HTML * simple CSS so that people can *easily* customize it * possibly offer two premade stylesheets 1) a default beautiful one 2) one the c

[issue10732] Wrong destructor function type in Python/getargs.c

2010-12-18 Thread Antoine Pitrou
New submission from Antoine Pitrou : In getargs.c, in addcleanup_convert(), PyCapsule_SetContext() is called with a second argument "int (*destr)(PyObject*,void*)", but it really expects a "void (*PyCapsule_Destructor)(PyObject *)". I'm not sure it's a good idea, although the ABI may be lenient

[issue10732] Wrong destructor function type in Python/getargs.c

2010-12-18 Thread Martin v . Löwis
Martin v. Löwis added the comment: I fail to see the problem. The context is a plain void*, not (necessarily) a function pointer, and getargs uses it with the same type it put in. Why do you think PyCapsule_Destructor is of relevance? -- ___ Python

[issue10730] add .svgz to mimetypes.suffix_map

2010-12-18 Thread R. David Murray
R. David Murray added the comment: This media type does not appear in the official IANA registry. Has it not yet been officially approved? If you want to argue that its use is common enough and its approval immanent enough (I do see that it has been submitted) to warrant inclusion in Python

[issue10732] Wrong destructor function type in Python/getargs.c

2010-12-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I fail to see the problem. The context is a plain void*, not > (necessarily) a function pointer, and getargs uses it with the same > type it put in. Why do you think PyCapsule_Destructor is of relevance? Woops, sorry. Apparently I messed up PyCapsule_SetConte

[issue10732] Wrong destructor function type in Python/getargs.c

2010-12-18 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue10733] plistlib rejects strings containing control characters

2010-12-18 Thread Mitchell Model
New submission from Mitchell Model : plistlib rejects control characters found in XML plists that Apple's 'plutil lint' accepts. I have attached my Terminal preferences as an example. (plistlib accepts the contents of the default Terminal preferences file) -- assignee: ronaldoussoren c

[issue10622] WebKit browsers show superfluous scrollbars in html docs

2010-12-18 Thread R. David Murray
R. David Murray added the comment: Backport done in r87387 and r87388. -- nosy: +r.david.murray resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___

[issue10733] plistlib rejects strings containing control characters

2010-12-18 Thread Martin v . Löwis
Martin v. Löwis added the comment: This is tricky. It's clearly ill-formed XML, so I'm not sure that this needs to be bug-compatible with Apple's implementation. -- nosy: +loewis ___ Python tracker __

[issue10573] Consistency in unittest assert methods: order of actual, expected

2010-12-18 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed in r87389. This can be backported to 3.1/2.7 where applicable. -- stage: needs patch -> commit review Added file: http://bugs.python.org/file20105/issue10573.diff ___ Python tracker

[issue10616] Change PyObject_AsCharBuffer() error message

2010-12-18 Thread R. David Murray
R. David Murray added the comment: Victor, I think you attached to the wrong issue. -- nosy: +r.david.murray ___ Python tracker ___ _

[issue10616] Change PyObject_AsCharBuffer() error message

2010-12-18 Thread R. David Murray
R. David Murray added the comment: Victor, I think you attached msg123266 to the wrong issue. -- ___ Python tracker ___ ___ Python-bu

[issue10616] Change PyObject_AsCharBuffer() error message

2010-12-18 Thread R. David Murray
Changes by R. David Murray : -- Removed message: http://bugs.python.org/msg124315 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue6780] startswith error message is incomplete

2010-12-18 Thread R. David Murray
R. David Murray added the comment: The approach looks good to me. I think this issue is orthogonal to #10616, since the message here needs to be modified anyway, regardless of what happens to the underlying issue. -- nosy: +r.david.murray ___ Pyth

[issue6780] startswith error message is incomplete

2010-12-18 Thread R. David Murray
Changes by R. David Murray : -- versions: -Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue10734] test_ttk failure under Windows

2010-12-18 Thread Antoine Pitrou
New submission from Antoine Pitrou : It looks like the Windows buildbots have been failing since the tk upgrade (at least, I'm assuming it is related since there haven't been any tk changes recently). == FAIL: test_heading_cal

[issue10727] intermittent test_cmd_line failure

2010-12-18 Thread Ned Deily
Ned Deily added the comment: This is a duplicate of Issue8458. Merging the nosy lists. -- nosy: +ned.deily resolution: -> duplicate status: open -> closed superseder: -> buildbot: test_cmd_line failure on Tiger: [Errno 9] Bad file descriptor ___ P

[issue8458] buildbot: test_cmd_line failure on Tiger: [Errno 9] Bad file descriptor

2010-12-18 Thread Ned Deily
Ned Deily added the comment: See also msg124254. -- assignee: -> gregory.p.smith nosy: +gregory.p.smith, ncoghlan, pitrou type: -> behavior ___ Python tracker ___ _

[issue8458] buildbot: test_cmd_line failure on Tiger: [Errno 9] Bad file descriptor

2010-12-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Perhaps there is a race condition with cleaning up the p2c pipe from a > previous run? This would be rather strange, since it would have a different file descriptor. Or it means there's a bug somewgere (perhaps in subprocess, or perhaps even in io.open). I

[issue4871] zipfile can't decrypt

2010-12-18 Thread R. David Murray
R. David Murray added the comment: What about bytearray? Apparently that works pre-patch for at least read, though setpassword rejects it via an assertion. Also, the error message should be "expected bytes" rather than "bytes expected". Don't ask me why, that's just the way it is normally d

[issue9286] email.utils.parseaddr returns garbage for invalid input

2010-12-18 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Dec 18, 2010, at 06:31 PM, R. David Murray wrote: >Barry, I've added you as nosy in case you disagree with this fix. The >essential point is that before, parseaddr would turn 'merwok w...@example.com' >into 'merwok...@example.com', and now it preserves the

[issue10734] test_ttk failure under Windows

2010-12-18 Thread Martin v . Löwis
Martin v. Löwis added the comment: I don't think this needs to block the beta release. -- ___ Python tracker ___ ___ Python-bugs-list

[issue10733] plistlib rejects strings containing control characters

2010-12-18 Thread Mitchell Model
Mitchell Model added the comment: I can see where that does make it tricky. (I also tried reading the plist after opening the file as binary, but no luck.) The problem here, of course, is that the only reason for the existence of this library is to read Apple's plist files, however XML-invali

[issue10722] IDLE's subprocess didnit make connection ..... Python 2.7

2010-12-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: I do not have much to add, but second the idea of inquiring on python-list or the gmane mirror, especially about alternatives (other than Notepad, which is what I started with). Happily, IDLE has nearly always worked fine on my xp machine, so I have not tried

[issue10730] add .svgz to mimetypes.suffix_map

2010-12-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: This issue is actually a request to add .svg to the types map and the the abbreviation .svgz for .svg.gx to the suffix_map. I believe Scalable Vector Graphics are well on the way to becoming *the* standard vector graphics format for the web, especially with u

[issue10730] add .svgz to mimetypes.suffix_map

2010-12-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: Separate issue: from the mimetypes doc ... "MimeTypes.types_map Dictionary mapping filename extensions to MIME types. This is initially a copy of the global types_map defined in the module." But on Windows, I get a *tuple*, not a dict, of two dicts. The first

[issue9857] SkipTest in tearDown is reported an as an error

2010-12-18 Thread Michael Foord
Michael Foord added the comment: Committed revision 87390. It is a stretch to see this as a bugfix rather than a new feature so probably *shouldn't* be backported to 2.7. On the other hand the fix is combined with the fix for issue 9857 which *is* a bugfix and *should* be backported to Python

[issue9857] SkipTest in tearDown is reported an as an error

2010-12-18 Thread Michael Foord
Michael Foord added the comment: Correction, the fix is combined with the fix for issue 10611. -- ___ Python tracker ___ ___ Python-bu

[issue10735] platform.architecture() gives misleading results for OS X multi-architecture executables

2010-12-18 Thread Ned Deily
New submission from Ned Deily : OS X Mach-O universal executable files often contain multiple architectures including a combination of 32-bit and 64-bit archs, as with the newer OS X installer variants provided on python.org. In such cases, the platform.architecture() function always returns

[issue10730] add .svgz to mimetypes.suffix_map and .svg to types_map

2010-12-18 Thread R. David Murray
R. David Murray added the comment: I think a variance from the policy stated in mimetypes is quite possible, and the kind of information you provide, Terry, is a step in that direction. We would need release manager approval, of course, since we are in Beta, but this is a small enough change

[issue10735] platform.architecture() gives misleading results for OS X multi-architecture executables

2010-12-18 Thread R. David Murray
Changes by R. David Murray : -- nosy: +lemburg ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue10735] platform.architecture() gives misleading results for OS X multi-architecture executables

2010-12-18 Thread Ned Deily
Ned Deily added the comment: The attached patches for py3k (3.2+) and 2.7 correct platform.architecture() to return the bit architecture ('32bit' or '64bit') of the running interpreter in the default case where executable = sys.executable. The linkage string will also contain information abo

[issue10735] platform.architecture() gives misleading results for OS X multi-architecture executables

2010-12-18 Thread Ned Deily
Changes by Ned Deily : -- keywords: +patch Added file: http://bugs.python.org/file20106/issue10735-py3k.patch ___ Python tracker ___ _

[issue10735] platform.architecture() gives misleading results for OS X multi-architecture executables

2010-12-18 Thread Ned Deily
Changes by Ned Deily : Added file: http://bugs.python.org/file20107/issue10735-27.patch ___ Python tracker ___ ___ Python-bugs-list mailing li