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

2005-10-08 Thread Fredrik Lundh
Lasse Vågsæther Karlsen wrote: > In other words, what is the difference between a "scripting language" > and a "programming language". here's one useful way to look at things: "Unlike mainstream component programming, scripts usually do not introduce new components but simply "wire" exis

Re: Jargons of Info Tech industry

2005-10-08 Thread Gordon Burditt
>>HTML enables a heck of a lot of problems: "web bugs" in email, >>links to fake sites that appear as real ones in what shows up >>on the screen, Javascript viruses, denial-of-service attacks >>(pages that open two windows when you close one), etc. >> >>>That is like hating all choirs because tele

Re: Continuous system simulation in Python

2005-10-08 Thread phil_nospam_schmidt
Nicholas, I have a particular interest in this subject as well. I've also used the Python/Scipy combination, and it is a tantalizing combination, but I found it to be a bit more clumsy than I'd like. Plus, my need for continuous-time simulation is not as great as it has been in the past. That sai

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

2005-10-08 Thread Donn Cave
Quoth Lasse_Vgsther_Karlsen <[EMAIL PROTECTED]>: | Brandon K wrote: |> Hrm...i find it demeaning to relegate Python to a scripting language |> while Visual Basic is in the "software development" section. Python so |> outdoes VB in every way shape and form. | | | In that respect I would very

Re: Jargons of Info Tech industry

2005-10-08 Thread Paul Rubin
Mike Meyer <[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. > > You don't need a grahics browser - you just need a browser. Right, precisely. I use lynx, as I explained. It renders the html as

Re: Jargons of Info Tech industry

2005-10-08 Thread Mike Meyer
Paul Rubin 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. 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. Work

Re: Jargons of Info Tech industry

2005-10-08 Thread Paul Rubin
Lasse Vågsæther Karlsen <[EMAIL PROTECTED]> writes: > 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. I read mail over an ssh connection to a Unix shell. I have no easy way to

Re: Daisy Daisy, give me your answer do

2005-10-08 Thread James Stroud
On Saturday 08 October 2005 16:26, Sam wrote: > Xah Lee writes: > > Dear Michael Goettsche, > > > > why don't you lead the pack to be on-topic for a change, huh? > > Why don't you: > > 1. Learn how to properly format messages for posting to Usenet, so that > your scribblings don't read like stream

Re: Jargons of Info Tech industry

2005-10-08 Thread Matt Garrish
"John Bokma" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Rich Teer <[EMAIL PROTECTED]> wrote: > >> On Sun, 9 Oct 2005, 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 tha

Re: Jargons of Info Tech industry

2005-10-08 Thread Paul Boddie
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), pop-up( disable > popups) etc.? People in their sky-cars turning off JavaScript in

Re: how do you pronounce wxpython

2005-10-08 Thread Paul Boddie
George Sakkis wrote: > I am sure it is pronounced the same way as wxWidgets . Which is in turn pronounced the same way as wxWindows. As to how that's pronounced, I'd suggest asking Microsoft's lawyers whose actions in "defending" an arguably dubious trademark possibly involved investigating this i

Re: [regex] case-splitting strings in unicode

2005-10-08 Thread Micah Elliott
On Oct 09, 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 st

Re: Book "Python and Tkinter Programming"

2005-10-08 Thread Dick Moores
DaveInSidney wrote at 15:55 10/8/2005: >Check out BestBookBuys: >http://www.bestwebbuys.com/Python_and_Tkinter_Programming-ISBN_1884777813.html?isrc=b-search Or even better, BestBookDeal.com: Dick Moores -- http://mail.python.org/mailman/lis

Re: New Python book

