Re: [Python-3000] Workaround for py3k build problem on CJK MacOS X?

2008-08-15 Thread Martin v. Löwis
> What do you think? I see another alternative: invoke the Apple converters (assuming they exist). Then, these encodings would only be available on OS X, but that might be just sufficient. Now, I'm not a CFString expert, but I would hope that the conversion would only be a few lines of C code whi

Re: [Python-3000] python -S

2008-08-15 Thread Christian Heimes
Brett Cannon wrote: Really? Without really digging into the code too much I see that if warnings were set on the command-line it's loaded, otherwise it's skipped. You are right. It's not loaded by pythonrun.c. The io module is importing warnings w/o using it. I fixed it in r65694 ./python -S

Re: [Python-3000] python -S

2008-08-15 Thread Brett Cannon
On Fri, Aug 15, 2008 at 1:09 AM, Christian Heimes <[EMAIL PROTECTED]> wrote: > Brett Cannon wrote: >> >> Speaking with my importlib hat on, I need a function that can easily >> return the encoding of a file, so I have another legit use-case for >> the functionality where exposing it through some bu

Re: [Python-3000] Workaround for py3k build problem on CJK MacOS X?

2008-08-15 Thread M.-A. Lemburg
On 2008-08-15 15:41, Hye-Shik Chang wrote: Currently, Python 3.0 fails to build in MacOS X with CJK locales due to lack of codec support for preferred encodings, such as MacJapanese or MacKorean, provided by locale.getpreferredencoding(). We have a patch that implements the codecs that resolves t

[Python-3000] Workaround for py3k build problem on CJK MacOS X?

2008-08-15 Thread Hye-Shik Chang
Currently, Python 3.0 fails to build in MacOS X with CJK locales due to lack of codec support for preferred encodings, such as MacJapanese or MacKorean, provided by locale.getpreferredencoding(). We have a patch that implements the codecs that resolves the problem in issue #1276, but it's too late

Re: [Python-3000] Bytes and unicode conversion in C extensions

2008-08-15 Thread Nick Coghlan
Christian Heimes wrote: > Jesus Cea wrote: >> Current pybsddb code don't allow subclassing or adding new attibutes to >> a given instance. I will (probably) work on this for a future pybsddb >> version. Pointers to references to do this kind of magic welcomed :-) > > For making it subclass-able yo

Re: [Python-3000] python -S

2008-08-15 Thread Christian Heimes
Brett Cannon wrote: Speaking with my importlib hat on, I need a function that can easily return the encoding of a file, so I have another legit use-case for the functionality where exposing it through some built-in fashion would be REALLY appreciated (I have one hacked together as imp.source_open