Re: merits of Lisp vs Python

2006-12-12 Thread Espen Vestre
Paul Rubin writes: > Robert Brown <[EMAIL PROTECTED]> writes: > > Does this make Lisp "less dynamic" than Python? Espen would say it's not > > less dynamic, but rather that a similar level of dynamism is achieved in > > Common Lisp via well defined interfaces. The com

Re: alternate language

2006-12-12 Thread Hendrik van Rooyen
"Bryan" <[EMAIL PROTECTED]> wrote: > what is a good alternate language to learn? i just want something to expand > my mind and hopefully reduce or delay any chance of alzheimer's. i would > especially like to hear from those of you who learned python _before_ these > languages. > > haskell, erlan

Error

2006-12-12 Thread dominis
Your message was undeliverable due to the following reason: Your message was not delivered because the destination server was unreachable within the allowed queue period. The amount of time a message is queued before it is returned depends on local configura- tion parameters. Most likely there is

Re: merits of Lisp vs Python

2006-12-12 Thread Juan R.
Rob Thorpe ha escrito: > Juan R. wrote: > > Ken Tilton ha escrito: > > > You missed it? Google fight: > > > > > >http://www.googlefight.com/index.php?lang=en_GB&word1=Python&word2=Ruby > > > > > > Python wins, 74 to 69.3. And there is no Monty Ruby to help. > > > > > > ken > > > > Nice animati

Re: merits of Lisp vs Python

2006-12-12 Thread I V
On Mon, 11 Dec 2006 23:24:07 -0500, Ken Tilton wrote: > Also, Python does not support a functional style of programming so the > line is the only meaningful textual entity. In this sense the > primitiveness of Python makes editing easier. Why do you say that? Wouldn't a block in python be a "mea

Re: merits of Lisp vs Python

2006-12-12 Thread Pekka Karjalainen
In article <[EMAIL PROTECTED]>, Paul Rubin wrote: >Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> writes: >> So there seems to be something macro-like for Haskell. > >I think that's some kind of proposed or experimental Haskell feature, >not in the current standard, but I'm not sure. I'm barely even

Re: merits of Lisp vs Python

2006-12-12 Thread I V
On Sun, 10 Dec 2006 03:18:07 -0500, Bill Atkins wrote: > We're not counting lines here, you goon. We're talking about how > expressive constructs are and how closely they match your concept of > what you want to do. The conditional example is lower-level; you're > talking to the interpreter inste

Re: merits of Lisp vs Python

2006-12-12 Thread Juan R.
Kay Schluehr ha escrito: > Juan R. wrote: > > > Kay Schluehr ha escrito: > > > Note also that a homogenous syntax is not that important when > > > analyzing parse trees ( on the contrary, the more different structures > > > the better ) but when synthesizing new ones by fitting different > > > fr

Re: How do I edit a PythonWin path to import custom built modules???

2006-12-12 Thread mohan
BartlebyScrivener wrote: > mohan wrote: > > > I had created my own modules (.py files) in > > drives and folders other than the python root. > > Probably easiest if you keep them all in one place. Then add that > "place" to your path by going into Control > Panel|System|Advanced|Environment Variab

ANN: BayPIGgies, Thu 12/14 7:30-9p, Mtn View

2006-12-12 Thread wesley chun
reminder that we have a "lite" meeting this thursday evening at Google. it is a meet-n-greet event, almost a "long random access" session where folks introduce themselves, mingle/network, discuss common interests, and get to know one another in the community. we may discuss any number of current t

Re: merits of Lisp vs Python

2006-12-12 Thread Juan R.
Kaz Kylheku ha escrito: > Kay Schluehr wrote: > > Juan R. wrote: > > > A bit ambiguous my reading. What is not feasible in general? Achieving > > > compositionality? > > > > Given two languages L1 = (G1,T1), L2 = (G2, T2 ) where G1, G2 are > > grammars and T1, T2 transformers that transform sourc

Re: Tarfile .bz2

2006-12-12 Thread Yu-Xi Lim
Jordan wrote: > So that would explain why a tar.bz2 archive can't be appended to > wouldn't it... And also explain why winrar was so slow to open it (not > something I mentioned before, but definitely noticed). I had wondered > what it was that made bz2 so much better at compression than zip and

Re: Tarfile .bz2

