English-like Python

2009-01-15 Thread The Music Guy
Just out of curiousity, have there been any attempts to make a version of Python that looks like actual English text? I mean, so much of Python is already based on the English language that it seems like the next natural step would be to make a programming language which is actually a spoken one.

Re: Pythonic way to handle coordinates

2009-01-17 Thread The Music Guy
On Jan 17, 2:48 am, pdora...@pas-de-pub-merci.mac.com (Pierre-Alain Dorange) wrote: Hi, I'm used python for 3 months now to develop small arcade games (with pygame module). I just got a question about coordinates handling. My games are in 2D so i deal with x,y coordinates for sprites (but

Re: English-like Python

2009-01-18 Thread The Music Guy
Wow, impressive responses. It sounds like the general consensus is that English would not be a good choice for programming even if there were an interpreter capable of turning human language into machine language. But that makes sense; even English professionals have trouble understanding each

Re: uninstall before upgrade?

2009-01-18 Thread The Music Guy
On Sun, 2009-01-18 at 10:06 -0800, waltbrad wrote: I want to upgrade from 2.5 to 2.6. Do I need to uninstall 2.5 before I do that? If so, what's the best way to uninstall it? Thanks. -- http://mail.python.org/mailman/listinfo/python-list I've heard of people having problems trying to

Feature request: String-inferred names

2009-11-25 Thread The Music Guy
Hello all, I just posted to my blog about a feature that I'd like to see added to Python. Before I go through the trouble of learning how to write a PEP or how to extend the Python interpreter, I want to know what people in the community have to say about it.

Re: Feature request: String-inferred names

2009-11-25 Thread The Music Guy
I just posted to my blog about a feature that I'd like to see added to Python. Before I go through the trouble of learning how to write a PEP or how to extend the Python interpreter, I want to know what people in the community have to say about it.

Re: Feature request: String-inferred names

2009-11-25 Thread The Music Guy
, Nov 25, 2009 at 6:35 PM, The Music Guy fearsomedragon...@gmail.com wrote: Hello all, I just posted to my blog about a feature that I'd like to see added to Python. Before I go through the trouble of learning how to write a PEP or how to extend the Python interpreter, I want

Re: Feature request: String-inferred names

2009-11-26 Thread The Music Guy
On Nov 26, 12:30 am, Gabriel Genellina gagsl-...@yahoo.com.ar wrote: En Wed, 25 Nov 2009 23:35:06 -0300, The Music Guy   fearsomedragon...@gmail.com escribió: I just posted to my blog about a feature that I'd like to see added to Python. Before I go through the trouble of learning how

Re: Feature request: String-inferred names

2009-11-27 Thread The Music Guy
Testing, testing...is this thing on? Hang on guys, I'm having some trouble posting to the mailing list suddenly. -- http://mail.python.org/mailman/listinfo/python-list

Re: Feature request: String-inferred names

2009-11-27 Thread The Music Guy
On Nov 26, 9:10 pm, Gabriel Genellina gagsl-...@yahoo.com.ar wrote: En Thu, 26 Nov 2009 20:43:04 -0300, The Music Guy music...@alphaios.net   escribió: Nonetheless, the fact remains that the feature I'm proposing closely resembles one that has already been rejected... Well, it's been a few

Re: Feature request: String-inferred names

2009-11-27 Thread The Music Guy
Gred, thanks for your comments. On Nov 26, 7:49 pm, Gregory Ewing greg.ew...@canterbury.ac.nz wrote: [...] Also, many of the uses of getattr in the std lib appear to be of the 3-argument form, which your suggested syntax doesn't cover. [...] Good point. After excluding those, only ~435 uses

Re: Feature request: String-inferred names

2009-11-28 Thread The Music Guy
On Nov 28, 3:07 am, Lie Ryan lie.1...@gmail.com wrote: On 11/28/2009 3:08 PM, The Music Guy wrote: As for your code, I haven't seen it, so it would be hard for me to say exactly how the new syntax would come into play. What I can tell you, however, is that the parts of your code that would

Re: Feature request: String-inferred names

2009-11-28 Thread The Music Guy
On Nov 28, 6:10 am, Lie Ryan lie.1...@gmail.com wrote: On 11/28/2009 10:38 PM, The Music Guy wrote: If you use it a lot, it is likely 1) you have abused class syntax for what should have been a dict or 2) what you need is to override __getattr__/__getattribute__ and __setattr__ Oh boy

Re: Feature request: String-inferred names

2009-11-28 Thread The Music Guy
On Nov 28, 6:10 am, Lie Ryan lie.1...@gmail.com wrote: On 11/28/2009 10:38 PM, The Music Guy wrote: If you use it a lot, it is likely 1) you have abused class syntax for what should have been a dict or 2) what you need is to override __getattr__/__getattribute__ and __setattr__ Oh boy

Re: Feature request: String-inferred names

2009-11-29 Thread The Music Guy
On Sat, Nov 28, 2009 at 9:39 PM, Steven D'Aprano st...@remove-this-cybersource.com.au wrote: Removing code redundancy is all very well, but beware of turning into an architecture astronaut: http://www.joelonsoftware.com/articles/fog18.html There is such a thing as

Re: Feature request: String-inferred names

2009-11-29 Thread The Music Guy
Okay, I'm having a really hard time telling which messages are getting on to the list and which ones aren't. Some of the messages I send show up in the comp.lang.python mirror in Google Groups, and some aren't. Others show up on the Groups mirror, but don't show up in Gmail, or show up in a

