On 27-Oct-06, at 2:25 AM, Leo Kislov wrote:
>
> Ivan Vinogradov wrote:
>> ...
>>
>> call("core/main") works but uses .. of core for input/output.
>>
>> call("core/main",cwd="core") and call("main",cwd="core") b
Dear All,
I would greatly appreciate a nudge in the right direction concerning
the use of cwd argument in the call function from subprocess module.
The setup is as follows:
driver.py <- python script
core/ <- directory
main<- fortran executab
On 5-May-06, at 6:45 PM, Grant Edwards wrote:
> On 2006-05-05, Robert Kern <[EMAIL PROTECTED]> wrote:
>
>>> Our programming expectations may differ, but an option to catch
>>> NaNs as
>>> an exception is a great idea.
>>
> [...]
>
>> Pure Python has a similar, but somewhat less flexible method,
>
> There are those of us that need NaNs in production code, so it
> would have to be something that could be configured. I find
> that in my programs the places where I need to do something
> "exceptional" with a NaN are very limited. The vast majority
> of the time, I need them to propagate qu
Another option is to use a dedicated section and simply omit values
for options:
[dirs]
/path/1:
/long/path/2:
/etc:
Then get options for section dirs.
This approach precludes using ':' or '=' in paths though.
--
http://mail.python.org/mailman/listinfo/python-list
>
> NaNs are handled.
Throwing an exception would be nice in regular Python (non-scipy).
This works to catch NaN on OSX and Linux:
# assuming x is a number
if x+1==x or x!=x:
#x is NaN
But is expensive as a precautionary measure.
Assert can be used for testing, if production code can
On 31-Mar-06, at 11:17 AM, bayerj wrote:
> Mind, that XML documents are not more flexible than RDBMS.
>
> You can represent any XML document in a RDBMS. You cannot represent
> any
> RDBMS in an XML document. RDBMS are (strictly spoken) relations and
> XML
> documents are trees. Relations are
Hello All,
this seems like a trivial problem, but I just can't find an elegant
solution neither by myself, nor with google's help.
I'd like to be able to keep an array representing coordinates for a
system of points.
Since I'd like to operate on each point's coordinates individually,
for sp