Re: Python for web...

2008-02-25 Thread Ivan Van Laningham
- > http://mail.python.org/mailman/listinfo/python-list > -- Ivan Van Laningham God N Locomotive Works http://www.pauahtun.org/ http://www.python.org/workshops/1998-11/proceedings/papers/laningham/laningham.html Army Signal Corps: Cu Chi, Class of '70 Author: Teach Yourself Python in 24 Hours -- http://mail.python.org/mailman/listinfo/python-list

Re: Python for web...

2008-02-24 Thread Ivan Van Laningham
y English. > > > > Thushanthan. > -- > http://mail.python.org/mailman/listinfo/python-list > -- Ivan Van Laningham God N Locomotive Works http://www.pauahtun.org/ http://www.python.org/workshops/1998-11/proceedings/papers/laningham/laningham.html Army Signal Corps: Cu Chi, Class of '70 Author: Teach Yourself Python in 24 Hours -- http://mail.python.org/mailman/listinfo/python-list

Re: Solve a Debate

2008-02-15 Thread Ivan Van Laningham
ndar.mdays > [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] > >>> month = 2 > >>> calendar.mdays[month] > 28 > > If you want the actual number of days, taking leap-years into > consideration > > >>> calendar.monthrange(2008,2

Re: Why not a Python compiler?

2008-02-07 Thread Ivan Van Laningham
essel_Run > > Silly me. > > I wonder if George Lucas intended it as a joke or if he thought > a parsec was a unit of time. > > -- > Grant Edwards grante Yow! Clear the laundromat!! > at This whirl-o-matic just had >

Re: Problem with Tkinter scrollbar callback

2008-01-30 Thread Ivan Van Laningham
iseconds before exhibiting the > > >same uncontrolled growth as before. > > > > You need to change repeatinterval, not repeatdelay. > > > > As to "looking funny": that is the standard output format for > > configure(). I think can get a more reasonable va

Re: Problem with Tkinter scrollbar callback

2008-01-29 Thread Ivan Van Laningham
": that is the standard output format for > configure(). I think can get a more reasonable value using > "cget(repeatdelay)". > > -- Russell > > > > > >Metta, > >Ivan > > > >On Jan 25, 2008 5:49 PM, Russell E. Owen <[EMAIL PROTECTED]>

Re: Problem with Tkinter scrollbar callback

2008-01-29 Thread Ivan Van Laningham
#x27;, '1000'), And when I try it with the new repeatdelay (1000), the only thing that has changed is that it waits 1000 milliseconds before exhibiting the same uncontrolled growth as before. Metta, Ivan On Jan 25, 2008 5:49 PM, Russell E. Owen <[EMAIL PROTECTED]> wrote: > In

Re: Problem with Tkinter scrollbar callback

2008-01-24 Thread Ivan Van Laningham
4, 2008 4:27 PM, Russell E. Owen <[EMAIL PROTECTED]> wrote: > In article <[EMAIL PROTECTED]>, > > "Ivan Van Laningham" <[EMAIL PROTECTED]> wrote: > > > Hi All-- > > I'm having two problems with the scrollbar callback on linux systems > >

Problem with Tkinter scrollbar callback

2008-01-24 Thread Ivan Van Laningham
clicking one of the arrow buttons produces one callback. On Linux, in the real application, if I click an arrow button once, the callback continues to be called until I kill the app. That doesn't happen in the small program I've provided above, so I'm at a bit of a loss where to start

Re: Jargons of Info Tech industry

2005-08-11 Thread Ivan Van Laningham
r Tourette's kicked in. > You made it that far? Congratulations. I barely got past the name of the troll. Metta, Ivan -- Ivan Van Laningham God N Locomotive Works http://www.pauahtun.org/ http://www.foretec.com/python/workshops/1998-11/proceedings.html

Re: OT: World's largest Python caught!:)

2005-08-08 Thread Ivan Van Laningham
the > > individual and not necessarily those of Tegel Foods Ltd. > > > > This email was scanned and cleared by NetIQ MailMarshal. > > ###### > > -- > James Stroud > UCLA-DOE Institute for Genomic

Re: [path-PEP] Path inherits from basestring again

2005-07-30 Thread Ivan Van Laningham
Jason's original module, create something different and call it by another name than path; don't attempt to guess "what Jason really meant." It is not Pythonic to guess. Metta, Ivan -- Ivan Van Laningham God N Locomotive Works http://

Re: [path-PEP] Path inherits from basestring again

2005-07-29 Thread Ivan Van Laningham
inwith, so if I read code that used path, I would > understand it - it's too late for me to try reading code as a 'fresh' user > and see if it confuses me or not. > Then that's your right, but don't try to take / away from people who use it and like it. Metta, I

Re: [path-PEP] Path inherits from basestring again

2005-07-24 Thread Ivan Van Laningham
c:"], other than the index. n=path["c:"] = 0 ? > > What about path * 4? This one makes my brain hurt, I admit;-) Metta, Ivan -- Ivan Van Laningham God N Locomotive Works http://www.andi-holmes.com/ http://www.foretec.com/python/works

Re: Earthquake Forecasting Program July 11, 2005

2005-07-18 Thread Ivan Van Laningham
dimension to "Did the earth move for you too, honey?", doesn't it? Metta, -ly y'rs, Ivan -- Ivan Van Laningham God N Locomotive Works http://www.andi-holmes.com/ http://www.foretec.com/python/workshops/1998-11/proceedings.html Army Signal Corps: Cu C

Re: Image orientation and color information with PIL?

2005-07-18 Thread Ivan Van Laningham
r image mode. Check the PIL documentation. If you have only searched the newsgroup then you might have overlooked the docs. Metta, Ivan -- Ivan Van Laningham God N Locomotive Works http://www.andi-holmes.com/ http://www.foretec.com/python/workshops/1998-

Codecs

2005-07-08 Thread Ivan Van Laningham
that if I want to try to read an unknown file using an exhaustive list of possible encodings, the best place to keep the most current list is the codec registry itself, not in the documentation for the codec module. Metta, Ivan -- Ivan Van Laningham God N

Re: map/filter/reduce/lambda opinions and background unscientificmini-survey

2005-07-05 Thread Ivan Van Laningham
tient C programmers. I think scaring C programmers, like giving engineers too much information, is really hard to do. Live by the sword, die by the sword. Metta, -ly y'rs, Ivan ---------- Ivan Van Laningham God N Locomotive Works http://www.andi-holmes.com/ htt

Re: map/filter/reduce/lambda opinions and background unscientificmini-survey

2005-07-01 Thread Ivan Van Laningham
erivatives put your head in a very weird place. Even weirder than PostScript/Forth/RPN, when you come right down to it. I won't miss them, but since I don't use them now, that doesn't mean a whole lot. Metta, Ivan -- Ivan Van Laningham God

Re: Modules for inclusion in standard library?

2005-07-01 Thread Ivan Van Laningham
site.py to change the default encoding if you want to use non-ASCII. It might work beautifully, but I won't use it, at least not until it's fixed to understand encodings. Metta, Ivan ---------- Ivan Van Laningham God N Locomotive Works http

Re: Python for everything?

2005-06-30 Thread Ivan Van Laningham
till hugely flexible, highly adaptable, and very powerful. For about 10 or 15 years there, knowing C was pretty much a guarantee of a good job. That changed when C++ compilers became common and good and not merely preprocessors that wrote really, really ugly C. Metta, -ly y'rs, Ivan;-) -

Re: Favorite non-python language trick?

2005-06-28 Thread Ivan Van Laningham
Hi All-- Mike Meyer wrote: > > Since the user is the one bound with B&D languages, they are clearly > tops. Which makes Python a bottom. > Well, we certainly hope Python has a safe word. Metta, Ivan ---------- Ivan Van Laningham God N Locom

Re: Which kid's beginners programming - Python or Forth?

2005-06-27 Thread Ivan Van Laningham
or she has the basic control flow down pat. Metta, Ivan -- Ivan Van Laningham God N Locomotive Works http://www.andi-holmes.com/ http://www.foretec.com/python/workshops/1998-11/proceedings.html Army Signal Corps: Cu Chi, Class of '70 Author: Teach Y

Re: Thoughts on Guido's ITC audio interview

2005-06-27 Thread Ivan Van Laningham
sn't support crucial APIs? I'm very curious. > f u cn rd ths, u cn gt a gd jb n nx prgrmmng. > l tk t. Metta, Ivan ------ Ivan Van Laningham God N Locomotive Works http://www.andi-holmes.com/ http://www.foretec.com/python/workshops/1998-11/p

Re: A World Beyond Capitalism 2005,

2005-06-23 Thread Ivan Van Laningham
I thought they could handle that themselves. Metta, Ivan -- Ivan Van Laningham God N Locomotive Works http://www.pauahtun.org/ http://www.foretec.com/python/workshops/1998-11/proceedings.html Army Signal Corps: Cu Chi, Class of '70 Author: Teach

Re: key - key pairs

2005-06-23 Thread Ivan Van Laningham
/set that always insert the value as a key. So that dict["string"]=time also means dict[time]="string". Only one dict required then. Or am I missing something? Metta, Ivan -- Ivan Van Laningham God N Locomotive Works http://www.and

Re: pickle broken: can't handle NaN or Infinity under win32

2005-06-23 Thread Ivan Van Laningham
Hi All-- Tim Peters wrote: > Fortran is so > eager to allow optimizations that failure due to numeric differences > in conformance tests rarely withstood challenge. +1 QOTW Metta, Ivan ------ Ivan Van Laningham God N Locomotive Works http:/

Re: PEP ? os.listdir enhancement

2005-06-23 Thread Ivan Van Laningham
yield file print list(mylistdir(sys.argv[1])) or print list(mylistdir(sys.argv[1],os.path.join)) That way I could def my own join and call it as print list(mylistdir(sys.argv[1],myjoin)) (Note that in your version the join argument isn't used at all.) Metta, Ivan ---

Re: pickle broken: can't handle NaN or Infinity under win32

2005-06-22 Thread Ivan Van Laningham
mz, mz) > -3.1415926535897931 > Never fails. Tim, you gave me the best laugh of the day. Metta, Ivan -- Ivan Van Laningham God N Locomotive Works http://www.andi-holmes.com/ http://www.foretec.com/python/workshops/1998-11/proceedings.html Army

Re: functions with unlimeted variable arguments...

2005-06-18 Thread Ivan Van Laningham
around long enough to rewrite the manual. Metta, -ly y'rs, Ivan -- Ivan Van Laningham God N Locomotive Works http://www.andi-holmes.com/ http://www.foretec.com/python/workshops/1998-11/proceedings.html Army Signal Corps: Cu Chi, Class of '70 Au

Re: file permissions on windows XP (home)

2005-06-08 Thread Ivan Van Laningham
o obsessive about it. Now that I think about it, the times that I've had permission trouble it's always been with thumbs. Not definitive, but worth looking out for. Metta, Ivan ---------- Ivan Van Laningham God N Locomotive Works http://www.andi-holme

Re: maybe a bug in python: NOW Pythonic Gotchas

2005-06-05 Thread Ivan Van Laningham
's no problem. > > -- > [http://www.flyaflya.com/] > -- > http://mail.python.org/mailman/listinfo/python-list > > --- > -- > http://mail.python.org/mailman/listinfo/python-list -- ---

Re: REQ: Small Perl to Python conversion needed

2005-06-02 Thread Ivan Van Laningham
Hi All-- John Machin wrote: > > > how to duplicate the following bit of code using Python dictionaries. > > > > [expletives deleted] > +1 QOTW Metta, Ivan ---------- Ivan Van Laningham God N Locomotive Works http://w

Re: PySol not working on WinXP, SP2

2005-06-01 Thread Ivan Van Laningham
ing eventually, I suppose, but I was really hoping someone else had done the work already, or at least had pointers to docs on how to get it working. Metta, Ivan > -Jim > > On 6/1/05, Ivan Van Laningham <[EMAIL PROTECTED]> wrote: > > Hi All-- > > I've been using PyS

Re: PySol not working on WinXP, SP2

2005-06-01 Thread Ivan Van Laningham
fe doesn't have). Sound server seems to be available as a .pyd file for the Win32 extensions, so I think that's not a problem. Metta, Ivan -- Ivan Van Laningham God N Locomotive Works http://www.andi-holmes.com/ http://www.foretec.com/python/wo

PySol not working on WinXP, SP2

2005-06-01 Thread Ivan Van Laningham
27;s put together a version for 2.3--and of course, I'm running Python 2.4. My wife's going to be force to upgrade to SP2 some of these days, and she won't be happy if her solitaire doesn't work. Does anyone have a working version? Anyone know what happened to Markus ... Ober

Re: working with pointers

2005-05-31 Thread Ivan Van Laningham
nd to "[3,5,6]". a=[3,5,6] b=a[:] a and b are now bound to different instances of [3,5,6] Metta, Ivan -- Ivan Van Laningham God N Locomotive Works http://www.andi-holmes.com/ http://www.foretec.com/python/workshops/1998-11/proceedings.html Army Signal Corps: Cu Chi, Class of '70 Author: Teach Yourself Python in 24 Hours -- http://mail.python.org/mailman/listinfo/python-list

Re: the problem with cgi

2005-05-29 Thread Ivan Van Laningham
Oh, that's reassuring. Does he have his tinfoil hat on? Metta, Ivan PS: Sorry, I meant, "Does he have his fucking tinfoil hat on?" ------ Ivan Van Laningham God N Locomotive Works http://www.andi-holmes.com/ http://www.foretec.com/python/w

Re: Python forum

2005-05-19 Thread Ivan Van Laningham
Hi All-- Peter Hansen wrote: > > Ivan Van Laningham wrote: > > Robert Kern wrote: > >>dict.org says _forums_. I used _fora_, but I'm silly. > >> > > It also says "appendixes" and "indexes" are OK. Yahoos. > > Should that

Re: Is Python suitable for a huge, enterprise size app?

2005-05-18 Thread Ivan Van Laningham
Hi All-- George Sakkis wrote: > > "Ivan Van Laningham" wrote: > > An idea that perhaps takes the best of both worlds is use java for the > high level architecture and static type interfaces, and write the bulk > of the implementation in jython. PSF has awarded a gra

Re: NaN support etc.

2005-05-18 Thread Ivan Van Laningham
to probe the limits of the IEEE-754 support on a system. It's not set up to show you NaN, but by studying the docs on your particular system you could modify the code to print stuff like that out, I'd think. Metta, Ivan -- Ivan Van Laningham God N Lo

Re: Is Python suitable for a huge, enterprise size app?

2005-05-18 Thread Ivan Van Laningham
ping? ... Hmm, trust the developers out there not to peek? Oh, sure, let's use it." (True, there are ways around the second, but you're going to have to talk _very_ fast and have ALL the answers before the management type gets to his/her office and shuts the door in your face and o

Re: Python forum

2005-05-18 Thread Ivan Van Laningham
ys "appendixes" and "indexes" are OK. Yahoos. Metta, Ivan -- Ivan Van Laningham God N Locomotive Works http://www.andi-holmes.com/ http://www.foretec.com/python/workshops/1998-11/proceedings.html Army Signal Corps: Cu Chi, Class of '70 Author: Teach Yourself Python in 24 Hours -- http://mail.python.org/mailman/listinfo/python-list

Re: Representing ambiguity in datetime?

2005-05-17 Thread Ivan Van Laningham
ates" button) The paper describing the incomplete Mayan date tool is at: http://www.pauahtun.org/python_vuh.html Metta, Ivan -- Ivan Van Laningham God N Locomotive Works http://www.andi-holmes.com/ http://www.foretec.com/python/workshops/1998-11/procee

Re: Python Documentation (vs PHP stuff)

2005-05-11 Thread Ivan Van Laningham
not a 'How to find "string methods"' page, but "Tips & Tricks for Interrogating the Python Docs" page. Metta, Ivan -- Ivan Van Laningham God N Locomotive Works http://www.andi-holmes.com/ http://www.foretec.com/python/w

Re: Python Documentation (should be better?)

2005-05-11 Thread Ivan Van Laningham
Hi All-- John Bokma wrote: > > Ivan Van Laningham wrote: > > > Python docs are not as good as PHP docs. > > Oh my. I hope you are just making that up. PHP documentation is > guesstimated on how PHP works on average. Add the online comments clutter > and you probably

Re: Python Documentation (should be better?)

2005-05-11 Thread Ivan Van Laningham
Hi All-- Robert Kern wrote: > > Ivan Van Laningham wrote: > > > http://www.python.org/doc/ > > > Searching on docs.python.org goes through just the stuff that's on > docs.python.org, which is pretty much just documentation. Google's magic > points to the

Re: Python Documentation (should be better?)

2005-05-11 Thread Ivan Van Laningham
Hi All-- Steven Bethard wrote: > > Ivan Van Laningham wrote: > > I should be able to type "string methods" into the text box, > > push submit, and IT SHOULD HAND ME THE PAGE. Not "Results 1 - 20 of > > about 9,800 from www.python.org for string methods. (0

Re: Python Documentation (should be better?)

2005-05-11 Thread Ivan Van Laningham
ethod I'd have to start the interactive interpreter. Bruno Desthuilliers wrote: > > Ivan Van Laningham a écrit : > > Hi All-- > > The Python docs are not ideal. I can never remember, for instance, > > where to find string methods (not methods in the string module, but

Re: Python Documentation (should be better?)

2005-05-11 Thread Ivan Van Laningham
arty module/lib. Or it's what I'm trying to write;-) Metta, Ivan ---------- Ivan Van Laningham God N Locomotive Works http://www.andi-holmes.com/ http://www.foretec.com/python/workshops/1998-11/proceedings.html Army Signal Corps: Cu Chi, Class of &#

