[Python-Dev] Py2.3 Todo List

Andrew MacIntyre andymac@bullseye.apana.org.au
Sun, 22 Jun 2003 22:49:34 +1000 (EST)


  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mime@docserver.cac.washington.edu for more info.

--0-756315873-1056286174=:59221
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Fri, 20 Jun 2003, Gustavo Niemeyer wrote:

> > implementation. I'm also checking if it is possible to move some of
> > the intelligence in MAX_REPEAT_ONE to MAX_REPEAT.
>
> Good news and bad news. I was able to greatly improve some cases
> using the priciples of MAX_REPEAT_ONE, but I also got a problem
> in the current implementation. I'll be working on it.

Not sure whether this refers to the second version of the patch.

I've tried this (2nd version of patch) on both FreeBSD 4.8 and 5.1.

gcc 2.95 (4.8) barfs on the code, but gcc 3.2.2 (5.1) is ok - attached
patch shuts 2.95 up.

Unfortunately, in both cases test_pyclbr goes off with the pixies with the
patch applied.

Interestingly, interrupting with a Ctrl-C produces a segmentation fault,
and the gdb backtrace is the same for both platforms (4.8/5.1).  If the bt
is useful, I can send it direct.

Don't yet know what other tests might be misbehaving, having only gotten
as far as test_pyclbr.

Regards,
Andrew.

--
Andrew I MacIntyre                     "These thoughts are mine alone..."
E-mail: andymac@bullseye.apana.org.au  (pref) | Snail: PO Box 370
        andymac@pcug.org.au             (alt) |        Belconnen  ACT  2616
Web:    http://www.andymac.org/               |        Australia
--0-756315873-1056286174=:59221
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="_sre.c.exp.patch"
Content-Transfer-Encoding: BASE64
Content-ID: <20030622224934.I59221@bullseye.apana.org.au>
Content-Description: _sre.c.gcc295.patch
Content-Disposition: attachment; filename="_sre.c.exp.patch"

