Re: socket.setdefaulttimeout()

2005-10-09 Thread Fredrik Lundh
"rtilley" wrote: > Perhaps this is a dumb question... but here goes. Should a socket client > and a socket server each have different values for > socket.setdefaulttimeout() what happens? Does the one with the shortest > timeout period end first? the timeout is a local setting, so the each process

Here I am again, same old arguments

2005-10-09 Thread CJ
Okay, same program, different issue. Thanks to the help that I was given I was able to complete my program to find variables in a list that were repeated, and display them once, and how many times they appeared in the list. And it worked great! But, being the perfectionist that I am, I

Re: What about letting x.( ... ? ... ) be equivalent to ( ... x ... )

2005-10-09 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > These 3 intermediate variables used to improve readability > can introduce bugs : you have to check that b, c and d are > not used anywhere else in the code. if you have a fear of introducing new local variables, you have problems that cannot be solved by syntax. -

Re: Jargons of Info Tech industry

2005-10-09 Thread Roedy Green
On Sat, 08 Oct 2005 23:33:13 GMT, Rich Teer <[EMAIL PROTECTED]> wrote or quoted : >WHat the hell has that got to do with HTML email? Sending photos >is an example of what attachments are for. Normally you send photos to grandma with captions under each photo. That is far more convenient for the

Re: Jargons of Info Tech industry

2005-10-09 Thread Roedy Green
On 8 Oct 2005 23:39:27 GMT, John Bokma <[EMAIL PROTECTED]> wrote or quoted : >Yeah, yeah, and 640K is enough for everybody. Same song, different tune. For how long. Surely attachments are a stop gap. Can you imagine people sharing images that way 100 years from now? Why should we wait for the f

Re: Jargons of Info Tech industry

2005-10-09 Thread Roedy Green
On Sun, 09 Oct 2005 04:44:25 -, [EMAIL PROTECTED] (Gordon Burditt) wrote or quoted : >And how do you fix the problem of unsolicited USENET articles? >(*ALL* of them are unsolicited to someone). Or unsolicited >email? Read my essay. http://mindprod.com/projects.html/mailreadernewsreader.htm

Re: Jargons of Info Tech industry

2005-10-09 Thread Roedy Green
On Sat, 08 Oct 2005 19:56:50 -0400, Mike Meyer <[EMAIL PROTECTED]> wrote or quoted : >Show us *examples*! Do you create a style sheet for every site you >visit that overrides there classes? What? Why don't you download a copy of Opera, see http://mindprod.com/jgloss/opera.html Then try out the f

Re: Here I am again, same old arguments

2005-10-09 Thread Fredrik Lundh
"CJ" wrote: >Well, for some reason, the FOR loop is altering two of my lists. Using > PRINT magic, I was able to narrow down the lines that were causing it. > But the question remains: Why is it doing this? I'm sure there's a simple > answer that I just overlooked in the manual or something.

Re: Jargons of Info Tech industry

2005-10-09 Thread Roedy Green
On Sat, 08 Oct 2005 23:35:40 GMT, Rich Teer <[EMAIL PROTECTED]> wrote or quoted : >If people want me to read their email, they should send it to me >in an open, universal format, which for email is plain text. It's >as simple as that. This is pulling a King Canute. There is not even a mechanism

Re: Jargons of Info Tech industry

2005-10-09 Thread Roedy Green
On 08 Oct 2005 18:59:39 -0700, Paul Rubin wrote or quoted : > >I read mail over an ssh connection to a Unix shell. I have no easy >way to read html email with a graphics browser. So the rest of the world should forgo rich communication because of your obsolete softwar

Re: Using command line args on Windows

2005-10-09 Thread Tim Roberts
Duncan Booth <[EMAIL PROTECTED]> wrote: >Fredrik Lundh wrote: > >> footnote: if you'd prefer to type "myscript myarg" instead, you might >> want to check out this tool: >> >> http://effbot.org/zone/exemaker.htm > >or even just do: > >SET PATHEXT=.py;%PATHEXT% > >and then "myscript myarg"

Re: Matching zero only once using RE

2005-10-09 Thread Tim Roberts
Mike Meyer <[EMAIL PROTECTED]> wrote: > >I think it's time to form a Committee for the Prevention of Regular >Expression Abuse. As I learned from personal experience, this is a disease which one contracts when moving to Python from Perl. Perl teaches you that the entire world is a string, and eve

Re: Jargons of Info Tech industry

2005-10-09 Thread David H Wild
In article <[EMAIL PROTECTED]>, Roedy Green <[EMAIL PROTECTED]> wrote: > I take it then you avoid browsers or use Lynx? No you FIX the > problems rather than wear a hair shirt. Same for email. Why should > rich expressions only be permitted to those with websites. > Between consenting adults

