Re: advocacy help ( Python vs VB )

2002-02-26 Thread paul
Google, the biggest and best search engine is built on python, nasa use as does yahoo From: Stefan Kuzminski <[EMAIL PROTECTED]> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>, "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>, "'[EMAIL PROT

Re: reloading changed modules

2000-11-20 Thread Paul Prescod
e a reload of a method from disk. You could add some reload instructions to your file to force a reload with every run. You can also manually invoke the reload function from the PythonWin interpreter command line: import foo reload(foo) Hope that helps. Paul Prescod ActiveState Tool Corp. _

Re: Installing ActivePython on Windows95

2000-11-20 Thread Paul Prescod
zip Length MethodSize Ratio Date Time CRC-32Name -- --- - -- 7991296 Defl:N 7524766 6% 11-11-00 04:10 3cf068ae ActivePython-2.0.0.202.msi --- ------ 7991296

Re: executing other application command

2000-11-29 Thread Paul Prescod
Biju Ramachandran wrote: > > Hi there: > > How do I execute another applications command using Active Python - for > example - the equivalent in Perlscript is > >$Application - > Could you give an actual example? Are you perhaps invoking a COM met

Re: ActivePython Win32 Installer Subset

2000-11-30 Thread Paul Prescod
, ActiveState intends to make the redistribution of Python applications easier. That may be done as part of ActivePython or as part of our development environment initiatives: You can learn about PythonDirect, Komodo and Visual Python here: http://www.activestate.com/Products/index.html Paul Prescod

Re: COM object creation not working

