Re: Syntax problem - cannot solve it by myself

2010-06-09 Thread Alister
On Wed, 09 Jun 2010 02:45:36 +, Deadly Dirk wrote: > On Tue, 08 Jun 2010 18:52:44 -0700, alex23 wrote: > > >> Unless you have a clear need for 3rd party libraries that currently >> don't have 3.x versions, starting with Python 3 isn't a bad idea. > > From what I see, most of the people are

Re: Syntax problem - cannot solve it by myself

2010-06-09 Thread Jorgen Grahn
On Wed, 2010-06-09, Deadly Dirk wrote: > On Tue, 08 Jun 2010 18:52:44 -0700, alex23 wrote: > > >> Unless you have a clear need for 3rd party libraries that currently >> don't have 3.x versions, starting with Python 3 isn't a bad idea. But see below. > From what I see, most of the people are still

Re: Syntax problem - cannot solve it by myself

2010-06-08 Thread Steven D'Aprano
On Wed, 09 Jun 2010 02:45:36 +, Deadly Dirk wrote: > On Tue, 08 Jun 2010 18:52:44 -0700, alex23 wrote: > > >> Unless you have a clear need for 3rd party libraries that currently >> don't have 3.x versions, starting with Python 3 isn't a bad idea. > > From what I see, most of the people are

Re: Syntax problem - cannot solve it by myself

2010-06-08 Thread MRAB
Deadly Dirk wrote: On Tue, 08 Jun 2010 18:52:44 -0700, alex23 wrote: Unless you have a clear need for 3rd party libraries that currently don't have 3.x versions, starting with Python 3 isn't a bad idea. From what I see, most of the people are still using Python 2.x. My reason for learning P

Re: Syntax problem - cannot solve it by myself

2010-06-08 Thread alex23
Deadly Dirk wrote: > From what I see, most of the people are still using Python 2.x. My reason > for learning Python is the fact that my CTO decided that the new company > standard for scripting languages will be Python. I've been using Perl for > 15 years and it was completely adequate but, appar

Re: Syntax problem - cannot solve it by myself

2010-06-08 Thread Deadly Dirk
On Tue, 08 Jun 2010 18:52:44 -0700, alex23 wrote: > Unless you have a clear need for 3rd party libraries that currently > don't have 3.x versions, starting with Python 3 isn't a bad idea. >From what I see, most of the people are still using Python 2.x. My reason for learning Python is the fact

Re: Syntax problem - cannot solve it by myself

2010-06-08 Thread alex23
Deadly Dirk wrote: > The book covers Python3 but my understanding was that it should also > cover Python 2.5 and 2.6. The "SECOND EDITION Covers Python 3" banner across the top of the cover would seem to indicate otherwise. The first line of the About section confirms it: "This book is intended

Re: Syntax problem - cannot solve it by myself

2010-06-08 Thread Deadly Dirk
On Wed, 09 Jun 2010 00:25:01 +0200, Thomas Jollans wrote: > Yes, that will work, but you should really install Python 3.1 (it's in > ubuntu, as others have said!) because you will almost certainly hit into > other snags. Not as obvious as this one, but they are there. You can > work around all of

Re: Syntax problem - cannot solve it by myself

2010-06-08 Thread Thomas Jollans
On 06/09/2010 12:04 AM, Deadly Dirk wrote: > On Tue, 08 Jun 2010 21:44:18 +, Deadly Dirk wrote: > > >> I am a total beginner with Python. I am reading a book ("The Quick >> Python Book", 2nd edition, by Vernon Ceder) which tells me that print >> function takes end="" argument not to print ne

Re: Syntax problem - cannot solve it by myself

2010-06-08 Thread Lie Ryan
On 06/09/10 07:44, Deadly Dirk wrote: > I am a total beginner with Python. I am reading a book ("The Quick Python > Book", 2nd edition, by Vernon Ceder) which tells me that print function > takes end="" argument not to print newline character. I tried and here is > what happens: > print(x)

Re: Syntax problem - cannot solve it by myself

2010-06-08 Thread Ethan Furman
Deadly Dirk wrote: I am a total beginner with Python. I am reading a book ("The Quick Python Book", 2nd edition, by Vernon Ceder) which tells me that print function takes end="" argument not to print newline character. I tried and here is what happens: print(x) abc print(x,end="") File

Re: Syntax problem - cannot solve it by myself

2010-06-08 Thread Deadly Dirk
On Tue, 08 Jun 2010 21:44:18 +, Deadly Dirk wrote: > I am a total beginner with Python. I am reading a book ("The Quick > Python Book", 2nd edition, by Vernon Ceder) which tells me that print > function takes end="" argument not to print newline character. I tried > and here is what happens: >

Re: Syntax problem - cannot solve it by myself

2010-06-08 Thread fred lore
On 8 juin, 23:44, Deadly Dirk wrote: > I am a total beginner with Python. I am reading a book ("The Quick Python > Book", 2nd edition, by Vernon Ceder) which tells me that print function > takes end="" argument not to print newline character. I tried and here is > what happens: > > >>> print(x) >

Re: Syntax problem - cannot solve it by myself

2010-06-08 Thread Peter Otten
Deadly Dirk wrote: > I am a total beginner with Python. I am reading a book ("The Quick Python > Book", 2nd edition, by Vernon Ceder) which tells me that print function > takes end="" argument not to print newline character. I tried and here is > what happens: > print(x) > abc print(x,e

Re: Syntax problem - cannot solve it by myself

2010-06-08 Thread Robert Kern
On 6/8/10 5:44 PM, Deadly Dirk wrote: I am a total beginner with Python. I am reading a book ("The Quick Python Book", 2nd edition, by Vernon Ceder) which tells me that print function takes end="" argument not to print newline character. I tried and here is what happens: print(x) abc print(x,

Re: Syntax problem - cannot solve it by myself

2010-06-08 Thread Gabriele Lanaro
The print function you're trying to use is for python 3 version only, If you want to keep reading the book, install python 3, else take a book that covers python 2.x syntax 2010/6/8 Deadly Dirk > I am a total beginner with Python. I am reading a book ("The Quick Python > Book", 2nd edition, by V

Syntax problem - cannot solve it by myself

2010-06-08 Thread Deadly Dirk
I am a total beginner with Python. I am reading a book ("The Quick Python Book", 2nd edition, by Vernon Ceder) which tells me that print function takes end="" argument not to print newline character. I tried and here is what happens: >>> print(x) abc >>> print(x,end="") File "", line 1 pr