system tray for Tk

2008-07-07 Thread Oguz Yarimtepe
Hi, Is there any binding that i can use for my python-tk application that will show an icon at the system tray when the application runs which will be able to be change during the process? -- Oğuz Yarımtepe -- http://mail.python.org/mailman/listinfo/python-list

Re: extended setattr()

2008-07-07 Thread Diez B. Roggisch
Rotlaus schrieb: On 7 Jul., 08:01, Rotlaus <[EMAIL PROTECTED]> wrote: 2 weeks ago i asked for a etended getattr() which worked really fine, but now i would love to have a extendedsetattr() as well. I've tried the following, but it doesn't work: class A(object): def __init__(self):

Re: extended setattr()

2008-07-07 Thread Rotlaus
On 7 Jul., 08:01, Rotlaus <[EMAIL PROTECTED]> wrote: > 2 weeks ago i asked for a etended getattr() which worked really fine, > but now i would love to have a extendedsetattr() as well. I've tried the following, but it doesn't work: class A(object): def __init__(self): self.B = B() cl

Re: interpretation of special characters in Python

2008-07-07 Thread TP
Peter Pearson wrote: > I don't understand exactly what you mean by "Sorry" I means: please forgive me for having said that it does not work with variables, because it is completely false. Thanks one more time Julien -- TP (Tribulations Parallèles) "Allez, Monsieur, allez, et la foi vous vien

Tk overrideredirect problem

2008-07-07 Thread Oguz Yarimtepe
Hi, At my GUI application i am catching a key press action. The code is working if i don't enable the overrideredirect. When i comment out the overriderect part i can see the picture but i am not able to catch the key presses. It seems like the GUI is stucked. But i want to have windowless apper

Re: interpretation of special characters in Python

2008-07-07 Thread Peter Pearson
On Mon, 07 Jul 2008 10:05:56 +0200, TP <[EMAIL PROTECTED]> wrote: > TP wrote: > >> So, the python print command *can* interpret these 4-character as a single >> character. It would be odd if there were no possibility to do the same >> thing when the characters are (i) stored in a python variable >

Re: Dynamically Changing the Base Class

2008-07-07 Thread Michele Simionato
On Jul 7, 8:08 pm, "Adam C." <[EMAIL PROTECTED]> wrote: > Thanks. I think we would want new-style classes, and 6-year-old > patches strike me as maybe a little out of the desired path... so this > really just doesn't work in modern Python? Can you use (multiple) inheritance instead of changing the

Re: How to make python scripts .py executable, not bring up editor

2008-07-07 Thread Grumman
korean_dave wrote: From command Prompt, i type in a script, "tryme.py". This, instead, brings up PythonWin editor and Interactive Window. Path variable is "C:\Python24". (I need Python 2.4 installed, not 2.5) How do I make it so that the script runs? Start->My Computer->Properties->Advanced

Re: Python Agile Software Development Tools Screencasts

2008-07-07 Thread Andrew Freeman
Ben Finney wrote: > Andrew Freeman <[EMAIL PROTECTED]> writes: > >> http://videos1.showmedo.com/ShowMeDos/291.flv >> > > Which leads one to wonder why they don't just present that URL for > download instead of behind a "log in" gate. And how long that will be > possible before they brea

Re: Python Agile Software Development Tools Screencasts

2008-07-07 Thread Ben Finney
Andrew Freeman <[EMAIL PROTECTED]> writes: > http://videos1.showmedo.com/ShowMeDos/291.flv Thanks, that works, and GStreamer (via Totem) plays it fine. > I hope the presenter doesn't mind, but it is quite simple to > discover using open source tools like firebug. Which leads one to wonder w

Re: conflict between multiple installs of python (linux)

