Re: Why must implementing Python be hard unlike Scheme?

2008-02-19 Thread [EMAIL PROTECTED]
On Feb 19, 9:49 pm, Kay Schluehr <[EMAIL PROTECTED]> wrote: > Building a > Python VM in a high level language is certainly not harder than > creating a Scheme interpreter. Does VM = interpreter? Are you saying implementing a toy Python interpreter is not any harder than implementing a toy Scheme i

Re: Double underscores -- ugly?

2008-02-19 Thread Ben Finney
Ivan Illarionov <[EMAIL PROTECTED]> writes: > I would like to see something like %init or &init to be converted to > __init__ behind the scenes. I would prefer that the names I create and see in the code are the names actually used by the Python runtime, with no magic name conversion "behind the

Re: Double underscores -- ugly?

2008-02-19 Thread Ivan Illarionov
I would like to see something like %init or &init to be converted to __init__ behind the scenes. And $something to be converted to self.something. But, unfortunately, most Python people would consider this ugly just because Perl uses too much syntactic sugar and anything Perl-like is considered ugl

Re: Why must implementing Python be hard unlike Scheme?

2008-02-19 Thread Kay Schluehr
On 19 Feb., 07:15, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Certainly, "(almost) everything is an object" is a good start. Are > there any other axiom like statements one can hang their hat on when > trying to wrap their brain around Python's architecture? > > Chris It's a natural way to

Re: Why must implementing Python be hard unlike Scheme?

2008-02-19 Thread Michele Simionato
On Feb 19, 7:15 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I'm learning Scheme and I am amazed how easy it is to start building a > half baked Scheme implementation that somewhat works. This was true for R5RS Scheme, not anymore. Michele Simionato -- http://mail.python.org/mailman/l

Re: Double underscores -- ugly?

2008-02-19 Thread Erik Max Francis
[EMAIL PROTECTED] wrote: > My editor actually renders them as miniature chess pieces. The > bartender said she runs a pre-execution step, that searches and > replaces a double-colon with the underscores. I'm sorry, did you hit your head before dashing off your recent posts or something? -- Er

SystemError: com_backpatch: offset too large

2008-02-19 Thread [EMAIL PROTECTED]
hi, i get this error while using web.py and cheetah. how to fix this? happens everytime regularly thanks Traceback (most recent call last): File "/home/mark/work/pop/web/webapi.py", line 313, in wsgifunc result = func() File "/home/mark/work/pop/web/request.py", line 131, in func = lambd

Re: The big shots

2008-02-19 Thread Sergio Correia
I don't get this thread. At all. I want my 15 minutes back. (OTOH, some of your replies were quite funny or interesting, including - as usual - Gabriel and Steve's) On Feb 19, 2008 11:29 PM, Grant Edwards <[EMAIL PROTECTED]> wrote: > On 2008-02-19, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > >

Re: The big shots

2008-02-19 Thread Grant Edwards
On 2008-02-19, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > What is a a homile? It's a misspelling of homily. :) -- Grant Edwards grante Yow! It's hard being at an ARTIST!! visi.com

Re: Double underscores -- ugly?

2008-02-19 Thread Ben Finney
benhoyt <[EMAIL PROTECTED]> writes: > Then again, what's stopping us just using a single leading underscore? > Nobody calls their own private methods _init or _add You must be looking at different code from the rest of us. A single leading underscore on the name *is* the convention for "this attr

Re: standardization allows?

2008-02-19 Thread Paddy
On Feb 19, 10:13 pm, [EMAIL PROTECTED] wrote: > On Feb 19, 4:05 pm, Paul Rubin wrote: > > > [EMAIL PROTECTED] writes: > > > Standardization allows RCA cables, bumpers, and 115V plugs. The Bill > > > of Rights allows Huckleberry Finn. What is the analogue of the Bill > >

Re: standardization allows?

2008-02-19 Thread Paddy
On Feb 19, 10:00 pm, [EMAIL PROTECTED] wrote: > On Feb 19, 3:47 pm, Gerardo Herzig <[EMAIL PROTECTED]> wrote: > > > [EMAIL PROTECTED] wrote: > > >Standardization allows RCA cables, bumpers, and 115V plugs. The Bill > > >of Rights allows Huckleberry Finn. What is the analogue of the Bill > > >of R

Re: standardization allows?

2008-02-19 Thread Paddy
On Feb 13, 10:41 pm, [EMAIL PROTECTED] wrote: > Standardization helps avoid the readability and reliability problems > which arise when many different individuals create their own slightly > varying implementations, each with their own quirks and naming > conventions. Turing test entrant? - Paddy

Re: Encrypting a short string?

2008-02-19 Thread Steve Holden
Roy Smith wrote: > In article <[EMAIL PROTECTED]>, > Steve Holden <[EMAIL PROTECTED]> wrote: > >> Of course, but ROT13 ^ (2n*1) is equivalent to ROT13 for all positive >> integer n. > > Why restrict that to positive integers? I believe it works for all > integers. But I do think you meant 2n

Re: Querying a complex website

2008-02-19 Thread Steve Holden
schweet1 wrote: > Greetings, > > I am attempting to use python to submit a query to the following URL: > > https://ramps.uspto.gov/eram/patentMaintFees.do > > The page looks simple enough - it requires submitting a number into 2 > form boxes and then selecting from the pull down. > > However, m

Re: Encrypting a short string?

2008-02-19 Thread Roy Smith
In article <[EMAIL PROTECTED]>, Steve Holden <[EMAIL PROTECTED]> wrote: > Of course, but ROT13 ^ (2n*1) is equivalent to ROT13 for all positive > integer n. Why restrict that to positive integers? I believe it works for all integers. But I do think you meant 2n+1, not 2n*1. -- http://mail.p

Re: Double underscores -- ugly?

2008-02-19 Thread Steve Holden
[EMAIL PROTECTED] wrote: > On Feb 19, 10:26 am, Wildemar Wildenburger > <[EMAIL PROTECTED]> wrote: >> Jason wrote: >>> Hmm. I must be the only person who doesn't think the double >>> underscores are ugly. >> Nope. I like them too. :) >> >> Frankly, I think it's just a matter of adaption. I too fou

Re: problem with mod_python

2008-02-19 Thread Graham Dumpleton
On Feb 20, 6:04 am, Joshua Kugler <[EMAIL PROTECTED]> wrote: > Pradnyesh Sawant wrote: > > Hello, > > I have a small program which does 'import hashlib'. This program runs fine > > with python2.5. But when I try running the same program through > > mod_python, I get the error: 'ImportError: No modu

Re: Encrypting a short string?

2008-02-19 Thread Steve Holden
David H Wild wrote: > In article <[EMAIL PROTECTED]>, >Steven D'Aprano <[EMAIL PROTECTED]> wrote: >>> I really don't recommend the ROT13 cipher, as this is extremely easy to >>> crack. Most grade school kids could break this one in seconds. ;-) > > >> I think you missed the point. Any recom

Re: ANN: Phatch = PHoto bATCH processor and renamer based on PIL

2008-02-19 Thread Steve Holden
Wolfgang Strobl wrote: > Steve Holden <[EMAIL PROTECTED]> wrote: > >> RTFM: the web site instructions clearly state that setup.py doesn't >> currently work with Windows. > > Do they? http://photobatch.stani.be/ doesn't, following "documentation" > http://photobatch.stani.be/ doesn't, either. I

Re: Double underscores -- ugly?

2008-02-19 Thread benhoyt
> My editor actually renders [underscores] as miniature chess pieces. > The bartender said she runs a pre-execution step, that searches and > replaces a double-colon with the underscores. Heh, that makes me think. Great use for character encodings! Just like Tim Hatch's "pybraces", we could use a

Re: The big shots

2008-02-19 Thread Gabriel Genellina
En Tue, 19 Feb 2008 23:19:29 -0200, <[EMAIL PROTECTED]> escribió: > But 'ext' is actually good. Even if it were, that alone doesn't mean it should be included in the stdlib. Start writting a recipe in the Python Cookbook: http://aspn.activestate.com/ASPN/Cookbook/Python/ Upload the module to

Re: how to finish a while loop...

2008-02-19 Thread Preston Landers
On Feb 19, 7:35 pm, icarus <[EMAIL PROTECTED]> wrote: > > But when I paste it into eclipse and run it > > eclipse's console, it doesn't work because answer seems to have a > > stray '\r' carriage return (CR) and therefore the comparison to 'no' > > fails. > > I get no 'compile' errors th

Re: how to finish a while loop...

2008-02-19 Thread rynt
Wouldn't hurt to send an email or message, along with the code, to Fabio Zdronzy, the maintainer of PyDev explaining what happened. He'll probably see this thread, but then again, maybe not. Ruben On Feb 19, 5:35 pm, icarus <[EMAIL PROTECTED]> wrote: > > To the original poster what environme

Re: how to finish a while loop...

2008-02-19 Thread richie
On Feb 20, 9:35 am, icarus <[EMAIL PROTECTED]> wrote: > > To the original poster what environment are you running this in? > > Linux. Xubuntu if that matters. > > > When I put your program in notepad and run it from the windows command > > prompt it works. > > yeah yeah

Re: how to finish a while loop...