KioqIF9zcmUuYy5iYWsJU3VuIEp1biAyMiAyMjoxMjoxOCAyMDAzDQotLS0g
X3NyZS5jCVN1biBKdW4gMjIgMjE6NDI6NTUgMjAwMw0KKioqKioqKioqKioq
KioqDQoqKiogOTM1LDk0NSAqKioqDQogICAgICAgICAgICAgIFRSQUNFKCgi
fCVwfCVwfEdST1VQUkVGICVkXG4iLCBwYXR0ZXJuLCBwdHIsIHBhdHRlcm5b
MF0pKTsNCiAgICAgICAgICAgICAgaSA9IHBhdHRlcm5bMF07DQogICAgICAg
ICAgICAgIHsNCiAgICAgICAgICAgICAgICAgIGludCBncm91cHJlZiA9IGkr
aTsNCiAgICAgICAgICAgICAgICAgIGlmIChncm91cHJlZiA+PSBzdGF0ZS0+
bGFzdG1hcmspDQogICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIDA7DQoh
ICAgICAgICAgICAgICAgICBTUkVfQ0hBUiogcCA9IChTUkVfQ0hBUiopIHN0
YXRlLT5tYXJrW2dyb3VwcmVmXTsNCiEgICAgICAgICAgICAgICAgIFNSRV9D
SEFSKiBlID0gKFNSRV9DSEFSKikgc3RhdGUtPm1hcmtbZ3JvdXByZWYrMV07
DQogICAgICAgICAgICAgICAgICBpZiAoIXAgfHwgIWUgfHwgZSA8IHApDQog
ICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIDA7DQogICAgICAgICAgICAg
ICAgICB3aGlsZSAocCA8IGUpIHsNCi0tLSA5MzUsOTQ3IC0tLS0NCiAgICAg
ICAgICAgICAgVFJBQ0UoKCJ8JXB8JXB8R1JPVVBSRUYgJWRcbiIsIHBhdHRl
cm4sIHB0ciwgcGF0dGVyblswXSkpOw0KICAgICAgICAgICAgICBpID0gcGF0
dGVyblswXTsNCiAgICAgICAgICAgICAgew0KKyAgICAgICAgICAgICAgICAg
U1JFX0NIQVIqIHA7DQorICAgICAgICAgICAgICAgICBTUkVfQ0hBUiogZTsN
CiAgICAgICAgICAgICAgICAgIGludCBncm91cHJlZiA9IGkraTsNCiAgICAg
ICAgICAgICAgICAgIGlmIChncm91cHJlZiA+PSBzdGF0ZS0+bGFzdG1hcmsp
DQogICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIDA7DQohICAgICAgICAg
ICAgICAgICBwID0gKFNSRV9DSEFSKikgc3RhdGUtPm1hcmtbZ3JvdXByZWZd
Ow0KISAgICAgICAgICAgICAgICAgZSA9IChTUkVfQ0hBUiopIHN0YXRlLT5t
YXJrW2dyb3VwcmVmKzFdOw0KICAgICAgICAgICAgICAgICAgaWYgKCFwIHx8
ICFlIHx8IGUgPCBwKQ0KICAgICAgICAgICAgICAgICAgICAgIHJldHVybiAw
Ow0KICAgICAgICAgICAgICAgICAgd2hpbGUgKHAgPCBlKSB7DQoqKioqKioq
KioqKioqKioNCioqKiA5NTYsOTY2ICoqKioNCiAgICAgICAgICAgICAgVFJB
Q0UoKCJ8JXB8JXB8R1JPVVBSRUZfSUdOT1JFICVkXG4iLCBwYXR0ZXJuLCBw
dHIsIHBhdHRlcm5bMF0pKTsNCiAgICAgICAgICAgICAgaSA9IHBhdHRlcm5b
MF07DQogICAgICAgICAgICAgIHsNCiAgICAgICAgICAgICAgICAgIGludCBn
cm91cHJlZiA9IGkraTsNCiAgICAgICAgICAgICAgICAgIGlmIChncm91cHJl
ZiA+PSBzdGF0ZS0+bGFzdG1hcmspDQogICAgICAgICAgICAgICAgICAgICAg
cmV0dXJuIDA7DQohICAgICAgICAgICAgICAgICBTUkVfQ0hBUiogcCA9IChT
UkVfQ0hBUiopIHN0YXRlLT5tYXJrW2dyb3VwcmVmXTsNCiEgICAgICAgICAg
ICAgICAgIFNSRV9DSEFSKiBlID0gKFNSRV9DSEFSKikgc3RhdGUtPm1hcmtb
Z3JvdXByZWYrMV07DQogICAgICAgICAgICAgICAgICBpZiAoIXAgfHwgIWUg
fHwgZSA8IHApDQogICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIDA7DQog
ICAgICAgICAgICAgICAgICB3aGlsZSAocCA8IGUpIHsNCi0tLSA5NTgsOTcw
IC0tLS0NCiAgICAgICAgICAgICAgVFJBQ0UoKCJ8JXB8JXB8R1JPVVBSRUZf
SUdOT1JFICVkXG4iLCBwYXR0ZXJuLCBwdHIsIHBhdHRlcm5bMF0pKTsNCiAg
ICAgICAgICAgICAgaSA9IHBhdHRlcm5bMF07DQogICAgICAgICAgICAgIHsN
CisgICAgICAgICAgICAgICAgIFNSRV9DSEFSKiBwOw0KKyAgICAgICAgICAg
ICAgICAgU1JFX0NIQVIqIGU7DQogICAgICAgICAgICAgICAgICBpbnQgZ3Jv
dXByZWYgPSBpK2k7DQogICAgICAgICAgICAgICAgICBpZiAoZ3JvdXByZWYg
Pj0gc3RhdGUtPmxhc3RtYXJrKQ0KICAgICAgICAgICAgICAgICAgICAgIHJl
dHVybiAwOw0KISAgICAgICAgICAgICAgICAgcCA9IChTUkVfQ0hBUiopIHN0
YXRlLT5tYXJrW2dyb3VwcmVmXTsNCiEgICAgICAgICAgICAgICAgIGUgPSAo
U1JFX0NIQVIqKSBzdGF0ZS0+bWFya1tncm91cHJlZisxXTsNCiAgICAgICAg
ICAgICAgICAgIGlmICghcCB8fCAhZSB8fCBlIDwgcCkNCiAgICAgICAgICAg
ICAgICAgICAgICByZXR1cm4gMDsNCiAgICAgICAgICAgICAgICAgIHdoaWxl
IChwIDwgZSkgew0KKioqKioqKioqKioqKioqDQoqKiogOTc4LDk5MCAqKioq
DQogICAgICAgICAgICAgIC8qIDxHUk9VUFJFRl9FWElTVFM+IDxncm91cD4g
PHNraXA+IGNvZGV5ZXMgPEpVTVA+IGNvZGVubyAuLi4gKi8NCiAgICAgICAg
ICAgICAgaSA9IHBhdHRlcm5bMF07DQogICAgICAgICAgICAgIHsNCiAgICAg
ICAgICAgICAgICAgIGludCBncm91cHJlZiA9IGkraTsNCiAgICAgICAgICAg
ICAgICAgIGlmIChncm91cHJlZiA+PSBzdGF0ZS0+bGFzdG1hcmspIHsNCiAg
ICAgICAgICAgICAgICAgICAgICBwYXR0ZXJuICs9IHBhdHRlcm5bMV07DQog
ICAgICAgICAgICAgICAgICAgICAgYnJlYWs7DQogICAgICAgICAgICAgICAg
ICB9DQohICAgICAgICAgICAgICAgICBTUkVfQ0hBUiogcCA9IChTUkVfQ0hB
UiopIHN0YXRlLT5tYXJrW2dyb3VwcmVmXTsNCiEgICAgICAgICAgICAgICAg
IFNSRV9DSEFSKiBlID0gKFNSRV9DSEFSKikgc3RhdGUtPm1hcmtbZ3JvdXBy
ZWYrMV07DQogICAgICAgICAgICAgICAgICBpZiAoIXAgfHwgIWUgfHwgZSA8
IHApIHsNCiAgICAgICAgICAgICAgICAgICAgICBwYXR0ZXJuICs9IHBhdHRl
cm5bMV07DQogICAgICAgICAgICAgICAgICAgICAgYnJlYWs7DQotLS0gOTgy
LDk5NiAtLS0tDQogICAgICAgICAgICAgIC8qIDxHUk9VUFJFRl9FWElTVFM+
IDxncm91cD4gPHNraXA+IGNvZGV5ZXMgPEpVTVA+IGNvZGVubyAuLi4gKi8N
CiAgICAgICAgICAgICAgaSA9IHBhdHRlcm5bMF07DQogICAgICAgICAgICAg
IHsNCisgICAgICAgICAgICAgICAgIFNSRV9DSEFSKiBwOw0KKyAgICAgICAg
ICAgICAgICAgU1JFX0NIQVIqIGU7DQogICAgICAgICAgICAgICAgICBpbnQg
Z3JvdXByZWYgPSBpK2k7DQogICAgICAgICAgICAgICAgICBpZiAoZ3JvdXBy
ZWYgPj0gc3RhdGUtPmxhc3RtYXJrKSB7DQogICAgICAgICAgICAgICAgICAg
ICAgcGF0dGVybiArPSBwYXR0ZXJuWzFdOw0KICAgICAgICAgICAgICAgICAg
ICAgIGJyZWFrOw0KICAgICAgICAgICAgICAgICAgfQ0KISAgICAgICAgICAg
ICAgICAgcCA9IChTUkVfQ0hBUiopIHN0YXRlLT5tYXJrW2dyb3VwcmVmXTsN
CiEgICAgICAgICAgICAgICAgIGUgPSAoU1JFX0NIQVIqKSBzdGF0ZS0+bWFy
a1tncm91cHJlZisxXTsNCiAgICAgICAgICAgICAgICAgIGlmICghcCB8fCAh
ZSB8fCBlIDwgcCkgew0KICAgICAgICAgICAgICAgICAgICAgIHBhdHRlcm4g
Kz0gcGF0dGVyblsxXTsNCiAgICAgICAgICAgICAgICAgICAgICBicmVhazsN
Cg==

--0-756315873-1056286174=:59221--