RE: ActivePython 2.3.2 & ActivePython 2.2.3

2003-10-28 Thread Matthew Thornley
lly, since only two file types are affected, it's not difficult fixing the problem after the fact. It's not nearly as bad as installing Visual Studio .DEV! Thanks again, Matthew PS: If you happen to have a script (preferably Python) that will associate file types with applicat

RE: ActivePython 2.3.2 & ActivePython 2.2.3

2003-10-28 Thread Matthew Thornley
I finally installed ActivePython 2.2.2 just last week and was annoyed to find my .PY and .PYW file types re-associated to PythonWin. Can I expect the same behavior with 2.2.3 and 2.3.2? Is there a way to disable the association of file types when installing ActivePython? TIA, Matthew

Tracking down memory leaks due to circular references

2003-08-22 Thread Matthew Thornley
g called. Does anybody know of some tricks to track down circular references? Perhaps a place in the Python source code where I could set a break point? Matthew ___ ActivePython mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.

Re: Is there a bright future for open software projects?

2002-12-01 Thread Matthew Sherborne
ls that there's enough money in the pot for that feature, they claim the feature and manage adding it to the software and collect the money. Matthew Sherborne ___ ActivePython mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.Act

RE: zlib and Debug

2002-11-14 Thread Matthew Thornley
Title: RE: zlib and Debug Yes, thanks for the prompt reply. I was a little too hasty in sending the message. zlibmodule.c has the following comment, which solved my problem: /* Windows users:  read Python's PCbuild\readme.txt */ Thanks again,     Matthew -Original Me

zlib and Debug

2002-11-14 Thread Matthew Thornley
ere else? TIA,     Matthew

Re: using reload() with "from ... import *"

2002-09-23 Thread Matthew Sherborne
though, it's just a guess :) GBU Matthew Jeff Shannon wrote: >John Mark Agosta wrote: > > > >>During interactive development one can reload modules that have been >>imported and modified by doing a reload(module_name). How does this work >>if the module

Re: How to call a procedure in an exe file

2002-09-23 Thread Matthew Sherborne
ut what the file is and download it yourself, using python code, like ftplib or httplib. I hope this'll help you get started on the right track. GBU Matthew Sherborne A wrote: >Hi, >I know that it is possible to call a function in DLL library( even though I have >never tried it) &g

Re: get registry with WMI in Python

2002-08-18 Thread Matthew Sherborne
fore you can do that. Unfortunately I don't know how if or under what name that COM object is registered, so I couldn't do it. In the activestate help look up win32api in the index. And search for python examples on the net rather than VB examples which can be hard to translate. There are plenty

Re: Problem - how to solve it ?

2002-07-31 Thread Matthew Sherborne
could either fix it, or release a "Known Issues.txt" file with the program, letting them know that they must update their windows release if this happens. :) GBU Matthew Sherborne A wrote: >Hi, >I have a program that I compiled( with Installer) into exe for using >on Win3

Re: Assert fails to catch error condition

2002-07-14 Thread Matthew Sherborne
try putting all the code in the same file, or try renaming FormLoc.py to check if it's loading the wrong one. GBU Matthew Sherborne ___ ActivePython mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Re: How to grab a part of web page?

2002-07-10 Thread Matthew Sherborne
h for "partial get" and "range header". For using httplib in python see this URL: http://www.python.org/doc/lib/httpconnection-objects.html Sorry I couldn't be more help. :) GBU Matthew Sherborne A wrote: >On 10 Jul 2002, at 13:47, Matthew Sherborne wrote: > >

Re: FW: How to find out DNS ?

2002-06-27 Thread Matthew Sherborne
ct you down the tree. When you get there, ask that server if it'll redirect for you. If it does then that's your primary DNS :) There's a pydns project at sourceforge. I think it's http://pydns.sourceforge.net May God Bless You Abundantly Matthew Sherborne _

Re: Read/Change File attributes

2002-06-27 Thread Matthew Sherborne
ls). or on 2.2 and above print mode.ST_ATIME :) I don't know how to change them (other than reading and writing to the file) May God Bless You Matthew Sherborne ___ ActivePython mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.Ac

Re: How to find out DNS ?

2002-06-27 Thread Matthew Sherborne
27;;' or line[0] == '#': continue fields=string.split(line) if fields[0] == 'domain': defaults['domain'] = fields[1] elif fields[0] == 'search': pass elif fields[0] == 'options': pass e

RE: retrieving from standard out from child processes

2002-05-29 Thread Matthew Thornley
Title: RE: retrieving from standard out from child processes Regarding your second question, "tips/tricks to developing Python Gui's", I recently posted a similar question to the wxPython user group. Although my question was aimed at wxPython users, I believe that the same issues are involved

Re: retrieving from standard out from child processes

2002-05-28 Thread Matthew Sherborne
Try this link. http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/66455 Hope it helps GBU Matthew Sherborne ___ ActivePython mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs Other options: http

Re: IE BH object