2008-02-19 Thread icarus
> To the original poster what environment are you running this in? Linux. Xubuntu if that matters. > When I put your program in notepad and run it from the windows command > prompt it works. yeah yeah...same here. After I got the tip that it actually worked, I went int

Re: how to finish a while loop...

2008-02-19 Thread richie
On Feb 20, 9:21 am, icarus <[EMAIL PROTECTED]> wrote: > > That code works. Maybe you fixed it while you were mailing it =) > > > -- > > -- Guilherme H. Polo Goncalves > > This is weird mate. > I'm using eclipse 3.2 with the pydev plugin. There it loops forever - > from the eclipse console. > Two h

Re: ANN: Phatch = PHoto bATCH processor and renamer based on PIL

2008-02-19 Thread Wolfgang Strobl
Steve Holden <[EMAIL PROTECTED]> wrote: >RTFM: the web site instructions clearly state that setup.py doesn't >currently work with Windows. Do they? http://photobatch.stani.be/ doesn't, following "documentation" http://photobatch.stani.be/ doesn't, either. I missed "start phatch in trunk/phatch

Re: how to finish a while loop...

2008-02-19 Thread Preston Landers
On Feb 19, 7:12 pm, richie <[EMAIL PROTECTED]> wrote: > On Feb 20, 9:00 am, icarus <[EMAIL PROTECTED]> wrote: > > > > > Hi all, i'm new to python. Learning on my own how to ask a user to > > finish a loop or not. > > For some reason, it behaves as infinite loop although I changed its > > condition

distutils and data files

2008-02-19 Thread Sam Peterson
I've been googling for a while now and cannot find a good way to deal with this. I have a slightly messy python program I wrote that I've historically just run from the extracted source folder. I have pictures and sound files in this folder that this program uses. I've always just used the relat

Re: how to finish a while loop...

2008-02-19 Thread icarus
> That code works. Maybe you fixed it while you were mailing it =) > > -- > -- Guilherme H. Polo Goncalves This is weird mate. I'm using eclipse 3.2 with the pydev plugin. There it loops forever - from the eclipse console. Two hours of trying, changing the code...finally gave up. Then I got you

Re: The big shots

2008-02-19 Thread castironpi
On Feb 19, 5:31 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > > May I insist?  By the criteria you've mentioned so far, nothing rules > > out 'ext'.  If it's still a bad idea, there's a reason.  What is it? > > You imply that just because something is somehow working and even useful > for a *

Re: how to finish a while loop...

2008-02-19 Thread Paul Rubin
icarus <[EMAIL PROTECTED]> writes: > For some reason, it behaves as infinite loop although I changed its > condition. Please tell me what I'm doing wrong. Thanks in advance. It worked when I tried it: >>> ## working on region in file /usr/tmp/python-13922e2f... Please enter an integer: 8

Re: how to finish a while loop...

2008-02-19 Thread richie
On Feb 20, 9:00 am, icarus <[EMAIL PROTECTED]> wrote: > Hi all, i'm new to python. Learning on my own how to ask a user to > finish a loop or not. > For some reason, it behaves as infinite loop although I changed its > condition. Please tell me what I'm doing wrong. Thanks in advance. > > conditi

Re: Threads vs. continuations

2008-02-19 Thread Paul Rubin
John Nagle <[EMAIL PROTECTED]> writes: > People did things like that to hammer threading onto operating > systems so dumb they couldn't context switch, like > DOS, early Windows, and MacOS through 7. Nobody does that > any more. I see stuff heading more the other way; here's a description of

Re: how to finish a while loop...

2008-02-19 Thread Guilherme Polo
2008/2/19, icarus <[EMAIL PROTECTED]>: > Hi all, i'm new to python. Learning on my own how to ask a user to > finish a loop or not. > For some reason, it behaves as infinite loop although I changed its > condition. Please tell me what I'm doing wrong. Thanks in advance. > > > condition = True

how to finish a while loop...

2008-02-19 Thread icarus
Hi all, i'm new to python. Learning on my own how to ask a user to finish a loop or not. For some reason, it behaves as infinite loop although I changed its condition. Please tell me what I'm doing wrong. Thanks in advance. condition = True while ( condition ): try: in

Re: Threads vs. continuations

2008-02-19 Thread John Nagle
Tim Daneliuk wrote: > Martin v. Löwis wrote: > Is/Was it not the case, though, that some languages present > a threading model to the programmer that is realized in user > space, but not in the kernel. ISTR some early implementations > of Posix Threads that worked that way. The API was there > a

Re: The big shots

2008-02-19 Thread Carsten Haese
On Tue, 2008-02-19 at 14:43 -0800, [EMAIL PROTECTED] wrote: > May I insist? By the criteria you've mentioned so far, nothing rules > out 'ext'. If it's still a bad idea, there's a reason. What is it? I didn't "rule out" 'ext'. I have no say over what goes or doesn't go into the Python standard

