Good introduction to functional programming with Python?

Marcin 'Qrczak' Kowalczyk qrczak at
Fri Dec 22 21:28:30 CET 2000

Fri, 22 Dec 2000 09:50:56 +0100, Alex Martelli <aleaxit at> pisze:

> There must indeed be some Pythonic 'aura' to Haskell, I guess,
> given the somewhat surprising correlation between liking Haskell
> and liking Python among people who've tried both.

Indeed. I am very surprised how often Haskell is mentioned on the
Python's list, given quite different paradigms of these languages.

Elegance of design of a language? Significant layout? :-)

I am making a library for embedding the CPython interpreter in Haskell
programs (Glasgow Haskell only), to be prepared if I ever need to
make a scriptable program.

Handling basic Python objects already works. Includign conversion of
Haskell functions to Python bound method objects, with "self" being
a CObject, whose finalizer frees the dynamically created C function
pointer and thus removes implicit references to free variables of
the original function closure... Exceptions from either language
are going to be propagated through both languages, with appropriate
wrapping and unwrapping. Unfortunately data structures with cycles
across languages will not be freed.

 __("<  Marcin Kowalczyk * qrczak at
  ^^                      SYGNATURA ZASTĘPCZA

More information about the Python-list mailing list