Re: [Python-Dev] Encoding detection in the standard library?

2008-04-22 Thread Martin v. Löwis
nd that always works. For email, I once added encoding processing to the pipermail (the mailman archiver), and that also always works. > I'll go back and take another look at the problem, then come back if new > revelations appear. Good luck! Martin

Re: [Python-Dev] 3k checkin mails to python-checkins

2008-04-22 Thread Martin v. Löwis
g options differently from the old one. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Encoding detection in the standard library?

2008-04-22 Thread Martin v. Löwis
oding guessing, since they still might be able to hard-code the encoding of the web page they want to process. In any case, I'm very skeptical that a general "guess encoding" module would do a meaningful thing when applied to incorrectly encoded HTML pages. Regards, Ma

Re: [Python-Dev] Known doctest bug with unicode?

2008-04-22 Thread Martin v. Löwis
ical that you can make that work, whether or not it's a good idea. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Encoding detection in the standard library?

2008-04-22 Thread Martin v. Löwis
ull detail, since 1993. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Encoding detection in the standard library?

2008-04-22 Thread Martin v. Löwis
ope that he or a group of people would volunteer to maintain it, with the threat of removing it from the stdlib again if these volunteers go away and too many problems show up. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mai

Re: [Python-Dev] socket recv on win32 can be extremly delayed (python bug?)

2008-04-22 Thread Martin v. Löwis
> Is there anybody who nows how to solve the problem? If it's really the problem described in the MSKB article, the article also suggests a solution: use non-blocking sockets. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.

Re: [Python-Dev] GSoC Student Introduction

2008-04-22 Thread Martin v. Löwis
ight be "yes, but please don't commit to subversion, but only to the bazaar repository". Regards, Martin (*) FWIW, Google does provide the infrastructure; students are encouraged (required?) to commit their work to code.google.com. _

Re: [Python-Dev] BSDDB3

2008-04-22 Thread Martin v. Löwis
e then, at all. Python doesn't really ship with any libraries that also have an active life outside of Python. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] GSoC Student Introduction

2008-04-23 Thread Martin v. Löwis
of credentials that we manage). HTH, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Externally developed modules (was Re: BSDDB3)

2008-04-23 Thread Martin v. Löwis
ka optparse) is currently seeing active > external updates. Hence my classification "doesn't really", which I meant to be vague. > Of course, we also have a big warning at the top of the PEP saying > *Never Ever Do This Again*

Re: [Python-Dev] Encoding detection in the standard library?

2008-04-23 Thread Martin v. Löwis
>> For web forms, I always encode the pages in UTF-8, and that always >> works. > > Should work, if you use the "multipart/form-data" format. Right - I was implicitly assuming that. Regards, Martin ___ Python-Dev mailin

Re: [Python-Dev] GSoC Student Introduction

2008-04-23 Thread Martin v. Löwis
at python > repositories ? No, no discussion needed. The students should just send me their SSH keys, and their preferred form of firstname.lastname (some people may have names more complex than that), and I'll add them. Regards, Martin

Re: [Python-Dev] annoying dictionary problem, non-existing keys

2008-04-24 Thread Martin v. Löwis
> this is very annoying. Posting to so many lists is even more annoying. You might not get a single helpful answer just because people are so frustrated by this behavior. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org h

Re: [Python-Dev] BSDDB3

2008-04-24 Thread Martin v. Löwis
> I do not see this as a daunting task assuming jcea is willing to be > volunteered to do the merge and to handle any py3k merge issues that > come up. Ideally, yes. Jesus, if you are uncertain of how exactly the merging works, don't hesitat

Re: [Python-Dev] Do we still need BaseAddress in .vcproj files?

2008-04-25 Thread Martin v. Löwis
; have parts of Python that rely on finding modules at explicit base > addresses? Is BaseAddress a relic from the past? Christian or > Martin? As Christian says: specifying the base address so that the addresses don't overlap avoids having Windows to perform relocations on startup.

Re: [Python-Dev] Warn about mktemp once again?

