This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2007年11月03日 16:51 by _doublep, last changed 2022年04月11日 14:56 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| reloading-fix.diff | _doublep, 2007年11月03日 16:51 | |||
| Messages (3) | |||
|---|---|---|---|
| msg57085 - (view) | Author: Paul Pogonyshev (_doublep) | Date: 2007年11月03日 16:51 | |
This is apparently because sys.modules contains Unicode (str) keys, while 'parentname' is an old-style string. Attached patch seems to fix it, but I have no idea if it is correct in principle |
|||
| msg57095 - (view) | Author: Christian Heimes (christian.heimes) * (Python committer) | Date: 2007年11月04日 12:10 | |
Why are you using PyUnicode_AsUTF32String(parentname)? PyUnicode_AsString() is the correct method (although it's not yet in the docs). The rest looks fine. PyModule_GetName() returns a char* from PyUnicode_AsString(). Fixed in r58838. |
|||
| msg57096 - (view) | Author: Paul Pogonyshev (_doublep) | Date: 2007年11月04日 12:30 | |
Thank you for the commit. I just had a problem with my package, and since I was not sure if it was a bug in Py3k or the package, I went to debugging the former and found this. I just didn't know how to work with Unicode strings properly. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:56:27 | admin | set | github: 45720 |
| 2008年01月06日 22:29:45 | admin | set | keywords:
- py3k versions: Python 3.0 |
| 2007年11月04日 12:30:48 | _doublep | set | messages: + msg57096 |
| 2007年11月04日 12:10:35 | christian.heimes | set | status: open -> closed keywords: + py3k resolution: fixed messages: + msg57095 nosy: + christian.heimes |
| 2007年11月03日 17:30:39 | loewis | set | keywords: + patch |
| 2007年11月03日 16:51:43 | _doublep | create | |