30 lines of bash with 1 py3 line.
all u need for usenet !
--
https://mail.python.org/mailman/listinfo/python-list
30 lines of bash with 1 py3 line.
all u need for usenet !
--
https://mail.python.org/mailman/listinfo/python-list
So I've just started up with python and an assignment was given to me by a
company as an recruitment task.
I need to web scrap the coupons of all the websites available on
http://www.couponraja.in and export it to csv format.
The details which I need to be present in the csv are the c
On 2016-01-15, Ulli Horlacher wrote:
> Charles T. Smith wrote:
>> while ($str != $tail) {
>> $str ~= s/^(head-pattern)//;
>> use ($1);
>> }
>
> use() is illegal syntax in Perl.
Actually it is not. OP is defnitely thinking of `use` as a placeholder for
some general use of the value $1.
I
On 2016-01-10, Peter Otten <__pete...@web.de> wrote:
class Derived(Base):
> ... def _init(self, x):
> ... super()._init(x)
> ... print("do something else with", x)
> ...
Derived(42)
> do something with 42
> do something else with 42
><__main__.Derived object at 0x7f8e
On 2016-01-02, Chris Angelico wrote:
> down to "whoops, I forgot to save the file" or "whoops, I was in the
> wrong directory"...
Amen, bro.
Exceptionally true if you ever need for some reason to put your code in
another directory, but you forget to close the files in your editor. :D
--
https:/
On 2015-12-02, jorge.conr...@cptec.inpe.br wrote:
> I do not understand this message. Atached it my code.
I'm new to Usenet, so maybe it's my fault. But I can't find any attachment
in your message.
Would you mind to post the code?
--
https://mail.python.org/mailman/listinfo/python-list
On 2015-12-02, Arpit Arya wrote:
> please help me out
http://catb.org/~esr/faqs/smart-questions.html#beprecise
--
https://mail.python.org/mailman/listinfo/python-list
On 2015-12-02, Ganesh Pal wrote:
> if not os.path.ismount("/tmp"):
>sys.exit("/tmp not mounted.")
> else:
> if create_dataset() and check_permission():
> try:
> run_full_back_up()
> run_partial_back_up()
> except Exception, e:
> logging.er
I installed 2.7.9 on a Win8.1 machine. The Coursera instructor did a simple
install then executed Python from a file in which he'd put a simple hello world
script. My similar documents folder cannot see the python executable. How do
I make this work?
--
https://mail.python.org/mailman/listinf
Have you tried specifying the location of Firefox binary explicitly ?
from selenium.webdriver.firefox.firefox_binary import FirefoxBinary
binary =
FirefoxBinary('C:\Users\aplusk\Documents\FirefoxPortable\App\Firefox\\firefox.exe')
browser = webdriver.Firefox(firefox_binary=binary)
--
https://mai
company.
> Ideally I'd like to find someone who is nice, plugged into the movie and
> comic culture, and very skilled at python and web application
> development.
>
> If you know of anyone local to the area who would be interested please
> put me in touch with them. Feel
On Mon, 27 Jan 2014 20:01:33 +1100, Chris Angelico wrote:
> On Mon, Jan 27, 2014 at 6:44 PM, me wrote:
>> On Sun, 26 Jan 2014 23:17:29 -0800, Ethan Furman wrote:
>>
>>> On 01/26/2014 10:46 PM, me wrote:
>>>>
>>>> [...] I'm satisfied t
On Sun, 26 Jan 2014 23:17:29 -0800, Ethan Furman wrote:
> On 01/26/2014 10:46 PM, me wrote:
>>
>> [...] I'm satisfied that the except: syntax yields undefined behavior,
>> and in my mind it shouldn't be
>> syntactically allowed then.
>
> Two points:
On Sun, 26 Jan 2014 23:12:18 -0800, Gary Herron wrote:
> On 01/26/2014 10:46 PM, me wrote:
>> In any case, thanks for the answers guys. I'm satisfied that the
>> except:
>> syntax yields undefined behavior, and in my mind it shouldn't be
>> syntactically allo
On Sun, 26 Jan 2014 23:03:51 -0800, Gary Herron wrote:
found the part I was missing based on another response. Didn't realize
that sys.exit() triggered an instance of "BaseException" and that
explains the weird behavior.
thx!
--
https://mail.python.org/mailman/listinfo/python-list
does change things a bit and makes perfect sense now. Thx!
> And, please take this positively, but from your posted code it's fairly
> apparent that Python is not your native tongue :).
Correct. The barbarians invaded my homeland and forced me to speak their
wicked incantations.
In any case, thanks for the answers guys. I'm satisfied that the except:
syntax yields undefined behavior, and in my mind it shouldn't be
syntactically allowed then.
Updating to Exception,e or Exception as e fixes the problem.
--
https://mail.python.org/mailman/listinfo/python-list
On Mon, 27 Jan 2014 01:21:41 -0500, Terry Reedy wrote:
> On 1/27/2014 12:04 AM, Gary Herron wrote:
>
>> Do
>>try:
>>...
>>except Exception,e:
>>print e
>> at the absolute minimum.
>> (Python 3 syntax would differ slightly, but the advice is the same.)
>
> The 'python 3' s
re's the clencher without debating the merits bare except: since a
bare catch(...) is totally acceptable in the c++ world.
When I have except: by itself the program fails...but simply adding the
"except Exception,e: " causes the program to work correctly.
To me that signifies an
On Mon, 27 Jan 2014 00:36:20 -0500, Dave Angel wrote:
> sys.exit() raises an exception, and you're deliberately eating
> that exception.
>
I can buy that sys.exit (may) be throwing an exception...My point of
contention isn't that I may be throwing one, but why would a subsequent
"raise" in t
I'm writing a linux daemon in python 2.x to process batches of GPS/GIS
data and I'm running into something that seems to break the expected
program flow in a REALLY BAD WAY.
Consider the attached template script and execute it with the -h option.
It is falling through to the except: clause eve
Didn't see the post date on my reader haha. Sorry about that.
--
http://mail.python.org/mailman/listinfo/python-list
Well you can convert the ints to str then concatenate them.
print "1" + "2"
--
http://mail.python.org/mailman/listinfo/python-list
Use repr()
print(repr(sum([.1, .1, .1, .1, .1, .1, .1, .1, .1, .1])))
--
http://mail.python.org/mailman/listinfo/python-list
The best you can do is pipe a string to a .txt document then pipe it again to a
wordpad document. You should be able to do that easily with file and open()
--
http://mail.python.org/mailman/listinfo/python-list
Not sure but have you tried using functions from the os library? For example
you could use execl() to execute your commands and pipe the output
somewhere-stdin in your case.
--
http://mail.python.org/mailman/listinfo/python-list
1st step
add me in like box on my facbook page at this link
http://www.facebook.com/pages/loveme/145529285481739
2nd step
visit this link http://www.kqzyfj.com/click-3778203-10786395
--
http://mail.python.org/mailman/listinfo/python-list
1st step
like me on facbook at this link
http://www.facebook.com/pages/loveme/145529285481739
2nd step
visit this link http://www.kqzyfj.com/click-3778203-10786395
--
http://mail.python.org/mailman/listinfo/python-list
or analyzing designs for connectivity,
> types of elements (resistors/capacitors) and figuring out some simple
> electrical properties.
>
> I am just starting, so please bear with me if I haven't thought about
> corner cases.
>
> Regards
> Nick
If you start by consider
Read the OP. No, read it again.
sturlamolden wrote:
On 16 Nov, 11:39, sturlamolden wrote:
If you are fine with Microsoft only, you can use Windows Forms with MS
Visual Studio and IronPython.
I also forgot to mention:
If you can restrict yourself to Windows, you can always use Visual
Basic
The
last time I did gui garbage was with Borland C++ Builder which
was ok because I was only using win boxen for that project. This
time I am using both Linux and Win.
What Python gui builder is well supported, does not require me
to learn another framework/library, and can crank out stuff
I'm new to regexs and trying to get a list of all my C++ methods with balanced
parenthesis as follows.
#find all c++ method prototypes with a '::' in the middle
#upto and including the 1st closing parenthesis
pattern_upto_1st_closed_parenth = re.compile('\w+::\w+\([^)]*\)')
match_upto_1st_cl
c.py", line 147, in ?
mainloop()
File "sampleBasic.py", line 75, in mainloop
d3d.createDevice(title, u"textures/x.ico", window[2], window[3], False,
CREATE.HARDWARE)
RuntimeError: Failed to create a device
Why ?
please help me... any help would be apprecia
VS2003 : http://vecchio56.free.fr/VCToolkitSetup.exe
> Hello:
> I have interesting external modules that I want to incorporate to
> python 2.4.3 and python 2.5b2 also. Some of them requires C/C++
> compiler. I work with Win XP Sp2 and have installed VC2005 express (I
> do not know if the compiler
Hi,
try :
python setup.py bdist_rpm --dist-dir="/home/..."
> I'm using :
> python setup.py bdist_rpm
>
> to create an rpm package to distribute my python app on linux.
>
> When i install the rpm, the files are installed in
> /usr/share/python/site-packages/. directory by default.
>
> How do i
,"C:\DX90SDK\Lib","C:\Python23\Enthought\MingW\lib"])
])
The include_dirs enable me to indicate the access path has my .h that I
need. And library_dirs in theory the libraries which I need (I say in theory
because I do not have the impression that it takes into account, but
Hi,
Coming away from the luxury of the delphi IDE has been something of a
shock.
As a consequence I've become aware that maybe I need to spend some
money on a python IDE.
As a beginner I reckon integrated debugging would be helpful.
Does anyone have any advice or suggestions? So far I've glance
Hello all,
I'm a beginner with programming. Trying to teach myself with that excellent rat book. Unfortunately I just can't seem to figure out a simple problem that has come up at my work (biology lab):
let's say I have a list ['A','C','D','E','F','G','H','I','K','L','M','N','P','Q','R','S','T','
This will work fine for me Tim, thank you for your time!
"Tim Golden" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
(Just to keep things readable, I've reordered the
posts top-to-bottom chronologically. And "Me" is the
cognomen of the original poster,
Thank you for your reply! Is there a simple way to change the .py/.pyw
associations? Like a registry setting I can "toggle"? Or are there lots of
other things involved, system directory libraries etcetera?
"Tim Golden" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PR
I need to install both 2.3 and 2.4 on my Win2000 system. Can someone please
give me a pointer as to how to do this? Thanks!
--
http://mail.python.org/mailman/listinfo/python-list
Thanks, got it.
"M.E.Farmer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> It's me wrote:
> > If I have:
> >
> > a = (1,2,3)
> >
> > how do I ended up with:
> >
> > res=[(1), (2), (3), (4), (5)]
>
*bonk, bonk, bonk*
Now I feel better.
Thanks, everybody. The "+" is indeed what I was looking for.It just
didn't occur to me that this is the way you concatenate two lists together.
But of course, that makes sense, doesn't it?
Thanks again.
"Peter Hansen"
If I have:
a = (1,2,3)
how do I ended up with:
res=[(1), (2), (3), (4), (5)]
without doing:
res=[(a[0]), (a[1]), (a[2]), (4), (5)]
???
ps: This is just a nobrainer example of what my real code is trying to do.
"a" might have many many elements. That's why the explicit indexing
No, those are old still.
"Deltones" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> > As stated in the on-line WalkThrough, the information there was written
for
> > an older version of the program.
> >
>
>
> Hi,
>
> I understand, but the walkthrough I'm doing comes from the doc fo
e
> tutorial from this page:
> http://pythoncard.sourceforge.net/walkthrough1.html
>
> Is it me who's totally dense or there's some sort of confusion with
> this tutorial?
>
> Here's what is said in the tutorial:
>
> Open the file starter1.py in your Python-
It's:
from PythonCard.components import radiogroup
not just:
from PythonCard import radiogroup
"PipedreamerGrey" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I'm trying to create a standalone version (.exe) of PythonCard's Custdb
> sample using Py2Exe version 0.5.0. E
I've built a Python application using PythonCard 1.9 and Python 2.3 running
under Windows XP. Everything works except that when I use the keyboard
instead of the mouse to do certain operations in a data entry field (like
Shift-Home), the
program stops at line 1014 of wx-2.5.3-msw.ansi\wx\_core.py
whenever i try and run my Python GUI, my computer thinks for a sec, then
drops the process, without ever displaying the window. the command prompt
window seems to work fine, but the IDLE GUI won't start.
i'm running Windows 2K professional and python 2.4, so any advice help would
be appreciated. i
Say again???
"Reinhold Birkenfeld" <[EMAIL PROTECTED]> wrote in
message news:[EMAIL PROTECTED]
> It's me wrote:
> > Sorry if my question was a little "lazy" and yes, I was asking about the
> > "lazy evaluation". :=)
> >
>
Thanks.
May be flatten should be build into the language somehow
"Paul McGuire" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> "It's me" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > Okay, I give up.
> &
return len([(i,x) for i, x in enumerate(flatten(data))])
data = [[1,5,2],8,4]
print count_item(data)
Thanks everybody.
"Mark McEahern" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> It's me wrote:
>
> >Okay, I give up.
> >
> >
= {}
for i, x in enumerate(flatten(data)):
val_to_pos[x] = i + 1
print val_to_pos
"It's me" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Okay, I give up.
>
> What's the best way to count number of items in a list?
>
> For instance,
&g
Something to keep in mind. :-(
"harold fellermann" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> On 12.01.2005, at 18:35, It's me wrote:
>
> > For this code snip:
> >
> > a=3
> >
> > b=(1,len(a))[isinstance(a,(
I tried this and I got:
[(1, 'a'), (2, 'b'), (3, 'c')]
But if I change:
a=[1,2]
I got:
[(1, 'c')]
Why is that? I thought I should be getting:
[(1, 'a'),(2,'b')]
?
"Diez B. Roggisch" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> zip or izip is your friend:
>
> import i
Okay, I give up.
What's the best way to count number of items in a list?
For instance,
a=[[1,2,4],4,5,[2,3]]
I want to know how many items are there in a (answer should be 7 - I don't
want it to be 4)
I tried:
b=len([x for y in a for x in y])
That doesn't work because you would get an iterat
For this code snip:
a=3
b=(1,len(a))[isinstance(a,(list,tuple,dict))]
Why would I get a TypeError from the len function?
Thanks,
--
http://mail.python.org/mailman/listinfo/python-list
path before with C++ and Modelica.
It gets ugly.
Anyway.
"Antoon Pardon" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Op 2005-01-12, It's me schreef <[EMAIL PROTECTED]>:
> >
> > "Robert Kern" <[EMAIL PROTECTED]> w
"Robert Kern" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> That's *it*.
So, how would you overload an operator to do:
With native complex support:
def twice(a):
return 2*a
print twice(3+4j), twice(2), twice("abc")
Let's presume for a moment that complex is *not* a nati
You are focusing on computational type applications of complex numbers. For
those, you can do it with any languages - including machine language. It's
just a matter of how much headache you want.
For instance, when constructing "software lego parts" (such as the
Matlab/Simulink type), it's very
"Big and Blue" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> It's me wrote:
> >
> > I am very happy that Python included *native* complex
number
> > support.
>
> And I have always been happy that FORTRAN suppo
Operator overloading (and function overloading) helps but not enough.You
have to be aware of the complex type *everywhere* you go and that's very
annoying and error prone. I've been the works with C++, and later with
Modelica. I am very happy that Python included *native* complex number
supp
For those of us that works with complex numbers, having complex number as a
natively supported data type is a big advantage. Non-native add-ons are not
sufficient and lead to very awkward program code.
"Jürgen Exner" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> [EMAIL PROTECTED]
> z = [i + (2, -2)[i % 2] for i in range(10)]
But then why would you want to use such feature? Wouldn't that make the
code much harder to understand then simply:
z=[]
for i in range(10):
if i%2:
z.append(i-2)
else:
z.append(i+2)
Or are we trying to write a book on "Puzz
Hello, I'm trying out a new auto poster, and dont know how to use it very
good, so if this end up in the wrong places, please forgive me,
and disreguard, sorry for your incovenience, but everyone else, ENJOY!!
KEEP READING TO GET YOUR $50.00 NOW!!!
This is not spam, it
What does it mean by "stability in sorting"?
Can somebody please give a sample for using the code posted? I am a little
lost here and I like to know more about the use of keys
Thanks,
"Nick Coghlan" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Jeff Shannon wrote:
> > I supp
Okay, thanks. That helps a lot.
"Mike Thompson" wrote in message
news:[EMAIL PROTECTED]
> It's me wrote:
> > Yes, Mike,
> >
> > Others pointed that out as well.
>
> For good reason.
>
> >
> > The difficulty is that they are all in VB
and viola! No mentioning
of that anwhere
Would be nice if there's a Python specific of itbut just dreaming...
Back to reading MSDN.
Thanks,
"Mike Thompson" wrote in message
news:[EMAIL PROTECTED]
> It's me wrote:
> > I followed the example in
> >
Thanks,
"David Bolen" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> "It's me" <[EMAIL PROTECTED]> writes:
>
> > Yes, I read about that but unfortunately I have no experience with VBA
*at
> > all*. :=(
>
> You don't
"Marten Bauer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> I did it yesterday like this way and it works well (part of my code):
>
> wb.Worksheets.Add(Count=nrMonths,After=wb.Worksheets(1))
>
> As I read in MSDN you could not write After="sheet1" instead you must
> use th
Ah, this work:
self.xlbook.Worksheets.Add(None,sht)
got it from:
http://mail.python.org/pipermail/python-list/2003-September/183367.html
Thanks again.
--
Me
"It's me" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> "Kartic" <[EMAIL PR
"Kartic" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I am not sure about this but I believe you can give a parameter
> after="sheet1". to Add(), like so, Add(after="sheet1").
>
I get a "got an expected keyword argument 'after'" from Add().
> Unfortunately I do not have Excel in
can I get it to
add *after*?
Thanks,
--
Me
--
http://mail.python.org/mailman/listinfo/python-list
Thanks, Jeff.
That works.
"Jeff Shannon" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> It's me wrote:
>
> > In my case, there is *no* error message of any kind. When I run
pythonw.exe
> > from the python23 directory, the screen blinked sl
In my case, there is *no* error message of any kind. When I run pythonw.exe
from the python23 directory, the screen blinked slightly and goes back to
the command prompt.
"Jeff Shannon" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> DavidHolt wrote:
>
> > I have a problem that I see
Thanks for the reply. I will chew on this a bit.
"Kartic" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
> 1. Put your COM invokations in a try/except loop. From my experience,
> that helped me prevent, in most cases, Excel from "hanging&qu
ave fine and it would start with "Microsoft Excel - Book1" everytime.
My guess is that there is a zombie Excel process that got stuck in the
system. However I couldn't tell for sure by looking at the Process Manager
list.
Any idea how I can prevent this?
Thanks,
--
Me
--
I am running 2.3 and it's doing the same thing on my computer - except that
I can't even get it to start from the command prompt.
It used to work but after I switched back and forth between 2.3, and 2.4 and
somewhere in between, it stopped working.
I hope somebody on the list would have a clue ho
What's "LBYL"? Oh...Look-before-you-leap. OK.
I think I understand what's going on now (I read up on generator and
iterators and my head still hurts). I knew there must be a cleaner way of
"walking" around in Python. I will experiment with generator more.
Thanks everybody.
"Jp Calderone" <[
an" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> It's me wrote:
> > Another newbie question.
> >
> > There must be a cleaner way to do this in Python:
> >
> > section of C looking Python code
> > a = [[1,5,2], 8, 4]
Another newbie question.
There must be a cleaner way to do this in Python:
section of C looking Python code
a = [[1,5,2], 8, 4]
a_list = {}
i = 0
for x in a:
if isinstance(x, (int, long)):
x = [x,]
for w in [y for y in x]:
i = i + 1
a_list[w] = i
print a_
h MFC on the newest
> version.
> > Yuck!
> >
>
> Hahaha, sounds like a party to me. And they didn't even throw in a layer
of
> Lisp for good effort? Too bad, if you ask me :)
>
>
--
http://mail.python.org/mailman/listinfo/python-list
"Richards Noah (IFR LIT MET)" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> Begging your pardon, but a better resource would be the brochure available
> (http://www.pti-us.com/PTI/company/brochures/PSSE.pdf). It appears that
the
> program was probably (originally) written in C/C
in his new product. He
> is worried about the license issues. Can somebody there to point me any
> good commercial applications developed using python ?. The licence
> clearly says Python can be used for commercial applications. Is there
> any other implications like that of GPL to make
And in case it's not obvious already, you get the number of arguments that
got passed down from:
len(args)
"Nick Coghlan" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> rbt wrote:
> > How do I set up a function so that it can take an arbitrary number of
> > arguments? For examp
"John Machin" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Andrew Dalke wrote:
> > "It's me" wrote:
> > > Here's a NDFA for your text:
> > >
> > >b 0 1-9 a-Z , . + - ' " \n
> >
"Andrew Dalke" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> "It's me" wrote:
> > Here's a NDFA for your text:
> >
> >b 0 1-9 a-Z , . + - ' " \n
> > S0: S0 E E S1 E E E S3 E S2 E
> &
to hire a programmer to write some clean Python parsing code.
:-)
--
It's me
"Freddie" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Happy new year! Since I have run out of alcohol, I'll ask a question that
I
> haven't really worked out an answ
Oops!
Sorry, didn't realize that.
Thanks,
"M.E.Farmer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> It's me wrote:
> > The shlex.py needs quite a number of .py files. I tried to hunt down
> a few
> > of them and got really tire.
The shlex.py needs quite a number of .py files. I tried to hunt down a few
of them and got really tire.
Is there one batch of .py files that I can download from somewhere?
Thanks,
"M.E.Farmer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello me,
> Have
I'll chew on this. Thanks, got to go.
"Steve Holden" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> It's me wrote:
>
> > I am never very good with regular expressions. My head always hurts
> > whenever I need to use it.
> >
>
"Premshree Pillai" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> It certainly is not because Python is bad or something. Organizations
> typically take lot of time to change -- be it technology or office
> furniture.
>
In our industry, the code for the bread and butter tool hasn'
se. When it's others, you have to be a little more
> careful to catch the exceptions (except when you don;t bother, in which
> case the users will have to understand the tracebacks).
>
I grew up in an environment that believes in prevention, rather then
after-the-fact fixing. That'
hread swithing time is only a few machine instructionsOT.OT.
"David Bolen" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> "It's me" <[EMAIL PROTECTED]> writes:
>
> > It depends on what "help" means to you. Both Windows and
I am never very good with regular expressions. My head always hurts
whenever I need to use it.
I need to read a data file and parse each data record. Each item on the
data record begins with either a string, or a list of strings. I searched
around and didn't see any existing Python packages tha
s why I am struggling to learn about this.
It's hard to writing a routine and not thinking what kind of parameters will
be passed down from above. In the old days, we go out of the way to do that
so programs don't fail in mysterous ways.
"Steve Holden" <[EMAIL PROTECTED]>
pyro is most intriguing! Thanks for the information.
"Anand" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I haven't but one of my friends have used Pyro (Python Remote Objects)
> to do so.
>
> You basically need to write a custom Pyro server and run it on a
> central machine. You
Okay, Nick, I didn't know you can pass a "Class" rather then an instance. I
have to chew on what your example does.
But no, I want to pass an instance of a Class. But how do I know that the
calling routine *did* pass me a class - pardon me: an instance of a Class?
--
It's m
"Gurpreet Sachdeva" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> So That means blindly using threads on any process won't help!
>
It depends on what "help" means to you. Both Windows and Unix (and it's
variances) are considered "thread-weak" OSes. So, using thread will come
1 - 100 of 138 matches
Mail list logo