2008-04-28 Thread Martin v. Löwis
annot be exposed to Python as-is (hence the two result values), and it isn't a system call (at least not on POSIX), so it doesn't really need to be exposed, except perhaps to also provide this on non-POSIX systems where a regular POSIX implementation (in

Re: [Python-Dev] Warn about mktemp once again?

2008-04-29 Thread Martin v. Löwis
alking about the specific implementation, which happens to be a wrapper around the C library's mkstemp. For the use case in question, I think passing delete=False to NamedTemporaryFile would work just as well. Regards, Martin ___ Python-Dev mailing

Re: [Python-Dev] Module Suggestion: ast

2008-04-29 Thread Martin v. Löwis
> An example module for the NodeVisitor is in the repository which > converts a Python AST back into Python source code: > > http://dev.pocoo.org/hg/sandbox/file/tip/ast/codegen.py And another example for the same functionality is in Demo/parser/unparse.py. Reg

Re: [Python-Dev] Optimization of Python ASTs: How should we deal with constant values?

2008-04-30 Thread Martin v. Löwis
r has a version number precisely so that you can refer to a specific version if you need to. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Reminder: last alphas next Wednesday 07-May-2008

2008-05-01 Thread Martin v. Löwis
ems you don't want to identify whether the Windows installation is a Win64 one, but whether the Python installation is, right? For this, you should use platform.architecture()[0] Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http

Re: [Python-Dev] Optimization of Python ASTs: How should we deal with constant values?

2008-05-02 Thread Martin v. Löwis
Thomas Lee wrote: > Martin v. Löwis wrote: >>> This leaves us with a few options: >>> >> >> 5. Reuse/Abuse Num(object) for arbitrary constants. >>AFAICT, this should work out of the box. >> >> > Eek. It *does* seem like Num woul

Re: [Python-Dev] Detecting 64bit Windows (was RE: Reminder: last alphas next Wednesday 07-May-2008)

2008-05-02 Thread Martin v. Löwis
ome registry key? Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Detecting 64bit Windows (was RE: Reminder: last alphas next Wednesday 07-May-2008)

2008-05-02 Thread Martin v. Löwis
settled that the architecture name is amd64. "64" is not enough, because it can't tell Itanium and AMD64 apart (which are both Win64). Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listin

Re: [Python-Dev] PEP 8: Discourage named lambdas?

2008-05-03 Thread Martin v. Löwis
ypically write return ? true : false; Likewise, apparently, the notion of generic callables is difficult to understand. Unless you have written it yourself, you won't recognize an expression as callable. Regards, Martin ___ Python-Dev maili

Re: [Python-Dev] [Python-3000] Invitation to try out open source code review tool

2008-05-05 Thread Martin v. Löwis
> This code is now open source! Browse it here: > > http://code.google.com/p/rietveld/source/browse Are you also going to call it Rietveld then? Sounds better to me than "the open source code review tool". Regards, Martin ___ Pyth

Re: [Python-Dev] Invitation to try out open source code review tool

2008-05-06 Thread Martin v. Löwis
OpenID thing. I personally couldn't remember any of my OpenIDs, because they are just too long; plus I haven't actually seen this really work anywhere yet. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/

Re: [Python-Dev] urllib unicode handling

2008-05-06 Thread Martin v. Löwis
> Thanks for any thoughts on this, The proper way to implement this would be IRIs (RFC 3987), in particular section 3.1. This is not as simple as just encoding it as UTF-8, as you might have to apply IDNA to the host part. Code doing so just hasn't been contributed yet. Regards

Re: [Python-Dev] Warn about mktemp once again?

2008-05-06 Thread Martin v. Löwis
acceptable. Unfortunately, if a security catastrophe results from the function, blame is (correctly) also upon Python for providing the function in the first place. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.or

Re: [Python-Dev] urllib unicode handling

2008-05-07 Thread Martin v. Löwis
nt decoding it sees > non-ascii octets, should it try to decode them as utf-8 and if that > fails then leave them as is? That's why I think that using IRIs should be a separate feature, perhaps a separate module entirely. Regards, Martin ___ P

Re: [Python-Dev] urllib unicode handling

2008-05-07 Thread Martin v. Löwis
;s probably legal, but I don't understand why you think it's practical. The DNS lookup then will certainly fail, no? Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscri

Re: [Python-Dev] ctypes documentation

2008-05-07 Thread Martin v. Löwis
So, no. The author of ctypes is not a native English speaker, so unless you want the details clarified in German, you need to find somebody who actually speaks the language in which you want to read the documentation. Regards, Martin ___ Python-Dev m

Re: [Python-Dev] GSoC Student Introduction, again

2008-05-07 Thread Martin v. Löwis
k 8.5 included, preferably starting at the next betas. Would you see a problem with that? Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/opti

Re: [Python-Dev] Tool for converting %-formatting to .format()ing ?

2008-05-09 Thread Martin v. Löwis
the code as-is, and might not start using .format before Python 3.2, unless some coding convention says I have to. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mai

Re: [Python-Dev] Warn about mktemp once again?

2008-05-09 Thread Martin v. Löwis
ompletely acceptable use cases of it, I don't think we should ever warn about it. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/opti

Re: [Python-Dev] GSoC Student Introduction, again

2008-05-10 Thread Martin v. Löwis
ght into these betas, or would it be ? Should I start doing > something more/else ? No. My question really was whether you see any reason not to bundle Tk 8.5 with Python 2.6 (on Windows). Whether or not the Ttk API is exposed is a different matter - you might consider providing it as a di

Re: [Python-Dev] Buildbots have trouble checking out the repository due to recent changes.

2008-05-12 Thread Martin v. Löwis
> When I rename a module I use "svn copy", since "svn remove" doesn't > pick up changes made to the "deleted" file. For example, here is what > I did for PixMapWrapper: You want to make changes to the deleted file? Why? Regards, Martin __

Re: [Python-Dev] Buildbots have trouble checking out the repository due to recent changes.

2008-05-12 Thread Martin v. Löwis
pan over several revisions with intermediate revisions that you don't want to revert, try multiple merge commands before a single commit; if that fails, revert and commit each range of changes separately. Regards, Martin P.S. If you want to get the buildbots back in shape (in case they aren

Re: [Python-Dev] Buildbots have trouble checking out the repository due to recent changes.

2008-05-12 Thread Martin v. Löwis
bversion's first release was in October 2000; it wasn't self-hosting until 2001 :-) Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Buildbots have trouble checking out the repository due to recent changes.

