The following forum message was posted by cwutte at
http://sourceforge.net/projects/pydev/forums/forum/293649/topic/4408803:
Hi all,
somehow I could not find anything about the following, so the question is also
if just a problem with my eclipse (Galileo, PyDev 1.6.5.)
In PyDev the example code is wrapped in that way:
[code]return [0.5 * ((mod.foo(theta_i - theta_prime_i) /
mod.foo(theta_i + theta_prime_i)) ** 2 +
(mod.bar(theta_i - theta_prime_i) /
mod.bar(theta_i + theta_prime_i)) ** 2)
for theta_i, theta_prime_i in zip(theta, theta_prime)]
[/code]
with an additional one space indent beginning with the mod.bar line and the
for not aligned at the comprehension start
The correct way should be I think like in IDLE:
[code]return [0.5 * ((mod.foo(theta_i - theta_prime_i) /
mod.foo(theta_i + theta_prime_i)) ** 2 +
(mod.bar(theta_i - theta_prime_i) /
mod.bar(theta_i + theta_prime_i)) ** 2)
for theta_i, theta_prime_i in zip(theta, theta_prime)[/code]
Thanks for any help.
------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Pydev-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pydev-users