but that
seems like overkill to do such a simple thing.
-Carl
--
Carl J. Van Arsdall
[EMAIL PROTECTED]
Build and Release
MontaVista Software
--
http://mail.python.org/mailman/listinfo/python-list
sarily, if he's on a full duplex ethernet connection, then
there is some parallelity he can take advantage of. He has upstream and
downstream.
-c
--
Carl J. Van Arsdall
[EMAIL PROTECTED]
Build and Release
MontaVista Software
--
http://mail.python.org/mailman/listinfo/python-list
you need to go.
HTH
-carl
--
Carl J. Van Arsdall
[EMAIL PROTECTED]
Build and Release
MontaVista Software
--
http://mail.python.org/mailman/listinfo/python-list
on, has anyone tried any of the other
technologies? I've only used Pyro and i love it, but I'd like opinions
and experiences with other technologies if anyone has anything to say.
-c
--
Carl J. Van Arsdall
[EMAIL PROTECTED]
Build and Release
MontaVista Software
--
http://mail.python.org/mailman/listinfo/python-list
take you to the page). You can get some serious numbers
using that thing and they have python support as well as some tools for
automatically profiling an entire application. Check it out.
-carl
--
Carl J. Van Arsdall
[EMAIL PROTECTED]
Build and Release
MontaVista Software
--
http://mail.python.org/mailman/listinfo/python-list
Jean-Paul Calderone wrote:
> On Wed, 31 Jan 2007 15:13:59 -0800, "Carl J. Van Arsdall" <[EMAIL PROTECTED]>
> wrote:
>
>> Jean-Paul Calderone wrote:
>>
>>> [snip]
>>>
>>>>
>>> You're right.
ower to him. I, however, do not believe that
would be the best approach for a simple problem.
Knowing the appropriate tool for the job is a trait of an good engineer.
--
Carl J. Van Arsdall
[EMAIL PROTECTED]
Build and Release
MontaVista Software
--
http://mail.python.org/mailman/listinfo/python-list
>> Overkill? Just to download a few web pages? You've got to be
>> kidding.
>>
>
> Better "overkill" (whatever that is) than wasting time re-implementing
> the same boring thing over and over for no reason.
>
How is that a waste of time? I wrot
% self.urls[i])
>
> if __name__ == '__main__':
> root = Tkinter.Tk()
> frame = Tkinter.Frame(root)
> downloader = Downloader([URL] * 10, frame)
> def next(cycle):
> try:
> cycle.next().next()
> except StopIteration:
&g
John Nagle wrote:
> Aahz wrote:
>
>> In article <[EMAIL PROTECTED]>,
>> Carl J. Van Arsdall <[EMAIL PROTECTED]> wrote:
>> My point is that an app that dies only once every few months under load
>> is actually pretty damn stable! That is not the
g I can do with my software to offer more stability?
--
Carl J. Van Arsdall
[EMAIL PROTECTED]
Build and Release
MontaVista Software
--
http://mail.python.org/mailman/listinfo/python-list
n I throw a kitchen sink at it in a way I
never have before"
And away my mind goes, so thank you.
-carl
--
Carl J. Van Arsdall
[EMAIL PROTECTED]
Build and Release
MontaVista Software
--
http://mail.python.org/mailman/listinfo/python-list
; Siberian
>>> jail.
>>>
>>> On Jan 26, 1:13 pm, Richard J Kinch <[EMAIL PROTECTED]> wrote:
>>>
>>>
>>>> alex writes:
>>>>
>>>>> I have only just joined this group, but have noticed a
>>>
Hendrik van Rooyen wrote:
> "Carl J. Van Arsdall" <[EMAIL PROTECTED]> wrote:
>
>
>> [snip]
>>
>
> Are you 100% rock bottom gold plated guaranteed sure that there is
> not something else that is also critical that you just haven't realised
ystem ("the password")
>
> but it doesn't works.
>
>
I do a lot of that type of stuff. Just setup sudo access for that user
and have it state no password.
I also do that stuff on remote machines, similarly, setup ssh such that
you don't need to use a password.
red. Again, I still don't know how it would get messed up nor can I
reproduce the error on my own.
Do any of you think that would be a good practice for trying to track
this down? (Check the data after reading it, check the data before
saving it)
--
Carl J. Van Arsdall
[EMAIL PROTECTED]
Build and Release
MontaVista Software
--
http://mail.python.org/mailman/listinfo/python-list
er auditing their code more
> carefully, or avoiding threads entirely (the second being what I
> suspect your goal is).
>
> As a last case, I should point out that while the POSIX memory model
> can't be proven safe, concrete implementations do not necessarily
> suffer from th
whole GIL thing made me nervous about
the locking operations happening truly atomically and not getting
weird. Thanks for ensuring me that i'm just nuts :)
-carl
--
Carl J. Van Arsdall
[EMAIL PROTECTED]
Build and Release
MontaVista Software
--
http://mail.python.org/mailman/listinfo/python-list
or my
critical sections, but I wonder if that is really good enough.
Does anyone have any conclusive evidence that python threads/locks are
safe or unsafe?
Thanks,
Carl
--
Carl J. Van Arsdall
[EMAIL PROTECTED]
Build and Release
MontaVista Software
--
http://mail.python.org/mailman/listinfo/python-list
r software in another language?
Is there anyone here who is forced to use a tool to design python
software that completely hates it? Why do you hate it?
Thanks!
-carl
--
Carl J. Van Arsdall
[EMAIL PROTECTED]
Build and Release
MontaVista Software
--
http://mail.python.org/mailman/listinfo/python-list
ort to making python
threading better is a good thing and I'm happy to see the community
attempt to make improvements. It would also be cool if this would be
open sourced and I'm not quite sure why its not.
-carl
--
Carl J. Van Arsdall
[EMAIL PROTECTED]
Build and Release
MontaVista Softwa
class-- does
> some version of os.system('rm -Rf /') ?
>
>
The system administrator should make sure that student user accounts (or
the auto testing account) doesn't have access to that. Probably should
make sure that user applications only get a limited amount of memory too.
he idea is intriguing,
> as I in fact discovered Python because it is embedded in a GPS module
> we were evaluating for building into a device - so I will follow your
> progress with interest...
>
>
--
Carl J. Van Arsdall
[EMAIL PROTECTED]
Build and Release
MontaVista Software
--
http://mail.python.org/mailman/listinfo/python-list
Carl Banks wrote:
> Carl J. Van Arsdall wrote:
>
>> Isaac Rodriguez wrote:
>>
>>>> Yes, it would be a bad idea. =)
>>>>
>>>>
>>> Saying it is a bad idea and not explaining why will not help anyone. I
>>> woul
se in some cases, or rather, make
your module your class (look at the singleton pattern). I actually like
to structure all of my code like this, it helps me keep things organized
and separated. I guess i'm not sure why it would ever be a really bad
idea, maybe if you had really small classes
re of.
Thanks to everyone for their input!
-carl
--
Carl J. Van Arsdall
[EMAIL PROTECTED]
Build and Release
--
http://mail.python.org/mailman/listinfo/python-list
able to explain code or
concepts to someone, but adjective choice (at least in the way I had
used it) hardly hinders one's ability to communicate python ideas and
code. Can you explain how the use of profanity affects one's ability to
code in python or explain their code? The only thin
y people have gotten
way to used to the political correctness shoved down our throats by
society. Again, that's just my take on it, but those of you who would
be offended by my statements and use of colorful language to describe my
love of technology should probably just adjust your spam f
Cliff Wells wrote:
> On Wed, 2006-11-08 at 10:12 -0800, Carl J. Van Arsdall wrote:
>
>> BartlebyScrivener wrote:
>>
>
>
>>> I agree. And Python is an extremely serious matter calling for decorum
>>> and propriety.
>>>
>>&
uld really
be offended by my profanity-free statement above).
-c
--
Carl J. Van Arsdall
[EMAIL PROTECTED]
Build and Release
MontaVista Software
--
http://mail.python.org/mailman/listinfo/python-list
Steve Holden wrote:
> Carl J. Van Arsdall wrote:
>
>> Paul Boddie wrote:
>>
>>
>>> Beliavsky wrote:
>>>
>>>
>>>
>>>> Carl J. Van Arsdall wrote:
>>>>
>>>>
>>> [En
Paul Boddie wrote:
> Beliavsky wrote:
>
>> Carl J. Van Arsdall wrote:
>>
>
> [Enthusiasm for Pyro, not for those with sensitivity to rude words]
>
>
>> You should watch your language in a forum with thousands of readers.
>>
I think you s
. but thanks. Pyro is fucking
amazing and has been a great help to a couple of our projects.
-carl
--
Carl J. Van Arsdall
[EMAIL PROTECTED]
Build and Release
MontaVista Software
--
http://mail.python.org/mailman/listinfo/python-list
f the complex things simple. But I also like a
language where, if I need it, I can tap into some raw power and do that
really wild stuff. So its simple to use if that's all you need yet
offers the complexity to get things done that a purely "simple" language
can't do. I
on a single language, depending on
> the job at hand.)
>
Be familiar with lots of tools, get good at the ones you feel will help
you get the job done. No doubt you'll be most proficient in the one you
need to use the most, but you'll always need to move around, its
d
ython to point to 2.5
instead of 2.4
-c
--
Carl J. Van Arsdall
[EMAIL PROTECTED]
Build and Release
MontaVista Software
--
http://mail.python.org/mailman/listinfo/python-list
tobiah wrote:
> Carl J. Van Arsdall wrote:
>
>> Basically I used the datetime module and timedelta objects to calculate
>> a difference between two times. Now I'm trying to figure out how I make
>> that time delta a string HH:MM:SS
>>
>>
>>
dTime.group(2)), hours=int(parsedTime.group(1)))
parsedTime = timeRegex.match(resultsDict[key].stop)
stopDelta = datetime.timedelta(seconds=int(parsedTime.group(3)),
minutes=int(parsedTime.group(2)), hours=int(parsedTime.group(1)))
duration = stopDelta - startDelta
Thanks,
-car
.
> Me, too. I'd love to talk over Linda with other aficionados,
> and/or hunt together for an excuse to use her/it.
>
Funny you should mention that. I've had PyLinda opened in firefox for a
couple days waiting to be read about. I have a large distributed system
I
xception so
that I could piece things together and try to solve this thing?
TIA!
-carl
--
Carl J. Van Arsdall
[EMAIL PROTECTED]
Build and Release
MontaVista Software
--
http://mail.python.org/mailman/listinfo/python-list
ty, this would include to, from, etc. Then
whatever smtp library is available simply takes that message and a
server and handles the rest. I don't think that the current
functionality should be stripped out or anything, but that this other
"interface" exist for a much more i
s
> <http://www.pcwatchdog.com/> or the like...
>
>
>
Yea, there are other free solutions you might want to check out, I've
been looking at ganglia and nagios. These require constant
communication with a server, however they are customizable in that you
can have the server take action on various events.
Cheers!
-c
--
Carl J. Van Arsdall
[EMAIL PROTECTED]
Build and Release
MontaVista Software
--
http://mail.python.org/mailman/listinfo/python-list
time(path)
However this only gets creation time on Windows, on Unix it gets the the
time of the last change. Any ideas?
Thanks!
-carl
--
Carl J. Van Arsdall
[EMAIL PROTECTED]
Build and Release
MontaVista Software
--
http://mail.python.org/mailman/listinfo/python-list
ession1.interact()
>
> output :
> ospf>
>
> But in this case, i want in one console router one can open and on
> other console ospf should open. But this i want to do is through one
> script only.
>
> Regds
> Vik
>
>
--
Carl J. Van Arsdall
[EMAIL PROTECTED]
Build and Release
MontaVista Software
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
> Carl J. Van Arsdall wrote:
> [...]
>
>> I actually do use pickle (not for this, but for other things), could you
>> elaborate on the safety issue?
>>
>
> >From http://docs.python.org/lib/node63.html :
>
> Warnin
e had to and abstract the ssh calls away so that we could
do something better later.
-c
--
Carl J. Van Arsdall
[EMAIL PROTECTED]
Build and Release
MontaVista Software
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
> Carl J. Van Arsdall wrote:
>
>> Ah, alright, I think I understand, so threading works well for sharing
>> python objects. Would a scenario for this be something like a a job
>> queue (say Queue.Queue) for example. This is a situation in whic
[EMAIL PROTECTED] wrote:
> Carl J. Van Arsdall wrote:
>
>> Alright, based a on discussion on this mailing list, I've started to
>> wonder, why use threads vs processes.
>>
>
> In many cases, you don't have a choice. If your Python program
> is
Gerhard Fiedler wrote:
> On 2006-07-26 19:08:44, Carl J. Van Arsdall wrote:
>
>
>> Also, threading's condition and event constructs are used a lot
>> (i talk about it somewhere in that thing I wrote). They are easy to use
>> and nice and ready for me, with
Paul Rubin wrote:
> "Carl J. Van Arsdall" <[EMAIL PROTECTED]> writes:
>
>> Processes seem fairly expensive from my research so far. Each fork
>> copies the entire contents of memory into the new process.
>>
>
> No, you get two processes whose
Paul Rubin wrote:
> "Carl J. Van Arsdall" <[EMAIL PROTECTED]> writes:
>
>> Alright, so manually running builds is going to be crazy and
>> unmanageable. So what the people who came before me did to manage
>> this scenario was to fork on thread per b
[EMAIL PROTECTED] wrote:
> Carl J. Van Arsdall wrote:
>
>> [EMAIL PROTECTED] wrote:
>>
>>> Carl J. Van Arsdall wrote:
>>>
>>> I don't get what threading and Twisted would to do for
>>> you. The problem you actually have is that y
reads are over
used. I don't understand why, so can anyone shed any light on this?
Thanks,
-carl
--
Carl J. Van Arsdall
[EMAIL PROTECTED]
Build and Release
MontaVista Software
--
http://mail.python.org/mailman/listinfo/python-list
Paul Rubin wrote:
> "Carl J. Van Arsdall" <[EMAIL PROTECTED]> writes:
>
>> The problem I have is a large distributed system, that's the reality
>> of it. The short summary, I need to use and control 100+ machines in
>> a computing farm.
[EMAIL PROTECTED] wrote:
> Carl J. Van Arsdall wrote:
>
> I don't get what threading and Twisted would to do for
> you. The problem you actually have is that you sometimes
> need terminate these other process running other programs.
> Use spawn, fork/exec* or maybe one of
Gerhard Fiedler wrote:
> On 2006-07-25 13:30:22, Carl J. Van Arsdall wrote:
>
>
>>> Running os.system() in multiple threads strikes me as kind of whacked.
>>> Won't they all compete to read and write stdin/stdout simultaneously?
>>>
>>>
[EMAIL PROTECTED] wrote:
> Carl J. Van Arsdall wrote:
> [...]
>
>> My problem with the fact that python doesn't have some type of "thread
>> killer" is that again, the only solution involves some type of polling
>> loop.
>>
>
>
Steve Holden wrote:
> Carl J. Van Arsdall wrote:
>
>
>>
>>
> I take this to mean you don't want to do the necessary research? ;-)
>
Well, i've been looking at this on and off for quite some time now, I
almost feel like I've seen it all in reg
Jean-Paul Calderone wrote:
> On Mon, 24 Jul 2006 11:22:49 -0700, "Carl J. Van Arsdall" <[EMAIL PROTECTED]>
> wrote:
>
>> Steve Holden wrote:
>>
>>> Carl J. Van Arsdall wrote:
>>> [... rant ...]
>>>
>>>
>
Steve Holden wrote:
> Carl J. Van Arsdall wrote:
> [... rant ...]
>
>> So with this whole "hey mr. nice thread, please die for me" concept gets
>> ugly quickly in complex situations and doesn't scale well at all.
>> Furthermore, say you ha
geQueue()
op()
So with this whole "hey mr. nice thread, please die for me" concept gets
ugly quickly in complex situations and doesn't scale well at all.
Furthermore, say you have a complex systems where users can write
pluggable modules. IF a module gets stuck inside of som
Closing the file should release the lock (unless you have a truly
> horrible operating system).
>
>
I also find that fcntl has problems with NFS (or at least, *I* had
problems using the python fcntl module and nfs - could be that horrible
operating system, but doing things like that o
>
>
This raises a good question. Is there a need for python to change
somewhat to work better in an embedded profile? Are there many people
in the community interested in using python for embedded projects?
--
Carl J. Van Arsdall
[EMAIL PROTECTED]
Build and Release
MontaVista Software
--
http://mail.python.org/mailman/listinfo/python-list
Lawrence D'Oliveiro wrote:
> In article <[EMAIL PROTECTED]>,
> "Carl J. Van Arsdall" <[EMAIL PROTECTED]> wrote:
>
>
>> Well, running the make on the command line seems to work just fine, no
>> errors at all.
>>
>
> What ab
t;
>
Well, running the make on the command line seems to work just fine, no
errors at all. I, in fact, get the results I expect with no error
messages printed out. I thought maybe something might have used cat as
a utility, thanks, i'll keep on it.
-c
--
Carl J. Van Arsdall
[E
t is growing). Does os.popen() have some kind
of read buffer limit that i'm hitting which is causing things to break?
--
Carl J. Van Arsdall
[EMAIL PROTECTED]
Build and Release
MontaVista Software
--
http://mail.python.org/mailman/listinfo/python-list
Bruno Desthuilliers wrote:
> Carl J. Van Arsdall wrote:
>
>> Sybren Stuvel wrote:
>>
>>
>>> Ant enlightened us with:
>>>
>>>
>>>
>>>> try:
>>>> assertion = callable.is_assertion
>&
re doomed"
traceback.print_exc() #something to print the traceback
exit_gracefully()
Is this frowned upon? You still handle the error and you know where it
happened and what happened. Anything wrong with this? I don't like the
idea of my system crashing for any reason.
-carl
--
Tom Plunket wrote:
> Carl J. Van Arsdall wrote:
>
>
>> Because of the GIL only one thread can actually run at a time.
>>
>
> I've recently been wondering about this, since in the work I do, a lot
> of time is spent doing disk I/O. So if I want the UI to
s that arise, its more like inefficiency. Anyhow, it
all depends on what you are trying to do and the needs of your
application.
-carl
--
Carl J. Van Arsdall
[EMAIL PROTECTED]
Build and Release
MontaVista Software
--
http://mail.python.org/mailman/listinfo/python-list
application in python requires
> self-discipline and attention to details, looking at the way you spell
> I think it will be a challenge ;)
>
One more comment would be that running parallel applications on python
can be problematic because of the way python does threading (an
is array you store strings, so if you want to print stuff out in
hex you need to give python integers, so let's say you have a list of
integers:
thisArray = [256,512,1024]
for item in thisArray:
print "%x"%item
That will print those integers in hex.
-carl
--
Carl J. Van Arsdall
[EMAIL PROTECTED]
Build and Release
MontaVista Software
--
http://mail.python.org/mailman/listinfo/python-list
ceQueue.initQueue()
File "/home/build/bin/resourceManager/resourceQueue.py", line 58, in
initQueue
raise ResourceError, "Unknown Error loading Queue"
resourceError.ResourceError: Unknown Error loading Queue
--
Carl J. Van Arsdall
[EMAIL PROTECTED]
Build and Release
MontaVista Software
--
http://mail.python.org/mailman/listinfo/python-list
ething
else equally vanilla? Are there any difference to library provided
exceptions other than their names?
-carl
--
Carl J. Van Arsdall
[EMAIL PROTECTED]
Build and Release
MontaVista Software
--
http://mail.python.org/mailman/listinfo/python-list
tl to get a lock on
lockfile"},
{"releaseLock", lock_releaseLock, METH_VARARGS, "releases lock on lockfile"},
{NULL, NULL}
};
/*Close the file to be neat about things*/
void cleanupModule(void)
{
close(fp);
}
/*Init function that python needs to load this as
iced
that each python thread spawns a new interpreter. If python is doing
this, I would think that each thread could be associated with PIDs or
something. I haven't thought about it too much, its a little to
crazy/brute force for me, but I thought i'd throw it out there so you
g
lities (utilities to help manage distribution of
work across 70 machines) and we are currently developing a distributed
execution framework.
Some cool stuff if you ask me (I mean, i had better like it, its my job!)
-carl
--
Carl J. Van Arsdall
[EMAIL PROTECTED]
Build and Release
MontaVista So
ee a couple typos
First, on the line
for line in fsfiles.readlines():
There's an extra s in fsfile
Secondly, the line:
print line
should have an indentation to denote that its the block of code that the
for loop will execute on.
.c
--
Carl J. Van Arsdall
[EMAIL PROTECTED]
Build and Release
rson
reading my code would more easily see any exit points in my code. Turns
out that it came to bite me later.
Again, thanks to all your help and comments on my coding style.
.c
--
Carl J. Van Arsdall
[EMAIL PROTECTED]
Build and Release
MontaVista Software
--
http://mail.python.org/mailman/listinfo/python-list
ionary
try:
self.__userData[variableName] = value
finally:
self.__mutex.release()
return
--
Carl J. Van Arsdall
[EMAIL PROTECTED]
Build and Release
MontaVista Software
--
http://mail.python.org/mailman/listinfo/python-list
t;
>
> Debate? There's no valid dabate. Tabs bad. Spaces good.
>
>
Hrmms, I think we should debate about the debate now, I mean we've
already beaten the actual topic to DEATH.
.c
--
Carl J. Van Arsdall
[EMAIL PROTECTED]
Build and Release
MontaVista Software
--
http://mail.python.org/mailman/listinfo/python-list
sub{$_+9}]
>
> That was easy.
>
Wakka wakka.
--
Carl J. Van Arsdall
[EMAIL PROTECTED]
Build and Release
MontaVista Software
--
http://mail.python.org/mailman/listinfo/python-list
other technologies enough to comment on them?
.c
--
Carl J. Van Arsdall
[EMAIL PROTECTED]
Build and Release
MontaVista Software
--
http://mail.python.org/mailman/listinfo/python-list
nto the framework making it easy for developers to distribute
tasks. Anyhow, any comments would be greatly appreciated! I also hope
to release this framework as an open-source project when its finished,
so again I community input is important.
Thanks!
.c
--
Carl J. Van Arsdall
[EMAI
amn.
>
>
Odi(e) was a punk. I'm gonna be a rebel without a cause and stay with
Monty ;)
--
Carl J. Van Arsdall
[EMAIL PROTECTED]
Build and Release
MontaVista Software
--
http://mail.python.org/mailman/listinfo/python-list
abs".
I think we've just about beat this discussion to death... nice work
everyone!
--
Carl J. Van Arsdall
[EMAIL PROTECTED]
Build and Release
MontaVista Software
--
http://mail.python.org/mailman/listinfo/python-list
Dave Hansen wrote:
> On Wed, 17 May 2006 12:02:46 -0700 in comp.lang.python, "Carl J. Van
> Arsdall" <[EMAIL PROTECTED]> wrote:
>
>
>> Andy Sy wrote:
>>
>>> Carl J. Van Arsdall wrote:
>>>
>>>
>>>
>>
Andy Sy wrote:
> Carl J. Van Arsdall wrote:
>
>
>>> Next major objection then, how can one practically use 'tabs as
>>> semantic indentation' without screwing up formatting of code like
>>> the below??
>>>
>>>
>>>
gt;
>
Why couldn't you tab your third line over as close as possible to the
start of the quote then use a couple spaces? Then the tabs would work
just fine and you could still have your pretty line.
.c
--
Carl J. Van Arsdall
[EMAIL PROTECTED]
Build and Release
MontaVista Software
--
http://mail.python.org/mailman/listinfo/python-list
r way, and in the end the indentation levels all
work out fine.
People want to fight tooth and nail over this debate. But its really
not worth it. Get an editor that doesn't completely suck and you won't
have problems.
.c
--
Carl J. Van Arsdall
[EMAIL PROTECTED]
Build and Release
MontaVista Software
--
http://mail.python.org/mailman/listinfo/python-list
wtf is it ?), so it had to be called
> something !
>
>
Well, we could call the perl camel Joe but I don't know if the perlcores
(read: hardcore PERL users) would be down for that ;)
.c
--
Carl J. Van Arsdall
[EMAIL PROTECTED]
Build and Release
MontaVista Software
--
http://ma
is for this belief.
>
>
To be honest, Monty really makes the most sense to me for a mascot
name... now if we can only get past all that damn copyright infringement ;)
--
Carl J. Van Arsdall
[EMAIL PROTECTED]
Build and Release
MontaVista Software
--
http://mail.python.org/mailman/listinfo/python-list
ading standards (should they ever become
available). I see other use cases as well, but I just wanted to throw a
couple ideas to see if this was worth thinking about further.
Thanks for reading this one, I know it was long but I'd really
appreciate your comments!
-Carl
--
Carl J. Va
constructs for making threads wait: Check out Events and Conditions
-carl
--
Carl J. Van Arsdall
[EMAIL PROTECTED]
Build and Release
MontaVista Software
--
http://mail.python.org/mailman/listinfo/python-list
tion, conditions are based on
> fields by using regexp
>
>
I just wanted to make the comment that there already exists a
Condition() class in the threading module. If you plan on using your
class with the threading module you might wish to use another name.
-carl
--
Carl J. Van
t; globals()
{'__builtins__': , '__name__':
'__main__', '__doc__': None, 'blah': None}
#Taking this a step further, this is a dictionary so you can use the
has_key method or try to access the dict and catch an exception should
the key not exist
>>> if globals().has_key('blah'):
... print "I have blah"
...
I have blah
-carl
--
Carl J. Van Arsdall
[EMAIL PROTECTED]
Build and Release
MontaVista Software
--
http://mail.python.org/mailman/listinfo/python-list
d + " and " + root.bTag
if nodeToFind == root.bTag:
return root
elif nodeToFind < root.bTag:
return( self.findNode(nodeToFind, root.left) )
else:
return( self.findNode(nodeToFind, root.right) )
--
Carl J. Van Arsdall
[EMAIL PROTECTED]
Buil
bjects into
files as they are and read them again as they were. Its fairly easy to
use and might work well for you.
HTH
-carl
--
Carl J. Van Arsdall
[EMAIL PROTECTED]
Build and Release
MontaVista Software
--
http://mail.python.org/mailman/listinfo/python-list
unction if i was writing
some type of manager for a computing farm or something like that.
--
Carl J. Van Arsdall
[EMAIL PROTECTED]
Build and Release
MontaVista Software
--
http://mail.python.org/mailman/listinfo/python-list
gt; I think something Monty Python related would be better. How
>> about a nice can of spam?
>>
>
> Six words: copyright violation ... trademark violation.
>
Six?
Looks more like 4 to me.
--
Carl J. Van Arsdall
[EMAIL PROTECTED]
Build and Release
MontaVista Software
--
http://mail.python.org/mailman/listinfo/python-list
1 - 100 of 131 matches
Mail list logo