Re: What's "the standard" for code docs?

2008-02-19 Thread Preston Landers
On Feb 19, 4:31 pm, [EMAIL PROTECTED] wrote: > bash-2.04$ man precious I understand now that you were referring to unix manual pages, but I'm afraid I still don't understand what your original reply (man serious) has to do with anything in particular. But after reading some of your other recent

Re: The big shots

2008-02-19 Thread Diez B. Roggisch
> > May I insist? By the criteria you've mentioned so far, nothing rules > out 'ext'. If it's still a bad idea, there's a reason. What is it? You imply that just because something is somehow working and even useful for a *some* people (some being maybe only you) that it would be worth includ

Re: Threads vs. continuations

2008-02-19 Thread Martin v. Löwis
> That's assuming that the threading implemented at the language > level is actually realized by underlying kernel threading. > Is/Was it not the case, though, that some languages present > a threading model to the programmer that is realized in user > space, but not in the kernel. You were asking

Re: Querying a complex website

2008-02-19 Thread 7stud
schweet1 wrote: > Greetings, > > I am attempting to use python to submit a query to the following URL: > > https://ramps.uspto.gov/eram/patentMaintFees.do > > The page looks simple enough - it requires submitting a number into 2 > form boxes and then selecting from the pull down. > > However, my te

Re: The big shots

2008-02-19 Thread [EMAIL PROTECTED]
On 19 fév, 21:49, [EMAIL PROTECTED] wrote: > On Feb 19, 5:17 am, Bruno Desthuilliers > > > [EMAIL PROTECTED]> wrote: > > Diez B. Roggisch a écrit :> [EMAIL PROTECTED] schrieb: > > >> I'm a little dissatisfied, and just thinking aloud. > > > (snip remaining of mostly inarticulate post, just couldn'

Re: Threads vs. continuations

2008-02-19 Thread Paul Rubin
Tim Daneliuk <[EMAIL PROTECTED]> writes: > 'Not trying to start a fight here, I'm just curious about the > current state of that art. It is the case today that all > modern language threading is realized over a kernel implementation > of threading that behaves as you suggest? Certainly not. See

Re: Threads vs. continuations

2008-02-19 Thread Tim Daneliuk
Martin v. Löwis wrote: >> I've been doing some thinking, and I've halfway convinced myself of >> the following statement: that threads as implemented by Python (or >> Java) are exactly equivalent to one-shot continuations in Scheme. Am >> I right? > > No. In case of threads, progress can be made

Re: The big shots

2008-02-19 Thread George Sakkis
On Feb 19, 5:25 pm, Grant Edwards <[EMAIL PROTECTED]> wrote: > On 2008-02-19, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Even on my emperical claims, I'm wrong 90% of the time. On > > the subjective ones, I'm not only wrong that much, but no one > > else want to hear, or even can verify th

Re: The big shots

2008-02-19 Thread castironpi
On Feb 19, 3:48 pm, [EMAIL PROTECTED] wrote: > On Feb 19, 3:15 pm, Carsten Haese <[EMAIL PROTECTED]> wrote: > > > > > > > On Tue, 2008-02-19 at 12:49 -0800, [EMAIL PROTECTED] wrote: > > > Ok, take this one.  C is faster than Python.  It would be useful, in > > > certain cases, to write C. > > > > I

Re: Encrypting a short string?

2008-02-19 Thread David H Wild
In article <[EMAIL PROTECTED]>, Steven D'Aprano <[EMAIL PROTECTED]> wrote: > > I really don't recommend the ROT13 cipher, as this is extremely easy to > > crack. Most grade school kids could break this one in seconds. ;-) > I think you missed the point. Any recommendation to use ROT13 is lik

Re: What's "the standard" for code docs?

2008-02-19 Thread castironpi
On Feb 19, 4:21 pm, Preston Landers <[EMAIL PROTECTED]> wrote: > On Feb 19, 4:16 pm, [EMAIL PROTECTED] wrote: > > > On Feb 19, 4:12 pm, Preston  Landers <[EMAIL PROTECTED]> wrote: > > > > On Feb 16, 1:56 am, John Nagle <[EMAIL PROTECTED]> wrote: > > > > > Preston Landers wrote: > > > > > Hey guys

Re: What's "the standard" for code docs?

2008-02-19 Thread Tim Chase
HTML. Text-only docs are so last-cen. >>> My sarcasometer is broken today... are you being serious? >> man serious > > As opposed to woman serious? [EMAIL PROTECTED]:~$ man -k serious serious: nothing appropriate. -tkc -- http://mail.python.org/mailman/listinfo/python-list

