Le jeudi 13 octobre 2011 01:27:32, Antoine Pitrou a écrit : > On Thu, 13 Oct 2011 01:17:29 +0200 > > victor.stinner <python-check...@python.org> wrote: > > http://hg.python.org/cpython/rev/e5bd48b43a58 > > changeset: 72903:e5bd48b43a58 > > user: Victor Stinner <victor.stin...@haypocalc.com> > > date: Thu Oct 13 00:18:12 2011 +0200 > > > > summary: > > Optimize findchar() for PyUnicode_1BYTE_KIND: use memchr and memrchr > > Can't we simply reuse the stringlib here?
Hum, maybe, but not easily: functions have different prototypes and manipulate different types. Victor _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com