Re: Advice needed on __del__

2005-05-09 Thread Ivan Van Laningham
you so." -ly y'rs, Ivan;-) ---------- Ivan Van Laningham God N Locomotive Works http://www.pauahtun.org/ http://www.foretec.com/python/workshops/1998-11/proceedings.html Army Signal Corps: Cu Chi, Class of '70 Author: Teach Yourself Python in 24 H

Re: Trouble saving unicode text to file

2005-05-07 Thread Ivan Van Laningham
f forced to communicate with another > Unicode-aware system over an 8-bit wide channel, encode as utf-8, not > cp666)" > +1 QOTW And true, too. -ly y'rs, Ivan ---------- Ivan Van Laningham God N Locomotive Works http://www.andi-holmes.com/ ht

Re: Whats the best Python Book for me

2005-05-01 Thread Ivan Van Laningham
dug through the manuals and through Lutz' _Programming Python_ and I asked dumb questions on this list. If I were starting now, in your place, I'd get a copy of the _Python Cookbook_ (2e) and keep that handy. It's a good place to learn idioms, and that's what you're most in

Re: Fwd: how to find the drive in python/cygwin?

2005-04-30 Thread Ivan Van Laningham
, and so on--rather than anything substantive. I try to use os.path.sep() and os.path.join(), etc. What else could bite me? ;-) Metta, Ivan ---------- Ivan Van Laningham God N Locomotive Works http://www.andi-holmes.com/ http://www.foretec.com/python/workshops/199