Re: The big shots

2008-02-19 Thread castironpi
On Feb 19, 4:25 pm, Grant Edwards <[EMAIL PROTECTED]> wrote: > On 2008-02-19, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > I'm going to start marking my subjective comments with a star, > > so it's clear what is emperically verifiable, and what is not. > > > It's a bad sign. > > I've no idea

Re: Double underscores -- ugly?

2008-02-19 Thread castironpi
On Feb 19, 10:26 am, Wildemar Wildenburger <[EMAIL PROTECTED]> wrote: > Jason wrote: > > Hmm.  I must be the only person who doesn't think the double > > underscores are ugly. > > Nope. I like them too. :) > > Frankly, I think it's just a matter of adaption. I too found it rather > "ugly" in the be

Re: The big shots

2008-02-19 Thread Grant Edwards
On 2008-02-19, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I'm going to start marking my subjective comments with a star, > so it's clear what is emperically verifiable, and what is not. > > It's a bad sign. I've no idea what "it" refers to in the sentence above. > If you aren't keeping your

Re: Threads vs. continuations

2008-02-19 Thread Martin v. Löwis
> I've been doing some thinking, and I've halfway convinced myself of > the following statement: that threads as implemented by Python (or > Java) are exactly equivalent to one-shot continuations in Scheme. Am > I right? No. In case of threads, progress can be made in an overlapping (concurrent),

Re: What's "the standard" for code docs?

2008-02-19 Thread Preston Landers
On Feb 19, 4:16 pm, [EMAIL PROTECTED] wrote: > On Feb 19, 4:12 pm, Preston Landers <[EMAIL PROTECTED]> wrote: > > > On Feb 16, 1:56 am, John Nagle <[EMAIL PROTECTED]> wrote: > > > > Preston Landers wrote: > > > > Hey guys and gals. What are all the cool kids using these days to > > > > document t

Re: Encrypting a short string?

2008-02-19 Thread Steven D'Aprano
On Tue, 19 Feb 2008 09:25:52 -0700, Brian wrote: > Hi Erik, > > I really don't recommend the ROT13 cipher, as this is extremely easy to > crack. Most grade school kids could break this one in seconds. ;-) I think you missed the point. Any recommendation to use ROT13 is likely to be a joke. A

Re: What's "the standard" for code docs?

2008-02-19 Thread castironpi
On Feb 19, 4:12 pm, Preston Landers <[EMAIL PROTECTED]> wrote: > On Feb 16, 1:56 am, John Nagle <[EMAIL PROTECTED]> wrote: > > > Preston Landers wrote: > > > Hey guys and gals.  What are all the cool kids using these days to > > > document their code? > > >    HTML.  Text-only docs are so last-cen

Re: standardization allows?

2008-02-19 Thread castironpi
On Feb 19, 4:05 pm, Paul Rubin wrote: > [EMAIL PROTECTED] writes: > > Standardization allows RCA cables, bumpers, and 115V plugs.  The Bill > > of Rights allows Huckleberry Finn.  What is the analogue of the Bill > > of Rights for programmers and users, whether of program

Re: What's "the standard" for code docs?

2008-02-19 Thread Preston Landers
On Feb 16, 1:56 am, John Nagle <[EMAIL PROTECTED]> wrote: > Preston Landers wrote: > > Hey guys and gals. What are all the cool kids using these days to > > document their code? > >HTML. Text-only docs are so last-cen. My sarcasometer is broken today... are you being serious? -- http://ma

Re: The big shots

2008-02-19 Thread castironpi
On Feb 19, 12:37 am, George Sakkis <[EMAIL PROTECTED]> wrote: > On Feb 19, 12:08 am, [EMAIL PROTECTED] wrote: > > > The problem did not seem to be miscommunication, rather bias. > > IMHO it's partly because of the obscurity of the ideas and the code > you suggest, and partly because of the poor job

Re: standardization allows?

2008-02-19 Thread Paul Rubin
[EMAIL PROTECTED] writes: > Standardization allows RCA cables, bumpers, and 115V plugs. The Bill > of Rights allows Huckleberry Finn. What is the analogue of the Bill > of Rights for programmers and users, whether of programming languages > or latter-generation software? http://gplv3.fsf.org ;

Re: ANN: Phatch = PHoto bATCH processor and renamer based on PIL

2008-02-19 Thread Steve Holden
Wolfgang Strobl wrote: > "SPE - Stani's Python Editor" <[EMAIL PROTECTED]>: > >> I develop Phatch on Ubuntu/Linux, but I have tested and polished it >> regularly on Windows and Mac Os X. (Only the droplet functionality >> needs to be ported.) Phatch is submitted to Debian unstable and >> Ubuntu Ha

