Re: Finally had to plonk google gorups.
On Apr 16, 11:06 am, Steve Holden <[EMAIL PROTECTED]> wrote: > I'm not saying people shouldn't use Google Groups. I'm saying that > Google can "justify" providing customer "support" that lives somewhere > between zero and extremely crappy by not charging for the service. It's even worse than that. Click on one of these spam links and you'll see Google ads. Why would Google have any motivation to stop selling ads? -- http://mail.python.org/mailman/listinfo/python-list
Re: Java or C++?
On Apr 15, 11:55 am, egbert <[EMAIL PROTECTED]> wrote: > What is the role or position of C# in this context ? > If I remember well, some people have said that C# is an improved > C++ or Java. C# is more similar to Java than C++. Neither is very similar to C++, except in some cosmetic syntactic ways. Personally, that would be my last choice. C++ is the most portable of the three, and the only non- proprietary one (like Python). -- http://mail.python.org/mailman/listinfo/python-list
Re: Java or C++?
On Apr 15, 3:07 am, Paul Anton Letnes <[EMAIL PROTECTED]> wrote: > but C bogs you down with administrative stuff (try converting an int > to a string; I found myself googling for an hour!). It took an hour to find sprintf()? -- http://mail.python.org/mailman/listinfo/python-list
Re: How to make python run faster
On Apr 14, 8:48 am, 一首诗 <[EMAIL PROTECTED]> wrote: > But, it is still not as fast as 1. So if speed is the #1 design goal, use pure C. If not, develop in pure Python and, if the application is too slow, profile the code and look for bottlenecks that can be optimized. There's a good chance that they can be resolved algorithmically, not by simply dropping down to C. -- http://mail.python.org/mailman/listinfo/python-list
Re: Java or C++?
On Apr 14, 1:44 am, [EMAIL PROTECTED] wrote: > Hello, I was hoping to get some opinions on a subject. I've been > programming Python for almost two years now. Recently I learned Perl, > but frankly I'm not very comfortable with it. Now I want to move on > two either Java or C++, but I'm not sure which. Which one do you think > is a softer transition for a Python programmer? Which one do you think > will educate me the best? It depends on your reasons for learning either. If you're targeting a specific job market, find out what is prevelant in that market. And keep in mind that if it's for a job, you'll also have to get up to speed on the relevant libraries and frameworks. If it's educational, I'd recommend C++ just to learn about pointers and memory management, so you get a better idea of what's going on under the covers in languages like Java and Python and Ruby and C#. -- http://mail.python.org/mailman/listinfo/python-list
Re: Java or C++?
On Apr 14, 2:24 am, bdsatish <[EMAIL PROTECTED]> wrote: > On Apr 14, 12:21 pm, Bob Martin <[EMAIL PROTECTED]> wrote: > > > in 342367 20080414 074410 [EMAIL PROTECTED] wrote: > > > >Hello, I was hoping to get some opinions on a subject. I've been > > >programming Python for almost two years now. Recently I learned Perl, > > >but frankly I'm not very comfortable with it. Now I want to move on > > >two either Java or C++, but I'm not sure which. Which one do you think > > >is a softer transition for a Python programmer? Which one do you think > > >will educate me the best? > > Certainly Java. It's also easier to find Java jobs than C++ jobs. Depending on the field, that is. -- http://mail.python.org/mailman/listinfo/python-list
Re: Looking for Advanced Python Tutorials
On Apr 4, 6:58 am, [EMAIL PROTECTED] wrote: > I was wondering if anyone knew of some online (free if possible) > advanced tutorials, especially ones that provides tasks and ideas for > small projects. The issue for myself is I want to improve my python > programming level, and my ability to program in general, but come up > blank thinking of a possible task or project to undertake. Look at PyGame (http://pygame.org) and write a simple game, like asteroids or space invaders. Or heck, start with pong. You'll be amazed at how game programming will stretch your programming skills. Or do graphics with PyOpenGL. Google for NeHe's OpenGL tutorials to get you started. -- http://mail.python.org/mailman/listinfo/python-list
Re: Where can I find :
On Mar 30, 1:22 am, [EMAIL PROTECTED] wrote: > > That's weird. I feel like I could go on about an introductory program > for days and days, la. > > I usually start (both times) with interpreted vs. compiled. It's a > layer of abstraction. But it's very weird; the layers can't tell > either of each other apart. I can hand you the machine instructions, > the names of circuitry, that run Line 1 to Line 9 one time, but you > can't tell the difference between the code and the data. > > Some of it lingers in post-perceptive operations: the memory system, > for the record. Some lingers long times. So far it equates to > different Pythons produce different Pythons, however, though, so I'll > ask the spell checker. Python.get_back_in_skin(). Weird. > > I'm not sure if it makes any difference. The binary you run is > Python.exe. It's already running, then you feed it a raw string, not > on disk without loss of generality. The translation is a little hard > to find too. > > Python :: mingw-c++ : > Python.exe :: mingw-c++.exe : > what? :: machine instructions.exe > > In Python there's a for-loop that's the exact same as one in machine > instructions. > > 0101 b1= 1000 > 0110 if a < b0 goto b1 > 0111 b2= b2+ 1 > > accumulates a number in register b2. You probably want interface and > graphics primitives. Sometimes I feel like "with a scroll bar" > suffices to specify all the detail you need; there's too many > options. (I can do this and this and ... scroll bar, please.) You > know the episode of Star Trek NG where Barclay takes over the > Enterprise. > > I'd also like to be able to write (write) a series of instructions and > have it loop, and debug in vivo, as though a BASIC program were > running and I could edit lines in its doing so, maybe time Windows > Media visualization codecs in time. You could tell story lines and > have it refine, post-inspiration. > > You might be surprised how much repetition in instructions Lines 1 > through 9 (of -code-) share, in both sides of the analogy. Anyone > work with a VAX? What? -- http://mail.python.org/mailman/listinfo/python-list
Re: Where can I find :
On Mar 31, 11:07 am, Laurent Pointal <[EMAIL PROTECTED]> wrote: > You may look at "Dive into Python", there is an online version, > translation in some languages other than english (if needed). It propose > a line by line explanation on many scripts targetting language and > libraries usage. > > http://www.diveintopython.org/ I second that recommendation and was about to post the link myself. -- http://mail.python.org/mailman/listinfo/python-list
Re: the scaling of pics in pygame
On Apr 1, 9:44 pm, Jimmy <[EMAIL PROTECTED]> wrote: > Hi, everyone > > I am using Pygame to write a small program. I tried to load a .jpg > picture into > the screen, however, the size of the pic doesn't fit into the window > properly. Can > anyone tell me how to scale the picture into the window? You might get a quicker answer at pygame.org - check the mailing list and/or docs. -- http://mail.python.org/mailman/listinfo/python-list
Re: Is this a good time to start learning python?
On Apr 1, 2:42 pm, "Eduardo O. Padoan" <[EMAIL PROTECTED]> wrote: > On Tue, Apr 1, 2008 at 4:20 PM, <[EMAIL PROTECTED]> wrote: > > You misunderstand. C++ has a lot of "warts" to maintain backwards > > compatibility with C. The standards committee could eliminate these > > warts to make the language "cleaner", but it would break a lot of > > systems. > > It would not "break" anything that not move from C to C++, this is my point. You missed the point completely. C++ has a new version coming out soon, and as part of it, the less attractive parts of the language (like C compatibility) are NOT being removed, as that would break a lot of existing apps. > People not willing to take the migration path (porting to 2.6, using > the -3 flag, refactoring and re-running the tests untill the warning > are gone, using the 2to3 tool...) will not upgrade. No one will force > you to do it. 2.6 will not desappear from the python.org site anytime > soon. Will 2.6 be supported with patches and fixes going forward? -- http://mail.python.org/mailman/listinfo/python-list
Re: Is this a good time to start learning python?
On Apr 1, 2:11 pm, "Eduardo O. Padoan" <[EMAIL PROTECTED]> wrote: > On Tue, Apr 1, 2008 at 3:57 PM, <[EMAIL PROTECTED]> wrote: > > On Apr 1, 12:47 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> > > wrote: > > > En Tue, 01 Apr 2008 13:57:55 -0300, <[EMAIL PROTECTED]> escribió: > > > > > On Mar 31, 1:36 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> > > > > wrote: > > > > >> Don't be scared by the "backwards incompatible" tag - it's the way to > > > >> get > > > >> rid of nasty things that could not be dropped otherwise. > > > > > I would consider breaking production code to be "nasty" as well. > > > > Please explain how the existence of Python 3.0 would break your production > > > code. > > > The existence of battery acid won't hurt me either, unless I come into > > contact with it. If one eventually upgrades to 3.0 -- which is > > ostensibly the desired path -- their code could break and require > > fixing. > > And how would this happen? I dont know of any good software > distribution that upgrades a component to another major revision > without asking first. The desired path is that, if somene wants to > port his software to Python 3.0, that he follow the migration plan. Of course, that's the point. If you want to upgrade to the next version of Python, you have to fix your code. That stinks. Your other alternative is to remain stuck with Python 2.x, but eventually the support for that will dry up. > Final users will install Python 3.0 as python3.0 anyway, with Python > 2.x as default 'python' binary. > > > Backward compatibility is important. C++ could break all ties with C > > to "clean up" as well, but it would be a braindead move that would > > break existing code bases upon upgrade. > > C++ is not C. No one "upgrades" from C to C++. You misunderstand. C++ has a lot of "warts" to maintain backwards compatibility with C. The standards committee could eliminate these warts to make the language "cleaner", but it would break a lot of systems. -- http://mail.python.org/mailman/listinfo/python-list
Re: Is this a good time to start learning python?
On Apr 1, 12:47 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Tue, 01 Apr 2008 13:57:55 -0300, <[EMAIL PROTECTED]> escribió: > > > On Mar 31, 1:36 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> > > wrote: > > >> Don't be scared by the "backwards incompatible" tag - it's the way to > >> get > >> rid of nasty things that could not be dropped otherwise. > > > I would consider breaking production code to be "nasty" as well. > > Please explain how the existence of Python 3.0 would break your production > code. The existence of battery acid won't hurt me either, unless I come into contact with it. If one eventually upgrades to 3.0 -- which is ostensibly the desired path -- their code could break and require fixing. Backward compatibility is important. C++ could break all ties with C to "clean up" as well, but it would be a braindead move that would break existing code bases upon upgrade. -- http://mail.python.org/mailman/listinfo/python-list
Re: Is this a good time to start learning python?
On Mar 31, 1:36 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > Don't be scared by the "backwards incompatible" tag - it's the way to get > rid of nasty things that could not be dropped otherwise. I would consider breaking production code to be "nasty" as well. -- http://mail.python.org/mailman/listinfo/python-list
Re: Pycon disappointment
On Mar 16, 2:43 pm, Robert Hicks <[EMAIL PROTECTED]> wrote: > On Mar 16, 12:38 pm, [EMAIL PROTECTED] wrote: > > > On Mar 16, 6:10 am, Bruce Eckel <[EMAIL PROTECTED]> wrote: > > > > I think a lot of people have been caught up in the idea that we need > > > to commercialize Python, and ride some kind of wave of publicity the > > > way that Java and C# and Rails seem to have done. > > > This coming from someone who caught the Java wave and rode it for a > > decade. > > Doesn't that make him better to see the problems with it? Sure, but he dumped C++ (a truly non-commercial language) like a bad habit for the latest silver bullet ten years ago. Complaints against Java's commercial nature now ring a bit hollow. -- http://mail.python.org/mailman/listinfo/python-list
Re: Pycon disappointment
On Mar 16, 6:10 am, Bruce Eckel <[EMAIL PROTECTED]> wrote: > I think a lot of people have been caught up in the idea that we need > to commercialize Python, and ride some kind of wave of publicity the > way that Java and C# and Rails seem to have done. This coming from someone who caught the Java wave and rode it for a decade. -- http://mail.python.org/mailman/listinfo/python-list