Re: Fwd: how to find the drive in python/cygwin?

2005-04-30 Thread Ivan Van Laningham
Hi All-- Jason Tishler wrote: > > Ivan, > > On Tue, Apr 26, 2005 at 07:02:48PM -0600, Ivan Van Laningham wrote: > > Use win32api to find drives: > > > > cut here > > #!/usr/bin/python > > # -*- coding: utf-8 -*- > > > > impo

Re: Fwd: how to find the drive in python/cygwin?

2005-04-26 Thread Ivan Van Laningham
;ll still get the drive letter, but inf will be None Drives.append([dr,inf]) return Drives if __name__=="__main__": drives=findAllDrives() for i in drives: print i[0],i[1] cut here Metta, Ivan ---------- I

Re: Python documentation moronicities (continued)

2005-04-26 Thread Ivan Van Laningham
t;rewrote" documentation. Metta, Ivan ---------- Ivan Van Laningham God N Locomotive Works http://www.andi-holmes.com/ http://www.foretec.com/python/workshops/1998-11/proceedings.html Army Signal Corps: Cu Chi, Class of '70 Author: Teach Yourself Pyt

Re: Multiple tuples for one for statement

2005-04-25 Thread Ivan Van Laningham
Peter Hansen wrote: > > Ivan Van Laningham wrote: > > I can see that now. I had three hours sleep last night and my brain > > hurts, so I don't get it. I seek enlightenment. > > So do I: did you mean you don't even "get" what > my code is doing

