[issue14395] sftp: downloading files with % in name fails due to logging

2012-03-25 Thread Parand Darugar
Parand Darugar added the comment: You're absolutely right, it's from paramiko. Apologies. -- ___ Python tracker ___ ___ Python-bugs-l

[issue14409] IDLE does not execute any commands (command prompt works fine!)

2012-03-25 Thread Ankit Agrawal
New submission from Ankit Agrawal : I'm trying to run python (version 2.7.2) on my computer (windows vista 32bit). It's always worked until now when Idle just does not respond to any commands. Any commands entered (even very simple ones) have no output/do not get computed! See image: http://dl

[issue14408] Support the test_cases protocol in the stdlib tests

2012-03-25 Thread Matt Joiner
New submission from Matt Joiner : Python 3.2 added the test_cases protocol. Many of the stdlib tests won't run using the `$ python3 -m unittest test.test_blah` method due to select unit test class names, and some regrtest arcanity. Defining test_cases makes these tests work as expected. A pat

[issue14386] Expose dictproxy as a public type

2012-03-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: [haypo] > dictproxy() doesn't need to be a public builtin type. +1 > We can just implement its constructor without documenting the type. +1 > Or it may be exposed in a module like collections. Please don't use collections as a dumping ground for this so

[issue14361] No link to issue tracker on Python home page

2012-03-25 Thread R. David Murray
R. David Murray added the comment: OK, so whatever else is true, it seems like there isn't anything for the python core dev team to do here. Any action would take place at the www.python.org level, and this bug tracker isn't where such changes are tracked, so I'm closing the issue. Especial

[issue14395] sftp: downloading files with % in name fails due to logging

2012-03-25 Thread R. David Murray
R. David Murray added the comment: There is no sftp module in the standard library. Presumably you are talking about a 3rd party product and should report the bug to its developers. If you are trying instead to report a bug in the logging module, please reopen the issue if you can provide a

[issue14399] zipfile and creat/update comment

2012-03-25 Thread R. David Murray
R. David Murray added the comment: I'm marking this as easy hoping someone in the mentoring group will pick it up and take a look. The relevant code is in Python, and I'm guessing there is some logic bug when only the comment is set (and nothing is added to the zipfile), but I haven't looked

[issue14386] Expose dictproxy as a public type

2012-03-25 Thread Guido van Rossum
Guido van Rossum added the comment: Given that dictproxy is needed to implement the proper interface for classes I don't think it is an implementation detail, and so I think it ought to be constructable. We have more esoteric types constructable (e.g. function). I also happen to think that it

[issue14385] Support other types than dict for __builtins__

2012-03-25 Thread STINNER Victor
STINNER Victor added the comment: With my patch, Python doesn't check __builtins__ type whereas ceval.c replaces any lookup error by a NameError. Example: $ ./python Python 3.3.0a1+ (default:f8d01c8baf6a+, Mar 26 2012, 01:44:48) >>> code=compile("print('Hello World!')", "", "exec") >>> exec(

[issue13405] Add DTrace probes

2012-03-25 Thread Marc Abramowitz
Marc Abramowitz added the comment: Hey Jesús, Let me know if you need any additional help testing. Marc -- ___ Python tracker ___ _

[issue14386] Expose dictproxy as a public type

2012-03-25 Thread STINNER Victor
STINNER Victor added the comment: > It's clutter and we should show some restraint before adding new types. dictproxy() doesn't need to be a public builtin type. We can just implement its constructor without documenting the type. Or it may be exposed in a module like collections. --

[issue14386] Expose dictproxy as a public type

2012-03-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: It's clutter and we should show some restraint before adding new types. Enthought's Python Distribution isn't shy about adding tools when they have a demonstrated need. Likewise, Django adds any reusable tools they need. Neither have a dict proxy. I've

[issue3367] Uninitialized value read in parsetok.c

2012-03-25 Thread STINNER Victor
STINNER Victor added the comment: > Stephan: can you redo the Valgrind test on copy the exact line > where the invalid read occurs (in sysmodule.c). Oops: ... *and* copy the exact line ... -- ___ Python tracker __

