pretty cool way of posting 2

2020-01-14 Thread me
30 lines of bash with 1 py3 line. all u need for usenet ! -- https://mail.python.org/mailman/listinfo/python-list

pretty cool way of posting

2020-01-14 Thread me
30 lines of bash with 1 py3 line. all u need for usenet ! -- https://mail.python.org/mailman/listinfo/python-list

BeautifulSoup help !!

2016-10-06 Thread desolate . soul . me
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

Re: Powerful perl paradigm I don't find in python

2016-01-15 Thread me
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

Re: What use of these _ prefix members?

2016-01-12 Thread me
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

Re: subprocess check_output

2016-01-05 Thread me
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:/

Re: python message

2015-12-03 Thread me
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

Re: regarding download issues from sharepoint site

2015-12-02 Thread me
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

Re: how to make the below code look better

2015-12-02 Thread me
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

New Python student needs help with execution

2015-06-10 Thread c me
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

Re: error with Firefox Binary 'The browser appears to have exited'

2015-04-15 Thread me
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

Re: Please help - Python role in Emeryville, CA - Full-time - $100K+

2014-12-18 Thread me
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

Re: buggy python interpretter or am I missing something here?

2014-01-27 Thread me
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

Re: buggy python interpretter or am I missing something here?

2014-01-26 Thread me
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:

Re: buggy python interpretter or am I missing something here?

2014-01-26 Thread me
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

Re: buggy python interpretter or am I missing something here?

2014-01-26 Thread me
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

Re: buggy python interpretter or am I missing something here?

2014-01-26 Thread me
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.

Re: buggy python interpretter or am I missing something here?

2014-01-26 Thread me
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

Re: buggy python interpretter or am I missing something here?

2014-01-26 Thread me
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: buggy python interpretter or am I missing something here?

2014-01-26 Thread me
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

Re:buggy python interpretter or am I missing something here?

2014-01-26 Thread me
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

buggy python interpretter or am I missing something here?

2014-01-26 Thread me
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

Re: stuck in files!!

2012-09-02 Thread me
Didn't see the post date on my reader haha. Sorry about that. -- http://mail.python.org/mailman/listinfo/python-list

Re: newbie ``print`` question

2012-09-02 Thread me
Well you can convert the ints to str then concatenate them. print "1" + "2" -- http://mail.python.org/mailman/listinfo/python-list

Re: How to print a number as if in the python interpreter?

2012-09-02 Thread me
Use repr() print(repr(sum([.1, .1, .1, .1, .1, .1, .1, .1, .1, .1]))) -- http://mail.python.org/mailman/listinfo/python-list

Re: stuck in files!!

2012-09-02 Thread me
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

Re: how to interact with Windows cmd?

2012-09-02 Thread me
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

love me

2010-08-28 Thread love me
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

love me

2010-08-27 Thread love me
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

Re: Implementation suggestions for creating a Hierarchical circuit database

2009-12-09 Thread Ask me about System Design
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

Re: python gui builders

2009-11-17 Thread me
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

python gui builders

2009-11-16 Thread me
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

creating a pattern using a previous match and a count of the number of '('s in it

2009-01-27 Thread me
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

DirectPython

2006-08-28 Thread J�r�me Le Bougeant
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

Re: Compiler for external modules for python

2006-07-24 Thread J�r�me Le Bougeant
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

Re: change default install directory when using bdist_rpm

2006-07-21 Thread J�r�me Le Bougeant
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

To compile the VideoCapture module

2006-07-10 Thread J�r�me Le Bougeant
,"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

Coming from delphi - looking for an IDE - willing to spend money

2006-04-24 Thread Just call me James
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

subset permutations

2005-12-08 Thread me you
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','

Re: Multiple versions

2005-11-30 Thread Me
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,

Re: Multiple versions

2005-11-28 Thread Me
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

Multiple versions

2005-11-28 Thread Me
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

Re: Newbie getting confused again

2005-03-05 Thread It&#x27;s me
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)] >

Re: Newbie getting confused again

2005-03-04 Thread It&#x27;s me
*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"

Newbie getting confused again

2005-03-04 Thread It&#x27;s me
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

Re: Pythoncard - Mistake in walkthrough?

2005-02-24 Thread It&#x27;s me
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

Re: Pythoncard - Mistake in walkthrough?

2005-02-23 Thread It&#x27;s me
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-

Re: PythonCard and Py2Exe

2005-02-22 Thread It&#x27;s me
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

problem with PythonCard -> wxPython -> _core.py -> class point -> __getitem__