2005-10-08 Thread hrh1818
The title is very misleading. The book is a nice introduction to Python, covers the high lights of Python without getting bogged down in detail and the author has a lively writing style. But the book has very litle to entice professional programmers. Dick Moores wrote: > (Sorry, my previous post

Re: Jargons of Info Tech industry

2005-10-08 Thread Mike Meyer
Roedy Green <[EMAIL PROTECTED]> writes: > This is one of the marvels of CSS once you get the hang of it. If you > don't like bright red letters on green backgrounds, you can CHANGE > that. You can change the fonts, sizes etc etc. You can if you want get > something very like plain ASCII text. Sho

[regex] case-splitting strings in unicode

2005-10-08 Thread John Perks and Sarah Mount
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 testing the unicodedata.category of each char, b

Re: Jargons of Info Tech industry

2005-10-08 Thread Mike Meyer
Roedy Green <[EMAIL PROTECTED]> writes: > On Sat, 08 Oct 2005 17:41:38 -0400, Mike Meyer <[EMAIL PROTECTED]> wrote > or quoted : >>If you've got a browser with a better solution, what's the browser, >>and what's the solution? > Try Opera. You can merge the two. Merge the two CSS files? Most brow

Re: Jargons of Info Tech industry

2005-10-08 Thread John Bokma
Rich Teer <[EMAIL PROTECTED]> wrote: > On Sun, 9 Oct 2005, 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. > > Not here. I've configured

Re: Jargons of Info Tech industry

2005-10-08 Thread John Bokma
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 (as in attached)? with the email? > Sending photos > is an example

Re: Jargons of Info Tech industry

2005-10-08 Thread Rich Teer
On Sun, 9 Oct 2005, 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. Not here. I've configured my email server to reject HTML emails before I e

Re: Jargons of Info Tech industry

2005-10-08 Thread Rich Teer
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? Sending photos is an example of what attachments are for. > -- > Canadian Mind Products, Roedy Green. > http://mindprod.com Again taking new Java progra

Re: Daisy Daisy, give me your answer do

2005-10-08 Thread Sam
Xah Lee writes: Dear Michael Goettsche, why don't you lead the pack to be on-topic for a change, huh? Why don't you: 1. Learn how to properly format messages for posting to Usenet, so that your scribblings don't read like stream-of-consciousness babbling (see http://en.wikipedia.org/wiki/

Re: CSV like file format featured recently in Daily Python URL?

2005-10-08 Thread Alex Willmer
On Thu, 2005-10-06 at 07:44 -0800, EP wrote: > Was it something like ARFF? http://www.cs.waikato.ac.nz/~ml/weka/arff.html Yes that was it thankyou. Although it would seem there isn't a general python module, rather a Cookbook script to perform conversion to SQL. I must have confused ARFF with HDF

Re: how do you pronounce wxpython

2005-10-08 Thread George Sakkis
"Alex" <[EMAIL PROTECTED]> wrote: > My native language is not English so I just wonder how you pronounce > wxPython. > > vi-ex python > double-you-ex python > wax-python > > or something else > > Thanks I am sure it is pronounced the same way as wxWidgets . George -- http://mail.python.org/ma

Pyzine article Python and MIDI

2005-10-08 Thread Gorlon the Impossible
ok, here's a long shot: would anyone here who subscribes to Pyzine be willing to send me the article on Python and MIDI from Issue #6? I would be eternally grateful as I am strapped for funds and cannot justify spending the money for a 1 yr subscription when i am only interested in this one article

Re: Book "Python and Tkinter Programming"

2005-10-08 Thread DaveInSidney
Check out BestBookBuys: http://www.bestwebbuys.com/Python_and_Tkinter_Programming-ISBN_1884777813.html?isrc=b-search -- .. Remove NOSPAM. before replying Pursuant to U.S. code, title 47, Chapter 5, Subchapter II, Section 227 Any

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

2005-10-08 Thread Brandon K
> In other words, what is the difference between a "scripting language" > and a "programming language". > Good point. == Posted via Newsgroups.com - Usenet Access to over 100,000 Newsgroups == Get Anonymous, Uncensored, Access to West and East Coast Server Farms! == Highest Rete

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

2005-10-08 Thread Lasse Vågsæther Karlsen
Brandon K wrote: > Hrm...i find it demeaning to relegate Python to a scripting language > while Visual Basic is in the "software development" section. Python so > outdoes VB in every way shape and form. > In that respect I would very much like to see a definition of "scripting language" as w

Re: Jargons of Info Tech industry

2005-10-08 Thread John Bokma
Roedy Green <[EMAIL PROTECTED]> wrote: > On Tue, 04 Oct 2005 17:57:13 -, [EMAIL PROTECTED] (Gordon > Burditt) wrote or quoted : > >> >>HTML enables a heck of a lot of problems: "web bugs" in email, >>links to fake sites that appear as real ones in what shows up >>on the screen, Javascript vi

Re: Jargons of Info Tech industry

2005-10-08 Thread Roedy Green
On Sun, 09 Oct 2005 00:03:05 +0200, Lasse Vågsæther Karlsen <[EMAIL PROTECTED]> wrote or quoted : >On one side you got control freaks who condemn everyone who dares send >an email with something other than what you've got your own email set up >to use. "You dare specify the font sized when I fin

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

2005-10-08 Thread Brandon K
[EMAIL PROTECTED] wrote: > I've launched a new forum not too long ago, and I invite you all to go > there: www.wizardsolutionsusa.com (click on the forum link). We offer > all kinds of help, and for those of you who just like to talk, there's > a chit chat section just for you...Just remember that

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

2005-10-08 Thread Brandon K
Hrm...i find it demeaning to relegate Python to a scripting language while Visual Basic is in the "software development" section. Python so outdoes VB in every way shape and form. > I've launched a new forum not too long ago, and I invite you all to go > there: www.wizardsolutionsusa.com (clic

Re: Jargons of Info Tech industry

2005-10-08 Thread Roedy Green
On Sat, 08 Oct 2005 17:41:38 -0400, Mike Meyer <[EMAIL PROTECTED]> wrote or quoted : >If you've got a browser with a better solution, what's the browser, >and what's the solution? Try Opera. You can merge the two. -- Canadian Mind Products, Roedy Green. http://mindprod.com Again taking new Java

Re: Jargons of Info Tech industry

2005-10-08 Thread Roedy Green
On Tue, 04 Oct 2005 17:57:13 -, [EMAIL PROTECTED] (Gordon Burditt) wrote or quoted : > >HTML enables a heck of a lot of problems: "web bugs" in email, >links to fake sites that appear as real ones in what shows up >on the screen, Javascript viruses, denial-of-service attacks >(pages that open

Re: Jargons of Info Tech industry

2005-10-08 Thread Mike Meyer
Roedy Green <[EMAIL PROTECTED]> writes: > On Tue, 04 Oct 2005 17:57:13 -, [EMAIL PROTECTED] (Gordon > Burditt) wrote or quoted : > >>HTML enables a heck of a lot of problems: "web bugs" in email, >>links to fake sites that appear as real ones in what shows up >>on the screen, Javascript virus

Re: Jargons of Info Tech industry

2005-10-08 Thread Lasse Vågsæther Karlsen
Mike Meyer wrote: > If you've got a browser with a better solution, what's the browser, > and what's the solution? There is no single solution. On one side you got control freaks who condemn everyone who dares send an email with something other than what you've got your own email set up to use.

Re: Jargons of Info Tech industry

2005-10-08 Thread Mike Meyer
Roedy Green <[EMAIL PROTECTED]> writes: > 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-ride >>my choice. I

Re: Daisy Daisy, give me your answer do

2005-10-08 Thread Xah Lee
Dear Michael Goettsche, why don't you lead the pack to be on-topic for a change, huh? Xah Michael Goettsche wrote: > On Saturday 08 October 2005 22:10, Xah Lee wrote: > > there is a MacPerl program posted in 1998 that uses Mac's speech synth > > to sing Daisy Bell. > > See: > > > > http://bumpp

Re: Continuous system simulation in Python

2005-10-08 Thread Nicolas Pernetty
Simulink is well fitted for small simulators, but when you run into big projects, I find many shortcomings appears which made the whole thing next to unusable for our kind of projects. That's why I'm interested in Python by the way, it is not a simple clone like Scilab/Scicos. It is a real languag

Re: socketServer questions

2005-10-08 Thread Paul Rubin
rbt <[EMAIL PROTECTED]> writes: > Off-topic here, but you've caused me to have a thought... Can hmac be > used on untrusted clients? Clients that may fall into the wrong hands? > How would one handle message verification when one cannot trust the > client? What is there besides hmac? Thanks, rbt I

Re: Jargons of Info Tech industry

2005-10-08 Thread Roedy Green
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% >oversized. that is like giving up Java because there was a b

Re: Jargons of Info Tech industry

2005-10-08 Thread Roedy Green
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-ride >my choice. Invariably they use a font I don't even have. I

Re: Jargons of Info Tech industry

2005-10-08 Thread Roedy Green
On Tue, 04 Oct 2005 17:57:13 -, [EMAIL PROTECTED] (Gordon Burditt) wrote or quoted : >HTML enables a heck of a lot of problems: "web bugs" in email, >links to fake sites that appear as real ones in what shows up >on the screen, Javascript viruses, denial-of-service attacks >(pages that open t

Re: Daisy Daisy, give me your answer do

2005-10-08 Thread Lasse Vågsæther Karlsen
Leave Xah Lee alone, he's a troll, he got no interested in doing anything but to provoke people on usenet. -- Lasse Vågsæther Karlsen http://usinglvkblog.blogspot.com/ mailto:[EMAIL PROTECTED] PGP KeyID: 0x2A42A1C2 -- http://mail.python.org/mailman/listinfo/python-list

Re: Daisy Daisy, give me your answer do

2005-10-08 Thread Michael Goettsche
On Saturday 08 October 2005 22:10, Xah Lee wrote: > 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? > > PS i'm posting th

Re: Weighted "random" selection from list of lists

2005-10-08 Thread Scott David Daniels
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: > 60% from list 1 (main_list[0]), 30% from list 2 (main_list[1]), 10% from list > 3 (main_

Daisy Daisy, give me your answer do

2005-10-08 Thread Xah Lee
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? PS i'm posting this also in python and lisp group, i hope it'd be some general int

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

2005-10-08 Thread Lasse Vågsæther Karlsen
Fredrik Lundh wrote: > Lasse Vågsæther Karlsen wrote: > > >>Don't think so matey. > > > oh, come on. a site run by some random guy in North Carolina has to be > safer, faster and more reliable than a distributed communication system that > has been around since that guy was born... Yes, of co

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

2005-10-08 Thread Grant Edwards
On 2005-10-08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I've launched a new forum not too long ago, and I invite you all to go > there: www.wizardsolutionsusa.com (click on the forum link). We offer > all kinds of help, and for those of you who just like to talk, there's > a chit chat secti

Re: how do you pronounce wxpython

2005-10-08 Thread Grant Edwards
On 2005-10-08, Alex <[EMAIL PROTECTED]> wrote: > My native language is not English so I just wonder how you pronounce > wxPython. > > vi-ex python > double-you-ex python > wax-python The second one. -- Grant Edwards grante Yow! HELLO, everybody,

Re: Help creating extension for C function

2005-10-08 Thread Fredrik Lundh
>seq = PySequence_Fast(data, "expected a sequence"); >if (!seq) >return NULL; here's some more information on the PySequence_Fast API: http://www.effbot.org/zone/python-capi-sequences.htm -- http://mail.python.org/mailman/listinfo/python-list

Re: noob question Letters in words?

2005-10-08 Thread Rob Cowie
Well.. that put me in my place! Fredrik Lundh - I hadn't realised that 'is' does not test for equivalence. Thanks for the advice. -- http://mail.python.org/mailman/listinfo/python-list

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

2005-10-08 Thread Fredrik Lundh
Michael Goettsche wrote: > Besides that, it's cheap advertising. Would it have been harder to post the > direct forum link than to link to his company's website? company? -- http://mail.python.org/mailman/listinfo/python-list

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

2005-10-08 Thread Fredrik Lundh
Lasse Vågsæther Karlsen wrote: > Don't think so matey. oh, come on. a site run by some random guy in North Carolina has to be safer, faster and more reliable than a distributed communication system that has been around since that guy was born... -- http://mail.python.org/mailman/listinfo/

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

2005-10-08 Thread Michael Goettsche
On Saturday 08 October 2005 21:15, Lasse Vågsæther Karlsen wrote: > [EMAIL PROTECTED] wrote: > > I've launched a new forum not too long ago, and I invite you all to go > > there: www.wizardsolutionsusa.com (click on the forum link). We offer > > all kinds of help, and for those of you who just lik

Geocoding and python

2005-10-08 Thread Andrew Gwozdziewycz
Does anyone know of a python module that can read and search the tiger line data for geolocation? Currently, I can use xmlrpc to query geocoder.us but I'd rather not be querying their server if I don't have to. Thanks --- Andrew Gwozdziewycz [EMAIL PROTECTED] http://ihadagreatview.org http:

Re: Contest snub?

2005-10-08 Thread [EMAIL PROTECTED]
Will McGugan wrote: > [EMAIL PROTECTED] wrote: > > Notice anything strange here? The Python entry seems to have edged the PHP > > entries, but is not declared the victor. Source is missing as well (the > > archive > > is empty.) > > > > http://www.apress.com/promo/fractal/seesource.html > > > > H

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

2005-10-08 Thread Lasse Vågsæther Karlsen
[EMAIL PROTECTED] wrote: > I've launched a new forum not too long ago, and I invite you all to go > there: www.wizardsolutionsusa.com (click on the forum link). We offer > all kinds of help, and for those of you who just like to talk, there's > a chit chat section just for you...Just remember that

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

2005-10-08 Thread csheppard91
I've launched a new forum not too long ago, and I invite you all to go there: www.wizardsolutionsusa.com (click on the forum link). We offer all kinds of help, and for those of you who just like to talk, there's a chit chat section just for you...Just remember that forum communication is much easi

Re: Weighted "random" selection from list of lists

2005-10-08 Thread Peter Otten
Jesse Noller wrote: > I'm probably missing something here, but I have a problem where I am > populating a list of lists like this: > > list1 = [ 'a', 'b', 'c' ] > list2 = [ 'dog', 'cat', 'panda' ] > list3 = [ 'blue', 'red', 'green' ] > > main_list = [ list1, list2, list3 ] > > Once main_list is

Re: Python's Performance

2005-10-08 Thread Fredrik Lundh
Dave wrote: > Yes, I would like to know how many internal string operations are done inside > the Python interpreter. when you're doing what? how do you define "internal string operations", btw? -- http://mail.python.org/mailman/listinfo/python-list

Re: Function decorator that caches function results

2005-10-08 Thread Lasse Vågsæther Karlsen
George Sakkis wrote: > Cool, you re-invented the memoization pattern: > http://en.wikipedia.org/wiki/Memoization > http://aspn.activestate.com/ASPN/search?query=memoize&x=0&y=0§ion=PYTHONCKBK&type=Subsection > > Yes, it's kinda discouraging that most interesting ideas have already been > conceiv

Re: Merging sorted lists/iterators/generators into one stream of values...

2005-10-08 Thread George Sakkis
"Lasse Vågsæther Karlsen" <[EMAIL PROTECTED]> wrote: > George Sakkis wrote: > > > Just added a recipe at > > http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/440673. You can try > > both and see if there's any significant performance difference for your > > data. > > > Thanks, will take

Re: Python's Performance

2005-10-08 Thread Fredrik Lundh
Paul Boddie wrote: >> There are benchmarks testing the *real performance* of Python. >> >> For example: http://www.osnews.com/story.php?news_id=5602 > > Just the observation that there are 166 comments to that article would > suggest that the methodology employed was somewhat debatable. (I don't >

Re: Jargons of Info Tech industry

2005-10-08 Thread David H Wild
In article <[EMAIL PROTECTED]>, Tim Tyler <[EMAIL PROTECTED]> wrote: > Plain text is a badly impoverished medium for explaining things in. > For one thing, code on my web site tends to get syntax highlighted. > There's no way I could do that in plain text. On your web site the use of addition

RE: Will python never intend to support private, protected and public?

2005-10-08 Thread Robert Brewer
Title: RE: Will python never intend to support private, protected and public? Alex Martelli wrote: > I used to like [double-underscore private names], but as time > goes by have come to like it less and less; right now, > unless I have to respect existing coding standards, > I entirely avoid

Re: Function decorator that caches function results

2005-10-08 Thread George Sakkis
"Lasse Vågsæther Karlsen" <[EMAIL PROTECTED]> wrote: > [snip] > > 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. > > [snip] C

Re: Merging sorted lists/iterators/generators into one stream of values...

2005-10-08 Thread Lasse Vågsæther Karlsen
George Sakkis wrote: > Just added a recipe at > http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/440673. You can try > both and see if there's any significant performance difference for your data. Thanks, will take a look at it later. The sort solution seems to work nicely. Might be a b

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

2005-10-08 Thread ddelay
Hello everybody, I just like to know what all of you think of adding this functionnality to python language, or  any other object oriented language in fact. (English is not my natural language so please e-mail if you can improve this text...) x.( ... ? ... )  could be equivalent to ( ... x

Codetags (also Pylint/Pychecker + Variable declarations)

2005-10-08 Thread Fried Egg
* Codetag PEP: ** I would like to comment on the codetags PEP, which I give a 0+. I think the end "<>" is bad; I would be in favor of a block system or something that looks more like regular Python (e.g. "# :FIXME(line_count=10, date='2005-08-09', ...) "). ** As to the comments that sa

Re: os.access with wildcards

2005-10-08 Thread mike
ugly. i guess this thread shows that you are clueless regarding your thread crapping. -- http://mail.python.org/mailman/listinfo/python-list

Re: Merging sorted lists/iterators/generators into one stream of values...

2005-10-08 Thread George Sakkis
"Lasse Vågsæther Karlsen" <[EMAIL PROTECTED]> wrote: > Alex Martelli wrote: > > George Sakkis <[EMAIL PROTECTED]> wrote: > > >>Yes, it's a little inconvenient that the builtin heap doesn't take a > >>comparison operation but you can easily roll your own heap by transforming > >>each item to a (ke

socket.setdefaulttimeout()

2005-10-08 Thread rtilley
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? -- http://mail.python.org/mailman/listinfo/python-list

Re: Continuous system simulation in Python

2005-10-08 Thread Sébastien Boisgérault
Simulink is a framework widely used by the control engineers ... It is not *perfect* but the ODEs piece is probably the best part of the simulator. Why were you not convinced ? You may also have a look at Scicos and Ptolemy II. These simulators are open-source ... but not based on Python. Cheers

Re: Weighted "random" selection from list of lists

2005-10-08 Thread Ron Adam
Jesse Noller wrote: > 60% from list 1 (main_list[0]) > 30% from list 2 (main_list[1]) > 10% from list 3 (main_list[2]) > > I know how to pull a random sequence (using random()) from the lists, > but I'm not sure how to pick it with the desired percentages. > > Any help is appreciated, thanks >

dis.dis question

2005-10-08 Thread Ron Adam
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. I'm experimenting with modifying the dis module so that it returns it's results instead of using 'print' it as it goes. I want to ma

Re: Jargons of Info Tech industry

2005-10-08 Thread Tim Tyler
Alan Balmer <[EMAIL PROTECTED]> wrote or quoted: > On Tue, 04 Oct 2005 17:14:45 GMT, Roedy Green > >I try to explain Java each day both on my website on the plaintext > >only newsgroups. It is so much easier to get my point across in HTML. > > > >Program listings are much more readable on my websi

Re: Python's Performance

2005-10-08 Thread Dave
Yes, I would like to know how many internal string operations are done inside the Python interpreter.   Thanks. Laszlo Zsolt Nagy <[EMAIL PROTECTED]> wrote: 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

Re: Python's Performance

2005-10-08 Thread Phillip J. Eby
Laszlo Zsolt Nagy wrote: > 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 su

Weighted "random" selection from list of lists

2005-10-08 Thread Jesse Noller
Hello - I'm probably missing something here, but I have a problem where I am populating a list of lists like this: list1 = [ 'a', 'b', 'c' ] list2 = [ 'dog', 'cat', 'panda' ] list3 = [ 'blue', 'red', 'green' ] main_list = [ list1, list2, list3 ] Once main_list is populated, I want to build a se

Re: Merging sorted lists/iterators/generators into one stream of values...

2005-10-08 Thread Lasse Vågsæther Karlsen
Alex Martelli wrote: > George Sakkis <[EMAIL PROTECTED]> wrote: >>Yes, it's a little inconvenient that the builtin heap doesn't take a >>comparison operation but you can easily roll your own heap by transforming >>each item to a (key,item) tuple. Now that I'm thinking about it, it might >>be a goo

Re: Python for search engine development

2005-10-08 Thread Alex Martelli
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Well, Google applies some Python in their implementation, see > http://www-db.stanford.edu/~backrub/google.html "Some" is correct. As for writing a search engine in Python _only_, hmmm -- I honestly don't know. You could surely develop a working im

Re: Merging sorted lists/iterators/generators into one stream of values...

2005-10-08 Thread Tim Peters
[Alex Martelli] >>> try it (and read the Timbot's article included in Python's sources, and the >>> sources themselves)... [Kay Schluehr] >> Just a reading advise. The translated PyPy source >> pypy/objectspace/listsort.py might be more accessible than the >> corresponding C code. [cfbolz] > inde

Re: List performance and CSV

2005-10-08 Thread jepler
You'll probably see a slight speed increase with something like for a in CustomersToMatch: for b in Customers: if a[2] == b[2]: a[1] = b[1] break But a really fast approach is to use a dictionary or other structure that turns the inner loop in

Re: Force flushing buffers

2005-10-08 Thread Robert Wierschke
Madhusudan Singh schrieb: > Hi > > I have a python application that writes a lot of data to a bunch of > files > from inside a loop. Sometimes, the application has to be interrupted and I > find that a lot of data has not yet been writen (and hence is lost). How do > I flush the buffer an

Re: Python's Performance

2005-10-08 Thread Paul Boddie
Laszlo Zsolt Nagy wrote: > There are benchmarks testing the *real performance* of Python. > > For example: http://www.osnews.com/story.php?news_id=5602 Just the observation that there are 166 comments to that article would suggest that the methodology employed was somewhat debatable. (I don't need

Re: noob question Letters in words?

2005-10-08 Thread Ivan Shevanski
Thanks everyone for helping once again, lots of good ideas there Thanks, -Ivan _ FREE pop-up blocking with the new MSN Toolbar – get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ -- http://mail.python.or

Automatic response to your mail (Error)

2005-10-08 Thread Webmaster
The automatic reply to this e-mail which you should have received in response to your e-mail to [EMAIL PROTECTED] has not been defined. Please contact [EMAIL PROTECTED] for assistance. -- http://mail.python.org/mailman/listinfo/python-list

[ANN] Dabo 0.4.2 released!

2005-10-08 Thread Ed Leafe
We are pleased to announce the 0.4.2 release of Dabo, the 3-tier application framework for Python. The primary focus of our work for this release has been a tightening up of the various properties of many of the UI controls to create a more consistent interface. Since these control

Re: MD5 Help Page

2005-10-08 Thread Daniel 'Dang' Griffith
Nevermind--chr(0x64) is 'd', as in duh. --dang -- http://mail.python.org/mailman/listinfo/python-list

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

2005-10-08 Thread Steve Holden
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 -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC

Re: Function decorator that caches function results

2005-10-08 Thread Lasse Vågsæther Karlsen
Fredrik Lundh wrote: >>k1 = fibonacci(100) >>k2 = fibonacci(idx = 100) > whoever writes code like that deserves to be punished. > > I'd say this thread points to a misunderstanding of what keyword arguments > are, and how they should be used. the basic rule is that you shouldn't mix > and > ma

MD5 Help Page

2005-10-08 Thread Daniel 'Dang' Griffith
I'm referring to the text in http://www.python.org/doc/2.4.2/lib/module-md5.html, which shows the same thing I see in the Windows version of the help. The two examples show: '\xbbd\x9c\x83\xdd\x1e\xa5\xc9\xd9\xde\xc9\xa1\x8d\xf0\xff\xe9' as the output, and that is indeed what I see when I run th

Re: readline installation problem

2005-10-08 Thread Jesper
Hi Jian, I just struggled with the same problem - seems the python 2.4.2 does not recognise readline 5 I finally "solved" the problem by installing readline 4.2, and explicitly pointing out to configure where the readline library is ./configure --with-libs=/usr/local/lib/libreadline.a That fina

Re: Function decorator that caches function results

2005-10-08 Thread Lasse Vågsæther Karlsen
Lasse Vågsæther Karlsen wrote: > Sam Pointon wrote: > >> What about not storing args at all? Something like this: Ok, here's my updated version: class cache(object): def __init__(self, timeout=0): self.timeout = timeout self.cache = {} def __call__(self, fn):

Re: Function decorator that caches function results

2005-10-08 Thread Fredrik Lundh
Lasse Vågsæther Karlsen wrote: > Yeah, but as far as I can see it, this one too fails to recognize > situations where the function is called twice with essentially the same > values, except that in one call it uses named arguments: > > k1 = fibonacci(100) > k2 = fibonacci(idx = 100) > > this is es

List performance and CSV

2005-10-08 Thread Stephan
Hello, I'm working on a simple project in Python that reads in two csv files and compares items in one file with items in another for matches. I read the files in using the csv module, adding each line into a list. Then I run the comparision on the lists. This works fine, but I'm curious about p

Re: Function decorator that caches function results

2005-10-08 Thread Lasse Vågsæther Karlsen
Sam Pointon wrote: > What about not storing args at all? Something like this: > > def cache_function(func, args_list): > cache = {} > def cached_result(*args, **kwargs): > kwargs.update(dict(zip(args_list, args))) > if kwargs in cache: > return cache[kwargs] >

Re: Function decorator that caches function results

2005-10-08 Thread Lasse Vågsæther Karlsen
[EMAIL PROTECTED] wrote: > On Sat, Oct 08, 2005 at 01:53:28PM +, Duncan Booth wrote: > >>Unless the results stored in the cache are very large data structures, I >>would suggest that you simply store (args,kwargs) as the cache key and >>accept the hit that sometime you'll cache the same call

Re: Function decorator that caches function results

2005-10-08 Thread Sam Pointon
What about not storing args at all? Something like this: def cache_function(func, args_list): cache = {} def cached_result(*args, **kwargs): kwargs.update(dict(zip(args_list, args))) if kwargs in cache: return cache[kwargs] result = func(**kwargs)

  1   2   >