Re: [Python-Dev] binary trees. Review obmalloc.c

2006-04-28 Thread Martin v. Löwis
for sizes above 215, pools need to be spaced apart only at 16 bytes. 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] PEP 3102: Keyword-only arguments

2006-04-30 Thread Martin v. Löwis
the whole point of the PEP. Or are you asking why the user shouldn't be allowed to pass keyword-only arguments by omitting the keyword? Because they wouldn't be keyword-only arguments then, anymore. Regards, Martin ___ Python-Dev mailing list Pyth

Re: [Python-Dev] methods on the bytes object

2006-04-30 Thread Martin v. Löwis
t algorithms that currently operate on byte strings should be reformulated to operate on character strings, not reformulated to operate on bytes objects. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/li

Re: [Python-Dev] methods on the bytes object

2006-04-30 Thread Martin v. Löwis
d "just work", and b) people will refuse to rewrite their algorithms for character strings (which they likely should in most applications of, say, .startswith), and then complain that the bytes type is s limited, and they really want a full byte string type back. Regards

Re: [Python-Dev] methods on the bytes object

2006-04-30 Thread Martin v. Löwis
certainly need a "concatenate list of bytes into a single bytes". Apparently, Guido assumes that this can be done through bytes().join(...); I personally feel that this is over-generalization: if the only practical application of .join is the empty bytes object as separator, I thin

Re: [Python-Dev] PEP 3101: Advanced String Formatting

2006-04-30 Thread Martin v. Löwis
sible for collecting all feedback, and either updating the specification, or at least, summarizing the discussion and the open issues (so that the same argument isn't made over and over again). Regards, Martin ___ Python-Dev mailing list Python-Dev@p

Re: [Python-Dev] Tkinter lockups.

2006-04-30 Thread Martin v. Löwis
rs because Tk fails to unlock a mutex in a few error cases. The patch below fixes the problem. I'll report it to the Tcl people, and see whether I can work around in _tkinter. Regards, Martin diff -ur tk8.4.13/generic/tkWindow.c tk8.4.13.modified/generic/tkWindow.c --- tk8.4.13/generic/tkWind

Re: [Python-Dev] methods on the bytes object

2006-04-30 Thread Martin v. Löwis
le. Use the string type instead. > So, what to do? Rename Python 2.x str to bytes. The name of the type > now confers the idea that it should contain bytes, not strings. It seems that you want an immutable version of the bytes type. As I don't understand what "parsing" is, I can

Re: [Python-Dev] PEP 3102: Keyword-only arguments

2006-04-30 Thread Martin v. Löwis
name? I see an important use case for k=0 functions, and k=1 methods (where the only positional argument is self). 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] PEP 3102: Keyword-only arguments

2006-04-30 Thread Martin v. Löwis
Terry Reedy wrote: >>>> Now, suppose you wanted to have 'key' be a keyword-only argument. >>> Why? Why not let the user type the additional argument(s) without the >>> parameter name? > > Like Martin, you clipped most of the essential context

Re: [Python-Dev] Tkinter lockups.

2006-04-30 Thread Martin v. Löwis
pe someone with Tkinter knowledge can step in and fix it. > (It looks like SF auto-assigned it to Martin already, hmm.) I have now reported the underlying Tk bug at http://sourceforge.net/tracker/index.php?func=detail&aid=1479587&group_id=12997&a

Re: [Python-Dev] methods on the bytes object

2006-05-01 Thread Martin v. Löwis
Josiah Carlson wrote: > Certainly that is the case. But how would you propose embedded bytes > data be represented? (I talk more extensively about this particular > issue later). Can't answer: I don't know what "embedded bytes data" are. > Um...struct.unpack() already works on unicode... > >

Re: [Python-Dev] PEP 3102: Keyword-only arguments

2006-05-01 Thread Martin v. Löwis
Edward Loper wrote: > Martin v. Löwis wrote: >> One reason I see is to have keyword-only functions, i.e. with no >> positional arguments at all: >> >> def make_person(*, name, age, phone, location): >> pass > > But is it necessary to syntactically *e

