[issue21197] venv does not create lib64 directory and appropriate symlinks

2014-05-27 Thread Vinay Sajip
Vinay Sajip added the comment: Issue #18807 relates to symlinks not being available, or not being wanted by the user creating the environment. The lib64 symlink is (currently) the only case where we symlink to a directory (in the other cases, such as aliases for the interpreter, we can use cop

[issue9351] argparse set_defaults on subcommands should override top level set_defaults

2014-05-27 Thread paul j3
Changes by paul j3 : -- nosy: +paul.j3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/m

[issue1683368] object.__init__ shouldn't allow args/kwds

2014-05-27 Thread Jason R. Coombs
Jason R. Coombs added the comment: I recently ran into this error again. I was writing this class to provide backward-compatible context manager support for zipfile.ZipFile on Python 2.6 and 3.1: class ContextualZipFile(zipfile.ZipFile): """ Supplement ZipFile class to support context

[issue20430] Make argparse.SUPPRESS work as an argument "dest"

2014-05-27 Thread paul j3
paul j3 added the comment: If we make this change to '_StoreAction', we need to do it to 4 other subclasses which take the same 'setattr(namespace, self.dest, values)'. An alternative would be to define a 'Namespace' function that does this conditional 'setattr'. How should this 'SUPPRESS' af

[issue1683368] object.__init__ shouldn't allow args/kwds

2014-05-27 Thread Jason R. Coombs
Jason R. Coombs added the comment: I recently ran into this error again. I was writing this class to provide backward-compatible context manager support for zipfile.ZipFile on Python 2.6 and 3.1: class ContextualZipFile(zipfile.ZipFile): """ Supplement ZipFile class to support context

[issue17172] Add turtledemo to IDLE menu

2014-05-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think a patch should reuse the run module function that Idle already has. No need to re-invent something. I will say more tomorrow after sleeping. -- ___ Python tracker

[issue10523] argparse has problem parsing option files containing empty rows

2014-05-27 Thread paul j3
Changes by paul j3 : -- nosy: +paul.j3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/

[issue21416] argparse should accept bytes arguments as originally passed

2014-05-27 Thread paul j3
paul j3 added the comment: 'invalid bytes value' is the error message generated by 'argparse'. The underlying error (for a string like 'xxx') is: print(bytes(sys.argv[1])) TypeError: string argument without an encoding You could use 'bytes' if you somehow supply the encoding, as in:

[issue21416] argparse should accept bytes arguments as originally passed

2014-05-27 Thread paul j3
paul j3 added the comment: Two points to keep in mind: 'argparse' works with 'sys.argv[1:]'. If that does not contain what you want, then you can pass your own 'argv' to 'parse_args'. 'type=bytes' means, call the builtin 'bytes' function with one of the argv strings. If 'bytes' does not hand

[issue21208] Change default behavior of arguments with type bool when options are specified

2014-05-27 Thread paul j3
paul j3 added the comment: Last year someone asked on Stackoverflow about using 'type=bool'. My answer is at: http://stackoverflow.com/questions/15008758/parsing-boolean-values-with-argparse/19233287#19233287 'type' is supposed to be a function that takes a string, and converts to a desired

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

2014-05-27 Thread Lita Cho
Lita Cho added the comment: So I have a patch that fixes the original problem, but doesn't fix the crash with the tdemo_round_dance.py. However, I was wondering why TurtleScreen._RUNNING = True in the _destroy method. Can anyone shed some light on this? Here is the current state of my patch.

[issue3015] tkinter with wantobjects=False has been broken for some time

2014-05-27 Thread Lita Cho
Lita Cho added the comment: Serhiy, does that mean this is fixed the way it is? Do I need to do anything else to close out this issue? It looks like wantobjects is set to False, currently. -- ___ Python tracker __

[issue17172] Add turtledemo to IDLE menu

2014-05-27 Thread Lita Cho
Lita Cho added the comment: I currently have a patch where the Turtle Demo now shows up in the Help menu rather than in File menu. I also have it such that Turtle is now launched as a separate process rather than within the IDLE process. Currently, the commend is calling ./python.exe so it us

[issue18132] buttons in turtledemo disappear on small screens

2014-05-27 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue17172] Add turtledemo to IDLE menu

2014-05-27 Thread Lita Cho
Lita Cho added the comment: Okay, maybe "hanging" is not the right word. The IDLE window becomes busy since it spawned off the Turtle demo subprocess, and it is waiting for the subprocess to finish. After I close the Turtle window, it returns back to normal. I was wondering if the Turtle Demo

