Frog 1.7 (blog server)

2005-10-08 Thread Irmen de Jong
I'm happy to announce the release of Frog 1.7 Frog is a Blog server application written for Snakelets. It is small but has many features, such as BBcode markup, XHTML+CSS page output, multiple users, no database required, anti-spam measures, email notification, Smileys, RSS feeds, and more.

Re: no variable or argument declarations are necessary.

2005-10-08 Thread Alex Martelli
Paul Rubin http://[EMAIL PROTECTED] wrote: [EMAIL PROTECTED] (Alex Martelli) writes: ap.py:4: No global (test) found ap.py:5: Local variable (ego1d) not used Helen:/tmp alex$ If you're so typo-prone and averse to unittests that you consider this kind of issue to be a serious

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

2005-10-08 Thread Alex Martelli
Simon Brunning [EMAIL PROTECTED] wrote: On 9/28/05, Steven D'Aprano [EMAIL PROTECTED] wrote: If *real* private and protected are *enforced*, Python will be the poorer for it. See http://groups.google.com/group/comp.lang.python/msg/b977ed1312e10b21. That's a wonderful, if long,

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

2005-10-08 Thread Alex Martelli
Kay Schluehr [EMAIL PROTECTED] wrote: Honestly I like to use private/protect/public modifiers in C++ for the sake of code documentation. I like to know which attributes are dedicated to be known by other objects, which ones are for internal use only and which ones should be at least publicly

Re: Extending Python

2005-10-08 Thread Alex Martelli
Micah Elliott [EMAIL PROTECTED] wrote: On Oct 05, Tuvas wrote: I am looking for a good tutorial on how to extend python with C code. I have an application built in C that I need to be able to use in Python. I have searched through various sources, starting of course with the Python site

Re: Simulating low bandwidth network on localhost

2005-10-08 Thread qvx
I forgot to tell you that I'm using Windows. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python's Performance

2005-10-08 Thread Laszlo Zsolt Nagy
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 such time-consuming operations? Is there

Re: os.access with wildcards

2005-10-08 Thread Fredrik Lundh
if glob.glob(...): ... As for your possible solutions, if you consider any of yours to be readable, then i have no interest in coding with you. if glob.glob(...): ... I guess, for readability, nothing has come up that seems _great_. if glob.glob(...): ... It works, it's elegant,

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

2005-10-08 Thread Alex Martelli
George Sakkis [EMAIL PROTECTED] wrote: Lasse Vågsæther Karlsen [EMAIL PROTECTED] wrote: Thanks, that looks like Mike's solution except that it uses the built-in heapq module. This make a big difference for the algorithmic complexity; replacing an item in a heap is much more efficient

Re: Google Not Universal Panacea [was: Re: Where to find python c-sources]

2005-10-08 Thread Alex Martelli
Steve Holden [EMAIL PROTECTED] wrote: ... Are people really too lazy to do elementary research on Google? goes a bit too far in imputing motives to the enquirer and overlooking the fact that there are some very good reasons for *not* using Google. It's a good thing you don't actually

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

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

Re: Contest snub?

