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
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
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
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
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
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
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
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,
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,
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
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
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
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.
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
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
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
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
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
> --
> 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
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.
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')
>
= 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
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
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
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
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')
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
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
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
'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
30 matches
Mail list logo