[issue11468] Improve unittest basic example in the doc

2014-05-27 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, I'm going to test some other module (math or somesuch) rather than the built-in string methods. The normal use of unittest is to import both the unittest module and the module under test. I want to show that pattern (which is somewhat different from

[issue17172] Add turtledemo to IDLE menu

2014-05-27 Thread Raymond Hettinger
Raymond Hettinger added the comment: > the IDLE window is hanging Check to make sure it is actually hung. The event-loop can make it look hung but it is actually just waiting for an event. An IDLE restart suffices to kill it sometimes. -- ___ Pyt

[issue18807] Allow venv to create copies, even when symlinks are supported

2014-05-27 Thread Dominic Cerquetti
Dominic Cerquetti added the comment: Ok cool, as you said line 215 then seems to be the only one that needs it. -- ___ Python tracker ___

[issue18807] Allow venv to create copies, even when symlinks are supported

2014-05-27 Thread Dominic Cerquetti
Dominic Cerquetti added the comment: Preliminary patch for line 215, per earlier description. While this doesn't appear to break anything and creates both copies and symlinks correctly, I do have these four failing unit tests: test_multiprocessing_fork test_multiprocessing_forkserver test_mul

[issue21578] Misleading error message when ImportError called with invalid keyword args

2014-05-27 Thread Eric Snow
Eric Snow added the comment: Looks good to me. Thanks for doing this. If no one objects in the meantime, I'll commit this in a few days. -- assignee: -> eric.snow stage: patch review -> commit review ___ Python tracker

[issue21539] pathlib's Path.mkdir() should allow for "mkdir -p" functionality

2014-05-27 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On May 27, 2014, at 08:48 PM, Antoine Pitrou wrote: >What do you mean by that? The os.makedirs() signature is >os.makedirs(name, mode=0o777, exist_ok=False) Right, but this is Path.mkdir's signature: Path.mkdir(mode=0o777, parents=False) so it's too late to

[issue21539] pathlib's Path.mkdir() should allow for "mkdir -p" functionality

2014-05-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le 27/05/2014 20:32, Barry A. Warsaw a écrit : > > I've just been writing some new code to use pathlib and ran into > this one myself. An exist_ok=False is fine, although it's a slight shame that for backward compatibility we can't adopt os.makedirs() signature e

[issue17172] Add turtledemo to IDLE menu

2014-05-27 Thread Lita Cho
Lita Cho added the comment: I am currently in the process of editing this patch such that the Turtle Demo launches from the Help Menu and spawns a separate process. However, I am deciding whether if the separate process should be asynchronous or not. Currently, I have it working with the subp

[issue18807] Allow venv to create copies, even when symlinks are supported

2014-05-27 Thread Vinay Sajip
Vinay Sajip added the comment: While you may be right about line 215, line 147 isn't analogous, because in the latter case it's a symlink to a directory. We don't really want the entire lib directory tree *copied* into lib64 (and in any case, the populating of lib will happen much after venv c

[issue11468] Improve unittest basic example in the doc

2014-05-27 Thread Zachary Ware
Changes by Zachary Ware : -- nosy: +zach.ware ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue20140] UnicodeDecodeError in ntpath.py when home dir contains non-ascii signs

2014-05-27 Thread honglei jiang
honglei jiang added the comment: Python:canopy-1.3.0.1715.win-x86_64\ OS:Win8.1 64 >>>directory 'F:\\Flask\\EmberJS\\\xd6\xd0\xce\xc4\\Prj\\static' >>>os.path.isdir(directory) True >>>filename u'todomvc/architecture-examples/angularjs/index.html' >>>os.path.join(directory,filename) Traceback (mo

[issue20689] socket.AddressFamily is absent in pydoc output

2014-05-27 Thread STINNER Victor
STINNER Victor added the comment: I suggested to not document new enums of the socket module (ex: AddressFamily, SocketType) when they were added. I don't think that they should be part of Python public API. -- ___ Python tracker

[issue20689] socket.AddressFamily is absent in pydoc output

2014-05-27 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- title: socket.AddressFamily is absent in html pydoc -> socket.AddressFamily is absent in pydoc output ___ Python tracker ___ ___

[issue20689] socket.AddressFamily is absent in html pydoc

2014-05-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ah, now I see what is wrong. Actually AddressFamily is missing in text output of pydoc too. Because "AddressFamily" is not included in the __all__ list. SocketType is included, but this is different SocketType, SocketType from _socket (see issue20386). Here

[issue21439] Numerous minor issues in Language Reference

2014-05-27 Thread Zachary Ware
Changes by Zachary Ware : -- stage: test needed -> commit review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21439] Numerous minor issues in Language Reference