2000-11-30 Thread Paul Prescod
The list is intended primarily for users of ActivePython. General Python questions would be better addressed to comp.lang.python, even if they are related to the win32 extensions. Paul Prescod ActiveState ___ ActivePython mailing list [EMAIL

Administrivia...

2000-12-01 Thread Paul Prescod
eve according to the instructions above. Paul Prescod ___ ActivePython mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/activepython

Re: python cgi - odbc

2000-12-07 Thread Paul Prescod
ahsan ali wrote: > > status: beginner > > how do you access an odbc database in python cgi? > are there any resources dealing with this topic. > > ahsan > I would suggest you look at the mxODBC package listed here: http://www.activestate.com/Products/ActivePytho

Re: "Hello" window

2000-12-08 Thread Paul Prescod
n: 1. Tk is not installed with ActivePython. You can get it here: http://www.ActiveState.com/Products/ActivePython/Extensions.html 2. Tk applications do not work from within the PythonWin environment. Make sure to use "Python Shell" instead. Paul Prescod ___ ActivePython mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/activepython

Re: "Hello" window

2000-12-08 Thread Paul Prescod
vePython command line. Switching GUI libraries is not that easy. Paul ___ ActivePython mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/activepython

Re: starting Active Python 2.0 in Linux

2001-01-04 Thread Paul Prescod
hat when you type "python" you will get ActivePython. You could also use a shell alias. Paul Prescod ___ ActivePython mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/activepython

Threading issue?

2001-01-05 Thread Paul Weimer
eleaseLock()" before the call that results in the scripting engine being called but to no avail. Does my suspicion sound correct and does anyone have any ideas? Thanks Paul ___ ActivePython mailing list [EMAIL PROTECTED] http://listserv.ActiveS

Re: ActivePython PATH question

2001-01-05 Thread Paul Prescod
as it supposed to? If so could someone tell me what they > were supposed to be? Python20 is optionally added to your path as a convenience on Windows 2000 and probably NT, but no path changes are required for basic functionality. Paul Prescod ___ Acti

Re: Newbie want to do Python and ASP

2001-01-08 Thread Paul Prescod
ActivePython has a "Python COM Reference". It has a section called "ASP and Python" that should get you started. Good luck! Paul Prescod ActiveState ___ ActivePython mailing list [EMAIL PROTECTED] http://listserv.ActiveState.

Re: Module Directory problem

2001-01-15 Thread Paul Prescod
e current execution directory. My > scripts are going to be run on this system and another system that may not > share the same directory struture. Don't understand what you mean by "load your scripts". The "import" statement will look for your module in each direct

Re: Making EXE files

2001-01-15 Thread Paul Prescod
Derek Lavine wrote: > > Hi all, > > Is there away to generate EXE's from python programs like there is with > ActiveState Perl? ActiveState does not yet distribute or support such a program but you could look at this: http://www.mcmillan-inc.com/install1

Re: The Pythonwin.exe cannot be created?

2001-02-18 Thread Paul Prescod
> Hotmail wrote: > > Dear > > I've down loaded the source for ActivePython for windows. > > I've tried to compile the source with VC++ 6.0. > > Python.exe and pythonw.exe can be created sucessfully. > > But Pythonwin.exe cannot be created. What error message do you get? -- Vote for Your Fa

Re: Newbie Windows 98 installation

2001-02-19 Thread Paul Prescod
Larry Bates wrote: > > I downloaded and installed ActivePython on my Windows 98 machine. The > installation went fine and I can run the PythonShell just fine. When I try to > run PythonWin I get the following messages in a Window. It seems that somehow the correct Python path was not registere

Re: URGENT HELP REQ _ regarding the use of ACTIVEPYTHON & AVAILABILITY

2001-02-21 Thread Paul Prescod
ere any affordable documnetation is there for that. Perl and Python are both programming languages. Some people use one, some the other and some both. The ActivePython distribution (with documentation) is available here: www.ActiveState.com/Products/ActivePython > Have an ineffable day. Ineffa

Embedding multiple independent Pythons

2001-02-22 Thread Paul Weimer
I have Python embedded in my program but have one problem. I use it in more than one place and would like to keep each instance seperate from each other. Is there a way to do this without a seperate thread? Will a seperate thread even work? Thanks ___ A

Re: help a newbie with a reproducible problem

2001-03-01 Thread Paul Prescod
Tkinter code is not compatible with the PythonWin environment. You should use Komodo for that. -- Vote for Your Favorite Python & Perl Programming Accomplishments in the first Active Awards! http://www.ActiveState.com/Awards ___ ActivePython mailing

Re: help a newbie with a reproducible problem (Paul Prescod)

2001-03-04 Thread Paul Prescod
David Lees wrote: > > Paul Prescod said: "Tkinter code is not compatible with the PythonWin > environment. You should use Komodo for that." > > Paul, > > Could you please elaborate on this incompatability and be more > specific. I have just started using

Re: Newbie questions on this

2001-03-05 Thread Paul Prescod
David Lees wrote: > > Paul, > > ... > > What is a "message loop"? Is it the "messages" that occur on Python > exceptions? This would mean that exceptions in Python code and in TK > can get confused between each other? Graphical interfaces work

Re: Embedding and Extending python

2001-03-09 Thread Paul Prescod
This isn't the best mailing list for generic Python questions (even if you are using the ActivePython distribution). There are more experts on the "python-list": http://groups.yahoo.com/group/python-list odell stewart wrote: > > Looking for some to do's and not to do's for embedding a Python G

Python cookbook was (Re: AW: using SQL, ODBC vs ADO)

2001-03-09 Thread Paul Prescod
> [EMAIL PROTECTED] wrote: > > > As we try to move from VB to Python as much as we can, we are also > interested in any tips and tricks on how to use ODBC and ADO with > Python. > > We are looking for production-quality samples, it looks like this is a > white area within Python (and in the bo

Re: Python PPM Problems

2001-03-09 Thread Paul Prescod
That was a transient problem with our website. It is fixed now. Apologies for the inconvenience. -- Vote for Your Favorite Python & Perl Programming Accomplishments in the first Active Awards! http://www.ActiveState.com/Awards ___ ActivePython maili

Re: HTTP - POST-Method do not work

2001-03-09 Thread Paul Prescod
If I correct the variable names in the example I get this program: import httplib, urllib params = urllib.urlencode({'spam': 1, 'eggs': 2, 'bacon': 0}) h = httplib.HTTP("localhost:80") h.putrequest("POST", "/cgi-bin/query") h.putheader("Content-length", "%d" % len(params)) h.putheader('Accept', '

Re: (no subject)

2001-03-10 Thread Paul Prescod
I think that you probably need a "Content-Type: application/x-www-form-urlencoded" header -- Python: Programming the way Guido indented it. ___ ActivePython mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/

Re: Faulty TK build on ActiveState PPM

2001-03-10 Thread Paul Prescod
You are right Don and I just figured that out last night. I'm trying to fix it as quickly as I can but it is tricky on the weekend to find the right people...sorry for the inconvenience!!! Anyone who has not downloaded ActivePython 203 is encouraged to wait until Tuesday when this will be correcte

Fixed Tk

2001-03-10 Thread Paul Prescod
The attached file should fix the faulty Tk that was downloaded with ActivePython 203. You should be able to launch it straight from your mail program or else you could save it to a file and then launch it by double clicking the icon. If you prefer to use the command line you could type: pyppm in

Re: Identifying Win32 workstation names

2001-03-13 Thread Paul Prescod
Scott Widney wrote: > > Can ActivePython be used to find the NetBIOS name of the NT/2000 workstation > to which a given user is logged on? Try the win32api.GetComputerName() API. That may help! -- Python: Programming the way Guido indented it. - (originated with Skip Montana

Re: ppm and ms proxy server

2001-03-13 Thread Paul Prescod
We are just testing out the version of PPM that supports proxies. We can send the files to anyone who wants to participate in the testing. -- Python: Programming the way Guido indented it. - (originated with Skip Montanaro?) ___ Activ

Re: win32all buld 137 win32gui fails

2001-03-13 Thread Paul Prescod
Syver Enstad wrote: > > I've just installed the win32all build 137 that contains the support for > Vtable interfaces in win32com. I've suddenly found that import win32gui > fails with the message: > > ImportError: DLL load failed: The specified module could not be found. > > This is mighty stra

Re: Automated Dialup Mail synchronization

2001-03-22 Thread Paul Prescod
You might want to investigate the win32ras package. That can be used to dial-up and hangup phone book entries. How you sync your mail will depend on your mail program. -- Take a recipe. Leave a recipe. Python Cookbook! http://www.activestate.com/pythoncookbook

Re: help with Tkinter & PIL

2001-03-22 Thread Paul Prescod
The JPEG library is not part of PIL, TKinter or ActivePython. In the future we will probably add it to our PIL distribution as a convenience. For now, I will just email you the file in a separate message. David Ransier wrote: > > Hello, List. > > I'm new to Python and just starting to play with

Re: I AM TRYING PYTHON

2001-03-22 Thread Paul Prescod
[EMAIL PROTECTED] wrote: > > Dear Sir. > I am a beginner and trying python for the first time . I don't know any > programming language, can you help me on understanding codes,programming > languages? and tell me how to get use to python and other programming > software? Python is a good first p

Re: problem importing Tkinter

2001-03-26 Thread Paul Prescod
You need to use PPM to install "Tk" instead of "Tkinter". -- Take a recipe. Leave a recipe. Python Cookbook! http://www.activestate.com/pythoncookbook ___ ActivePython mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/ac

Extensions Survey

2001-04-03 Thread Paul Prescod
I am taking a survey of what extensions to ActivePython our users are using. Obviously this survey may not be applicable to the entire Python community but that does not matter much. I would appreciate if the mailing list participants could send me personal (OFFLIST!) mail listing which of the fo

Re: ODBC ->CGI results

2001-04-09 Thread Paul Prescod
[EMAIL PROTECTED] wrote: > > I am accessing an Access database with a CGI script, everything works but > for the problem that the results are in Tuple format when I "print" them as > an output to a browser client, could someone show me a better way to do > this or a work around? If you would rat

Re: How do I read a raw floppy device on win98

2001-04-09 Thread Paul Prescod
Corey Zimmet wrote: > >... > > However, on win98, I believe I have to use a different methodology using > DeviceIOControl. I have yet to succeed. Does anyone know how to access the > floppy device on win98? I don't know the answer, but perhaps someone on python-list would. You should probably

Re: Problem importing a module with python_d

2001-04-09 Thread Paul Prescod
Python will look for modulename_d.pyd. If you have modulename.pyd, that isn't enough. You need the _d suffix. This allows you to run debug and release versions of modules side by side just as you can run debug and release versions of Python side by side. David Humphrey wrote: > > I have a proble

Re: ActivePython and .NET

2001-04-11 Thread Paul Prescod
[EMAIL PROTECTED] wrote: > > What sort of .NET and/or SOAP capabilities does ActivePython have or will have? > > LB ActiveState has developed Python.NET which is an implementation of most of the Python language for the .NET runtime. This is open source software available on our website (separat

Re: Where's the source?

2001-04-11 Thread Paul Prescod
Robin Dunn wrote: > > Does anybody else find it odd that the ActiveState Python installer for > windows includes the win32 extensions, and the .zip with the Debug version > of the python extensions also includes the win32 extensions, but the source > .zip does not? > > I was hoping for a nice in

Re: Komodo doesn't do "run"?

2001-04-12 Thread Paul Prescod
I think Daniel's answer is correct. You can run just by hitting F5. It would be nice to have a feature that allowed you to run and ignore breakpoints. This is on our todo list for Komodo. [EMAIL PROTECTED] wrote: > > I installed Komodo on both Win and Linux. Am I missing something, or does it >

Re: ActivePython 2.1 problems.

2001-04-20 Thread Paul Prescod
Tuttled wrote: > > 1)After removing ActivePython 2.0 and replacing it with 2.1, all Tkinter > programs now generate the following error. Running "Repair" from the > installer doesn't help. > > C:\>D:\Python21\Grayson\Examples\Chapter03\calc2.py > Traceback (most recent call last): > File "D:\

Re: ActivePython 2.1 problems.

2001-04-20 Thread Paul Prescod
dor. This helps to reduce DLL hell but it also reduces options for the vendor. Remove is something we will support when the underlying Python distribution mechanism supports it. In this case I don't think it would have worked because it was a somewhat exceptional circumstance. > [Don] >

Re: Wierd Tkinter siding

2001-04-21 Thread Paul Prescod
> Craig Hurley wrote: > > I am stumped. I'm using ActiveStates' Python2.1 for windows as well as > their > Komodo beta1(build 18242). The attached program I have been modifying > as > my python learning process. I have no problem with you asking the question on this mailing list but it is my op

Re: ActivePython 2.1 problems.

2001-04-21 Thread Paul Prescod
ay when we last saw our phantom cache problem. > [Paul] > >Modern installer technologies (Windows MSI, RPM) take most of the power > >out of the hands of software vendors and put it into the OS vendor. This > >helps to reduce DLL hell but it also reduces options for the vendo

Re: ActivePython and Zope

2001-04-25 Thread Paul Prescod
David Brown wrote: > > Has there been any thought about packaging up Zope so it works with > ActivePython? I don't have access to a C compiler on Windows (other than > cygwin, and that one doesn't have a threading library that will work with > Python), and it wou;d be nice to have a Zope install

Re: Newbie question - Python interpreter using a lot of memory when using range

2001-04-27 Thread Paul Prescod
Gregg Ward wrote: > > > > Does the interpreter actually generate an individual value for everything in > the range 0-999? Yes. There is a function called "xrange" that does not generate the individual values. range is faster for small lists. xrange is better for large ones. -- Take a

Re: a newbie's question

2001-04-30 Thread Paul Prescod
sowen wrote: > >... > I know in Linux/Unix,Python is a kind of shell script.I think > maybe it can do some work as well as Perl.What jobs the Python fans > will put Python do in Linux? In Windows,what character Python is? People use Python for all sorts of general purpose jobs. Some peopl

Re: Pythonwin crashes showing very long strings.

2001-05-02 Thread Paul Prescod
I think that this is a known bug with Scintilla with long *lines*. Could you confirm that by checking whether you have any really long lines? It may be that if we switch to a newer Scintilla, that will fix it. -- Take a recipe. Leave a recipe. Python Cookbook! http://www.ActiveState.com/pytho

Re: Is ASP broken in current ActivePython?

2001-05-20 Thread Paul Prescod
The current ActivePython works with ASP. It does not automatically register Python as an ASP server. You can do that by running the program win32comext\axscript\client\pyscript.py. You may also want to check out this link: http://starship.python.net/crew/mhammond/win32/InstallationProblems.html

Re: Is ASP broken in current ActivePython?

2001-05-23 Thread Paul Prescod
We do have users who are using ASP successfully and have no immediate way of diagnosing your problems. Please check that you have these Python DLLs in your system32: 708,693 python21.dll 57,344 PyWinTypes21.dll 290,916 pythoncom21.dll Check that you don't have other python DLLs on your system t

Re: Why should I use Python if PERL exists ?

2001-05-31 Thread Paul Prescod
[EMAIL PROTECTED] wrote: > > Hello , > Can you please explain to me advantages of Python in comparison > with PERL? > I use Perl because I need > download web pages, > GUI interface to my program, > use threads > and make exe from perl program. > Is it all in Python or even something better? >

Re: Programming ASP with ActivePython [also a general Web question]

2001-06-04 Thread Paul Prescod
Wartan Hachaturow wrote: > > Hello. > > I've got one trouble with ASPs on Python -- they doesn't work ;) > In fact, I did run pyscript.py, and it said that it has successfully > registered python as a scripting engine. > When I try to execute server-side scripts, they fail (saying 500 Server > E

RE: Import Issues with Active Server Pages and ActivePython

2001-06-13 Thread Paul Bleisch
e registry. I have some ASP pages that import a single module. The scripts work fine for days on end and then suddenly start failing with exceptions about not being able to find module mymodule.py. From that point on the ASP pages will not work

ActivePython 2.1.0 build 211

2001-06-20 Thread Paul Prescod
ActiveState is pleased to announce ActivePython 2.1.0 build 211. This is an incremental improvement over the first build based on Python 2.1.0 (build 210). Many build 210 users will not need to upgrade. Users of Tk and/or Active Server Pages should upgrade because this release fixes bugs relati

debugging wxPython programs

2001-06-25 Thread Paul Casteels
n/wxPython ? Is there another way to debug wxPython programs ? Paul Casteels [EMAIL PROTECTED] Tel: +32.3.8202455 Fax: +32.3.8202470 University of Antwerp Dpt.Physics Universiteitsplein 1 B-2610 Wilri

Re: debugging wxPython programs

2001-06-25 Thread Paul Prescod
Paul Casteels wrote: > >... > Is this a known problem with PythonWin/wxPython ? Is there another way to > debug wxPython programs ? In general, it is not safe to debug graphical applications using "foreign" toolkits in IDLE or PythonWin. If you've had luck so far wit

Re: Windows NT4 installation problems

2001-06-25 Thread Paul Prescod
What happens when you try to install? [EMAIL PROTECTED] wrote: > > I cant seem to install Activestate Python 211, I have uninstalled the 2.01 > version that I had before, any ideas? > > Cheers > > Sharriff Aina > med.iq information & quality in healthcare AG > > __

Re: (OT) Could Ximian's .NET port to Linux strengthen the possibilityof compiled Python?

2001-07-09 Thread Paul Prescod
[EMAIL PROTECTED] wrote: > > Just wondering what would be gained by a C# implementation of Python that > could be run across Win32 and Linux Boxes. I know there have been plenty of > discussions about compiled python before, but does the C# model provide and > advantages that have not been reali

Re: MySQLdb AttributeError Problem

2001-07-16 Thread Paul Prescod
John, this sounds to me like what happens when you have a file called "MySQLDb.py" or "MySQLDb.pyc" hanging around other than the one you expect. Here's what I would do to diagnose (replace string with MySQLdb): >>> import string >>> dir(string) [] >>> string.__file__ 'c:\\python20\\lib\\stri

Displaying Dialog Boxes,etc. from embedded Python

2001-09-11 Thread Paul Weimer
We're running Python from within an MFC application and would like to be able to interact woth the user from within the Python scripts. So far I've tried Tkinter but it blows up. Does anyone have any experience with this? ___ ActivePython mailing list [E

RE: Displaying Dialog Boxes,etc. from embedded Python

2001-09-11 Thread Paul Weimer
ember 11, 2001 10:14 AM To: Paul Weimer; [EMAIL PROTECTED] Subject: RE: Displaying Dialog Boxes,etc. from embedded Python I don't know why tk is crashing, but if you're already using MFC you can always access MFC or low-level windows APIs directly from the win32 library and avoid a sec

Debug version of 2.2

2001-11-13 Thread Paul Weimer
I built a debug version of 2.2.0.a2 but when I try to use it I get an assertion error in dbgheap.c line 1044 expression "_CrtIsValidHeapPointer(pUserData)" after my call to Py_Initialize(). Did I mess something somewhere? ___ ActivePython mailing list [

RE: Controlling win32 application

2001-11-15 Thread Paul Weimer
Just out of curiosity - how many others are trying to deal with screen-scrapes with Python? I've started a hllapi extension myself. Are there enough of us for our own mailing list (and therapy sessions) ? Paul -Original Message- From: Troy Noble [mailto:[EMAIL PROTECTED]] Sent: Thu

Getting traceback info from a Pythong call embedded in C

2001-11-20 Thread Paul Weimer
When I do a "PyErr_Fetch(&errobj, &errdata, &errtraceback)" I know how to manipulate errobj & errdata but not errtraceback. Thanks ___ ActivePython mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/activepython

Re: pissed newbie: why wont this function work

2002-04-04 Thread Paul Osman
rking is that in python, you have to define your functions *before* you call them. Cheers, -Paul Jose Guevarra wrote: >Hi, > > I was just trying to make a simple range function that works w/ decimal >numbers instead of just integers. Im new to python and I don't know if >on

Re: Python IDEs (no subject)

2002-05-17 Thread Paul Osman
i should mention that there is also a 'non-commercial' license available for Komodo at a mere $29.95 USD (me thinks... check this). This was enough for me to purchase one as I wouldn't be using it for work. cheers, paul Todd Ellner wrote: >>>Can anybody re

Excel ranges

2002-10-18 Thread Paul Casteels
emely slow. Is there any way to speed it up ? Paul Casteels U.I.A. / Physics ___ ActivePython mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs Other options: http://listserv.ActiveState.com/mailman/listinfo/ActivePython

RE: Excel ranges

2002-10-19 Thread Paul Casteels
Makepy results in a considerable speed-up. If you use it, you have to take care of the fact that attributes become case-sensitive. Paul Casteels On Fri, 18 Oct 2002, Stefan Kuzminski wrote: > I have been trying to get around the same problem. Horizontal ranges work > > sh

win32com Dispatch

2002-11-04 Thread Paul Casteels
pointer is PyIDispatch but I am unable to invoke any methods on it. -- Paul Casteels [EMAIL PROTECTED] Tel: +32.3.8202455 Fax: +32.3.8202470 University of Antwerp Dpt.Physics Universiteitsplein 1 B-2610 Wilrijk Belgium

PYTHONVERBOSE

2005-07-22 Thread Paul Grasso
I want to trace an import statement, but only one so I set import os os.environ["PYTHONVERBOSE"] = "1" import wx del os.environ["PYTHONVERBOSE"] but the import wx was NOT traced. Neither was it traced if I use os.putenv. Does anyone know how to set python for import tracing within a script?