gatech-csl / jes

The Jython Environment for Students allows students to write Jython programs that can manipulate pictures, sounds, and videos.
http://mediacomputation.org/
60 stars 38 forks source link

sets in JES #89

Open mstoth opened 9 years ago

mstoth commented 9 years ago

Are there no sets in JES? I tried using set() but it is not known.

mjguzdial commented 9 years ago

This just worked for me in JES 5.02:

x = set("A Python Tutorial") x set(['r', 'o', 't', 'n', 'l', 'a', 'u', 'T', 'h', ' ', 'A', 'y', 'P', 'i'])


From: Michael Toth [notifications@github.com] Sent: Thursday, August 20, 2015 12:41 PM To: gatech-csl/jes Subject: [jes] sets in JES (#89)

Are there no sets in JES? I tried using set() but it is not known.

— Reply to this email directly or view it on GitHubhttps://github.com/gatech-csl/jes/issues/89.

mstoth commented 9 years ago

Thanks for replying. I'm using 4.3. I suppose must be out of date. >>>  x = set("A Python Tutorial")The error was:setName not found globally.A local or global name could not be found. You need to define the function or variable before you try to use it in any way.>>> I'll check for a later version. -Michael

-------- Original Message -------- Subject: Re: [jes] sets in JES (#89) From: mjguzdial notifications@github.com Date: Thu, August 20, 2015 2:33 pm To: gatech-csl/jes jes@noreply.github.com Cc: Michael Toth michael@virtualpianist.com

This just worked for me in JES 5.02: >>> x = set("A Python Tutorial") >>> x set(['r', 'o', 't', 'n', 'l', 'a', 'u', 'T', 'h', ' ', 'A', 'y', 'P', 'i']) ____ From: Michael Toth [notifications@github.com] Sent: Thursday, August 20, 2015 12:41 PM To: gatech-csl/jes Subject: [jes] sets in JES (#89) Are there no sets in JES? I tried using set() but it is not known. — Reply to this email directly or view it on GitHub<https://github.com/gatech-csl/jes/issues/89&gt;. —Reply to this email directly or view it on GitHub.

mstoth commented 9 years ago

I will have to get the school to upgrade to 5.02.  Sorry for the bother.

-------- Original Message -------- Subject: Re: [jes] sets in JES (#89) From: mjguzdial notifications@github.com Date: Thu, August 20, 2015 2:33 pm To: gatech-csl/jes jes@noreply.github.com Cc: Michael Toth michael@virtualpianist.com

This just worked for me in JES 5.02: >>> x = set("A Python Tutorial") >>> x set(['r', 'o', 't', 'n', 'l', 'a', 'u', 'T', 'h', ' ', 'A', 'y', 'P', 'i']) ____ From: Michael Toth [notifications@github.com] Sent: Thursday, August 20, 2015 12:41 PM To: gatech-csl/jes Subject: [jes] sets in JES (#89) Are there no sets in JES? I tried using set() but it is not known. — Reply to this email directly or view it on GitHub<https://github.com/gatech-csl/jes/issues/89&gt;. —Reply to this email directly or view it on GitHub.