[issue35769] IDLE: change new file name from ''Untitled" to "untitled"

2019-01-29 Thread Cheryl Sabella
Change by Cheryl Sabella : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue35769] IDLE: change new file name from ''Untitled" to "untitled"

2019-01-17 Thread miss-islington
miss-islington added the comment: New changeset 5f9a168a313485791d85250e5bf673b66bd51244 by Miss Islington (bot) in branch '3.7': bpo-35769: Change IDLE's name for new files from 'Untitled' to 'untitled' (GH-11602)

[issue35769] IDLE: change new file name from ''Untitled" to "untitled"

2019-01-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +11325 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35769] IDLE: change new file name from ''Untitled" to "untitled"

2019-01-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset a902239f22c322d8988c514dd1c724aade3e4ef3 by Terry Jan Reedy in branch 'master': bpo-35769: Change IDLE's name for new files from 'Untitled' to 'untitled' (GH-11602)

[issue35769] IDLE: change new file name from ''Untitled" to "untitled"

2019-01-17 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: -11324 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35769] IDLE: change new file name from ''Untitled" to "untitled"

2019-01-17 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch, patch pull_requests: +11323, 11324 stage: commit review -> patch review ___ Python tracker ___

[issue35769] IDLE: change new file name from ''Untitled" to "untitled"

2019-01-17 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +11323 stage: commit review -> patch review ___ Python tracker ___

[issue35769] IDLE: change new file name from ''Untitled" to "untitled"

2019-01-17 Thread Terry J. Reedy
New submission from Terry J. Reedy : Conform to PEP 8. -- assignee: terry.reedy components: IDLE messages: 333943 nosy: terry.reedy priority: normal severity: normal stage: commit review status: open title: IDLE: change new file name from ''Untitled" to "untitled" ty

Python3 - temporarily change the file encoding

2014-03-21 Thread Helmut Jarausch
Hi, my locale is en_US.iso88591 But now I'd like to process a restructuredtext file which is encoded in utf-8. rst2html has #!/usr/bin/python3.3 # $Id: rst2html.py 4564 2006-05-21 20:44:42Z wiemann $ # Author: David Goodger good...@python.org # Copyright: This module has been placed in the

Re: Python3 - temporarily change the file encoding

2014-03-21 Thread Peter Otten
Helmut Jarausch wrote: Hi, my locale is en_US.iso88591 But now I'd like to process a restructuredtext file which is encoded in utf-8. rst2html has #!/usr/bin/python3.3 # $Id: rst2html.py 4564 2006-05-21 20:44:42Z wiemann $ # Author: David Goodger good...@python.org # Copyright:

Re: Change a file type in Python?

2013-12-01 Thread Mark Lawrence
On 01/12/2013 00:04, Eamonn Rea wrote: Thanks for the help! Ok, I'll look into the mailing list. It's very useful, you can even see things in context, which is conspicious by its absence above :) -- Python is the second best programming language in the world. But the best has yet to be

Re: Change a file type in Python?

2013-12-01 Thread Steven D'Aprano
On Sun, 01 Dec 2013 16:03:17 +1100, Chris Angelico wrote: Most of it is getting annoyed at the results of 3, and then attacking 3. I know the feeling. I've never trusted 3, I've always felt that it's plotting something. And it looks like half an 8, but it's not. What's with that? -- Steven

Change a file type in Python?

2013-11-30 Thread Eamonn Rea
When opening a file, you'd say whether you want to read or write to a file. This is fine, but say for example later on in the program I change my mind and I want to write to a file instead of reading it. Yes, I could just say 'r+w' when opening the file, but what if I don't know if I'm going to

Re: Change a file type in Python?

2013-11-30 Thread Chris Angelico
On Sun, Dec 1, 2013 at 9:45 AM, Eamonn Rea eamonn...@gmail.com wrote: Is it possible to do so without opening the file again and using the same file object? In the general sense, no, but you may be able to abuse things terribly by calling __init__ on an existing object. The only advantage of

Re: Change a file type in Python?

2013-11-30 Thread Eamonn Rea
Thanks for the help! Ok, I'll look into the mailing list. -- https://mail.python.org/mailman/listinfo/python-list

Re: Change a file type in Python?

2013-11-30 Thread Steven D'Aprano
On Sat, 30 Nov 2013 14:45:18 -0800, Eamonn Rea wrote: When opening a file, you'd say whether you want to read or write to a file. This is fine, but say for example later on in the program I change my mind and I want to write to a file instead of reading it. Yes, I could just say 'r+w' when

Re: Change a file type in Python?

2013-11-30 Thread rusi
On Sunday, December 1, 2013 5:34:11 AM UTC+5:30, Eamonn Rea wrote: Thanks for the help! Ok, I'll look into the mailing list. [Assuming you are using GG with firefox on linux] All you need to do is 1. Install 'Its all text' FF addon 2. Point the 'editor' of 'Its all text' to the below python

Re: Change a file type in Python?

2013-11-30 Thread Chris Angelico
On Sun, Dec 1, 2013 at 2:02 PM, rusi rustompm...@gmail.com wrote: On Sunday, December 1, 2013 5:34:11 AM UTC+5:30, Eamonn Rea wrote: Thanks for the help! Ok, I'll look into the mailing list. [Assuming you are using GG with firefox on linux] All you need to do is 1. Install 'Its all text'