[issue14386] Expose dictproxy as a public type

2012-03-25 Thread STINNER Victor
STINNER Victor added the comment: > Victor's use case is unique in that he needs the type > to be implemented in C. mxProxy, zope.proxy and zope.security implement object proxies in C (for security purpose). These proxies are not specific to dict, but are generic. dictproxy is already used in

[issue14386] Expose dictproxy as a public type

2012-03-25 Thread R. David Murray
R. David Murray added the comment: I believe it was actually Guido who suggested exposing dict_proxy, in response to Victor (but independent of Victor's needs, if I understood the message correctly). It has always seemed odd to me ("always" referring my time working with Python3, of course)

[issue3367] Uninitialized value read in parsetok.c

2012-03-25 Thread STINNER Victor
STINNER Victor added the comment: I'm unable to reproduce this error: -- $ valgrind --db-attach=yes --suppressions=Misc/valgrind-python.supp ./python Python 3.3.0a1+ (default:0554183066b5, Mar 20 2012, 10:47:41) ... ==20258== Invalid read of size 8 ==20258==at 0x4C9F6F: sys_update_

[issue14386] Expose dictproxy as a public type

2012-03-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'm -1 on exposing this API. Victor's sandboxing project doesn't warrant cluttering the public toolset. As a consultant who gets to see many large codebases in different companies and I see zero need for this type to be exposed. It is not hard to build pr

[issue14228] It is impossible to catch sigint on startup in python code

2012-03-25 Thread R. David Murray
R. David Murray added the comment: @telmich: I think you will have more success at getting what you want if you work with us rather than being confrontational. Respect that we have reasons for doing things a certain way (and not because we are stupid), and we will respect your perspective mo

[issue14386] Expose dictproxy as a public type

2012-03-25 Thread STINNER Victor
STINNER Victor added the comment: > The "PyMapping_Check(dict) && !PyMapping_Check(dict)" Oh, I mean "PyMapping_Check(dict) && !PySequence_Check(dict)" -- ___ Python tracker _

[issue14386] Expose dictproxy as a public type

2012-03-25 Thread STINNER Victor
STINNER Victor added the comment: > A sequence *does* meet the (immutable) Mapping interface Ah? Let's try: >>> x=[1, 2, 3] >>> x.get(2) AttributeError: 'list' object has no attribute 'get' >>> x.keys() AttributeError: 'list' object has no attribute 'keys' list doesn't implement the collectio

[issue14350] Strange Exception from copying an iterator

2012-03-25 Thread R. David Murray
R. David Murray added the comment: Please, give it a try. But also be prepared for it being harder than it looks; the problem is that there may be very limited knowledge available where the error is generated. (I don't know; I haven't looked at the code and am not likely to...I usually leave

[issue1053687] PyOS_InputHook not called in IDLE subprocess

2012-03-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: Let's look on IDLE only. The problem has been fixed by #989712 I will close the issue next week if no objections. -- ___ Python tracker ___

[issue1253] IDLE - Percolator overhaul

2012-03-25 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue9609] make cProfile multi-stack aware

2012-03-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: Is there progress on it? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue786827] IDLE starts with no menus (Cygwin)

2012-03-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: ping -- nosy: +asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue13486] msvc9compiler.py doesn't properly generate manifest files.

2012-03-25 Thread Thierry Bastian
Thierry Bastian added the comment: I have the same issue. To be honest it is because I'm using MSVC2010. I know it is not a supported platform but the patch to fix the problem is really just the following (and it is compatible with MSVC2008): --- Lib/distutils/msvc9compiler.py.orig Mon Jun 21

[issue5150] IDLE to support reindent.py

2012-03-25 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue14288] Make iterators pickleable

2012-03-25 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: rhettinger -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue8231] Unable to run IDLE without write-access to config directory

2012-03-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: Good point. Thank you. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue8231] Unable to run IDLE without write-access to config directory

2012-03-25 Thread Brian Curtin
Brian Curtin added the comment: Please don't close it. Users in this situation can't use IDLE. We should at least try alternative locations to create this directory or perhaps prompt them for a directory they'd like to use. -- ___ Python tracker <

