qutebrowser v0.1 released

2014-12-14 Thread me
Hi, Exactly a year after the first commit[1] I'm proud to announce qutebrowser v0.1 has been released! qutebrowser is a keyboard-driven, vim-like browser based on Python3, PyQt5 and QtWebKit - similiar to projects like Vimperator/Pentadactyl, dwb, luakit, and others. More information about

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.

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: 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 PROTECTED] [Me] I need to install

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, not simply a redundant personal

problem with win32file.RemoveDirectory

2004-12-08 Thread me
the error message: Traceback (most recent call last): File C:\Python24\remove.py, line 2, in ? win32file.RemoveDirectory('C:\\Python24\\folder') error: (120, 'RemoveDirectoryW', 'This function is only valid in Win32 mode.') The new documentation tells me that RemoveDirectory is implemented

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

2009-01-27 Thread me
code 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+\([^)]*\)')

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

Re: python gui builders

2009-11-17 Thread me
Read the OP. No, read it again. sturlamolden wrote: On 16 Nov, 11:39, sturlamolden sturlamol...@yahoo.no 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

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

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 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: 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: 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

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

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 the

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

2014-01-26 Thread me
: 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 undefined behavior of the python specification, or at least bad behavior

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' syntax except

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
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. I'm a c/c++ guy through and through with a sprinkling of the ancient tongues like

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
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 allowed then. Updating to Exception,e

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: 1) Python is not C++ 2) You asked for help

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 no...@all.net 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 that the except: syntax yields undefined behavior, and in my

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

2014-12-18 Thread me
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 free to post my request on the group page. Thank

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) --

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: >

Re: regarding download issues from sharepoint site

2015-12-02 Thread me
On 2015-12-02, Arpit Arya <iamsexyar...@gmail.com> wrote: > please help me out http://catb.org/~esr/faqs/smart-questions.html#beprecise -- https://mail.python.org/mailman/listinfo/python-list

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? --

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

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

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

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

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

Re: complex numbers

2005-01-10 Thread It'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: complex numbers

2005-01-11 Thread It'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

Re: complex numbers

2005-01-11 Thread It'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 supports them. I really like Python's notion of having just one

Re: complex numbers

2005-01-11 Thread It'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'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 native data

Re: complex numbers

2005-01-12 Thread It's me
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] wrote in message news:[EMAIL PROTECTED] That's *it*. So, how would you overload

Why would I get a TypeEror?

2005-01-12 Thread It'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

counting items

2005-01-12 Thread It'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

Re: Iteration over two sequences

2005-01-12 Thread It'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

Re: Why would I get a TypeEror?

