[Ilugc] Python error starting OpenERP 6.1 RC1 on Centos 6.2

  • From: vkslist@xxxxxxxxx (VK Sameer)
  • Date: Wed, 25 Jan 2012 09:21:07 +0000 (UTC)

On 2012-01-25 at 06:17:23 GMT kenneth gonsalves <lawgon at ...> writes:
 

On Tue, 2012-01-24 at 12:23 +0000, VK Sameer wrote:
return sorted([(k,v) for k,v in fields.__dict__.iteritems()

I honestly don't know the code and am operating at a
syntactic-correctness level
rather than semantic-correctness level. 

what does this mean?

Oh, that means I don't understand the data contained in the dictionary/object
and only know that "something" is causing a valid Python statement to be
interpreted as a problem by the Python interpreter.

In this case, it may make sense for a 2-element tuple (list?) containing 2
instances of the same data to be returned.

As it turns out, the problem was with a particular version of the Python
interpreter, and maybe the CentOS build environment. So, while the statement is
semantically correct, it was misinterpreted as a syntax error :)

Regards,
Sameer





Other related posts: