Re: merits of Lisp vs Python

2006-12-11 Thread Kay Schluehr
Paul Rubin wrote: > 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 compiler knows the interfaces, >

Re: What are python closures realy like?

2006-12-11 Thread Fredrik Lundh
John Nagle 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 with no arguments.

Re: Sorting Multidimesional array(newbie)

2006-12-11 Thread Fredrik Lundh
Brian Mills wrote: > There's another (IMHO more readable) way to do it if you can afford > defining a short little "compare" function, and telling .sort() > to use that instead of its default: > def myListCmp(lst1, lst2): > ... if lst1[0] < lst2[0]: return -1 > ... if lst2[0] > lst2[0]:

Re: What are python closures realy like?

2006-12-11 Thread John Nagle
Paul Boddie wrote: > I know that everyone will say that Python is a "multi-paradigm" > language and that one should feel free to use whatever technique seems > appropriate to solve the problem at hand, but it seems to me that > there's been an explosion in nested function usage recently, with lots

Re: Sorting Multidimesional array(newbie)

2006-12-11 Thread Brian Mills
There's another (IMHO more readable) way to do it if you can afford defining a short little "compare" function, and telling .sort() to use that instead of its default: >>> def myListCmp(lst1, lst2): ... if lst1[0] < lst2[0]: return -1 ... if lst2[0] > lst2[0]: return 1 ... return 0 ... >>> a

Re: namespace question

2006-12-11 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > This one works. But I suppose there must be a way to artificially > create a new block of code, some thing like this, > > class Test: >c = None ><>: ># Objects created here are local to this scope >a = 1 >b = 2 >global c >

wxPython, dynamically modify window

2006-12-11 Thread Grant
Hi, I am looking for a tip. I have a panel and a checkbox. When I check the checkbox, I would like to add buttons to the panel (dynamically). When the checkbox is unchecked, the buttons should not appear (be deleted)---all the while, the window should resize if necessary. If you have a simpl

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

2006-12-11 Thread Marc 'BlackJack' Rintsch
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": > > elif uniList[0] in string.digits: > > elif u

Re: namespace question

2006-12-11 Thread [EMAIL PROTECTED]
Marc 'BlackJack' Rintsch wrote: > In <[EMAIL PROTECTED]>, > [EMAIL PROTECTED] wrote: > > > class Test: > >a = 1 > >b = 2 > >c = 1+2 > > > > Now, all a,b and c would be directly visible to the user from the > > instance of Test. I am looking for a way to make only c directly > > visible

Re: How to do a Http HEAD requests

2006-12-11 Thread Tim Roberts
Soni Bergraj <[EMAIL PROTECTED]> wrote: > >I was just wondering if there is a more convenient way of doing a Http >HEAD requests then the socket module? > >Any ideas? The standard "httplib" module can do that in a half-dozen lines of code. -- Tim Roberts, [EMAIL PROTECTED] Providenza & Boekelheid

Re: namespace question

2006-12-11 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: > class Test: >a = 1 >b = 2 >c = 1+2 > > Now, all a,b and c would be directly visible to the user from the > instance of Test. I am looking for a way to make only c directly > visible from the instance. Simplest way: class Test: c

Re: possible php convert

2006-12-11 Thread Tim Roberts
Gabriel Genellina <[EMAIL PROTECTED]> wrote: > >At Sunday 10/12/2006 09:36, Dotan Cohen wrote: > >>Hi all, I've been contemplating the switch to python from php. I'm no >>wiz, but I can get my way around with help form the online docs. I see >>that python has much less documentation available, so e

namespace question

2006-12-11 Thread [EMAIL PROTECTED]
Hi , class Test: a = 1 b = 2 c = 1+2 Now, all a,b and c would be directly visible to the user from the instance of Test. I am looking for a way to make only c directly visible from the instance. -- Suresh -- http://mail.python.org/mailman/listinfo/python-list

Re: merits of Lisp vs Python

2006-12-11 Thread Paul Rubin
Robert Brown <[EMAIL PROTECTED]> writes: > Luckily, Willem Broekema has written a Python to Lisp compiler called > clpython that can be consulted to answer questions like these. > > http://trac.common-lisp.net/clpython/ Does this count as a "children of a lesser Python"? How does clpython im

