[issue16654] IDLE problems with Mac OS 10.6.8 (print syntax)

2012-12-09 Thread stephenhohs

New submission from stephenhohs:

Numerous attempts were made to install (and deinstall) IDLE along with getting 
the recommended version of ActiveTCL.  IDLE will always give a print syntax 
error with one liners print hello, world.  This is occurring for Mac OS 10.6.8

--
components: IDLE
messages: 177246
nosy: stephenhohs
priority: normal
severity: normal
status: open
title: IDLE problems with Mac OS 10.6.8 (print syntax)
versions: Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16654
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16654] IDLE problems with Mac OS 10.6.8 (print syntax)

2012-12-09 Thread R. David Murray

R. David Murray added the comment:

The statement

print hello world 

is indeed invalid syntax in Python3.

--
nosy: +r.david.murray
resolution:  - invalid
stage:  - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16654
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16654] IDLE problems with Mac OS 10.6.8 (print syntax)

2012-12-09 Thread stephenhohs

stephenhohs added the comment:

You are right.

Thanks

Stephen M. Hohs

smh...@aol.com

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16654
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



Re: print syntax

2009-09-05 Thread Bernie
On Thu, 03 Sep 2009 12:22:14 -0400, doug wrote:

 I am new to python, working by way through 'Core Python Programming'. I
 can find no description of using print with the built-in type for
 formatting. I think I have got some [most?] of it from Chun, google, and
 python.org. My comment is - it should not be that hard to find. I would
 suggest a link from the print syntax section.
 
 What is seems to be is:
 
print format-spec % (variable-list)
 
 I assume the '%' is required token.
 
 
 
 _
 Douglas Denault
 http://www.safeport.com
 d...@safeport.com
 Voice: 301-217-9220
Fax: 301-217-9277


You say using print with the built-in type for formatting. - It's two 
separate things, print just prints a string.  You can use the formatting 
quite separately on the string first.

my_string = %s %s %s % (1, 2, 3)# creates string 1 2 3
print my_string

so you probably would find difficulty is searching for 'print 
formatting', you should be looking for string formatting.
   
-- 
http://mail.python.org/mailman/listinfo/python-list


print syntax

2009-09-03 Thread doug
I am new to python, working by way through 'Core Python Programming'. I can find 
no description of using print with the built-in type for formatting. I think I 
have got some [most?] of it from Chun, google, and python.org. My comment is - 
it should not be that hard to find. I would suggest a link from the print syntax 
section.


What is seems to be is:

  print format-spec % (variable-list)

I assume the '%' is required token.



_
Douglas Denault
http://www.safeport.com
d...@safeport.com
Voice: 301-217-9220
  Fax: 301-217-9277
--
http://mail.python.org/mailman/listinfo/python-list


Re: print syntax

2009-09-03 Thread Benjamin Kaplan
On Thu, Sep 3, 2009 at 12:22 PM, d...@safeport.com wrote:
 I am new to python, working by way through 'Core Python Programming'. I can
 find no description of using print with the built-in type for formatting. I
 think I have got some [most?] of it from Chun, google, and python.org. My
 comment is - it should not be that hard to find. I would suggest a link from
 the print syntax section.

 What is seems to be is:

  print format-spec % (variable-list)

 I assume the '%' is required token.


The % has absolutely nothing to do with the print statement. The (old)
formatting syntax is based on the C printf syntax but it's actually
the modulo operator on a string, not a piece of the print statement.
The documentation for it is in the documentation for strings.



 _
 Douglas Denault
 http://www.safeport.com
 d...@safeport.com
 Voice: 301-217-9220
  Fax: 301-217-9277
 --
 http://mail.python.org/mailman/listinfo/python-list

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: print syntax

2009-09-03 Thread Robert Kern

On 2009-09-03 11:50 AM, Benjamin Kaplan wrote:

On Thu, Sep 3, 2009 at 12:22 PM,d...@safeport.com  wrote:

I am new to python, working by way through 'Core Python Programming'. I can
find no description of using print with the built-in type for formatting. I
think I have got some [most?] of it from Chun, google, and python.org. My
comment is - it should not be that hard to find. I would suggest a link from
the print syntax section.

What is seems to be is:

  print format-spec % (variable-list)

I assume the '%' is required token.


The % has absolutely nothing to do with the print statement. The (old)
formatting syntax is based on the C printf syntax but it's actually
the modulo operator on a string, not a piece of the print statement.
The documentation for it is in the documentation for strings.


Namely:

http://docs.python.org/library/stdtypes.html#string-formatting

--
Robert Kern

I have come to believe that the whole world is an enigma, a harmless enigma
 that is made terrible by our own mad attempt to interpret it as though it had
 an underlying truth.
  -- Umberto Eco

--
http://mail.python.org/mailman/listinfo/python-list


[issue6350] Example at end of HTMLParser documentation uses old-style print syntax

2009-06-27 Thread Mitchell Model

New submission from Mitchell Model m...@acm.org:

Change the print statements in the example at the bottom of the
documentation for HTMLParser to function calls.

--
assignee: georg.brandl
components: Documentation
messages: 89755
nosy: MLModel, georg.brandl
severity: normal
status: open
title: Example at end of HTMLParser documentation uses old-style print syntax
versions: Python 3.0, Python 3.1

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6350
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6350] Example at end of HTMLParser documentation uses old-style print syntax

2009-06-27 Thread Mitchell Model

Mitchell Model m...@acm.org added the comment:

Also, while you're at it I think the example should show a call to feed
since HTMLParser is unusual in not taking a contents argument when it is
created. Nothing wrong with the design, and it is clearly stated at the
beginning, but I like examples to be comprehensible at a glance and as
self-sufficient as can be conveniently achieved.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6350
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6350] Example at end of HTMLParser documentation uses old-style print syntax

2009-06-27 Thread Ezio Melotti

Ezio Melotti ezio.melo...@gmail.com added the comment:

Fixed in r73592.
Thanks!

--
nosy: +ezio.melotti
resolution:  - fixed
stage:  - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6350
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com