Re: Double underscores -- ugly?

2008-02-19 Thread Ben Finney
Marco Mariani <[EMAIL PROTECTED]> writes: > Ben Finney wrote: > > >> I realise that double underscores make the language conceptually > >> cleaner in many ways (because fancy syntax and operator overloading > >> are just handled by methods), but they don't *look* nice. > > > > That's a good thing

Re: standardization allows?

2008-02-19 Thread castironpi
On Feb 19, 3:47 pm, Gerardo Herzig <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > >Standardization allows RCA cables, bumpers, and 115V plugs.  The Bill > >of Rights allows Huckleberry Finn.  What is the analogue of the Bill > >of Rights for programmers and users, whether of programming la

Re: standardization allows?

2008-02-19 Thread Gerardo Herzig
[EMAIL PROTECTED] wrote: >Standardization allows RCA cables, bumpers, and 115V plugs. The Bill >of Rights allows Huckleberry Finn. What is the analogue of the Bill >of Rights for programmers and users, whether of programming languages >or latter-generation software? > > I want that drogues, ma

Re: The big shots

2008-02-19 Thread castironpi
On Feb 19, 3:15 pm, Carsten Haese <[EMAIL PROTECTED]> wrote: > On Tue, 2008-02-19 at 12:49 -0800, [EMAIL PROTECTED] wrote: > > Ok, take this one.  C is faster than Python.  It would be useful, in > > certain cases, to write C. > > > It is possible but inconvenient, out of the way. > > Making that e

Re: Threads vs. continuations