Re: Multiple tuples for one for statement

2005-04-25 Thread Ivan Van Laningham
> > It's a valid interpretation of the OP's > ambiguously stated requirements, though probably > not the right one. > I can see that now. I had three hours sleep last night and my brain hurts, so I don't get it. I seek enlightenment. Metta, Ivan ---

Re: Multiple tuples for one for statement

2005-04-25 Thread Ivan Van Laningham
Hi All-- "R. C. James Harlow" wrote: > > On Monday 25 April 2005 14:34, Ivan Van Laningham wrote: > > Hi All-- > > > > "R. C. James Harlow" wrote: > > > or just: > > > > > > for a,b,c in (tup1, tup2, tup3): > > >

Re: Multiple tuples for one for statement

2005-04-25 Thread Ivan Van Laningham
Hi All-- "R. C. James Harlow" wrote: > > or just: > > for a,b,c in (tup1, tup2, tup3): > print a > print b > print c > And this works in Python version??? Metta, Ivan ---------- Ivan Van Laningham God

Re: Rudeness on this list [Re: rudeness was: Python licence again]

2005-04-24 Thread Ivan Van Laningham
tty nice list then, it's a pretty nice list now, so I'm afraid I must disagree with François. Oh, and Gordon. Don't see Gordon around. Where's he? Metta, Ivan -- Ivan Van Laningham God N Locomotive Works http://www.andi-holmes.com/ htt