2014-05-27 Thread Zachary Ware
Zachary Ware added the comment: A few comments on the committed patch. The quoted diff is trimmed to just the hunks I have comments on. On Tue, May 27, 2014 at 12:21 AM, raymond.hettinger wrote: > diff --git a/Doc/reference/compound_stmts.rst > b/Doc/reference/compound_stmts.rst > --- a/Doc

[issue16446] pdb raises BdbQuit on 'quit' when started with set_trace

2014-05-27 Thread Xavier de Gaye
Xavier de Gaye added the comment: Yes the patch does change the semantics of the quit command: * no change when pdb is run as a script or with 'python -m pdb script_name'. As stated in the doc, the 'quit command': "Quit from the debugger. The program being executed is aborted." * but

[issue21578] Misleading error message when ImportError called with invalid keyword args

2014-05-27 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the review, Eric. Here's a new patch. -- Added file: http://bugs.python.org/file35381/issue21578_v2.diff ___ Python tracker ___ __

[issue20383] Add a keyword-only spec argument to types.ModuleType

2014-05-27 Thread Eric Snow
Eric Snow added the comment: You're right that it doesn't have to be a one-line wrapper or anything more than an import-from in importlib.util. :) -- ___ Python tracker ___

[issue18807] Allow venv to create copies, even when symlinks are supported

2014-05-27 Thread Dominic Cerquetti
Dominic Cerquetti added the comment: Requesting re-open of this issue, using --closes to force no symlinks to be created still results in venv trying to create symlinks. I'm using Python 3.4 with the following command inside a vagrant Ubuntu 14.04 virtualbox image. The folder is a SMB mount f

[issue21539] pathlib's Path.mkdir() should allow for "mkdir -p" functionality

2014-05-27 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I've just been writing some new code to use pathlib and ran into this one myself. An exist_ok=False is fine, although it's a slight shame that for backward compatibility we can't adopt os.makedirs() signature exactly. --

[issue21539] pathlib's Path.mkdir() should allow for "mkdir -p" functionality

2014-05-27 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue20689] socket.AddressFamily is absent in html pydoc

2014-05-27 Thread STINNER Victor
STINNER Victor added the comment: "I found the culprit. The AddressFamily is not registered in _socket module. I created a preliminary patch to show the culprit." That's not surprising, this type is created in socket (socket.py), not in _socket (the C module). Your patch is wrong. --

[issue21581] Consider dropping importlib.abc.Loader.create_module()

2014-05-27 Thread Brett Cannon
Brett Cannon added the comment: This issue is not talking about dropping create_module() from the algorithm (I need it for the lazy loader), just from the ABC since it's a do-nothing implementation that doesn't have to be there. Otherwise it should be made a required method and possibly even n

[issue20383] Add a keyword-only spec argument to types.ModuleType

2014-05-27 Thread Brett Cannon
Brett Cannon added the comment: Why do you want a one-liner wrapper for the functions for the public API when they are exactly the same? -- ___ Python tracker ___ __

[issue21235] importlib's spec module create algorithm is not exposed

2014-05-27 Thread Brett Cannon
Brett Cannon added the comment: I'm not torn so let that settle your torment. =) Considering we are talking about the standard library for a language that has a mantra of "explicit is better than implicit" I think worrying about an added line to very little code since so few people muck with t

[issue21590] Systemtap and DTrace support

2014-05-27 Thread Dave Malcolm
Changes by Dave Malcolm : -- nosy: +dmalcolm ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue20689] socket.AddressFamily is absent in html pydoc

2014-05-27 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: -berker.peksag ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue21590] Systemtap and DTrace support

2014-05-27 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Bohuslav, do you have Jabber/XMPP?. Mine is "j...@jabber.org". This thing will require real time communication. I rather prefer XMPP/Jabber, but I could accept IRC :-) -- ___ Python tracker

[issue13405] Add DTrace probes

2014-05-27 Thread Bohuslav "Slavek" Kabrda
Bohuslav "Slavek" Kabrda added the comment: I opened a bug for tracking progress of development of the combined dtrace and systemtap support: http://bugs.python.org/issue21590 -- nosy: +bkabrda ___ Python tracker

[issue14776] Add SystemTap static markers

2014-05-27 Thread Bohuslav "Slavek" Kabrda
Bohuslav "Slavek" Kabrda added the comment: I opened a bug for tracking progress of development of the combined dtrace and systemtap support: http://bugs.python.org/issue21590 -- ___ Python tracker ___