"import socket" error

2005-10-09 Thread [EMAIL PROTECTED]
Hi, I am following this tutorial https://www14.software.ibm.com/webapp/iwm/web/preLogin.do?source=dw-linux-pysocks&S_TACT=105AGX59&S_CMP=GR&ca=dgr-lnxw07PythonSockets ( free reg. req. ) The article told me to do this: [camus]$ python Python 2.4 (#1, Feb 20 2005, 11:25:45) [GCC 3.2.2 20030222 (Re

Question about StringIO

2005-10-09 Thread Frank Millman
Hi all I understand that StringIO creates a file-like object in memory. Is it possible to invoke another program, using os.system() or os.popen(), and use the < redirect operator, so that the other program reads my StringIO object as its input? I will provide more details if required, but hopefu

Re: "import socket" error

2005-10-09 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > I am following this tutorial > https://www14.software.ibm.com/webapp/iwm/web/preLogin.do?source=dw-linux-pysocks&S_TACT=105AGX59&S_CMP=GR&ca=dgr-lnxw07PythonSockets > ( free reg. req. ) > > The article told me to do this: > > [camus]$ python > Python 2.4 (#1, Feb 20 2005

Re: Function decorator that caches function results

2005-10-09 Thread Steven D'Aprano
On Sat, 08 Oct 2005 15:20:12 +0200, Lasse Vågsæther Karlsen wrote: > Ok, so I thought, how about creating a decorator that caches the > function results and retrieves them from cache if possible, otherwise it > calls the function and store the value in the cache for the next invokation. > > Thi

Re: Jargons of Info Tech industry

2005-10-09 Thread Dr.Ruud
Mike Meyer: > Paul Rubin: >> I read mail over an ssh connection to a Unix shell. I have no easy >> way to read html email with a graphics browser. > > You don't need a grahics browser - you just need a browser. I read > mail in emacs, and use emacs-w3m to view html in the mailer. Works for > most

Re: Python's Performance

2005-10-09 Thread Steven D'Aprano
On Sat, 08 Oct 2005 10:14:25 -0700, Phillip J. Eby wrote: > So, without meaning to, the benchmark author has demonstrated something > important about Python, which is that writing the obvious thing in > Python tends to work correctly, even if it sometimes takes longer to > run than it would take f

Re: [Pythoncard-users] Re: Pythoncard mental block

2005-10-09 Thread Alex Tweedly
Gregory Piñero wrote: The Python-Card guys are really helpful, <[EMAIL PROTECTED]>, you may have to register on sourceforge to get on their list. In the meantime I went ahead and cc'd them on this.  Python-Card guys, make sure to cc Steven as he may not be on the list. Thanks Greg.

Re: Weighted "random" selection from list of lists

2005-10-09 Thread Steven D'Aprano
On Sat, 08 Oct 2005 12:48:26 -0400, Jesse Noller wrote: > Once main_list is populated, I want to build a sequence from items > within the lists, "randomly" with a defined percentage of the sequence > coming for the various lists. For example, if I want a 6 item > sequence, I might want: > > 60% f

Re: What about letting x.( ... ? ... ) be equivalent to ( ... x ... )

2005-10-09 Thread al
Fredrik Lundh a écrit : > if you have a fear of introducing new local variables, you have problems > that cannot be solved by syntax. Dear Fredrik, I have read the original messages on fr.comp.lang.python, and I don't understand your answer. It is not about a fear of introducing new local varia

Re: Function decorator that caches function results

2005-10-09 Thread Paul Rubin
Steven D'Aprano <[EMAIL PROTECTED]> writes: > > def cache_function(fn): > > cache = {} > > def cached_result(*args, **kwargs): > > if args in cache: > > return cache[args] > > result = fn(*args, **kwargs) > > cache[args] = result > > return

Re: Jargons of Info Tech industry

2005-10-09 Thread Steven D'Aprano
On Sat, 08 Oct 2005 20:43:12 +, Roedy Green wrote: >>I liken it more to hating all viruses because some of them >>install keyloggers. > > I take it then you avoid browsers or use Lynx? No you FIX the > problems rather than wear a hair shirt. No, I avoid browsers that are broken, e.g. tho

Re: Jargons of Info Tech industry

2005-10-09 Thread Steven D'Aprano
On Sat, 08 Oct 2005 20:44:12 +, Roedy Green wrote: > On Wed, 05 Oct 2005 09:38:49 +1000, Steven D'Aprano > <[EMAIL PROTECTED]> wrote or quoted : > >>Yes it is. HTML means that after I've specified my email client use my >>favourite font, in the size I like, people send me emails that over-rid

