Re: [Tutor] detecting a change in a iterable object (list, array, etc.)

2007-11-26 Thread Kent Johnson
Tim Michelsen wrote: > Hello, > would like to ask for your help on the following issue: > What procedure can I use to detect if there's a change when iterating > over a list? > > For instance if I want to extract the years 1997 and 1998 from the table > below and save them into separate files?

[Tutor] opening a javascript window and reading its source

2007-11-26 Thread Chiar Nimeni
i basicly need python to open a certain javascript window ... then read it's source ... how do i do that? - import urllib2 import cookielib cj = cookielib.CookieJar() opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj)) url = opener.open("The url that has a

Re: [Tutor] pipeline - what is it and how do I use it?

2007-11-26 Thread Ricardo Aráoz
Alan Gauld wrote: > "Ricardo Aráoz" <[EMAIL PROTECTED]> wrote > >> Check PyWinAuto, it might provide what you need. >> You can find it at : http://www.openqa.org/pywinauto/ >> > > Nice link thanks, I've not seen that before. > > Using ctypes/winall and PostMessage is not friendly. > > Alan G.

[Tutor] detecting a change in a iterable object (list, array, etc.)

2007-11-26 Thread Tim Michelsen
Hello, would like to ask for your help on the following issue: What procedure can I use to detect if there's a change when iterating over a list? For instance if I want to extract the years 1997 and 1998 from the table below and save them into separate files? How do I build the average only on t

Re: [Tutor] adding a new folder to Python's importable modules search path

2007-11-26 Thread tpc247
and for purposes of continuity TableParse should be replaced with My_Module ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] adding a new folder to Python's importable modules search path

2007-11-26 Thread tpc247
hey guys, thanks a lot for your insight (or lack thereof) which convinced me to try further investigation on what I might have left out. One significant point of correction: for purposes of simplification, I neglected to include for your review the fact that when I attempted to add my path to Pyth

Re: [Tutor] adding a new folder to Python's importable modules search path

2007-11-26 Thread Dave Kuhlman
On Sun, Nov 25, 2007 at 11:14:47PM -0800, Jeff Younker wrote: > > > so when I run my script from the command line, the folder does seem > > to be added to Python's importable modules search path. When I > > attempt to import my_module I get the error: > > > > ImportError: No module named my_m

Re: [Tutor] Caching for speed

2007-11-26 Thread Dick Moores
At 12:39 AM 11/26/2007, Alan Gauld wrote: >Dick, > >While the speed up due to caching is interesting I'm not sure >what your code is supposed to be doing but it looks to me >like you are effectively doing this: > >from mpmath import pi ># long pause >print pi > >Which will be faster than 0.1 second

Re: [Tutor] Can I create 3D game with python ?

2007-11-26 Thread bhaaluu
Sawatdee, Look at these books which are all Python game programming books: 1*) Easiest book for beginners just learning Python. Start here. Python Programming for the Absolute Beginner, Second Edition. Michael Dawson. ISBN-13: 978-1598631128 2*) Next step, learn Python PyGame 2D game programming.

Re: [Tutor] Can I create 3D game with python ?

2007-11-26 Thread Luke Paireepinart
anuchit thiam-uan wrote: I interested in 3D game programming and I want to create my own some kind of it.But I'm Just Beginner of Python,please give me some idea thank you Yes, you can. It'll be hard to do in Python with just the standard library. Luckily there are a few other (3rd-party) li

Re: [Tutor] Tkinter Grid Layout Problems

2007-11-26 Thread Alan Gauld
"Johnston Jiaa" <[EMAIL PROTECTED]> wrote > I'm trying to get the left part of a window to look like this: > http://img.photobucket.com/albums/v228/gaypig123ABC/PB240055.jpg > > I tried using sticky's, but nothing seems to work correctly. > I did it this way: # from Tkinter im

[Tutor] Can I create 3D game with python ?

2007-11-26 Thread anuchit thiam-uan
I interested in 3D game programming and I want to create my own some kind of it.But I'm Just Beginner of Python,please give me some idea thank you ความสงบที่ปราศจากอารมณ์ใด ๆ ต่างหาก คือใจที่แท้จริง... _ จัดพิมพ์รูปได้ทุกที่จากวินโด

Re: [Tutor] Caching for speed

2007-11-26 Thread Alan Gauld
Dick, While the speed up due to caching is interesting I'm not sure what your code is supposed to be doing but it looks to me like you are effectively doing this: from mpmath import pi # long pause print pi Which will be faster than 0.1 seconds I suspect! Or am I missing something? Alan G. "