Re: Pausing for Python Interpreter error messages...

2007-01-07 Thread redefined . horizons
Thanks Bruno. I'll get the 2.5 python install, and I'm checking out the unit testing module that you mentioned. Scott Huey Bruno Desthuilliers wrote: > [EMAIL PROTECTED] a écrit : > > I've written a few classes that I have been testing in IDLE. However, > > every time I make a change to the cla

Pausing for Python Interpreter error messages...

2007-01-05 Thread redefined . horizons
I've written a few classes that I have been testing in IDLE. However, every time I make a change to the classes based on the testing I have to walk through all he steps of preparing the classes for testing again. So I wrote a script that does all the set-up work for me. The only problem is when I

Re: Adding a directory to the Python System Path - Edit the registry?

2007-01-05 Thread redefined . horizons
Thanks Martin. I'll take a look at the documentation you pointed out. Scott Martin P. Hellwig wrote: > [EMAIL PROTECTED] wrote: > > I have been trying to find a way to add a directory to Python's sytem > > path on my MS Windows XP computer. I did some searching online, but the > > only solution

Adding a directory to the Python System Path - Edit the registry?

2007-01-05 Thread redefined . horizons
I have been trying to find a way to add a directory to Python's sytem path on my MS Windows XP computer. I did some searching online, but the only solution I found involved editing the MS Windows Registry. That seemed a little to hard core. Is there another easier way to do this? Thanks, Scott Hu

Dividing integers...Convert to float first?

2007-01-05 Thread redefined . horizons
I'm still pretty new to Python. I'm writing a function that accepts thre integers as arguments. I need to divide the first integer by te second integer, and get a float as a result. I don't want the caller of the function to have to pass floats instead of integers. How do I convert the arguments pa

Which Python API for PostgreSQL?

2006-08-04 Thread Redefined Horizons
I have been working with PostgreSQL for a while, and have just made the move to Python a couple of months ago. I noticed that there are at least 2 Python API's to PostgreSQL. I have looked at PygreSQL and PostgrePy. What are the advanatages and disadvantages of each? Which one do you use? What do

Extending Python - Understanding Flags...

2006-06-12 Thread Redefined Horizons
I'm trying to understand the argument flags that are used in the method table of an extension module written in C. First let me ask this question about the method table. Is it an C array named "PyMethodDef"? Now, onto my questions about the arguments: [1] I see that even when the Python function

First question on extending Python...

2006-06-09 Thread Redefined Horizons
I still new to Python, and I've only dabbled in C, but I've got my first project I need to tackle that involves both languages. I was hoping to get some advice on how to proceed. There is a third-party application that I need to work with. It is closed-source, but it exposes a C API. I want to wra

Python or Ajax?

2006-06-09 Thread Redefined Horizons
I've been hearing a ot about AJAX lately. I may have to build a web application in the near future, and I was curoius: How does a web application that uses Python compare with one that uses AJAX? I've done some basic web page design with HTML and CSS, but never any web applications. I don't want

Questions about extending Python...

2006-06-09 Thread Redefined Horizons
I've got a third-part application that exposes a C API. I'd like to wrap it in Python. Is there a specific forum that covers extending and embedding Python, or are those type of questions O.K. on this list? Scott Huey -- http://mail.python.org/mailman/listinfo/python-list

Re: Using python for a CAD program

2006-05-23 Thread Redefined Horizons
This is a very interesting discussion. :]   I regularly use CAD and GIS programs at work, and have dabbled in traditional RDBMS design. I ran into a problem with an open source GIS program I work with, that reads all features in a shapefile into memory. This limits the use of the program, given the

Re: Help System For Python Applications

2006-05-16 Thread redefined . horizons
Thanks for the link Paul. It looks like you've done some good work on that module. I'll check it out. Scott Paul Boddie wrote: > bruno at modulix wrote: > > [EMAIL PROTECTED] wrote: > > > > > On a related note, is there a way to fire up Adobe's Acorbat Reader or > > > and Web Browser from Python

Re: Help System For Python Applications

2006-05-16 Thread redefined . horizons
Thanks for the responses. I'll check out the web browser module, and I'll make sure that I release any work ona help system to the community. Scott Huey bruno at modulix wrote: > [EMAIL PROTECTED] wrote: > > I did some searching for this topic, but couldn't find anything. A > > search of this lis