2008-07-07 Thread Zentrader
On Jul 5, 11:09 am, david <[EMAIL PROTECTED]> wrote: > You learn something new every day: > > On my ubuntu, update-manager is supposed to use the python2.5 > installed on /usr/bin. Well, I had subsequently installed a whole > bunch of stuff in /usr/local (/usr/local/bin/python and /usr/local/lib/ >

Re: Python Agile Software Development Tools Screencasts

2008-07-07 Thread Andrew Freeman
Ben Finney wrote: Robert Kern <[EMAIL PROTECTED]> writes: Ben Finney wrote: Okay. Where would the public link to those files be? If I need to "log in" just to download it, that's a needless barrier that's going to turn me away too. Yes, you do need to log in. Thanks.

Re: complex representation

2008-07-07 Thread Terry Reedy
DSM wrote: ISTM the same reasoning applies equally to complex numbers. My interest arose because of what I think is a bug in pypy's complex printing: Python 2.4.1 (pypy 1.0.0 build 56124) on linux2 Type "help", "copyright", "credits" or "license" for more information. ``RPython: we use it

Re: "in"consistency?

2008-07-07 Thread Terry Reedy
David C. Ullrich wrote: 'ab' in 'abc' True 'a' in 'abc' works according to the standard meaning of o in collection. 'ab' in 'abc' could not work by that standard meaning because strings, as virtual sequences, only contain characters (length 1 strings). Among built-in collections, this l

Re: Python Agile Software Development Tools Screencasts

2008-07-07 Thread Ben Finney
Robert Kern <[EMAIL PROTECTED]> writes: > Ben Finney wrote: > > Okay. Where would the public link to those files be? > > > > If I need to "log in" just to download it, that's a needless barrier > > that's going to turn me away too. > > Yes, you do need to log in. Thanks. > If you don't want to

Re: How to make python scripts .py executable, not bring up editor

2008-07-07 Thread Benjamin Kaplan
On Mon, Jul 7, 2008 at 5:56 PM, korean_dave <[EMAIL PROTECTED]> wrote: > >From command Prompt, i type in a script, "tryme.py". > > This, instead, brings up PythonWin editor and Interactive Window. > > Path variable is "C:\Python24". (I need Python 2.4 installed, not 2.5) > > How do I make it so t

Re: Python Agile Software Development Tools Screencasts

2008-07-07 Thread Robert Kern
Ben Finney wrote: Robert Kern <[EMAIL PROTECTED]> writes: Ben Finney wrote: percious <[EMAIL PROTECTED]> writes: I started a new series about python on showmedo. Please feel free to take a look. I'd love to, but showmedo refuses to show presentations to me without installing non-free softwa

Re: How to make python scripts .py executable, not bring up editor

2008-07-07 Thread norseman
korean_dave wrote: From command Prompt, i type in a script, "tryme.py". This, instead, brings up PythonWin editor and Interactive Window. Path variable is "C:\Python24". (I need Python 2.4 installed, not 2.5) How do I make it so that the script runs? -- http://mail.python.org/mailman/listin

Re: re.search much slower then grep on some regular expressions

2008-07-07 Thread John Machin
On Jul 8, 2:51 am, Henning Thornblad <[EMAIL PROTECTED]> wrote: > When trying to find an alternative way of solving my problem i found > that running this script: > > #!/usr/bin/env python > > import re > > row="" > for a in range(156000): > row+="a" > print "How many, dude?" > print re.search(

Re: Python Agile Software Development Tools Screencasts

2008-07-07 Thread Ben Finney
Robert Kern <[EMAIL PROTECTED]> writes: > Ben Finney wrote: > > percious <[EMAIL PROTECTED]> writes: > > > >> I started a new series about python on showmedo. Please feel free > >> to take a look. > > > > I'd love to, but showmedo refuses to show presentations to me > > without installing non-free

Re: "in"consistency?

2008-07-07 Thread Mel
Ben Finney wrote: > "David C. Ullrich" <[EMAIL PROTECTED]> writes: > >> >>> 'ab' in 'abc' >> True >> >>> [1,2] in [1,2,3] >> False > > http://www.python.org/doc/ref/comparisons.html> > >> Is there a reason for the inconsistency? > > Probably. The special behaviour of string types was changed i

Re: Python Agile Software Development Tools Screencasts

2008-07-07 Thread Robert Kern
Ben Finney wrote: percious <[EMAIL PROTECTED]> writes: Hi All, I started a new series about python on showmedo. Please feel free to take a look. I'd love to, but showmedo refuses to show presentations to me without installing non-free software. mplayer works just fine on the .flv's. -- Ro

Re: Memory error while saving dictionary of size 65000X50 using pickle

2008-07-07 Thread Nagu
Thank you very much Martin. It worked like a charm. -- http://mail.python.org/mailman/listinfo/python-list

Re: complex representation

2008-07-07 Thread Robert Kern
DSM wrote: From the nothing-is-so-trivial-it's-not-worth-a-usenet-post file: Shouldn't the default representation of complex numbers be like that of floats? That is, have a decimal point? >>> 1 1 >>> 1.0 1.0 >>> 1j 1j >>> 1.0j 1j >>> 1.0+1.0j (1+1j) In the relevant bit of floatobje

complex representation

2008-07-07 Thread DSM
From the nothing-is-so-trivial-it's-not-worth-a-usenet-post file: Shouldn't the default representation of complex numbers be like that of floats? That is, have a decimal point? >>> 1 1 >>> 1.0 1.0 >>> 1j 1j >>> 1.0j 1j >>> 1.0+1.0j (1+1j) In the relevant bit of floatobject.c, there's

Re: Interest not met.

2008-07-07 Thread Casey McGinty
On Thu, Jul 3, 2008 at 5:01 AM, david odey <[EMAIL PROTECTED]> wrote: > I write to inform you that the reason I subscribed to this web page > is not been met. > > I want to be sent sample codes in programming languages especially > python and an email tutorial on C#. I will be happy if these deman

Re: sage vs enthought for sci computing

2008-07-07 Thread three3q
Hi, >> If my goal >> is to replace matlab (we do signal processing and stats on >> physiological data, with a lot of visualization), would sage or >> enthought get me going quicker? Pylab. > At the moment I switched totally to Python, Me too, porting scripts was easy. Dan -- http://mail.python.o

Re: Memory error while saving dictionary of size 65000X50 using pickle

2008-07-07 Thread Martin v. Löwis
> I didn't have the problem with dumping as a string. When I tried to > save this object to a file, memory error pops up. That's not what the backtrace says. The backtrace says that the error occurs inside pickle.dumps() (and it is consistent with the functions being called, so it's plausible). >

Re: sage vs enthought for sci computing

2008-07-07 Thread Stef Mientki
[EMAIL PROTECTED] wrote: Hello, I have recently become interested in using python for scientific computing, and came across both sage and enthought. I am curious if anyone can tell me what the differences are between the two, since there seems to be a lot of overlap (from what I have seen). If my

Re: Python Agile Software Development Tools Screencasts

2008-07-07 Thread Ben Finney
percious <[EMAIL PROTECTED]> writes: > Hi All, > > I started a new series about python on showmedo. Please feel free to > take a look. I'd love to, but showmedo refuses to show presentations to me without installing non-free software. -- \ “It takes a big man to cry, but it takes a bigge

Re: Emacs/Python Essentials?

2008-07-07 Thread Ben Finney
xkenneth <[EMAIL PROTECTED]> writes: > What does everyone consider essential for emacs python dev? GNU Emacs 22. The 'whitespace-mode' and 'python-mode' are good improvements in that version of Emacs. I've heard good things also about: 'ropemacs' http://rope.sourceforge.net/ropemacs.html>, an

Re: re.search much slower then grep on some regular expressions

2008-07-07 Thread John Machin
On Jul 8, 2:51 am, Henning Thornblad <[EMAIL PROTECTED]> wrote: > When trying to find an alternative way of solving my problem i found > that running this script: > > #!/usr/bin/env python > > import re > > row="" > for a in range(156000): > row+="a" > print "How many, dude?" > print re.search(

numeric emulation and __pos__

2008-07-07 Thread Ethan Furman
Greetings, List! I'm working on a numeric data type for measured values that will keep track of and limit results to the number of significant digits originally defined for the values in question. I am doing this primarily because I enjoy playing with numbers, and also to get some experience

Re: SQLite and Python 2.4

2008-07-07 Thread Tim Grove
There is an "SQLite Manager" add-on for Firefox which is pretty neat. Have a look at https://addons.mozilla.org/en-US/firefox/search?q=sqlite&cat=all. Might be useful to you! Tim Steffen Mutter wrote: Hi Joe! Am Tue, 01 Jul 2008 17:51:35 -0700 schrieb Joe Goldthwaite: I'm confused.

Re: "in"consistency?

2008-07-07 Thread Gary Herron
Nick Dumas wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [1,2] in [1,2,3] checks to see if the list [1,2] is an item in [1,2,3]. Because the list [1,2,3] only contains the integers 1,2,3, the code returns a False. Try "[1,2] in [[1,2],[2,3]]" The inconsistency goes deeper than that.

How to make python scripts .py executable, not bring up editor

2008-07-07 Thread korean_dave
>From command Prompt, i type in a script, "tryme.py". This, instead, brings up PythonWin editor and Interactive Window. Path variable is "C:\Python24". (I need Python 2.4 installed, not 2.5) How do I make it so that the script runs? -- http://mail.python.org/mailman/listinfo/python-list

Re: Standard Equation Description Language?

2008-07-07 Thread Robert Kern
xkenneth wrote: Does anyone know of a standard inter-language syntax for describing scientific/mathematical equations? Preferably something with parsers in multiple libraries. MathML http://www.w3.org/Math/ -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless

Re: Memory error while saving dictionary of size 65000X50 using pickle

2008-07-07 Thread Nagu
I didn't have the problem with dumping as a string. When I tried to save this object to a file, memory error pops up. I am sorry for the mention of size for a dictionary. What I meant by 65000X50 is that it has 65000 keys and each key has a list of 50 tuples. I was able to save a dictionary objec

Python Agile Software Development Tools Screencasts

2008-07-07 Thread percious
Hi All, I started a new series about python on showmedo. Please feel free to take a look. They are as follows: virtualenv pastescript nosetests coverage Here is the link: http://showmedo.com/videos/video?name=291&fromSeriesID=291 Tutorial materials can be found at http://pythontutorials.

Emacs/Python Essentials?

2008-07-07 Thread xkenneth
What does everyone consider essential for emacs python dev? Regards, Ken -- http://mail.python.org/mailman/listinfo/python-list

Standard Equation Description Language?

2008-07-07 Thread xkenneth
Does anyone know of a standard inter-language syntax for describing scientific/mathematical equations? Preferably something with parsers in multiple libraries. Regards, Kenneth Miller -- http://mail.python.org/mailman/listinfo/python-list

Re: "in"consistency?

2008-07-07 Thread Ben Finney
"David C. Ullrich" <[EMAIL PROTECTED]> writes: > >>> 'ab' in 'abc' > True > >>> [1,2] in [1,2,3] > False http://www.python.org/doc/ref/comparisons.html> > Is there a reason for the inconsistency? Probably. The special behaviour of string types was changed in Python 2.3, according to that docume

Re: "in"consistency?

2008-07-07 Thread Nick Dumas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [1,2] in [1,2,3] checks to see if the list [1,2] is an item in [1,2,3]. Because the list [1,2,3] only contains the integers 1,2,3, the code returns a False. Try "[1,2] in [[1,2],[2,3]]" David C. Ullrich wrote: > Luckily I tried it before saying no, th

"in"consistency?

2008-07-07 Thread David C. Ullrich
Luckily I tried it before saying no, that's not how "in" works: >>> 'ab' in 'abc' True >>> [1,2] in [1,2,3] False Is there a reason for the inconsistency? I would have thought "in" would check for elements of a sequence, regardless of what sort of sequence it was... -- David C. Ullrich -- http:

Re: The Yield statement

2008-07-07 Thread Paul Hankin
On Jul 1, 12:45 am, Mensanator <[EMAIL PROTECTED]> wrote: > Here's an example. > ... > def partition_generator(depth,width): >   """creates all partions of a given depth,widtth (depth>=width) >   depth objects in width bins such that each bin has at least 1 object >   this function is a generator (

Re: How to make a function associated with a class?

2008-07-07 Thread David C. Ullrich
In article <[EMAIL PROTECTED]>, Kurda Yon <[EMAIL PROTECTED]> wrote: > On Jul 1, 5:01 pm, "[EMAIL PROTECTED]" > <[EMAIL PROTECTED]> wrote: > > On 1 juil, 22:43, Kurda Yon <[EMAIL PROTECTED]> wrote: > > > > > > > > > Hi, > > > > > I have a class called "vector". And I would like to define a funct

Re: How to bypass Windows 'cooking' the I/O? (One more time, please) II

2008-07-07 Thread norseman
Dennis Lee Bieber wrote: On Mon, 07 Jul 2008 01:03:10 -0700, norseman <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: > > Normal file I/O sequence: > > fp = open(target, 'wb') > > fp.seek(-1, 2) > > fp.write(record) > Except it doesn't do that in Windows. See belo

Re: Dynamically Changing the Base Class

2008-07-07 Thread Carl Banks
On Jul 7, 9:31 am, "Adam C." <[EMAIL PROTECTED]> wrote: > We have a situation where we want a Swig-generated Python class to > have a different base (not object). It doesn't appear that we can > coerce Swig into generating the class we want at present (but we are > still enquiring). > > Is it possi

Re: caseless dict - questions

2008-07-07 Thread David C. Ullrich
In article <[EMAIL PROTECTED]>, Phoe6 <[EMAIL PROTECTED]> wrote: > I have a requirement for using caseless dict. I searched the web for > many different implementations and found one snippet which was > implemented in minimal and useful way. > > # > import UserDict > > class CaseIn

Re: do a sed / awk filter with python tools (at least as fast)

2008-07-07 Thread Mathieu Prevot
2008/7/7 Peter Otten <[EMAIL PROTECTED]>: > Mathieu Prevot wrote: > >> I use in a bourne shell script the following filter: >> >> sed '/watch?v=/! d;s/.*v=//;s/\(.\{11\}\).*/\1/' \ >> | sort | uniq | awk 'ORS=" "{print $1}' >> >> that give me all sets of 11 characters that follows the "watch?v=" >>

Re: Confused yet again: Very Newbie Question

2008-07-07 Thread Terry Reedy
Jeff wrote: When you call c3.createJoe(c1.fred), you are passing a copy of the value stored in c1.fred to your function. Python passes function parameters by value. These statements are both wrong. Function argument objects or objects derived therefrom are bound to function parameter names

Re: Cross Compiler for Python?

2008-07-07 Thread norseman
I think I should have not used the 'reply' button but rather sent it back through the [EMAIL PROTECTED] So here here goes. === Hendrik van Rooyen wrote: Up to now, I have been innocently using the vanilla python that comes with the Linux distribution (Suse in my case). For the

Re: Memory error while saving dictionary of size 65000X50 using pickle

2008-07-07 Thread Martin v. Löwis
Nagu wrote: > I am trying to save a dictionary of size 65000X50 to a local file and > I get the memory error problem. What do you mean by this size specification? When I interpreter X as multiplication, I can't see a problem: the code import pickle d = {} for i in xrange(65000*50): d[i]=i p

sage vs enthought for sci computing

2008-07-07 Thread jadamwilson2
Hello, I have recently become interested in using python for scientific computing, and came across both sage and enthought. I am curious if anyone can tell me what the differences are between the two, since there seems to be a lot of overlap (from what I have seen). If my goal is to replace matlab

Memory error while saving dictionary using pickle

2008-07-07 Thread Nagu
I am trying to save a dictionary of size 65000X50 to a local file and I get the memory error problem. How do I go about resolving this? Is there way to partition the pickle object and combine later if this is a problem due to limited resources (memory) on the machine (it is 32 bit machine Win XP,

Trouble with Tkinter text margins

2008-07-07 Thread Alexnb
I am writing a program in which there is a textbox and in it the program auto inputs a series of words, and definitions for each word. I want to make it formatted nicely to where the word is indented, and the definitions indented even more. I don't even know how to make the margins work. I have re

Re: do a sed / awk filter with python tools (at least as fast)

2008-07-07 Thread Peter Otten
Mathieu Prevot wrote: > I use in a bourne shell script the following filter: > > sed '/watch?v=/! d;s/.*v=//;s/\(.\{11\}\).*/\1/' \ > | sort | uniq | awk 'ORS=" "{print $1}' > > that give me all sets of 11 characters that follows the "watch?v=" > motif. I would like to do it in python on stdout

tale of two attachments

2008-07-07 Thread TBS
Hi, I have a script that is invoked by .forward on a Unix mailbox. It works fine parsing an attachment and saving to disk when the email is sent directly to the email address (header 1), but doesn't work when the email is sent via a majordomo mailing list (header 2). I've looked at the mime file

Re: re.search much slower then grep on some regular expressions

2008-07-07 Thread Kris Kennaway
Paddy wrote: On Jul 4, 1:36 pm, Peter Otten <[EMAIL PROTECTED]> wrote: Henning_Thornblad wrote: What can be the cause of the large difference between re.search and grep? grep uses a smarter algorithm ;) This script takes about 5 min to run on my computer: #!/usr/bin/env python import re ro

Re: Memory error while saving dictionary of size 65000X50 using pickle

2008-07-07 Thread Larry Bates
Nagu wrote: I am trying to save a dictionary of size 65000X50 to a local file and I get the memory error problem. How do I go about resolving this? Is there way to partition the pickle object and combine later if this is a problem due to limited resources (memory) on the machine (it is 32 bit ma

Memory error while saving dictionary of size 65000X50 using pickle

2008-07-07 Thread Nagu
I am trying to save a dictionary of size 65000X50 to a local file and I get the memory error problem. How do I go about resolving this? Is there way to partition the pickle object and combine later if this is a problem due to limited resources (memory) on the machine (it is 32 bit machine Win XP,

Re: Dynamically Changing the Base Class

2008-07-07 Thread Adam C.
On Jul 7, 9:11 am, George Sakkis <[EMAIL PROTECTED]> wrote: > On Jul 7, 9:31 am, "Adam C." <[EMAIL PROTECTED]> wrote: > > > > > We have a situation where we want a Swig-generated Python class to > > have a different base (not object). It doesn't appear that we can > > coerce Swig into generating th

Re: Cross Compiler for Python?

2008-07-07 Thread Jorgen Grahn
On Mon, 7 Jul 2008 10:15:59 +0200, Hendrik van Rooyen <[EMAIL PROTECTED]> wrote: > Up to now, I have been innocently using the vanilla python > that comes with the Linux distribution (Suse in my case). > > For the past few days, I have been playing with a little > device called an eBox - it is basi

Re: The Yield statement

2008-07-07 Thread Jorgen Grahn
On Sun, 6 Jul 2008 00:29:26 -0700, Mark Tolonen <[EMAIL PROTECTED]> wrote: > > "inhahe" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] ... >> note that this won't work; >> def f(): >> for x in xrange(10): >>for y in xrange(10): >> yield (x,y) >> >> yield just doesn't work

Re: Confused yet again: Very Newbie Question

2008-07-07 Thread mcl
On Jul 7, 5:07 pm, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > On Mon, 7 Jul 2008 05:41:22 -0700 (PDT), mcl <[EMAIL PROTECTED]> > declaimed the following in comp.lang.python: > > > My use of classes is because I want two classes one for  global > > variables and one for global functions. > >    

Re: Very weird bug!

2008-07-07 Thread ssecorp
i know, idid try it again and it works as expected. but how the h*** did it not work that one time? -- http://mail.python.org/mailman/listinfo/python-list

Re: VNC capture in python

2008-07-07 Thread Mike Driscoll
On Jul 6, 11:12 pm, Astan Chee <[EMAIL PROTECTED]> wrote: > Hi, > I was wondering if I can do a capture of a VNC screen in python. Kinda > like this http://search.cpan.org/~lbrocard/Net-VNC-0.35/lib/Net/VNC.pm > but without opening a VNC window or doing a screen capture. > Thanks for any suggestion

do a sed / awk filter with python tools (at least as fast)

2008-07-07 Thread Mathieu Prevot
Hi, I use in a bourne shell script the following filter: sed '/watch?v=/! d;s/.*v=//;s/\(.\{11\}\).*/\1/' \ | sort | uniq | awk 'ORS=" "{print $1}' that give me all sets of 11 characters that follows the "watch?v=" motif. I would like to do it in python on stdout from a subprocess.Popen instance

Re: pythoncom InternetExplorer.Application don't work in vista || firefox pythoncom ?

2008-07-07 Thread gcmartijn
On 6 jul, 16:00, "Méta-MCI \(MVP\)" <[EMAIL PROTECTED]> wrote: > H...  I have a similary problem, in another circumstances. > It's often a problem of configuration of IE (for news customers).  But, > it is not easy, because IE has many parameters. > > Good luck! > > Michel Claveau IE have m

Re: Confused yet again: Very Newbie Question

2008-07-07 Thread Matt Nordhoff
Jerry Hill wrote: > On Mon, Jul 7, 2008 at 7:30 AM, mcl <[EMAIL PROTECTED]> wrote: >> I did not think you had to make the distinction between 'byvar' and >> 'byref' as in Basic. > > Python does not use "call by value" or "call by reference" semantics. > Instead, python's model is "call by object".

Re: Is there a good way to implement file updating? such as lock, update, reload...

2008-07-07 Thread Larry Bates
Evan wrote: If I get rid of the XML, I have to change my script more and more, it is not easy to do that. :( :( Thanks, It is even harder to write a multi-user XML database (which is what you are wanting). Put the data in a multi-user database and convert to XML as needed. -Larry -- http:/

Re: re.search much slower then grep on some regular expressions

2008-07-07 Thread Henning Thornblad
When trying to find an alternative way of solving my problem i found that running this script: #!/usr/bin/env python import re row="" for a in range(156000): row+="a" print "How many, dude?" print re.search('/[^ "=]*',row) (the / has moved) wouldn't take even a second (The re.search part o

Re: how to recognize IE window already opened using win32com extension

2008-07-07 Thread Mike Driscoll
On Jul 7, 11:16 am, Tim Golden <[EMAIL PROTECTED]> wrote: > korean_dave wrote: > > How do I use the win32com API to manipulate IE windows ALREADY open? > > > ie = Dispatch("InternetExplorer.Application") opens a new window. > > > But I'd like to be able to find, of windows already open, a specific

Re: how to recognize IE window already opened using win32com extension

2008-07-07 Thread Mike Driscoll
On Jul 7, 11:09 am, korean_dave <[EMAIL PROTECTED]> wrote: > How do I use the win32com API to manipulate IE windows ALREADY open? > > ie = Dispatch("InternetExplorer.Application") opens a new window. > > But I'd like to be able to find, of windows already open, a specific > window (with a specified

Re: how to recognize IE window already opened using win32com extension

2008-07-07 Thread Tim Golden
korean_dave wrote: How do I use the win32com API to manipulate IE windows ALREADY open? ie = Dispatch("InternetExplorer.Application") opens a new window. But I'd like to be able to find, of windows already open, a specific window (with a specified property, matching url, etc.) I have this str

how to recognize IE window already opened using win32com extension

2008-07-07 Thread korean_dave
How do I use the win32com API to manipulate IE windows ALREADY open? ie = Dispatch("InternetExplorer.Application") opens a new window. But I'd like to be able to find, of windows already open, a specific window (with a specified property, matching url, etc.) -- http://mail.python.org/mailman/list

Re: win32com extension documentation/API

2008-07-07 Thread Mike Driscoll
On Jul 7, 10:26 am, korean_dave <[EMAIL PROTECTED]> wrote: > Hi. Where can i find the API for this extension? > > Sourceforge only has downloads. Python has stopped supporting the > upkeep of the versions. > > Thanks. I usually use ActiveState's docs: http://aspn.activestate.com/ASPN/docs/ActiveP

Re: Confused yet again: Very Newbie Question

2008-07-07 Thread Peter Pearson
On Mon, 7 Jul 2008 05:41:22 -0700 (PDT), mcl <[EMAIL PROTECTED]> wrote: [snip] > My use of classes is because I want two classes one for global > variables and one for global functions. One of the many lovely things about programming in the Python style is that very few things need to be global.

Re: Hi there! I need what is probably a very basic lesson in events....

2008-07-07 Thread furby
On Jul 7, 10:34 am, Mike Driscoll <[EMAIL PROTECTED]> wrote: > On Jul 6, 8:18 am, furby <[EMAIL PROTECTED]> wrote: > > > > > I am teaching myself Python... I'm nowhere near even intermediate > > level yet, so treat me like an idiot. I am using Boa Constructor on > > Ubuntu 8.04 if that helps. Here

Re: python mysteriously halts

2008-07-07 Thread Todd
On Jul 7, 10:17 am, Tim Golden <[EMAIL PROTECTED]> wrote: > Todd wrote: > > I ran a python script last night which connects to a matlab automation > > server via DCOM (using win32com).  I expected to see the results when > > I came in this morning.  But apparently, not long after I left, python > >

win32com extension documentation/API

2008-07-07 Thread korean_dave
Hi. Where can i find the API for this extension? Sourceforge only has downloads. Python has stopped supporting the upkeep of the versions. Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: python mysteriously halts

2008-07-07 Thread goldfita
On Jul 7, 10:17 am, Tim Golden <[EMAIL PROTECTED]> wrote: > Todd wrote: > > I ran a python script last night which connects to a matlab automation > > server via DCOM (using win32com).  I expected to see the results when > > I came in this morning.  But apparently, not long after I left, python > >

Re: re.search much slower then grep on some regular expressions

2008-07-07 Thread Marc 'BlackJack' Rintsch
On Mon, 07 Jul 2008 16:44:22 +0200, Sebastian \"lunar\" Wiesner wrote: > Mark Wooding <[EMAIL PROTECTED]>: > >> Sebastian "lunar" Wiesner <[EMAIL PROTECTED]> wrote: >> >>> # perl -e '("a" x 10) =~ /^(ab?)*$/;' >>> zsh: segmentation fault perl -e '("a" x 10) =~ /^(ab?)*$/;' >> >> (Did y

Re: GUI Programming by hand not code with Python Code

2008-07-07 Thread Sebastian "lunar" Wiesner
Jason Scheirer <[EMAIL PROTECTED]>: > On Jul 6, 7:33 pm, [EMAIL PROTECTED] wrote: >> Is their a program that lets you design a GUI by hand (like gambas) >> not by code (like wxpython) but the commands are in python? >> >> A program similar to gambas or vb >> >> Gambas with python code instead of g

Re: re.search much slower then grep on some regular expressions

2008-07-07 Thread Sebastian "lunar" Wiesner
Mark Wooding <[EMAIL PROTECTED]>: > Sebastian "lunar" Wiesner <[EMAIL PROTECTED]> wrote: > >> # perl -e '("a" x 10) =~ /^(ab?)*$/;' >> zsh: segmentation fault perl -e '("a" x 10) =~ /^(ab?)*$/;' > > (Did you really run that as root?) How come, that you think so? -- Freedom is always

Re: Can't get Python for Windows to run

2008-07-07 Thread Tim Rowe
2008/7/4 "Martin v. Löwis" <[EMAIL PROTECTED]>: > and find installers annoying that ask too many questions So do I, but not as annoying as installers that do the Wrong Thing because they didn't ask! ;-) Still, it's your call. > In any case, try installing with > > msiexec /i 'ProgramMenuFolder=C

Re: yo...

2008-07-07 Thread cokofreedom
On Jul 7, 3:47 pm, Bruno Desthuilliers wrote: > [EMAIL PROTECTED] a écrit : > (snip) > > > However welcome to Python and this Google > > Group. > > > This is *not* a google group. This is the usenet newsgroup > comp.lang.python, made accessible TTW by google. > Touche ;) -- http://mail.python.o

Re: Hi there! I need what is probably a very basic lesson in events....

2008-07-07 Thread Mike Driscoll
On Jul 6, 8:18 am, furby <[EMAIL PROTECTED]> wrote: > I am teaching myself Python... I'm nowhere near even intermediate > level yet, so treat me like an idiot. I am using Boa Constructor on > Ubuntu 8.04 if that helps. Here is what I have right now : > > I am plying with reading a URL (An RSS feed

Re: I am looking for svn library(module)

2008-07-07 Thread A.T.Hofkamp
On 2008-07-07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi, > > I am looking fo svn library(module) which is used in the svn- > mailer(http://opensource.perlig.de/svnmailer/) project. Does anybody > know where can I find it(download url)? This is information which I > received from python err

Re: python mysteriously halts

2008-07-07 Thread Tim Golden
Todd wrote: I ran a python script last night which connects to a matlab automation server via DCOM (using win32com). I expected to see the results when I came in this morning. But apparently, not long after I left, python stopped. I hit enter in the console, and it started again. Symptomati

Re: Dynamically Changing the Base Class

2008-07-07 Thread George Sakkis
On Jul 7, 9:31 am, "Adam C." <[EMAIL PROTECTED]> wrote: > We have a situation where we want a Swig-generated Python class to > have a different base (not object). It doesn't appear that we can > coerce Swig into generating the class we want at present (but we are > still enquiring). > > Is it possi

Re: Freesoftware for auto/intelligent code completing in Python

2008-07-07 Thread Ivan Ven Osdel
>- Original Message - >From: "Python Nutter" <[EMAIL PROTECTED]> >To: "Ivan Ven Osdel" <[EMAIL PROTECTED]> >Cc: python-list@python.org >Sent: Thursday, July 3, 2008 5:56:32 PM GMT -06:00 US/Canada Central >Subject: Re: Freesoftware for auto/intelligent code completing in Python > >If

Re: Confused yet again: Very Newbie Question

2008-07-07 Thread Jerry Hill
On Mon, Jul 7, 2008 at 7:30 AM, mcl <[EMAIL PROTECTED]> wrote: > I did not think you had to make the distinction between 'byvar' and > 'byref' as in Basic. Python does not use "call by value" or "call by reference" semantics. Instead, python's model is "call by object". See this writeup for some

Re: yo...

2008-07-07 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : (snip) However welcome to Python and this Google Group. This is *not* a google group. This is the usenet newsgroup comp.lang.python, made accessible TTW by google. -- http://mail.python.org/mailman/listinfo/python-list

Re: Is there a good way to implement file updating? such as lock, update, reload...

2008-07-07 Thread Evan
If I get rid of the XML, I have to change my script more and more, it is not easy to do that. :( :( Thanks, -- http://mail.python.org/mailman/listinfo/python-list

Re: Cross Compiler for Python

2008-07-07 Thread Hendrik van Rooyen
Dan Upton wrote: >If you don't have a 32 bit system to build it on, you could always set >up a VMWare machine... but that might be more effort than necessary. >You can probably just run configure on your normal machine and then >edit the makefile to add -m32 to the compiler or linker flags--that >

re: Cross Comiler for Python?

2008-07-07 Thread Hendrik van Rooyen
Diez wrote: >Look at the gumstix project, they do have a cross-compiled python in there. >You should be able to get an idea on how to do that yourself. > >It involves (or at least did back then) a bit of trickery as the >build-process of python uses the freshly created interpreter to pre-compile >

Re: python mysteriously halts

2008-07-07 Thread Peter Otten
Todd wrote: > I ran a python script last night which connects to a matlab automation > server via DCOM (using win32com). I expected to see the results when > I came in this morning. But apparently, not long after I left, python > stopped. I hit enter in the console, and it started again. I sco

Dynamically Changing the Base Class

2008-07-07 Thread Adam C.
We have a situation where we want a Swig-generated Python class to have a different base (not object). It doesn't appear that we can coerce Swig into generating the class we want at present (but we are still enquiring). Is it possible to dynamically change the base class to something else? Initial

Re: I am looking for svn library(module)

2008-07-07 Thread jay graves
On Jul 7, 7:49 am, [EMAIL PROTECTED] wrote: > Hi, > I am looking fo svn library(module) which is used in the svn- > mailer(http://opensource.perlig.de/svnmailer/) project. Does anybody > know where can I find it(download url)? This is information which I > received from python error: > from svn imp

  1   2   >