Re: Is Python as capable as Perl for sysadmin work?

2005-02-09 Thread Jeff Shannon
Courageous wrote: *checks self to see if self is wearing rose colored glasses* assert(self.glasses.color != 'rose') ;) Jeff Shannon Technician/Programmer Credit International -- http://mail.python.org/mailman/listinfo/python-list

Re: negative integer division

2005-02-09 Thread Carl Banks
Jive Dadson wrote: > > Now, I'll agree with you if you want to argue that some machines do > > negative integer division in stupifyingly horrible ways. > > That's why I think it was a stupifyingly horrible decision. > Understandable, but in the end an s.h.d. nonetheless. C language is chock-full

Re: Loop in list.

2005-02-09 Thread Jim
Wow! All I wanted to do was write the equivalence of the Fortran statement: Real*4 matrix(n,n). I'm going to have to go to the intrepreter to see what your saying. Thanks for all the help. Jim -- http://mail.python.org/mailman/listinfo/python-list

PyQt and Python 2.4 - also WinXP LnF?

2005-02-09 Thread Simon John
After quite a while of wxPython I'm getting back into PyQt, mainly due to the announcement by Trolltech that they will make a GPL version of Qt4 for Windows (and Phil-T said he will make a PyQt to go with it eventually!) I'm currently using PyQt 3.12 that comes with the BlackAdder demo, it seems t

Re: newbie question

2005-02-09 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Dan Perl <[EMAIL PROTECTED]> wrote: . . . >has the conciseness of the C statement. The pre- and post-increment >and -decrement in C/C++/Java are very powerful and I miss them in python. > > M

Pioneers of WIMPishness (was: A great Alan Kay quote)

2005-02-09 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Scott David Daniels <[EMAIL PROTECTED]> wrote: . [thoroughly appropriate focus on Engelbart and his Augment colleagues] . . >(or great) guess and

Re: Help: retrieving e-mail from yahoo pop server. what's wrong?

2005-02-09 Thread Kartic
Andre said the following on 2/9/2005 7:28 PM: Thank, Kartic I actually tried doing it with several other accounts, notably mail.com and netscape.com When i do it with netscape the dialog goes like the following: The username and password are naturally valid, but something else is wrong. Do you know

wxgrid multiline cell editor

2005-02-09 Thread James
wxpython 2.5.3 hi, anyone know how to make a multiline cell editor for wxgrid? thank you :) best regards, James -- http://mail.python.org/mailman/listinfo/python-list

Re: how can I replace a execfile with __import__ in class to use self variables

2005-02-09 Thread Wensheng
I just realized I can pass the object itself: like p=__import__("printit") p.pr(self) in printit.py - def pr(self): print self.var --- -- http://mail.python.org/mailman/listinfo/python-list

Re: A great Alan Kay quote

2005-02-09 Thread Arthur
On Wed, 9 Feb 2005 21:23:06 +0100, Francis Girard <[EMAIL PROTECTED]> wrote: > >I love him. I don't. > >It's also interesting to see GUIs with windows, mouse (etc.), which apparently >find their origin in is mind, probably comes from the desire to introduce >computers to children. Alfred Bork,

Re: What's wrong with `is not None`?

2005-02-09 Thread [EMAIL PROTECTED]
btw, 'isnot' is not pronounced "is-not" but rather "i-snot". :-) S -- http://mail.python.org/mailman/listinfo/python-list

Re: Help: retrieving e-mail from yahoo pop server. what's wrong?

2005-02-09 Thread Kristian M Zoerhoff
In article <[EMAIL PROTECTED]>, Andre wrote: > > import getpass, poplib, re > POPHOST = "pop.mail.yahoo.com" > POPUSER = "mylogin" > POPPASS = "mypass" > pop = poplib.POP3(POPHOST) > pop.user(POPUSER) > > > up to this point evertything proceeds fine, but when i do > > > if not POPPASS:> > POP

Re: PyQt and Python 2.4 - also WinXP LnF?

2005-02-09 Thread Joe Francia
Simon John wrote: Also, would I have to build it all myself or does Riverbank/TheKompany provide binaries like PyQt 3.13 for Python 2.4, as I don't have Visual Studio I can't build it myself. There is a GPLed version of Qt that will build on win32, and free compilers to build it with. Despite it

Re: PyQt and Python 2.4 - also WinXP LnF?