2008-02-19 Thread Arnaud Delobelle
On Feb 19, 8:26 pm, [EMAIL PROTECTED] wrote: [...] > The only thing preventing Python from being > that language is the difficulty of integrating a macro system, n'est- > ce pas? Well there's logix (http://www.livelogix.net/logix/) -- Arnaud -- http://mail.python.org/mailman/listinfo/python-li

Re: standardization allows?

2008-02-19 Thread castironpi
On Feb 13, 4:41 pm, [EMAIL PROTECTED] wrote: > Standardization helps avoid the readability and reliability problems > which arise when many different individuals create their own slightly > varying implementations, each with their own quirks and naming > conventions. Standardization allows RCA cab

Re: Solve a Debate

2008-02-19 Thread castironpi
> Past a "many-small" certain point on numbers of hash-tables, if that's > the right word, in a program, and intepreter process on a machine, is > it be more time-efficient to allocate a 2**32-byte table?  Are > 'modulo' and 'doublesize' the only steps of the lookup process that it > would eliminat

Re: Hairy brainstorm

2008-02-19 Thread castironpi
On Feb 15, 11:43 pm, [EMAIL PROTECTED] wrote: > On Feb 15, 8:04 pm, [EMAIL PROTECTED] wrote: > > > Hold the future holds effectively nothing for single-threaded > > programs; single-core PUs have reached the point of diminishing > > returns of circuit size and IC design; thinking multi-threaded's t

Re: Threads vs. continuations

2008-02-19 Thread Aahz
In article <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote: > >If that's the case, it seems threads plus hygeinic macros and a few >primitives a la Scheme would form a solid basis upon which to build a >programming language. The only thing preventing Python from being >that language is the difficu

Re: firefox cache & Python

2008-02-19 Thread Gabriel Genellina
En Tue, 19 Feb 2008 17:44:57 -0200, subeen <[EMAIL PROTECTED]> escribió: > I have got into an interesting problem. Today I found that if I type > "about:cache?device=disk" (without the quotes) in the address bar of > firefox, it displays disk cache information. Now I am thinking to > write a Pyt

Re: SOAP strategies

2008-02-19 Thread Paul Watson
On Tue, 2008-02-19 at 10:01 -0800, Paul Boddie wrote: > On 19 Feb, 16:59, Paul Watson <[EMAIL PROTECTED]> wrote: > > > > Have I offended? My apologies if I have. I thought I showed that I had > > done some homework and used Google and did the other things to show that > > I was willing to put fo

Re: The big shots

2008-02-19 Thread Carsten Haese
On Tue, 2008-02-19 at 12:49 -0800, [EMAIL PROTECTED] wrote: > Ok, take this one. C is faster than Python. It would be useful, in > certain cases, to write C. > > It is possible but inconvenient, out of the way. Making that easier is a worthy goal... > Date: Sat, 9 Feb 2008 11:48:51 -0800 (PST

Re: SOAP strategies

2008-02-19 Thread Paul Watson
On Tue, 2008-02-19 at 10:01 -0800, Paul Boddie wrote: > On 19 Feb, 16:59, Paul Watson <[EMAIL PROTECTED]> wrote: > > > > Have I offended? My apologies if I have. I thought I showed that I had > > done some homework and used Google and did the other things to show that > > I was willing to put for

Re: Passing a callable object to Thread

2008-02-19 Thread castironpi
>         The "ice-cream" example given earlier does /not/ fit the idea of a > tuple to me; "Vanilla", "Chocolate", and "Strawberry" isn't a tuple -- > it's a list... Flavor* flavors[]= { Vanilla, Chocolate, Strawberry }; flavorct= 3; -- http://mail.python.org/mailman/listinfo/python-list

Re: Threads vs. continuations

2008-02-19 Thread Tim Daneliuk
[EMAIL PROTECTED] wrote: > I've been doing some thinking, and I've halfway convinced myself of > the following statement: that threads as implemented by Python (or > Java) are exactly equivalent to one-shot continuations in Scheme. Am > I right? (I'd have asked in the scheme groups, but I feel li

Re: C function in a Python context

2008-02-19 Thread castironpi
> #include > #include This modification required: compilercommand='c:/programs/mingw/bin/g++' and strctypes= { 'i': 'int', 's': 'const char*', 'O': 'PyObject*' } The output is: #include [ user code ] static PyObject * extcode_enumfactors(PyObject *self, PyObject *args) {

Re: Using a signal to terminate a programm running with an asyncore loop

2008-02-19 Thread [EMAIL PROTECTED]
On Feb 8, 4:03 pm, Larry Bates <[EMAIL PROTECTED]> wrote: > When signal is caught handle_shutdown_signal is called. At that point > SHUTDOWN_PERFORMED will ALWAYS be False. Normally all you do in this function > is to set SHUTDOWN_PERFORMED to True and have a test somewhere in your main > program

Re: ANN: Phatch = PHoto bATCH processor and renamer based on PIL

2008-02-19 Thread Wolfgang Strobl
"SPE - Stani's Python Editor" <[EMAIL PROTECTED]>: >I develop Phatch on Ubuntu/Linux, but I have tested and polished it >regularly on Windows and Mac Os X. (Only the droplet functionality >needs to be ported.) Phatch is submitted to Debian unstable and >Ubuntu Hardy. Packagers for other platforms

Re: The big shots

2008-02-19 Thread castironpi
On Feb 19, 5:17 am, Bruno Desthuilliers wrote: > Diez B. Roggisch a écrit :> [EMAIL PROTECTED] schrieb: > >> I'm a little dissatisfied, and just thinking aloud. > > (snip remaining of mostly inarticulate post, just couldn't make sens of > it - as usual) > > > No idea what's wrong with these people

Threads vs. continuations

2008-02-19 Thread miller . paul . w
I've been doing some thinking, and I've halfway convinced myself of the following statement: that threads as implemented by Python (or Java) are exactly equivalent to one-shot continuations in Scheme. Am I right? (I'd have asked in the scheme groups, but I feel like I'm less likely to get flamed

Querying a complex website

2008-02-19 Thread schweet1
Greetings, I am attempting to use python to submit a query to the following URL: https://ramps.uspto.gov/eram/patentMaintFees.do The page looks simple enough - it requires submitting a number into 2 form boxes and then selecting from the pull down. However, my test scripts have been hung up, ap

Re: Python seems to be ignoring my except clause...

2008-02-19 Thread Jonathan Gardner
On Feb 19, 6:14 am, "Adam W." <[EMAIL PROTECTED]> wrote: > So I deleted my .pyc files and reran, same thing, but then I closed all > open windows and reran it, and it recompiled the pyc and the code > "worked". > ... > But now I know I have to keep deleting my > pyc files or else I will run into tr

firefox cache & Python

2008-02-19 Thread subeen
Hi, I have got into an interesting problem. Today I found that if I type "about:cache?device=disk" (without the quotes) in the address bar of firefox, it displays disk cache information. Now I am thinking to write a Python program that will read this cache info. My initial idea is to somehow save

Re: Py_Finalize ERROR!

2008-02-19 Thread Gabriel Genellina
On 19 feb, 05:11, zaley <[EMAIL PROTECTED]> wrote: > Py_Finalize ERROR! > > In my C++ program ,python is embeded . I create one win thread to run > embedded Python code . > So at the begin of thread function I call "Py_Initialize" and at the > end of thread function call "Py_Finalize" . > But after

Re: Why must implementing Python be hard unlike Scheme?

2008-02-19 Thread [EMAIL PROTECTED]
http://codespeak.net/pypy/dist/pypy/doc/getting-started.html#what-is-... > > George I'm very excited about PyPy. It would still be nice to see a nice succinct list of major design principles of Python implementations somewhere. chris -- http://mail.python.org/mailman/listinfo/python-list

Re: problem with mod_python

2008-02-19 Thread Joshua Kugler
Pradnyesh Sawant wrote: > Hello, > I have a small program which does 'import hashlib'. This program runs fine > with python2.5. But when I try running the same program through > mod_python, I get the error: 'ImportError: No module named hashlib' in the > apache2 error.log > > Searching online sug

Re: python-ldap for plone 3 (python 2.4.4)

2008-02-19 Thread Michael Ströder
Erol Robaina Cepero wrote: > I need download python-ldap for my plone 3.0.5 that use python 2.4.4. > > Do you know where I can find it? http://python-ldap.sourceforge.net/download.shtml Ciao, Michael. -- http://mail.python.org/mailman/listinfo/python-list

Re: Threading the Python interpreter

2008-02-19 Thread Douglas Wells
In article <[EMAIL PROTECTED]>, Nick Stinemates <[EMAIL PROTECTED]> writes: > MooJoo wrote: > > Since I'm running each python instance in a new process, I don't believe > > that there is a problem and, in my testing so far, I haven't encountered > > anything that would lead me to believe there

Re: ANN: Phatch = PHoto bATCH processor and renamer based on PIL

2008-02-19 Thread Daniel Fetchinson
> > > I'm pleased to announce the release of Phatch which is a > > > powerful batch processor and renamer. Phatch exposes a big part of the > > > Python Imaging Library through an user friendly GUI. (It is using > > > python-pyexiv2 to offer more extensive EXIF and IPTC support.) Phatch > > > is no

Re: SOAP strategies

2008-02-19 Thread Paul Boddie
On 19 Feb, 16:59, Paul Watson <[EMAIL PROTECTED]> wrote: > > Have I offended? My apologies if I have. I thought I showed that I had > done some homework and used Google and did the other things to show that > I was willing to put forth some effort. Please tell me if I have missed > something. I

Re: Seemingly odd 'is' comparison.

2008-02-19 Thread Arnaud Delobelle
On Feb 19, 1:47 pm, Boris Borcic <[EMAIL PROTECTED]> wrote: > Arnaud Delobelle wrote: > > On Feb 13, 10:19 pm, Tobiah <[EMAIL PROTECTED]> wrote: > > print float(3.0) is float(3.0) > >> True > > print float(3.0 * 1.0) is float(3.0) > >> False > > > [You don't need to wrap your floats in floa

Re: average of PIL images

2008-02-19 Thread vaneric
> > a) Work with the 3 components in parallel (that is, use 3 separate > matrices, one for each component, and regenerate the image at the > end). that wd be ok for image generation ..but to calculate covariance matrix from the set of images i don't know if it wd work eric -- http://mail.pyth

Re: ANN: Phatch = PHoto bATCH processor and renamer based on PIL

2008-02-19 Thread Fred Pacquier
Steve Holden <[EMAIL PROTECTED]> said : > Perhaps you could put a link to the source on the Windows instalL page? > I don't mind being a second-class citizen, but it's annoying to have to > jump around like that. I'm interested too, and was also wondering if Phatch is as full-featured unders W

Re: psycopg2: connect copy_from and copy_to

2008-02-19 Thread james . pye
On Feb 19, 9:23 am, Thomas Guettler <[EMAIL PROTECTED]> wrote: > Yes, you can use "pg_dump production ... | psql testdb", but > this can lead to dead locks, if you call this during > a python script which is in the middle of a transaction. The python > script locks a table, so that psql can't write

Re: Py_Finalize ERROR!

2008-02-19 Thread james . pye
On Feb 19, 12:11 am, zaley <[EMAIL PROTECTED]> wrote: > Py_Finalize ERROR! > > In my C++ program ,python is embeded . I create one win thread to run > embedded Python code . > So at the begin of thread function I call "Py_Initialize" and at the > end of thread function call "Py_Finalize" . > But af

Re: Double underscores -- ugly?

2008-02-19 Thread Hyuga
On Feb 19, 4:01 am, Duncan Booth <[EMAIL PROTECTED]> wrote: > Berwyn <[EMAIL PROTECTED]> wrote: > >> Is it just me that thinks "__init__" is rather ugly? Not to mention > >> "if __name__ == '__main__': ..."? > > > That ugliness has long been my biggest bugbear with python, too. The > > __name__ ==

Re: psycopg2: connect copy_from and copy_to

2008-02-19 Thread Chris
On Feb 19, 6:23 pm, Thomas Guettler <[EMAIL PROTECTED]> wrote: > > Doesn't PostGres come with Export/Import apps ? That would be easiest > > (and faster). > > Yes, you can use "pg_dump production ... | psql testdb", but > this can lead to dead locks, if you call this during > a python script which

  1   2   >