Re: Jargons of Info Tech industry

2005-10-09 Thread Mike Meyer
Roedy Green <[EMAIL PROTECTED]> writes: > On Sun, 09 Oct 2005 04:44:25 -, [EMAIL PROTECTED] (Gordon > Burditt) wrote or quoted : > >>And how do you fix the problem of unsolicited USENET articles? >>(*ALL* of them are unsolicited to someone). Or unsolicited >>email? > > Read my essay. > http

Re: Jargons of Info Tech industry

2005-10-09 Thread Steven D'Aprano
On Sat, 08 Oct 2005 20:44:44 +, Roedy Green wrote: > On Wed, 05 Oct 2005 09:38:49 +1000, Steven D'Aprano > <[EMAIL PROTECTED]> wrote or quoted : > >>Even more invariably, they set the point size directly rather than in >>relative terms, and they are on Windows, where point sizes are about 20%

Re: Jargons of Info Tech industry

2005-10-09 Thread Steven D'Aprano
On Sun, 09 Oct 2005 00:03:05 +0200, Lasse Vågsæther Karlsen wrote: > Now, if you want to get into a big huff because someone you knows use a > font that is "slightly oversized" because of Windows, then I think you > missed the point of the email altogether, which was probably to convey a > mess

Re: Jargons of Info Tech industry

2005-10-09 Thread Steven D'Aprano
Oh, and another point... On Sun, 09 Oct 2005 00:03:05 +0200, Lasse Vågsæther Karlsen wrote: > But trying to keep your email world into a pure text-based > no-formatting-whatsoever world, that's a fantasy bubble that is bound to > burst, sooner rather than later. Nonsense. I can easily set up a

Re: Daisy Daisy, give me your answer do

2005-10-09 Thread Michael Goettsche
On Saturday 08 October 2005 23:39, Xah Lee wrote: > Dear Michael Goettsche, > > why don't you lead the pack to be on-topic for a change, huh? > > Xah > Because you are a moron. Unsubscribe from this list please and never come back. -- http://mail.python.org/mailman/listinfo/python-list

Re: Jargons of Info Tech industry

2005-10-09 Thread Steven D'Aprano
On Sat, 08 Oct 2005 22:25:23 +, Roedy Green wrote about HTML emails: > Just how long do you want to stall evolution? Evolution doesn't mean "use whatever broken solution Microsoft and Hotmail popularized, just because all my friends are using it." If and when somebody puts out a good rich te

Re: Function decorator that caches function results

2005-10-09 Thread Diez B. Roggisch
>>def cache_function(fn): >> cache = {} >> def cached_result(*args, **kwargs): >> if args in cache: >> return cache[args] >> result = fn(*args, **kwargs) >> cache[args] = result >> return result >> return cached_result > > > I'm curious... w

Re: What about letting x.( ... ? ... ) be equivalent to ( ... x ... )

2005-10-09 Thread Steve Holden
al wrote: > Fredrik Lundh a écrit : > >>if you have a fear of introducing new local variables, you have problems >>that cannot be solved by syntax. > > > Dear Fredrik, > > I have read the original messages on fr.comp.lang.python, and I don't > understand your answer. > > It is not about a fea

Re: Jargons of Info Tech industry

2005-10-09 Thread Paul Rubin
Roedy Green <[EMAIL PROTECTED]> writes: > >I read mail over an ssh connection to a Unix shell. I have no easy > >way to read html email with a graphics browser. > > So the rest of the world should forgo rich communication because of > your obsolete software? How could anything every evolve with

Re: Jargons of Info Tech industry

2005-10-09 Thread Steven D'Aprano
On Sun, 09 Oct 2005 07:19:29 +, Roedy Green wrote: > On Sat, 08 Oct 2005 23:33:13 GMT, Rich Teer <[EMAIL PROTECTED]> > wrote or quoted : > >>WHat the hell has that got to do with HTML email? Sending photos >>is an example of what attachments are for. > > Normally you send photos to grandma

Re: Jargons of Info Tech industry

2005-10-09 Thread Mike Meyer
Roedy Green <[EMAIL PROTECTED]> writes: > On Sat, 08 Oct 2005 19:56:50 -0400, Mike Meyer <[EMAIL PROTECTED]> wrote > or quoted : > >>Show us *examples*! Do you create a style sheet for every site you >>visit that overrides there classes? What? > > Why don't you download a copy of Opera, see > http

Re: Question about StringIO

2005-10-09 Thread Steve Holden
Frank Millman wrote: > Hi all > > I understand that StringIO creates a file-like object in memory. > > Is it possible to invoke another program, using os.system() or > os.popen(), and use the < redirect operator, so that the other program > reads my StringIO object as its input? > > I will provi

