On Thu, Nov 12, 2009 at 7:10 AM, Peng Yu wrote:
> On Thu, Nov 12, 2009 at 12:00 AM, alex23 wrote:
>> On Nov 12, 2:46 pm, Peng Yu wrote:
>>> I see Error is derived from EnvironmentError in shutil.py.
>>>
>>> class Error(EnvironmentError):
>>> pass
>>>
>>> I'm wondering why EnvironmentError ca
On Thu, Nov 12, 2009 at 12:00 AM, alex23 wrote:
> On Nov 12, 2:46 pm, Peng Yu wrote:
>> I see Error is derived from EnvironmentError in shutil.py.
>>
>> class Error(EnvironmentError):
>> pass
>>
>> I'm wondering why EnvironmentError can not be raised directly. Why
>> Error is raised instead?
On Nov 12, 2:46 pm, Peng Yu wrote:
> I see Error is derived from EnvironmentError in shutil.py.
>
> class Error(EnvironmentError):
> pass
>
> I'm wondering why EnvironmentError can not be raised directly. Why
> Error is raised instead?
This way you can explicitly trap on shutil.Error and not
On Wed, 11 Nov 2009 22:46:34 -0600, Peng Yu wrote:
> I see Error is derived from EnvironmentError in shutil.py.
>
> class Error(EnvironmentError):
> pass
>
> I'm wondering why EnvironmentError can not be raised directly. Why Error
> is raised instead?
Probably to do with the personal taste
I see Error is derived from EnvironmentError in shutil.py.
class Error(EnvironmentError):
pass
I'm wondering why EnvironmentError can not be raised directly. Why
Error is raised instead?
--
http://mail.python.org/mailman/listinfo/python-list