[Python-3000] python-3000 list is closed

2008-12-15 Thread Martin v. Löwis
The mailing list python-3000@python.org is now closed. All further discussion of Python 3.x takes place on python-...@python.org. Regards, Martin ___ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000

Re: [Python-3000] Python 3.0 test results on F8

2008-12-13 Thread Martin v. Löwis
Should I be concerned? Depends on what you want to do with Python. > Though I expect the answer to be 'No', is Python > 3.0 just as ok to use as if /all /the tests passed? Definitely not. Some things will not work. If you want to debug this, you should start looking into the test_sy

Re: [Python-3000] Make problem: make: *** [sharedmods] Error 1

2008-12-07 Thread Martin v. Löwis
> Any idea why this could be? Any hints on how to get around this? The Python interpreter that you just built is crashing. There is no work-around, but you should run it in a debugger and find out why it is crashing. Regards, Martin ___ Python-3

Re: [Python-3000] [Python-Dev] Merging mailing lists

2008-12-04 Thread Martin v. Löwis
plicitly subscribe to python-dev and python-checkins if they want to continue to follow the discussion. Regards, Martin ___ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.pytho

[Python-3000] Merging mailing lists

2008-12-03 Thread Martin v. Löwis
mailing lists would change into read-only mode (i.e. primarily leaving the archives behind). Any objections? Regards, Martin ___ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http

Re: [Python-3000] [Python-Dev] 2.6.1 and 3.0

2008-11-27 Thread Martin v. Löwis
Giovanni Bajo wrote: > On gio, 2008-11-27 at 00:29 +0100, "Martin v. Löwis" wrote: >>> So, deducing from your reply, this "merge module" is a thing that allows >>> to install the CRT (and other shared components)? >> Correct. More generally, a mer

Re: [Python-3000] [Python-Dev] 2.6.1 and 3.0

2008-11-26 Thread Martin v. Löwis
he respective source directory). You also need to consider the features structure; there is a "current" feature at any point in time, and all components being added get added to the current feature. HTH, Martin ___ Python-3000 mailing li

Re: [Python-3000] [Python-Dev] 2.6.1 and 3.0

2008-11-26 Thread Martin v. Löwis
CRT bundled. I > personally don't see this as a show-stopper (does anyone ever build > the .msi besides Martin?). I personally don't have any interest to spend any time on an alternative technology. The current technology works fine for me, and I understand it fully. Everybody in t

Re: [Python-3000] [Python-Dev] 2.6.1 and 3.0

2008-11-26 Thread Martin v. Löwis
ostly-complete installer, I'm sure Giovanni would be happy to add support for the CRT merge module to see how the tool fares (my expectation is that it breaks, as I assume it just doesn't deal with the embedded ALLUSERS property correctly - merge.py really uses a bad hack

Re: [Python-3000] [Python-Dev] 2.6.1 and 3.0

2008-11-26 Thread Martin v. Löwis
> I've had good results with Advanced Installer: > http://www.advancedinstaller.com/feats-list.html So how much effort would it be to create a Python installer? Could you kindly provide one? Regards, Martin ___ Python-3000 mailing list

Re: [Python-3000] [Python-Dev] 2.6.1 and 3.0

2008-11-26 Thread Martin v. Löwis
f NSIS suggest that NSIS would fail this requirement. - it supports installation through Windows Domain policy. I would be willing to drop this requirement, but I believe some users would not be happy. Nothing but MSI has this capability (by design of Windows Active Directory

Re: [Python-3000] [Python-Dev] 2.6.1 and 3.0

2008-11-26 Thread Martin v. Löwis
ms understanding it, and can understand msi.py much better (surprise, surprise). For a newcomer, my feeling is that learning WiX and learning msi.py is about the same effort - you really need to "get" MSI files. Regards, Martin ___ Python-3000 ma

Re: [Python-3000] [Python-Dev] 2.6.1 and 3.0

2008-11-26 Thread Martin v. Löwis
anagement problem because the license was only available on a single machine - so it was difficult for anybody else to jump in and do a release. > In short: if msi.py and the fact it breaks is part of the issue here, > it's very easy to solve in

[Python-3000] Eliminating PY_SSIZE_T_CLEAN

2008-11-22 Thread Martin v. Löwis
data type for size in, say, s# parsers. Is it ok to still change that? Regards, Martin ___ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000

Re: [Python-3000] encode function errors="replace", but print() failed, is this a bug?

2008-11-19 Thread Martin v. Lo
ode page (CP_OEMCP). The latter is what the terminal window uses. Python does not directly expose the Microsoft OEMCP codec; instead, it determines the terminal's code page, and then carries its own codec for that code page ("gbk" in your case). To make your example w

Re: [Python-3000] 2.6.1 and 3.0

2008-11-19 Thread Martin v. Löwis
hich I think is 9:00 your time). Around what time would you expect to have the tag set? Regards, Martin ___ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/opti