Re: Tarfile .bz2

2006-12-11 Thread Martin v. Löwis
Jordan schrieb: > Not really on topic anymore but what's the method for tar.gz? It works like .tar.bz2, except that it uses gzip (www.gzip.org) as the compression library. The underlying compression algorithm is LZW. > And > even more off the topic, does anyone know a good lossless compression >

Re: merits of Lisp vs Python

2006-12-11 Thread Paul Rubin
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 compiler knows the interfaces, > so it can do a better job

Re: merits of Lisp vs Python

2006-12-11 Thread Kay Schluehr
Kaz Kylheku wrote: > 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 source writt

Re: merits of Lisp vs Python

2006-12-11 Thread Andrew Reilly
On Tue, 12 Dec 2006 16:35:48 +1300, greg wrote: > When a Lisp compiler sees > >(setq c (+ a b)) > > it can reasonably infer that the + is the built-in numeric > addition operator. But a Python compiler seeing > >c = a + b > > can't tell *anything* about what the + means without > knowi

Re: merits of Lisp vs Python

2006-12-11 Thread Kaz Kylheku
Paul Rubin wrote: > 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

Re: merits of Lisp vs Python

2006-12-11 Thread Robert Brown
greg <[EMAIL PROTECTED]> writes: > 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 t

Re: alternate language

2006-12-11 Thread Aahz
In article <[EMAIL PROTECTED]>, Grant Edwards <[EMAIL PROTECTED]> wrote: >On 2006-12-11, Aahz <[EMAIL PROTECTED]> wrote: >> Grant Edwards <[EMAIL PROTECTED]> wrote: >>> >>>There are people who learn another language after learning Python?? >> >> Heh. Taking your post more seriously than it deser

paramiko public key

2006-12-11 Thread eight02645999
hi i downloaded paramiko and was trying to create private/pub key pairs from the docs, i use this method to create private key import paramiko k = paramiko.RSAKey.generate(1024) k.write_private_key_file("test_priv") How do i generate the public key for this ? thanks -- http://mail.python.org/ma

Re: Password, trust and user notification

2006-12-11 Thread Aidan Steele
Hi, As you said yourself -- it's all about trust. If this person knows nothing of programming, then (s)he is obviously at the mercy of the programmers, which is why we have warranties in commerical software, reputuations to uphold in the open source arena and malware elsewhere. ;-) Sure, there wi

Re: merits of Lisp vs Python

2006-12-11 Thread Ken Tilton
greg wrote: > [EMAIL PROTECTED] wrote: > >> So if you guys would just fix >> your language by adding homogeneous syntax and all that it brings with >> it (macros, compilers, etc) we'd be happy to use your version of Lisp, >> and all its great libraries, instead of ours! :-) > > > But if we did

Re: merits of Lisp vs Python

2006-12-11 Thread Ken Tilton
greg wrote: > Bill Atkins wrote: > >> You're missing Ken's point, which is that in Lisp an s-expression >> represents a single concept - I can cut out the second form of an IF >> and know that I'm cutting the entire test-form. > > > For selecting a single form, that's true. For > more than one

Password, trust and user notification

2006-12-11 Thread placid
Hi all, 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 trust the programmer t

Re: merits of Lisp vs Python

2006-12-11 Thread [EMAIL PROTECTED]
greg wrote: > [EMAIL PROTECTED] wrote: > > So if you guys would just fix > > your language by adding homogeneous syntax and all that it brings with > > it (macros, compilers, etc) we'd be happy to use your version of Lisp, > > and all its great libraries, instead of ours! :-) > > But if we did that

Re: problem while going through a tutorial

2006-12-11 Thread John Machin
Simon Schuster wrote: > I'm new to python, and almost new to programming in general. I'm at > http://www.pasteur.fr/formation/infobio/python/ch04.html in that > tutorial, and my 'count' function (if it's called a function?) isn't > working suddenly. > > >>> x = "fljshfjh" > >>> x > 'fljshfjh' > >>

Re: merits of Lisp vs Python

2006-12-11 Thread Greg Johnston
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-ser

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 Robert Brown
"Stephen Eilert" <[EMAIL PROTECTED]> writes: > 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 th

