Re: Joseph Weizenbaum

2008-03-14 Thread Jeff Schwab
Roel Schroeven wrote: > [EMAIL PROTECTED] schreef: >> On Mar 14, 1:47 pm, "Reedick, Andrew" <[EMAIL PROTECTED]> wrote: Subject: RIP: Joseph Weizenbaum Creator of Eliza: http://www-tech.mit.edu/V128/N12/weizenbaum.html -- >>> How do you feel about creator of Eliza? >> >> What is

Re: Joseph Weizenbaum

2008-03-15 Thread Jeff Schwab
Aahz wrote: > In article <[EMAIL PROTECTED]>, > Tim Roberts <[EMAIL PROTECTED]> wrote: >> Jeff Schwab <[EMAIL PROTECTED]> wrote: >>> Roel Schroeven wrote: >>>> [EMAIL PROTECTED] schreef: >>>>> On Mar 14, 1:47 pm, "Reedick, And

Re: Types, Cython, program readability

2008-03-16 Thread Jeff Schwab
Ben Finney wrote: > sturlamolden <[EMAIL PROTECTED]> writes: > >> If you don't know how to install a C compiler like Microsoft Visual >> Studio, you should not be programming computers anyway. > > Utter elitist nonsense. > > Programming should be made easier, and I see Python as a very good > la

Re: String To List

2008-03-17 Thread Jeff Schwab
Girish wrote: > I have a string a = "['xyz', 'abc']".. I would like to convert it to a > list with elements 'xyz' and 'abc'. Is there any simple solution for > this?? Do you want: (1) Specifically to vivify lists formatted as in your example? If so, why? (2) To save and restore arbitrary python

Re: python-list Metaquestion

2008-03-17 Thread Jeff Schwab
Tom Stambaugh wrote: > I continue to receive emails, addressed to [EMAIL PROTECTED], > with subject: "Re: Your message to Python-list awaits moderator approval", > which read: > >> Your mail to 'Python-list' with the subject >> >>(no subject) >> >> Is being held until the list moderator can

Re: Missing PyObject definition

2008-03-17 Thread Jeff Schwab
James Whetstone wrote: > I'm trying to access a PyObject directly from C++ for the purpose of calling > method on a Python object that is an intance of a derived C++ class. My > problem is that the compiler is complaining about not PyObject not being > defined. Has anyone run into the problem?

Re: questions about named pipe objects...

2008-03-17 Thread Jeff Schwab
waltbrad wrote: > I'm proceeding slowly though the Lutz book "Programming Python". I'm > in the section on named pipes. The script he uses has two functions: > one for the child the other for the parent. You start the parent then > the child: > > python pipefifo.py #starts the parent > > file /

Re: Interesting math problem

2008-03-17 Thread Jeff Schwab
BJörn Lindqvist wrote: > Here is an interesting math problem: > > You have a number X > 0 and another number Y > 0. The goal is to > divide X into a list with length Y. Each item in the list is an > integer. The sum of all integers is X. Each integer is either A or A + > 1, those should be "evenly

Re: About reading Python code

2008-03-17 Thread Jeff Schwab
sturlamolden wrote: > On 17 Mar, 04:54, WaterWalk <[EMAIL PROTECTED]> wrote: > >> So I'm curious how to read code effectively. I agree that python code >> is clear, but when it becomes long, reading it can still be a hard >> work. > > First, I recommend that you write readable code! Don't use Pyt

Re: Interesting math problem

2008-03-17 Thread Jeff Schwab
Arnaud Delobelle wrote: > On Mar 17, 10:24 pm, "BJörn Lindqvist" <[EMAIL PROTECTED]> wrote: >> Here is an interesting math problem: >> >> You have a number X > 0 and another number Y > 0. The goal is to >> divide X into a list with length Y. Each item in the list is an >> integer. The sum of all in

Re: Any fancy grep utility replacements out there?

2008-03-17 Thread Jeff Schwab
[EMAIL PROTECTED] wrote: > So I need to recursively grep a bunch of gzipped files. This can't be > easily done with grep, rgrep or zgrep. (I'm sure given the right > pipeline including using the find command it could be donebut > seems like a hassle). > > So I figured I'd find a fancy next g

Re: First Program Bug (Newbie)

2008-03-17 Thread Jeff Schwab
Benjamin Serrato wrote: > P.S. What is the chance I'll get spam for using my real email address? Fendi Chef Bag in Zucca Print - Black Trim Replica AAA, Fake HandBags Cheap Chef Bag in Zucca Print - Black Trim Bags Link : http://www.cnreplicas.com/Fendi_1439.html Chef Bag in Zucca Print - Black

Re: Interesting math problem

2008-03-18 Thread Jeff Schwab
Marc Christiansen wrote: > sturlamolden <[EMAIL PROTECTED]> wrote: >> On 18 Mar, 00:58, Jeff Schwab <[EMAIL PROTECTED]> wrote: >> >>> def make_slope(distance, parts): >>> if parts == 0: >>> return [] >>> >>

