[issue1225584] crash in gcmodule.c on python reinitialization

2007-11-26 Thread Adam Olsen
Changes by Adam Olsen: -- nosy: +rhamphoryncus _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1225584 _ ___ Python-bugs-list mailing list Unsubscribe: http

cmp and sorting non-symmetric types

2007-11-13 Thread Adam Olsen
= to compare sets would be assumed to want subset operations. Generic containers should use cmp() exclusively. [1] http://mail.python.org/pipermail/python-3000/2007-October/011072.html -- Adam Olsen, aka Rhamphoryncus -- http://mail.python.org/mailman/listinfo/python-list

[issue1328] feature request: force BOM option

2007-11-01 Thread Adam Olsen
Adam Olsen added the comment: The problem with being tolerate as you suggest is you lose the ability to round-trip. Read in a file using the UTF-8 signature, write it back out, and suddenly nothing else can open it. Conceptually, these signatures shouldn't even be part of the encoding; they're

[issue1328] feature request: force BOM option

2007-11-01 Thread Adam Olsen
Adam Olsen added the comment: On 11/1/07, James G. sack (jim) [EMAIL PROTECTED] wrote: James G. sack (jim) added the comment: Adam Olsen wrote: Adam Olsen added the comment: The problem with being tolerate as you suggest is you lose the ability to round-trip. Read in a file using

[issue1237] type_new doesn't allocate space for sentinal slot

2007-10-05 Thread Adam Olsen
Adam Olsen added the comment: typeobject.c:1842:type_new type = (PyTypeObject *)metatype-tp_alloc(metatype, nslots); nslots may be 0. typeobject.c:1966:type_new assigns this just-past-the-end address to tp_members type-tp_members = PyHeapType_GET_MEMBERS(et); type_new later

[issue1237] type_new doesn't allocate space for sentinal slot

2007-10-04 Thread Adam Olsen
New submission from Adam Olsen: type_new() allocates the exact number of slots it's going to use, but various other functions assume there's one more slot with a NULL name field serving as a sentinel. I'm unsure why it doesn't normally crash. -- components: Interpreter Core messages

[issue1098] decode_unicode doesn't nul-terminate

2007-09-03 Thread Adam Olsen
New submission from Adam Olsen: In the large else branch in decode_unicode (if encoding is not NULL or iso-8859-1), the new string it produces is not nul-terminated. This then hits PyUnicode_DecodeUnicodeEscape's octal escape case, which reads past the end of the string (but would stop

Is LOAD_GLOBAL really that slow?

2007-08-29 Thread Adam Olsen
that shows a really significant slowdown vs local variables? -- Adam Olsen, aka Rhamphoryncus -- http://mail.python.org/mailman/listinfo/python-list

Re: Thread-safety of dict

2007-06-01 Thread Adam Olsen
paranoid you could add reference counting to ma_table. I doubt anybody cares quite that much though. ;) -- Adam Olsen, aka Rhamphoryncus -- http://mail.python.org/mailman/listinfo/python-list

Thread-safety of dict

2007-05-31 Thread Adam Olsen
using a dict with custom classes (or anything other than str) across multiple threads, and without locking it, it's possible (though presumably extremely rare) for a lookup to fail even through the key was there the entire time. -- Adam Olsen, aka Rhamphoryncus -- http://mail.python.org/mailman

Python's handling of unicode surrogates

2007-04-19 Thread Adam Olsen
post the idea on python-3000. [1] http://groups.google.com/group/comp.lang.python/browse_thread/thread/7e9327a896c242e7/4876e191831da6de [2] Pages 23-24 of http://unicode.org/versions/Unicode4.0.0/ch03.pdf -- Adam Olsen, aka Rhamphoryncus -- http://mail.python.org/mailman/listinfo/python-list

Re: Documentation suggestions

2005-12-07 Thread Adam Olsen
for everybody and it'll be worth maintaining. -- Adam Olsen, aka Rhamphoryncus -- http://mail.python.org/mailman/listinfo/python-list

Re: Documentation suggestions

2005-12-07 Thread Adam Olsen
attention to get the effort it requires. I agree absolutely that the material it contains is important. That's why I feel it should be merged with the other documents, to ensure that it really does get maintained. -- Adam Olsen, aka Rhamphoryncus -- http://mail.python.org/mailman/listinfo/python-list

<    1   2   3