-
> 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
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
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
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
>
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
": 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]>
#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
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
> >
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
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
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
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://
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
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
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
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-
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
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
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
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
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;-)
-
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
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
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
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
/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
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:/
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
---
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
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
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
's no problem.
>
> --
> [http://www.flyaflya.com/]
> --
> http://mail.python.org/mailman/listinfo/python-list
>
> ---
> --
> http://mail.python.org/mailman/listinfo/python-list
--
---
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
, 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
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
;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
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
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
>
> 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
---
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):
> > >
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
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
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:
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
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
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
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
;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
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(),
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
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
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
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
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
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
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
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
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.
>
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, 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
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
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
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
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
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
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
] 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
---------
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.
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
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
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
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
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
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
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
--
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
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
--------
97 matches
Mail list logo