Re: sqlobject 0.8.0b1 and python 2.5

2007-01-13 Thread Jan Dries
Daniel Nogradi wrote: > Since I'm starting to use sqlobject right now, if there is a > similar ORM tool that is comparable but up to date and actively > developed, that would be an option too. (Things like SQLAlchemy are > wy to complicated and complex for my needs. :)) Perhaps not really an a

Re: Best way to implement a timed queue?

2007-01-04 Thread Jan Dries
Thomas Ploch wrote: > I am having troubles with implementing a timed queue. I am using the > 'Queue' module to manage several queues. But I want a timed access, i.e. > only 2 fetches per second max. I am horribly stuck on even how I > actually could write it. Has somebody done that before? And when

Re: Unsubscribing from the list

2007-01-03 Thread Jan Dries
Dotan Cohen wrote: > On 03/01/07, Robert Kern <[EMAIL PROTECTED]> wrote: >> He misunderstood you (as I nearly did, too). The way you phrased "decided >> that >> there was no futher interest on the page for me" is somewhat ambiguous: it >> can >> seem like it refers to the second time, not the fir

Re: How do I add users using Python scripts on a Linux machine

2007-01-02 Thread Jan Dries
Ivan Voras wrote: > Ramdas wrote: >> Well, >> >> I need to add users from a web interface for a web server, which runs >> only Python. I need to add users, set quotas and in future even look at >> managing ip tables to limit bandwidth. >> >> I know os.system(), but this has to be done through a for

Re: merits of Lisp vs Python

2006-12-13 Thread Jan Dries
Christophe wrote: > Robert Uhl a écrit : >> [EMAIL PROTECTED] (Aahz) writes: >>> Consider this: Lisp has had years of development, it has had millions of >>> dollars thrown at it by VC firms -- and yet Python is winning over Lisp >>> programmers. Think about it. >> The argument from popularity is

Re: merits of Lisp vs Python

2006-12-11 Thread Jan Dries
Robert Brown wrote: > Paul Rubin writes: >> Espen Vestre <[EMAIL PROTECTED]> writes: Can you redefine CLOS methods without calling CLOS functions that tell the object system what to expect (so it can do things like update the MRO cache)? I.e. can you redef

Re: merits of Lisp vs Python

2006-12-11 Thread Jan Dries
Paul Rubin wrote: > In musical terms, Python is like a Beatles song, very popular > and easy to sway and dance to. Lisp is like a Bach fugue. While I agree with your point in principle, I think that comparing Python to a Beatles song doesn't give the language the credit it IMO deserves. To avoi

Re: merits of Lisp vs Python

2006-12-11 Thread Jan Dries
Bill Atkins wrote: > greg <[EMAIL PROTECTED]> writes: >> On the plus side, Python makes less demands on the >> capabilities of the editor. All you really need >> is block-shifting commands. Bracket matching is >> handy for expressions but not vital, and you >> certainly don't need bracket-based aut

Re: SSH File Transfer Protocol or SFTP