Re: Jargons of Info Tech industry

2005-10-09 Thread Steven D'Aprano
On Sun, 09 Oct 2005 07:40:55 +, Roedy Green wrote: > There is nothing wrong with formatted text. You are confusing > formatted text with spam. No. YOU are confusing HTML email (broken, dangerous, bad) with formatted text (maybe good, maybe bad). I've hated HTML emails well before I received

Re: Jargons of Info Tech industry

2005-10-09 Thread Steven D'Aprano
On Sun, 09 Oct 2005 07:42:18 +, Roedy Green wrote: > On 08 Oct 2005 18:59:39 -0700, Paul Rubin > wrote or quoted : > >> >>I read mail over an ssh connection to a Unix shell. I have no easy >>way to read html email with a graphics browser. > > So the rest of the w

Re: Jargons of Info Tech industry

2005-10-09 Thread Steven D'Aprano
On Sat, 08 Oct 2005 23:39:27 +, John Bokma wrote: > Rich Teer <[EMAIL PROTECTED]> wrote: > >> On Sat, 8 Oct 2005, Roedy Green wrote: >> >>> Some people use email PRIMARILY for sharing photos. >> >> WHat the hell has that got to do with HTML email? > > The photo doesn't have to be included

Re: Jargons of Info Tech industry

2005-10-09 Thread Mike Meyer
Roedy Green <[EMAIL PROTECTED]> writes: > There is no fundamental reason that formatted spam should have an > easier time penetrating your defenses than plain text spam. Formatted spam can include pictures of words. That's a common spam tactic - send a multipart/alternative with a text part that l

Re: Daisy Daisy, give me your answer do

2005-10-09 Thread Martin P. Hellwig
Michael Goettsche wrote: > You're asking "tech geekers" and "morons" to do this job? Isn't that a task > for somebody more professional like you? I think he's doing a shot to the position of open-source leader, judging on the replies he has got till so far, that shot was not really effective.

Re: Question about StringIO

2005-10-09 Thread Diez B. Roggisch
Frank Millman wrote: > Hi all > > I understand that StringIO creates a file-like object in memory. > > Is it possible to invoke another program, using os.system() or > os.popen(), and use the < redirect operator, so that the other program > reads my StringIO object as its input? No. Processes do

Re: "import socket" error

2005-10-09 Thread akbar
Fedora Core 4. -- http://mail.python.org/mailman/listinfo/python-list

Re: Jargons of Info Tech industry

2005-10-09 Thread Mike Meyer
"Dr.Ruud" <[EMAIL PROTECTED]> writes: > Let procmail make all those decisions and transformations for you. I prefer qmail dot-commands. It provides an architecture for controlling the delivery of email, and lets you write the smarts of the mail processing in whatever language you want. > I have a

Re: What about letting x.( ... ? ... ) be equivalent to ( ... x ... )

2005-10-09 Thread daniel delay
Fredrik Lundh a écrit : > [EMAIL PROTECTED] wrote: > > >>These 3 intermediate variables used to improve readability >>can introduce bugs : you have to check that b, c and d are >>not used anywhere else in the code. > > > if you have a fear of introducing new local variables, you have problems >

Re: Function decorator that caches function results

2005-10-09 Thread Steven D'Aprano
On Sun, 09 Oct 2005 02:49:38 -0700, Paul Rubin wrote: >> I'm curious... where does cache live after you use cache_function to >> memoize some function? It doesn't appear to be an attribute of the newly >> memoized function, nor does it look like a global variable. > > It's in the closure returned

Re: Daisy Daisy, give me your answer do

2005-10-09 Thread Sherm Pendley
"Xah Lee" <[EMAIL PROTECTED]> writes: > there is a MacPerl program posted in 1998 that uses Mac's speech synth > to sing Daisy Bell. > See: > > http://bumppo.net/lists/macperl/1998/11/msg00412.html > > can anyone modify it so it runs out of the box on today's OS X? For pre-Tiger OS versions you'l

Re: Jargons of Info Tech industry

2005-10-09 Thread Stefaan A Eeckels
On Sat, 08 Oct 2005 22:39:38 GMT Roedy Green <[EMAIL PROTECTED]> wrote: > So from an aesthetic point of view, once people learn how it works, > CSS lets sender and receiver compromise on what the message looks > like. No other medium gives ANY control to the receiver about how a > message is forma

Re: What is executed when in a generator