Re: trying to read from dying disk

2005-04-23 Thread Ivan Van Laningham
ers trying to interrupt (with ^C) a process that is waiting for a hardware interrupt. Metta, Ivan ------ Ivan Van Laningham God N Locomotive Works http://www.andi-holmes.com/ http://www.foretec.com/python/workshops/1998-11/proceedings.html Army Signal Corps:

Re: goto statement

2005-04-21 Thread Ivan Van Laningham
be a good language for him, don't you? Metta, Ivan ---------- Ivan Van Laningham God N Locomotive Works http://www.andi-holmes.com/ http://www.foretec.com/python/workshops/1998-11/proceedings.html Army Signal Corps: Cu Chi, Class of '70 Author: Teach

Re: Variables variable

2005-04-19 Thread Ivan Van Laningham
tionary turned out to be a Spectacularly Bad Idea(tm);-), so I guess that's one case. Metta, Ivan -- Ivan Van Laningham God N Locomotive Works http://www.andi-holmes.com/ http://www.foretec.com/python/workshops/1998-11/proceedings.html Army Signal Corps: Cu Chi, Class of '70 Author: Teach Yourself Python in 24 Hours -- http://mail.python.org/mailman/listinfo/python-list

Re: Name/ID of removable Media: how?

2005-04-19 Thread Ivan Van Laningham
more information. >>> hex (-793919769) '-0x2f524119' >>> Metta, Ivan -- Ivan Van Laningham God N Locomotive Works http://www.andi-holmes.com/ http://www.foretec.com/python/workshops/1998-11/proceedings.html Army Signal Corps: Cu Chi, Class of '70 Author: Teach Yourself Python in 24 Hours -- http://mail.python.org/mailman/listinfo/python-list

