New submission from Kamil Kisiel ka...@kamilkisiel.net:
Python returns a different exit status when an exception is raised and -m is
used as opposed to just running a module.
A short example, let's call it foo.py:
def main():
raise ValueError()
if __name__ == '__main__
Kamil Kisiel ka...@kamilkisiel.net added the comment:
Here's my proposed patch for the documentation, against the head of the 2.7
branch.
--
keywords: +patch
Added file: http://bugs.python.org/file22570/os.rst.patch
___
Python tracker rep
Kamil Kisiel ka...@kamilkisiel.net added the comment:
The application is interfacing with a C library that uses abort() to signal
fatal errors (horrible, I know..). Instead of core dumping I would like to be
able to handle these errors at the Python level and do something else. It's
starting
Changes by Kamil Kisiel ka...@kamilkisiel.net:
--
nosy: kisielk
priority: normal
severity: normal
status: open
title: signal handler dpes
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12423
New submission from Kamil Kisiel ka...@kamilkisiel.net:
It seems that registering a signal handler for SIGABRT doesn't handle the
signal from os.abort().
Example code:
import signal, os
import time
def handler(signum, frame):
print Signal!
raise Exception()
signal.signal
New submission from Kamil Kisiel kisi...@users.sourceforge.net:
The library documentation (http://docs.python.org/library/os.html) states:
os.EX_NOTFOUND
Exit code that means something like “an entry was not found”.
Availability: Unix.
New in version 2.3.
However, on both my Linux and OS X
Kamil Kisiel kisi...@users.sourceforge.net added the comment:
That should have read Linux and OS X installs of *Python*.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9933
Kamil Kisiel kisi...@users.sourceforge.net added the comment:
I mostly wanted to just report the issue rather than propose a solution, so I'm
in favor of whatever everyone feels is best.
As for how I came across the issue, it was mostly curiosity, I wanted to see
the numerical value of all
Kamil Kisiel kisi...@users.sourceforge.net added the comment:
While I agree this functionality isn't strictly necessary I think it makes
sense from a semantic point of view. I ran in to this issue today while writing
some code and I simply expected the negative syntax to work, given
This past week I cleaned up and released some of my code for
converting LaTeX math equations in to PNG images. The current concept
is to have a useful unix-style command line utility as well as a
module that can be embedded in to other applications such as wikis,
CMSs, etc. I've released it under
10 matches
Mail list logo