Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #50757 > unrolled thread
| Started by | John Ladasky <john_ladasky@sbcglobal.net> |
|---|---|
| First post | 2013-07-16 15:43 -0700 |
| Last post | 2013-07-22 19:39 -0400 |
| Articles | 8 on this page of 28 — 18 participants |
Back to article view | Back to comp.lang.python
Homework help requested (not what you think!) John Ladasky <john_ladasky@sbcglobal.net> - 2013-07-16 15:43 -0700
Re: Homework help requested (not what you think!) David Hutto <dwightdhutto@gmail.com> - 2013-07-16 19:51 -0400
Re: Homework help requested (not what you think!) Joel Goldstick <joel.goldstick@gmail.com> - 2013-07-16 20:53 -0400
Re: Homework help requested (not what you think!) Chris Angelico <rosuav@gmail.com> - 2013-07-17 10:40 +1000
Re: Homework help requested (not what you think!) albert@spenarnc.xs4all.nl (Albert van der Horst) - 2013-07-18 12:47 +0000
Re: Homework help requested (not what you think!) Gene Heskett <gheskett@wdtv.com> - 2013-07-18 09:38 -0400
Re: Homework help requested (not what you think!) Chris Angelico <rosuav@gmail.com> - 2013-07-17 11:34 +1000
Re: Homework help requested (not what you think!) alex23 <wuwei23@gmail.com> - 2013-07-17 16:35 +1000
Re: Homework help requested (not what you think!) PythonAB <python@rgbaz.eu> - 2013-07-17 10:31 +0200
Re: Homework help requested (not what you think!) Steven D'Aprano <steve@pearwood.info> - 2013-07-17 06:51 +0000
Re: Homework help requested (not what you think!) Joshua Landau <joshua@landau.ws> - 2013-07-17 09:33 +0100
Re: Homework help requested (not what you think!) Neil Cerutti <neilc@norwich.edu> - 2013-07-17 13:20 +0000
Re: Homework help requested (not what you think!) Chris Angelico <rosuav@gmail.com> - 2013-07-17 23:29 +1000
Re: Homework help requested (not what you think!) Neil Cerutti <neilc@norwich.edu> - 2013-07-17 13:55 +0000
Re: Homework help requested (not what you think!) Chris Angelico <rosuav@gmail.com> - 2013-07-18 00:05 +1000
Re: Homework help requested (not what you think!) alex23 <wuwei23@gmail.com> - 2013-07-18 12:09 +1000
Re: Homework help requested (not what you think!) Aseem Bansal <asmbansal2@gmail.com> - 2013-07-17 21:57 -0700
Re: Homework help requested (not what you think!) Beth McNany <beth.mcnany@gmail.com> - 2013-07-17 18:03 -0400
RE: Homework help requested (not what you think!) Joseph Clark <joeclark77@hotmail.com> - 2013-07-18 08:46 -0700
Homework help requested, thanks to everyone. John Ladasky <john_ladasky@sbcglobal.net> - 2013-07-21 13:49 -0700
Re: Homework help requested, thanks to everyone. Chris Angelico <rosuav@gmail.com> - 2013-07-22 10:25 +1000
Re: Homework help requested, thanks to everyone. Roy Smith <roy@panix.com> - 2013-07-21 20:57 -0400
RE: Homework help requested, thanks to everyone. Joseph Clark <joeclark77@hotmail.com> - 2013-07-21 20:10 -0700
PyGLet on Python 3 John Ladasky <john_ladasky@sbcglobal.net> - 2013-07-22 23:24 -0700
Re: PyGLet on Python 3 Devyn Collier Johnson <devyncjohnson@gmail.com> - 2013-07-25 09:35 -0400
Re: PyGLet on Python 3 John Ladasky <john_ladasky@sbcglobal.net> - 2013-07-25 15:27 -0700
Re: Homework help requested, thanks to everyone. Skip Montanaro <skip@pobox.com> - 2013-07-22 12:01 -0500
Re: Homework help requested, thanks to everyone. Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-07-22 19:39 -0400
Page 2 of 2 — ← Prev page 1 [2]
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2013-07-22 10:25 +1000 |
| Subject | Re: Homework help requested, thanks to everyone. |
| Message-ID | <mailman.4968.1374452717.3114.python-list@python.org> |
| In reply to | #51020 |
On Mon, Jul 22, 2013 at 6:49 AM, John Ladasky <john_ladasky@sbcglobal.net> wrote: > Another project I thought of was a Pig Latin translator. (But do kids today even know what Pig Latin is? Am I showing my age?) Even if they don't, they'll grok it no problem. It's simple enough. ChrisA
[toc] | [prev] | [next] | [standalone]
| From | Roy Smith <roy@panix.com> |
|---|---|
| Date | 2013-07-21 20:57 -0400 |
| Subject | Re: Homework help requested, thanks to everyone. |
| Message-ID | <roy-1E7C59.20574521072013@70-1-84-166.pools.spcsdns.net> |
| In reply to | #51024 |
In article <mailman.4968.1374452717.3114.python-list@python.org>, Chris Angelico <rosuav@gmail.com> wrote: > On Mon, Jul 22, 2013 at 6:49 AM, John Ladasky > <john_ladasky@sbcglobal.net> wrote: > > Another project I thought of was a Pig Latin translator. (But do kids > > today even know what Pig Latin is? Am I showing my age?) > > > Even if they don't, they'll grok it no problem. It's simple enough. > > ChrisA Igpay ythonpay!
[toc] | [prev] | [next] | [standalone]
| From | Joseph Clark <joeclark77@hotmail.com> |
|---|---|
| Date | 2013-07-21 20:10 -0700 |
| Subject | RE: Homework help requested, thanks to everyone. |
| Message-ID | <mailman.4970.1374462719.3114.python-list@python.org> |
| In reply to | #51020 |
[Multipart message — attachments visible in raw view] — view raw
John, have you taken a look at pyglet? It's an alternative to pygame and I found it pretty slick once I got the hang of it. There is a development version that's compatible with python 3 and I've never had a bug with it. It wraps OpenGL itself so there are no additional dependencies. // joseph w. clark , phd , visiting research associate \\ university of nebraska at omaha - college of IS&T > Date: Sun, 21 Jul 2013 13:49:40 -0700 > Subject: Homework help requested, thanks to everyone. > From: john_ladasky@sbcglobal.net > To: python-list@python.org > > Thanks to everyone for their wealth of suggestions. I already had my students playing with turtle. And I had asked them to alphabetize a string (without having previously revealed the sorted() function). > > So far, I have taken up the suggestion of the number-guessing game. One of my students has a working version. The logic is a bit clumsy, but it's a fine first attempt. > > I will also take up the Twenty Questions idea. My son and I played that game a lot over the years, to pass the time on long car rides. And it would be a great way to introduce the binary tree data structure. > > Another project I thought of was a Pig Latin translator. (But do kids today even know what Pig Latin is? Am I showing my age?) > > Concerning more advanced, real-time, game-oriented graphics, I am trying to figure out how to build PyGame on top of Python3.x. Supposedly it is possible. I just haven't figured out how. It's 2013: I refuse to complicate my students' programming education with Python 2.x. > > I used wxPython happily for years, and I think that its graphical capabilities would probably be up to the task of a simple 2D game. Unfortunately, it has the same problem as PyGame, at least for now. The Py3-compatible version of wxPython, to be known as Phoenix, is still under development. > > I'll keep Unity, Panda3D, and Blender in mind for later. Again, one of my main concerns will be Python 3.x compatibility. > -- > http://mail.python.org/mailman/listinfo/python-list
[toc] | [prev] | [next] | [standalone]
| From | John Ladasky <john_ladasky@sbcglobal.net> |
|---|---|
| Date | 2013-07-22 23:24 -0700 |
| Subject | PyGLet on Python 3 |
| Message-ID | <8c55a89b-b4dc-4542-bb64-a0afa07f9b6e@googlegroups.com> |
| In reply to | #51028 |
On 07/21/2013 08:10 PM, Joseph Clark wrote: > John, have you taken a look at pyglet? It's an alternative to pygame and I found it pretty slick once I got the hang of it. There is a development version that's compatible with python 3 and I've never had a bug with it. It wraps OpenGL itself so there are no additional dependencies. > > > // joseph w. clark , phd , visiting research associate > \\ university of nebraska at omaha - college of IS&T > Hi Joe, Thanks for the PyGLet recommendation. I like OpenGL. Unfortunately, I can't seem to get PyGLet to work, even though the pyglet.org front page claims that "the major 1.2alpha1 release brings pyglet to Python 3." I followed the links to this page: https://code.google.com/p/pyglet/downloads/list?q=1.2alpha1 I installed pyglet on my Linux system's Python 3.3 using distutils, as I have done with many other packages. But I can't run test.py, nor can I even get as far as importing pyglet from my Python 3.3 interpreter command line. The obstacle is apparently Python 2.x-style print statements, which are found throughout tests.py and pyglet/__init__.py. Does anyone know an efficient way around this problem? Thanks!
[toc] | [prev] | [next] | [standalone]
| From | Devyn Collier Johnson <devyncjohnson@gmail.com> |
|---|---|
| Date | 2013-07-25 09:35 -0400 |
| Subject | Re: PyGLet on Python 3 |
| Message-ID | <mailman.5093.1374759355.3114.python-list@python.org> |
| In reply to | #51071 |
On 07/23/2013 02:24 AM, John Ladasky wrote:
> On 07/21/2013 08:10 PM, Joseph Clark wrote:
>> John, have you taken a look at pyglet? It's an alternative to pygame and I found it pretty slick once I got the hang of it. There is a development version that's compatible with python 3 and I've never had a bug with it. It wraps OpenGL itself so there are no additional dependencies.
>>
>>
>> // joseph w. clark , phd , visiting research associate
>> \\ university of nebraska at omaha - college of IS&T
>>
> Hi Joe,
>
> Thanks for the PyGLet recommendation. I like OpenGL. Unfortunately, I can't seem to get PyGLet to work, even though the pyglet.org front page claims that "the major 1.2alpha1 release brings pyglet to Python 3."
>
> I followed the links to this page:
>
> https://code.google.com/p/pyglet/downloads/list?q=1.2alpha1
>
> I installed pyglet on my Linux system's Python 3.3 using distutils, as I have done with many other packages. But I can't run test.py, nor can I even get as far as importing pyglet from my Python 3.3 interpreter command line. The obstacle is apparently Python 2.x-style print statements, which are found throughout tests.py and pyglet/__init__.py.
>
> Does anyone know an efficient way around this problem? Thanks!
I cannot get Pyglet to work. I successfully installed the module and it
imports successfully, but a previously suggested command does not work.
I use Python3.
>>> import pyglet
>>> pyglet.media.load('./boot.ogg', streaming=False).play()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'media'
Mahalo,
DCJ
[toc] | [prev] | [next] | [standalone]
| From | John Ladasky <john_ladasky@sbcglobal.net> |
|---|---|
| Date | 2013-07-25 15:27 -0700 |
| Subject | Re: PyGLet on Python 3 |
| Message-ID | <8321e752-f291-4ece-a150-06e51a622643@googlegroups.com> |
| In reply to | #51216 |
Hi Devyn. After I didn't get a response concerning PyGLet inside this thread, I started another thread. It's here: https://groups.google.com/forum/#!topic/comp.lang.python/ARtI0GC9RHc
[toc] | [prev] | [next] | [standalone]
| From | Skip Montanaro <skip@pobox.com> |
|---|---|
| Date | 2013-07-22 12:01 -0500 |
| Subject | Re: Homework help requested, thanks to everyone. |
| Message-ID | <mailman.4986.1374512520.3114.python-list@python.org> |
| In reply to | #51020 |
John> Another project I thought of was a Pig Latin translator. (But
do kids today
John> even know what Pig Latin is? Am I showing my age?)
Chris> Even if they don't, they'll grok it no problem. It's simple enough.
Google for "Python pig latin" to see a lot of "prior art".
And it might be useful as a step as part of a word-based password generator. :-)
>>> words = open("/usr/dict/words")
>>> words = [word.strip() for word in words if len(word) == 5]
>>> len(words)
2194
>>> import random
>>> random.shuffle(words)
>>> words[0:4]
['live', 'skat', 'levy', 'cove']
>>> [makePigLatin(word) for word in words[0:4]]
['ivelay', 'atskay', 'evylay', 'ovecay']
:-)
Skip
[toc] | [prev] | [next] | [standalone]
| From | Dennis Lee Bieber <wlfraed@ix.netcom.com> |
|---|---|
| Date | 2013-07-22 19:39 -0400 |
| Subject | Re: Homework help requested, thanks to everyone. |
| Message-ID | <mailman.4990.1374536367.3114.python-list@python.org> |
| In reply to | #51020 |
On Mon, 22 Jul 2013 10:25:14 +1000, Chris Angelico <rosuav@gmail.com>
declaimed the following:
>On Mon, Jul 22, 2013 at 6:49 AM, John Ladasky
><john_ladasky@sbcglobal.net> wrote:
>> Another project I thought of was a Pig Latin translator. (But do kids today even know what Pig Latin is? Am I showing my age?)
>
>
>Even if they don't, they'll grok it no problem. It's simple enough.
>
Or some of the other variant means of obscuring words...
"igpay atinlay" is relatively simple... But there is the "op" scheme:
"popigop lopatopinop" (If I remember the proper application) or "ab":
"pabig labatabin" style... (again, I'm dredging up 40 year old memories).
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/
[toc] | [prev] | [standalone]
Page 2 of 2 — ← Prev page 1 [2]
Back to top | Article view | comp.lang.python
csiph-web