Re: Name/ID of removable Media: how?

2005-04-19 Thread Ivan Van Laningham
ng a long converted to a hex repr string, while win32api is returning an int (type(sn) is ), & converting to hex bears no resemblance to what WMI shows. What am I missing? Metta, Ivan ---------- Ivan Van Laningham God N Locomotive Works http://www.an

Re: Name/ID of removable Media: how?

2005-04-19 Thread Ivan Van Laningham
;letter:\\" or GetVolumeInformation() doesn't always work. There are probably better ways to do these things, but they do work; I've been using them constantly the last few days. Metta, Ivan -- Ivan Van Laningham God N Locomotive Wor

Re: Slight discrepancy with filecmp.cmp

2005-04-18 Thread Ivan Van Laningham
Hi All-- John Machin wrote: > > On Sun, 17 Apr 2005 22:06:04 -0600, Ivan Van Laningham > <[EMAIL PROTECTED]> wrote: > [snip] > > So I wrote a set of > >programs to both index the disk versions with the cd versions, and to > >compare, using filecmp.cmp(),

Slight discrepancy with filecmp.cmp

2005-04-17 Thread Ivan Van Laningham
e's a line going through the picture above which it's normal, and below it either the color has changed (usually to pinkish) or the remaining raster lines are all shifted either right or left? Any ideas? Metta, Ivan ---------- Ivan Van Laningham God N L

Re: Converting a perl module to a python module would it be worthit?

2005-04-14 Thread Ivan Van Laningham
sion of CPAN, but it's taking a long time. I think they started in 1998 or so? Haven't kept up, so I have no idea what's taking so long. I'm sure someone more knowledgeable than me will come along and set us straight. Metta, Ivan

Re: A little request about spam

2005-04-14 Thread Ivan Van Laningham
ily do base decisions on the whole subject line, and I think that's perfectly reasonable. There's nothing else to go on without opening the message, and for HTML-based mail there's no surer way to let spammers know they've found a live email addres than to open it. You know tha

Re: A little request about spam

2005-04-14 Thread Ivan Van Laningham
g as before it was working at near enough > > 100% accuracy. > > And I don't suppose there's much we can do about it? > -- Ivan Van Laningham God N Locomotive Works http://www.andi-holmes.com/ http://www.foretec.com/python/worksh

Re: Compute pi to base 12 using Python?