Re: [Python-Dev] PEP 3102: Keyword-only arguments

2006-05-01 Thread Martin v. Löwis
e case for bare * that > does make sense to me. It's actually the same use case: I don't *want* callers to pass these parameters positionally, to improve readability. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://ma

Re: [Python-Dev] introducing the experimental pyref wiki

2006-05-01 Thread Martin v. Löwis
mitted, we can only hope for (other) volunteers to provide the documentation, or keep nagging the author of the code to produce it. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsub

Re: [Python-Dev] more pyref: continue in finally statements

2006-05-01 Thread Martin v. Löwis
clause SF patch 102989 by Thomas Wouters ---- 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] more pyref: continue in finally statements

2006-05-01 Thread Martin v. Löwis
27;finally' clause: What would that mean? Given def f(): raise Exception while 1: try: f() finally: g() continue then what should be the meaning of "continue" here? The finally block *eventually* needs to re-raise the excepti

Re: [Python-Dev] methods on the bytes object

2006-05-01 Thread Martin v. Löwis
ry > data. It was also supposed to show how one may need to define symbols > for such interpretation via literals of some kind. In the pickle module, > this is done in two parts: XXX = ; dispatch[XXX] = fcn. I've > also seen it as dispatch = {: fcn} Yes. For pickle, the o

Re: [Python-Dev] more pyref: a better term for "string conversion"

2006-05-01 Thread Martin v. Löwis
precated, > and documented in terms of repr (rather than the other way around) ? I vaguely recall that they are deprecated, but I can't remember the details. The one obvious way to invoke that functionality is the repr() builtin. Regards, Martin

Re: [Python-Dev] Python for Windows CE

2006-05-03 Thread Martin v. Löwis
, requiring patches to #define > HAVE_DIRECT_H for other platforms That would be best. Python generally uses autoconf methodology, which implies that conditionally-existing headers should be detected using HAVE_*_H. Regards, Martin ___ Python

Re: [Python-Dev] Python long command line options

2006-05-04 Thread Martin v. Löwis
Fredrik Lundh wrote: > I'm +1 on adding --help and --version, +1 on adding -? and /? for windows > only, > -0=slightly sceptical if adding a generic long option machinery is worth it, > and -1 > on a guessing machinery. I also agree with all these judgmen

Re: [Python-Dev] Python sprint mechanics

2006-05-04 Thread Martin v. Löwis
to track the status of the individual projects, and either revoke commit privs when the project is eventually completed, or grant the contributors permanent (without-approval) commit privs if he considers this appropriate. Regards, Martin ___ Python

Re: [Python-Dev] Python sprint mechanics

2006-05-05 Thread Martin v. Löwis
orce it - but I'm sure sprint participants would restrict checkins to a branch if they were told to. However, I don't see how that would help. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listin

Re: [Python-Dev] Python sprint mechanics

2006-05-05 Thread Martin v. Löwis
ubversion) to set up a sprint area in > the repo. It works fine for http(s), but not for svn+ssh. 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] Python for Windows CE

2006-05-05 Thread Martin v. Löwis
Luke Dunstan wrote: > OK. Actually I think distutils will be the last thing to be ported because > it is not necessary for using the rest of Python. Does distutils has support > for cross-compiling anyway? No, it doesn't. > OK, but what about ANSI C headers like signal.h? I expected HAVE_SIGNAL

Re: [Python-Dev] Python sprint mechanics

2006-05-05 Thread Martin v. Löwis
would that work? Apache is not involved at all. > Subversion 1.3 added a path-based authorization feature to svnserve. That's what I mean by "does not work fine": I would need to update to subversion 1.3. Regards, Martin ___ Python-Dev m

Re: [Python-Dev] binary trees. Review obmalloc.c

2006-05-05 Thread Martin v. Löwis
arises at creation of the list of timers. For a list of timers/timeout events, a priority queue is often the best data structure, which is already available through the heapq module. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org h

Re: [Python-Dev] Alternative path suggestion

2006-05-06 Thread Martin v. Löwis
ode file names in a reasonable way anymore. 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] Python sprint mechanics