Re: PyCon Feedback and Volunteers (Re: Pycon disappointment)

2008-03-18 Thread Jeff Schwab
Mike Driscoll wrote: > On Mar 18, 1:41 pm, fumanchu <[EMAIL PROTECTED]> wrote: >> On Mar 17, 6:25 pm, dundeemt <[EMAIL PROTECTED]> wrote: >> >>> I agree - the balance wasn't as good. We can all agree that HowTos >>> and Intros are a necessary part of the conference talks track, but as >>> Robert p

ftp recursively

2008-03-18 Thread Jeff Schwab
I need to move a directory tree (~9GB) from one machine to another on the same LAN. What's the best (briefest and most portable) way to do this in Python? I see that urllib has some support for getting files by FTP, but that it has some trouble distinguishing files from directories. http

Re: ftp recursively

2008-03-18 Thread Jeff Schwab
Gabriel Genellina wrote: > En Tue, 18 Mar 2008 18:25:28 -0300, Jeff Schwab <[EMAIL PROTECTED]> > escribió: > >> I need to move a directory tree (~9GB) from one machine to another on >> the same LAN. What's the best (briefest and most portable) way to do >>

Re: ftp recursively

2008-03-19 Thread Jeff Schwab
Paul Rubin wrote: > Jeff Schwab <[EMAIL PROTECTED]> writes: >> ftping it as a flat file, and untarring it on the other side. Of >> course, the motivation wasn't just to get the files from point A to >> point B using Unix (which I already know how to do), but to tak

Re: Change user on UNIX

2008-03-20 Thread Jeff Schwab
Jonathan Gardner wrote: > On Mar 20, 4:51 am, "Giampaolo Rodola'" <[EMAIL PROTECTED]> wrote: >> Is there any way to su or login as a different user within a python >> script? I mainly need to temporarily impersonate another user to >> execute a command and then come back to the original user. > I

Re: Can I run a python program from within emacs?

2008-03-20 Thread Jeff Schwab
Grant Edwards wrote: > On 2008-03-20, jmDesktop <[EMAIL PROTECTED]> wrote: > >> Hi, I'm trying to learn Python. I using Aquamac an emac >> implementation with mac os x. I have a program. If I go to the >> command prompt and type pythong myprog.py, it works. Can the program >> be run from withi

Re: Can I run a python program from within emacs?

2008-03-20 Thread Jeff Schwab
jmDesktop wrote: > On Mar 20, 11:21 am, Grant Edwards <[EMAIL PROTECTED]> wrote: >> On 2008-03-20, jmDesktop <[EMAIL PROTECTED]> wrote: >> >>> Hi, I'm trying to learn Python. I using Aquamac an emac >>> implementation with mac os x. I have a program. If I go to the >>> command prompt and type py

Re: Can I run a python program from within emacs?

2008-03-20 Thread Jeff Schwab
Paulo da Costa wrote: > People who say Emacs often mean GNU Emacs. That's funny; to me, Emacs usually means XEmacs. :) -- http://mail.python.org/mailman/listinfo/python-list

Re: Can I run a python program from within emacs?

2008-03-20 Thread Jeff Schwab
Grant Edwards wrote: > On 2008-03-20, Jeff Schwab <[EMAIL PROTECTED]> wrote: > >>>> http://www.google.com/search?q=emacs+python >>> Gee. Thanks. >> I believe Grant was suggesting that Emacs often serves a similar purpose >> on Unix to what Visual St

Re: List question

2008-03-22 Thread Jeff Schwab
Zentrader wrote: > On Mar 22, 10:07 am, Arnaud Delobelle <[EMAIL PROTECTED]> wrote: >> On Mar 22, 4:38 pm, Zentrader <[EMAIL PROTECTED]> wrote: >> if ('one', 'two') are in f: ... >>> "are" gives me an error in Python 2.5 with a "from future import *" >>> statement included. What version and p

Re: Do any of you recommend Python as a first programming language?

2008-03-22 Thread Jeff Schwab
jmDesktop wrote: > For students 9th - 12th grade, with at least Algebra I. Do you think > Python is a good first programming language for someone with zero > programming experience? Using Linux and Python for first exposure to > programming languages and principles. Linux and Python are a nearly

Re: Do any of you recommend Python as a first programming language?

2008-03-22 Thread Jeff Schwab
Larry Bates wrote: > jmDesktop wrote: >> For students 9th - 12th grade, with at least Algebra I. Do you think >> Python is a good first programming language for someone with zero >> programming experience? Using Linux and Python for first exposure to >> programming languages and principles. >> >>

Re: Do any of you recommend Python as a first programming language?

2008-03-22 Thread Jeff Schwab
Arnaud Delobelle wrote: > Anyway, here the conclusion that I draw: learn lambda-calculus and > Turing machines. The rest is syntactic sugar. How is the lambda-calculus fundamentally different from Turing machine-based implementations? I've been learning a fair amount about functional programmi

<    1   2   3