2008-05-12 Thread Martin v. Löwis
. You wanted to replace the file with a stub, and then delete it? Why not just delete it (or use svn mv in the first place)? Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe:

Re: [Python-Dev] Buildbots have trouble checking out the repository due to recent changes.

2008-05-12 Thread Martin v. Löwis
o, 24 Okt 2005) | 3 lines PEP 351, the freeze protocol. ---- Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsub

Re: [Python-Dev] Buildbots have trouble checking out the repository due to recent changes.

2008-05-12 Thread Martin v. Löwis
e supported > (without name mangling of files in the working directory). Assuming this is NTFS, notice that it is not the file system that is case-folding, but the API. If you pass FILE_FLAGS_POSIX_SEMANTICS to the API, you can get case-sensitive behavior (to some degree, as there are bugs in that A

Re: [Python-Dev] Buildbots have trouble checking out the repository due to recent changes.

2008-05-12 Thread Martin v. Löwis
particular, for the following operations I could not find a way to make them case-sensitive (as they don't accept any flags parameter): DeleteFile (apparently possible through NtDeleteFile), CreateDirectory, RemoveDirectory, FindFirstFile (and probably

Re: [Python-Dev] heads up on svn.python.org ssh keys - debian/ubuntu users may need new ones

2008-05-13 Thread Martin v. Löwis
y - you still need to try a lot of combinations for user names and passwords, plus with subversion, we'll easily recognize doubtful checkins (as we do even if the committer is legitimate :-). Regards, Martin ___ Python-Dev mailing list Python-D

Re: [Python-Dev] Addition of "pyprocessing" module to standard lib.

2008-05-14 Thread Martin v. Löwis
nd has not reached version 1.0 yet. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Addition of "pyprocessing" module to standard lib.

2008-05-14 Thread Martin v. Löwis
ed, distributed application. > And then, of course, you have a gazillion specialized solutions > such as PyRO: > > http://pyro.sourceforge.net/ I personally would not use that library, although I know others are very fond of it. Regards, Martin __

Re: [Python-Dev] Addition of "pyprocessing" module to standard lib.

2008-05-14 Thread Martin v. Löwis
it impossible to implement such functionality in pure Python - then *those* limitations should be overcome, rather than including the code wholesale. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/li

Re: [Python-Dev] Addition of "pyprocessing" module to standard lib.

2008-05-15 Thread Martin v. Löwis
ssor systems (perhaps with NUMA consequences that the operating system, but not application, needs to deal with). So -1 on "multicore" from me as well, despise marketing (typo intentional :-) Regards, Martin ___ Python-Dev mailing

Re: [Python-Dev] rename of ConfigParser module?

2008-05-15 Thread Martin v. Löwis
you also have to adjust PC/os2emx/Makefile, PC/os2vacpp/makefile.omk, and PC/VC6, but these changes are waived). Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.p

Re: [Python-Dev] rename of ConfigParser module?

2008-05-15 Thread Martin v. Löwis
> Don't forget PC/config.c and the build files for VC 6, VS 7.1 and VS 8.0 > in the PC/ directory. :] Aren't the 7.1 and 8.0 files generated? Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/

Re: [Python-Dev] Visual Studio 2008 compiler option EHsc ?

2008-05-15 Thread Martin v. Löwis
uses C++ exceptions, you should certainly enable compiler support for exceptions, for that module. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/m

Re: [Python-Dev] Addition of "pyprocessing" module to standard lib.

2008-05-16 Thread Martin v. Löwis
module, as part of the standard library. This has somewhat lost relevance with ctypes. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman

Re: [Python-Dev] Symbolic errno values in error messages

2008-05-16 Thread Martin v. Löwis
bad idea (because it artificially renumbers system errors, just to provide an illusion for what Microsoft considers POSIX). Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscri

Re: [Python-Dev] Visual Studio 2008 compiler option EHsc ?

2008-05-18 Thread Martin v. Löwis
for asynchronous (structured) exceptions and want to specify /EHa, or that they have cases where C functions throw C++ exceptions, so they want to specify /EHs (no c). So yes, unfortunately, you'll have to add the option into your own setup.py, it seems. Regards

[Python-Dev] Proposal: new environment variable PYTHONSTDOUTENCODING

2008-05-20 Thread Martin v. Löwis
r it (to set or clear that variable) is a good thing, IMO. Naming contest: it probably would be the longest of the PYTHON* variables. I would not want to call it PYTHONENCODING, or PYTHONSTDENCODING, though, because people might infer that it affects sys.getdefaultencoding(), which it shouldn'

Re: [Python-Dev] Proposal: new environment variable PYTHONSTDOUTENCODING

2008-05-20 Thread Martin v. Löwis
> Writing Unicode to stdout will still use the default encoding > ASCII to convert it to an 8-bit string. That's not true. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev

Re: [Python-Dev] Proposal: new environment variable PYTHONSTDOUTENCODING

2008-05-20 Thread Martin v. Löwis
Eclipse one I mentioned. Setting the locale doesn't help there. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Proposal: new environment variable PYTHONSTDOUTENCODING

2008-05-20 Thread Martin v. Löwis
> PYTHONSTDOUTENCODING could then provide the default to > sys.stdout.encoding. Right - that's the proposal. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubsc

Re: [Python-Dev] Proposal: new environment variable PYTHONSTDOUTENCODING

2008-05-20 Thread Martin v. Löwis
> I'm not exactly sure why, since using .encoding would be useful > in all cases. Right, I think it should use the file's encoding also for .write. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.py

Re: [Python-Dev] Proposal: new environment variable PYTHONSTDOUTENCODING

2008-05-20 Thread Martin v. Löwis
STDENCODING, though, because people might infer that it >> affects sys.getdefaultencoding(), which it shouldn't. > >PYTHONIOENCODING? Unprecise in a different way (as it is meant to apply only to stdout, not to all IO), but shorter. Regards, Martin _

Re: [Python-Dev] Proposal: new environment variable PYTHONSTDOUTENCODING

2008-05-20 Thread Martin v. Löwis
PYTHONHOME, PYTHONUNBUFFERED, PYTHONVERBOSE, PYTHONSTARTUP, and PYTHONCASEOK don't have underscores, either. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://ma

Re: [Python-Dev] Addition of "pyprocessing" module to standard lib.

2008-05-20 Thread Martin v. Löwis
27;t think there is a plan to add library functions with that name. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python

Re: [Python-Dev] Addition of "pyprocessing" module to standard lib.

2008-05-20 Thread Martin v. Löwis
macros in it (can't test it right now). Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Addition of "pyprocessing" module to standard lib.

2008-05-20 Thread Martin v. Löwis
code, but chances are high that this would indeed create a dependency on libgcc. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/pyt

Re: [Python-Dev] Addition of "pyprocessing" module to standard lib.

2008-05-21 Thread Martin v. Löwis
although writing non-portable ctypes code is apparently easier than writing non-portable C code). Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.o

Re: [Python-Dev] Importing bsddb 4.6.21; with or without AES encryption?

2008-05-21 Thread Martin v. Löwis
egards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Addition of "pyprocessing" module to standard lib.

2008-05-22 Thread Martin v. Löwis
aren't there > just more tools that help? The C compiler in particular. It already gets symbolic constants and struct layouts right, something that ctypes can't do (because it doesn't use header files). Regards, Martin ___ Python-D

Re: [Python-Dev] vmgen based python interpretter

2008-05-22 Thread Martin v. Löwis
> it would would also be helpfull if someone could tell me, how to locate the > code, which causes this SEG fault I think you already found the code; gdb tells you the exact location of the crash. What are the values of pool and bp? Regards,

Re: [Python-Dev] Slice as a copy... by design?

2008-05-22 Thread Martin v. Löwis
semantically. (as any good list of two items, this has three :-) Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Importing bsddb 4.6.21; with or without AES encryption?

2008-05-22 Thread Martin v. Löwis
to have old releases on some slaves, rather than having them test all the same version (which is known to work in principle, anyway). > I would hate to find problems in Python beta releases because the > buildbots are outdated :( Don't worry, some slaves will surely have the latest version

Re: [Python-Dev] Importing bsddb 4.6.21; with or without AES encryption?

2008-05-22 Thread Martin v. Löwis
t to have the slaves export > | the new version. > > I was thinking about the Unix buildbots. Ah. There is no way to upgrade them, and attempts to upgrade them should not be made (see my other message) Regards, Martin ___ Python-Dev mai

Re: [Python-Dev] Committing bsddb 4.6.4, and where can I put testsuite temp files?

2008-05-22 Thread Martin v. Löwis
> I would like to print the Berkeley DB release used, also. Could that be done at build time as well? Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.

Re: [Python-Dev] Addition of "pyprocessing" module to standard lib.

2008-05-22 Thread Martin v. Löwis
o' > % > > So maybe Python just doesn't run on Solaris with the Sun C compiler. > Certainly doesn't build out of the box. Apparently, there were some intermediate releases of SunPRO which had this problem; in these cases, setting -xc99=%none may help. Regards, Martin

Re: [Python-Dev] Trying to understand svn history (was: Buildbots have trouble checking out the repository due to recent changes.)

2008-05-22 Thread Martin v. Löwis
n/trunk/Lib/lib-old/[EMAIL PROTECTED] svn+ssh://[EMAIL PROTECTED]/python/trunk/Lib/[EMAIL PROTECTED] which shows no differences. In fact, Queue.py got its current contents in r63077, the same version where queue.py was copied from Queue.py. HTH, Martin _

Re: [Python-Dev] Issue2889: Add Curses for Windows as native module for 2.6

2008-05-24 Thread Martin v. Löwis
a release blocker: there is no accepted PEP demanding it, it does not cause any crashes, and it is no regression over earlier releases. For this to have any chance, it *must* work with Visual Studio. Requiring gcc is unacceptable. Regards, Martin ___ Python

Re: [Python-Dev] Issue2889: Add Curses for Windows as native module for 2.6

2008-05-24 Thread Martin v. Löwis
atch gets accepted. I will have zero time for this until the beta release, unless the patch just needs to be applied, compiles without changes, and passes it the test suite. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.p

Re: [Python-Dev] Issue2889: Add Curses for Windows as native module for 2.6

2008-05-24 Thread Martin v. Löwis
extra work initially, it also has advantages (such as not having to worry about conflicting command line options between the library's build procedure, and Python's). Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://ma

Re: [Python-Dev] [Python-3000] Finishing up PEP 3108

2008-06-01 Thread Martin v. Löwis
don't think it is a problem. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] converting the stdlib to str.format

2008-06-03 Thread Martin v. Löwis
i.e. 2037). Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] converting the stdlib to str.format

2008-06-03 Thread Martin v. Löwis
expectancy of str.__mod__? I'd always supposed it being > deprecated at some point in 3.x. The PEP doesn't specify anything, and I don't recall any discussion, either - the specific timing suggested above is merely my own hopes. Regards, Martin __

Re: [Python-Dev] Missing checkin emails

2008-06-03 Thread Martin v. Löwis
be missing). I just resent the range that you indicated (r63887-r63898, inclusive). Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/o