2006-05-07 Thread Martin v. Löwis
branches. Just to not be mistaken: it is technically fairly easy to add somebody to the committers list. So technical, there is no problem to add all sprinters. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mail

Re: [Python-Dev] Python sprint mechanics

2006-05-07 Thread Martin v. Löwis
in place would also ease > fears that sprint output might be "subverted" to non-open status. That would be desirable, indeed. It shouldn't be too difficult to collect the forms "on site". Regards, Martin ___ Python-Dev

Re: [Python-Dev] Python sprint mechanics

2006-05-08 Thread Martin v. Löwis
Tim Peters wrote: > [Martin v. Löwis] >> I completely agree. Just make sure you master the mechanics of adding >> committers. > > So there's a practical problem: is that procedure documented > somewhere? I once posted the procedure to all current pydotorg project a

Re: [Python-Dev] Python sprint mechanics

2006-05-08 Thread Martin v. Löwis
pt that anybody doing the merge-back would have to come up with sensible commit messages, and (ideally) sensible attributions. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: ht

Re: [Python-Dev] [Python-checkins] r45925 - in python/trunk: Lib/tempfile.py Lib/test/test_os.py Misc/NEWS Modules/posixmodule.c

2006-05-10 Thread Martin v. Löwis
t; more fine-grained Win32 error code. Ok. I'll try to come up with a patch, but let me repeat this: even though this would nearly restore the behavior for the functions that I changed, it would *a different* incompatible change, since it would change t

Re: [Python-Dev] [Python-checkins] r45925 - in python/trunk: Lib/tempfile.py Lib/test/test_os.py Misc/NEWS Modules/posixmodule.c

2006-05-10 Thread Martin v. Löwis
specific Win32 error codes, just because they are more descriptive. I propose to call the module "winerror" (in parallel to winerror.h, just as the errno module parallels errno.h) Adding them all to the errno would work for most cases, except that you get conflict

Re: [Python-Dev] nag, nag -- 2.5 open issues

2006-05-11 Thread Martin v. Löwis
Neal Norwitz wrote: > Martin: msilib -- Martin/Andrew is this done? That's done, yes. 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] python 2.4 and universal binaries

2006-05-11 Thread Martin v. Löwis
2.4.4 is likely to occur *after* the release of 2.5.0. Not sure when Apple decides to freeze the Python version for the next OS release, but if they really chose the most recent one "by policy", that will be either 2.5.0 or 2.4.3. Regards, Martin __

Re: [Python-Dev] PyThreadState_SetAsyncExc, PyErr_Clear and native extensions

2006-05-11 Thread Martin v. Löwis
r should grow a flag indicating whether you want to clear just all Exceptions, or indeed all BaseExceptions. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.py

Re: [Python-Dev] [Python-checkins] r45925 - in python/trunk: Lib/tempfile.py Lib/test/test_os.py Misc/NEWS Modules/posixmodule.c

2006-05-12 Thread Martin v. Löwis
effects), the entire idea should be dropped (IMO). OTOH, I don't find such a size increase unacceptable myself. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.

Re: [Python-Dev] [Python-checkins] r45925 - in python/trunk: Lib/tempfile.py Lib/test/test_os.py Misc/NEWS Modules/posixmodule.c

2006-05-13 Thread Martin v. Löwis
, for a total of 20 bytes at run-time. On a 64-bit machine, the strings should consume 101128 bytes (***), the integers 24160, and the dict entries 20 bytes, for a total of 325000 bytes. >From that, I would conclude that one should avoid 64-bit machines if one is worried about memor

Re: [Python-Dev] Py_ssize_t formatting

2006-05-13 Thread Martin v. Löwis
it signed. If unsigned printing of size_t is desired, %zu should be used. 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] Py_ssize_t formatting

2006-05-13 Thread Martin v. Löwis
Georg Brandl wrote: > Similary, there's no way for a structmember to be of type Py_ssize_t... Right. At least, not with changing structmember.[ch]. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org

[Python-Dev] cleaned windows icons