2002-05-21 Thread Matthew Sherborne
You want GetActiveObject http://aspn.activestate.com/ASPN/Reference/Products/ActivePython/win32com/py thoncom__GetActiveObject_meth.html But I've never got it working myself. GBU Matthew Sherborne - Original Message - From: "Michael Robin" <[EMAIL PROTECTED]> T

Re: IE BH object

2002-05-21 Thread Matthew Sherborne
PythonCOM from activestate allows you to get the IE Document COM object and this acts like a DOM. http://aspn.activestate.com/ASPN/Mail/Message/activepython/1014204 GBU Matthew Sherborne ___ ActivePython mailing list [EMAIL PROTECTED] To unsubscribe

Re: Shell tool

2002-05-12 Thread Matthew Sherborne
t a directory was not empty.   >>>   Hope that helps.   GBU Matthew Sherborne

Re: Conversion from GFA Basic to Python for SpeedTest

2002-05-11 Thread Matthew Sherborne
ray aren't read so, it doesn't allocate memory for them? Is the GBA app running on windows? It must be to do with memory allocation. Any other ideas? Matthew Sherborne - Original Message - From: "Bob Kline" <[EMAIL PROTECTED]> To: "Ed Hopkins" &l

Re: passing arrays to a dynwin.windll.module method

2002-05-05 Thread Matthew Sherborne
Try Passing \x00 characters in one long string to split it up into many little strings. eg: >>> lst = ['bacon', 'egg', 'ham'] >>> str = '\00'.join(lst) >>> str 'bacon\x00egg\x00ham' >>> str += '\00' >>> str 'bacon\x00egg\x00ham\x00' >>> ___ ActivePy

Re: Python device driver

2002-05-02 Thread Matthew Sherborne
Yes, that's a good point. Huge Memory usage. Does anyone know a way to recompile python with minimal stuff easily? I remember Deeply Embedded python compiled without floating point and stuff but they don't seem to be around anymore. Matthew Sherborne - Original Message - Fr

Low level python

2002-05-02 Thread Matthew Sherborne
r, and the .py file are like permanent configuration file for it.   Comments Appreciated Matthew Sherborne

Re: was (no subject) + new thread

2002-04-29 Thread Matthew Sherborne
led versions for those, and do the same thing. (I never compile anything on windows, I find it too hard to get anything to work like that :) Trust me. Python is the easiest language to add stuff on to. Delphi has package dependency, and path problems. Java has path problems galore! C has and API compi

New // operator

2002-04-29 Thread Matthew Sherborne
.5 3.0 >>> 5 / 1.5 3.3335   Amazing! Thanks Guido and friends :) Matthew Sherborne

Re: (no subject)

2002-04-25 Thread Matthew Sherborne
Python is easier to read and write. It looks nicer. :) - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, April 26, 2002 9:21 AM Subject: FW: (no subject) > > > Hey, > > I've got a question. What are the advantages of using python as oppose to > perl?

Re: Serial Port Communication

2002-04-18 Thread Matthew Sherborne
x27;, delim, code, x, y) >>> data ':U\x0e\x00\x0c\x00' >> >>> d, c, x, y = unpack('cchh', data) >>> d ':' >>> c 'U' >>> x 14 >>> y 12 Matthew Sherborne - Original Message - From: "Srividy

Re: Threading question

2002-04-10 Thread Matthew Sherborne
ttern checking the data, to see which port our hardware is installed on. In the main thread is a wxPython app. If there's no H/W attached we allow the user to go cancel, which must stop the thread. So to cancel, we send the string 'quit' on the queue :) Thanks again. I didn't k

new super method

2002-04-10 Thread Matthew Sherborne
;... >>> obj = B()>>> obj.speak()Traceback (most recent call last):  File "", line 1, in ?  File "", line 3, in speakTypeError: super() argument 1 must be type, not class>>>   Matthew

Threading question

2002-04-10 Thread Matthew Sherborne
is something that Python needs? Is it easy to implement for different platforms? Is it there, but I haven't noticed it?   Any Ideas?   Thanks Matthew Sherborne

Re: HTTP Server

2002-03-29 Thread Matthew Sherborne
conversation threads are not ending? If it's to do with a maximum simultaeneous conversation count, you should be able to set this somwhere in python. Don't know where though. Sorry :) GBU Matthew Sherborne - Original Message - From: "Matt Whiteley" <[EMAIL PROTECT

Re: [Python-Help] Re: How to get a key from dictionary?

2002-03-27 Thread Matthew Sherborne
Yes. Good response. Your code is best :) GBU Matthew Sherborne ___ ActivePython mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Re: How to get a key from dictionary?

2002-03-26 Thread Matthew Sherborne
Sorry to be a show off, but I reckon that this way may be faster. Sorry again. The other replies are very helpful.  :)   def findKey(val):   for key, value in dict.items():     if value == val: return key   return None   GBU Matthew Sherborne   - Original Message - From: &quo

Re: hiding the MS-DOS shell while processing

2002-02-28 Thread Matthew Sherborne
Rename the script's extension to .pyw This will make pythonw.exe run it instead of python.exe. This will remove the command prompt like window. GBU Matthew Sherborne - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 01, 2002

