[Tutor] MiniWiki

2007-02-27 Thread Kirk Bailey
OK, 1.3.0 is coming along well, and works pretty nice. BUT... It lives inside my laptop, and I want to be able to duck out and go back to the regular webpages I put into it. Remember, I have a server in there, tinyweb. So there it is, working well, and I put in a link to referr back to localhos

Re: [Tutor] httpd in your laptop?!? serve web pages and wikis in your notebook?

2007-02-27 Thread Luke Paireepinart
Kirk Bailey wrote: > ok, I realized SOME TIME BACK that to run MANY THINGS in your windows > computer you need a server in there- and a nice SMALL one if it is going > to coexist with everything else going on. You need a server for what now? Web pages? FTP? SVN? I can't think of much else. I r

[Tutor] httpd in your laptop?!? serve web pages and wikis in your notebook?

2007-02-27 Thread Kirk Bailey
ok, I realized SOME TIME BACK that to run MANY THINGS in your windows computer you need a server in there- and a nice SMALL one if it is going to coexist with everything else going on. I found one in python, and posted it, and it caused a stirr. Well, I found a LISTING of them, and tried all t

Re: [Tutor] origin of the name python

2007-02-27 Thread [EMAIL PROTECTED]
Monty Python: http://en.wikipedia.org/wiki/Monty_python I believe full story is somewhere on python.org website. -- Cheers, Tom http://www.vscripts.net ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] origin of the name python

2007-02-27 Thread Doug Stone
[EMAIL PROTECTED]: Hi. I just started investigating Python and was wondering about the origin of Python's name. What did van Rossum have in-mind when he named Python? Thanks, Doug ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailm

Re: [Tutor] Another list comprehension question

2007-02-27 Thread John Fouhy
On 28/02/07, Smith, Jeff <[EMAIL PROTECTED]> wrote: > I realize however that this is probably much less efficient since you > are iterating over the inner list rather than just taking it on in > whole. Well, you know what they say --- don't guess, profile :-) Morpork:~ repton$ python -m timeit -s

Re: [Tutor] Telnet and special characters

2007-02-27 Thread Luke Paireepinart
Chris Hallman wrote: > > Is it possible to send a F1 "character" over a telnet connection? I've > searched but I can't find a solution. I've tried SendKeys > and other methods, but I > can't get it to work. > > import telnetlib > > pswd = "***" > host

Re: [Tutor] Question about profile.run() and decorators

2007-02-27 Thread Thane.Frivold
Kent, Thank you. That was just the kind of hint I needed. I will make sure to look for objects inside imported packages in the future too; I missed the Profile attribute when I first ran dir(profile) looking for available functions. In case you archive the full email thr

Re: [Tutor] Another list comprehension question

2007-02-27 Thread Smith, Jeff
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Fouhy Sent: Monday, February 26, 2007 4:00 PM To: Smith, Jeff Cc: tutor@python.org Subject: Re: [Tutor] Another list comprehension question On 27/02/07, Smith, Jeff <[EMAIL PROTECTED]> wrote: >> I'm prob

Re: [Tutor] Another list comprehension question

2007-02-27 Thread Smith, Jeff
-Original Message- From: Bob Gailer [mailto:[EMAIL PROTECTED] Sent: Monday, February 26, 2007 3:53 PM To: Smith, Jeff Cc: tutor@python.org Subject: Re: [Tutor] Another list comprehension question >> files = list() >Or just files = [] I tend to prefer the former since it has a more O

[Tutor] Telnet and special characters

2007-02-27 Thread Chris Hallman
Is it possible to send a F1 "character" over a telnet connection? I've searched but I can't find a solution. I've tried SendKeysand other methods, but I can't get it to work. import telnetlib pswd = "***" host = "***" tn = telnetlib.Telnet(host) tn.rea

Re: [Tutor] Group sequence pairwise

2007-02-27 Thread Christopher Arndt
Justin Ezequiel schrieb: a = list('asdfg') map(None, a[::2], a[1::2]) > [('a', 's'), ('d', 'f'), ('g', None)] a = list('asdfgh') map(None, a[::2], a[1::2]) > [('a', 's'), ('d', 'f'), ('g', 'h')] That's clever! Thanks! Chris ___ Tutor

Re: [Tutor] Module search path problem

2007-02-27 Thread Bob Gailer
Christer Enfors wrote: > I have two files, in the same directory: main.py, and user.py I have the > following code in main.py: > >main.py >import user > >[snip] > >user_man = user.UserMan() >-end- > > This works without problems. > > But then I tried moving user

Re: [Tutor] Matching string

2007-02-27 Thread Jerry Hill
On 2/27/07, govind goyal <[EMAIL PROTECTED]> wrote: > Hello, > > I want to use a pattern matcing (regular expression) inside "if loop" such > that if it will find "MBytes" and "Mbits/sec" both at a time regardless of > there position in a particular string ,then only it executes code inside "if >

Re: [Tutor] Matching string

2007-02-27 Thread Kent Johnson
govind goyal wrote: > Hello, > > I want to use a pattern matcing (regular expression) inside "if > loop" such that if it will find "*MBytes*" and *"Mbits/sec"* both *at a > time * regardless of there position in a particular string ,then only it > executes code inside "if block". > > for exa

[Tutor] Matching string

2007-02-27 Thread govind goyal
Hello, I want to use a pattern matcing (regular expression) inside "if loop" such that if it will find "*MBytes*" and *"Mbits/sec"* both *at a time *regardless of there position in a particular string ,then only it executes code inside "if block". for example if my string is *"[904] 1.0- 2.0 s

Re: [Tutor] Module search path problem

2007-02-27 Thread Kent Johnson
Christer Enfors wrote: > I have two files, in the same directory: main.py, and user.py > > This works without problems. > > But then I tried moving user.py to a subdirectory, and adding that > directory to Python's module search path > But now I get an error message for the last line shown abov

[Tutor] Module search path problem

2007-02-27 Thread Christer Enfors
I have two files, in the same directory: main.py, and user.py I have the following code in main.py: main.py import user [snip] user_man = user.UserMan() -end- This works without problems. But then I tried moving user.py to a subdirectory, and adding that direct