This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gps
Recipients gps, gregory.p.smith, gvanrossum
Date 2007-10-12.03:20:59
SpamBayes Score 0.13490282
Marked as misclassified No
Message-id <52dc1c820710112020m1cf354fercbddcefecf4959de@mail.gmail.com>
In-reply-to <ca471dc20710111942l36875c74v3d7e16686fd7e9c7@mail.gmail.com>
Content
> > Patch updated.  It now implements the is*() methods for PyBytes.  It
> > moves common code into a shared bytes_ctype.c and .h file so that
> > stringobject.c and bytesobject.c can share as much as possible.
>
> Did you move this into the stringlib subdirectory? That's more for
> sharing between PyString and PyUnicode, but I think there are more
> opportunities for sharing still, and PyString/PyBytes sharing makes
> sense separately.

Good idea, I haven't done that yet. At the moment it lives in
Include/bytes_ctype.h and Object/bytes_ctype.c directly.  stringlib is a
good place for it and is something I pondered but hadn't gotten to.  I'll do
that as I implement the remaining missing PyBytes_ methods to be in the next
update to this patch.

-gps
Files
File name Uploaded
unnamed gps, 2007-10-12.03:20:58
History
Date User Action Args
2007-10-12 03:20:59gpssetspambayes_score: 0.134903 -> 0.13490282
recipients: + gps, gvanrossum, gregory.p.smith
2007-10-12 03:20:59gpslinkissue1261 messages
2007-10-12 03:20:59gpscreate