[issue13052] IDLE: replace ending with '\' causes crash

2012-03-25 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- assignee: -> asvetlov nosy: +asvetlov priority: normal -> high ___ Python tracker ___ ___ Python-bugs-

[issue5707] IDLE will not load

2012-03-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: Closing the issue. If somebody has a problem related to this — please make a new report. -- nosy: +asvetlov resolution: accepted -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python

[issue8231] Unable to run IDLE without write-access to config directory

2012-03-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: Let's close the issue next week as report doesn't make sense if issuer has no write access to own home dir. -- nosy: +asvetlov ___ Python tracker _

[issue9016] IDLE won't launch (Win XP)

2012-03-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: Ping. I like to close the issue next week if no response. -- nosy: +asvetlov ___ Python tracker ___

[issue6639] turtle: _tkinter.TclError: invalid command name ".10170160"

2012-03-25 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue6124] Tkinter should support the OS X zoom button

2012-03-25 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- assignee: gpolo -> asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue6124] Tkinter should support the OS X zoom button

2012-03-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: If Marc Culler as well as anybody has no interest/progress on that I will close the issue next week. -- nosy: +asvetlov ___ Python tracker ___

[issue14390] Tkinter single-threaded deadlock

2012-03-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: Can you make a test code to introduce you issue? I understand — it's not easy to extract failing code from your big project but please make simple example with python code and trivial C Extension for presentation of your problem. Let's start from manual test

[issue14200] Idle shell crash on printing non-BMP unicode character

2012-03-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: After experiments with non-BMP characters I figured out: — non-bmp symbols processed by Tk text widgets (Entry, Text etc.) differently. For example Entry can display non-bmp with spaces after glyph, Text reduces symbol to BMP. Editing is also weird. — looks li

[issue14373] C implementation of functools.lru_cache

2012-03-25 Thread Matt Joiner
Changes by Matt Joiner : -- nosy: +nedbat ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue14407] concurrent.futures tests don't adher to test_cases protocol

2012-03-25 Thread Matt Joiner
Changes by Matt Joiner : -- type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue14407] concurrent.futures tests don't adher to test_cases protocol

2012-03-25 Thread Matt Joiner
New submission from Matt Joiner : matt@matt-1005P:~/src/cpython$ ./python -m unittest test.test_concurrent_futures Ran 79 tests in 62.554s FAILED (errors=18) Failures are due to test discovery picking up unintentionally exposed tests. By adhering to the test_cases protocol introduced in 3.2, t

[issue14406] Race condition in concurrent.futures

2012-03-25 Thread Matt Joiner
Changes by Matt Joiner : -- nosy: +bquinlan, loewis, pitrou, rosslagerwall ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue14406] Race condition in concurrent.futures

2012-03-25 Thread Matt Joiner
Matt Joiner added the comment: Patch attached. -- keywords: +patch Added file: http://bugs.python.org/file25020/concurrent.futures._AllCompletedWaiter-race-condition.patch ___ Python tracker _

[issue14406] Race condition in concurrent.futures

2012-03-25 Thread Matt Joiner
New submission from Matt Joiner : There's a race condition in concurrent.futures in _AllCompletedWaiter, which affects wait(return_when=ALL_COMPLETED). The attached test will go into an infinite wait. -- components: Library (Lib) files: concurrent.futures._AllCompletedWaiter-race-condi

[issue10050] urllib.request still has old 2.x urllib primitives

2012-03-25 Thread Jeff McNeil
Jeff McNeil added the comment: Disregard. That was in concert with ntpath, which uses a funky approach to testing. -- ___ Python tracker ___ ___

[issue13850] Summary tables for argparse add_argument options

2012-03-25 Thread Xavier Morel
Xavier Morel added the comment: completion for list item 4: > although it would definitely make the "raw text" (in-rst) much harder to read > compared to the current table (which can be used from the rst source without > compiling) -- ___ Python t

[issue14405] Some "Other Resources" in the sidebar are hopelessly out of date