2006-05-13 Thread Martin v. Löwis
Somebody has contributed an edited version of the current icons, at https://sourceforge.net/tracker/index.php?func=detail&aid=1481304&group_id=5470&atid=305470 He claims that his version is prettier in small sizes; I'm uncertain whether this is the case. What do you think?

Re: [Python-Dev] Py_ssize_t formatting

2006-05-13 Thread Martin v. Löwis
. So if it is desired, it needs to be added first, and then should be used. Looking at the checkin messages, I understand that the change from "d" to "u" was to make some compiler stop warning - that is the wrong motivation for such a behavioral change. Regards, Martin ___

Re: [Python-Dev] Py_ssize_t formatting

2006-05-13 Thread Martin v. Löwis
types supported. I wonder what the specific application is that you have in mind, though. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailma

Re: [Python-Dev] [Python-checkins] r45925 - in python/trunk: Lib/tempfile.py Lib/test/test_os.py Misc/NEWS Modules/posixmodule.c

2006-05-15 Thread Martin v. Löwis
are indeed created twice, something is wrong. > I agree that creating only one dictionary statically > and the other mapping dynamically will already be a > saving of 50% simply by sharing the string and integer > objects. No, they should be shared already, so that shou

Re: [Python-Dev] pthreads, fork, import, and execvp

2006-05-15 Thread Martin v. Löwis
ems; that seems like a waste of resources to me, though. One should also reset import_lock_thread and import_lock_level. I'd be curious if Elemental Security added this code only to solve the very same problem, i.e. a fork that happened with the import lock held. Regards, Martin __

Re: [Python-Dev] FYI: building on OS X

2006-05-16 Thread Martin v. Löwis
additional autoconf tests in 46010 and 46011; unfortunately, I cannot test these changes as I don't have a system where the build was broken. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman

Re: [Python-Dev] pthreads, fork, import, and execvp

2006-05-16 Thread Martin v. Löwis
course, like the __import__ builtin) So if you are certain that the fork doesn't happen *while* an import is going, then I think the specific problem must be analyzed in more detail before an attempt is made to fix it. Regards, Martin ___ Python-Dev

Re: [Python-Dev] pthreads, fork, import, and execvp

2006-05-16 Thread Martin v. Löwis
tside execve, you have only hidden the problem, instead of solving 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/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] pthreads, fork, import, and execvp

2006-05-16 Thread Martin v. Löwis
should find a repeatable test case first. Contributions are welcome. 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/a

Re: [Python-Dev] pthreads, fork, import, and execvp

2006-05-18 Thread Martin v. Löwis
't quite understand the test case given, and I can't make it deadlock anymore (probably because of Just's fix). 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] pthreads, fork, import, and execvp

2006-05-18 Thread Martin v. Löwis
rary will first acquire the import lock in the thread that wants to fork. Then the fork occurs, and the import lock gets then released both in the parent and in the child. I would like to see this approach implemented, but I agree with you that a test case should be created

Re: [Python-Dev] pthreads, fork, import, and execvp

2006-05-18 Thread Martin v. Löwis
dified (i.e. fork1, and forkpty also). 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] zlib module doesn't build - inflateCopy() not found

2006-05-19 Thread Martin v. Löwis
.c. I wonder why the > last gcc line above has "-lz" in it? By convention, the Unix build doesn't use the included zlib. Unix users typically insist on using the system libraries when they are available, so nobody has even contributed a build procedure to use

Re: [Python-Dev] zlib module doesn't build - inflateCopy() not found

2006-05-19 Thread Martin v. Löwis
b if the system zlib is too old drawback: you get all the problems of static linking, e.g. the size increase, and the problems with two zlib versions living in the same address space for some embedded Python applications I'm not volunteering to implement any of the options. Re

Re: [Python-Dev] zlib module doesn't build - inflateCopy() not found

2006-05-21 Thread Martin v. Löwis
apshot (and then close the zlib stream). 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] [Python-checkins] r46064 - in python/trunk: Include/Python.h Include/pyport.h Misc/ACKS Misc/NEWS Modules/_localemodule.c Modules/main.c Modules/posixmodule.c Modules/sha512module.c P

