Re: Shared library Python on Mac OS X 64-bit

2009-03-05 Thread Uberman
Graham Dumpleton wrote: > > I don't understand the problem, you can say where it installs the > framework, it doesn't have to be under /Library, so can be in your > special SDK folder. For example: > > ./configure --prefix=/usr/local/python-2.5.4 \ > --enable-framework=/usr/local/python-2.5.4/fra

Re: Shared library Python on Mac OS X 64-bit

2009-03-03 Thread Uberman
Graham Dumpleton wrote: > Why don't you want to use MacOS X Framework libraries? It is the > better installation method. Because I'm not installing Python, I'm building it. If I were just interested in installing Python, I wouldn't care whether it was static or shared libraries. This is all very

Shared library Python on Mac OS X 64-bit

2009-03-02 Thread Uberman
I'm trying to build a 64-bit version of Python 2.5.1 on Mac OS X 10.5.6 64-bit (Intel processor). The configure line I'm using is: ./configure --enable-shared --disable-framework --disable-toolbox-glue OPT="-fast -arch x86_64 -Wall -Wstrict-prototypes -fno-common -fPIC" LDFLAGS="-arch x86_64" Th

Re: Calling a class instance like a function

2009-02-18 Thread Uberman
Thank you very much, Filip!! :) Filip GruszczyƄski wrote: > __call__ > > 2009/2/19 Uberman : >> I'm wondering if there's a way to invoke a "function" operator on a Python >> class instance. For example, given a class instance: >> >>m

Calling a class instance like a function

2009-02-18 Thread Uberman
I'm wondering if there's a way to invoke a "function" operator on a Python class instance. For example, given a class instance: myClass = MyClass() I want to call that instance like a function, with an argument value: myClass(5.0) I can override the "()" operator in C++, so I'm

Re: Weird invisible arguments issues with Windows

2009-01-29 Thread Uberman
Tim Golden wrote: > What does your association look like? Try ftype; should be something > like this: > > H:\>ftype python.file > python.file="C:\Python26\python.exe" "%1" %* Then, Chris Hulan wrote: > on my XP system, in the registry under HKEY_CLASSES_ROOT\Applications > \python.exe\shell\open

Weird invisible arguments issues with Windows

2009-01-29 Thread Uberman
I've installed Python 2.6.1 (AMD64) under Windows Vista Ultimate 64-bit. First off, it didn't register the extension for .PY (although it did register .PYC). After manually associating the .PY extension with the python.exe executable, I am now getting some weirdness on the command line. When I r

Why can't I store a DLL in a module library Zip file?

2009-01-09 Thread Uberman
I'm using Python 2.5.1, and I'm trying to use the module library as a Zip file (for example, with python25_d.dll, the module library file would be called python25_d.zip). This works for the basic modules that come with Python (os, sys, site, etc.), and it even seems to work when I place my own Pyt

Re: Happy fun time with SWIG

2008-09-05 Thread Uberman
Nobody has any help for me on this one? Let me see if I can make it clearer by using something simpler: +---+ ---| Peter |--- | +---+ | | | V V

Happy fun time with SWIG

2008-09-04 Thread Uberman
I have a bit of a odd arrangement here with SWIG, Python, Embedded Python and C++ classes exported into Python. Here's the plot: I have a class defined in a C++ DLL library. I am wrapping this class (we'll call it "Peter") with SWIG so some of its base functionality is available in Python. For

Re: Ensure only single application instance.

2008-08-29 Thread Uberman
On Fri, Aug 29, 2008 at 6:51 AM, Heston James <[EMAIL PROTECTED]> wrote: > Good afternoon all. > > I have an application/script which is launched by crontab on a regular > basis. I need an effective and accurate way to ensure that only one instance > of the script is running at any one time. You c

Re: how do I stop SocketServer()?

2008-08-27 Thread Uberman
On Wed, 27 Aug 2008 18:44:46 +0200, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: >Alexandru Mosoi wrote: > >> supposing that I have a server (an instance of SocketServer()) that >> waits for a connection (ie is blocked in accept()) and in another >> thread i want to stop the server, how do I do

Re: Need help with extension modules built in debug mode

2008-08-27 Thread Uberman
On Wed, 27 Aug 2008 00:31:37 -0300, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: >In debug mode, python looks for hello_d.pyd - NOT hello.pyd. >Note that neither hello.dll nor hello_d.dll are recognized anymore since >version 2.5 Excellent! Thank you, Gabriel. Just what I was missing. -- ht