Help System For Python Applications

2006-05-16 Thread redefined . horizons
I did some searching for this topic, but couldn't find anything. A search of this list only turned up an old post from 2002. I'd like to add a comprehesive help system to my Python Application. By "comprehensive" I mean regular "read-like-a-book" help and context sensitive help that can be launche

Foriegn contents in Python Packages...

2006-04-27 Thread redefined . horizons
Is it possible to store "non-python" files in a directory that serves as a Python Package? (Like an image file or an XML file.) Is this allowed for sub-directories that are not Python Packages? In other words, can I have a Python Package that contains other Python Packages and also folders that ar

Using Parts of PEAK

2006-04-27 Thread redefined . horizons
I was intriuged by the concept of Python Eggs and some of the work that has been done on PEAK. http://peak.telecommunity.com/ However, I think PEAK might be overkill for the particular design I am considering. Is anyone using just part of PEAK in their Python development. Are there alternative di

Protocols for Python?

2006-04-27 Thread redefined . horizons
I think I have reached an important moment in my growth as a Python Developer. I realize now why interfaces aren't really necessary in Python. :] Still, I'm designing an application that I want to be extendable by third-party developers. I'd like to have some sort of documentation about what behav

What do you use __init__.py for?

2006-04-27 Thread redefined . horizons
I have just started learning about Python Packages. I know that a directory must contains the '__init__.py' script to be considered a Python package, and that this script is executed when the package is imported. But what other uses does the '__init__.py' script have? What do you use it for? I

Re: Events in Python?

2006-04-26 Thread redefined . horizons
Thank you for all of the responses. I will check out the Traits link. It looked very interesting. It seems like Python doesn't have a "standard" implementation of an event or messaging system. That is really what I was curious about. I wanted to check before I implemented something of my own. Tha

Events in Python?

2006-04-26 Thread redefined . horizons
Here is another non-pythonic question from the Java Developer. (I beg for forgiveness...) Does Python have a mechanism for events/event-driven programming? I'm not necessarily talking about just GUIs either, I'm interested in using events for other parts of an application as well. If there isn't

Confused about properties, descriptors, and attributes...

2006-04-20 Thread redefined . horizons
I've been reading about Python Classes, and I'm a little confused about how Python stores the state of an object. I was hoping for some help. I realize that you can't create an empty place holder for a member variable of a Python object. It has to be given a value when defined, or set within a met

Thanks from the Java Developer

2006-04-19 Thread redefined . horizons
I wanted to thank those members of the Python community that took the time to answer my questions about interfaces and plug-ins in Python. I have discovered that Python is a very powerful language, and one that I look forward to using for Linux development. I have found the support for Python much

Plug-Ins In A Python Application

2006-04-18 Thread redefined . horizons
Its the Java developer again... I'm working on an application framework that I would like to implement in Python. Part of the application framework is a plug-in model that is similar to the one used in Eclipse. Is it possible to load and use "modules" containing plug-in code written by third part

Re: Missing interfaces in Python...

2006-04-17 Thread redefined . horizons
Thanks for the responses...Looks like I might have opened Pandora's box here. Could I accomplish the above with an abstract class? If the mechanic class had a "fixIt()" method defined, could I pass it any object I wanted, and then just call the method that I expect to find there, or do I need to s

Missing interfaces in Python...

2006-04-17 Thread redefined . horizons
I'm coming from a Java background, so please don't stone me... I see that Python is missing "interfaces". The concept of an interface is a key to good programming design in Java, but I've read that they aren't really necessary in Python. I am wondering what technique I can use in Python to get the

Re: Java Developer Exploring Python

2006-04-17 Thread redefined . horizons
Ravi Teja wrote: > >> I've traditionally been a Java developer, although I play around with LISP. > > For most java developers, understanding dynamic typing is a big step. > Your Lisp background however would mean that you will pick up Python > very quickly. > > >> I recently migrated to Linux and

Java Developer Exploring Python

2006-04-17 Thread redefined . horizons
I've traditionally been a Java developer, although I play around with LISP. I recently migrated to Linux and I was exploring Mono as an option for development on Linux. However, I've had some problems with the maturity and support when working with Mono. So I was considering Python as an alternativ