2006-12-12 Thread Yu-Xi Lim
Martin v. Löwis wrote: > Well, .jpg files are already compressed in a lossy way (.jpg is > inherently lossy); to compress it further, you need to increase > the loss. PNG is also compressed already, see Not really. Stuffit has a JPEG compressor which takes advantage of the fact that the JPEG algor

Re: Avoiding "invalid literal for int()" exception

2006-12-12 Thread Peter Otten
Marc 'BlackJack' Rintsch wrote: > In <[EMAIL PROTECTED]>, Gabriel > Genellina wrote: > >> At Monday 11/12/2006 07:22, [EMAIL PROTECTED] wrote: >> >>>elif int(uniList[0]) in range(0,10): >> >> Either of these will work to avoid an unneeded conversion: >> >> elif uniList[0] in "0123456789": >>

Re: merits of Lisp vs Python

2006-12-12 Thread Juan R.
greg ha escrito: > From another angle, think about what a hypothetical > Python-to-Lisp translator would have to do. It couldn't > just translate "a + b" into "(+ a b)". It would have > to be something like "(*python-add* a b)" where > *python-add* is some support function doing all the > dynami

One module per class, bad idea?

2006-12-12 Thread Matias Jansson
I come from a background of Java and C# where it is common practise to have one class per file in the file/project structure. As I have understood it, it is more common practice to have many classes in a Python module/file. What is the motivation behind it, would it be a bad idea to have a guide

Re: Can't register to CheeseShop at command line...only on web?!..

2006-12-12 Thread Richard Jones
[EMAIL PROTECTED] wrote: > I created $HOME/.pypirc with this: > [server-login] > username:seberino > password:SECRET > > but I can still only do CheeseShop tasks at web interface. > > Here is what happens when I try to register at command line with > .pypirc above... > > Using PyPI login from /h

how can I block a thread until some other thread finished?

2006-12-12 Thread bearsprite
I start a thread A. In A, I start thread B,C,D,... How can I block A until B,C,D,...(All the thread started by A) finished? -- http://mail.python.org/mailman/listinfo/python-list

Re: merits of Lisp vs Python

2006-12-12 Thread greg
[EMAIL PROTECTED] wrote: > Does the word "TRONDANT" hold some special meaning for you? Er, no, in fact my brain raises a KeyError on it. Is it supposed to mean anything? -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: how can I block a thread until some other thread finished?

2006-12-12 Thread bearsprite
I think I need some implement like win32 API WaitForMultiObject. -- http://mail.python.org/mailman/listinfo/python-list

Re: Tarfile .bz2

2006-12-12 Thread Fredrik Lundh
Martin v. Löwis wrote: > Well, .jpg files are already compressed in a lossy way (.jpg is > inherently lossy); to compress it further, you need to increase > the loss. or use a better algorithm, such as JPEG 2000 or Microsoft's HD Photo, which both give better visual quality at lower bit rates (w

Re: merits of Lisp vs Python

2006-12-12 Thread Kay Schluehr
Juan R. schrieb: > > Given two languages L1 = (G1,T1), L2 = (G2, T2 ) where G1, G2 are > > grammars and T1, T2 transformers that transform source written in L1 or > > L2 into some base language > > L0 = (G0, Id ). Can G1 and G2 be combined to create a new grammar G3 > > s.t. the transformers T1 an

Re: One module per class, bad idea?

2006-12-12 Thread billie
> would it be a bad idea to have a guideline > in your project that promotes a one class per file structure (assuming most > of the programmers a background similar to mine)? Yes, it would be a bad idea. =) -- http://mail.python.org/mailman/listinfo/python-list

Re: merits of Lisp vs Python

2006-12-12 Thread Kay Schluehr
I V schrieb: > One of the things I've always found off-putting about lisp as that all the > syntax looks the same. In Algol-derived languages, each syntactic > construct has a fairly distinctive appearance, so when, for instance, I > encounter a for loop, I can quickly recognize that that's what i

Re: One module per class, bad idea?

2006-12-12 Thread Fredrik Lundh
Matias Jansson wrote: > I come from a background of Java and C# where it is common practise to have > one class per file in the file/project structure. As I have understood it, > it is more common practice to have many classes in a Python module/file. even more important is that in Python, you

Re: Password, trust and user notification

2006-12-12 Thread Gabriel Genellina
placid ha escrito: > I was going to write this script for a friend that notifies him via > logging onto his Gmail account and sending him an email to his work > email about some events occurring in the execution of the script. > If you enter your password into a script as input how can someone tru

