Re: [Tutor] release a script with non-standard dependencies

2012-12-19 Thread eryksun
On Wed, Dec 19, 2012 at 6:45 PM, Steven D'Aprano wrote: > > 4) Bundle the modules together in one file. If you zip up the modules > in a zip file as if it were a package, *without* the package directory, > then change the file extension to .py, you can run it as if it were a > single Python script

Re: [Tutor] release a script with non-standard dependencies

2012-12-19 Thread Oscar Benjamin
On 19 December 2012 23:45, Steven D'Aprano wrote: > On 20/12/12 04:37, rail shafigulin wrote: > >> I'm attempting to write a script with command-line arguments. Based on >> some >> reading I have done online and some advice from this mailing list I'm >> going >> to use docopt and schema modules. T

Re: [Tutor] release a script with non-standard dependencies

2012-12-19 Thread Steven D'Aprano
On 20/12/12 04:37, rail shafigulin wrote: I'm attempting to write a script with command-line arguments. Based on some reading I have done online and some advice from this mailing list I'm going to use docopt and schema modules. The problem I'm facing is that I'd like to be able to give this scri

Re: [Tutor] still confused about for loops

2012-12-19 Thread Brian van den Broek
On 19 December 2012 01:19, Brandon Merritt wrote: > Sorry, I am just so confused and aggravated as to why this won't work - why > doesn't it print out the whole list? : > > number = raw_input('Enter a 7-unit number: ') > > for i in number: > count = [] > count.append(i) > > print count > >

Re: [Tutor] release a script with non-standard dependencies

2012-12-19 Thread Andre' Walker-Loud
Hi Rail, > I'm attempting to write a script with command-line arguments. Based on some > reading I have done online and some advice from this mailing list I'm going > to use docopt and schema modules. The problem I'm facing is that I'd like to > be able to give this script to anyone who needs i

[Tutor] release a script with non-standard dependencies

2012-12-19 Thread rail shafigulin
I'm attempting to write a script with command-line arguments. Based on some reading I have done online and some advice from this mailing list I'm going to use docopt and schema modules. The problem I'm facing is that I'd like to be able to give this script to anyone who needs it by just using one f

Re: [Tutor] sys.getfilesystemencoding()

2012-12-19 Thread eryksun
On Wed, Dec 19, 2012 at 5:43 AM, Albert-Jan Roskam wrote: > >So MBCS is just a collective noun for whatever happens to be the >installed/available codepage of the host computer (at least with >CP_ACP)? To be clear, the "mbcs" encoding in Python uses CP_ACP. MBCS means multibyte character set. The

Re: [Tutor] How can I overwrite the previous version on linux ?

2012-12-19 Thread Prasad, Ramit
Steven D'Aprano wrote: > On 19/12/12 16:52, Dae James wrote: > > My linux distribution is CentOs 6.3. And python attached to the OS is 2.6. > > How can I overwrite the previous version with python 2.7 ? Or how can I > >uninstall the previous version? > > Why? Do you like breaking your operating sy

Re: [Tutor] need help with python for counter

2012-12-19 Thread bob gailer
On 12/19/2012 12:40 AM, Brandon Merritt wrote: I feel silly, but I'm having the darndest time trying to figure out why this for counter won't work. I know that there is the count method for the string class, but I was just trying to do it the syntactical way to prove myself that I know the very

Re: [Tutor] How can I overwrite the previous version on linux ?

2012-12-19 Thread Steven D'Aprano
On 19/12/12 16:52, Dae James wrote: My linux distribution is CentOs 6.3. And python attached to the OS is 2.6. How can I overwrite the previous version with python 2.7 ? Or how can I uninstall the previous version? Why? Do you like breaking your operating system? Never, ever mess with the oper

Re: [Tutor] sys.getfilesystemencoding()

2012-12-19 Thread Albert-Jan Roskam
> > From: eryksun >To: Albert-Jan Roskam >Cc: Python Mailing List >Sent: Tuesday, December 18, 2012 4:07 PM >Subject: Re: [Tutor] sys.getfilesystemencoding() > >On Tue, Dec 18, 2012 at 8:13 AM, Albert-Jan Roskam wrote: >> >>In windows xp, the characters can,

Re: [Tutor] How can I overwrite the previous version on linux ?

2012-12-19 Thread Alan Gauld
On 19/12/12 05:52, Dae James wrote: My linux distribution is CentOs 6.3. And python attached to the OS is 2.6. How can I overwrite the previous version with python 2.7 ? Or how can I uninstall the previous version? You sh

Re: [Tutor] need help with python for counter

2012-12-19 Thread Alan Gauld
On 19/12/12 05:40, Brandon Merritt wrote: the string class, but I was just trying to do it the syntactical way to prove myself that I know the very basics. Which is not a bad thing. just returning 1 or 0, even if I very clearly make sure that I specify at least 4 instances of the digit in my

Re: [Tutor] need help with python for counter

2012-12-19 Thread Dave Angel
On 12/19/2012 12:40 AM, Brandon Merritt wrote: > I feel silly, but I'm having the darndest time trying to figure out why > this for counter won't work. I know that there is the count method for the > string class, but I was just trying to do it the syntactical way to prove > myself that I know the

Re: [Tutor] Your thoughts on using Python 2.4.x?

2012-12-19 Thread Alan Gauld
On 19/12/12 03:54, boB Stepp wrote: systems. Now after the upgrades some machines now have Python 2.4.4 and others Python 2.4.6. For the purposes of creating/manipulating text files and running Solaris-flavored Unix commands, is there anything I should be specially aware of? The major versions

Re: [Tutor] Your thoughts on using Python 2.4.x?

2012-12-19 Thread Walter Prins
On 19 December 2012 03:54, boB Stepp wrote: > BTW, does 2.4.x come with Tkinter standard? > Yes: http://docs.python.org/release/2.4.4/lib/module-Tkinter.html ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://

Re: [Tutor] How can I overwrite the previous version on linux ?

2012-12-19 Thread Kushal Kumaran
Dae James writes: > My linux distribution is CentOs 6.3. And python attached to the OS is 2.6. > How can I overwrite the previous version with python 2.7 ? Or how can I > uninstall the previous version? > This is not recommended. The python version supplied with your OS might be used by a num