2012-03-25 Thread Ned Batchelder
New submission from Ned Batchelder : The "Other Resources" section lists these resources: Guido's Essays: out of date, the first is about 2.2, by the fifth, we're into Python 1.5. New-style Classes: this means "new" as of 2.2, and the linked page begins, "Unfortunately, new-style classes hav

[issue13850] Summary tables for argparse add_argument options

2012-03-25 Thread Xavier Morel
Xavier Morel added the comment: Had some time to play with this today, here's a draft matrix of actions and add_argument parameters which is pretty readable, but: * It's incredibly not helpful for people who don't know argparse * I tried adding effects descriptions in the cells instead of mere

[issue10050] urllib.request still has old 2.x urllib primitives

2012-03-25 Thread Jeff McNeil
Jeff McNeil added the comment: I was looking at a somewhat unrelated issue and I bumped up against a similar situation with the warnings system. I didn't look too much into it, but it appeared that warnings didn't get added to __warningregistry__ correctly. Though, when I set the stack level

[issue14322] More test coverage for hmac

2012-03-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Some style comments: - don't use "except: self.fail()", just let the exception pass through - when monkeypatching hmac.new, use a try...finally block so that the mock doesn't stay in place if the test fails for whatever reason - it's a bit of a nit, but when

[issue14403] unittest module: provide inverse of "assertRaises"

2012-03-25 Thread Michael Foord
Michael Foord added the comment: The opposite of calling assertRaises is simply calling the code. A comment as to why you're calling the code is sufficient documentation as to the intent of the test. In general the difference be a test failure and error is not useful - you *still* have to lo

[issue14288] Make iterators pickleable

2012-03-25 Thread sbt
sbt added the comment: > If you look at the patch it isn't (or shouldn't be). Sorry. I misunderstood when Raymond said "running the iterator to completion". -- ___ Python tracker

[issue14403] unittest module: provide inverse of "assertRaises"

2012-03-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: > >> I don't want to simply execute the code and hope that it doesn't raise > >> an exception, because if it does, the test fails with an "error" status > >> instead of a "failed" status. > > > > So what? > > A buggy test is not the same thing as a test that

[issue14404] multiprocessing with maxtasksperchild: bug in control logic?

2012-03-25 Thread ranga
Changes by ranga : -- title: multiprocessing with maxtasksperchild: bug in state machine? -> multiprocessing with maxtasksperchild: bug in control logic? ___ Python tracker ___

[issue14404] multiprocessing with maxtasksperchild: bug in state machine?

2012-03-25 Thread ranga
New submission from ranga : I asked this on Stackoverflow and discovered from the discussions there that it might be a Python bug. http://stackoverflow.com/questions/9859222/python-multiprocessing-with-maxtasksperchild HOW TO REPRODUCE This seemingly-simple program isn't work

[issue14403] unittest module: provide inverse of "assertRaises"

2012-03-25 Thread Danilo Bargen
Danilo Bargen added the comment: >> I don't want to simply execute the code and hope that it doesn't raise >> an exception, because if it does, the test fails with an "error" status >> instead of a "failed" status. > > So what? A buggy test is not the same thing as a test that fails because

[issue14403] unittest module: provide inverse of "assertRaises"

2012-03-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I don't want to simply execute the code and hope that it doesn't raise > an exception, because if it does, the test fails with an "error" status > instead of a "failed" status. So what? -- components: +Library (Lib) -Tests nosy: +michael.foord, pit

[issue14288] Make iterators pickleable

2012-03-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: > The thing to emphasise here is that pickling an iterator is > "destructive": afterwards the original iterator will be "empty". If you look at the patch it isn't (or shouldn't be). I agree with Raymond that accumulating dict and set iterators in a list is a

[issue14403] unittest module: provide inverse of "assertRaises"

2012-03-25 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- nosy: +tshepang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue14403] unittest module: provide inverse of "assertRaises"

2012-03-25 Thread Danilo Bargen
New submission from Danilo Bargen : Most assert statements of the unittest module provide both an assert statement as well as its inverse, like "assertIn" and "assertNotIn". There is apparently no such thing for exceptions. I can do the following: > with self.assertRaises(SomeException): >

