Re: [Tutor] How to replace the '\'s in a path with '/'s?

2011-07-30 Thread Alexander Etter
On Jul 31, 2011, at 1:28, "Richard D. Moores" wrote: > 64-bit Vista > Python 3.2.1 > > I would like to write a function that would take a path such as > 'C:\Users\Dick\Desktop\Documents\Notes\College Notes.rtf' > and return 'C:/Users/Dick/Desktop/Documents/Notes/College Notes.rtf' . I've > tri

[Tutor] Mailing list documentation

2011-07-31 Thread Alexander Etter
Hello everyone, is there a page that contains documentation for this mailing list? I've seen a few users top post and others advise against it; if there isn't a page listing conventions let's create it and if there is what is it's URL and how do you suggest users read it? Alexander _

Re: [Tutor] GNU Emacs and Python

2011-11-01 Thread Alexander Etter
countered including a wikipedia page I believe >there is a satiric starwars-like cold-war feud between users of vi and emacs. I'm neutral and won't judge an entity or patronize one for their use of free will. I'm happy. Forgive me if I appear too anything. Good Day. Alexander Etter ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] login window using Tk

2011-11-01 Thread Alexander Etter
On Nov 1, 2011, at 12:47, Chris Hare wrote: > > I am working on a python Tk program which involves a login window and I am > looking for some advice. > > Currently the code I have creates a window (Toplevel) where the login > controls are and I am running that using a main loop for the window

Re: [Tutor] GNU Emacs and Python

2011-11-01 Thread Alexander Etter
On Nov 1, 2011, at 16:06, Wayne Werner wrote: > On Tue, Nov 1, 2011 at 6:31 AM, Alexander Etter wrote: > There is a learning curve. > > Yes, and for a graphical comparison of learning curves: > http://jeetworks.org/files/images/emacs_learning_curves.png > > ;) > &

[Tutor] Find all strings that....

2011-11-10 Thread Alexander Etter
Hi. My friend gave me a good wake up exercise which I do not want you to solve for me: find all strings which can be converted to alpha with at most two operations, where alpha is some string constant, and a substring of at least length three of alpha must be in the answers. So, my question i

Re: [Tutor] Find all strings that....

2011-11-10 Thread Alexander Etter
On Nov 10, 2011, at 13:52, Francesco Loffredo wrote: > Alexander Etter wrote: >> >> Hi. My friend gave me a good wake up exercise which I do not want you to >> solve for me: find all strings which can be converted to alpha with at most >> two operations, where al

Re: [Tutor] Suggest Book

2011-11-11 Thread Alexander Etter
On Nov 11, 2011, at 9:29, Pankaj Jakhar wrote: > Hello > > Please suggest me the best book for Python from which I can learn basics to > advanced Python. > > Thank you. > > PankaJ Jakhar > I'm sure Alan or one of our veteran list members will have something to say, but at my sch

Re: [Tutor] Shorten Code.

2011-11-18 Thread Alexander Etter
to have already created the variables >somewhere and unless there >is a big list its not usually >worth while. Alexander Etter > ___ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > http://mail.python.

Re: [Tutor] Blacklist?

2011-11-27 Thread Alexander Etter
I'm top posting because the link below is spam. Does the email address who sent the message get blacklisted or punished? Alexander On Nov 27, 2011, at 4:45, Mario Cavett wrote: > Hola. > finally my aunt gave me a push in the right direction this turned my luck > around now im making my way to

Re: [Tutor] Blacklist?

2011-11-27 Thread Alexander Etter
On Nov 27, 2011, at 17:55, Steven D'Aprano wrote: > Alexander Etter wrote: >> I'm top posting because the link below is spam. > > > Why on earth do you think that it is acceptable to repeat spam on the list > just because you top post? > > If you have

Re: [Tutor] list mail formatting

2011-12-22 Thread Alexander Etter
On Dec 22, 2011, at 4:10, Alan Gauld wrote: > On 22/12/11 03:34, Alexander wrote: > >>> We request, and advise where possible, on setting up email >>> in plain text, but we do not insist > >>> It's a frustration to most folks who were brought up on >>> plain-text email. >> >> I'm glad I came

Re: [Tutor] Zip, tar, and file handling

2012-01-08 Thread Alexander Etter
On Jan 6, 2012, at 22:57, daedae11 wrote: > I was asked to write a program to move files between ZIP(.zip) and > TAR/GZIP(.tgz/.tar.gz) or TAR/BZIP2(.tbz/.tar.bz2) archive. > > my code is: > > > import zipfile; > import tarfile; > import os; > from os import path ; > > def showAllFiles(

Re: [Tutor] exercise with classes

2012-02-02 Thread Alexander Etter
On Feb 2, 2012, at 12:36, Tonu Mikk wrote: > I feel stumped and don't know how to go about creating this game with two > classes. > > So far I have searched for info on how to pass variables from one class to > another and have been able to create a small two class program (attached). > Tha