[Tutor] Online Scripting

2008-09-07 Thread Omer
. (Although, if there's no choice that's what I'll do.) Sorry about this message's length, Help will be appreciated, thank you for your time. Omer. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Looking at a String as a Struct?

2008-09-11 Thread Omer
name:")] self.Surname = str[str.find("Last name:")+len("Last name:"):str.find("date_of_birth")] And just create a list of these, adding various get methods for easy information retrieval. (Here's for wandering whether my way of doing it counts as Pythonic.

Re: [Tutor] Win32 extensions

2008-09-13 Thread Omer
On Fri, Sep 12, 2008 at 2:31 AM, Alan Gauld <[EMAIL PROTECTED]>wrote: > Yes if you spend a lot of money. > You can buy a set of libraries from a comany called Bristol > Technology (I think, it's over 8 years since I used it!) that allows > you to build Windows software on a Unix box. A bit like cy

Re: [Tutor] Printing Scripts with color/good formatting

2008-09-14 Thread Omer
I went through a similar process: I got used to PyWin on XP, then when switching to Vista pywin did not install with Python. So I simply downloaded and installed it. (link: http://sourceforge.net/projects/pywin32/ ) Hth, Omer. On Sat, Sep 13, 2008 at 5:41 AM, Mike Meisner <[EMAIL PROTEC

Re: [Tutor] Current path (of program)

2008-09-26 Thread Omer
No, I shouldn't think it is. Lots o' folk use this list in archived mode and the important bit is that each question comes with an answer, regardless of the actual persons involved. On Thu, Sep 25, 2008 at 10:58 PM, Adrian Greyling <[EMAIL PROTECTED] > wrote: > Is it a faux pas to answer your own

Re: [Tutor] Tutor Archives and PC Crash

2008-10-04 Thread Omer
(Or you could start using Gmail, which conveniantly archives Qs with their As, based on subject line,) On Wed, Oct 1, 2008 at 12:26 AM, Alan Gauld <[EMAIL PROTECTED]>wrote: > > "Danny Yoo" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > >> Yup. See: >> >> http://mail.python.org

Re: [Tutor] Text Scatter Plots?

2008-10-04 Thread Omer
You could check out Google Visualization API. supposed to be fairly nifty; haven't had time to check it out myself though. On Wed, Oct 1, 2008 at 4:49 PM, R. Alan Monroe <[EMAIL PROTECTED]>wrote: > > Is there a text graphics module that does say scatter plots or > > histograms? I'm thinking of st

Re: [Tutor] dealing with user input whose value I don't know

2008-10-05 Thread Omer
On Fri, Oct 3, 2008 at 9:45 AM, David <[EMAIL PROTECTED]> wrote: > Here is the code: > > def main(): > import string > Hey, lagging a bit behind the list, "import string" is unnecessary, mate. ___ Tutor maillist - Tutor@python.org http://mail.pytho

[Tutor] Class Extend Help

2008-12-20 Thread Omer
basically want fetch(url.com).content to replace urlopen(url.com).read() Mind, content is not a method. Thoughts? Thx. Omer. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] Fwd: Class Extend Help

2008-12-23 Thread Omer
: > urlopen.__init__(self, *args) > self.content = self.read() > > > This probably doesn't behave exactly the same way as the google class, > but it should be similar enough? > --- > Richard "Roadie Rich" Lovely, part of the JNP|UK Fam

Re: [Tutor] Fwd: Class Extend Help

2008-12-28 Thread Omer
Rich" Lovely, part of the JNP|UK Famile > www.theJNP.com > > > > 2008/12/23 Kent Johnson : > > On Tue, Dec 23, 2008 at 9:31 AM, Omer > > > > wrote: > > > >>>>> from urllib import urlopen > >>>>> class fetch(urlopen)

[Tutor] RE Silliness

2009-01-04 Thread Omer
string optional- only a single character via []s. I for some reason thuoght it'll be ()s, but no help there- it just returns only the . Anybody? Thx, Omer. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] RE Silliness

2009-01-05 Thread Omer
r.url'] does work. Which is what had me frowning. Also, this ugly url mask is working: >>> UglyUrlMask = r"(http://[\w\Q./\?=\R]+|http://[\w\Q./\?=\R]+)" >>> re.findall(UglyUrlMask,text) ['http://this.is.a/url?header=null', 'http://and.anoth