[Patches] [ python-Patches-1505257 ] winerror module
SourceForge.net
noreply at sourceforge.net
Fri Jun 16 09:43:53 CEST 2006
Patches item #1505257, was opened at 2006-06-13 10:57
Message generated for change (Comment added) made by lemburg
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1505257&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Library (Lib)
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Submitted By: M.-A. Lemburg (lemburg)
Assigned to: Martin v. Löwis (loewis)
Summary: winerror module
Initial Comment:
Hi Martin,
unfortunately I haven't found time to work on a C based
winerror module.
Here's a generator and the generated Python module
which defines the interface. This can then later be
replaced by a more efficient C implementation.
----------------------------------------------------------------------
>Comment By: M.-A. Lemburg (lemburg)
Date: 2006-06-16 09:43
Message:
Logged In: YES
user_id=38388
It's a new module, so it may also come with a new interface.
Note that there's not much difference between the errno
module and winerror, except that you can't write
winerror.ERROR, but have to do one more indirection:
winerror.winerror.ERROR.
The reason for having a lookup object is that the number of
error symbols is huge and you'd ideally only want those
symbols being loaded into the process that actually need
(typically only a few). The C implementation of the lookup
object will make this possible by storing the data in a
static C array.
I will add documentation for the module based on the errno
module documentation, but not before next week - no time. I
still think that the module should go in before beta1 is
released.
----------------------------------------------------------------------
Comment By: Martin v. Löwis (loewis)
Date: 2006-06-14 07:15
Message:
Logged In: YES
user_id=21627
As discussed before, I am uncomfortable with a lookup
object, instead of just two dicts or dict-like objects: it's
inconsistent with the errno module, and I don't see the need
for it.
Also, can you please provide documentation?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1505257&group_id=5470
More information about the Patches
mailing list