Re: [Python-3000] [Python-Dev] 2.6.1 and 3.0

2008-11-19 Thread Martin v. Löwis
ne in a beta release or release candidate, since one does get things wrong the first time. Regards, Martin ___ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Re: [Python-3000] 2.6.1 and 3.0

2008-11-19 Thread Martin v. Löwis
> Martin, I'm keen on figuring out a way to reduce your workload, and also > to coordinate releases better between us. I /think/ with timed releases > I can tag a little early and give you something to work on so that the > actual release is a matter of fiddling web pag

Re: [Python-3000] [Python-Dev] 2.6.1 and 3.0

2008-11-19 Thread Martin v. Löwis
't run on my workstation - which is 32-bit XP. It might be possible to automate it, but IMO, the effort of setting this up would be higher than the actual time spend in doing it manually, assuming we have no more than a dozen releases per year. Regards, Martin __

Re: [Python-3000] 2.6.1 and 3.0

2008-11-19 Thread Martin v. Löwis
> Martin, maybe we can help you with the installers testing. Thanks for the offer. See my other message, though - this is not the point. If everything goes well, offloading testing just means that I have to wait some time for the testers to come back, and do other stuff meanwhile. For

Re: [Python-3000] Possible py3k problem.

2008-11-19 Thread Martin (gzlist)
e. ctypes doesn't, and if you don't, they may be garbage collected, crashing your program when a callback is made. Martin ___ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://

Re: [Python-3000] [Python-Dev] 2.6.1 and 3.0

2008-11-18 Thread Martin v. Löwis
ent ways: as admin user and non-admin user. The automated GUI testing only really works for a logged-in user. Regards, Martin ___ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Re: [Python-3000] 2.6.1 and 3.0

2008-11-18 Thread Martin v. Löwis
to a high degree, my part is, unfortunately, much less automated. I could personally automate the build process a bit more, but part of it is also testing of the installers, which is manual. Regards, Martin ___ Python-3000 mailing list Python-3000@pyth

Re: [Python-3000] 2.6.1 and 3.0

2008-11-18 Thread Martin v. Löwis
>> Should we release 2.6.1rc1, too? > > Do we need rc's for point releases? We have been doing them in the past, a week before the release. In this case, I could accept a waiver, given that the previous release acts very well as a release candidate for this release.

Re: [Python-3000] Bytes to Unicode Conversion

2008-11-16 Thread Martin v. Löwis
> I know that it had worked in the version 2.5, Python 3.0 rc2 doesn't > seem to recognize it as a function. a) I discourage usage of unicode and str converters; consider using .encode/.decode instead b) unicode is now called str Rega

Re: [Python-3000] Install python-3000 as python3

2008-11-14 Thread Martin v. Löwis
rename the entry to "Python 2.5", say, without affecting how it's named in the start menu. So why does Terry say that his renaming renamed it in two places? Finally, what is the specific problem with right-on-click-.py-file context menu wrt. duplicate names? Regards, Martin ___

Re: [Python-3000] Install python-3000 as python3

2008-11-14 Thread Martin v. Löwis
ic abilities are zero. Regards, Martin ___ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Re: [Python-3000] Install python-3000 as python3

2008-11-14 Thread Martin v. Löwis
start list, and how did you get Python into it? > It would be really helpful if > there was a new icon for 3.0. Contributions are welcome. Regards, Martin ___ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/l

Re: [Python-3000] PyObject_HEAD_INIT

2008-11-14 Thread Martin v. Löwis
Roger Binns wrote: > Martin v. Löwis wrote: >>> Also why not remove PyObject_HEAD_INIT from Python 3 headers so that if >>> it is used then the compile fails? >> It's still needed for non-var objects. > > Wouldn't a var object have PyVarObject_HEA

Re: [Python-3000] PyObject_HEAD_INIT