Re: [Python-Dev] converting the stdlib to str.format

2008-06-05 Thread Martin v. Löwis
> Agreed. %(something)s is quirky - you are bound to forget the final "s" > (or whatever other specifier) from time to time. But that gives a ValueError the first time you try it, no? Regards, Martin ___ Python-Dev mailing list Pytho

Re: [Python-Dev] Modules for 2.6 inclusion

2008-06-06 Thread Martin v. Löwis
who would need to decide before the first beta, of course - afterwards it's for the release manager to decide). Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://m

Re: [Python-Dev] on Python's tests (and making them better)

2008-06-06 Thread Martin v. Löwis
intuitive. Still, I don't think this should be done. Flat is better than nested, and adding hierarchy will make it *more* difficult to find anything (except perhaps for the one person who did the rearrangement). I personally use grep to find the place wher

Re: [Python-Dev] on Python's tests (and making them better)

2008-06-06 Thread Martin v. Löwis
syntax to me, perhaps plus the data types that have literals or displays, and perhaps plus a few selected exceptions. (just to test your own intuition: when reversed() got added, was that more of a language change than when sys.meta_path got added?) Regards, Martin _

Re: [Python-Dev] on Python's tests (and making them better)

2008-06-06 Thread Martin v. Löwis
egards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] on Python's tests (and making them better)

