Bug 430991
Summary: | Miss handling of errors by error handler in python | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Aaron Konstam <akonstam> | ||||
Component: | python | Assignee: | James Antill <james.antill> | ||||
Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | low | Docs Contact: | |||||
Priority: | low | ||||||
Version: | 7 | CC: | ivazqueznet, james.antill, katzj | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2008-01-30 23:10:32 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Aaron Konstam
2008-01-30 23:06:45 UTC
1) The error is generated outside of the function. 2) The error is generated outside of the try block inside the function. Created attachment 293526 [details]
Show how to catch a TypeError within a function
I'm not sure why you posted this here ... did you really expect Fedora to
alter the python language?
I'd also suggest that you go read the python language tutorials etc. quite a
bit more, I've attached a "solution" to your problem written using normal
python.
Well I will drop this buut I don't agree with the analysis in comment #1 above: Thhe error is generated when the function is taken by the interpreter to execute. I f we don't know what function we are executing we don't know how many arguments we are executing. The construct is: try <execution block> except TypeError action It is a python source construct. Its defineition is that is an error occurs in the <execution block> thenn the action will occur. This error is obviiously genrated in the try block and should be caught. The statemennt in 2) aboive is obviously fallacious from a python source perspective. I will drop this because it is bug is obviously part of the original python implimentation and no one wants to admit they were wrong all these years. I responded to comment #2 directly and commented on his demaning tone which he could get rid of. I own the Python Language Reference Manual Release 2.3 and I would claim the behavior of the python interpreter in Fedora is contrary to the decriptiion of its operation in that manual. |