emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] odd/unexpected behavior with Python src blocks


From: Aaron Ecay
Subject: Re: [O] odd/unexpected behavior with Python src blocks
Date: Sun, 28 Sep 2014 21:27:29 -0400
User-agent: Notmuch/0.18.1+51~gbbbdf04 (http://notmuchmail.org) Emacs/24.4.50.2 (x86_64-unknown-linux-gnu)

Hi John,

2014ko irailak 28an, John Kitchin-ek idatzi zuen:

[...]

> I am not sure why this happens, but it seems like incorrect behavior to
> me.

In the first case, python exits with a non-zero exit code, whereas in
the second it exits with a zero code (i.e. successful exit), and prints
the matrix-thing [[1.], [1.]] to stdout.  It looks like scipy traps the
NameErrors and prints them to stderr, but continues its computation
regardless.

I’d say babel is performing as desired here, but scipy sadly isn’t
reporting its errors in the standard way (by a nonzero exit, which I
think would happen automatically if the NameErrors made it to the top
level of the stack without being caught).

-- 
Aaron Ecay



reply via email to

[Prev in Thread] Current Thread [Next in Thread]