[issue4832] idle filename extension

2012-07-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 677a9326b4d4 by Ned Deily in branch 'default': Issue #4832: Modify IDLE to save files with .py extension by http://hg.python.org/cpython/rev/677a9326b4d4 -- nosy: +python-dev ___ Python tracker

[issue4832] idle filename extension

2012-07-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree. Go ahead. But what do you think of applying to 2.7 and or 3.2? I want to add a sentence to Idle help, which I want to edit for the tooltips issue also. But that is not a rush. -- ___ Python tracker

[issue4832] idle filename extension

2012-07-12 Thread Ned Deily
Ned Deily added the comment: Terry, are you planning to commit this? If not, I can do it. It would be good to get this into 3.3.0b2 since it does fix an important usability issue. -- ___ Python tracker __

[issue4832] idle filename extension

2012-07-10 Thread Roger Serwy
Roger Serwy added the comment: I tried issue4832_rev2.patch on Ubuntu 11.04 with Tk 8.5 and it still behaves as Terry described. -- ___ Python tracker ___ __

[issue4832] idle filename extension

2012-07-09 Thread Ned Deily
Ned Deily added the comment: As usual, there seem to be small but significant differences among the implementations. Testing with the three OS X Tk implementations shows that currently: 1. Aqua Tk 8.5 and Aqua Tk 8.4 do not supply a default extension when saving. With patch issue4832.diff ap

[issue4832] idle filename extension

2012-07-09 Thread Roger Serwy
Roger Serwy added the comment: Your description applied to the behavior on Ubuntu 11.04. -- ___ Python tracker ___ ___ Python-bugs-lis

[issue4832] idle filename extension

2012-07-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: I tested with defaultextension='' on Windows and it works well. If no extension is entered (no '.' in name), .py or .txt is added for the .py/w and .txt filetype choices. If there is a . in the name, nothing is added. If one wants x.y.py, one must type the wh

[issue4832] idle filename extension

2012-07-09 Thread Roger Serwy
Roger Serwy added the comment: issue4832_rev1.patch is a complete patch against 3.3. This is also part of issue13504, "7) ANNOYANCE: It’s too easy to forget the .py extension when saving a file." -- stage: -> patch review Added file: http://bugs.python.org/file26336/issue4832_rev1.pa

[issue4832] idle filename extension

2011-12-14 Thread Roger Serwy
Roger Serwy added the comment: I was unable to produce the crash that Pavel described in msg87703. Just adding "defaultextension=''" solves this issue for Windows and still preserves the correct behavior on Linux. Amaury's quote of tcl/tk documentation in msg87695 mentions this as well. I

[issue4832] idle filename extension

2011-03-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: The behavior (for Windows) I expect and would like is that the default extension would be .py, .txt, or nothing, depending on the selection in the 'save as type' box in the SaveAS dialog. (.pyw, being rare, would have to be explicitly typed.) Of course, doubl

[issue4832] idle filename extension

2011-03-08 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +terry.reedy versions: +Python 3.3 -Python 2.7, Python 3.1 ___ Python tracker ___ ___ Python-bugs-

[issue4832] idle filename extension

2010-07-20 Thread Guilherme Polo
Guilherme Polo added the comment: Sorry but this is just bikeshedding, whoever commits can make this change or if it had been committed without this "improvement" then anyone could adjust without needing a new issue. -- ___ Python tracker

[issue4832] idle filename extension

2010-07-20 Thread Brian Curtin
Brian Curtin added the comment: I would forget about slicing or using startswith. "win32" is the platform name for Python on Windows whether or not it's 64-bit (see PC/pyconfig.h), so I'd just check """sys.platform == 'win32'""" -- nosy: +brian.curtin

[issue4832] idle filename extension

2010-07-20 Thread Tal Einat
Tal Einat added the comment: On Windows, I can't think of any common reason to want to save a file edited in IDLE without the .py extension. On the other hand, accidentally forgetting the .py extension is annoying, and users have come to expect a default extension being added by applications

[issue4832] idle filename extension

2009-08-04 Thread Guilherme Polo
Guilherme Polo added the comment: > With this new patch, is it possible to create a file without extension > on Windows? It is tricky but, answering your question, you could enter a name ending with a period to save without an extension. It seems this isn't going anywhere then. The default beh

[issue4832] idle filename extension

2009-08-04 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: With this new patch, is it possible to create a file without extension on Windows? -- ___ Python tracker ___ _

[issue4832] idle filename extension

2009-08-01 Thread Guilherme Polo
Guilherme Polo added the comment: I'm attaching a very similar patch that I tested on Linux and Windows. It just combines the default behaviour with the details required for Windows, that is, the default extension is set to '.py' for Windows and '' elsewhere (the default). -- Added file

[issue4832] idle filename extension

2009-05-13 Thread Pavel Kosina
Pavel Kosina added the comment: Trying to patch the latest revision 72608 and it didnt work, here on winxp. C:\prg\Python30\Lib\idlelib>svn update Restored 'IOBinding.py' At revision 72608. C:\prg\Python30\Lib\idlelib>patch IOBinding.py defaultextension.patch --verbose Hmm... Looks like a un

[issue4832] idle filename extension

2009-05-13 Thread Daniel Diniz
Daniel Diniz added the comment: Amaury, Your patch also forces '.py' to any saved file on Linux, but using 'defaultextension = ""' it works correctly here. Does if fix things on Windows? -- ___ Python tracker _

[issue4832] idle filename extension

2009-05-13 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: I think I found the relevant documentation: http://wiki.tcl.tk/1842 """ On Unix, when typing a filename without extension, the first extension belonging to the currently selected filetype will be appended to the filename. On Windows, this is not the case,

[issue4832] idle filename extension

2009-04-26 Thread Daniel Diniz
Daniel Diniz added the comment: I get the .py automatically on Linux, is this an intended behavior difference or should this issue be considered a bug instead? -- nosy: +ajaksu2, gpolo priority: -> normal type: behavior -> feature request versions: -Python 2.5, Python 2.6, Python 3.0

[issue4832] idle filename extension

2009-01-04 Thread Pavel Kosina
New submission from Pavel Kosina : There should not be necessity to write filename *with extension* at the saving dialog. It should be enough, at least on Windows, to put there just "hello" and get "hello.py". It is really complication especially for beginners. If they, as they are used to from a