2006-05-22 Thread Martin v. Löwis
should be on that system. Of course, it would be fairly straight-forward to convert this to standard autoconf machinery (if one remembers to update PC/pyconfig.h accordingly). I'm sure Luke Dunstan would be willing to revise the patch in that dire

Re: [Python-Dev] 2.5 schedule

2006-05-22 Thread Martin v. Löwis
ould get dropped entirely. I'm not available for creating installers in the following week, so the earliest day to make alpha 3 would then be June 5, but traditionally, it would be June 8. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org

Re: [Python-Dev] [Python-checkins] r46064 - in python/trunk: Include/Python.h Include/pyport.h Misc/ACKS Misc/NEWS Modules/_localemodule.c Modules/main.c Modules/posixmodule.c Modules/sha512module.c P

2006-05-23 Thread Martin v. Löwis
fixes. Likewise, if you don't think you can fix them, don't bother - some user of the platform will provide the missing pieces. Or, if no contributions from a user arrive, it either means that it just works fine, or that there are no users. Regards, Martin __

Re: [Python-Dev] Changing python int to "long long".

2006-05-23 Thread Martin v. Löwis
will PyInt_AsLong do? What about systems where "long long" is not supported? Not that those can't be resolved (they were resolved, in some way or the other, for ssize_t). However, I think a complete specification of the proposed c

Re: [Python-Dev] A Horrible Inconsistency

2006-05-25 Thread Martin v. Löwis
horrible. py> +"Hello" Traceback (most recent call last): File "", line 1, in ? TypeError: bad operand type for unary + py> +1*"Hello" 'Hello' Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org

Re: [Python-Dev] A Horrible Inconsistency

2006-05-25 Thread Martin v. Löwis
Ronald Oussoren wrote: > I don't know which one Fredrik thinks is wrong, but I think the result > of -1*(1,2,3) is very surprising. I'd expect an exception here. I agree, but this has nothing to do with whether or not the unary - is supported.

Re: [Python-Dev] epoll implementation

2006-05-26 Thread Martin v. Löwis
s ever supported, I think it should also go into the select module. 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%

Re: [Python-Dev] epoll implementation

2006-05-26 Thread Martin v. Löwis
ot; is really quite involved. We cannot just incorporate the code without permission of the author. So if the code is itself acceptable, then somebody would have to talk the author into contributing. Regards, Martin ___ Python-Dev mailing lis

Re: [Python-Dev] epoll implementation

2006-05-26 Thread Martin v. Löwis
nchat, although people don't like it. I'm sure the Twisted people would integrate epoll in no time, and with no API change for *their* users. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/

Re: [Python-Dev] epoll implementation

2006-05-26 Thread Martin v. Löwis
iting for ENOSYS from epoll_create is probably cheap enough). Also, it would be good if the application could find out it is using epoll; for example, epollObject could expose a fileno member. Regards, Martin ___ Python-Dev mailing list Python-Dev@pyth

Re: [Python-Dev] epoll implementation

2006-05-26 Thread Martin v. Löwis
of constants is propably fine. I would just provide a second constructor, select.epoll(), which guarantees that epoll is used as the implementation strategy (i.e. it would raise OSError if the kernel doesn't support epoll_create). Regards, Martin

Re: [Python-Dev] epoll implementation

2006-05-26 Thread Martin v. Löwis
don't care (providing the flag might be actually more expressive, since it would also allow to specify "I want poll", although I can't see a use case for that). Regards, Martin ___ Python-Dev mailing list Python-Dev@python

Re: [Python-Dev] epoll implementation

2006-05-26 Thread Martin v. Löwis
I would accept it providing it was disabled on OSX (assuming kqueue really is not true poll replacement on this system). Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: h

Re: [Python-Dev] epoll implementation

2006-05-26 Thread Martin v. Löwis
what would you store in the additional data? 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] warnings about missing __init__.py in toplevel directories

