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

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

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 PR

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,

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

problem with win32file.RemoveDirectory

2004-12-08 Thread me
")' causes 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.') Th

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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: 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: 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
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: 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". :=) > > >

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

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

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

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

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

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

2004-12-07 Thread It&#x27;s me
I am new to the Python language. How do I do something like this: I know that a = 3 y = "a" print eval(y) would give me a print out of 3 - but how do I do something to the effect of: eval(y) = 4# hopefully the value of a gets changed to 4 ?? Thanks,

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

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

sys.stdin.read question

2004-12-07 Thread It&#x27;s me
ot in). Some sample 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&#x27;s me
Yes, Russell, what you suggested works. I have to chew more on the syntax to see how this is working. because in the book that I have, it says: exec code [ in globaldict [, localdict] ] ... -- It's me "Russell Blau" <[EMAIL PROTECTED]> wrote in message news:[EMAIL

Re: sys.stdin.read question

2004-12-07 Thread It&#x27;s me
"Grant Edwards" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On 2004-12-07, It's me <[EMAIL PROTECTED]> wrote: > > Why do I get an "AttributeError: read" message when I do: > > > > import sys > > r=sys.stdi

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

2004-12-07 Thread It&#x27;s me
f time and so I would have to somehow convert a string to be used as variable. Of course, I can create a dictionary to keep 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.

Re: sys.stdin.read question

2004-12-07 Thread It&#x27;s me
Yes, if I run the script from the command prompt, it works. I was running it inside the Python IDE. Thanks, -- It's me "Grant Edwards" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On 2004-12-07, It's me <[EMAIL PROTECTED]> wrote: > >

Re: Python 2.3.5 ?

2004-12-07 Thread It&#x27;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 stoppe

swig & Python question

2004-12-08 Thread It&#x27;s me
r, when I try to access the gloabl variable My_variable by doing: print example.cvar I get a blank (rather then a value of 3.0). Why? -- It's me -- http://mail.python.org/mailman/listinfo/python-list

Re: swig & Python question

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

Re: Calling a C program from a Python Script

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

Re: New versions breaking extensions, etc.

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

Re: PythonWin Not Updating

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

Re: BASIC vs Python

2004-12-16 Thread It&#x27;s me
"Adam DePrince" <[EMAIL PROTECTED]> wrote in message > > 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)

Re: BASIC vs Python

2004-12-17 Thread It&#x27;s me
6, but pythons lists and dictionarys are superior > to those built in in VB and I think to those in most other languages. > > > > > It's me wrote: > > > > > >>I saw this code from an earlier post: > >> > >>lst1 = ["ab", "ac&qu

Re: BASIC vs Python

2004-12-17 Thread It&#x27;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: > > > >

PyCrust: What am I suppose to do?

2004-12-17 Thread It&#x27;s me
I am trying out PyCrust and at a lost what to do next. With the previous IDE I tried, the IDE pops up the console and the editor. From the editor, I can set up breakpoints and debug and so forth. Yes, I can even run the script. With PyCrust, the nice looking 3-pane window pops up with lots of t

Re: swig & Python question

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

Re: BASIC vs Python

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

  1   2   >