2005-02-09 Thread John Lenton
On Wed, Feb 09, 2005 at 06:44:31PM -0800, Simon John wrote: > > I'm writing an XMMS remote control program, so it will be GPL when > released (if it's ever good enough to release!) so I'm looking at > buying the commercial PyQt3 or BlackAdder whilst waiting for the GPL > PyQt4 may I observe that

pygame and music

2005-02-09 Thread maxime
Hi, I try to develop a game in python and pygame. In my game I play a music (.mid with pygame.mixer.music) but sometime I need to accelerate it but I don't see how to do that with pygame. Is it possible? If not, do you know an other python music lib that do that? Thanks a lot -- http://mail.python

Re: Python and version control

2005-02-09 Thread Joe Francia
Chris wrote: Hi Joe, I'm curious. Why do you only use Eclipse for big projects? Habit, mainly; plus it's easier for one-offs and single-file scripts to just right-click a file in Explorer and "Edit with ScITE" and work from there. And to further complicate matters, when in FreeBSD or Linux, Er

Re: newbie question

2005-02-09 Thread Dan Perl
"Cameron Laird" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > In article <[EMAIL PROTECTED]>, > Dan Perl <[EMAIL PROTECTED]> wrote: > . > . > . >>has the conciseness of the C statement. The pre- and post-increment >>and -decrement in C/C++/Java are very powerful and I miss them i

Re: PyQt and Python 2.4 - also WinXP LnF?

2005-02-09 Thread Simon John
Yeah I had a look at the Qt Free/Win project, but I think it offers me less than the current official 3.12 from BlackAdder, which is only $80 without the hassle of following those convoluted build instructions (I did try yesterday). As far as XMMS/Gtk goes, it's a remote client for XMMS, designed

Testing conditions.

2005-02-09 Thread Ray Gibbon
Testing conditions. Common scenario. Old programmer, new to Python, love it, but still hankering after some of my old ways. Of all of it's 'new to me' features, I appear to be enjoying 'no declarations' and mixing types with abandon. In particular I find myself writing functions which return wh

Re: negative integer division

2005-02-09 Thread John Machin
[EMAIL PROTECTED] (Mark Jackson) wrote in message news:<[EMAIL PROTECTED]>... > > A: 42 > > Q: What multiple of 7 did I add to the critical expression in the Zeller > algorithm so it would remain nonnegative for the next few centuries? What are you calling "the Zeller algorithm", and what

Re: A 'Python like' language

2005-02-09 Thread Courageous
>We really need in Python a clear separation of advanced features from >the basic syntax. No more lambda calculus in the basic part. :>) Well I considered writing a pep to move all that stuff to a module called __icky__, you know: from __icky__ import * ... but I didn't think the committee wou

Re: Testing conditions.

2005-02-09 Thread Jeremy Bowers
On Thu, 10 Feb 2005 05:38:54 +, Ray Gibbon wrote: > e.g. 2 > |while new_data, environment = get_more_data(source): > |process_data(new_data, environment) > > is something I'm equally likely to want to do, but I can't express it's > meaning. I think we'd usually phrase that as fo

That horrible regexp idiom

2005-02-09 Thread Stephen Thorne
Hi, import re foo_pattern = re.compile('foo') '>>> m = foo_pattern.search(subject) '>>> if m: '>>>pass '>>> else: '>>>pass We've all seen it before. Its a horrible idiom that you would achieve in another language by doing: if (m = foo_pattern.search(subject)) { } else { } but it occu

Re: Testing conditions.

2005-02-09 Thread Terry Reedy
"Ray Gibbon" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > e.g. 1 > |while new_data = get_more_data(source): > |process_data(new_data) > > is obviously the sort of thing I'm missing, but it is not a general > solution > because :- > > e.g. 2 > |while new_data, env

Re: A 'Python like' language

2005-02-09 Thread frnknstn
> Well I considered writing a pep to move all that stuff to a module > called __icky__, you know: > > from __icky__ import * I think that should be: from __icky__ import import_asterisk import_asterisk __icky__ Frnknstn - This message was sent usin

Re: Testing conditions.

2005-02-09 Thread Fredrik Lundh
Ray Gibbon wrote: > This is NOT another request for statements to be accepted as expressions for > two reasons:- > 1. I've seen enough arguments on the subject where I've found myself firmly > on the anti change side. > 2. I now realise that it might scratch the itch, but it would not cure it. > >

<    1   2   3