2005-02-22 Thread It&#x27;s me
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

error

2005-01-24 Thread me
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

Re: Why would I get a TypeEror?

2005-01-14 Thread It&#x27;s me
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". :=) > > >

Re: counting items

2005-01-12 Thread It&#x27;s me
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. > &

Re: counting items

2005-01-12 Thread It&#x27;s me
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. > > > >

Re: counting items

2005-01-12 Thread It&#x27;s me
= {} 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

Re: Why would I get a TypeEror?

2005-01-12 Thread It&#x27;s me
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,(

Re: Iteration over two sequences

2005-01-12 Thread It&#x27;s me
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

counting items

2005-01-12 Thread It&#x27;s me
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

Why would I get a TypeEror?

2005-01-12 Thread It&#x27;s me
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

Re: complex numbers

2005-01-12 Thread It&#x27;s me
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

Re: complex numbers

2005-01-11 Thread It&#x27;s me
"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

Re: complex numbers

2005-01-11 Thread It&#x27;s me
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

Re: complex numbers

2005-01-11 Thread It&#x27;s me
"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

Re: complex numbers

2005-01-11 Thread It&#x27;s me
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

Re: complex numbers

2005-01-10 Thread It&#x27;s me
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]

Re: else condition in list comprehension

2005-01-09 Thread It&#x27;s me
> 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

Here is $50 for signing up free

2005-01-07 Thread me to you
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

Re: sorting on keys in a list of dicts

2005-01-07 Thread It&#x27;s me
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

Re: Another PythonWin Excel question

2005-01-06 Thread It&#x27;s me
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

Re: Another PythonWin Excel question

2005-01-06 Thread It&#x27;s me
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 > >

Re: Another PythonWin Excel question

2005-01-06 Thread It&#x27;s me
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

Re: Another PythonWin Excel question

2005-01-06 Thread It&#x27;s me
"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

Re: Another PythonWin Excel question

2005-01-05 Thread It&#x27;s me
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

Re: Another PythonWin Excel question

2005-01-05 Thread It&#x27;s me
"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

Another PythonWin Excel question

2005-01-05 Thread It&#x27;s me
can I get it to add *after*? Thanks, -- Me -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.4 on Windows XP

2005-01-05 Thread It&#x27;s me
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

Re: Python 2.4 on Windows XP

2005-01-05 Thread It&#x27;s me
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

Re: win32com.client problem

2005-01-05 Thread It&#x27;s me
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

win32com.client problem

2005-01-05 Thread It&#x27;s me
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 --

Re: Python 2.4 on Windows XP

2005-01-05 Thread It&#x27;s 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

Re: Hlelp clean up clumpsy code

2005-01-04 Thread It&#x27;s me
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" <[

Re: Hlelp clean up clumpsy code

2005-01-04 Thread It&#x27;s me
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]

Hlelp clean up clumpsy code

2005-01-03 Thread It&#x27;s me
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_

Re: Developing Commercial Applications in Python

2005-01-03 Thread It&#x27;s me
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

Re: Developing Commercial Applications in Python

2005-01-03 Thread It&#x27;s me
"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

Re: Developing Commercial Applications in Python

2005-01-03 Thread It&#x27;s me
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

Re: arbitrary number of arguments in a function declaration

2005-01-02 Thread it&#x27;s me
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

Re: Parsing a search string

2004-12-31 Thread It&#x27;s me
"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 > >

Re: Parsing a search string

2004-12-31 Thread It&#x27;s me
"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 > &

Re: Parsing a search string

2004-12-31 Thread It&#x27;s me
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

Re: OT: novice regular expression question

2004-12-31 Thread It&#x27;s me
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.

Re: OT: novice regular expression question

2004-12-30 Thread It&#x27;s me
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

Re: OT: novice regular expression question

2004-12-30 Thread It&#x27;s me
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. > > >

Re: The Industry choice

2004-12-30 Thread It&#x27;s me
"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'

Re: Why would I use inspect.isclass()?

2004-12-30 Thread It&#x27;s me
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'

Re: Problem in threading

2004-12-30 Thread It&#x27;s me
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

OT: novice regular expression question

2004-12-30 Thread It&#x27;s me
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

Re: Why would I use inspect.isclass()?

2004-12-30 Thread It&#x27;s me
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]>

Re: Using python to deploy software

2004-12-30 Thread it&#x27;s me
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

Re: Why would I use inspect.isclass()?

2004-12-30 Thread it&#x27;s me
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

Re: Problem in threading

2004-12-29 Thread It&#x27;s me
"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   2   >