Re: semantics of ** (unexpected/inconsistent?)

2009-11-29 Thread The Music Guy
It's just like in algebra. You evaluate exponents before the - which, after all, is just another way to write -1, or times-negative-one. However, a variable with a negative value is not the same as a value that is being multiplied by a negative. -3 ** 2 = (-1)(3)^(2) in algebraic terms.

Re: Feature request: String-inferred names

2009-11-29 Thread The Music Guy
On Sun, Nov 29, 2009 at 11:01 PM, Brad Harms fearsomedragon...@gmail.comwrote: May the Penguin in the sky bless your every subroutine, Um...feel free to ignore that. _ -- Brad Harms -- http://mail.python.org/mailman/listinfo/python-list

Re: Feature request: String-inferred names

2009-11-30 Thread The Music Guy
P.S., not trying to start a flame war. It's just that I can't stand to keep silent on the matter any longer. -- Brad Harms -- http://mail.python.org/mailman/listinfo/python-list

Re: Feature request: String-inferred names

2009-11-30 Thread The Music Guy
Brad Harms FearsomeDragonfly at gmail.com Mon Nov 30 05:04:37 CET 2009 That was a relatively simple example; classes as simple as the ones generated by the It is more likely that the class generation could would appear in a metaclass's class constructor or decorator function, and there

Multiple inheritance - How to call method_x in InheritedBaseB from method_x in InheritedBaseA?

2009-09-04 Thread The Music Guy
I have a peculiar problem that involves multiple inheritance and method calling. I have a bunch of classes, one of which is called MyMixin and doesn't inherit from anything. MyMixin expects that it will be inherited along with one of several other classes that each define certain functionality.

Re: Multiple inheritance - How to call method_x in InheritedBaseB from method_x in InheritedBaseA?

2009-09-05 Thread The Music Guy
On Fri, Sep 4, 2009 at 11:23 AM, Scott David Danielsscott.dani...@acm.org wrote: The Music Guy wrote: I have a peculiar problem that involves multiple inheritance and method calling. I have a bunch of classes, one of which is called MyMixin and doesn't inherit from anything. MyMixin expects

Re: Multiple inheritance - How to call method_x in InheritedBaseB from method_x in InheritedBaseA?

2009-09-06 Thread The Music Guy
On Sat, Sep 5, 2009 at 8:41 PM, Carl Bankspavlovevide...@gmail.com wrote: Out of curiosity, did you try this and are reporting that it resulted in an AttributeError, or did you merely deduce that it would raise AttributeError based on your knowledge of Python's inheritance? I ask this

Re: Multiple inheritance - How to call method_x in InheritedBaseB from method_x in InheritedBaseA?

2009-09-06 Thread The Music Guy
Sorry, that last code had a typo in it: #!/usr/bin/python def main(): foox = FooX() fooy = FooY() fooz = FooZ() foox.method_x(I, AM, X) print fooy.method_x(ESTOY, Y, !) print fooz.method_x(100, 200, 300) class MyMixin(object): def method_x(self, a, b, c):

Re: Multiple inheritance - How to call method_x in InheritedBaseB from method_x in InheritedBaseA?

2009-09-08 Thread The Music Guy
On Mon, Sep 7, 2009 at 3:30 PM, Carl Bankspavlovevide...@gmail.com wrote: That's not what you did in your original post, though. Mixins should be listed first among bases, which is how you did it in your original post, and how it had to be in order for it to just work as I claimed. class

Re: Multiple inheritance - How to call method_x in InheritedBaseB from method_x in InheritedBaseA?

2009-09-09 Thread The Music Guy
I should also mention--and I should have realized this much sooner--that each of the BaseN classes are themselves each going to have at least one common base which will define method_x, so each BaseN will be calling that if it defines its own method_x. Again, sorry I didn't mention that sooner.

Re: Multiple inheritance - How to call method_x in InheritedBaseB from method_x in InheritedBaseA?

2009-09-09 Thread The Music Guy
On Wed, Sep 9, 2009 at 1:21 PM, Carl Bankspavlovevide...@gmail.com wrote: On Sep 8, 10:47 pm, The Music Guy music...@alphaios.net wrote: What is get_other_base?  Just use a regular super call here, get_other_base and hacks like that are what gets you into trouble. You seem to be overthinking

Re: Multiple inheritance - How to call method_x in InheritedBaseB from method_x in InheritedBaseA?

2009-09-09 Thread The Music Guy
Btw, Carl, please forgive me if I frustrate you, because I'm trying my best not to. I'm trying to keep track of what I did and what you did and what Ryles and Scott did, while at the same time trying to keep a firm grasp of exactly what it is I'm trying to acheive. Besides that, I'm not a

FLV download script works, but I want to enhance it

2009-05-05 Thread The Music Guy
may not occur in the order that they are found. - The Music Guy, 5/5/09 music...@alphaios.net def main(): # Create the option parser and parse the options. parser = optparse.OptionParser(usage=HELP

Re: FLV download script works, but I want to enhance it

2009-05-08 Thread The Music Guy
On Thu, May 7, 2009 at 9:29 AM, Aahz a...@pythoncraft.com wrote: Here's my download script to get you started figuring this out, it does the wget in the background so that several downloads can run in parallel from a single terminal window: #!/bin/bash echo Downloading $1 wget $1