2005-04-13 Thread Ivan Van Laningham
e chromatic scale is base12. > c c# d d# e f f# g g# a a# b > Oooh. Wanta hear it. Metta, Ivan -- Ivan Van Laningham God N Locomotive Works http://www.andi-holmes.com/ http://www.foretec.com/python/workshops/1998-11/proceedings.html Army Signal Corps: Cu Chi, Class of '70 Author: Teach Yourself Python in 24 Hours -- http://mail.python.org/mailman/listinfo/python-list

Re: Utah Python Users Group

2005-04-13 Thread Ivan Van Laningham
any groups but I might be interested. > Ditto. Metta, Ivan ------ Ivan Van Laningham God N Locomotive Works http://www.andi-holmes.com/ http://www.foretec.com/python/workshops/1998-11/proceedings.html Army Signal Corps: Cu Chi, Class of 

Re: [perl-python] Python documentation moronicities (continued)

2005-04-12 Thread Ivan Van Laningham
pledge $10. > Are there another nine people here who'll do the same? > > Why don't we pay him $100 to re-write the PERL docs? Metta, Ivan -- Ivan Van Laningham God N Locomotive Works http://www.andi-holmes.com/ http://www.foretec.com/pyt

Re: Interpreter problem

2005-04-08 Thread Ivan Van Laningham
rb")] & re-writing [open(foofile,"wb")] a file will do this if you are not excruciatingly careful. If you don't have dos2unix on your win system, but do have cat, you can use cat -d. #!/bin/sh cat -d $1 > snot mv snot $1 (Prone to error, of course.) -ly

Re: curious problem with large numbers

2005-04-08 Thread Ivan Van Laningham
or "license" for more information. > > >>> 1e1 > > Inf > > >>> > > > > regards > > Steve > I guess the behavior is also hardware-dependent. FWIW, I tested on an Athlon > XP > box. >

Re: shebang in cross platform scripts

2005-04-06 Thread Ivan Van Laningham
install a link in /usr/bin to whereever python lives, and expect #!/usr/bin/python to work just fine. Metta, Ivan -- Ivan Van Laningham God N Locomotive Works http://www.andi-holmes.com/ http://www.foretec.com/python/workshops/1998-11/proceedings.html

Re: Lambda: the Ultimate Design Flaw

2005-04-05 Thread Ivan Van Laningham
re, the language didn't change, just the environment around it--includes, libs, where things lived, etc. Metta, Ivan ------ Ivan Van Laningham God N Locomotive Works http://www.andi-holmes.com/ http://www.foretec.com/python/workshops/1998-11/proceedi

Re: Best editor?

2005-04-05 Thread Ivan Van Laningham
h as I love 'em. Metta, Ivan ---------- Ivan Van Laningham God N Locomotive Works http://www.andi-holmes.com/ http://www.foretec.com/python/workshops/1998-11/proceedings.html Army Signal Corps: Cu Chi, Class of '70 Author: Teach Yourself Python in 24 Hours -- http://mail.python.org/mailman/listinfo/python-list

Re: Best editor?

2005-04-05 Thread Ivan Van Laningham
Hi All-- [EMAIL PROTECTED] wrote: > > Windows: textpad > Linux: vim > Windows: gvim Linux: gvim, or vim if I have to. Other unices: gvim, vim, vi SlickEdit doesn't suck. Emacs doesn't suck, either. Metta, Ivan ---------- Iv

Re: IronPython 0.7 released!

2005-04-05 Thread Ivan Van Laningham
Hi All-- Tim Peters wrote: > > not-mentioning-that-i-don't-feel-particularly-embraced-yet-ly y'rs - tim > Don't worry, Tim. You will. -ly y'rs, Ivan Meta: <1984-in-what-base-was-that?>-ly y'rs, Ivan ---------- I

Re: Pseudocode in the wikipedia

2005-04-02 Thread Ivan Van Laningham
nything else. Now that I'm not working I've got time to catch up on what's new in Python. Nice to see a few familiar faces, too. Metta, Ivan ------ Ivan Van Laningham God N Locomotive Works http://www.andi-holmes.com/ http://www.foretec.c

Re: Pseudocode in the wikipedia

2005-04-01 Thread Ivan Van Laningham
ble machines from Xerox that might make it hard to make > an ass-based identity system resistant to attacks. http://www.jacquelinestallone.com/rumps.html Metta, Ivan PS: I don't think this is an 0401 page; it's been there a while. -- Ivan Van Laningham