Re: Tarfile .bz2

2006-12-11 Thread Aidan Steele
As far as I know, tar.gz and tar.bz2 files work in exactly the same way, but use different algorithms. That is to say, all the files are 'tarballed' together, then the resulting very long string is run through the gz bz2 algorithm and out pops the compressed file. (These compression algorithms wor

problem while going through a tutorial

2006-12-11 Thread Simon Schuster
I'm new to python, and almost new to programming in general. I'm at http://www.pasteur.fr/formation/infobio/python/ch04.html in that tutorial, and my 'count' function (if it's called a function?) isn't working suddenly. >>> x = "fljshfjh" >>> x 'fljshfjh' >>> count(x, 'h') Traceback (most recent c

Re: merits of Lisp vs Python

2006-12-11 Thread greg
Bill Atkins wrote: > greg <[EMAIL PROTECTED]> writes: > > > There's no way you could compile Python to efficient > > machine code just by macro expansion. You'd also need > > some very heavy-duty type inferencing. > > A compiler shifts a lot of decisions that an > interpreter would have to make a

Re: merits of Lisp vs Python

2006-12-11 Thread greg
[EMAIL PROTECTED] wrote: > So if you guys would just fix > your language by adding homogeneous syntax and all that it brings with > it (macros, compilers, etc) we'd be happy to use your version of Lisp, > and all its great libraries, instead of ours! :-) But if we did that, it wouldn't be Python a

Re: merits of Lisp vs Python

2006-12-11 Thread greg
Bill Atkins wrote: > You're missing Ken's point, which is that in Lisp an s-expression > represents a single concept - I can cut out the second form of an IF > and know that I'm cutting the entire test-form. For selecting a single form, that's true. For more than one form (such as selecting some,

Re: merits of Lisp vs Python

2006-12-11 Thread Robert Brown
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 redefine them by poking som

Re: Tkinter button doesn't appear in OS X

2006-12-11 Thread crystalattice
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 for OS X. How do I check the Tk

Re: newb: SENDING os.system(encode_cmd) output to a logging file

2006-12-11 Thread johnny
I am doing the os.system(encode_cmd) within a thread. So you are saying, have each thread create a subprocess module. Did you mean, "Popen" (os.popen)? Like os.popen(encode_cmd) , not os.system(encode_cmd)? Gabriel Genellina wrote: > At Monday 11/12/2006 20:47, johnny wrote: > > >How do I pipe

Re: alternate language

2006-12-11 Thread Grant Edwards
On 2006-12-11, Aahz <[EMAIL PROTECTED]> wrote: > Grant Edwards <[EMAIL PROTECTED]> wrote: >>> Um... I think the original poster is saying that he already knows Python >>> and wants to learn another language. He particularly wants opinions from >>> other people who have learned these languages *

Re: merits of Lisp vs Python

2006-12-11 Thread Kaz Kylheku
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 source written in L1 or > L2 into some base l

Re: enable pop3 for gmail from python

2006-12-11 Thread Aidan Steele
He wants to automate the process of enabling POP access to Gmail, not access his Inbox via POP (which he can already do). That much said, a quick looksee at the Google site shows no mention of an automated method of doing this. That is not to say it is impossible, but it may be infeasible to do as

Re: merits of Lisp vs Python

2006-12-11 Thread Pillsy
Piotr wrote: > Paul Rubin wrote: [...] > > Well, there's some similar way to look up elements in a Lisp > > hashtable, but I've forgotten the keyword for it (oops, cognitive > > inefficiency, having to remember separately.) FWIW, the command is GETHASH. The situation in CL is actually even worse

Re: AttributeError: Logger instance has no attribute 'setFormatter'

2006-12-11 Thread Gabriel Genellina
At Monday 11/12/2006 22:32, johnny wrote: def setupLogging(): global log log = logging.getLogger("ftp") Also, there is no need to use a global here. The logging machinery will return always the same logger given the same name. So logging.getLogger("ftp") will be always the same.

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: AttributeError: Logger instance has no attribute 'setFormatter'

2006-12-11 Thread Gabriel Genellina
At Monday 11/12/2006 22:32, johnny wrote: def setupLogging(): global log log = logging.getLogger("ftp") formatter = logging.Formatter('%(name)-12s: %(levelname)-8s %(message)s') log.setFormatter(formatter) log.setLevel(logging.DEBUG) fhnd = logging.FileHandler('py_mybas

Re: merits of Lisp vs Python

2006-12-11 Thread Piotr
Paul Rubin wrote: > > > a[i] = b[n] > > > (setf (aref a i) (aref b n)) > > Well, there's some similar way to look up elements in a Lisp > hashtable, but I've forgotten the keyword for it (oops, cognitive > inefficiency, having to remember separately.) Python uses the same > syntax for both. T

Re: newb: SENDING os.system(encode_cmd) output to a logging file

2006-12-11 Thread Gabriel Genellina
At Monday 11/12/2006 20:47, johnny wrote: How do I pipe the output, generated from os.system(some_command), to the logging file? Use the subprocess module to run the command instead. -- Gabriel Genellina Softlab SRL __ Correo Yahoo! Espacio

Re: Restricting import file lookup for pyd, dll, ...

2006-12-11 Thread Gabriel Genellina
At Monday 11/12/2006 19:11, Bernard Lebel wrote: If by "shortening the PYTHONPATH" you meant having less paths, I hardly see how I could do less than what I do with the pth. All these paths seem to be built in. I mean, delete the ones that actually don't exist. sys.path is a simple list; you

Re: issues with making a package. where do classes link?

2006-12-11 Thread Gabriel Genellina
At Monday 11/12/2006 15:47, krishnakant Mane wrote: I am struggling a bit in making python packages. when I am doing a project I want to create all my python modules inside a single package. A package is a directory with an __init__.py file in it. That's the only thing needed. I want to kn

Re: merits of Lisp vs Python

2006-12-11 Thread tac-tics
> In musical terms, Python is like a Beatles song, very popular > and easy to sway and dance to. Lisp is like a Bach fugue. Very nice analogy. -- http://mail.python.org/mailman/listinfo/python-list

Re: merits of Lisp vs Python

2006-12-11 Thread Paul Rubin
Greg Menke <[EMAIL PROTECTED]> writes: re: comparison of > > a[i] = b[n] with > > (setf (aref a i) (aref b n)) > > Not really. The syntax of getting and setting array elements isn't > really the point. It ignores the cognitive efficiency of Lisp when > things get more complex, and likewise

Re: Tarfile .bz2

2006-12-11 Thread Jordan
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 rar. Not really on to

AttributeError: Logger instance has no attribute 'setFormatter'

2006-12-11 Thread johnny
I am getting a log error. I am running ActiveState Python 2.4.3. Any help greatly appreciated. Here is my code: file.py - def main() setupLogging() blah def setupLogging(): global log log = logging.getLogger("ftp") formatter = logging.Formatter('%(name)-12s:

Re: merits of Lisp vs Python

2006-12-11 Thread Greg Menke
Paul Rubin writes: > 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 onl

Re: merits of Lisp vs Python

2006-12-11 Thread Paul Rubin
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 redefine them by poking some random > > dictionary? You can in Python. I don'

Re: merits of Lisp vs Python

2006-12-11 Thread Paul Rubin
"HowiPepper" <[EMAIL PROTECTED]> writes: > With Python's ease of learning and use, availability of a large number > of libraries, extremely active development community and large > user-base, I'd say the question to ask is what specific advantages over > Python does Lisp offer, to make people switc

Re: merits of Lisp vs Python

2006-12-11 Thread Paul Rubin
André Thieme <[EMAIL PROTECTED]> writes: > In Python it can't happen because + is not a function. > And what do you do if you want to pass + as a HOF? Use a lambda. There's a library module (use "import operator") that exports functions for most of these operators. It's used sometimes but not al

Re: merits of Lisp vs Python

2006-12-11 Thread Paul Rubin
jayessay <[EMAIL PROTECTED]> writes: > > If you say foo.frob() in Python, that's supposed to look up 'frob' in > > a dictionary hanging off of foo. You can modify the contents of this > > dictionary any time you want. > > Unless I'm missing something this looks absolutely dead easy to > implement

Re: merits of Lisp vs Python

2006-12-11 Thread Paul Rubin
jayessay <[EMAIL PROTECTED]> writes: > Also, there is the issue of whether there even is a "continual > progression", as in "moving up some ladder" towards something > "better", in the context of programming languages. All of that is > pretty fuzzy stuff, and plenty of CogSci work has shown these

Re: merits of Lisp vs Python

2006-12-11 Thread Paul Rubin
Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> writes: > We are following them in the direction of much more powerful, and at the > same time more secure (type-safe) solutions like Haskell Template > Meta-programming. > > So there seems to be something macro-like for Haskell. I think that's s

Re: merits of Lisp vs Python

2006-12-11 Thread Paul Rubin
Michael Livshin <[EMAIL PROTECTED]> writes: > > Nobody seems to concerned that Haskell lacks macros. What's up with > > that? > > Haskell is lazy, so it doesn't need macros (well, it would be more > accurate to say that by not evaluating function arguments until they > are needed it makes many of

Re: merits of Lisp vs Python

2006-12-11 Thread Paul Rubin
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 python example contain

Re: Encapsulating conditional execution based on list membership - how do you do it?

2006-12-11 Thread Gabriel Genellina
At Monday 11/12/2006 12:23, metaperl wrote: ok, so I'm thinking of adding a method to the storage class so I can do this: self.storage.archive_has(f, print_msg=True) and sys.exit() but really there is no need to hardcode which storage directory. So I'm thinking: self.storage.memberof('archive

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

2006-12-11 Thread [EMAIL PROTECTED]
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 /home/seb/.pypirc Server response (401): Authoriz

Re: enable pop3 for gmail from python

2006-12-11 Thread Gabriel Genellina
At Sunday 10/12/2006 08:36, radu voicilas wrote: Hi!I am making a script to connect to my gmail box and grep new mails.I want to know if i can enable pop from python if it is not enabled from gmail?I have been searching the python list but i haven't found an answer to thisonly ways of conn

newb: Creating Exception

2006-12-11 Thread johnny
I want to print individual exception for database connection, sql execution, database closing, closing the cursor. Can I do it with one try..catch or I need a nested try...catch? conn = adodb.NewADOConnection('mysql') conn.Connect('localhost', 'temp', 'temp', 'temp') sql

Re: Driver selection

2006-12-11 Thread Gabriel Genellina
At Saturday 9/12/2006 13:15, Stuart D. Gathman wrote: app.py: import spf spf.set_driver('dnspython') ... Can a function replace itself? For instance, in spf.py, could DNSLookup do this to provide a default: def set_driver(d): if d == 'pydns': from pydns_driver import DNSLookup elif d

newb: SENDING os.system(encode_cmd) output to a logging file

2006-12-11 Thread johnny
How do I pipe the output, generated from os.system(some_command), to the logging file? -- http://mail.python.org/mailman/listinfo/python-list

newb: logging.getLogger('') and logging.getLogger("something")

2006-12-11 Thread johnny
For getLogger, can you pass anything in there and it will return a object? Would that returned object, be your root logger? Thanks, -- http://mail.python.org/mailman/listinfo/python-list

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

2006-12-11 Thread Gabriel Genellina
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": elif uniList[0] in string.digits: elif uniList[0].isdigit(): -- Gabriel Genellina Softlab SRL __

Re: No output from popen in Tkinter text widget

2006-12-11 Thread John McMonagle
Kevin Walzer wrote: > I'm trying to display the output of an external process (invoked via > popen) in a Tkinter text widget. I successfully start the process (based > on what I'm seeing in my terminal output), but I can't get the output to > display in the Tkinter widget. It seems to block. > > A

Re: doubt in curses module

2006-12-11 Thread Gabriel Genellina
At Monday 11/12/2006 05:17, pradeep kumar wrote: iam new to python. i want to use function keys in my program, so i went through the curses module, but in that module it shows a different window object and after pressing the our desired function key in it, that will return the ascii value of t

Re: merits of Lisp vs Python

2006-12-11 Thread Ravi Teja
Mark Tarver wrote: > Paul Rubin wrote: > > "Mark Tarver" <[EMAIL PROTECTED]> writes: > > > How do you compare Python to Lisp? What specific advantages do you > > > think that one has over the other? > > > > > > Thanks; a quick re

Re: possible php convert

2006-12-11 Thread Dotan Cohen
On 11/12/06, Gabriel Genellina <[EMAIL PROTECTED]> wrote: > At Sunday 10/12/2006 09:36, Dotan Cohen wrote: > > >Hi all, I've been contemplating the switch to python from php. I'm no > >wiz, but I can get my way around with help form the online docs. I see > >that python has much less documentation

Re: Tarfile .bz2

2006-12-11 Thread Wolfgang Draxinger
Jordan wrote: > When using python to create a tar.bz2 archive, and then using > winrar to open the archive, it can't tell what the compressed > size of each > individual file in the archive is. Is this an issue with > winrar or is there something that needs to be set when making > the archive tha

Re: merits of Lisp vs Python

2006-12-11 Thread [EMAIL PROTECTED]
> So, how would I do that? For Python, that was simple. I learned the > basics, then moved to the libraries, learning as I went. We've already all agreed that Python has a much larger set of standard libraries than Lisp. You're right; This is an advantage that we all recognize, and would love to h

Re: merits of Lisp vs Python

2006-12-11 Thread Stephen Eilert
[EMAIL PROTECTED] escreveu: > > Yes, but these are community symbols or tribe marks. They don't have > > much meaning per se, just like the language name or a corporate > > identity. > > Unfortunately, I don't believe that this is entirely correctI do > lurk c.l.p and see quite often people a

Embedding python into a win32 program.

2006-12-11 Thread Verona Hummel
Beste Jean-Paul, Google-end op jouw naam kwam ik uit op een aantal vage links. Jij hebt je professie waarschijnlijk gevonden binnen een wereld die ik niet echt begrijp. Geen moeilijk mailtje over programma's e.d., maar eigenlijk een uitnodiging. Wij zijn op zoek naar oud-klasgenoten van de Berk

Re: Lookup caching

2006-12-11 Thread Andrea Griffini
Gabriel Genellina wrote: > At Saturday 9/12/2006 23:04, Andrea Griffini wrote: > >> I implemented that crazy idea and seems working... in its >> current hacked state can still pass the test suite (exluding > > What crazy idea? And what is this supposed to do? > The idea is to avoid looking up co

Re: feed-forward neural network for python

2006-12-11 Thread mwojc
Beliavsky napisal(a): > mwojc wrote: > > Hi! > > I released feed-forward neural network for python (ffnet) project at > > sourceforge. Implementation is extremelly fast (code written mostly in > > fortran with thin python interface, scipy optimizers involved) and very > > easy to use. > > I'm annou

Re: Restricting import file lookup for pyd, dll, ...

2006-12-11 Thread Bernard Lebel
Oops, sorry for the inconsistency. The pth file rather looks like this: d:\bernard\work\workgroups\workgroup_animation\data\scripts d:\bernard\work\workgroups\mt_workgroup\data\scripts d:\bernard\work\workgroups\ts_workgroup\data\scripts \\Linuxserver\ANIMATION\FARM\PYTHON\RELEASE c:\users\blebel\

Re: Restricting import file lookup for pyd, dll, ...

2006-12-11 Thread Bernard Lebel
Hello, It's been almost two months since I last investigated this issue, so now I wish to revive this conversation. To answer some of the questions raised by contributors [Gabriel Genellina] Try to shorten the PYTHONPATH to the really required directories (deleting those locations "that don

Re: merits of Lisp vs Python

2006-12-11 Thread George Sakkis
Cliff Wells wrote: > On Sat, 2006-12-09 at 00:26 -0800, hankhero wrote: > > > The Common-Lisp object systems has all and more OO-features, some which > > you never probably have thought of before. Here's one: > > Inheritance lets you specialise a method so a rectangle and a circle > > can have a d

Re: merits of Lisp vs Python

2006-12-11 Thread Kay Schluehr
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 > > fragments of them together. > > Interestin

comparing two IP addresses and the underlying machine

2006-12-11 Thread Ratko Jagodic
Hi all, 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 (or a mix of th

Re: Tarfile .bz2

2006-12-11 Thread Martin v. Löwis
Jordan schrieb: > When using python to create a tar.bz2 archive, and then using winrar to > open the archive, it can't tell what the compressed size of each > individual file in the archive is. Is this an issue with winrar or is > there something that needs to be set when making the archive that i

Re: possible php convert

2006-12-11 Thread Gabriel Genellina
At Sunday 10/12/2006 09:36, Dotan Cohen wrote: Hi all, I've been contemplating the switch to python from php. I'm no wiz, but I can get my way around with help form the online docs. I see that python has much less documentation available, so expect to hear from me a bit in the next few weeks. :)

Re: merits of Lisp vs Python

2006-12-11 Thread [EMAIL PROTECTED]
> Yes, but these are community symbols or tribe marks. They don't have > much meaning per se, just like the language name or a corporate > identity. Unfortunately, I don't believe that this is entirely correctI do lurk c.l.p and see quite often people arguing (if briefly) about what the one (a

How to do a Http HEAD requests

2006-12-11 Thread Soni Bergraj
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? Cheers, -- Soni Bergraj http://www.YouJoy.org/ -- http://mail.python.org/mailman/listinfo/python-list

Tarfile .bz2

2006-12-11 Thread Jordan
When using python to create a tar.bz2 archive, and then using winrar to open the archive, it can't tell what the compressed size of each individual file in the archive is. Is this an issue with winrar or is there something that needs to be set when making the archive that isn't there by default.

Re: Lookup caching

2006-12-11 Thread Gabriel Genellina
At Saturday 9/12/2006 23:04, Andrea Griffini wrote: I implemented that crazy idea and seems working... in its current hacked state can still pass the test suite (exluding What crazy idea? And what is this supposed to do? -- Gabriel Genellina Softlab SRL ___

Re: merits of Lisp vs Python

2006-12-11 Thread Espen Vestre
Paul Rubin 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 redefine them by poking some random > dictionary? You can in Python. I don't

Re: Python Operating System

2006-12-11 Thread Diez B. Roggisch
Richard Jones schrieb: > Diez B. Roggisch wrote: >> Python has no notion of pointers > > See: > > http://docs.python.org/lib/module-ctypes.html > > In particular: > > http://docs.python.org/lib/ctypes-pointers.html Certainly cool, yet not too helpful for writing an interrupt handler t

Re: merits of Lisp vs Python

2006-12-11 Thread Cliff Wells
On Sat, 2006-12-09 at 00:26 -0800, hankhero wrote: > The Common-Lisp object systems has all and more OO-features, some which > you never probably have thought of before. Here's one: > Inheritance lets you specialise a method so a rectangle and a circle > can have a different Draw method. If you wo

Re: merits of Lisp vs Python

2006-12-11 Thread Kay Schluehr
[EMAIL PROTECTED] wrote: > I've already admitted that this was both a poor choice of words and, as > pointed out by Carl, an ad hominem argument. However, if you read the > whole thing you'll see that I'm really railing against the silly "It > fits your brain" and "Only one way to do things" marke

Re: Pb ReportLab (ttfonts.py)

2006-12-11 Thread M�ta-MCI
Hi! You are right. I had suppose than ReportLab folks read this NG. No luck... for instant. MCI -- http://mail.python.org/mailman/listinfo/python-list

Re: Pb ReportLab (ttfonts.py)

2006-12-11 Thread M�ta-MCI
Hi! >>> Does the PDF generation work? Those are just warnings. Yes, it run. Yes it's only warning But, it's wincing... @-salutations MCI -- http://mail.python.org/mailman/listinfo/python-list

Re: How can I get involved

2006-12-11 Thread Paul Boddie
Prateek wrote: > > I'm messaging this group for the first time. Basically I've been a > (pretty intensive) Python programmer for the past 2 years. I started a > software company which has just released an SDK (v1.0b - developer > preview) for developing web applications in Python. I find it intere

Re: How can I get involved

2006-12-11 Thread Steven Bethard
Steven Bethard wrote: > .. _python-dev list: One really simple way to contribute that would be Sorry, copy-paste error. This should have been: .. _python-dev list: http://mail.python.org/mailman/listinfo/python-dev STeVe -- http://mail.python.org/mailman/listinfo/python-list

  1   2   3   >