2008-06-07 Thread Martin v. Löwis
irectory as they > are now. Indeed. Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Location of uname in os.py

2008-06-07 Thread Martin v. Löwis
ented in Modules/posixmodule.c:posix_uname. Finding out why it still shows up in os is left as an exercise for the reader. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Un

Re: [Python-Dev] on Python's tests (and making them better)

2008-06-07 Thread Martin v. Löwis
rsive one, nothing is gained. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Assignment to None

2008-06-08 Thread Martin v. Löwis
works, even though "foo bar" is not an identifier. setattr doesn't take the Python grammar into account, but only the object's structure. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mai

Re: [Python-Dev] Assignment to None

2008-06-09 Thread Martin v. Löwis
. That will only happen when (if) None becomes a keywords: then foo.None will be a syntax error. You will still be able to put attributes named 'None' (or 'import' or 'if') into any object using getattr/setattr, or by direct access to __dict__. Regards, Martin

Re: [Python-Dev] Assignment to None

2008-06-09 Thread Martin v. Löwis
tion apparently deviates from the specification. In Python 3, None, True, and False are keywords, so clearly, the intended semantics is also the implemented one (and the language description for 2.x needs to be updated/clarified). Regards, Martin ___ Python-Dev m

Re: [Python-Dev] segfault in struct module

