pythonic web markup languages & templating systems & site generators

2010-06-05 Thread travis+ml-python
I started to review static blog-like HTML generators, and found myself overwhelmed with how many there were. I narrowed it down to pythonic ones, and then realized I had to pick a markup language and templating language, of which there are several pythonic implementations... The results of my inq

Re: Is Python a functional programming language?

2010-05-15 Thread travis+ml-python
On Mon, May 10, 2010 at 08:45:51PM +0100, Nobody wrote: > On Tue, 11 May 2010 00:24:22 +1200, Samuel Williams wrote: > > Is Python a functional programming language? > Not in any meaningful sense of the term. LOL > > I heard that lambdas were limited to a single expression, > > Yes. In a functio

how to use WSGI applications with apache

2009-10-07 Thread travis+ml-python
Hi folks, I'm not quite sure where to ask this, but this is my closest guess. I've written a web service based on the newf micro-framework and it uses wsgiref.simple_server. I'm noticing that it's not returning response codes properly (after fixing a bug in newf). Instead, it just closes the TC

run-time inclusion of files

2009-09-05 Thread travis+ml-python
Hello, I was wondering if there was something like Perl's "require" that allows you to import a file whose name is specified at run-time. So far I've only seen imports of modules that are put in the standard module include path. I'm interested in three seperate problems: 1) being able to import

Re: proposal: add setresuid() system call to python

2009-08-25 Thread travis+ml-python
On Fri, Aug 21, 2009 at 03:13:12PM -0500, tra...@subspacefield.org wrote: > Since the authors of the paper (Wagner et. al.) are proposing a new > set of APIs to make all of this clearer, I'm thinking that I will > create a module specifically for dropping permissions. I've created the module here:

Re: proposal: add setresuid() system call to python

2009-08-21 Thread travis+ml-python
On Mon, Jul 20, 2009 at 04:10:35PM +0200, Hrvoje Niksic wrote: > To emulate the os-module-type calls, it's better to raise exceptions > than return negative values: > > > def setresuid(ruid, euid, suid): > > return _setresuid(__uid_t(ruid), __uid_t(euid), __uid_t(suid)) > > def setresuid(ruid

proposal: add setresuid() system call to python

2009-07-17 Thread travis+ml-python
Hello, Historically, I have used scripting languages like python for typical uses, but they tend to not fare very well at system programming; for close interfacing with the operating system, I'm often forced to use a language like C. This is undesirable to me. I do not think this has to be the c