2008-11-14 Thread Martin v. Löwis
> Obviously the Python 3 documentation and examples need to be updated. I see - please submit a bug report. > Also why not remove PyObject_HEAD_INIT from Python 3 headers so that if > it is used then the compile fails? It's still needed for non-var objects. R

Re: [Python-3000] PyObject_HEAD_INIT

2008-11-14 Thread Martin v. Löwis
; don't all match each other! I cannot parse this sentence. Regards, Martin ___ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Re: [Python-3000] close() on open(fd, closefd=False)

2008-11-01 Thread Martin v. Löwis
FileIO.close, then RawIOBase.close? IIUC, FileIO.close will close the file handle, yet RawIOBase will attempt to flush afterwards. > Maybe the warning could be dropped all along, too. That sounds useful. Regards, Martin ___ Python-3000 mailing list Py

Re: [Python-3000] [Python-Dev] Filename as byte string in python 2.6 or 3.0?

2008-10-12 Thread Martin v. Löwis
>>> I am using bits of PUA >> Which bits specifically? > > Well, not bits in the technical sense, just a small range U+E650...U+E677. :-) That's exactly what I wanted to know. If Python ever uses PUA characters, there shouldn't be any collisions wi

Re: [Python-3000] [Python-Dev] Filename as byte string in python 2.6 or 3.0?

2008-10-12 Thread Martin v. Löwis
> I am using bits of PUA Which bits specifically? Regards, Martin ___ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40m

Re: [Python-3000] Accessing module state from extension types

2008-10-07 Thread Martin v. Löwis
ule object anywhere, in constant time. If you have specific proposals on how to make this more convenient to use, please go ahead. (also, if you think that this somehow flawed: this would be the time to mention it) Regards, Martin ___ Python-3000 mailing l

Re: [Python-3000] [Python-Dev] Filename as byte string in python 2.6 or 3.0?

2008-10-07 Thread Martin v. Löwis
think POSIX assigns specific code points, so it doesn't have to be a superset in the coded character set sense. I'm sure those VMS users will tell us some day. Regards, Martin ___ Python-3000 mailing list Python-3000@python.org http://mail.p

Re: [Python-3000] [Python-Dev] Python3UnicodeDecodeError

2008-10-07 Thread Martin v. Löwis
m encoding" is also flawed - but do you infer from that that it also should be removed? Regards, Martin ___ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Re: [Python-3000] [python-committers] [Python-Dev] Proposed Python 3.0 schedule

2008-10-07 Thread Martin v. Löwis
ain > to cut releases 3 weeks in a row? It's a lot of effort, yes. Also for users, who will have barely installed one release candidate when the next one comes out. Regards, Martin ___ Python-3000 mailing list Python-3000@python.org http://mai

Re: [Python-3000] [Python-Dev] Proposed Python 3.0 schedule

2008-10-07 Thread Martin v. Löwis
James Y Knight wrote: > or at least fully recognized and documented as a half-baked > solution. I would prefer that, leaving a full resolution to 3.1 (or perhaps 3.2). If we wait long enough, the issue will disappear (a strategy that Sun is apparently taking for Java :-) Regards,

[Python-3000] Python3UnicodeDecodeError (Was: Proposed Python 3.0 schedule)

2008-10-07 Thread Martin v. Löwis
argv and environ: are you suggesting that the behavior described in the PEP is desirable? I don't think it is (but I don't think it should change for 3.0, either, only for 3.1) Regards, Martin ___ Python-3000 mailing list Python-3000@python

Re: [Python-3000] [python-committers] [Python-Dev] Proposed Python 3.0 schedule

2008-10-07 Thread Martin v. Löwis
7;m not really in a position to > help with the above for that period...) But please do file bug reports, preferably along with any patches to distutils that you already have. Regards, Martin ___ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Re: [Python-3000] [Python-Dev] Proposed Python 3.0 schedule

2008-10-07 Thread Martin v. Löwis
- There's no os.environb for bytewise access to the environment. Seems > important. Not to me. I don't have environment variables with non-ASCII characters in them, and I think few other people do. > I'm sure there's even more APIs dealing with pathnames, command line

Re: [Python-3000] [Python-Dev] 3.1 focus (was Re: for __future__ import planning)

2008-10-04 Thread Martin v. Löwis
talk too many people into porting, since there will be some glitches which need to be resolved, and may not get resolved before 3.2 or so. So people with a natural wariness are advised to trust this wariness, or else all their concerns become self-fulfilling prophecies. Regards, Martin _

