Re: Permutation Generator

2005-08-13 Thread Jim Washington
.py" for __main__ to work. A couple of lines went over 80 characters, so you might have to put those back together. -Jim Washington """ ***Reversible*** Permutations using factoradics. factoradic concept at: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnets

Sanitizing untrusted code for eval()

2005-08-22 Thread Jim Washington
#x27;None':None}}, {'null':None,'true':True,'false':False}) I am familiar with this thread: http://groups-beta.google.com/group/comp.lang.python/browse_thread/thread/cbcc21b95af0d9cc Does anyone know of any other "gotchas" with eval() I have not found? Or is eval() simply too evil? -Jim Washington -- http://mail.python.org/mailman/listinfo/python-list

Re: Sanitizing untrusted code for eval()

2005-08-22 Thread Jim Washington
I can start there and optimize, as you say, and be a bit more sure that python's parser is not abused into submission. BTW, this afternoon I sent a couple of hours of random junk to eval() just to see what would be accepted. I did not know before that 5|3 = 7 6^3 = 5 ~6 = -7 ()and aslf

Re: ANN: SimpleJSONRPCServer

2006-10-09 Thread Jim Washington
MAIL PROTECTED] -Jim Washington -- http://mail.python.org/mailman/listinfo/python-list

RELEASED zif.sedna 0.9 beta2

2008-02-15 Thread Jim Washington
Academy of Sciences . zif.sedna is just an adapter package. -Jim Washington -- http://mail.python.org/mailman/listinfo/python-list

Re: xpathEval fails for large files

2008-07-22 Thread Jim Washington
llection size are limited only by disk space. Not so good: Sedna runs as a server. Expect to use in the range of 100M of RAM per database. A database can contain many many documents, so you probably only want one database, anyway. Disclosure: I'm the author of the zif.sedna packa

Re: convert xhtml back to html

2008-04-25 Thread Jim Washington
put up an on-line demo serving and xquerying an extract from Wikipedia (in the range of 20 GB of data) using a Sedna server, at http://wikidb.dyndns.org/ . Along with the on-line demo, they provide instructions for deploying the technology locally. - Jim Washington -- http://mail.python.org/mailman/listinfo/python-list

Re: Am I missing something with Python not having interfaces?

2008-05-06 Thread Jim Washington
packaged to be installable and usable outside of zope. It's available at the Cheese Shop. If you want to do adaptation from one interface to another or, for example, register and look-up utilities by interface, zope.component is also handy. - Jim Washington -- http://mail.python.org/mailman/listinfo/python-list