is not callable
It has similar error with Python 3.4.1.
Why does pprint not work?
Thanks,
--
https://mail.python.org/mailman/listinfo/python-list
On 03/08/2014 22:34, robkote...@gmail.com wrote:
[snipped to bits]
Please don't top post, further would you read and action this
https://wiki.python.org/moin/GoogleGroupsPython to prevent us seeing
double line spacing and single line paragraphs, thanks.
--
My fellow Pythonistas, ask not
C:\Python27\Lib\SITE-P~1\PYTHON~2\pywin\debugger\debugger.py,
line 655, in run
exec cmd in globals, locals
File C:\cygwin64\home\Jeff\Python_lesson\ppn.py, line 1, in module
import pprint
TypeError: 'module' object is not callable
It has similar error with Python 3.4.1.
Why does
On Wed, Jul 23, 2014 at 7:42 AM, fl rxjw...@gmail.com wrote:
I enter the example lines of that website:
import pprint
board = [ [0]*8 ] * 8
pprint(board)
Flaw in the blog post: he didn't actually specify the import line.
What you actually want is this:
from pprint import pprint
Or use
On 07/22/2014 02:42 PM, fl wrote:
Hi,
I read web tutorial at:
http://nedbatchelder.com/blog/201308/names_and_values_making_a_game_board.html
I enter the example lines of that website:
import pprint
board = [ [0]*8 ] * 8
pprint(board)
pprint is a module name -- you need to invoke the
On Tuesday, July 22, 2014 5:51:07 PM UTC-4, emile wrote:
On 07/22/2014 02:42 PM, fl wrote:
pprint is a module name -- you need to invoke the pprint function from
within the pprint module:
pprint.pprint(board)
Thanks. I am curious about the two pprint. Is it the first pprint the name of
the
On 07/22/2014 03:05 PM, fl wrote:
On Tuesday, July 22, 2014 5:51:07 PM UTC-4, emile wrote:
On 07/22/2014 02:42 PM, fl wrote:
pprint is a module name -- you need to invoke the pprint function from
within the pprint module:
pprint.pprint(board)
Thanks. I am curious about the two pprint. Is it
On Wed, Jul 23, 2014 at 8:05 AM, fl rxjw...@gmail.com wrote:
On Tuesday, July 22, 2014 5:51:07 PM UTC-4, emile wrote:
On 07/22/2014 02:42 PM, fl wrote:
pprint is a module name -- you need to invoke the pprint function from
within the pprint module:
pprint.pprint(board)
Thanks. I am curious
On Tue, Jul 22, 2014 at 3:17 PM, emile em...@fenx.com wrote:
Then, how can I list all the function of pprint?
use the dir builtin:
dir (pprint)
['PrettyPrinter', '_StringIO', '__all__', '__builtins__', '__doc__',
'__file__', '__name__', '_commajoin', '_id', '_len', '_perfcheck',
On 7/22/14 5:49 PM, Chris Angelico wrote:
On Wed, Jul 23, 2014 at 7:42 AM, fl rxjw...@gmail.com wrote:
I enter the example lines of that website:
import pprint
board = [ [0]*8 ] * 8
pprint(board)
Flaw in the blog post: he didn't actually specify the import line.
What you actually want is
On Wed, Jul 23, 2014 at 12:26 PM, Ned Batchelder n...@nedbatchelder.com wrote:
Ned, if you're reading this: Adding the import would make the post
clearer. :)
Done.
Thanks Ned!
ChrisA
--
https://mail.python.org/mailman/listinfo/python-list
11 matches
Mail list logo