2008-06-11 Thread Martin v. Löwis
> Martin, since you committed 60793 in Feb, any others like this that need > merging from release25-maint to trunk off the top of your head? That's the entire chunk of "Google bug fixes", and yes, all of it needs to be ported to 2.6 still. I'll look into it, unless you

Re: [Python-Dev] Python FAQ: Why doesn't Python have a "with" statement?

2008-06-13 Thread Martin v. Löwis
modifies x.counts People will be surprised that x also grows an attribute e, as the for loop involves an assignment, which you say goes to the object's namespace, of course. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://ma

Re: [Python-Dev] Python FAQ: Why doesn't Python have a "with" statement?

2008-06-14 Thread Martin v. Löwis
he FAQ should continue to claim that Python cannot grow a Pascal-like with statement. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/pytho

Re: [Python-Dev] Proposal: add odict to collections

2008-06-14 Thread Martin v. Löwis
es sorting, it should be called "sorted dictionary", and mandate a comparison function (which might default to cmp). Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe

Re: [Python-Dev] Proposal: add odict to collections

2008-06-15 Thread Martin v. Löwis
#x27;] odict.odict([('c', 'd'), ('foo', 'bar')]) The slicing operation that you provide should be spelled as d.items()[1:3], or, if you don't want to pay the cost of creating the full items list, then add a method such a

Re: [Python-Dev] Proposal: add odict to collections

2008-06-15 Thread Martin v. Löwis
making as fast as it could be ... IMHO yet another reason to > ship a usable implementation with Python. If you use a linked list instead of Python list, you can even do deletion in O(1). Of course, memory consumption will be higher. Regards, Martin ___

Re: [Python-Dev] xmlrpclib.{True, False} (was Re: Assignment to None)

2008-06-15 Thread Martin v. Löwis
> Sorry, that's correct. This is against 2.6 trunk. > > That's the idea -- in 3.x this will be a non-issue. It's perhaps even less of an issue than you think: In 3.0, True and False are *already* compiled into constants. So any additional special casing would make no diff

Re: [Python-Dev] [Python-checkins] r64360 - python/trunk/Lib/lib2to3/refactor.py

2008-06-18 Thread Martin v. Löwis
, the maintainers will pickup and changes themselves and merge them into whatever external repository they may use. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

<    31   32   33   34   35   36   37   38   39   40   >