Re: Change a file type in Python?

2013-11-30 Thread rusi
On Sunday, December 1, 2013 8:52:03 AM UTC+5:30, Chris Angelico wrote: On Sun, Dec 1, 2013 at 2:02 PM, rusi wrote: On Sunday, December 1, 2013 5:34:11 AM UTC+5:30, Eamonn Rea wrote: Thanks for the help! Ok, I'll look into the mailing list. [Assuming you are using GG with firefox on

Re: Change a file type in Python?

2013-11-30 Thread Chris Angelico
On Sun, Dec 1, 2013 at 3:58 PM, rusi rustompm...@gmail.com wrote: I think we are dealing with 3 completely separable problems: [Slightly changing what I earlier wrote…] 1. Undesirable elements -- spam, troll and more exotic 2. Immature noobs -- literally or almost literally kids 3. Stupid

change a file with a context manager

2011-12-13 Thread Andrea Crotti
So I have the following problem, I need something to copy a file to a certain position and restore it after. So I wrote this simple context manager: class WithCorrectEasyInstall(object): def __enter__(self): import pkg_resources from shutil import copyfile

Re: change a file with a context manager

2011-12-13 Thread Andrea Crotti
On 12/13/2011 10:59 AM, Andrea Crotti wrote: So I have the following problem, I need something to copy a file to a certain position and restore it after. So I wrote this simple context manager: class WithCorrectEasyInstall(object): def __enter__(self): import pkg_resources

Re: change a file with a context manager

2011-12-13 Thread Terry Reedy
On 12/13/2011 9:21 AM, Andrea Crotti wrote: Another possible option is to just add to the path everything contained in that correct easy_install.pth file. Or is there a way to reload the path settings? If you are talking about sys.path, you can certainly copy, mutate or replace, and restore

How to change the file creation timestamp?

2011-11-25 Thread 刘振海
Hi, I want to change the file creation timestamp using python, but I can not find a solution to do it. I know the way to change the file creation timestamp in C under Windows, but I want to change it using python. I really need help! Regards, Liu Zhenhai -- http://mail.python.org/mailman

Re: How to change the file creation timestamp?

2011-11-25 Thread Alec Taylor
time mtime = st[ST_MTIME] #modification time new_mtime = mtime + (4*3600) #new modification time #modify the file timestamp os.utime(f,(atime,new_mtime)) On Fri, Nov 25, 2011 at 11:47 PM, 刘振海 1989l...@gmail.com wrote: Hi, I want to change the file creation timestamp using python

Re: How to change the file creation timestamp?

2011-11-25 Thread 刘振海
timestamp os.utime(f,(atime,new_mtime)) On Fri, Nov 25, 2011 at 11:47 PM, 刘振海 1989l...@gmail.com wrote: Hi, I want to change the file creation timestamp using python, but I can not find a solution to do it. I know the way to change the file creation timestamp in C under Windows

Re: How to change the file creation timestamp?

2011-11-25 Thread Steven D'Aprano
().endswith('crw'): st = os.stat(f) atime = st[ST_ATIME] #access time mtime = st[ST_MTIME] #modification time The original poster asks for how to change the file creation timestamp. (The poster assumes that there is a creation timestamp, which is not necessarily the case -- many file

Re: Change on file

2006-10-25 Thread Fulvio
*** Your mail has been scanned by InterScan MSS. *** On Tuesday 24 October 2006 20:22, Alan Franzoni wrote: it could put the system under severe workload. Thank you for the enlightment :-) In my case it's meant to check a couple of files, but no more

Re: Change on file

2006-10-25 Thread Ben Finney
Fulvio [EMAIL PROTECTED] writes: *** Your mail has been scanned by InterScan MSS. *** Fulvio, something between your fingers and the Python mailing list is causing this to appear at on *every* message you send to this list. Please do whatever you need

Change on file

2006-10-24 Thread Fulvio
*** Your mail has been scanned by InterScan MSS. *** Hello, I was thinking about use md5 check to se if a file had changes since last check. Am I correct? Is there any other light method? F -- http://mail.python.org/mailman/listinfo/python-list

Re: Change on file

2006-10-24 Thread Sybren Stuvel
Fulvio enlightened us with: I was thinking about use md5 check to se if a file had changes since last check. Am I correct? You can do that, but a check on the mtime (os.stat) would be a lot easier. Sybren -- Sybren Stüvel Stüvel IT - http://www.stuvel.eu/ --

Re: Change on file

2006-10-24 Thread Marshall
You could use ctime to see it by the time. MD5 it's a most secure way to a file that CAN'T be modified. If you just want to see if the file has been modified (like to make a cache), use ctime. -- http://mail.python.org/mailman/listinfo/python-list

Re: Change on file

2006-10-24 Thread Alan Franzoni
Il Tue, 24 Oct 2006 19:47:43 +0800, Fulvio ha scritto: Hello, I was thinking about use md5 check to se if a file had changes since last check. Am I correct? Is there any other light method? It's OK, but if you have a lot of files to check and they're large, and changes frequent, it could