Re: Change a file type in Python?

2013-11-30 Thread Chris Angelico
On Sun, Dec 1, 2013 at 3:58 PM, rusi 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 technology -- in t

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 wit

Re: Change a file type in Python?

2013-11-30 Thread Chris Angelico
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 linux] > > All you need to do is > 1. Install 'Its all text' FF addon >

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: Python project

2013-11-30 Thread Jason Friedman
> To be perfectly honest, this is much too large a project for you. First > read some python tutorials and learn how to code in python. If you work it > every day, maybe you can kind of understand what its about in a very > superficial sense in a month. However, if you are having fun learning, t

Re: Python Unicode handling wins again -- mostly

2013-11-30 Thread Chris Angelico
On Sun, Dec 1, 2013 at 12:27 PM, Roy Smith wrote: >> http://www.theregister.co.uk/2010/11/26/bofh_2010_episode_18/ >> >> ChrisA > > What means "PFY"? The only thing I can think of is "Poor F---ing > Yankee" :-) In the context of the BOFH, it stands for Pimply-Faced Youth and means BOFH's assista

Re: Python Unicode handling wins again -- mostly

2013-11-30 Thread Roy Smith
In article , Chris Angelico wrote: > On Sun, Dec 1, 2013 at 11:54 AM, Steven D'Aprano > wrote: > > On Sat, 30 Nov 2013 18:52:48 -0600, Tim Chase wrote: > > > >> On 2013-12-01 00:22, Steven D'Aprano wrote: > >>> * KELVIN SIGN versus LATIN CAPITAL LETTER A > >> > >> I should hope so ;-) > > > > >

Re: Python Unicode handling wins again -- mostly

2013-11-30 Thread Chris Angelico
On Sun, Dec 1, 2013 at 11:54 AM, Steven D'Aprano wrote: > On Sat, 30 Nov 2013 18:52:48 -0600, Tim Chase wrote: > >> On 2013-12-01 00:22, Steven D'Aprano wrote: >>> * KELVIN SIGN versus LATIN CAPITAL LETTER A >> >> I should hope so ;-) > > > I blame my keyboard, where letters A and K are practicall

Re: Python Unicode handling wins again -- mostly

2013-11-30 Thread Tim Chase
On 2013-12-01 00:54, Steven D'Aprano wrote: > On Sat, 30 Nov 2013 18:52:48 -0600, Tim Chase wrote: > > > On 2013-12-01 00:22, Steven D'Aprano wrote: > >> * KELVIN SIGN versus LATIN CAPITAL LETTER A > > > > I should hope so ;-) > > > I blame my keyboard, where letters A and K are practical

Re: Python Unicode handling wins again -- mostly

2013-11-30 Thread Steven D'Aprano
On Sat, 30 Nov 2013 18:52:48 -0600, Tim Chase wrote: > On 2013-12-01 00:22, Steven D'Aprano wrote: >> * KELVIN SIGN versus LATIN CAPITAL LETTER A > > I should hope so ;-) I blame my keyboard, where letters A and K are practically right next to each other, only seven letters apart. An easy typo

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: Python Unicode handling wins again -- mostly

2013-11-30 Thread Tim Chase
On 2013-12-01 00:22, Steven D'Aprano wrote: > * KELVIN SIGN versus LATIN CAPITAL LETTER A I should hope so ;-) -tkc -- https://mail.python.org/mailman/listinfo/python-list

Re: Python Unicode handling wins again -- mostly

2013-11-30 Thread Steven D'Aprano
On Sun, 01 Dec 2013 11:37:30 +1300, Gregory Ewing wrote: > Which makes it even sillier to have an 'ffi' character in this day and > age, when you can simply space the characters so that they overlap. It's in Unicode to support legacy character sets that included it[1]. There are a bunch of simil

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 Chris Angelico
On Sun, Dec 1, 2013 at 9:45 AM, Eamonn Rea 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 that would be if yo

Re: Python Unicode handling wins again -- mostly

2013-11-30 Thread Ned Batchelder
On 11/30/13 5:37 PM, Gregory Ewing wrote: wxjmfa...@gmail.com wrote: And do you know the origin of this typographical feature? Because, mechanically, the dot of the "i" broke too often. In my opinion, a very plausible explanation. It doesn't sound very plausible to me, because there are a lot

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: Python Unicode handling wins again -- mostly

2013-11-30 Thread Gregory Ewing
Steven D'Aprano wrote: On Sat, 30 Nov 2013 00:37:17 -0500, Roy Smith wrote: So, who am I to argue with the people who decided that I needed to be able to type a "PILE OF POO" character. Blame the Japanese for that. Apparently some of the biggest users of Unicode are the various Japanese mobi

Re: Python Unicode handling wins again -- mostly

2013-11-30 Thread Gregory Ewing
wxjmfa...@gmail.com wrote: And do you know the origin of this typographical feature? Because, mechanically, the dot of the "i" broke too often. In my opinion, a very plausible explanation. It doesn't sound very plausible to me, because there are a lot more stand-alone 'i's in English text than

Re: Python Unicode handling wins again -- mostly

2013-11-30 Thread wxjmfauth
Le samedi 30 novembre 2013 03:08:49 UTC+1, Roy Smith a écrit : > > > > The whole idea of ligatures like fi is purely typographic. The crossbar > > on the "f" (at least in some fonts) runs into the dot on the "i". > > Likewise, the top curl on an "f" run into the serif on top of the "l" >

Re: any lib to convert 3200+ pic to animated gif?

2013-11-30 Thread Chris Angelico
On Sun, Dec 1, 2013 at 1:21 AM, oyster wrote: > I want to make an animated GIF from 3200+ png > I searched and found http://code.google.com/p/visvis/source/browse/#hg/vvmovie > and I wrote: > allPic=glob.glob('*.png') > allPic.sort() > allPic=[Image.open(i) for i in allPic] > writeGif('lala3.gif',

any lib to convert 3200+ pic to animated gif?

2013-11-30 Thread oyster
I want to make an animated GIF from 3200+ png I searched and found http://code.google.com/p/visvis/source/browse/#hg/vvmovie and I wrote: [code] allPic=glob.glob('*.png') allPic.sort() allPic=[Image.open(i) for i in allPic] writeGif('lala3.gif',allPic, duration=0.5, dither=0) [/code] However I got

Re: Managing Google Groups headaches

2013-11-30 Thread pecore
Dennis Lee Bieber writes: > [NNTP] clients provide full-fledged editors and conversely full-fledged editors provide NNTP clients -- https://mail.python.org/mailman/listinfo/python-list

Re: Python Unicode handling wins again -- mostly

2013-11-30 Thread Mark Lawrence
On 30/11/2013 02:08, Roy Smith wrote: In article <529934dc$0$29993$c3e8da3$54964...@news.astraweb.com>, Steven D'Aprano wrote: (8) What's the uppercase of "baffle" spelled with an ffl ligature? Like most other languages, Python 3.2 fails: py> 'baffle'.upper() 'BAfflE' but Python 3.3 passe