2005-10-09 Thread Michael
[ I've got no idea of your skill level, but since you say you feel a bit lost I'll take baby steps here. Apologies if it's too low or high :-) I'm also taking baby steps because less people understand generators than they might. After all, most new programmers often want something like gene

Re: new forum -- homework help/chit chat/easy communication

2005-10-09 Thread Lasse Vågsæther Karlsen
Fredrik Lundh wrote: > "Unlike mainstream component programming, scripts usually > do not introduce new components but simply "wire" existing > ones. Scripts can be seen as introducing behavior but no > new state. /.../ Of course, there is nothing to stop a > "scripting" langua

Re: Jargons of Info Tech industry

2005-10-09 Thread Dr.Ruud
Mike Meyer: > Try qmail - it may solve the problem with a lot less work. I checked my .procmailrc, and saw that mail with qmail anywhere in the headers, goes to a spambox here. ;) -- Affijn, Ruud "Gewoon is een tijger." -- http://mail.p

Re: Function decorator that caches function results

2005-10-09 Thread Fredrik Lundh
Steven D'Aprano wrote: > I notice that type(some_closure) and type(ordinary_function) both return > the same result, . I also notice that both the closure > and ordinary functions have an attribute "func_closure". Is there a way to > tell which is a closure and which is not? In my tests, the ordin

Re: Here I am again, same old arguments

2005-10-09 Thread Steven D'Aprano
On Sun, 09 Oct 2005 07:02:52 +, CJ wrote: >Okay, same program, different issue. Thanks to the help that I was > given I was able to complete my program to find variables in a list that > were repeated, and display them once, and how many times they appeared in > the list. And it worked

assigning in nested functions

2005-10-09 Thread jena
Hi I have code # BEGIN CODE def test(): def x(): print a a=2 # *** a=1 x() print a test() # END CODE This code fails (on statement print a in def x), if I omit line marked ***, it works (it prints 1\n1\n). It look like when I assign variable in nested function, I cannot acces

Re: Function decorator that caches function results

2005-10-09 Thread Steven D'Aprano
On Sun, 09 Oct 2005 13:43:38 +0200, Fredrik Lundh wrote: > Steven D'Aprano wrote: > >> I notice that type(some_closure) and type(ordinary_function) both return >> the same result, . I also notice that both the closure >> and ordinary functions have an attribute "func_closure". Is there a way to >

Re: Function decorator that caches function results

2005-10-09 Thread Diez B. Roggisch
> If you create a closure, using a memoization technique as per the original > post, and then call type() on that closure, Python reports . Because it is. The closure is only sort of an extension to the locals() available to that function. Not more, not less. > > If you use dir() on that closur

Re: new forum -- homework help/chit chat/easy communication

2005-10-09 Thread Fredrik Lundh
Lasse Vågsæther Karlsen wrote: > > > "Unlike mainstream component programming, scripts usually > > do not introduce new components but simply "wire" existing > > ones. Scripts can be seen as introducing behavior but no > > new state. /.../ Of course, there is nothing to stop a > >

Re: assigning in nested functions

2005-10-09 Thread Diez B. Roggisch
jena wrote: > Hi > I have code > > # BEGIN CODE > def test(): > def x(): >print a >a=2 # *** > > a=1 > x() > print a > > test() > # END CODE > > This code fails (on statement print a in def x), if I omit line marked > ***, it works (it prints 1\n1\n). It look like when I assign var

Re: assigning in nested functions

2005-10-09 Thread Fredrik Lundh
"jena" wrote: > I have code > > # BEGIN CODE > def test(): > def x(): > print a > a=2 # *** > > a=1 > x() > print a > > test() > # END CODE > > This code fails (on statement print a in def x), if I omit line marked > ***, it works (it prints 1\n1\n). It look like when I assign vari

Creating internet shortcuts

2005-10-09 Thread Richard Townsend
I've seen the python.faqts page: http://www.faqts.com/knowledge_base/view.phtml/aid/4475/fid/538 on how to create windows shortcuts using Python. Does anyone know if this be adapted to create internet shortcuts on windows? (as used for Favorites). Thank you, -- Richard -- http://mail.python.or

Re: dis.dis question

2005-10-09 Thread Ron Adam
Ron Adam wrote: > > Can anyone show me an example of of using dis() with a traceback? > > Examples of using disassemble_string() and distb() separately if > possible would be nice also. [cliped] > But I still need to rewrite disassemble_string() and need to test it > with tracebacks. > > C

Re: new forum -- homework help/chit chat/easy communication

2005-10-09 Thread Mike Meyer
Lasse Vågsæther Karlsen <[EMAIL PROTECTED]> writes: > Fredrik Lundh wrote: > >> "Unlike mainstream component programming, scripts usually >> do not introduce new components but simply "wire" existing >> ones. Scripts can be seen as introducing behavior but no >> new state. /.../ O

Re: assigning in nested functions