2006-12-11 Thread Jan Dries
Lad wrote: > Is there a module in Python available that I can use for uploading > files via > SFTP (SSH File Transfer Protocol)? > Or do you think that FTP protocol for files uploading is OK? > Thank you for replies > Lad. You probably want Paramiko (http://www.lag.net/paramiko/). It provides

Re: merits of Lisp vs Python

2006-12-08 Thread Jan Dries
Alex Mizrahi wrote: > RB> Performance claims are always controversial. So, Python is much slower > RB> doing array multiplication, when you hand roll it, instead of using the > RB> standard numerical packages available. > > heh, do you have "standard numeric packages" for everything? maybe then

Re: Use of factory pattern in Python?

2006-12-07 Thread Jan Dries
Gabriel Genellina wrote: > At Thursday 7/12/2006 05:28, Nathan Harmston wrote: >> so I was thinking of having a factory class to return the individual >> objects for each row..ie >> >> class Factory(): >> # if passed a gene return a gene object >> # if passed an intron return

Re: MySQLdb windows binaries for Python 2.5??

2006-11-11 Thread Jan Dries
[EMAIL PROTECTED] wrote: > I'm also looking for a MySQLdb binary for windows. This is holding me > from upgrading from Python 2.4 to Python 2.5 ! > If you search the Help Forum of the MySQLdb project on SourceForge, you will find a couple of people who have successfully built MySQLdb on Windows

Re: MySQLdb for Python 2.5

2006-09-30 Thread Jan Dries
Martin v. Löwis wrote: > Harold Trammel schrieb: >> Does anyone know the status of a version of MySQLdb that will work with >> Python 2.5? > > AFAICT, MySQLdb 1.2.1 builds and works just fine. > Does anyone know if Windows binaries for 2.5 are available somewhere? Regards, Jan -- http://mail

Re: XSLT speed comparisons

2006-09-28 Thread Jan Dries
Larry Bates wrote: > Damian wrote: [...] > > What I've got is: > > two websites, one in ASP.NET v2 and one in Python 2.5 (using 4suite for > > XML/XSLT) > > both on the same box (Windows Server 2003) > > both using the same XML, XSLT, CSS > > > > The problem is, the Python version is (at a guess) a

Re: SSL meta data

2006-09-25 Thread Jan Dries
Paul Rubin wrote: > "BerndWill" <[EMAIL PROTECTED]> writes: >> I would love to read programmatically some information out of the >> certificates itself (who signed it and what is the validation period, i.e. >> meta data). >> >> Can someone please help me out here !? > > This is very cheesy but

Re: lxml Windows binaries

2006-09-14 Thread Jan Dries
Stefan Behnel wrote: > Jan Dries wrote: >> I'm trying to find Windows binaries for lxml. The cheeseshop is supposed >> to have such binaries, but I can't find them. >> Does anyone know where I might find such binaries? > > http://cheeseshop.python.org/pypi/l

Re: lxml Windows binaries

2006-09-14 Thread Jan Dries
Fuzzyman wrote: > Jan Dries wrote: >> I'm trying to find Windows binaries for lxml. The cheeseshop is supposed >> to have such binaries, but I can't find them. >> Does anyone know where I might find such binaries? >> > > The lxml install docs point

lxml Windows binaries

2006-09-14 Thread Jan Dries
I'm trying to find Windows binaries for lxml. The cheeseshop is supposed to have such binaries, but I can't find them. Does anyone know where I might find such binaries? Thanks, Jan -- http://mail.python.org/mailman/listinfo/python-list

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-20 Thread Jan Dries
Ilias Lazaridis wrote: they above 2 questions are coherent, thus answering isolated [as you've done] makes not much sense. " >> Should I take answers serious? >> Answer from people which do not respect coherence of writings? " Except that the quote here above is NOT what was in your original p

Re: Pypy - Which C modules still need converting to py?

2005-02-08 Thread Jan Dries
Caleb Hattingh wrote: Anyone have that page ref handy listing the C modules that the pypy team need translated into python? http://codespeak.net/pypy/index.cgi?doc/cmodules.html Regards, Jan -- http://mail.python.org/mailman/listinfo/python-list

Re: [EVALUATION] - E01: The Java Failure - May Python Helps?

2005-02-04 Thread Jan Dries
Fredrik Lundh wrote: Markus Wankus wrote: Google his name - he has been banned from Netbeans and Eclipse (and Hibernate, and others...) for good reason. Can you imagine how much of a Troll you need to be to *actually* get "banned" from the newsgroups of open source projects such as those? have P

Re: Zen of Python

2005-01-19 Thread Jan Dries
Luke Skywalker <[EMAIL PROTECTED]> schreef: > On Wed, 19 Jan 2005 14:13:47 -0500, Timothy Fitz > > While I agree that the Zen of Python is an amazingly concise list > > of truisms, I do not see any meaning in: > > For those interested, here's the list: > http://www.python.org/doc/Humor.html#zen

Re: Solutions for data storage?

2005-01-18 Thread Jan Dries
Leif K-Brooks <[EMAIL PROTECTED]> schreef: > > I've looked at SQLObject, and it's very nice, but it doesn't > provide certain features I really want, like the ability to store > lists of strings or integers directly in the database (using commas > in a varchar column or something). What exactly

Re: Integration with java (Jpype vs. JPE)

2005-01-17 Thread Jan Dries
Istvan Albert wrote: Now I remember visiting this site, but never understood how it actually worked. Examples such as: from jpype import * startJVM("d:/tools/j2sdk/jre/bin/client/jvm.dll", "-ea") java.lang.System.out.println("hello world") shutdownJVM() in three different versions are the only code

Re: Another look at language comparisons

2005-01-08 Thread Jan Dries
[EMAIL PROTECTED] wrote: From the web site: "Why Microsoft can Blow-Off with C#? These people have thought up programming languages Fortran, Prologue, Ada." The author is ignorant. Fortran was invented by IBM in the late 1950s, long before Microsoft existed. Ada was commissioned by the U.S. Departm

Re: Any Python XML Data Binding Utilities Avaiable?

2004-12-31 Thread Jan Dries
SeSe wrote: Hi, every one, happy new year! I am working on XML with Python. I wonder if there is any XML Schema<-> Python Object mapping tools so that we can convert one to another. Thanks. You may want to look at generateDS. It can generate Python data structures from an XML Schema document. It

Re: BASIC vs Python

2004-12-21 Thread Jan Dries
Andrew Dalke wrote: Jan Dries If you just want to play notes, you could look at MIDI. [snip] It's hard to compare that to the current era. Sound clips are much more common, it's easy to record audio, keyboards and other specialized devices are cheap, and there's plenty of mixe

Re: MIDI library recommendations, please?

2004-12-20 Thread Jan Dries
Andrew Koenig wrote: Are there widely used and recommended Python libraries that will let me 1) Interpret and generate MIDI messages easily? I'm not sure this is "widely used and recommended" but I've used the following in the past: http://sgce.cbse.uab.edu/SoundOfSequence/midi/midi.py It's s

Re: BASIC vs Python

2004-12-19 Thread Jan Dries
Andrew Dalke wrote: [snip] It looks like FMOD/PySonic is the closest to what I'm thinking of, and Snack coming in second. I didn't look too deeply. Most of them only play sound clips (mp3, wav, etc.) and don't have a way to specify what notes to play. If you just want to play notes, you could loo

Re: BASIC vs Python

2004-12-18 Thread Jan Dries
Michael Hoffman wrote: Gregor Horvath wrote: > Or make any given standard python object accessible from MS Excel in 2 > minutes. from win32com.client import Dispatch xlApp = Dispatch("Excel.Application") xlApp.Visible = 1 xlApp.Workbooks.Add() xlApp.ActiveSheet.Cells(1,1).Value = 'Python Rules!'

Re: Accessing DB2 with Python

2004-12-16 Thread Jan Dries
Shawn Milo wrote: Is anyone doing this? I would like to access a DB2 database (IBM's database) with Python. I checked "Python in a Nutshell," and it refers to ftp://people.linuxkorea.co.kr/pub/db2, but I am unable to connect to that site, although it could be a firewall issue, as I am at work.

Re: [OT] Re: SysLogHandler is drivin me nuts PEBCAC

2004-11-30 Thread Jan Dries
[Jan Dries] > Slightly OT, but regarding the title, shouldn't it be PEBKAC, > since it's > keyboard and not ceyboard? [Vinay Sajip] > PEBCAC: Problem Exists Between Chair And Computer Interesting. I thought it was "Problem Exists Between Keyboard And Chair"

[OT] Re: SysLogHandler is drivin me nuts PEBCAC

2004-11-29 Thread Jan Dries
Slightly OT, but regarding the title, shouldn't it be PEBKAC, since it's keyboard and not ceyboard? Regards, Jan michael wrote: Vinay Sajip <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... michael wrote: Yep it was incomplete heres the complete config as it has to be [config file