2005-01-12 Thread It's me
. :-( 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,(list,tuple,dict))] Why would I get a TypeError from the len function? the problem is, that (1,len

Re: counting items

2005-01-12 Thread It'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, a=[[1,2,4],4,5,[2,3]] I want to know how many

Re: counting items

2005-01-12 Thread It's me
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. What's the best way to count number of items in a list [that may contain

Re: counting items

2005-01-12 Thread It'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. What's the best way to count number of items in a list

Re: Why would I get a TypeEror?

2005-01-14 Thread It'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. :=) I am surprised about this (and this can be dangerous, I guess). If this is true, I

Re: How do I do this? (eval() on the left hand side)

2004-12-07 Thread It's me
Caleb Hattingh [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi It's me a = 3 y = a print eval(y) To get 'a' to be 4 here, you would say a = 4 Obviously but that's not what I wish to do. I am not sure why you would want to do otherwise? Perhaps you

sys.stdin.read question

2004-12-07 Thread It's me
code I saw uses this function in the same manner I am and so I am assuming this is the correct syntax? Or is this a bug in Python 2.4? -- It's me -- http://mail.python.org/mailman/listinfo/python-list

Re: How do I do this? (eval() on the left hand side)

2004-12-07 Thread It's me
track of which variable has what name and this method of using exec should be avoid if at all possible. I am just trying to understand the language and see what it can do. -- It's me Steven Bethard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] It's me wrote: How do I do

Re: Python 2.3.5 ?

2004-12-07 Thread It's me
Not to mention that there are packages out there that doesn't work (yet) with 2.4. Pynum is one such package. -- It's me Larry Bates [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Just because 2.4 arrives doesn't mean that ALL work is stopped on 2.3. It is quite common to have

Re: swig Python question

2004-12-08 Thread It's me
It's me [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am playing around with SWING building a Python module using the no brainer example in http://www.swig.org/tutorial.html. With that first example, Oops! Soapy fingers. SWIG - not SWING. -- It's me. -- http

Re: Calling a C program from a Python Script

2004-12-09 Thread It's me
a magical package call SWIG (http://www.swig.org) that makes writing C wrappers for Python always a child's play. It's incredible! Where were these guys years ago when I had to pay somebody moocho money to develop a script language wrapper for my application!!! -- It's me Brad Tilley [EMAIL PROTECTED

Re: New versions breaking extensions, etc.

2004-12-11 Thread It's me
would... -- It's me John Machin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Jive wrote: Martin v. Löwis [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] OTOH, people who only have VC6 just need to buy VS.NET 2003, which is still available. I don't even know how to do

Re: PythonWin Not Updating

2004-12-14 Thread It's me
It works fine here. -- It's me Chris [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm working on a program in PythonWin. The problem I'm running into is that after I make a code change, PythonWin doesn't always see it. Has anyone else had this problem? Chris -- http

Re: BASIC vs Python

2004-12-16 Thread It's me
Adam DePrince [EMAIL PROTECTED] wrote in message snip Don't do it, unless your goal is simply to embarrass and insult programmers. I saw this code from an earlier post: lst1 = [ab, ac, ba, bb, bc] lst2 = [ac, ab, bd, cb, bb] dct1 = dict.fromkeys(lst1) print [x for x in

Re: BASIC vs Python

2004-12-17 Thread It's me
Gregor Horvath [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] It's me wrote: Absolutely *ugly*! But still, your point is well taken. Thank you for pointing this out. Adam was right: Don't do it, unless your goal is simply to embarrass and insult programmers. OK

Re: swig Python question

2004-12-11 Thread It's me
is, however, once you structure the package to a form SWIG would work, it opens up the door to support multiple script languages (and they have a long list of supported script languages). If you hand crafted it to run the Python-C API, then you can only use Python as script. -- It's me Keith Dart

Re: BASIC vs Python

2004-12-16 Thread It's me
abisofile [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] hi I'm new to programming.I've try a little BASIC so I want ask since Python is also interpreted lang if it's similar to BASIC. Is a Ferrari similar to a horse-wagon? Yes, they both have 4 wheels. :=) --

Re: BASIC vs Python

2004-12-18 Thread It's me
Jan Dries [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Michael Hoffman wrote: Gregor Horvath wrote: Or make any given standard python object accessible from MS Excel in 2 minutes. from win32com.client import Dispatch xlApp = Dispatch(Excel.Application)

Re: Tricks to install/run Python on Windows ?

2004-12-26 Thread It's me
to do that permanently ! 4./ Before, I had Python23 and it seems that when unstalling it, all the keys in the registry are not removed at all. When i've install the 2.4, I had a mismatch which force me to complety re-install the machine (I'm not an expert of the registry)... 5./ Installing

Re: argument type

2004-12-27 Thread It's me
Donn, That would lead to program error easily because when one forgets to include the needed [], you get unintended result from the program. I am going to try the isinstance approach mentioned by Brian. Thanks, Donn Cave [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Quoth It's me

Re: argument type

2004-12-27 Thread It's me
snip def abc(arg1, arg2, arg3) if isinstance(arg2,(list,tuple)): for item in arg2: abc(arg1, item) Typo: abc(arg1, item, arg3) snip and likewise, I can do: abc(1,[String 1,String 2],5) Am I on the right track? Let me

Re: argument type

2004-12-27 Thread It's me
Steven Bethard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] snip Yeah, given those constraints, you basically have two options -- check for list/tuple (as you have above) or check for str/unicode (as I do below). I personally prefer the latter because it seems much more

Re: argument type

2004-12-27 Thread It's me
It's me [EMAIL PROTECTED] wrote in message news:EO6Ad.3296 I need to look up and see what: if not isinstance(arg2, basestring): does. Okay, I got the idea there. Now, what if arg2 is not a string but either a number or a bunch of numbers? Using your method, can I say something

Re: argument type

2004-12-28 Thread It's me
Rocco, your comment noted. Okay, I got what I need to know for this issue. Thanks everybody for your help. I greatly appreciate it. Rocco Moretti [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] It's me wrote: No, that was just an example. I actually have additional arguments

A scoping question

2004-12-28 Thread It's me
This must be another newbie gotchas. Consider the following silly code, let say I have the following in file1.py: #= import file2 global myBaseClass myBaseClass = file2.BaseClass() myBaseClass.AddChild(file2.NextClass()) #= and in file2.py, I have: #= global

Re: A scoping question

2004-12-28 Thread It's me
Premshree Pillai [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Tue, 28 Dec 2004 19:34:36 GMT, It's me [EMAIL PROTECTED] wrote: This must be another newbie gotchas. Consider the following silly code, let say I have the following in file1.py: #= import file2

Re: copying classes?

2004-12-29 Thread It's me
I would not think that a generic deepcopy would work for all cases. An object can be as simple as a number, for instance, but can also be as complex as the universe. I can't imagine anybody would know how to copy a complex object otherthen the object itself. I always think that a well designed

Why would I use inspect.isclass()?

2004-12-29 Thread It's me
I discovered the hardway what inspect.isclass() is doing. Consider this no brainer code: ### import inspect class Abc: def Hello(self): return an_instance=Abc() print inspect.isclass(an_instance) ### It took me a while to understand how I can get inspect.isclass to return a True

Re: Using Python in my programs

2004-12-29 Thread It's me
Assuming your program is written in C/C++, I would recommend that you start with SWIG. http://www.swig.org You can play around with that as a start. If later you decided that SWIG is not for you, you can always do it natively. There are plenty of information at www.python.org. Squirrel Havoc

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

2004-12-29 Thread It's me
Nicolas, Thanks for the response. Please see comment below. Nicolas Fleury [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] an_instance=Abc() But what good is that? Of course I know Abc is a class, why would I want to inspect it so that it would tell me what I already know

Re: Problem in threading

2004-12-29 Thread It'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 with some

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

2004-12-30 Thread it'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 me Nicolas Fleury

Re: Using python to deploy software

2004-12-30 Thread it'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. Your pyro

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

2004-12-30 Thread It's me
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] wrote in message news:[EMAIL PROTECTED] it's me wrote: Okay

OT: novice regular expression question

2004-12-30 Thread It'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

Re: Problem in threading

2004-12-30 Thread It's me
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 Unix (and it's variances) are considered thread-weak OSes. So, using thread

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

2004-12-30 Thread It's me
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's why it's hard for me to delegate error checking tasks to exception, rather

Re: The Industry choice

2004-12-30 Thread It'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't

Re: OT: novice regular expression question

2004-12-30 Thread It'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. Well, they are a pain to more than just you, and the conventional

Re: Parsing a search string

2004-12-31 Thread It's me
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 answer for yet. Is there an elegant way to turn something like: moo cow farmer

Re: Parsing a search string

2004-12-31 Thread It'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 S1: T1 E E S1 E E E E E E T1 S2: S2 E E S2 E E E E E T2 E S3: T3 E E S3 E

Re: Parsing a search string

2004-12-31 Thread It'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 S0: S0 E E S1 E E E S3 E S2 E S1: T1 E E S1 E E E E E E T1 S2: S2 E E S2 E E E E E

Re: Developing Commercial Applications in Python

2005-01-03 Thread It's me
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 the source open ? Thanks for any help. eeykay

Hlelp clean up clumpsy code

2005-01-03 Thread It'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

Re: Hlelp clean up clumpsy code

2005-01-04 Thread It's me
:[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] a_list = {} i = 0 for x in a: if isinstance(x, (int, long)): x = [x,] for w in [y for y

Re: Hlelp clean up clumpsy code

2005-01-04 Thread It'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 [EMAIL

Re: Python 2.4 on Windows XP

2005-01-05 Thread It'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

Re: win32com.client problem

2005-01-05 Thread It'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 and having to restart the PC too

Re: Python 2.4 on Windows XP

2005-01-05 Thread It'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 on two

Re: Python 2.4 on Windows XP

2005-01-05 Thread It'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 slightly and goes back to the command prompt

Another PythonWin Excel question

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

Re: Another PythonWin Excel question

2005-01-05 Thread It'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 installed on

Re: Another PythonWin Excel question

2005-01-06 Thread It'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 really have to know VBA, but if you're going to try to interact with COM objects

Re: Another PythonWin Excel question

2005-01-06 Thread It's me
! 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 none.by.e-mail wrote in message news:[EMAIL PROTECTED] It's me wrote: I followed the example in http://stompstompstomp.com/weblog

Re: Another PythonWin Excel question

2005-01-06 Thread It's me
Okay, thanks. That helps a lot. Mike Thompson none.by.e-mail 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 VBAs. Most of them can be translated to Python fairly easily

Re: sorting on keys in a list of dicts

2005-01-07 Thread It'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 suppose that

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

  1   2   >