Re: do you know what's CGI? (web history personal story)

2011-01-15 Thread Rainy
On Jan 15, 5:22 pm, Alice Bevan–McGregor wrote: > On 2011-01-15 08:55:47 -0800, rantingrick said: > > > On Jan 15, 10:38 am, Grant Edwards wrote: > > >>> Yeah, James Cameron made a *ton* of money using it to make Avatar. > > >> Too bad he couldn't have used it to make a better movie. > > I found

ANN: updates to Python-by-example

2009-02-27 Thread Rainy
Python-by-example http://pbe.lightbird.net/index.html";>http:// pbe.lightbird.net has some new modules added: pickle, shelve, sqlite3, gzip, csv, configparser, optparse, logging. I also changed over to using excellent sphinx package to generate documentation, this will allow me to add pdf and windo

Re: how to get a beep, OS independent ?

2008-12-06 Thread Rainy
On Dec 6, 3:40 pm, Stef Mientki <[EMAIL PROTECTED]> wrote: > hello, > > I want to give a small beep, > for windows there's message-beep, > and there seems to be something like " curses" , > but that package seems to be totally broken in P2.5 for windows. > > Any other suggestions ? > > thanks, > St

Select, interrupted system call, log rotation?

2008-12-06 Thread Rainy
I got an interrupted system call exception in select and I don't know what could have caused it. Here's the error: select.select(inputs, [], [], 9) error: (4, 'Interrupted system call') Caught an exception, shutting down... It's py2.3, on mach architecture. I'm trying to figure out what caus

Re: Learning Python now coming from Perl

2008-12-06 Thread Rainy
On Dec 6, 5:00 am, Bertilo Wennergren <[EMAIL PROTECTED]> wrote: > I'm planning to start learning Python now, using Python 3000. > I have no previous Python skills, but I now Perl pretty well. > I'm also well experienced with JavaScript. > > Any pointers and tips how I should go about getting into

Re: Pyserial not getting response every time, input/output errors

2008-08-12 Thread Rainy
Carsten Haese wrote: > Rainy wrote: > > Hello! > > > > I'm having some trouble with pyserial package, I'm sending commands > > and reading responses from a custom pcb, and sometimes I get a proper > > response, at other times I get nothing, and som

Pyserial not getting response every time, input/output errors

2008-08-12 Thread Rainy
Hello! I'm having some trouble with pyserial package, I'm sending commands and reading responses from a custom pcb, and sometimes I get a proper response, at other times I get nothing, and sometimes I get about half of the response string with beginning cut off. About half the time an empty string

Re: Separators inside a var name

2008-06-09 Thread Rainy
On Jun 9, 5:34 pm, Alexander Schmolck <[EMAIL PROTECTED]> wrote: > Rainy <[EMAIL PROTECTED]> writes: > > I have a stylistic question. In most languages words in var. name are > > separated by underscores or cap letters, resulting in var names like > > var_name,

Re: Separators inside a var name

2008-06-09 Thread Rainy
On Jun 9, 5:45 pm, Lie <[EMAIL PROTECTED]> wrote: > > As Sebastian have said, it just can't work like that in python and > most languages. var1-var2 is a subtraction, because - is an operator. > Operator must allow spaces and lack of spaces, how would you want > these to be interpreted then: a+b,

Re: Separators inside a var name

2008-06-09 Thread Rainy
On Jun 9, 2:05 pm, "Sebastian \"lunar\" Wiesner" <[EMAIL PROTECTED]> wrote: >  Rainy <[EMAIL PROTECTED]> at Montag 09 Juni 2008 19:29: > > > I have a stylistic question. In most languages words in var. name are > > separated by underscores or cap

Re: Separators inside a var name

2008-06-09 Thread Rainy
On Jun 9, 1:42 pm, Gary Herron <[EMAIL PROTECTED]> wrote: > Rainy wrote: > > I have a stylistic question. In most languages words in var. name are > > separated by underscores or cap letters, resulting in var names like > > var_name, VarName and varName. I don't

Separators inside a var name

2008-06-09 Thread Rainy
I have a stylistic question. In most languages words in var. name are separated by underscores or cap letters, resulting in var names like var_name, VarName and varName. I don't like that very much because all 3 ways of naming look bad and/or hard to type. From what I understand, scheme can have va

Re: Vim scripts for editing Python?

2006-11-21 Thread Rainy
Danny Colligan wrote: > On Nov 21, 11:48 am, "Danny Colligan" <[EMAIL PROTECTED]> wrote: > > Rainy wrote: > > > Hi, did anyone make a good set of scripts for editing Python in Vim? I > > > know there is one on vim.org but it isn't very advanced.

Re: a newbi problem: can't find complete python curses library

2006-11-02 Thread Rainy
krishnakant Mane wrote: > hello, > I am a new member to this list. > I am Krishnakant from India, Mumbai. > I have been coding in python for quite some time and now I am at the > intermediate level of programming as far as python is concerned. > I am going to develop a accounting software that can

Re: what's the difference between these two methods? (aka, why doesn't one of them work?)

2006-11-02 Thread Rainy
JohnJSal wrote: > JohnJSal wrote: > > Peter Otten wrote: > > > > > > > ...the above is not a 1-tuple, but an ordinary string. You forgot the > > > trailing comma: > > > > > > ('notes',) > > > > Right you are! Now it works! :) > > > > Thanks! > > Oh great, now I've moved on to another issue. It see