2005-10-09 Thread Paul Rubin
jena <[EMAIL PROTECTED]> writes: > # BEGIN CODE > def test(): > def x(): > print a > a=2 # *** > a=1 > x() > print a > > test() > # END CODE > > This code fails (on statement print a in def x), if I omit line marked > ***, it works (it prints 1\n1\n). It look like when I assign var

Re: When someone from Britain speaks, Americans hear a "British accent"...

2005-10-09 Thread Steve Horsley
Steve Holden wrote: > Steve Horsley wrote: > [...] >> >> The one that always makes me grit my teeth is "You have got to, don't >> you?". Well no, I do NOT got to, actually. Shudder! >> > Shouldn't that be "I don't have to got to"? > > regards > Steve Yes it should. -- http://mail.python.org/ma

Re: new forum -- homework help/chit chat/easy communication

2005-10-09 Thread Paul Rubin
"Fredrik Lundh" <[EMAIL PROTECTED]> writes: > Tcl is an early example of a something that started as a "reusable > command language" and turned into a "real programming language" > along the way: Yes, that's why tcl is such an awful language. And it happens all the time. It's better to just star

Re: What about letting x.( ... ? ... ) be equivalent to ( ... x ... )

2005-10-09 Thread daniel delay
Fredrik Lundh a écrit : > [EMAIL PROTECTED] wrote: > > >>These 3 intermediate variables used to improve readability >>can introduce bugs : you have to check that b, c and d are >>not used anywhere else in the code. > > > if you have a fear of introducing new local variables, you have problems >

Re: Function decorator that caches function results

2005-10-09 Thread Fredrik Lundh
Steven D'Aprano wrote: > Yes I did. Did you read my post? given that the wikipedia page says "a closure is an abstraction representing a function, plus the lexical environment (see static scoping) in which the function was created." and you're still focussing on type(function), it s

Re: What about letting x.( ... ? ... ) be equivalent to ( ... x ... )

2005-10-09 Thread Diez B. Roggisch
> There's something i don't understand : > > I've posted the original message you reply to yesterday, but I still > cannot see it in comp.lang.python, while I can see your reply, and my > reply to your reply. > > I tried with two different providers to get the messages, but with the > same res

Re: Jargons of Info Tech industry

2005-10-09 Thread Tim Tyler
In comp.lang.java.programmer Steven D'Aprano <[EMAIL PROTECTED]> wrote or quoted: > On Sun, 09 Oct 2005 07:19:29 +, Roedy Green wrote: > > Rich Teer <[EMAIL PROTECTED]>: > >>WHat the hell has that got to do with HTML email? Sending photos > >>is an example of what attachments are for. > > >

Re: Jargons of Info Tech industry

2005-10-09 Thread Tim Tyler
In comp.lang.java.programmer Mike Meyer <[EMAIL PROTECTED]> wrote or quoted: > The technial problems have been solved for over a decade. NeXT shipped > systems that used text/richtext, which has none of the problems that > HTML has. The problems are *social* - you've got to arrange for > people t

Re: Jargons of Info Tech industry

2005-10-09 Thread Tim Tyler
In comp.lang.java.programmer Mike Meyer <[EMAIL PROTECTED]> wrote or quoted: > Roedy Green <[EMAIL PROTECTED]> writes: > > Read my essay. > > http://mindprod.com/projects.html/mailreadernewsreader.html > > > > I talk around those problems. > > Actually, you present a design that forces a solution

Re: What about letting x.( ... ? ... ) be equivalent to ( ... x ... )

2005-10-09 Thread al
> It seems to me that what you proposed was a "solution", that seems > obvious only to you, to a problem perceived only by you. > > I am afraid you would have to work rather harder to persuade me that > there is a problem, let alone that you have found the solution to it. Hello, I never said th

Re: Jargons of Info Tech industry

2005-10-09 Thread Lasse Vågsæther Karlsen
Tim Tyler wrote: >>Only if your photos are so obscure and confusing that they need captions. >> >>"Here's Johnny with the dog. Here is Johnny with the dog again. This one >>is Johnny on his own. Here is the dog. Oh look, it is Johnny with the dog >>again -- that's the dog on the left, in case it i

Re: Jargons of Info Tech industry

2005-10-09 Thread Tim Tyler
In comp.lang.java.programmer Roedy Green <[EMAIL PROTECTED]> wrote or quoted: > Read my essay. > http://mindprod.com/projects.html/mailreadernewsreader.html FYI, this bit: ``Like ICQ, someone cannot send you mail without your prior permission. They can't send you mail because they don't have

Re: Jargons of Info Tech industry