Re: [Python-3000] PEP: Python3 and UnicodeDecodeError

2008-10-02 Thread Martin v. Löwis
t's an interesting thought. Is that opportunity actually used? I.e. is there a Python implementation that does work correctly in the presence of setdefaultencoding? I find that hard to believe. Regards, Martin ___ Python-3000 mailing l

Re: [Python-3000] Issues about Python script encoding

2008-10-02 Thread Martin v. Löwis
> About the coding header, IDLE doesn't read #coding: header. Here is a fix > (use > tokenize.detect_encoding): > http://bugs.python.org/issue4008 Are you really sure about that? It did in the past. Regards, Martin ___ Python-3000 ma

Re: [Python-3000] [Python-Dev] New proposition for Python3 bytes filename issue

2008-10-01 Thread Martin v. Löwis
"unformatted" IO) deal just fine with embedded NULL characters. > * Java doesn't support unicode > 0x (bouuuuh!) I don't think that is true anymore. Regards, Martin ___ Python-3000 mailing list Python-3000@python.org http

Re: [Python-3000] Filename: unicode normalization

2008-09-30 Thread Martin v. Löwis
e higher-layer Object-C based APIs do normalize, IIUC) As Guido says: it's no problem. Regards, Martin ___ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mai

Re: [Python-3000] [Python-Dev] New proposition for Python3 bytes filename issue

2008-09-30 Thread Martin v. Löwis
> However, Martin, I can promise you that I will _never_ ask for any > convenience functions related to bytes as a result of this decision. :-) Regards, Martin ___ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/li

Re: [Python-3000] [Python-Dev] New proposition for Python3 bytes filename issue

2008-09-30 Thread Martin v. Löwis
thon side (i.e. can they > both be returned from listdir() and passed to open())? Certainly! > CIf I compare > these two filenames, do they compare differently? Certainly! Regards, Martin ___ Python-3000 mailing list Python-3000@python.org http://m

Re: [Python-3000] [Python-Dev] New proposition for Python3 bytes filename issue

2008-09-30 Thread Martin v. Löwis
r bad designs in other places, but this one really gives a good tradeoff of all issues, all things considered). Regards, Martin ___ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://m

Re: [Python-3000] [Python-Dev] New proposition for Python3 bytes filename issue

2008-09-30 Thread Martin v. Löwis
hat would its listFiles() method do with > undecodable filenames? Apparently (JDK 1.5.0_16, on Linux), it decodes undecodable bytes/byte sequences as U+FFFD (REPLACEMENT CHARACTER). Opening such a file will fail with FileNotFoundException. IOW, Java hasn't solved the problem in the last

Re: [Python-3000] [Python-Dev] Filename as byte string in python 2.6 or 3.0?

2008-09-30 Thread Martin v. Löwis
ight be the way to > go for these interfaces - leaving the bytes objects in place if the > Unicode decode operation fails. While I can sympathize with people having non-ASCII file names on their disks, I can't sympathize with this example. Normal users just don't put \x90 into their co

Re: [Python-3000] Request for documentation: PyModuleDef

2008-09-30 Thread Martin v. Löwis
mbers/storage > initialised?) > Do you reckon it would make sense to add an example for such a case to > the Embedding and Extending part of the docs? Sure! Contributions are welcome. Regards, Martin ___ Python-3000 mailing list Python-3000@python

Re: [Python-3000] New proposition for Python3 bytes filename issue

2008-09-30 Thread Martin v. Löwis
rted later. Unix missed the opportunity of declaring that all file APIs are UTF-8 (except for Plan-9 and OS X, neither being "true" Unix). Regards, Martin ___ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listin

Re: [Python-3000] New proposition for Python3 bytes filename issue

2008-09-30 Thread Martin v. Löwis
might give you a list of file names which you then can't open/stat/recurse into. (of course, you could use UTF-8 as the file system encoding on Windows, but then you will have to rewrite a lot of C code first) Regards, Martin ___ P

Re: [Python-3000] [Python-Dev] New proposition for Python3 bytes filename issue

2008-09-30 Thread Martin v. Löwis
rrives through BDFL pronouncement, in which case no PEP is needed. Regards, Martin ___ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Re: [Python-3000] [Python-Dev] New proposition for Python3 bytes filename issue

2008-09-30 Thread Martin v. Löwis
ot;mbcs") encoding; this is inside the system DLLs. CP_ACP is a lossy encoding (from Unicode to bytes): Microsoft uses replacement characters if they can, starting with similarly-looking characters, and falling back to question marks. Regards, Martin _