Re: string goes away

2005-04-01 Thread Ivan Van Laningham
persuade a boatload of Java programmers that? Metta, Ivan -- Ivan Van Laningham God N Locomotive Works http://www.andi-holmes.com/ http://www.foretec.com/python/workshops/1998-11/proceedings.html Army Signal Corps: Cu Chi, Class of '70 Author: Teach Yourself Python in 24 Hours -- http://mail.python.org/mailman/listinfo/python-list

Re: Stylistic question about inheritance

2005-03-31 Thread Ivan Van Laningham
] those guys were thinking making 200 twelve-line ASP classes. Ya think there's a hard-wired limit past which your brain melts? > Paraphrasing Occam, I would say "don't multiply base classes without > necessity" ;) > +1 QOTW Metta, Ivan ---------

Re: string goes away

2005-03-31 Thread Ivan Van Laningham
gt; [i.upper() for i in u] ['A', 'B', 'C'] >>> Works pretty well for me. Better'n map() any day. > I am sure there has been lots of discussion on whether or not to remove > the string module. Maybe you can just direct me to the right place.

Re: Using something other than ';' to separate statements

2005-03-30 Thread Ivan Van Laningham
iscourage using it though--it's somewhat obtuse. > Bad Michael. Bad, bad Michael. Metta, Ivan -- Ivan Van Laningham God N Locomotive Works http://www.andi-holmes.com/ http://www.foretec.com/python/workshops/1998-11/proceedings.html Army Signal Corps: Cu

Re: [ANN]: Last Chance 2005 IORCC Entries

2005-03-30 Thread Ivan Van Laningham
think of us, and why should we enter a contest where we are dissed by being shoehorned into someone else's categories? Metta, Ivan ------ Ivan Van Laningham God N Locomotive Works http://www.andi-holmes.com/ http://www.foretec.com/python/workshops/1998-1

Re: Max files in unix folder from PIL process

2005-03-29 Thread Ivan Van Laningham
each and every file in the directory. Standard ls with no options (or old SysV/BSD ls that came with no options) works nearly as fast as os.listdir() in Python, because it doesn't require a stat(). The only thing faster, from a shell user's viewpoint, is 'echo *'. That may n

Re: Grouping code by indentation - feature or ******?

2005-03-25 Thread Ivan Van Laningham
erence between Vietnamese verbs and Latin verbs;-) Metta, Ivan -- Ivan Van Laningham God N Locomotive Works http://www.andi-holmes.com/ http://www.foretec.com/python/workshops/1998-11/proceedings.html Army Signal Corps: Cu Chi, Class of '70 Author: Teach Yourself Python in 24 Hours -- http://mail.python.org/mailman/listinfo/python-list

Re: C type buffer copy

2005-03-22 Thread Ivan Van Laningham
gt; } > > } > > What's the best way to deal with this in python? > Metta, Ivan -- Ivan Van Laningham God N Locomotive Works http://www.andi-holmes.com/ http://www.foretec.com/python/workshops/1998-11/proceedings.html Ar

Re: Python scope is too complicated

2005-03-20 Thread Ivan Van Laningham
o its containing scope is going away soon. Will that be another scope? Or are generator and list comprehensions only one scope? Metta, Ivan -- Ivan Van Laningham God N Locomotive Works http://www.andi-holmes.com/ http://www.foretec.com/python/workshops/1998-11/pr

Re: Pre-PEP: Dictionary accumulator methods

2005-03-19 Thread Ivan Van Laningham
ing. What about adding another method, "setincrement()"? d={} d.setincrement(-1) for word in text.split(): d.tally(word,1) if word.lower() in ["a","an","the"]: d.tally(word) Not that there's any real utility in that. Metta, Ivan --

Re: Pre-PEP: Dictionary accumulator methods

2005-03-19 Thread Ivan Van Laningham
s was suggested by Michael Spencer seems non-intuitive to me. > > Just my 2 Eurocents, > > I raise you by a ruble and a pound ;-) > -ly y'rs, Ivan ---------- Ivan Van Laningham God N Locomotive Works http://www.andi-holmes.com/ h

Re: Pre-PEP: Dictionary accumulator methods

2005-03-18 Thread Ivan Van Laningham
ef count(self, value, qty=1): > try: > self[key] += qty > except KeyError: > self[key] = qty > There is no existing add() method for dictionaries. Given the name change, I'd like to see it. Metta, Ivan --------