Re: [Python-Dev] import screwiness

2006-07-05 Thread Tim Peters
[Neal] >>> Then later on we do PyString_GET_SIZE and PyString_AS_STRING. That doesn't >>> work, does it? What am I missing? [Tim] >> The conceptual type of the object returned by PyUnicode_Encode(). [Neal] > Phew, I sure am glad I was missing that. :-) > > I saw as the first line in PyUnicode_

Re: [Python-Dev] import screwiness

2006-07-05 Thread Neal Norwitz
On 7/5/06, Tim Peters <[EMAIL PROTECTED]> wrote: > > > Then later on we do PyString_GET_SIZE and PyString_AS_STRING. That doesn't > > work, does it? What am I missing? > > The conceptual type of the object returned by PyUnicode_Encode(). Phew, I sure am glad I was missing that. :-) I saw as th

Re: [Python-Dev] import screwiness

2006-07-05 Thread Tim Peters
[Neal Norwitz] > In import.c starting around line 1210 (I removed a bunch of code that > doesn't matter for the problem): > > if (PyUnicode_Check(v)) { > copy = PyUnicode_Encode(PyUnicode_AS_UNICODE(v), > PyUnicode_GET_SIZE(v),

[Python-Dev] import screwiness

2006-07-05 Thread Neal Norwitz
In import.c starting around line 1210 (I removed a bunch of code that doesn't matter for the problem): if (PyUnicode_Check(v)) { copy = PyUnicode_Encode(PyUnicode_AS_UNICODE(v), PyUnicode_GET_SIZE(v), Py_FileSystemDefaultEncod