Re: advocacy help ( Python vs VB )

2002-02-25 Thread Matthew Sherborne
Google uses python to script their cluster(s). http://www.google.com/jobs/openings.html (Search for python on that page, I counted 10) Also check out these URLs: http://home.rmi.net/~lutz/advocacy.html http://py-howto.sourceforge.net/advocacy/advocacy.html GBU Matthew Sherborne

Re: Is it possible in Python too?

2002-02-25 Thread Matthew Sherborne
OK, Sorry for the smart remark. How would it be done normally; by COM automation or by editing files? Python does both. Tell how and I'll send you the python script that does it. Matthew Sherborne ___ ActivePython mailing list [EMAIL PROTECTE

Re: Is it possible in Python too?

2002-02-25 Thread Matthew Sherborne
Yes but I don't know how. Tell me how to do it in another language, and I'll tell you how in python ;) GBU Matthew - Original Message - From: "A" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL

Re: Help me

2002-02-08 Thread Matthew
.zip For DOS, try Hans Nowak's Python-DX, which supports this, at: http://www.cuci.nl/~hnowak/ For Unix, search Deja News (using http://www.python.org/search/) for "serial port" with author Mitch Chapman (his post is a little too long to include here). Hope this helps Matthew

Re: Using MSHTML in Python

2002-02-04 Thread Matthew
') To catch events see the code in MainWindow.py. It doesn't work because it's part of a bigger project, but you can see how things work. Also another really good way of embedding IE is in a wxPython application. In the wxPython demo application see the file ActiveXWrapper_IE.py GBU Matth

Fw: Debugger Prob wt pythoncom

2002-01-30 Thread Matthew
  - Original Message - From: Matthew To: [EMAIL PROTECTED] Sent: Thursday, January 31, 2002 10:05 AM Subject: [Komodo-discuss] Debugger Prob Hi all,   I wrote an app for automating IE. The Komodo debugger doesn't stop on breakpoints called from pythoncom.PumpWaitingMes

Re: Advanced COM help request

2002-01-29 Thread Matthew
Cancel that.   I did it a different way   :) - Original Message - From: Matthew To: [EMAIL PROTECTED] Sent: Tuesday, January 29, 2002 10:49 AM Subject: Advanced COM help request Hi all,   I hate to do this but my situation is desparate!   Could

Re: how to call 'overloaded' COM methods

2002-01-28 Thread Matthew
Also, try this.. >> headerObj.__class__ and >> dir(headerObj.__class__) and >> headerObj.__class__._prop_map_get_ and >> headerObj.__class__._prop_map_put_ Have fun :) Matthew Sherborne - Original Message - From: "Anesh Madapoosi" <[EMAIL PRO

Re: how to call 'overloaded' COM methods

2002-01-28 Thread Matthew
Have you tried: >> headerObj.name = "value" and >> headerObj.SetAttribute('name', 'value') or >> headerObj.Attribute['name'] = 'value' Just an idea :) Matthew Sherborne - Original Message - From: "Anesh Mada

Advanced COM help request

2002-01-28 Thread Matthew
need to implement two callback interfaces, IServiceProvider and IHTMLEditHost   Still there! Been 5 days now... :(   Thanks in advance Matthew

Re: beginner's doubt

2002-01-27 Thread Matthew
r something vague type "modules 'VAGUE THING'". Eg. "modules mail". Of course, while in help mode. Or use the HTML documentation. Matthew Sherborne - Original Message - From: "nimesh nedungadi" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>

Re: How to avoid socket timeout

2002-01-24 Thread Matthew
e to get to the other computer. If you increase the TTL, this will stop timeout's in this situation. Also sometimes timeouts are caused by [cable] modems dialling, or sleeping equipment waking up. To avoid this, just eat the first couple of exceptions and try again ;) GBU Matthew - Origi

Re: Re: COM server implementing given Interface by Volker Siepmann

2002-01-23 Thread Matthew
I'd also like to do this.   I'd like to implement IServiceProvider, IHTMLEditHost to automate Internet Explorer in edit mode.   I'm just about to put up a recipe as far as I've got.   GBU Matthew Sherborne

unable to import win32file

2000-12-11 Thread Redding, Matthew
HI All, Please reply to this directly rather than through the list (since I am not a subscriber). I loaded down win32all, especially to check out the demo for serial communications (win32comport_demo). It looks interesting , but will not run... It chokes when "import win32file" is called

RE: ActivePython Win32 Installer Subset

2000-11-29 Thread Matthew Keranen
A single alternate ActiveState install package would be handy. This way, there would be the current one for development, and a "run-time" package, for distribution only. This run-time could be identical to the current package, minus the PythonWin IDE, and the Python Docs. Of course, I could creat

ActivePython Win32 Installer Subset

2000-11-27 Thread Matthew Keranen
Is it possible to create (or suggest!) a Windows Installer (.MSI) package for ActivePython that does not contain the PythonWin IDE or Documentation? We would use this to distribute the Python runtime to our Windows PC, and allow users to run internally developed scripts, but limit the runtime foot