Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #26336 > unrolled thread

Re: why the different output in Eclipse and Python Shell?

Started byTerry Reedy <tjreedy@udel.edu>
First post2012-08-01 02:39 -0400
Last post2012-08-01 02:39 -0400
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: why the different output in Eclipse and Python Shell? Terry Reedy <tjreedy@udel.edu> - 2012-08-01 02:39 -0400

#26336 — Re: why the different output in Eclipse and Python Shell?

FromTerry Reedy <tjreedy@udel.edu>
Date2012-08-01 02:39 -0400
SubjectRe: why the different output in Eclipse and Python Shell?
Message-ID<mailman.2807.1343803165.4697.python-list@python.org>
On 8/1/2012 12:45 AM, levi nie wrote:
> my code in Eclipse:
>
> dict.fromkeys(['China','America'])

In Eclipse, I presume this prints nothing, as is normal for an editor.

> print "dict is",dict
>
> output: dict is <type 'dict'>

This is red herring. The shell does the same with that line. It is not 
relevant to your question.

> dict.fromkeys(['China','America'])
>
> output:{'America': None, 'China': None}

The interactive interpreter echoes the result of evaluating expressions.

-- 
Terry Jan Reedy


[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web