Re: How do I edit a PythonWin path to import custom built modules???

2006-12-12 Thread Gabriel Genellina
mohan ha escrito: > > > I had created my own modules (.py files) in > > > drives and folders other than the python root. > > > I tried your advice, by adding a new path to the "System Variable" > section. It still does not work. I don't understand how could PythonWin There was an error in a previ

Re: Avoiding "invalid literal for int()" exception

2006-12-12 Thread Gabriel Genellina
Marc 'BlackJack' Rintsch ha escrito: > In <[EMAIL PROTECTED]>, Gabriel > Genellina wrote: > > > elif uniList[0].isdigit(): > > The last does not work. Not only that it accepts numbers greater than 9 > because it checks if the whole string consists of digits, it also accepts > u'²₂' and other unic

Re: Avoiding "invalid literal for int()" exception

2006-12-12 Thread Fredrik Lundh
Gabriel Genellina wrote: >>> elif uniList[0].isdigit(): >> >> The last does not work. Not only that it accepts numbers greater than 9 >> because it checks if the whole string consists of digits, it also accepts >> u'²₂' and other unicode digits. > > Oh, I didn't know that last part! Thanks. > I

Re: merits of Lisp vs Python

2006-12-12 Thread Pascal Costanza
I V wrote: > One of the things I've always found off-putting about lisp as that all the > syntax looks the same. In Algol-derived languages, each syntactic > construct has a fairly distinctive appearance, so when, for instance, I > encounter a for loop, I can quickly recognize that that's what it

Re: One module per class, bad idea?

2006-12-12 Thread Fuzzyman
Matias Jansson wrote: > I come from a background of Java and C# where it is common practise to have > one class per file in the file/project structure. As I have understood it, > it is more common practice to have many classes in a Python module/file. > What is the motivation behind it, would it b

Re: One module per class, bad idea?

2006-12-12 Thread Andy Dingley
Matias Jansson wrote: > I come from a background of Java and C# where it is common practise to have > one class per file in the file/project structure. Don't confuse packages and files. Java commonly splits a package across many files, Python binds a module to a single file. If you see "Java pa

Re: merits of Lisp vs Python

2006-12-12 Thread Paul Rubin
Espen Vestre <[EMAIL PROTECTED]> writes: > > I'd say Python is more dynamic in the sense that the Python runtime > > system has to actually concern itself about the dynamism all the time > > in practice, i.e. on every object method invocation. > > Ok, but when you state that language A is more d

Re: merits of Lisp vs Python

2006-12-12 Thread Paul Rubin
I V <[EMAIL PROTECTED]> writes: > > Also, Python does not support a functional style of programming so the > > line is the only meaningful textual entity. In this sense the > > primitiveness of Python makes editing easier. > > Why do you say that? Wouldn't a block in python be a "meaningful text

Re: merits of Lisp vs Python

2006-12-12 Thread Paul Rubin
Pascal Costanza <[EMAIL PROTECTED]> writes: > May you have tried the wrong Lisp dialects so far: > > (loop for i from 2 to 10 by 2 >do (print i)) The loop language is so complicated and confusing that I never bothered trying to learn it. I always used simpler primitives to write loops an

Emulate @classmethod using decorator and descriptor