2006-05-26 Thread Martin v. Löwis
n that case, the directory itself would have been imported, not the thing inside. The warning is (also) a hint that you should do some renaming - future versions of Python might drop the need for __init__. Regards, Martin ___ Python-Dev mailing list

Re: [Python-Dev] epoll implementation

2006-05-26 Thread Martin v. Löwis
ctionality very awkward. > > Rather than adding yet another platform-dependent module, > I'd like to see a unified Python interface in the stdlib > that uses whichever is the best one available. For epoll, that interface seems to

Re: [Python-Dev] epoll implementation

2006-05-26 Thread Martin v. Löwis
her file descriptor 0 is ready, I would assume that select is even better. 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] epoll implementation

2006-05-27 Thread Martin v. Löwis
get back the PyObject pointer so can't decrement > the refcount, has to be stored and looked up manually. Ah. That would be an interface change; I would not do that. The lookup is usually-constant and very fast. It is complexity that grows with the number of file descriptors that these APIs

Re: [Python-Dev] [Python-checkins] This

2006-05-27 Thread Martin v. Löwis
wo cents" and "experience" roughly the same thing, so that one is redundant?) 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] Remove METH_OLDARGS?

2006-05-28 Thread Martin v. Löwis
converted. I think that should be done for 2.5, but nothing else. Or, perhaps a deprecation warning could be generated if it is still used. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/lis

Re: [Python-Dev] Remove METH_OLDARGS?

2006-05-29 Thread Martin v. Löwis
at all in the method structures. 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] ssize_t question: longs in header files

2006-05-29 Thread Martin v. Löwis
out of scope for 2.5. Guido said it is ok to change this to 64-bit ints in 2.6, but I expect some embedded system developers will start screaming when they hear that: 64-bit arithmetic is expensive on a 32-bit machine. Regards, Martin ___ Python-Dev mailing

Re: [Python-Dev] ssize_t: ints in header files

2006-05-29 Thread Martin v. Löwis
s for the regexes themselves (e.g. size of the compiled expression, number of repeats, etc). Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org

Re: [Python-Dev] ssize_t question: longs in header files

2006-05-29 Thread Martin v. Löwis
It would still be a large change, and should be only done if we know for sure we don't want it to be a 64-bit type always the next day. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python

Re: [Python-Dev] Remove METH_OLDARGS?

2006-05-29 Thread Martin v. Löwis
Georg Brandl wrote: > I thought more about PyArg_Parse for __deprecated__. Ah, PyArg_Parse can, of course. Having it actually do that should not hurt, either - but you need a reliable check whether the compiler supports __deprecated__. Regards, Mar

Re: [Python-Dev] Remove METH_OLDARGS?

2006-05-29 Thread Martin v. Löwis
Guido van Rossum wrote: >> I think that should be done for 2.5, but nothing else. Or, perhaps >> a deprecation warning could be generated if it is still used. > > I'll let Martin decide this one. I just sent a message to some that producing a DeprecationWarning is fi

Re: [Python-Dev] Contributor agreements (was Re: DRAFT: python-dev summary for 2006-04-01 to 2006-04-15)

2006-05-29 Thread Martin v. Löwis
www.python.org/psf/contrib/ seem like the right page to link > to? That is the page giving instructions on how to fill it out, yes. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-

Re: [Python-Dev] Integer representation (Was: ssize_t question: longs in header files)

2006-05-29 Thread Martin v. Löwis
eTuple "i" will continue to produce int, and raise an exception (OverflowError?) when the value is out of range. C code can then decide whether to parse a Python integer as C int, long, long long, or ssize_t. Regards, Martin ___ P

Re: [Python-Dev] Integer representation (Was: ssize_t question: longs in header files)

2006-05-29 Thread Martin v. Löwis
type into a dictionary. If the type is anonymous, they will do dispatch[type(0)] = marshal_int dispatch[type(sys.maxint+1)] = marshal_int Plus, their current code as dispatch[int] = marshal_int which will silently break (although it won't be silent if they also have dispatch[long] = marsha

Re: [Python-Dev] Remove METH_OLDARGS?

2006-05-29 Thread Martin v. Löwis
t. If the module is unmaintained, producing a warning now might not help, either. 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] Python Benchmarks