Re: [Python-3000] [Python-Dev] New proposition for Python3 bytes filename issue

2008-09-30 Thread Martin v. Löwis
;PATH"]). And so on (passwd/group file, Tkinter, ...) Regards, Martin ___ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Re: [Python-3000] [Python-Dev] New proposition for Python3 bytes filename issue

2008-09-30 Thread Martin v. Löwis
n to introduce a new data type in the strict sense - merely to pass through undecodable bytes through the regular Unicode type. So the result of adding them is a regular Unicode string. Regards, Martin ___ Python-3000 mailing list Python-3000@python.o

Re: [Python-3000] [Python-Dev] New proposition for Python3 bytes filename issue

2008-09-30 Thread Martin v. Löwis
Guido van Rossum wrote: > On Mon, Sep 29, 2008 at 11:00 PM, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: >>> Change the default file system encoding to store bytes in Unicode is like >>> introducing a new Python type: . >> Exactly. Seems like the

Re: [Python-3000] [Python-Dev] New proposition for Python3 bytes filename issue

2008-09-29 Thread Martin v. Löwis
> Change the default file system encoding to store bytes in Unicode is like > introducing a new Python type: . Exactly. Seems like the best solution to me, despite your polemics. Regards, Martin ___ Python-3000 mailing list Python-3000@pyth

Re: [Python-3000] [Python-Dev] New proposition for Python3 bytes filename issue

2008-09-29 Thread Martin v. Löwis
-8b / PUA hacks? Not sure what "it" is: to write the code above using the PUA hack: for filename in os.listdir(os.getcwd()) text = repr(filename) print("=== File {0} ===".format(text)) for line in open(filenmae): ...

Re: [Python-3000] [Python-Dev] Filename as byte string in python 2.6 or 3.0?

2008-09-29 Thread Martin v. Löwis
code using 8859-1 to get back the original bytes. I still don't understand. 8859-1 is an encoding, not a datatype. So how do you propose file names to be represented? "In 8859-1" is not a valid answer, because you cannot derive an implementation from that answer (atleast,

Re: [Python-3000] [Python-Dev] Filename as byte string in python 2.6 or 3.0?

2008-09-29 Thread Martin v. Löwis
I do (in 2.x) py> "foo".decode("iso-8859-1") u'foo' ISTM that 8859-1 is all about decoding, so I don't understand why you say it is a way not to decode. Regards, Martin ___ Python-3000 mailing list Python-3000@p

Re: [Python-3000] [Python-Dev] New proposition for Python3 bytes filename issue

2008-09-29 Thread Martin v. Löwis
r 3.1 Regards, Martin ___ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Re: [Python-3000] [Python-Dev] Filename as byte string in python 2.6 or 3.0?

2008-09-28 Thread Martin v. Löwis
ing. If they set it to Latin-1, they can access all files on a POSIX system. - use private-use characters for unrepresentable bytes For the second item, there was the immediate objection that this gives conflicts in UTF-8, for which UTF-8b could be a good solution.

Re: [Python-3000] [Python-Dev] Filename as byte string in python 2.6 or 3.0?

2008-09-28 Thread Martin v. Löwis
> "broken" systems will always exist. Code to deal with them must be > possible to write in python 3.0. Python 3.0 will have bugs. This might just be one of them. I can agree that Python 3.x will need to support that somehow, but perhaps not 3.0.

Re: [Python-3000] PyUnicodeObject implementation