2006-12-12 Thread WaterWalk
Hello, I was recently learning python decorator and descriptor and emulated a @classmethod decorator: class EmuClassMethod(object): def __init__(self, f=None): self.f = f def __get__(self, obj, klass=None): if klass is None: klass = type(obj) def wrapped(

Re: About alternatives to Matlab

2006-12-12 Thread Jon Harrop
Paul Rubin wrote: > Well, work is already under way (already mentioned) to implement > Python in Python, including a reasonable compiler (Psyco). > > The big deficiency of MLton from a concurrency perspective is > inability to use multiprocessors. Of course CPython has the same > deficiency. Sam

Re: merits of Lisp vs Python

2006-12-12 Thread Espen Vestre
Paul Rubin writes: > I think the Lispies see "more dynamism" as a good thing Sure... > I mean "dynamic" in a less good way-- there is a huge amount of > state scattered all through a running Python program, that the > application can modify at random and whose content

Re: merits of Lisp vs Python

2006-12-12 Thread Pascal Costanza
Paul Rubin wrote: > Pascal Costanza <[EMAIL PROTECTED]> writes: >> May you have tried the wrong Lisp dialects so far: >> >> (loop for i from 2 to 10 by 2 >>do (print i)) > > The loop language is so complicated and confusing that I never > bothered trying to learn it. You can start with lo

Re: merits of Lisp vs Python

2006-12-12 Thread Stephen Eilert
Greg Johnston escreveu: > Stephen Eilert wrote: > > So, let's suppose I now want to learn LISP (I did try, on several > > occasions). What I would like to do would be to replace Python and code > > GUI applications. Yes, those boring business-like applications that > > have to access databases an

How to upload a file

2006-12-12 Thread Lad
Users needs to upload big files upto 100MB.So I think that FTP protocol would be a solution, but how can I allow users to select the right file ,on their local disk, via a file dialog ? Thank you for your ideas L. -- http://mail.python.org/mailman/listinfo/python-list

Re: Emulate @classmethod using decorator and descriptor

2006-12-12 Thread Dustan
WaterWalk wrote: > Hello, I was recently learning python decorator and descriptor and > emulated a @classmethod decorator: > class EmuClassMethod(object): > def __init__(self, f=None): > self.f = f > def __get__(self, obj, klass=None): > if klass is None: >klass

py-ldap question

2006-12-12 Thread Laszlo Nagy
Hello, I'm using the ldap module under Windows. This is the error that I get: import ldap l = ldap.initialize("ldaps://neptunus.msnet:636") l.simple_bind_s("cn=gandalf,ou=Users,dc=neptunus,dc=msnet","gandalf") l.search_s("ou=AddressBooks,dc=neptunus,dc=msnet", ldap.SCOPE_SUBTREE, "objectclass=

Re: About alternatives to Matlab

2006-12-12 Thread Ramon Diaz-Uriarte
On 12/12/06, Jon Harrop <[EMAIL PROTECTED]> wrote: > Paul Rubin wrote: > > Well, work is already under way (already mentioned) to implement > > Python in Python, including a reasonable compiler (Psyco). > > > > The big deficiency of MLton from a concurrency perspective is > > inability to use multi

Re: merits of Lisp vs Python

2006-12-12 Thread Paul Rubin
Pascal Costanza <[EMAIL PROTECTED]> writes: > You can start with loop by using only the simple and straightforward > constructs, and slowly move towards the more complicated cases when > necessary. The nice thing about loop is that with some practice, you > can write code that more or less reads li

Re: py-ldap question

2006-12-12 Thread Laszlo Nagy
By the way, I already tried the set_option function, but I still get the same error. import ldap import local ldap.set_option(ldap.OPT_X_TLS_ALLOW,1) ldap.set_option(ldap.OPT_X_TLS_REQUIRE_CERT,0) ldap.set_option(ldap.OPT_X_TLS_CERTFILE,local.LDAP_CACERTFILE) ldap.set_option(ldap.OPT_X_TLS_CACE

Re: Python Plugin for Web Browser

2006-12-12 Thread Sébastien Ramage
pour ceux que ça intéresse http://base.google.com/base/a/1438658/D18001067256043490325 -- http://mail.python.org/mailman/listinfo/python-list

Re: About alternatives to Matlab

2006-12-12 Thread Konrad Hinsen
On Dec 11, 2006, at 14:21, Jon Harrop wrote: > F# runs under Linux with Mono. Well, then it should also run on my Mac... Do you have any experience with performance of numerical code under Mono, or, for that matter, under .NET? I suspect that the JIT compilers were not written with number c

Re: merits of Lisp vs Python

2006-12-12 Thread Pascal Costanza
Paul Rubin wrote: > Pascal Costanza <[EMAIL PROTECTED]> writes: >> You can start with loop by using only the simple and straightforward >> constructs, and slowly move towards the more complicated cases when >> necessary. The nice thing about loop is that with some practice, you >> can write code th

Re: paramiko public key

2006-12-12 Thread hg
[EMAIL PROTECTED] wrote: > paramiko http://www.lag.net/paramiko/docs/ __str__ ? -- http://mail.python.org/mailman/listinfo/python-list

Re: merits of Lisp vs Python

2006-12-12 Thread Ken Tilton
Pascal Costanza wrote: > Paul Rubin wrote: > >> Pascal Costanza <[EMAIL PROTECTED]> writes: >> >>> May you have tried the wrong Lisp dialects so far: >>> >>> (loop for i from 2 to 10 by 2 >>>do (print i)) >> >> >> The loop language is so complicated and confusing that I never >> bothered

Re: Sorting Multidimesional array(newbie)

2006-12-12 Thread Robert Kern
Fredrik Lundh wrote: > also note the OP didn't specify what to do for records where the first > column was identical, so I guess a plain sort() call, without any custom > compares or mappings, would work as well as the fancier alternatives... If the OP had lists of lists, yes. However, he seems

Re: merits of Lisp vs Python

2006-12-12 Thread Ken Tilton
Paul Rubin wrote: > Pascal Costanza <[EMAIL PROTECTED]> writes: > >>You can start with loop by using only the simple and straightforward >>constructs, and slowly move towards the more complicated cases when >>necessary. The nice thing about loop is that with some practice, you >>can write code t

Re: problem while going through a tutorial

2006-12-12 Thread Ralf Schönian
Simon Schuster schrieb: [..] x = "fljshfjh" x > 'fljshfjh' count(x, 'h') > Traceback (most recent call last): > File "", line 1, in ? > NameError: name 'count' is not defined > > I'm not sure what changed, because it used to work. anyhow thanks a lot! You forgot to import the stri

Re: What are python closures realy like?

2006-12-12 Thread Roy Smith
John Nagle <[EMAIL PROTECTED]> wrote: > Most of the examples given here are kind of silly, but closures have > real uses. I used one today in Javascript because I was writing an > AJAX application, and I was using an API, the standard XMLHttpRequestObject, > which required a callback function

Updating variables indirectly

2006-12-12 Thread Tommy Grav
I have a little problem that look something like this: Python 2.4.4 (#1, Oct 18 2006, 10:34:39) [GCC 4.0.1 (Apple Computer, Inc. build 5341)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> class test: pass ... >>> test.a = 1 >>> test.b = 2 >>> for x in [test.

Re: How to do a Http HEAD requests

2006-12-12 Thread Gerard Flanagan
Soni Bergraj wrote: > Hello list, > I was just wondering if there is a more convenient way of doing a Http > HEAD requests then the socket module? > > Any ideas? I recently used this: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/286225 Gerard -- http://mail.python.org/mailman/list

Re: Tkinter button doesn't appear in OS X

2006-12-12 Thread Kevin Walzer
crystalattice wrote: > Kevin Walzer wrote: >> What version of Tk are you running? I've seen this bug on old versions >> of Tk (i.e. 8.4.7) but not recently. >> >> -- >> Kevin Walzer >> Code by Kevin >> http://www.codebykevin.com > > I'm using Python 2.4.2, which I believe is the default version fo

Re: merits of Lisp vs Python

2006-12-12 Thread Jon Harrop
Stephen Eilert wrote: > So, let's suppose I now want to learn LISP (I did try, on several > occasions). What I would like to do would be to replace Python and code > GUI applications. Yes, those boring business-like applications that > have to access databases and consume those new-fangled web-serv

Re: merits of Lisp vs Python

2006-12-12 Thread Rob Thorpe
Paul Rubin wrote: > Pascal Costanza <[EMAIL PROTECTED]> writes: > Yes; I'd rather go by what the standard says than rely on > implementation-dependent hacks. But in that case what do you call Python? The whole language has no standard - is it an "implementation dependent hack"? Standards are us

Re: How to do a Http HEAD requests

2006-12-12 Thread Fredrik Lundh
Soni Bergraj wrote: > I was just wondering if there is a more convenient way of doing a Http > HEAD requests then the socket module? quick version: >>> import urllib2 >>> request = urllib2.Request("http://www.python.org";) >>> request.get_method = lambda: "HEAD" >>> http_file = urllib2.urlopen(r

Re: comparing two IP addresses and the underlying machine

2006-12-12 Thread Tim Chase
> I've been trying to figure this one out for some time but > with no success. I have a machine with two network > interfaces, each with their own IP address and it's own > domain, for example: > - ipA on machineA.domainA > - ipB on machineB.domainB > > Given any pair of IPs or hostnames (

Re: Inheritance doesn't work

2006-12-12 Thread Fredrik Lundh
John Salerno wrote: > Well, I can't say I was surprised, but my main (subtle, understated, > sneaky) point was how do you expect anyone to help you when you aren't > even giving us the proper information that produces the error? I've stopped trying to make that point; I just apply a basic error c

Re: merits of Lisp vs Python

2006-12-12 Thread Alexandre Vassalotti
"There are only two kinds of languages: the ones people complain about and the ones nobody uses" -- Bjarne Stroustrup http://www.googlefight.com/index.php?word1=%22Python+sucks%22&word2=%22Ruby+sucks%22 According to the rule, Python is more popular. On the other side, Java squashes us. (http://w

Re: merits of Lisp vs Python

2006-12-12 Thread Jon Harrop
Michael Livshin wrote: > Paul Rubin writes: >> Nobody seems to concerned that Haskell lacks macros. What's up with >> that? > > Haskell is lazy, so it doesn't need macros Outside Lisp, macros are for syntax. Evaluation semantics (e.g. lazy evaluation) then have nothing

Re: How do I edit a PythonWin path to import custom built modules???

2006-12-12 Thread BartlebyScrivener
Gabriel Genellina wrote: > > There was an error in a previous post, you should create a variable > called PYTHONPATH, not change the system PATH. > Or, group your modules into packages and put them below > lib\site-packages. > Perhaps your way works also, but I have no PythonPath defined in syste

Re: merits of Lisp vs Python

2006-12-12 Thread Jon Harrop
Pascal Costanza wrote: > Paul Rubin wrote: >> Yes; I'd rather go by what the standard says than rely on >> implementation-dependent hacks. > > You shouldn't limit yourself to what some standard says. You shouldn't ignore previous work and standards can embody decades of programming language resea

Re: os.popen3 hangs in Windows XP SP1, SP2. Python 2.5 & 2.4. Consistent test case.

2006-12-12 Thread Thomas Guettler
Pierre Rouleau wrote: > Hi all, > > I have a consistent test case where os.popen3() hangs in Windows. The > system hangs when retrieving the lines from the child process stdout. > I know there were several reports related to os.popen3() hanging under > Windows in this group before. I had a probl

RE: wxPython, dynamically modify window

2006-12-12 Thread Bell, Kevin
I think that you'll just need to change the frame size property when you hit your checkbox... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Grant Sent: Tuesday, December 12, 2006 12:02 AM To: python-list@python.org Subject: wxPython, dynamically modify

Sybase module 0.38pre1 released

2006-12-12 Thread Sébastien Sablé
WHAT IS IT: The Sybase module provides a Python interface to the Sybase relational database system. It supports all of the Python Database API, version 2.0 with extensions. MAJOR CHANGES SINCE 0.37: * This release works with python 2.5 * It also works with sybase 15 * It works with 64bits cli

Re: merits of Lisp vs Python

2006-12-12 Thread André Thieme
Paul Rubin schrieb: > André Thieme <[EMAIL PROTECTED]> writes: >>> import module >>> module.function = memoize(module.function) >> Yes, I mentioned that a bit earlier in this thread (not about the >> "during runtime" thing). >> I also said that many macros only save some small bits of code. >> Your

Re: merits of Lisp vs Python

2006-12-12 Thread Jon Harrop
jayessay wrote: > Fair enough. But really, I don't see any of these things as > particularly "modern" (whatever that means) or groundbreaking. > Certainly not at this point. Performance and type theory are modern in the context of FPLs. Both have been retrofitted to Lisp with varying results. >

Re: merits of Lisp vs Python

2006-12-12 Thread Jon Harrop
Paul Rubin wrote: > Are there any Lisp devotees who have done serious development in ML? There is a disproportionately small overlap between the Lisp/Scheme and ML/Haskell communities. They are probably of comparable size at the moment. I believe the difference is largely geographical. -- Dr Jon

Reference to base namespace in a class.

2006-12-12 Thread David
Hi, I'm working on a project where we're juggling with two potential implementations. In the two scenarios, we create objects in the base namespace. These objects are interdependent, in the sense that to compute something, they have to look up the value of the other objects (their parents). The obj

Re: oo problem

2006-12-12 Thread Tool69
Dennis Lee Bieber a écrit : > On 10 Dec 2006 03:47:21 -0800, "Tool69" <[EMAIL PROTECTED]> > declaimed the following in gmane.comp.python.general: > > > Thanks for your answers, > > I though about the first solution too, but I've redundant code, say ie: > > p = Paper(100,200) > > p.draw( Rectangle

Embedding a shell / editor in a wxPython application

2006-12-12 Thread hg
Hi, Are there modules out there (ex: scintilla for editor ...) ? Thanks hg -- http://mail.python.org/mailman/listinfo/python-list

Validate XML against a set of XSD files, with Python

2006-12-12 Thread Laszlo Nagy
Do you know an open source lib that can do $subject? Thanks, Laszlo -- http://mail.python.org/mailman/listinfo/python-list

Re: About alternatives to Matlab

2006-12-12 Thread Jon Harrop
Konrad Hinsen wrote: > Well, then it should also run on my Mac... Do you have any experience > with performance of numerical code under Mono, or, for that matter, > under .NET? I suspect that the JIT compilers were not written with > number crunching in mind, but perhaps I am wrong. Actually, F# s

Re: object data member dumper?

2006-12-12 Thread George Sakkis
tom arnall wrote: > >object data member dumper? > >George Sakkis george.sakkis at gmail.com > >Wed Nov 8 03:42:47 CET 2006 > > > tom arnall wrote: > > > > > Bruno Desthuilliers wrote: > > > > > > > tom arnall a écrit : > > > >> does anyone know of a utility to do a recursive dump of object data > >

Re: merits of Lisp vs Python

2006-12-12 Thread Christophe
André Thieme a écrit : > Paul Rubin schrieb: >> André Thieme <[EMAIL PROTECTED]> writes: import module module.function = memoize(module.function) >>> Yes, I mentioned that a bit earlier in this thread (not about the >>> "during runtime" thing). >>> I also said that many macros only save s

Re: merits of Lisp vs Python

2006-12-12 Thread Robert Uhl
Mathias Panzenboeck <[EMAIL PROTECTED]> writes: > > I do not know much about Lisp. What I know is: > > Python is a imperative, object oriented dynamic language with duck > typing, List is a declarative, functional dynamic language -> those > two languages have different scopes. Common Lisp is an o

Re: merits of Lisp vs Python

2006-12-12 Thread Jon Harrop
André Thieme wrote: > Well, macros are one (big) thing that Lisp has and which many other > languages don't have. Their are other things too, and some of them are > in Python as well, which is a very nice scripting language. I think s-exprs and EVAL are the main things that Lisp has and that other

Re: merits of Lisp vs Python

2006-12-12 Thread Jon Harrop
André Thieme wrote: > I think you could do that with functional programming. > You can protect the evaluation by encapsulating the args in a function > object? > > def f_Args(x): >return x > > def g_Args(x): >return x > > and then > a = cond(test, f, g, f_Args(x), g_Args(x)) > > if you

Re: merits of Lisp vs Python

2006-12-12 Thread Paul Rubin
"Rob Thorpe" <[EMAIL PROTECTED]> writes: > > Yes; I'd rather go by what the standard says than rely on > > implementation-dependent hacks. > > But in that case what do you call Python? The whole language has no > standard - is it an "implementation dependent hack"? This is one of my perpetual co

Re: merits of Lisp vs Python

2006-12-12 Thread Paul Rubin
Ken Tilton <[EMAIL PROTECTED]> writes: > >> The loop language is so complicated and confusing that I never > >> bothered trying to learn it. > > That was my stance for about seven years of intense Lisp. Then the > author of Practical Common Lisp did a nice job of breaking the whole > mess up into

Re: merits of Lisp vs Python

2006-12-12 Thread Jon Harrop
André Thieme wrote: >> Contrast the much more common >> >> a[i] = b[n] >> >> with >> >> (setf (aref a i) (aref b n)) >> >> and the attractions of Python may make more sense. > > Here Python and Lisp are equal, 7 tokens vs 7 tokens, but in Python > one has to write less since "[]" are 2 cha

Re: merits of Lisp vs Python

2006-12-12 Thread Robert Uhl
Bjoern Schliessmann <[EMAIL PROTECTED]> writes: > >> Note also that after any amount of dicing I simply hit a magic key >> combo and the editor reindents everything. In a sense, Lisp is the >> language that handles indentation best. > > Erm ... because there's an editor for it that indents automati

Re: comparing two IP addresses and the underlying machine

2006-12-12 Thread Ratko Jagodic
By the same physical machine I meant one OS using two interfaces and multiple IP addresses mapped to different interfaces. I figured there wouldn't be a direct solution to this so each time I will send all IP addresses to the "match maker" so I can make comparisons and that should work. Thanks for

Re: merits of Lisp vs Python

2006-12-12 Thread Jon Harrop
Bill Atkins wrote: > Despite its dynamism, Lisp is quite compilable. For example, I can > redefine classes, functions, macros, etc. at runtime and compiled code > referring to the old code will still work. You are conflating > dynamism with interpretedness, and that's incorrect. There is clearly

Re: merits of Lisp vs Python

2006-12-12 Thread Pillsy
Ken Tilton wrote: [...] > That was my stance for about seven years of intense Lisp. Then the > author of Practical Common Lisp did a nice job of breaking the whole > mess up into sensible chunks and I picked it up. If one programs Lisp, > one should learn Loop -- it is definitely worth the bother.

Re: About alternatives to Matlab

2006-12-12 Thread Filip Wasilewski
Jon Harrop wrote: > Filip Wasilewski wrote: > > Besides of that this code is irrelevant to the original one and your > > further conclusions may not be perfectly correct. Please learn first > > about the topic of your benchmark and different variants of wavelet > > transform, namely difference betw

Re: How do I edit a PythonWin path to import custom built modules???

2006-12-12 Thread Fredrik Lundh
BartlebyScrivener wrote: > Perhaps your way works also, but I have no PythonPath defined in system > variables on Windows XP. > > I keep my Python scripts and modules in d:\Python. I added d:\Python to > the Path variable and I can call and import the scripts and modules > from anywhere I please.

Re: One module per class, bad idea?

2006-12-12 Thread Paddy
On Dec 12, 8:29 am, "Matias Jansson" <[EMAIL PROTECTED]> wrote: > I come from a background of Java and C# where it is common practise to have > one class per file in the file/project structure. As I have understood it, > it is more common practice to have many classes in a Python module/file. > W

Re: merits of Lisp vs Python

2006-12-12 Thread Robert Uhl
Steven D'Aprano <[EMAIL PROTECTED]> writes: > > Speaking as somebody who programmed in FORTH for a while, that doesn't > impress me much. Prefix/postfix notation is, generally speaking, more > of a pain in the rear end than it is worth, even if it saves you a > tiny bit of thought when pasting code

Re: merits of Lisp vs Python

2006-12-12 Thread Pascal Costanza
Pillsy wrote: > Ken Tilton wrote: > [...] >> That was my stance for about seven years of intense Lisp. Then the >> author of Practical Common Lisp did a nice job of breaking the whole >> mess up into sensible chunks and I picked it up. If one programs Lisp, >> one should learn Loop -- it is definit

Re: merits of Lisp vs Python

2006-12-12 Thread Petter Gustad
Robert Uhl <[EMAIL PROTECTED]> writes: > that for can understand new objects; CL LOOP is not extensible, unless I > have missed something big, but it's simple enough to write a > map-new-object or loop-new-object or whatever). There is no standard way to extend loop, but most of the major vendors

Re: Can't register to CheeseShop at command line...only on web?!..

2006-12-12 Thread [EMAIL PROTECTED]
> > Here is what happens when I try to register at command line with > > .pypirc above... > > > > Using PyPI login from /home/seb/.pypirc > > Server response (401): Authorization Required > > Do you use a proxy to access the web? Not that I'm aware of unless my job uses one without my knowing abo

Re: merits of Lisp vs Python

2006-12-12 Thread Robert Uhl
"HowiPepper" <[EMAIL PROTECTED]> writes: > I have checked out Lisp several times in the past, but I always get > turned off completely by the parenthesis you have to use for > everything. What's up with that anyway? It's no different from having to use newlines and spaces and square brackets and

Re: merits of Lisp vs Python

2006-12-12 Thread Pillsy
Pascal Costanza wrote: > Pillsy wrote: [...] > > When I first read PCL (which was my introduction to Lisp) I thought > > LOOP was really neato. Once I actually started using it for things that > > weren't so simple, I began to really hate it. I think that having a > > specialized mini-language for

Re: merits of Lisp vs Python

2006-12-12 Thread Paul Rubin
jayessay <[EMAIL PROTECTED]> writes: > > It's simply that newer language designs by definition have more of an > > experience base to build on than older ones, if the designers care to > > make use of it. > > Agreed. Indeed, that was the underlying guiding principle in putting > together CL. *ML

  1   2   3   >