2006-06-03 Thread Martin v. Löwis
ocess > time > on an equally loaded system. On Linux, process time is accounted in jiffies. Unfortunately, for compatibility, times(2) converts that to clock_t, losing precision. Regards, Martin ___ Python-Dev mailing list Python-Dev@pyt

Re: [Python-Dev] Removing Mac OS 9 cruft

2006-06-03 Thread Martin v. Löwis
erted: http://python.cvs.sourceforge.net/python/python/dist/src/Mac/IDE%20scripts/ These had caused ongoing problems for Windows, which could not stand files with trailing dots. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mail

Re: [Python-Dev] test_ctypes failures on ppc64 debian

2006-06-03 Thread Martin v. Löwis
ython (this hasn't happened so far). 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] Python Benchmarks

2006-06-03 Thread Martin v. Löwis
ts. on my machine, CLOCKS_PER_SEC is a > thousand times larger than HZ. what does this code print on your machine? You are right; clock_t allows for higher precision than jiffies. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.o

Re: [Python-Dev] Python Benchmarks

2006-06-03 Thread Martin v. Löwis
2/kernel.php3 > > under "No more jiffies?": [...] > > Maybe this varies by Linux flavor or version? No, Fredrik is right: Linux samples process time, instead of measuring it. That only proves it is not a modern operating system :-) I would still h

Re: [Python-Dev] Python Benchmarks

2006-06-03 Thread Martin v. Löwis
To find out whether it samples or measures CPU usage, you really have to read the source code of the operating system (or find some documentation of somebody who has seen the source code). Regards, Martin ___ Python-Dev mailing list Python-Dev@pyt

Re: [Python-Dev] Include/structmember.h, Py_ssize_t

2006-06-06 Thread Martin v. Löwis
Thomas Heller wrote: > In Include/structmember.h, there is no T_... constant for Py_ssize_t > member fields. Should there be one? As Fredrik says: if you need it, feel free to add it. Regards, Martin ___ Python-Dev mailing list Python-Dev@pyth

Re: [Python-Dev] ssize_t: ints in header files

2006-06-06 Thread Martin v. Löwis
Jim Jewett wrote: > Martin v. Löwis replied: > >> ... column numbers shouldn't exceed 16-bits, and line #s >> shouldn't exceed 31 bits. > > Why these particular numbers? > > As nearly as I can tell, 8 bits is already too many columns for human >

Re: [Python-Dev] [Python-checkins] Python Regression Test Failures refleak (1)

2006-06-06 Thread Martin v. Löwis
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] references 1 test OK. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-de

Re: [Python-Dev] [Python-checkins] Python Regression Test Failuresrefleak (1)

2006-06-07 Thread Martin v. Löwis
tion of FILETIME *originates* from the way NTFS stores time stamps. For FAT, the on-disk precision is worse, of course. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http:/

Re: [Python-Dev] tarfile and unicode filenames in windows

2006-06-08 Thread Martin v. Löwis
nd and implement that. As this is all fairly non-trivial, and must also consider a lot of prior art, it is unlikely that something will be done about it in the next years. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.py

Re: [Python-Dev] beta1 coming real soon

2006-06-09 Thread Martin v. Löwis
ernal libraries. > Is it strictly forbidden to add new features in ctypes during the > (Python) beta period? I think it strictly requires explicit permission of the release manager. If many people want more time, we should move the release schedule. OTOH, there will always b

Re: [Python-Dev] beta1 coming real soon

2006-06-09 Thread Martin v. Löwis
ny existing features - they still don't get the testing that the beta releases try to achieve. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/ma

Re: [Python-Dev] UUID module

2006-06-10 Thread Martin v. Löwis
that's part of core > Python? It looks like the only Win32 API you use is CoCreateGUID, so > wrapping it should be doable... http://docs.python.org/dev/lib/module-msilib.html#l2h-5633 Regards, Martin ___ Python-Dev mailing list Python-De

<    46   47   48   49   50   51   52   53   54   55   >