2005-10-09 Thread Tim Tyler
In comp.lang.java.programmer Paul Boddie <[EMAIL PROTECTED]> wrote or quoted: > Roedy Green wrote: > > Just how long do you want to stall evolution? Do you imagine people > > 200 years from now will be still be using pure ASCII text unable to > > find a solution to JavaScript viruses (turn off JS

Re: Jargons of Info Tech industry

2005-10-09 Thread Tim Tyler
In comp.lang.java.programmer Mike Meyer <[EMAIL PROTECTED]> wrote or quoted: > Roedy Green <[EMAIL PROTECTED]> writes: > > On Sat, 08 Oct 2005 19:56:50 -0400, Mike Meyer <[EMAIL PROTECTED]> wrote > >>Show us *examples*! Do you create a style sheet for every site you > >>visit that overrides there

Re: Jargons of Info Tech industry

2005-10-09 Thread Tim Tyler
In comp.lang.java.programmer Mike Meyer <[EMAIL PROTECTED]> wrote or quoted: > Roedy Green <[EMAIL PROTECTED]> writes: > > On Sat, 08 Oct 2005 17:41:38 -0400, Mike Meyer <[EMAIL PROTECTED]> wrote: > >>If you've got a browser with a better solution, what's the browser, > >>and what's the solution?

Re: Function decorator that caches function results

2005-10-09 Thread Ron Adam
Steven D'Aprano wrote: > On Sat, 08 Oct 2005 15:20:12 +0200, Lasse Vågsæther Karlsen wrote: > > >>Ok, so I thought, how about creating a decorator that caches the >>function results and retrieves them from cache if possible, otherwise it >>calls the function and store the value in the cache for

Re: Function decorator that caches function results

2005-10-09 Thread Steven D'Aprano
On Sun, 09 Oct 2005 14:27:32 +0200, Fredrik Lundh wrote: > Steven D'Aprano wrote: > >> Yes I did. Did you read my post? > > given that the wikipedia page says > > "a closure is an abstraction representing a function, plus the > lexical environment (see static scoping) in which the funct

Re: Jargons of Info Tech industry

2005-10-09 Thread Stefaan A Eeckels
On Sun, 9 Oct 2005 13:44:42 GMT Tim Tyler <[EMAIL PROTECTED]> wrote: > In comp.lang.java.programmer Roedy Green > <[EMAIL PROTECTED]> wrote or quoted: > > > Read my essay. > > http://mindprod.com/projects.html/mailreadernewsreader.html It's gone :-) > FYI, this bit: > > ``Like ICQ, someone

Re: Jargons of Info Tech industry

2005-10-09 Thread Steven D'Aprano
On Sun, 09 Oct 2005 13:36:26 +, Tim Tyler wrote: > Since - in Roedy's essay - messages are digitally signed, authority > to advise about any email address updates would presumably be confined > to those people with access to the sender's private key. If I have the sender's private key, then I

Re: Jargons of Info Tech industry

2005-10-09 Thread Steven D'Aprano
On Sun, 09 Oct 2005 13:44:42 +, Tim Tyler wrote: > In comp.lang.java.programmer Roedy Green <[EMAIL PROTECTED]> wrote or quoted: > >> Read my essay. >> http://mindprod.com/projects.html/mailreadernewsreader.html > > FYI, this bit: > > ``Like ICQ, someone cannot send you mail without your p

Re: Function decorator that caches function results

2005-10-09 Thread Fredrik Lundh
Ron Adam wrote: > In effect, 'cache' and 'fn' are replaced by the objects they reference > before the cached_result function is returned. not really; accesses to "free variables" always go via special cell objects (rather than direct object references), and the compiler uses special byte codes fo

Re: Jargons of Info Tech industry

2005-10-09 Thread Steven D'Aprano
On Sun, 09 Oct 2005 15:50:12 +0200, Lasse Vågsæther Karlsen wrote: > Tim Tyler wrote: > >>>Only if your photos are so obscure and confusing that they need captions. >>> >>>"Here's Johnny with the dog. Here is Johnny with the dog again. This one >>>is Johnny on his own. Here is the dog. Oh look, i

Re: [Info] PEP 308 accepted - new conditional expressions

2005-10-09 Thread phil hunt
On Fri, 7 Oct 2005 01:05:12 -0500, Terry Hancock <[EMAIL PROTECTED]> wrote: > >GvR's syntax has the advantage of making grammatical sense in English (i.e. >reading it as written pretty much makes sense). I know, let's re-write Python to make it more like COBOL! That's bound to be a winner! -- E

Re: Function decorator that caches function results

2005-10-09 Thread Steven D'Aprano
On Sun, 09 Oct 2005 13:43:38 +0200, Fredrik Lundh wrote: >> If I wanted to inspect the value of cache, where would I find it? > > nowhere. at least no officially; see "Rebinding names in enclosing > scopes" in the design document for a discussion: > > http://www.python.org/peps/pep-0227.htm

Re: Function decorator that caches function results

2005-10-09 Thread Fredrik Lundh
Steven D'Aprano wrote: > > let's take it again, with emphasis on some important words: > > > > "a closure is an ABSTRACTION representing a function, PLUS the > > lexical ENVIRONMENT (see static scoping) in which the function > > was created." > > > >> If you create a closure, using a m

Re: Continuous system simulation in Python

2005-10-09 Thread Nicolas Pernetty
Hello Phil, I'm currently looking to see if I can build upon SimPy, thus making it an hybrid system simulator. That would be a great step for the community. Main difficulty would be to build a framework which isn't clumsy, like you said. I have close to no experience in Python and object oriented

Re: Function decorator that caches function results

2005-10-09 Thread Diez B. Roggisch
> Clearly there is no DISTINCT closure object. If there were, I wouldn't > need to ask how one can tell them apart, because type() would just report > that one was a function and one was a closure. I don't have a problem with > that. But read on... > > >>function objects always con- >>tain all th

Re: Function decorator that caches function results

2005-10-09 Thread Fredrik Lundh
Steven D'Aprano wrote: > "Each def or lambda expression that is executed will create a closure if > the body of the function or any contained function has free variables." > > Presumably that means that if there are no free variables, no closure > is created. you're quoting selectively; the word

Re: Jargons of Info Tech industry

2005-10-09 Thread Roel Schroeven
Steven D'Aprano wrote: > On Sat, 08 Oct 2005 23:39:27 +, John Bokma wrote: > > >>Rich Teer <[EMAIL PROTECTED]> wrote: >> >> >>>On Sat, 8 Oct 2005, Roedy Green wrote: >>> >>> Some people use email PRIMARILY for sharing photos. >>> >>>WHat the hell has that got to do with HTML email? >> >>T

Re: What about letting x.( ... ? ... ) be equivalent to ( ... x ... )

2005-10-09 Thread Daniel Delay
Diez B. Roggisch a écrit : > Apart from that, I don't think your proposal does any good - it is ugly > (or at least not less ugly than the things you want to fix) and confuses > the reader because of the colliding use of . for attribute access. There is no ambiguity ( in one case "." is followe

Re: Jargons of Info Tech industry

2005-10-09 Thread Rich Teer
On Sun, 9 Oct 2005, Roedy Green wrote: > Normally you send photos to grandma with captions under each photo. > That is far more convenient for the technopeasant receiver than > dealing with multiple attachments. And even more convenient is "Hey grandma, check out the latest photos on my web site:

Re: Jargons of Info Tech industry

2005-10-09 Thread paul
Tim Tyler wrote: > Javascript can be turned off in *mail readers* - by their manufacturers. Yes, mail readers, browsers, combined mail reading and Web browsing "suites", or whatever combination of functions you care to consider. In any case, in the not-exactly-unknown mail reader I use, I can't se

Re: Jargons of Info Tech industry

2005-10-09 Thread Rich Teer
On Sun, 9 Oct 2005, Roedy Green wrote: > This is pulling a King Canute. There is not even a mechanism in email > protocols to warn your correspondents of your demand. I have been Yes there is: the message my server sends someone sending me HTML says so quite plainly. That Outhouse (and presuma

Re: [regex] case-splitting strings in unicode

2005-10-09 Thread Martin v. Löwis
John Perks and Sarah Mount wrote: > I have to split some identifiers that are casedLikeThis into their > component words. In this instance I can safely use [A-Z] to represent > uppercase, but what pattern should I use if I wanted it to work more > generally? I can envisage walking the string testin

Re: Function decorator that caches function results

2005-10-09 Thread Ron Adam
Fredrik Lundh wrote: > Ron Adam wrote: > > >>In effect, 'cache' and 'fn' are replaced by the objects they reference >>before the cached_result function is returned. > > > not really; accesses to "free variables" always go via special cell objects > (rather than direct object references), and th

Re: Function decorator that caches function results

2005-10-09 Thread Steven D'Aprano
On Sun, 09 Oct 2005 18:00:13 +0200, Fredrik Lundh wrote: > Steven D'Aprano wrote: > >> "Each def or lambda expression that is executed will create a closure if >> the body of the function or any contained function has free variables." >> >> Presumably that means that if there are no free variable

Re: Python's Performance

2005-10-09 Thread Bruno Desthuilliers
Laszlo Zsolt Nagy a écrit : > Dave wrote: > >> Hello All, >> >> I would like to gather some information on Python's runtime >> performance. As far as I understand, it deals with a lot of string >> objects. Does it require a lot string processing during program >> execution? How does it handle

  1   2   >