comparison Python/compile.c @ 1405:90c5e2bb4da5 legacy-trunk

* posixmodule.c: added set{uid,gid}. * {tuple,list,mapping,array}object.c: call printobject with 0 for flags * compile.c (parsestr): use quote instead of '\'' at one crucial point * arraymodule.c (array_getattr): Added __members__ attribute
author Guido van Rossum <guido@python.org>
date Wed, 10 Nov 1993 09:23:53 +0000
parents cc172ce05561
children 06570429f062
comparison
equal deleted inserted replaced
1404:c814937880cc 1405:90c5e2bb4da5
527 } 527 }
528 if (strchr(s, '\\') == NULL) 528 if (strchr(s, '\\') == NULL)
529 return newsizedstringobject(s, len); 529 return newsizedstringobject(s, len);
530 v = newsizedstringobject((char *)NULL, len); 530 v = newsizedstringobject((char *)NULL, len);
531 p = buf = getstringvalue(v); 531 p = buf = getstringvalue(v);
532 while (*s != '\0' && *s != '\'') { 532 while (*s != '\0' && *s != quote) {
533 if (*s != '\\') { 533 if (*s != '\\') {
534 *p++ = *s++; 534 *p++ = *s++;
535 continue; 535 continue;
536 } 536 }
537 s++; 537 s++;