2005-10-08 Thread Will McGugan
[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... an irrational fear of snakes

Re: PIL Image can't open png file with I?

2005-10-08 Thread Fredrik Lundh
James Hu wrote: I have png file with mode I, 16 bit, And I tried to open it with im=Image.open(output.png), im.show() I got all white image. Don't why? because all of the PNG file are larger than 255 ? show doesn't support 16-bit images, so it clamps the values down to an 8-bit range.

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

2005-10-08 Thread Steve Holden
Terry Hancock wrote: On Friday 07 October 2005 03:44 pm, Steve Holden wrote: Precisely because there *is* such a thing as a saving. If I buy a $100 gumball for $80 I have achieved a saving of 20%. Nope, that's incorrect American. ;-) You can say I bought a $100 gumball for $80, saving

Re: When someone from Britain speaks, Americans hear a Britishaccent...

2005-10-08 Thread Steve Holden
Duncan Smith wrote: Rocco Moretti wrote: [...] So English is spoken only in the South East of England, except London? I think you should also disbar the queen (unless she's already classified as a Londoner), due to her apparent confusion between the 1st person singular and 1st person plural

is there any Python code for spatial tessellation?

2005-10-08 Thread Shi Mu
is there any Python code for spatial tessellation? thanks a lot! -- http://mail.python.org/mailman/listinfo/python-list

Re: noob question Letters in words?

2005-10-08 Thread Fredrik Lundh
(re that earlier thread, I think that everyone that thinks that it's a good thing that certain Python constructs makes grammatical sense in english should read the previous post carefully...) Rob Cowie wrote: A string can be thought of as a tuple of characters. footnote: the correct python

Re: Continuous system simulation in Python

2005-10-08 Thread niels . ellegaard
I don't know much about numerical aerodynamics, but assume that you are interested in a finite element solver. I googled a bit and found the following projects. The first is a 2d finite element solver for python. The second is a 2d finite element solver without python.

Re: Feature Proposal: Sequence .join method

2005-10-08 Thread Alex Martelli
Michele Simionato [EMAIL PROTECTED] wrote: ... I have noticed a while ago that inside generators StopIteration is automatically trapped, i.e. def g(): yield 1 raise StopIteration yield Never reached only yields 1. Not sure if this is documented behavior, however, of if

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

2005-10-08 Thread Michael
Steve Holden wrote: ... Or is the green tomato also unacceptable? Of course it is. We all know* it should be the green fried tomato, or the killer tomato. :-) (is it me, or is the subject line for this thread silly? After all, what accent would you expect from someone in the UK? However,

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

2005-10-08 Thread Michael
Terry Hancock wrote: Well, yeah, although the correct pronunciation is apparently te-tra-HEE-dra-GON. As opposed to a te-tra-SHE-dra-GON ? ;-) Michael. -- http://mail.python.org/mailman/listinfo/python-list

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

2005-10-08 Thread Alex Willmer
On Fri, 2005-10-07 at 18:56 +0200, Fredrik Lundh wrote: Alex Willmer wrote: I'm trying to track down the name of a file format and python module, that was featured in the Daily Python URL some time in the last month or two. http://www.netpromi.com/kirbybase.html ? No I don't think

Re: Extending Python

2005-10-08 Thread gene tani
Yup, still there, issues 1 and 2 http://pyzine.com/Issue002/index.html Also recommend Dave Kuhlman's brief intro (open in your tabbed browser) http://www.rexx.com/~dkuhlman/python_201/python_201.html#SECTION00600 Alex Martelli wrote: Micah Elliott [EMAIL PROTECTED] wrote: On

Re: Python 2nd favorite language in Linux Journal poll

2005-10-08 Thread beliavsky
beza1e1 wrote: Hm, you didn't include a link and my google did not find the final results. I could not find a link, but the results appear on page 88 of the November 2005 issue of Linux Journal. -- http://mail.python.org/mailman/listinfo/python-list

Re: socketServer questions

2005-10-08 Thread rbt
On Fri, 2005-10-07 at 15:07 -0700, Paul Rubinhttp: wrote: rbt [EMAIL PROTECTED] writes: The server just logs data, nothing else. It's not private or important data... just sys admin type stuff (ip, mac addy, etc.). I just don't want some script kiddie discovering it and trying to 'hack' it.

how do you pronounce wxpython

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

Re: how do you pronounce wxpython

2005-10-08 Thread John J. Lee
Alex [EMAIL PROTECTED] writes: 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 I'm sure you'll get five different answers. Personally, I say the 'wx' bit as 'wooks' (like 'books' in Southern

Re: how do you pronounce wxpython

2005-10-08 Thread Sam Pointon
I'd always assumed it was doubleyew-ecks python, but it could be wicks python, or similar. -- http://mail.python.org/mailman/listinfo/python-list

Re: Continuous system simulation in Python

2005-10-08 Thread Michael
Nicolas Pernetty wrote: I'm looking for any work/paper/ressource about continuous system simulation using Python or any similar object oriented languages (or even UML theory !). I'm aware of SimPy for discrete event simulation, but I haven't found any work about continuous system. I would

Function decorator that caches function results

2005-10-08 Thread Lasse Vågsæther Karlsen
After working through a fair number of the challenges at www.mathschallenge.net, I noticed that some long-running functions can be helped *a lot* by caching their function results and retrieving from cache instead of calculating again. This means that often I can use a natural recursive

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

2005-10-08 Thread Steve Horsley
Steve Holden wrote: Then again, there's room for infinite disagreement about these topics. I mentioned a while ago that I disliked the English on a bumper sticker I liked, which read Some village in Texas is missing their idiot. Several people defended this, saying that a village could

Re: socketServer questions

2005-10-08 Thread Tim Williams (gmail)
On 07/10/05, rbt [EMAIL PROTECTED] wrote: I have written a python socketServer program and I have a few questions This is a multithreaded non-blocking version of your server (not tested), with a basic attempt to hande errors. from socket import * from SocketServer import * import time,

Re: Function decorator that caches function results

2005-10-08 Thread Duncan Booth
Lasse Vågsæther Karlsen wrote: However, this: for index in range(1, 101): print index, fibonacci(idx = index) this one uses the kwargs list of arguments, and I'm not sure how to change my function to take that into account. Does anyone have any clues as to how to do that? The

Re: Help creating extension for C function

2005-10-08 Thread Fredrik Lundh
Java and Swing wrote: I need to write an extension for a C function so that I can call it from python. C code (myapp.c) == typedef unsigned long MY_LONG; char *DoStuff(char *input, MY_LONG *x) { ... } so you pass in a string and an array of MY_LONGS...such as MY_LONGS vals[10] =

Re: When someone from Britain speaks, Americans hear a Britishaccent...

2005-10-08 Thread Duncan Smith
Steve Holden wrote: Duncan Smith wrote: Rocco Moretti wrote: [...] So English is spoken only in the South East of England, except London? I think you should also disbar the queen (unless she's already classified as a Londoner), due to her apparent confusion between the 1st person

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

2005-10-08 Thread EP
From: Alex Willmer [EMAIL PROTECTED] inquired I'm trying to track down the name of a file format and python module, that was featured in the Daily Python URL some time in the last month or two. The format was ASCII with a multiline header defining types for the comma seperated column

Re: Function decorator that caches function results

2005-10-08 Thread jepler
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 multiple times. ... except

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

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

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)

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 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]

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

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

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: snip Ok, here's my updated version: class cache(object): def __init__(self, timeout=0): self.timeout = timeout self.cache = {} def __call__(self, fn):

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

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

Re: Function decorator that caches function results

2005-10-08 Thread Lasse Vågsæther Karlsen
Fredrik Lundh wrote: snip k1 = fibonacci(100) k2 = fibonacci(idx = 100) snip 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

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: 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

[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

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

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/ --

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: 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 and

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

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] indeed. it is at

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

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: snip 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 good

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

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 such

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 lot of

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 website. My

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

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 -jesse

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.

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: 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: snip 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.

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

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 say

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

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

2005-10-08 Thread Lasse Vågsæther Karlsen
George Sakkis wrote: snip 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. snip Thanks, will take a look at it later. The sort solution seems to work nicely. Might

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] Cool, you

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 the

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 additional

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 need to

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: snip 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. snip Thanks, will take a look

Re: Function decorator that caches function results

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

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? /F -- http://mail.python.org/mailman/listinfo/python-list

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

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

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

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

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 like to

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... /F --

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? /F -- 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: 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 /F -- http://mail.python.org/mailman/listinfo/python-list

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: 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 section

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 course, my

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

Re: Weighted random selection from list of lists

2005-10-08 Thread Scott David Daniels
Jesse Noller wrote: paraphrased 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

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 this also

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: 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 two

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 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 bug

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: 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

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:

  1   2   >