Python Programming - Generators - Discussion
Discussion Forum : Generators - General Questions (Q.No. 27)
27.
What does the
generator.throw(ExceptionType, value)
method do?
Answer: Option
Explanation:
generator.throw(ExceptionType, value)
raises a custom exception of type ExceptionType
with the specified value inside the generator.
Discussion:
Be the first person to comment on this question !
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers