Re: OT: excellent book on information theory

2006-01-18 Thread Steven D'Aprano
Roger Upole wrote: I wouldn't have figured out that a "car park" was a parking lot. I might have thought it was a park where you go to look at scenery from inside your car. Sort of a cross between a normal park and a drive-in movie >>> >>> >>>Just as another isolated data point,

web crawling.

2006-01-18 Thread S Borg
Hello, I have been writing very simple Python programs that parse HTML and such, mainly just to get a better feel for the language. Here is my question: If I parsed an HTML page into all of the image files listed on that page, how could I request all of those images and download them into some

Re: Is the Python binding for ncurses unicode capable?

2006-01-18 Thread Martin v. Löwis
[EMAIL PROTECTED] wrote: > I can't tell from the documentation, but I'd like to try and print > unicode characters through Python's binding to ncurses. From reading > the documentation on the curses module, it doesn't appear that this is > possible: > > http://python.org/doc/2.4.2/lib/module-curse

Re: socket.ssl with key files?

2006-01-18 Thread Martin v. Löwis
Chris Curvey wrote: > I see that socket.ssl takes "keyfile" and "certfile" parameters. So do > I just take the text file that I've been given and break it into two > files, then specify those file names when I open the connection? This might help, or it might not. If you have a passphrase on the

Re: OT: excellent book on information theory

2006-01-18 Thread [EMAIL PROTECTED]
Terry Hancock wrote: > I find that bizarre. There is no mythological > basis for a "Sourceror's Stone", but the "Philosopher's > Stone", was of course the mythical Alchemists' goal of a > catalyst for converting lead into gold (it had other > properties, IIRC). As an American, I was somewhat myst

Re: how do "real" python programmers work?

2006-01-18 Thread Fernando Perez
bblais wrote: > Hello, > > Let me start by saying that I am coming from a background using Matlab > (or Octave), and C++. I am going to outline the basic nuts-and-bolts > of how I work in these languages, and ask for some help to find out how > the same thing is done in Python. I am not sure wh

Need Help with Python/C API

2006-01-18 Thread pycraze
Hi guys, I Need to know how do i create a dictionary... eg: n = pali_hash n={} n={1:{ } } -> i need to know how to make a key of a dictionary, to a dictionary using Python/C API's Pls do help -- http://mail.python.org/mailman/listinfo/python-list

why is my hash being weird??

2006-01-18 Thread pycraze
Hi , I am using Fedora Core -3 and my Python version is 2.4 . kernel version - 2.6.9-1.667smp There is some freakish thing that happens with python hashes when i run a python script my python file is basically : myhash = {} def summa(): global myhash

tools to manipulate PDF document?

2006-01-18 Thread wcc
Hello group, I wonder what tools/modules are avaible to manipulate PDF ducument, i.e., merge, split, rotate page, crop, etc.. I checked the PyPI page and seems the only one may fit the need is pyPdf. But it is in its early stage and currently only supports two functions: merge & split. I suppose

Re: Arithmetic sequences in Python

2006-01-18 Thread Alex Martelli
Paul Rubin wrote: ... > What should the output of "print list(1,2,3)" be? Is there a really > good reason to make it different from the input syntax? If we assume that str and repr must keep coinciding for lists (and why not), no reason -- just like, say, today: >>>

Re: Can a simple a==b 'hang' in and endless loop?

2006-01-18 Thread Fredrik Lundh
Dave Hansen wrote: > >Fuzzyman wrote: > >> I'm not familiar with the C basic datatypes - I assume it has an array > >> or list like object. > >> > >> Would it contain a sequence of poitners to the members ? In which case > >> they would only be equal if the pointers are the same. > >> > >> In this

Re: OT: excellent book on information theory

2006-01-18 Thread Alex Martelli
Steven D'Aprano <[EMAIL PROTECTED]> wrote: ... > I mean, when you read "He sat on the chair" do you need > to look up the dictionary to discover that chairs can > have arm rests or not, they can be made of wood or > steel or uphostered springs, be on legs or coasters, > fixed or movable? If

Re: web crawling.

2006-01-18 Thread Alex Martelli
S Borg <[EMAIL PROTECTED]> wrote: > Hello, > > I have been writing very simple Python programs that parse HTML and > such, mainly just to get > a better feel for the language. Here is my question: If I parsed an > HTML page into all of the image > files listed on that page, how could I request

Re: OT: excellent book on information theory

2006-01-18 Thread Roger Upole
"Alex Martelli" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Steven D'Aprano <[EMAIL PROTECTED]> wrote: > ... >> I mean, when you read "He sat on the chair" do you need >> to look up the dictionary to discover that chairs can >> have arm rests or not, they can be made of wood or

<    1   2   3   4