2008-09-09 Thread Martin v. Löwis
_dealloc, to only optionally release the pointer (and probably also to not put the object into the freelist if it doesn't have a str pointer). IOW, no :-) Regards, Martin ___ Python-3000 mailing list Python-3000@python.org http://mail.python.org/m

Re: [Python-3000] PyUnicodeObject implementation

2008-09-08 Thread Martin v. Löwis
> How about putting the variable sized data _before_ the struct? That won't work for container objects (such as tuples); they already have the GC structure before the PyObject, whose size and layout is opaque to the objects. Regards, Martin __

Re: [Python-3000] PyUnicodeObject implementation

2008-09-08 Thread Martin v. Löwis
> base_address + base_address[ob_len]*elem_size - more_fields_size The subtraction is wrong, of course - it's still an addition. I was just confused by tp_dictoffset being negative in that case; the sign is but a mere flag in that case, and the offset is still positive. Regards

Re: [Python-3000] PyUnicodeObject implementation

2008-09-08 Thread Martin v. Löwis
this would interact with subtypes of subtypes, and > what the memory layout would be in that case. See above. Regards, Martin ___ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http

Re: [Python-3000] PyUnicodeObject implementation

2008-09-07 Thread Martin v. Löwis
#x27;m really curious about Stefan's explanation why efficient subclassing of str is not possible in Cython (is it not possible at all? is it possible but inefficient? if so, how much, and why?) Regards, Martin ___ Python-3000 mailing list Python-3000@

Re: [Python-3000] PyUnicodeObject implementation

2008-09-07 Thread Martin v. Löwis
f you are worried about __dict__-stored attributes being too slow (*), this approach could be a solution. (*) This assumes that the lack of additional slots actually *is* your concern. Regards, Martin ___ Python-3000 mailing list Python-3000@python.org htt

Re: [Python-3000] PEP 3108 and the demise of bsddb3

2008-09-07 Thread Martin v. Löwis
? What's the licensing implications? For 3.0, I think that is too late. Regards, Martin ___ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Re: [Python-3000] XML as bytes or unicode?

2008-09-07 Thread Martin v. Löwis
lead to parsing problems" (i.e. if the parser hasn't been told that a higher-layer protocol was in place). This is currently the case in 3.0: py> d=xml.dom.minidom.parseString("\u20ac") py> d.documentElement.childNodes[0].data 'â\x

Re: [Python-3000] Several days later: no windows installers for b3

2008-08-24 Thread Martin v. Löwis
Brett Cannon wrote: > On Sat, Aug 23, 2008 at 6:29 AM, Edward K. Ream <[EMAIL PROTECTED]> wrote: >> No b3 installers for windows at http://www.python.org/download/releases/3.0/ >> > > We know. Martin, who usually does the Windows installer, is on vacation. And I will

Re: [Python-3000] XML as bytes or unicode?

2008-08-24 Thread Martin v. Löwis
the proper decode before > proceeding. That's the parser's job (and one that expat does correctly). Regards, Martin ___ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://

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

2008-08-16 Thread Martin v. Löwis
wouldn't need such an alias. > The problem can't be resolved when we're using CF string interface > only. The codec would be appropriate just for secondary use when > the main codec isn't available. I think these restrictions are fine. Regards, Martin P.S. I don&

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

2008-08-15 Thread Martin v. Löwis
f C code which can be reviewed quickly. If that code cannot be contributed, I then prefer your option 3: make mac_getscript return the slightly incorrect codec names. It's better than returning "ascii" (which I think it should do, anyway, as a fall

Re: [Python-3000] python -S

2008-08-14 Thread Martin v. Löwis
> Any thoughts? That is http://bugs.python.org/issue586680, right? As a work-around, test_cmd_line should set PYTHONPATH to include the build directory (i.e. what addbuilddir has added). Regards, Martin ___ Python-3000 mailing list Python-3

Re: [Python-3000] translation support feature, via extended % operators

2008-08-14 Thread Martin v. Löwis
t further complicated by case, e.g. German (likewise for Russian) "the first man" - "der erste Mann" "for the first man" - "für den ersten Mann" Regards, Martin ___ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Re: [Python-3000] translation support feature, via extended % operators

2008-08-14 Thread Martin v. Löwis
> In this message I'll discuss a scheme for handling complex > translations with multiple numeric parameters. Please take a look at the plural support in gettext. I think it should allow you to achieve the proper string substitution already today. Rega

Re: [Python-3000] translation support feature, via extended % operators

2008-08-13 Thread Martin Geisler
k it does most of what you propose, including letting the translators write the little code snippets that will determine if it should be '1 file' or 'n files'. The gettext manual has more to say here: http://www.gnu.org/software/gettext/manual/gettext.html#Plural-forms --

Re: [Python-3000] xml.etree.ElementTree and PEP 8

2008-08-10 Thread Martin v. Löwis
changed to accommodate these changes? Regards, Martin ___ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Re: [Python-3000] MemoryError oddities

2008-07-29 Thread Martin v. Löwis
> +1 OverflowErrors should probably by reserved for numeric overflows. In a sense, passing sys.maxsize as a string size *is* a numeric overflow - the size can't be represented in the available variable. Regards, Martin ___ Python-3000 mail

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

2008-07-29 Thread Martin v. Löwis
> What about a new keyword argument to the constructor, "encoding". If > specified, *only* accept unicode (and do the conversion internally). Would that apply to keys, values, or both? Regards, Martin ___ Python-3000 mailing list Python

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

2008-07-29 Thread Martin v. Löwis
> So, I'm thinking seriously in accepting *ONLY* "bytes" in the bsddb API > (when working under Python 3.0), and do the proxy thing *ONLY* in the > testsuite, to be able to reuse it. > > What do you think?. I think you should write the test suite in te

Re: [Python-3000] Int and Long unification (was Re: Help replacing Py_FindMethod)

2008-07-19 Thread Martin v. Löwis
(o)) If you don't want to use intobject.h, write #ifndef PyInt_Check #define PyInt_Check(x) PyLong_Check(x) #endif at the top, then use the same if block. HTH, Martin ___ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailm

