From: <MAI...@us...> - 2000-08-20 13:06:58
|
Intended recipient: caj...@ne... The following mail has been returned because it encountered an error while being processed. Please try to resend this message. A notice of this error has been reported to the POSTMASTER at USA.NET which will attempt to contact the intended recipient. --------RETURNED MAIL FOLLOWS-------- Received: from pop.mindspring.com by apps02.netaddress.com with [Collected by] USA.NET Rover (vM3.3.0.56) for caj...@ne... with ESMTP id 910eHTNgS0093R02; Sun, 20 Aug 2000 13:06:44 GMT Return-Path: <poo...@li...> Received: from lists.sourceforge.net ([198.186.203.35]) by walker.mail.mindspring.net (Mindspring Mail Service) with ESMTP id spts2u.2vrn.37kbi73 for <caj...@mi...>; Sat, 19 Aug 2000 16:38:54 -0400 (EDT) Received: from mail1.sourceforge.net (localhost [127.0.0.1]) by lists.sourceforge.net (8.9.3/8.9.3) with ESMTP id NAA30886; Sat, 19 Aug 2000 13:38:53 -0700 Date: Sat, 19 Aug 2000 13:38:53 -0700 Message-Id: <200...@li...> From: poo...@li... Subject: Poop-group digest, Vol 1 #24 - 1 msg Reply-to: poo...@li... X-mailer: Mailman v1.1 Mime-version: 1.0 Content-type: text/plain To: poo...@li... Sender: poo...@li... Errors-To: poo...@li... X-Mailman-Version: 1.1 Precedence: bulk List-Id: Perl Object Oriented Persistence <poop-group.lists.sourceforge.net> X-BeenThere: poo...@li... Send Poop-group mailing list submissions to poo...@li... To subscribe or unsubscribe via the web, visit http://lists.sourceforge.net/mailman/listinfo/poop-group or, via email, send a message with subject or body 'help' to poo...@li... You can reach the person managing the list at poo...@li... When replying, please edit your Subject line so it is more specific than "Re: Contents of Poop-group digest..." Today's Topics: 1. Processing Error (mai...@us...) --__--__-- Message: 1 Date: 19 Aug 2000 13:20:57 -0000 To: poo...@li... From: MAI...@us... Subject: [Poop-group] Processing Error Intended recipient: caj...@ne... The following mail has been returned because it encountered an error while being processed. Please try to resend this message. A notice of this error has been reported to the POSTMASTER at USA.NET which will attempt to contact the intended recipient. --------RETURNED MAIL FOLLOWS-------- Received: from pop.mindspring.com by apps02.netaddress.com with [Collected by] USA.NET Rover (vM3.3.0.56) for caj...@ne... with ESMTP id 086eHsNu10121R02; Sat, 19 Aug 2000 13:20:52 GMT Return-Path: <poo...@li...> Received: from lists.sourceforge.net ([198.186.203.35]) by farley.mail.mindspring.net (Mindspring Mail Service) with ESMTP id spr85d.2564.37kbi1c for <caj...@mi...>; Fri, 18 Aug 2000 16:46:36 -0400 (EDT) Received: from mail1.sourceforge.net (localhost [127.0.0.1]) by lists.sourceforge.net (8.9.3/8.9.3) with ESMTP id NAA16557; Fri, 18 Aug 2000 13:46:31 -0700 Date: Fri, 18 Aug 2000 13:46:31 -0700 Message-Id: <200...@li...> From: poo...@li... Subject: Poop-group digest, Vol 1 #23 - 1 msg Reply-to: poo...@li... X-mailer: Mailman v1.1 Mime-version: 1.0 Content-type: text/plain To: poo...@li... Sender: poo...@li... Errors-To: poo...@li... X-Mailman-Version: 1.1 Precedence: bulk List-Id: Perl Object Oriented Persistence <poop-group.lists.sourceforge.net> X-BeenThere: poo...@li... Send Poop-group mailing list submissions to poo...@li... To subscribe or unsubscribe via the web, visit http://lists.sourceforge.net/mailman/listinfo/poop-group or, via email, send a message with subject or body 'help' to poo...@li... You can reach the person managing the list at poo...@li... When replying, please edit your Subject line so it is more specific than "Re: Contents of Poop-group digest..." Today's Topics: 1. Python POOP Equiv... (John van V) -- __--__-- Message: 1 Date: 18 Aug 2000 16:16:43 -0000 From: "John van V" <ad...@pu...> To: poo...@li... Subject: [Poop-group] Python POOP Equiv... I got this email from a py hack on the MailMan list. Still dunna why they chose to rewrite the mail exploder, I still might write ezmlm cgi's if I can ever get the security thing fig'd out ;) Date: Tue, 15 Aug 2000 20:37:46 -0300 (EST) From: Leonardo Rochael Almeida <lr...@in...> To: John van V <app...@pu...> Subject: python evangelization (was) Re: [Mailman-Users] User Passwds in Bulk Loading ?? I'm not exactly a python hacker, just an ocasional programmer and big time fan, so whatever I say here, take with the grain of salt that an non authoritative answer requires. > > No, python has database interfaces of it own. There is even a whole > > database engine writen in python (with some C modules for speed), gadfly. > > > Hmmm, mislead again. it happens :-) Marshal is one of the many (read, more than two :-) ways to do data persistence in python: * Pickle (and it's much faster cousin cPickle) deal with object serialization. Only data, not code, is serialized. The serialized version is good for saving to file or database and for sending thru the network and each class can (but don't need to) specify how it's serialized version will look. cPickle is a compatible implementation of Pickle written in C which runs (according to the documentation) up to 1000x faster. it understand cyclic references as well as shared ones. It's serialization format is human readable, but you can ask it for a slightly more compact but binary format. (c)Pickle is used as the base for: * Shelve is a front end for Pickle and for the [gd]?dbm python modules, thereby creating a disk based dictionary (database) for python objects. and that's all there is to it. * Marshall, (mailman's .db list configuration file) is almost like the counterpart for pickle. It's binary only, only handle non recursive objects and only for the following object types: None (Python's undef), integers, long integers, floating point numbers, strings, tuples, lists, dictionaries, and (tada!) code objects. It's format can vary (but usually don't) between python versions, but is uniform between architectures (woohoo!). And that is it for modules that come standard with python. The great thing about python is that it is really introspective. There are several standard modules for interfering and examining python internals at runtime so it is easy to write such things in python. It also has features for restricted execution (eval) of (untrusted) code. But don't call now, there is even more! There are some really cool third party persistence modules. One that I know about is a component of Zope, which is used to get transactional and versioned object persistence (I just love Zope, so don't get me started :-), check it out on www.zope.org). I is called ZODB (Zope Object DataBase) and is in it's 3rd incarnation inside Zope. Read about it here: http://www.zope.org/Documentation/Developer/Models/ZODB/ZODB_Doc.html > Vast product support is not why I use perl. I like the pure perl > approach w/ really good c modules (xsubs). The way to develop in python is. You program your prototype in python so it is fully functional (in a fraction of the time you would take to program in other languages, including perl if we are talking about anything larger than a system administration script (I program in perl also, so I know what I'm talking about)) and then you use python's profiling support to pinpoint where it is slowing down. Then you can either improve your algorithm or replace it with a C module. Extending python with C modules is amazingly easy. It has been part of the language since very early, and the API is extremely simple (for extending and for embedding python in a C program also). > There is a product called websprocket for the embedded market. Its > basically a thin OS which runs a JVM open to the network. You zing a > class at the listener and it involks it. This is why I regret that > perl cant freeze subs, can python do that ?? I've seen some implementations of traveling python code. For a real life example look at this browser written in python which runs python applets: http://grail.python.org/ And here are some links you should really check out: The real authoritative source: http://python.org/ THE place to look for third party modules and other stuff written in/for python, including some serialization and transport solutions. http://www.vex.net/parnassus/ Which reminds me, if you were looking for python database adapters, check out the database section in the above site. well, I just hope my enthusiasm doesn't scare you. I assure you it wasn't paid advertising :-) Regards, Leo -- __--__-- _______________________________________________ Poop-group mailing list Poo...@li... http://lists.sourceforge.net/mailman/listinfo/poop-group End of Poop-group Digest ---------END OF RETURNED MAIL-------- --__--__-- _______________________________________________ Poop-group mailing list Poo...@li... http://lists.sourceforge.net/mailman/listinfo/poop-group End of Poop-group Digest ---------END OF RETURNED MAIL-------- |