Christopher Arndt wrote:
> P.S. This is basically just rephrasing what has been already said by others
> and
> better: http://www.catb.org/~esr/faqs/smart-questions.html
Seriously, that is an excellent guide. Eric S. Raymond writes some high
quality stuff. Anyone new to posting on this list (
Alan Gauld wrote:
> but also enforces that intent. This is espectially important
> during the early development of libraries where the internal
> representation is constantly evolving.
Yeah, I would have to agree with you there. I hadn't considered that
angle...
> But multiple languages compili
> My vote is, no, not worth the trouble. It's Java / C++ / static-typing /
> put-the-client-in-a-straightjacket-so-they-don't-touch-anything thinking.
>
Heh...and don't forget the king-pin of them all, C#. Between private,
public, protected, internal, and protected internal I lose track of wh
s'
is indeed faster than 'r.match("J")'...
Jonathon
John Fouhy wrote:
> On 07/11/06, Jonathon Sisson <[EMAIL PROTECTED]> wrote:
>> Just out of curiousity (since I really can't say myself), does the code
>> below import re each time it loops? I
Just out of curiousity (since I really can't say myself), does the code
below import re each time it loops? I ran the same commands and saw
quite similar results (0.176 usec per loop for the first test and 0.993
usec per loop for the second test), and I was just curious if that
import (and the
Wow...
SPE is in the Gentoo repository as well. I've been looking for
something to replace Eric, so thanks for the tip, Chris! I'll check it out.
Jonathon
Chris Hengge wrote:
> Well, I use SPE which comes with wxGlade and XRC. For the small amount
> of gui I've done with python I think SPE
Ahh, sorry, sorry. I haven't been able to locate the thread that I read
that summarized passage from, so I can't say who exactly said all of that...
Nice quote on C/C++...made me laugh.
Jonathon
Alan Gauld wrote:
> "Jonathon Sisson" <[EMAIL PROTECTED]> wrote
&g
Brian,
It's not a permissions issue...
(from the original e-mail...see below)
>> [EMAIL PROTECTED]:~/test$ ls -la shebangtest.py
>> -rwxr-xr-- 1 brian brian 68 2006-11-04 02:29 shebangtest.py
This is clearly executable by brian, and clearly being executed by
brian. The shebang line is correc
Asrarahmed Kadri wrote:
> tries to supply negative values, then match will return None.
> So no hassle of using all those Ifs and Elifs
> I think REGULAR Expressions can be quite powerful...
Indeed...Regular expressions were discovered etched into the blade of a
sword that had been pl
Chris,
I don't know if this has been mentioned yet, but this site might be useful:
http://bdash.net.nz/blog/2003/12/24/python-vnc-client/
The code base has (last I heard) fallen stagnant, but it may very well
be worth a look as a starting point for your VNC project idea.
Jonathon
Chris Hengg
Hi Doug,
I'm not a Python guru, but shouldn't you be putting the output of
file.split('\n') into a list, and not back into a string (for clarity's
sake?).
Also, if you have two trailing newlines on the file, your final string
will be '', so you should be doing clean1.append(i[26:40]) in your f
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...
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
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
Greetings everyone...
I use Thunderbird, too. I've noticed that it handles threads a bit
strange...for instance, I have pytutor set up to send me copies of my
replies (so I can track threads better), but Thunderbird won't display
my replies inline with the threads...
If you go to the folder y
tructive criticism wrong.
I'm glad you got the code working. Congrats.
Jonathon
Chris Hengge wrote:
> Have you even read my code to see if you find it cryptic? I'm starting
> to beleive people just read the one comment on possibly using better
> naming conventions and assumed
Chris Hengge wrote:
> I chose the way I used the names because to me...
>
> outFile = open(aFile.lower(), 'w') # Open output buffer for writing.
> = open a file with lowercase name for writing.
> it is implied that aFile is from the zip, since it is created in the
> loop to read the zip..
>
> ou
be able to run
whatever python bytecode you want...
Hope this helps, and let me know how that works out for you...
Jonathon
Alfonso wrote:
> Jonathon Sisson escribió:
>> Alfonso wrote:
>>
>>> Sorry for the too obvious question. I'm new to python and have no idea
Alfonso wrote:
> Sorry for the too obvious question. I'm new to python and have no idea
> how can I make execute a compiled .pyc with a double click in linux,
> with gnome. Trying to double click in a .py gives allways the question
> wether I want to execute the text file, or read it. (This beha
By "string variable that contains a name that I want to use as a
variablename" do you mean something like this:
myString = "rotationalSpeed"
rotationalSpeed = 4500
??
In Python a dictionary is an excellent solution to this problem. The
only other way to accomplish this (to my knowledge) is in P
Hello Bernard...
Just to give you a pointer about Linux: If you're new, Fedora and
Ubuntu are both relatively easy to learn, but powerful (I've never used
Ubuntu (or Debian, for that matter), but I hear that Ubuntu is a really
great distro). Stay away from Slackware and Gentoo, at least until
yo
Hugo,
You need to create an instance of the Root class before you can call
rootState in your final print statement. Your code doesn't do this. A
class is merely a template, something like blueprints to a house. For
you to be able to unlock the front door (for instance), you need to
actually bui
Mike,
The algorithm you use is what causes the infinite loop (it cycles
through the same numbers repeatedly). I've updated the code and I'll
post it here:
def num(number):
r=input("range >")
ran=range(r+1)
guess=r/2
print guess
guesses=1
min = 0
max = r
while gues
I'll have to second that...my school is wrapped up with Java, C#, and
Scheme. Python has all about ruined me for programming in other
languages, and I really wish Python was taught/allowed at my school.
I'm currently working on a team for CSC 480 (Senior Project - Design
Phase) and we're forced t
Hrmmm...my opinion is that you shouldn't waste your time with Java
(sorry to any Java coders on this list). It's entirely too automated
for my tastes (automatic garbage collection, transparent pointers,
etc...). To quote an unknown author who was quite the anti-OOP
programmer, "it made me want to
Gah!
Seems I sent that reply before stepping through my code a bit...
The last section of that code should be:
else:# kl and ll contain the same number here
both.append(kl[indexK])
if indexK < indexL: # this block is needed so we
indexL = indexL + 1 # don't enter an endles
Hi Mike,
I'm not sure I'm understanding exactly what it is you're looking for
here, but from what I can tell you're looking for something such as:
num(220, 330) #for example
input a range of 10 # again, for example
which would result in an output of 0, 660, 1320 and 1980 (because
these four numb
've triedMichael Sullivan wrote:
> On Sat, 2006-06-10 at 03:27 +0100, Jonathon Sisson wrote:
>> Michael Sullivan wrote:
>>> Here's the situation: My wife likes to play the game Chuzzle, found at
>>> Yahoo Games. We use primarily Linux, however Chuzzle is wri
Michael Sullivan wrote:
> Here's the situation: My wife likes to play the game Chuzzle, found at
> Yahoo Games. We use primarily Linux, however Chuzzle is written as an
> ActiveX control, which only works on Windows. I have not been able to
> get Internet Explorer to work correctly through Wine,
Kent Johnson wrote:
>> From: Danny Yoo <[EMAIL PROTECTED]>
>> On Wed, 7 Jun 2006, doug shawhan wrote:
>>
>>> This marks the third time this week I have been typing in a question for
>>> the group, and have made the answer apparent just by trying to explain
>>> my question clearly.
>> Yes. *grin*
30 matches
Mail list logo