Re: [Tutor] move forward in arbitrary direction

2006-10-28 Thread Jonathon Sisson
Hrmmm...I do believe you are right, Luke. My bad...it's been a bit since I actually used this stuff (about 12 years ago in college...heh). And yes, it would matter, unless you swapped the key functionality around...but let's keep it simple, yes? Good thing I'm not programming this project...

Re: [Tutor] Matching on multiple log lines

2006-10-28 Thread jim stockford
so it's guaranteed that 'Writing Message to' will always be followed by 'TRANSPORT_STREAM_ID' before the next occurrence of 'Writing Message to' and all text between can be ignored, and we increment the counter if and only if there is a newline immediately after 'TRANSPORT_STREAM_I

Re: [Tutor] Adding voting to several object in python and db

2006-10-28 Thread Danny Yoo
> Ok now to my question, I m trying to add a ranking feature to various > objects in the system, the users, their posts, their media etc, suffice > to say I have to rank a lot of objects. Hi Anil, It sounds like you want to add some sort of feature to a heterogeneous set of classes. Tradition

[Tutor] Matching on multiple log lines

2006-10-28 Thread Tom Tucker
I would appreciate any recommendations or assistance on how to read and parse this log. The log is constantly growing and has the potential of being large. For this reason, we are reading in line by line. How do I match on multiple lines, while reading a log line by line. Hopefully the logic e

Re: [Tutor] Adding voting to several object in python and db

2006-10-28 Thread Bob Gailer
anil maran wrote: > I m having lots of fun with python it is like all of sudden I m > unshackled from the days of java Man it is a lot of fun. It is super > simple and easy... Ok now to my question, I m trying to add a ranking > feature to various objects in the system, the users, their posts, > t

[Tutor] Adding voting to several object in python and db

2006-10-28 Thread anil maran
I m having lots of fun with python it is like all of sudden I munshackled from the days of java Man it is a lot of fun. It is supersimple and easy... Ok now to my question, I m trying to add a rankingfeature to various objects in the system,  the users, their posts,their media etc, suffice to say I

Re: [Tutor] move forward in arbitrary direction

2006-10-28 Thread Luke Paireepinart
Going by radians, 0.0*pi is pointing to the right, 0.5*pi is pointingdown, 1.0*pi is pointing to the left, and 1.5*pi is pointing straight up.uh, wouldn't pi/2 be pointing up?Don't you set 0 radians to be the positive-x axis and then go counter-clockwise?Or does it not matter? It seems like it wou

Re: [Tutor] I am terribly confused about "generators" and "iterators".. Help me

2006-10-28 Thread Danny Yoo
> My understanding is that an iterator is basically a facade` pattern. > If you aren't familiar with patterns, a facade` pattern basically makes > something really easy to use or convenient. Yes, you can "do it by > hand", and many times that is indeed the preferred method, but sometimes > it'

Re: [Tutor] move forward in arbitrary direction

2006-10-28 Thread R. Alan Monroe
> right now i can make something move up and down, or left and right, but > if I want to rotate a triangle, then move it so that the 'tip' always > points in the direction it's going to move, I get stuck. http://freespace.virgin.net/hugo.elias/routines/rotate.htm Alan

Re: [Tutor] I am terribly confused about "generators" and "iterators".. Help me

2006-10-28 Thread Jonathon Sisson
My understanding is that an iterator is basically a facade` pattern. If you aren't familiar with patterns, a facade` pattern basically makes something really easy to use or convenient. Yes, you can "do it by hand", and many times that is indeed the preferred method, but sometimes it's easier

[Tutor] move forward in arbitrary direction

2006-10-28 Thread Jonathon Sisson
The "something" you're stuck on is the angle the triangle has rotated, measured in radians. If the concept of radians is not familiar, then here's a quick review: There are 2*pi radians in a complete circle (about 6.28) There are 360 degrees in a complete circle 1 radian is approximately 57 deg

[Tutor] python decorators

2006-10-28 Thread euoar
Could somebody explain or point to a good place to learn what are python decorators, and when should they be used? Thanks. __ LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.vo

[Tutor] VNC library for python

2006-10-28 Thread Chris Hengge
Does this exist? I see projects talking about writing viewers in python, and talking about their flaws or potential, but I've not seen a single library.Thanks. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor