Danny Yoo said unto the world upon 2005-03-28 14:33:
I know I'm rushing this, so please feel free to ask more questions about
this.
Hi Danny, Orri, and all,
I'm really glad Orri raised the hashing issues he did, and appreciate
your informative posts, Danny. :-)
There are some related things I'v
Quoting Diana Hawksworth <[EMAIL PROTECTED]>:
> Is it possible for me to make a command do multiple things instead of
> 1?
Not directly ... But you can always write a function that does both things.
> self.submit_bttn = Button(self, text = "Tries: 0", command =
> self.reveal, self.update_count)
Dear list!
Is it possible for me to make a command
do multiple things instead of 1?
For instance, I have a button that allows me to
"submit" some user input (that is, show it in a window), but I also want it to
count the number of times that submit button has been pressed.
I have tried th
Well I just noticed somthing about the entire sServer.py file. All the
code under each def is not indented, after I fixed all the indentation
I got a host of other errors when I try to log in. I posted the files
on my site if you want to take a look at it. There are to many
problems with it right n
I've already deleted the recent thread--
But sometimes I agree with he who said that you can't trust floats at all.
The scientific theory suggests that if an output is not what it should be,
then the hypothesis is untrue.
In this case, the hypothesis is the fact that float division should always
On Mar 28, 2005, at 4:24 PM, [EMAIL PROTECTED] wrote:
So, you are writing a GUI app and you want some kind of open file
dialog? Won't
this depend on what toolkit you are using for your GUI?
If you are using Tkinter (which should work on OS X, I think), try:
import tkFileDialog
f = tkFileDialog.a
Well, my opinion about your code :
At first, it seems far too complex for what it is ! First, there is a
whole lot of useless tests ! For example :
if node is not None and type(node) == list
The "node is not None" is useless, because the type of None is ...
NoneType so type(node) == list is enou
Kevin wrote:
Here is the entire error message:
Traceback (most recent call last):
File "C:\Documents and Settings\Kevin\Desktop\New
Folder\mudmaker\mmaker.py", line 55, in ?
server.checkConnections(0.1)
File "C:\Documents and Settings\Kevin\Desktop\New
Folder\mudmaker\sServer.py", line 73,
Sean Perry wrote:
gerardo arnaez wrote:
On Mon, 28 Mar 2005 09:27:11 -0500, orbitz <[EMAIL PROTECTED]>
wrote:
Floats are inherintly inprecise. So if thigns arn't working like you
expect don't be surprised if 0.15, 0.12, and 0.1 are closer to the same
number than you think.
Are you telling me th
I'm not at all sure this is, indeed, helpful *grin*. I was just
looking for a project to code, and decided to implement a LinkedList.
The how of using it is very simple: in the same way you would use a
regular list. Except for a few extra/different methods, the use of
LinkedList is very similar
gerardo arnaez wrote:
On Mon, 28 Mar 2005 09:27:11 -0500, orbitz <[EMAIL PROTECTED]> wrote:
Floats are inherintly inprecise. So if thigns arn't working like you
expect don't be surprised if 0.15, 0.12, and 0.1 are closer to the same
number than you think.
Are you telling me that I cant expect 2 d
On Mon, 28 Mar 2005 09:27:11 -0500, orbitz <[EMAIL PROTECTED]> wrote:
> Floats are inherintly inprecise. So if thigns arn't working like you
> expect don't be surprised if 0.15, 0.12, and 0.1 are closer to the same
> number than you think.
Are you telling me that I cant expect 2 digit preceision?
Quoting Mike Hall <[EMAIL PROTECTED]>:
> I get the impression some of these "Mac" modules are more relevant to
> os 9 than 10(which is Unix), so maybe EasyDialogs is not the right
> choice here. Any suggestions are appreciated.
So, you are writing a GUI app and you want some kind of open file d
I looked over the global module index and the closest thing I could find relating to my os (osx) was EasyDialogs, which has a few functions pertaining to this, "AskFileForOpen()" being one. Calling any function within EasyDialogs however yields an Apple Event error:
AE.AEInteractWithUser(5000)
I'm at a loss as to why this is helpful. How and why would one use
this
instead of a regular list? I know what linked lists are and why they
would be useful in C++ or C or any other but not python.
Orri Ganel wrote:
>Hello all,
>
>
>
>I've been working on making a complete pythonic LinkedList
Here is the entire error message:
Traceback (most recent call last):
File "C:\Documents and Settings\Kevin\Desktop\New
Folder\mudmaker\mmaker.py", line 55, in ?
server.checkConnections(0.1)
File "C:\Documents and Settings\Kevin\Desktop\New
Folder\mudmaker\sServer.py", line 73, in checkConn
On Mon, 28 Mar 2005 09:27:11 -0500, orbitz <[EMAIL PROTECTED]> wrote:
> Floats are inherintly inprecise. So if thigns arn't working like you
> expect don't be surprised if 0.15, 0.12, and 0.1 are closer to the same
> number than you think.
However, the imprecision of floats is in the 10-12 precis
Hello all,
I've been working on making a complete pythonic LinkedList
implementation, as per the specifications of Java's LinkedList and
Python's list. The full code may be found at
http://rafb.net/paste/results/JKhsQn59.html. Once the link expires,
please feel free to email me for the code. An
Well, what I ended up doing is making it so that Nodes are equal if
they have the same 'cargo', but hash based on memory address. If this
wasn't the case, I either wouldn't be able to have multiple Nodes with
the same 'cargo' in a LinkedList, or I wouldn't be able to sort them
properly, among othe
On Sun, 27 Mar 2005, Orri Ganel wrote:
> So, any class that has 'rich comparison methods' defined is unhashable?
> What gives? (See '[Tutor] unhashable objects')
Hi Orri,
If we change what it means for two objects to be equal, hashing won't work
in a nice way until we also make hashing take e
Kevin wrote:
Nope it will still give the same Attribute error.
Please post the entire error including the stack trace and the whole error message. Copy and paste
the whole thing, don't transcribe it.
Kent
On Mon, 28 Mar 2005 13:50:07 -0500, Kent Johnson <[EMAIL PROTECTED]> wrote:
Kevin wrote:
Hi
Floats are inherintly inprecise. So if thigns arn't working like you
expect don't be surprised if 0.15, 0.12, and 0.1 are closer to the same
number than you think.
On Mar 28, 2005, at 6:32 AM, Kent Johnson wrote:
gerardo arnaez wrote:
Hi all,
I am trying to get a value dependant on initial vlau
Nope it will still give the same Attribute error.
On Mon, 28 Mar 2005 13:50:07 -0500, Kent Johnson <[EMAIL PROTECTED]> wrote:
> Kevin wrote:
> > Hi,
> >
> > I fond this game on the internet I was able to fix most of the errors
> > that it was giving and it will
> > now start up ok. However when y
Kevin wrote:
Hi,
I fond this game on the internet I was able to fix most of the errors
that it was giving and it will
now start up ok. However when you try to enter a name to login to the
game it will crash and
give this:
in sServer.py
line 42, in removeConnection
self._descriptors.remove(conn.
Sorry http://www.lotheria.com/mudmaker.zip
On Mon, 28 Mar 2005 13:35:20 -0500, Kevin <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I fond this game on the internet I was able to fix most of the errors
> that it was giving and it will
> now start up ok. However when you try to enter a name to login to the
Hi,
I fond this game on the internet I was able to fix most of the errors
that it was giving and it will
now start up ok. However when you try to enter a name to login to the
game it will crash and
give this:
in sServer.py
line 42, in removeConnection
self._descriptors.remove(conn._fd)
Attrib
All,
Thanks. I love this list...great freindly advice. I had taken a slightly
longer approach to Kent's "re.findall(r'[\d\.]+', s)" but the simplicity is
just too good to pass up. Jacob I too got the warning about encoding and
saved with the line added. It still would not strip out the charect
gerardo arnaez wrote:
Hi all,
I am trying to get a value dependant on initial vlaue inputed
Depending on the value, I want the functiont to return a percentage
For some reason, It seems to skip the first if state and just print
out the 1st elif
not sure what is going.
Are you sure you are passing a
Dear all,
I was learning how to use the urllib, BUT there is nothing printed out
in the following example.
Could anyone hellp me or tell why?
import urllib
params = urllib.urlencode({'DN':'Adrenal glands disorders'})
address="http://xin.cz3.nus.edu.sg/group/cjttd/List.asp?SetQuery=Y";
f
29 matches
Mail list logo