Re: invert or reverse a string... warning this is a rant

2006-10-19 Thread Rainy
Brad wrote: > John Salerno wrote: > > rick wrote: > >> Why can't Python have a reverse() function/method like Ruby? > > > > I'm not steeped enough in daily programming to argue that it isn't > > necessary, but my question is why do you need to reverse strings? Is it > > something that happens ofte

Re: broken links on effbot.org

2006-10-14 Thread Rainy
Gerard Flanagan wrote: > The links here seem to be broken: > > http://effbot.org/zone/element-index.htm#documentation > > I'm getting: > > sorry, /zone/page.cgi?page=element does not exist > > sorry, /zone/page.cgi?page=pythondoc-elementtree-ElementTree does not > exist > > It was working two

Re: Ok. This IS homework ...

2006-10-14 Thread Rainy
of program will work, and the second, how to use commands properly to carry out that logic. Which is fine, I make this mistake often enough.. Hope this helps.. I didn't want to write out a solution 'cause you'll learn better if you do it on your own. -Rainy -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie question - leading zeros

2006-10-13 Thread Rainy
> -- > Randomly generated signature > ICMP: The protocol that goes PING! import string >>> string.lstrip('0001', '0') '1' Hope this willhelp -Rainy -- http://mail.python.org/mailman/listinfo/python-list

Re: A curses-game I need help with.

2006-10-10 Thread Rainy
Gasten wrote: > Rob Wolfe wrote: > > > while running: > > > key_command = game.mainwin.getch() > > > > # I've moved erasing messages here > > game.msg.ereasMsg() > > Man... I didn't even think of that. It's embarassing. Thanks. It works > perfect now. Again, thanks.

Re: curses problem reading cursor keys

2006-10-07 Thread Rainy
Simon Morgan wrote: > On Sat, 07 Oct 2006 13:12:33 +, Simon Morgan wrote: > > > import curses > > > > def main(scr): > > status = curses.newwin(1, curses.COLS, 0, 0) status.bkgd('0') > > status.refresh() > > > > list = curses.newwin(curses.LINES, curses.COLS, 1, 0) list.bkgd('X') >

Re: Help with first script please. files, directories, autocomplete

2006-10-07 Thread Rainy
= listdir(d) >>> m = [m for m in l if m.startswith('A')] >>> m ['AHK scripts', 'Archive'] Then you can check how many matches you got. If you get one, print it and ask for Enter to finalize the choice. You might want to read tutorial on python.org. You also might want to buy a python book, or read any number of other tutorials online if you don't want to spend money right now. Your questions are kind of basic, I don't want to discourage you but as you go along you will run into many other things and it's not practical to ask every time and wait for the answer (although people here are glad to help). -Rainy -- http://mail.python.org/mailman/listinfo/python-list

Re: building strings from variables

2006-10-05 Thread Rainy
Gal Diskin wrote: > Following a discussion with an associate at work about various ways to > build strings from variables in python, I'd like to hear your opinions > and preferred methods. The methods we discussed are: > 1. some_string = "cd %s ; %s %d %s %s" % ( working_dir, ssh_cmd, > some_cou

Re: Problem with .next() method adding junk characters.

2006-10-02 Thread Rainy
Paul McGuire wrote: > "Fredrik Lundh" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > "Rainy" <[EMAIL PROTECTED]> wrote: > > > >> I'm just curious as to what's happening. I understand that you're not &g

Re: Problem with .next() method adding junk characters.

2006-10-01 Thread Rainy
John Machin wrote: > Rainy wrote: > > Hi, > > > > I tried searching for this and did not find this issue. I only looked > > at about dozen hits, I apologize if this is covered somewhere and I > > missed it. Without much further ado, here's the thing (Win, P

Problem with .next() method adding junk characters.

2006-10-01 Thread Rainy
Hi, I tried searching for this and did not find this issue. I only looked at about dozen hits, I apologize if this is covered somewhere and I missed it. Without much further ado, here's the thing (Win, Py2.5): >>> f = open('test', 'w') >>> f.fileno() 4 >>> f.write('1\n') >>> f.write('2\n3\n4\n')

Re: What is the best way to "get" a web page?

2006-09-24 Thread Rainy
Pete wrote: > > > The file "temp.html" is definitely different than the first run, but > > > still not anything close to www.python.org . Any other suggestions? > > > > If you mean that the page looks different in a browser, for one thing > > you have to download the css files too. Here's the rele

Re: Ideal python idle

2006-09-24 Thread Rainy
Rainy wrote: > [snip] Oh, I see now that F9 designates output buffer. I usually use vim with a log file and open the log file in a new Vim tab. -Rainy -- http://mail.python.org/mailman/listinfo/python-list

Re: Ideal python idle

2006-09-24 Thread Rainy
Rainy wrote: > [snip] Oh, I see now that F9 designates output buffer. I usually use vim with a log file and open the log file in a new Vim tab. -- http://mail.python.org/mailman/listinfo/python-list

Re: Ideal python idle

2006-09-24 Thread Rainy
'm missing something here, but doesn't :!python % command run the script as __main__? It sure does spawn gui windows for me. What exactly is the problem with using that command? It does not return you to the line where the error happened but the runscript.vim you mentioned doesn