Hello,
I sent this reply a few days ago, but it doesn't seem to have appeared on
the list, so Im resending it.
Many thanks
Nick .
-Original Message-
From: Nick Lunt [mailto:[EMAIL PROTECTED]
Sent: 08 January 2005 19:44
To: 'python tutor'
Subject: RE: [Tutor] walking directories
>>From
I have grown to like VPython as the curve attribute really seems to do the
trick. If you get it working on a Tkinter canvas, I would like to see the
code as I haven't quite found a way to plot points on to one of those. A
simple graph function in VPython... (it isn't the whole thing, believe
me...
Jacob S. wrote:
eval() is good and it can be done using it.
I wrote a -- IMHO -- really great functiongraphing program using vpython.
If you would like to see it, just reply and say so.
Out of curiosity, I would like to see your program. There's always
something to learn (and even more so for m
>
> > Personally, I should've learnt Java first (although my success at that
> > without my Python experiences would've been limited.)
>
> I don;t know why you think that would help?
> Or do you mean Java before Jython? If so it depends
> what you intend using Jython for!
I meant learning Java p
The subject line says it all... Okay I'll add some.
I'm am bored and people are not asking enough questions/answering them to
keep my mind busy. Is there any other mailing list that I can subscribe to
like this one that lets anyone ask and answer questions?
Thanks in advance,
Jacob Schmidt
_
I wondered when someone would ask something like this.
eval() is good and it can be done using it.
I wrote a -- IMHO -- really great functiongraphing program using vpython.
If you would like to see it, just reply and say so.
Pros and cons of calculating all first:
pro - easier to read code
con -
I was having the same problem. I tried Dannys idea it didnt help. It seemed to
me that something was wrong with the actual shortcut. So I went to the
directory with the idle.pyw (C:\Program Files\Python24\Lib\idlelib\) and made a
shortcut and now it wroks fine.
All the best,
Isr
-Original
* Kent Johnson <[EMAIL PROTECTED]> [2005-01-09 20:27]:
> Liam Clarke wrote:
> >Hi all,
> >
> >I've been forcing myself to learn Java, and I was wondering if
> >anyone's used Jython.
For anyone in the Chicago, IL area, the Chicago Python Users Group,
ChiPy, is going to have a speaker on Jython this
>Hello I can't seem to get the IDLE to start up in my windows XP by clicking
on the desktop icon. To start it I have to >drop a .py file on the icon. Any
ideas?
Danny just answered that, I believe... so next!
>Also I can't seem to get xp to recognize .py files belonging to python.
Right now the
> I've been forcing myself to learn Java, and I was wondering if
> anyone's used Jython.
> To clarify - Jython generates Java bytecode?
I'm learning its vagaries as a way of testing objects
being written by my develoment teams in Java.
> Personally, I should've learnt Java first (although my succ
[EMAIL PROTECTED] wrote:
Quoting Ismael Garrido <[EMAIL PROTECTED]>:
(Newbie looking scared) That's kind of hard for me... Parsing it myself
is too complex for me. Also, I hoped Python's math would do the job for
me, so I wouldn't have to make what's already done in Python.
Writing (and understa
Liam Clarke wrote:
Hi all,
I've been forcing myself to learn Java, and I was wondering if
anyone's used Jython.
Yes, quite a bit.
To clarify - Jython generates Java bytecode?
Yes. Jython is a Python compiler and runtime written in Java. It integrates very well with Java
libraries.
Personally, I s
You can you the exec statement to execute Python code from a string. The string could be from user
input. So for example a user could input 'x*x' and you could do
>>> inp = 'x*x'
>>> func='def f(x): return ' + inp
>>> func
'def f(x): return x*x'
>>> exec func
>>> f(3)
9
Now you have f(x) def
Quoting Ismael Garrido <[EMAIL PROTECTED]>:
> (Newbie looking scared) That's kind of hard for me... Parsing it myself
> is too complex for me. Also, I hoped Python's math would do the job for
> me, so I wouldn't have to make what's already done in Python.
Writing (and understanding) grammar is p
[EMAIL PROTECTED] wrote:
Quoting Ismael Garrido <[EMAIL PROTECTED]>:
I am trying to make a program that will plot functions. For that, I need
to be able to get an input (the function to be plotted) and execute it.
>
>
>So you want the user to be able to type something like "f(x) =
sin(2*x)" and
Hi all,
I've been forcing myself to learn Java, and I was wondering if
anyone's used Jython.
To clarify - Jython generates Java bytecode?
Personally, I should've learnt Java first (although my success at that
without my Python experiences would've been limited.)
I find it's real nasty forcing my
Eep.
On Mon, 10 Jan 2005 13:04:33 +1300, Liam Clarke <[EMAIL PROTECTED]> wrote:
> I think you're looking for eval() - but that's a big security hole,
> and wouldn't handle f(x) notation overly well, unless you parse like
> John said.
>
>
> On Mon, 10 Jan 2005 12:52:24 +1300 (NZDT), [EMAIL PROTE
i had the same probblem with xp.
on mac os x i can double click on the file and it will
open.
xp opens the python file and closes it immediately
apon double click
open the python file via the Start Menu in xp.
Then hit f5 and the script will run
jk
nj
--- [EMAIL PROTECTED] wrote:
> Send T
This script did not run properly
jk
nj
--- [EMAIL PROTECTED] wrote:
> Send Tutor mailing list submissions to
> tutor@python.org
>
> To subscribe or unsubscribe via the World Wide Web,
> visit
> http://mail.python.org/mailman/listinfo/tutor
> or, via email, send a message with subjec
Quoting Ismael Garrido <[EMAIL PROTECTED]>:
> I am trying to make a program that will plot functions. For that, I need
> to be able to get an input (the function to be plotted) and execute it.
> So, my question is, how do I use the input? I have found no way to
> convert the string to some kind o
Hello
I am trying to make a program that will plot functions. For that, I need
to be able to get an input (the function to be plotted) and execute it.
So, my question is, how do I use the input? I have found no way to
convert the string to some kind of executable code.
I did research the proble
Hi David,
Its probably the kind of thing you could put on the
Useless Python website. Useless is a collection of
not-too-serious software written in Python which,
despite the name, is actually quite useful for beginners
to download and look at and learn. They can try
improving it, or using the ide
I wrote a program to create crosswords in python.
It is not perfect but it works, is there any open
source place I can put this for it to be used by
anyone who wants it ? (Subject to the gpl licence).
Here is the code in case anyone is interested.
from Tkinter import *
#Crossword program David Ho
> Hello I can't seem to get the IDLE to start up in my windows XP by
clicking
> ...
> Also I can't seem to get xp to recognize .py files belonging to
python.
This is all fixable but it suggests maybe other problems in the
installation. Personally I'd recommend reinstalling Python
and that should
On Sat, 8 Jan 2005, Jeffrey Thomas Peery wrote:
> I wasn't able to get the IDLE started in windows XP. I had it working then I
> upgraded to 2.4, then it didn't work so I switched back to 2.3, still didn't
> work so I'm back to 2.4. I did some looking around and I was able to get
> the IDLE sta
25 matches
Mail list logo