[issue21590] Systemtap and DTrace support

2014-05-27 Thread Bohuslav "Slavek" Kabrda
New submission from Bohuslav "Slavek" Kabrda: This is a tracking bug for development of combined systemtap and dtrace patch for Python. The separate patches were submitted at [1] (systemtap) and [2] (dtrace). Since it was agreed that it'd be best to merge the two patches to reuse as much code

[issue20689] socket.AddressFamily is absent in html pydoc

2014-05-27 Thread Vajrasky Kok
Vajrasky Kok added the comment: I found the culprit. The AddressFamily is not registered in _socket module. I created a preliminary patch to show the culprit. -- keywords: +patch nosy: +vajrasky Added file: http://bugs.python.org/file35379/pydoc_display_AddressFamily.patch

[issue11468] Improve unittest basic example in the doc

2014-05-27 Thread Berker Peksag
Changes by Berker Peksag : -- versions: +Python 3.5 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21589] Use better idiom in unittest example

2014-05-27 Thread Ezio Melotti
Ezio Melotti added the comment: This is a duplicate of #11468. -- nosy: +ezio.melotti, rhettinger resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Improve unittest basic example in the doc ___ Python tracker

[issue21589] Use better idiom in unittest example

2014-05-27 Thread Claudiu.Popa
New submission from Claudiu.Popa: Hello. This patch proposes using `assertIn` in the first unittest example, instead of `assertTrue(x in seq)`. This is clearer and recommending it first is better for beginners. -- assignee: docs@python components: Documentation files: unittest_better_

[issue14776] Add SystemTap static markers

2014-05-27 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Could you possibly create a new issue and add me to its NOSY? -- ___ Python tracker ___ ___ Python-

[issue14776] Add SystemTap static markers

2014-05-27 Thread Bohuslav "Slavek" Kabrda
Bohuslav "Slavek" Kabrda added the comment: @jcea: So here is my proposal for dealing with this: let's take what I currently have (e.g. tracepoints for function entry/function exit) and extend my patch to also work with DTrace in a similar fashion. Then, when we have a working patch for both S

[issue16446] pdb raises BdbQuit on 'quit' when started with set_trace

2014-05-27 Thread Richard Marko
Richard Marko added the comment: Would be nice to have this commited as without this change -if self.quitting: -return # None +if not self.botframe: +self.botframe = frame it's not possible to quit Bdb (and the code it's executing) as it just returns and

[issue16099] robotparser doesn't support request rate and crawl delay parameters

2014-05-27 Thread Nikolay Bogoychev
Nikolay Bogoychev added the comment: Updated patch, all comments addressed, sorry for the 6 months delay. Please review -- Added file: http://bugs.python.org/file35377/robotparser_v3.patch ___ Python tracker _

[issue21468] NNTPLib connections become corrupt after long periods of activity

2014-05-27 Thread James Meneghello
James Meneghello added the comment: Yeah, I didn't have a lot of time so I chose just to work around it. When I get a chance I'll have a better look. Good point: I didn't think to try it with SSL off (SSL is enabled for all connections by default with this application). I'll test this and see

[issue21477] Idle: improve idle_test.htest

2014-05-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: Ned, I recently saw that some of the builtin extensions call macosxsupport. I though then that it would be better if such calls were somehow handled automatically. I have no idea how and when to make them and so I don't know if the existing calls are needed or

[issue21477] Idle: improve idle_test.htest

2014-05-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think it time to make running through all or just some of the tests more pleasant. If we reversed the order [next], [test name], test instruction, then [next] would not just up and down. If the window were set to a constant width, then it would not jump back

[issue10203] sqlite3.Row doesn't support sequence protocol

2014-05-27 Thread Claudiu.Popa
Claudiu.Popa added the comment: Thanks. Patch modified. -- Added file: http://bugs.python.org/file35376/issue10203_2.patch ___ Python tracker ___

[issue21477] Idle: improve idle_test.htest

2014-05-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset e770d8c4291c by Terry Jan Reedy in branch '2.7': Issue #21477: Add htests for Search and Replace dialogs. http://hg.python.org/cpython/rev/e770d8c4291c New changeset b8e4bb1e1090 by Terry Jan Reedy in branch '3.4': Issue #21477: Add htests for Searc

[issue10203] sqlite3.Row doesn't support sequence protocol

2014-05-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Compare with tuple: >>> (1, 2)[2**1000] Traceback (most recent call last): File "", line 1, in IndexError: cannot fit 'int' into an index-sized integer -- ___ Python tracker