Re: `yield` in a `try/finally` block, pre-Python 2.5

2007-06-03 Thread yuce

I had the same problem, you can see: 
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/130004
for a solution.

Happy hacking,

Yuce

On Jun 4, 8:23 am, Adam Atlas <[EMAIL PROTECTED]> wrote:
> I'm trying to emulate the Python 2.5 behaviour (PEP 342) of generator
> functions where the `yield` statement is in a `try/finally` block.
> Basically, where the `finally` block is guaranteed to run even if the
> generator doesn't finish running: it simply runs when the generator is
> garbage-collected. Does anyone know a good way of doing this? I'm
> looking to see if there's a way to bring about an exception in another
> frame in pure Python, but I haven't found anything yet.


-- 
http://mail.python.org/mailman/listinfo/python-list


Re: excel library without COM

2007-06-03 Thread yuce

i think this one works pretty nice: http://www.python.org/pypi/xlrd

Happy hacking,

Yuce


On Jun 4, 3:59 am, james_027 <[EMAIL PROTECTED]> wrote:
> Hi,
>
> is there any library to help me write excel files without using win
> com? because i'll be working on linux platform. At the same time I
> could want to perform some formatting, merging of cells. adding sheets
> and etc ...
>
> Thanks
> james


-- 
http://mail.python.org/mailman/listinfo/python-list


Re: python -- prolog bridge error

2007-05-27 Thread yuce

Hello,

PySWIP requires "libpl.dll" to be on the path. There are two ways to
do this:

1) Add 'bin' directory of SWI-Prolog to the PATH (it's C:\Program Files
\pl\bin on my system),

2) Or, copy 'libpl.dll' and 'pthreadVC.dll' to C:\WINDOWS\system32

That should solve the problem, happy hacking :)

Yuce Tekol


On 27 Mayıs, 03:08, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>  I am getting an error with pyswip on xp that says the .dll isn't
> installed as a shared library.  Is there a manual way to install
> the .dll as such???  prolog seems to work fine it is just the bridge
> that gives an error


-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Creating a distro of python... What would you include in it?

2007-05-30 Thread yuce
re: BJörn, I think selecting a GPL license will increase the number of
usable packages, since using Python license with GPL is perfectly fine
as long as the whole software is licensed under GPL [I am not really
sure it is a must to license the whole package under GPL]

re: farksimm; I'd put (in nor particular order)

- Python Imaging Library : http://www.pythonware.com/products/pil/

- wxPython : http://www.wxpython.org/

- ipython : http://ipython.scipy.org/moin/

- pycrypto : http://www.amk.ca/python/code/crypto

- sqlalchemy : http://www.sqlalchemy.org/

- psycopg : http://www.initd.org/tracker/psycopg

- docutils : http://docutils.sourceforge.net/

- NumPy/Numeric : http://numpy.scipy.org/

- if it's for Win32 also pywin32 : http://www.python.net/crew/mhammond/win32/

Yuce

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: python -- prolog bridge error

2007-05-30 Thread yuce
I've updated install doc for pyswip, you can have a look at:
http://code.google.com/p/pyswip/wiki/INSTALL

Happy hacking,

Yuce

-- 
http://mail.python.org/mailman/listinfo/python-list