[issue14288] Make iterators pickleable

2012-03-25 Thread sbt
sbt added the comment: > ... and that pickling things like dict iterators entail running the > iterator to completion and storing all of the results in a list. The thing to emphasise here is that pickling an iterator is "destructive": afterwards the original iterator will be "empty". I can't

[issue14397] Use GetTickCount/GetTickCount64 instead of QueryPerformanceCounter for monotonic clock

2012-03-25 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Yury Selivanov wrote: > > Yury Selivanov added the comment: > >> A monotonic clock is not suitable for measuring durations, as it may still >> jump forward. A steady clock will not. > > Well, Victor's implementation of 'steady()' is just a tiny wrapper,

[issue10050] urllib.request still has old 2.x urllib primitives

2012-03-25 Thread Senthil Kumaran
Senthil Kumaran added the comment: It's funny, Antoine had raised an issue too. Should see why is this sporadic failures.. -- ___ Python tracker ___ __

[issue14350] Strange Exception from copying an iterator

2012-03-25 Thread Jakob Bowyer
Jakob Bowyer added the comment: Before anyone else rushes of to do this, can I? I really want to break into python-dev and this might be my chance. -- ___ Python tracker ___ __

[issue14392] type=bool doesn't raise error in argparse.Action

2012-03-25 Thread Toshihiro Kamishima
Toshihiro Kamishima added the comment: Thank you for your response. My patch makes raise error by minimal change, but it may be better to raise NameError as in a case specifying "type=string" in 2.7.2. Similar to the case "type=bool", specifications, such as "type=unicode" or "type=long", do

[issue14200] Idle shell crash on printing non-BMP unicode character

2012-03-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 89878808f4ce by Andrew Svetlov in branch 'default': Issue #14200 — now displayhook for IDLE works in non-subprocess mode as well as subprecess. http://hg.python.org/cpython/rev/89878808f4ce -- ___ Pytho

[issue14396] Popen wait() doesn't handle spurious wakeups

2012-03-25 Thread Charles-François Natali
Charles-François Natali added the comment: > I'm working on figuring out the exact conditions under which it > happens and creating a harness. I'll post it when I've got it. Please do so, because I'm quite skeptical about waitpid() returning 0 without WNOHANG. If you can reproduce it fairly co

[issue13902] Sporadic test_threading failure on FreeBSD 6.4 buildbot

2012-03-25 Thread Charles-François Natali
Charles-François Natali added the comment: Should be fixed now. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue10050] urllib.request still has old 2.x urllib primitives

2012-03-25 Thread Charles-François Natali
Charles-François Natali added the comment: Since eab274c7d456, all the buildbots are randomly failing, e.g. """ == FAIL: test_method_deprecations (test.test_urllib2.OpenerDirectorTests) -

[issue11310] Document byte[s|array]() and byte[s|array](count) in docstrings

2012-03-25 Thread Éric Araujo
Éric Araujo added the comment: I think you could just go ahead and commit your patch. I don’t remember if the reST docs were changed recently-ish or if it’s still an open bug, so you may want to check that the new docstrings matches the doc. -- nosy: +eric.araujo versions: +Python 2.

[issue10796] readline completion flaw

2012-03-25 Thread Éric Araujo
Éric Araujo added the comment: I can’t reproduce with 2.7 or 3.2 with a readline module linked to GNU readline. -- nosy: +eric.araujo versions: -Python 2.6, Python 3.1 ___ Python tracker _

[issue12864] 2to3 creates illegal code on import a.b inside a package

2012-03-25 Thread Éric Araujo
Éric Araujo added the comment: BTW I think if this is too difficult to implement 2to3 could just be documented as requiring you not to use implicit relative imports. -- ___ Python tracker

[issue12864] 2to3 creates illegal code on import a.b inside a package

2012-03-25 Thread Éric Araujo
Éric Araujo added the comment: -import sub.subsub +from .sub import subsub as _dummy That’s partly incorrect, as you need to bind the name sub to match the original code. -- nosy: +eric.araujo ___ Python tracker