Re: [Python-3000] Int and Long unification (was Re: Help replacing Py_FindMethod)

2008-07-19 Thread Martin v. Löwis
.[3-6] and Python 3.0?. I would > like to avoid conditional compilation, if possible. > >> I think PyNumber_Check should do the trick. PyNumber_Check also succeeds for floats, right? so it shouldn't be use when checking for integers is desired. Regards, Martin

Re: [Python-3000] [Python-Dev] No beta2 tonight

2008-07-17 Thread Martin v. Löwis
, as the 2.6 code hasn't been merged into 3k. I somewhat doubt that this gets resolved before the release, so bsddb users might need to skip 3.0. Regards, Martin ___ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailma

Re: [Python-3000] Bug 3139

2008-07-16 Thread Martin v. Löwis
> I think it's definitely too short. Martin has outlined a clean solution to > this > but it's a lot of changes. Let's wait for beta 3. FWIW, I started writing code today. I couldn't complete it, either (i.e. it's for 2.6 only, has no docs, and only fixes a sing

Re: [Python-3000] wrong md5 checksum

2008-07-02 Thread Martin v. Löwis
>> I'm puzzled how this might have happened. > > Someone obviously did search & replace a5 -> b1, intended for Python > version, but applied to md5 too. Ah, ok. Thanks for the explanation. That might have been me, a

Re: [Python-3000] wrong md5 checksum

2008-07-02 Thread Martin v. Löwis
have occurred in the editor, or the cut-n-paste - which in itself is frightening. Regards, Martin ___ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options

Re: [Python-3000] 2to3: update? doc?

2008-06-29 Thread Martin v. Löwis
? Not done yet? >> >> Why would you think this file deserves any mentioning in the >> documentation at all? > > 'Doc' refers to documentation for (lib)2to3 (see subject line), not the > surprising g...pickle. I expected mention of the former because Ah,

Re: [Python-3000] re.LOCALE

2008-06-29 Thread Martin v. Löwis
is > ? I suggest to drop it. Of course, the beta has been released, and such a change (just as the addition of an ASCII flag) require release manager approval, IMO. Regards, Martin ___ Python-3000 mailing list Python-3000@python.org http://mail

Re: [Python-3000] 2to3: update? doc?

2008-06-29 Thread Martin v. Löwis
t; or did grammar3.0.0.beta.a.pickle only make 2.6b1? > > I cannot find any doc in the libref (it would belong, I believe, in > Development Tools). Intentional? Not done yet? Why would you think this file deserves any mentioning in the documen

Re: [Python-3000] about bytes

2008-06-26 Thread Martin v. Löwis
> so, how do you deal with bytes in these cases? Set your locale correctly so that the filename is properly decoded as a string. Then, bytes will not show up. Regards, Martin ___ Python-3000 mailing list Python-3000@python.org http://mail.python.

Re: [Python-3000] PEP 3121 implemented

2008-06-12 Thread Martin v. Löwis
f is a module (or, vice versa, the expected type). Regards, Martin ___ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Re: [Python-3000] PEP 3121 implemented

2008-06-12 Thread Martin v. Löwis
ization into a separate function, and then have both init and PyInit_ call that function. Regards, Martin ___ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/optio

Re: [Python-3000] PEP 3121 implemented

2008-06-12 Thread Martin v. Löwis
ange indeed systematically breaks all modules, this breakage is shallow: it's usually straight-forward to port a module to 3.0 with little changes to the init function. Regards, Martin ___ Python-3000 mailing list Python-3000@python.org http://mail.py

  1   2   3   4   5   6   7   8   >