Re: [Python-Dev] Mercurial?

2009-04-06 Thread Dirkjan Ochtman
On Mon, Apr 6, 2009 at 00:48, Mark Hammond skippy.hamm...@gmail.com wrote: Just to be clear, what input would you like on that map? Review of email addresses, pointers to names/email addresses for the usernames I don't have anything for yet. Also, there's a few commented question marks, it would

Re: [Python-Dev] Mercurial?

2009-04-06 Thread Dirkjan Ochtman
On Mon, Apr 6, 2009 at 04:27, s...@pobox.com wrote: Maybe once for each currently active Subversion branch (2.6, 2.7, 3.0, 3.1)? Sure, if we're doing cloned branches. But then someone will also need to clone 2.5, and maybe 2.4. The point is, as long as it's a constant factor and not an order of

Re: [Python-Dev] Mercurial?

2009-04-06 Thread Dirkjan Ochtman
On Mon, Apr 6, 2009 at 06:20, Alexandre Vassalotti alexan...@peadrop.com wrote: But that won't work if people who are not core developers submit us patch bundle to import. And maintaining a such white-list sounds to me more burdensome than necessary. Well, if you need contributors to sign a

Re: [Python-Dev] Mercurial?

2009-04-06 Thread Dirkjan Ochtman
Alexandre Vassalotti alexandre at peadrop.com writes: If I recall correctly, only ssh clients can request compression to the server—in other words, the server cannot forces the clients to use compression, but merely allow them use it. See the man page for sshd_config and ssh_config for the

Re: [Python-Dev] Mercurial?

2009-04-06 Thread Dirkjan Ochtman
Martin v. Löwis martin at v.loewis.de writes: Is it possible to branch from a subdirectory? For the different VMs stuff, it's rather desirable to have a branch of the test suite, and the perhaps the standard library, than extracting it from the source. You can only branch the whole repository.

Re: [Python-Dev] Mercurial?

2009-04-06 Thread Dirkjan Ochtman
Alexandre Vassalotti alexandre at peadrop.com writes: With Mercurial, we will need to add support for server-side clone ourselves. There's few ways to provide this feature. We give Unix user accounts to all core developers and let developers manages their private branches directly on the

[Python-Dev] CObject take 2: Introducing the Capsule

2009-04-06 Thread Larry Hastings
(See my posting Let's update CObject API so it is safe and regular! from 2009/03/31 for take 1). I discussed this off-list with GvR. He was primarily concerned with fixing the passing-around-a-vtable C API usage of CObject, but he wanted to preserve as much backwards compatibility as

Re: [Python-Dev] Mercurial?

2009-04-06 Thread Philippe Fremy
Dirkjan Ochtman wrote: On 05/04/2009 20:29, Martin v. Löwis wrote: FYI: this is the list of hooks currently employed: - pre: check whitespace - post: mail python-checkins inform regular buildbot inform community buildbot trigger website rebuild if a PEP was

Re: [Python-Dev] Mercurial?

2009-04-06 Thread Dirkjan Ochtman
On Mon, Apr 6, 2009 at 10:21, Philippe Fremy p...@freehackers.org wrote: One question: if somebody pushes a changeset with 3 commits, will the pre and post hooks be applied on all of the commits, or only on the final commit ? If this is applied on every commit, then you have no way to fix a

Re: [Python-Dev] Mercurial?

2009-04-06 Thread Ali Afshar
Daniel (ajax) Diniz wrote: Martin v. Löwis wrote: I think it would be a good idea to host a temporary svn mirrors for developers who accesses their VCS via an IDE. Although, I am sure anymore if supporting these developers (if there are any) would worth the trouble. So, think of this as

Re: [Python-Dev] Mercurial?

2009-04-06 Thread Dirkjan Ochtman
On Mon, Apr 6, 2009 at 11:14, Philippe Fremy p...@freehackers.org wrote: This is a problem I have with my daily usage of mercurial. It's supposed to be great to work offline and to commit your intermediate versions before it's fully working but if you do that, all those intermediate non

Re: [Python-Dev] Possible py3k io wierdness

2009-04-06 Thread Nick Coghlan
Alex Martelli wrote: Queue.Queue in 2.* (and queue.Queue in 3.*) is like that too -- the single leading underscore meaning protected (I'm here for subclasses to override me, only in C++ parlance) and a great way to denote hook methods in a Template Method design pattern instance. Base class

Re: [Python-Dev] Getting values stored inside sets

2009-04-06 Thread Hrvoje Niksic
Raymond Hettinger wrote: Hrvoje Niksic wrote: I've stumbled upon an oddity using sets. It's trivial to test if a value is in the set, but it appears to be impossible to retrieve a stored value, See: http://code.activestate.com/recipes/499299/ Thanks, this is *really* good, the kind of

Re: [Python-Dev] Mercurial?

2009-04-06 Thread Nick Coghlan
Dirkjan Ochtman wrote: I have a stab at an author map at http://dirkjan.ochtman.nl/author-map. Could use some review, but it seems like a good start. Martin may be able to provide a better list of names based on the checkin name-SSH public key mapping in the SVN setup. (e.g. I believe my SVN

Re: [Python-Dev] Mercurial?

2009-04-06 Thread Nick Coghlan
Dirkjan Ochtman wrote: Another thing that I discussed with Georg last night would be a setup where changesets get pushed to a gateway repo that runs the tests and only pushes to an official repo if everything's still green. That should probably be a topic discussed separately, though. That

Re: [Python-Dev] Mercurial?

2009-04-06 Thread Michael Foord
Nick Coghlan wrote: Dirkjan Ochtman wrote: Another thing that I discussed with Georg last night would be a setup where changesets get pushed to a gateway repo that runs the tests and only pushes to an official repo if everything's still green. That should probably be a topic discussed

Re: [Python-Dev] Possible py3k io wierdness

2009-04-06 Thread Nick Coghlan
Brian Quinlan wrote: - you need the cooperation of your subclasses i.e. they must call super().flush() in .flush() to get correct close behavior (and this represents a backwards-incompatible semantic change) Are you sure about that? Going by the current _pyio semantics that Antoine posted,

Re: [Python-Dev] Mercurial?

2009-04-06 Thread Nick Coghlan
Alexandre Vassalotti wrote: On Mon, Apr 6, 2009 at 12:20 AM, Aahz a...@pythoncraft.com wrote: How difficult would it be to change the decision later? That is, how about starting with a CVS-style system and maybe switch to kernel-style once people get comfortable with Hg? I believe it would

Re: [Python-Dev] Mercurial?

2009-04-06 Thread Philippe Fremy
Dirkjan Ochtman wrote: On Mon, Apr 6, 2009 at 10:21, Philippe Fremy p...@freehackers.org wrote: One question: if somebody pushes a changeset with 3 commits, will the pre and post hooks be applied on all of the commits, or only on the final commit ? If this is applied on every commit, then

Re: [Python-Dev] Mercurial?

2009-04-06 Thread Dirkjan Ochtman
On Mon, Apr 6, 2009 at 13:55, Michael Foord fuzzy...@voidspace.org.uk wrote: Gated checkins can work fine but can also have many problems. For example if we have a spuriously failing test then if you are working on an unrelated issue it will be entirely up to chance as to whether you can

Re: [Python-Dev] Tools

2009-04-06 Thread Jesse Noller
On Sun, Apr 5, 2009 at 10:58 PM, Jack diederich jackd...@gmail.com wrote: On Sun, Apr 5, 2009 at 10:50 PM,  s...@pobox.com wrote:    Barry Someone asked me at Pycon about stripping out Demos and Tools.    Matthias +1, but please for 2.7 and 3.1 only. Is there a list of other demos or tools

Re: [Python-Dev] PEP 382: Namespace Packages

2009-04-06 Thread Chris Withers
Martin v. Löwis wrote: Chris Withers wrote: Martin v. Löwis wrote: I propose the following PEP for inclusion to Python 3.1. Please comment. Would this support the following case: I have a package called mortar, which defines useful stuff: from mortar import content, ... I now want to

Re: [Python-Dev] issue5578 - explanation

2009-04-06 Thread Chris Withers
Benjamin Peterson wrote: Assuming it breaks no tests, would there be objection to me committing the above change to the Python 3 trunk? That's up to Benjamin. Personally, I live by if it ain't broke, don't fix it. :-) Anything using an exec is broken by definition ;-) practicality beats

[Python-Dev] FWD: Documentation site problems

2009-04-06 Thread Aahz
The 3.0 docs seem to be correct: http://docs.python.org/3.0/tutorial/ - Forwarded message from Ernst Persson er...@stickybit.se - Subject: Documentation site problems From: Ernst Persson er...@stickybit.se To: webmas...@python.org Organization: StickyBit AB Date: Mon, 06 Apr 2009

[Python-Dev] FWD: Library Reference is incomplete

2009-04-06 Thread Aahz
Hrm, looks like the whole 2.6 build is broken. - Forwarded message from M?ller-Reineke, Matthias matthias.mueller-rein...@grundvers.de - Subject: Library Reference is incomplete Date: Mon, 6 Apr 2009 11:25:54 +0200 From: M?ller-Reineke, Matthias matthias.mueller-rein...@grundvers.de

Re: [Python-Dev] Mercurial?

2009-04-06 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Apr 6, 2009, at 7:55 AM, Michael Foord wrote: Gated checkins can work fine but can also have many problems. For example if we have a spuriously failing test then if you are working on an unrelated issue it will be entirely up to chance as to

Re: [Python-Dev] Mercurial?

2009-04-06 Thread Ben Finney
Nick Coghlan ncogh...@gmail.com writes: My guess was that Bazaar anchored the centralised end of the DVCS scale by letting users avoid caring about the underlying acyclic graph […] That makes Bazaar easy to pitch conceptually to someone like me (you can use it just like you use SVN, only

Re: [Python-Dev] PEP 382: Namespace Packages

2009-04-06 Thread Jesse Noller
On Thu, Apr 2, 2009 at 4:33 PM, M.-A. Lemburg m...@egenix.com wrote: On 2009-04-02 17:32, Martin v. Löwis wrote: I propose the following PEP for inclusion to Python 3.1. Thanks for picking this up. I'd like to extend the proposal to Python 2.7 and later. -1 to adding it to the 2.x series.

Re: [Python-Dev] PEP 382: Namespace Packages

2009-04-06 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Apr 6, 2009, at 9:21 AM, Jesse Noller wrote: On Thu, Apr 2, 2009 at 4:33 PM, M.-A. Lemburg m...@egenix.com wrote: On 2009-04-02 17:32, Martin v. Löwis wrote: I propose the following PEP for inclusion to Python 3.1. Thanks for picking this

Re: [Python-Dev] Tools

2009-04-06 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Apr 5, 2009, at 7:37 PM, Matthias Klose wrote: Barry Warsaw schrieb: Someone (I'm sorry, I forgot who) asked me at Pycon about stripping out Demos and Tools. I'm happy to remove the two I wrote - Tools/world and Tools/pynche - from the

Re: [Python-Dev] pyc files, constant folding and borderline portability issues

2009-04-06 Thread Cesare Di Mauro
On Mar 29, 2009 at 05:36PM, Guido van Rossum gu...@python.org wrote: - Issue #5593: code like 1e16+2. is optimized away and its result stored as a constant (again), but the result can vary slightly depending on the internal FPU precision. I would just not bother constant folding

Re: [Python-Dev] PEP 382: Namespace Packages

2009-04-06 Thread Eric Smith
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Apr 6, 2009, at 9:21 AM, Jesse Noller wrote: On Thu, Apr 2, 2009 at 4:33 PM, M.-A. Lemburg m...@egenix.com wrote: On 2009-04-02 17:32, Martin v. Löwis wrote: I propose the following PEP for inclusion to Python 3.1. Thanks for picking this

Re: [Python-Dev] pyc files, constant folding and borderline portability issues

2009-04-06 Thread Antoine Pitrou
Cesare Di Mauro cesare.dimauro at a-tono.com writes: def f(): return ['a', ('b', 'c')] * (1 + 2 * 3) [...] With proper constant folding code, both functions can be reduced to a single LOAD_CONST and a RETURN_VALUE (or, definitely, by a single instruction at all with an advanced peephole

Re: [Python-Dev] PEP 382: Namespace Packages

2009-04-06 Thread P.J. Eby
At 02:00 PM 4/6/2009 +0100, Chris Withers wrote: Martin v. Löwis wrote: Chris Withers wrote: Would this support the following case: I have a package called mortar, which defines useful stuff: from mortar import content, ... I now want to distribute large optional chunks separately, but

Re: [Python-Dev] PEP 382: Namespace Packages

2009-04-06 Thread Chris Withers
P.J. Eby wrote: See the third paragraph of http://www.python.org/dev/peps/pep-0382/#discussion Indeed, I guess the PEP could be made more explanatory then 'cos, as a packager, I don't see what I'd put in the various setup.py and __init__.py to make this work... That said, I'm delighted to

Re: [Python-Dev] PEP 382: Namespace Packages

2009-04-06 Thread Jesse Noller
On Mon, Apr 6, 2009 at 9:26 AM, Barry Warsaw ba...@python.org wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Apr 6, 2009, at 9:21 AM, Jesse Noller wrote: On Thu, Apr 2, 2009 at 4:33 PM, M.-A. Lemburg m...@egenix.com wrote: On 2009-04-02 17:32, Martin v. Löwis wrote: I propose

Re: [Python-Dev] deprecating BaseException.message

2009-04-06 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brett Cannon wrote: During the PyCon sprint I tried to make BaseException accept only a single argument and bind it to BaseException.message . I was successful (see the p3yk_no_args_on_exc branch), but it was very painful to pull off as anyone

Re: [Python-Dev] PEP 382: Namespace Packages

2009-04-06 Thread R. David Murray
On Mon, 6 Apr 2009 at 12:00, Jesse Noller wrote: On Mon, Apr 6, 2009 at 9:26 AM, Barry Warsaw ba...@python.org wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Apr 6, 2009, at 9:21 AM, Jesse Noller wrote: On Thu, Apr 2, 2009 at 4:33 PM, M.-A. Lemburg m...@egenix.com wrote: On

Re: [Python-Dev] PEP 382: Namespace Packages

2009-04-06 Thread Jesse Noller
On Mon, Apr 6, 2009 at 12:28 PM, R. David Murray rdmur...@bitdance.com wrote: On Mon, 6 Apr 2009 at 12:00, Jesse Noller wrote: On Mon, Apr 6, 2009 at 9:26 AM, Barry Warsaw ba...@python.org wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Apr 6, 2009, at 9:21 AM, Jesse Noller wrote:

Re: [Python-Dev] pyc files, constant folding and borderline portability issues

2009-04-06 Thread skip
Cesare At this time with Python 2.6.1 we have these results: Cesare def f(): return 1 + 2 * 3 + 4j ... Cesare def f(): return ['a', ('b', 'c')] * (1 + 2 * 3) Guido can certainly correct me if I'm wrong, but I believe the main point of his message was that you aren't going to

Re: [Python-Dev] pyc files, constant folding and borderline portability issues

2009-04-06 Thread Cesare Di Mauro
On Lun, Apr 6, 2009 16:43, Antoine Pitrou wrote: Cesare Di Mauro cesare.dimauro at a-tono.com writes: def f(): return ['a', ('b', 'c')] * (1 + 2 * 3) [...] With proper constant folding code, both functions can be reduced to a single LOAD_CONST and a RETURN_VALUE (or, definitely, by a single

Re: [Python-Dev] PEP 382: Namespace Packages

2009-04-06 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jesse Noller wrote: On Mon, Apr 6, 2009 at 12:28 PM, R. David Murray rdmur...@bitdance.com wrote: On Mon, 6 Apr 2009 at 12:00, Jesse Noller wrote: On Mon, Apr 6, 2009 at 9:26 AM, Barry Warsaw ba...@python.org wrote: -BEGIN PGP SIGNED

Re: [Python-Dev] Possible py3k io wierdness

2009-04-06 Thread Brian Quinlan
Nick Coghlan wrote: Brian Quinlan wrote: - you need the cooperation of your subclasses i.e. they must call super().flush() in .flush() to get correct close behavior (and this represents a backwards-incompatible semantic change) Are you sure about that? Going by the current _pyio semantics

Re: [Python-Dev] pyc files, constant folding and borderline portability issues

2009-04-06 Thread Cesare Di Mauro
On Mon, Apr 6, 2009 18:57, s...@pobox.com wrote: Cesare At this time with Python 2.6.1 we have these results: Cesare def f(): return 1 + 2 * 3 + 4j ... Cesare def f(): return ['a', ('b', 'c')] * (1 + 2 * 3) Guido can certainly correct me if I'm wrong, but I believe the main

Re: [Python-Dev] pyc files, constant folding and borderline portability issues

2009-04-06 Thread Mark Dickinson
[Antoine] - Issue #5593: code like 1e16+2. is optimized away and its result stored as a constant (again), but the result can vary slightly depending on the internal FPU precision. [Guido] I would just not bother constant folding involving FP, or only if the values involved have an exact

Re: [Python-Dev] pyc files, constant folding and borderline portability issues

2009-04-06 Thread Raymond Hettinger
+1 for removing constant folding for floats (besides conversion of -literal). There are just too many things to worry about: FPU rounding mode and precision, floating-point signals and flags, effect of compiler flags, and the potential benefit seems small. If you're talking about the

Re: [Python-Dev] Evaluated cmake as an autoconf replacement

2009-04-06 Thread Ondrej Certik
Hi, On Sun, Mar 29, 2009 at 10:21 AM, Jeffrey Yasskin jyass...@gmail.com wrote: I've heard some good things about cmake — LLVM, googletest, and Boost are all looking at switching to it — so I wanted to see if we could simplify our autoconf+makefile system by using it. The biggest wins I see

Re: [Python-Dev] pyc files, constant folding and borderline portability issues

2009-04-06 Thread Mark Dickinson
On Mon, Apr 6, 2009 at 9:05 PM, Raymond Hettinger pyt...@rcn.com wrote: The code for the lsum() recipe is more readable with a line like:  exp = long(mant * 2.0 ** 53) than with  exp = long(mant * 9007199254740992.0) It would be ashamed if code written like the former suddenly started

[Python-Dev] Getting information out of the buildbots

2009-04-06 Thread Jack diederich
I committed some new telnetlib tests yesterday to the trunk and I can see they are failing on Neal's setup but not what the failures are. Ideally I like to get the information out of the buildbots but they all seem to be hanging on stdio tests and quiting out. Ideas? TIA, -Jack

Re: [Python-Dev] Getting information out of the buildbots

2009-04-06 Thread Antoine Pitrou
Jack diederich jackdied at gmail.com writes: I committed some new telnetlib tests yesterday to the trunk and I can see they are failing on Neal's setup but not what the failures are. Ideally I like to get the information out of the buildbots but they all seem to be hanging on stdio tests and

Re: [Python-Dev] pyc files, constant folding and borderline portability issues

2009-04-06 Thread Guido van Rossum
On Mon, Apr 6, 2009 at 7:28 AM, Cesare Di Mauro cesare.dima...@a-tono.com wrote: The Language Reference says nothing about the effects of code optimizations. I think it's a very good thing, because we can do some work here with constant folding. Unfortunately the language reference is not the

Re: [Python-Dev] pyc files, constant folding and borderline portability issues

2009-04-06 Thread Guido van Rossum
On Mon, Apr 6, 2009 at 1:22 PM, Mark Dickinson dicki...@gmail.com wrote: On Mon, Apr 6, 2009 at 9:05 PM, Raymond Hettinger pyt...@rcn.com wrote: The code for the lsum() recipe is more readable with a line like:  exp = long(mant * 2.0 ** 53) than with  exp = long(mant * 9007199254740992.0)

Re: [Python-Dev] FWD: Library Reference is incomplete

2009-04-06 Thread Thomas Wouters
Anyone able to look into this and fix it? Having all of the normal entrypoints for documentation broken is rather inconvenient for users :-) On Mon, Apr 6, 2009 at 15:06, Aahz a...@pythoncraft.com wrote: Hrm, looks like the whole 2.6 build is broken. - Forwarded message from

Re: [Python-Dev] deprecating BaseException.message

2009-04-06 Thread Nick Coghlan
Tres Seaver wrote: I don't think either of these classes should be subject to a deprecation warning for a feature they never used or depended on. Agreed. Could you raise a tracker issue for the spurious warnings? (I believe we should be able to make the warning condition a bit smarter to

Re: [Python-Dev] Mercurial?

2009-04-06 Thread Nick Coghlan
Ben Finney wrote: Nick Coghlan ncogh...@gmail.com writes: Mercurial appears to best allow the sales pitch to be tailored to the target audience (in this case, a group including a lot of people with a background predominantly involving centralised version control tools). I don't follow.

Re: [Python-Dev] Mercurial?

2009-04-06 Thread Martin v. Löwis
Nick Coghlan wrote: Dirkjan Ochtman wrote: I have a stab at an author map at http://dirkjan.ochtman.nl/author-map. Could use some review, but it seems like a good start. Martin may be able to provide a better list of names based on the checkin name-SSH public key mapping in the SVN setup.

Re: [Python-Dev] pyc files, constant folding and borderline portability issues

2009-04-06 Thread Adam Olsen
On Mon, Apr 6, 2009 at 2:22 PM, Mark Dickinson dicki...@gmail.com wrote: Well, I'd say that the obvious solution here is to compute the constant 2.0**53 just once, somewhere outside the inner loop.  In any case, that value would probably be better written as 2.0**DBL_MANT_DIG (or something

Re: [Python-Dev] Getting information out of the buildbots

2009-04-06 Thread Martin v. Löwis
You can commit some temporary debug output in the tests (just sprinkle those print()'s you need to get your tasty information). Also, if you want to do a sequence of changes to test a specific machine, you might want to create a branch, make those changes, and then trigger a build of that

Re: [Python-Dev] FWD: Documentation site problems

2009-04-06 Thread Sylvain Fourmanoit
there contents is missing from the python tutorial: The 3.0 docs seem to be correct: http://docs.python.org/3.0/tutorial/ It seems it is not the case anymore. The devel doc from Python 3 are missing a few tables of contents as well: http://docs.python.org/dev/py3k/tutorial/ When I build

Re: [Python-Dev] pyc files, constant folding and bor derline portability issues

2009-04-06 Thread Steven D'Aprano
On Tue, 7 Apr 2009 07:27:29 am Guido van Rossum wrote: Unfortunately the language reference is not the only thing we have to worry about. Unlike languages like C++, where compiler writers have the moral right to modify the compiler as long as they stay within the weasel-words of the standard,

Re: [Python-Dev] pyc files, constant folding and borderline portability issues

2009-04-06 Thread Guido van Rossum
On Mon, Apr 6, 2009 at 5:10 PM, Steven D'Aprano st...@pearwood.info wrote: On Tue, 7 Apr 2009 07:27:29 am Guido van Rossum wrote: Unfortunately the language reference is not the only thing we have to worry about. Unlike languages like C++, where compiler writers have the moral right to modify

Re: [Python-Dev] Evaluated cmake as an autoconf replacement

2009-04-06 Thread Neal Becker
David Cournapeau wrote: On Mon, Mar 30, 2009 at 2:59 AM, Antoine Pitrou solip...@pitrou.net wrote: ... Waf is definitely faster than scons - something like one order of magnitude. I am yet very familiar with waf, but I like what I saw - the architecture is much nicer than scons (waf core

Re: [Python-Dev] Evaluated cmake as an autoconf replacement

2009-04-06 Thread Steve Holden
Ondrej Certik wrote: Hi, On Sun, Mar 29, 2009 at 10:21 AM, Jeffrey Yasskin jyass...@gmail.com wrote: I've heard some good things about cmake — LLVM, googletest, and Boost are all looking at switching to it — so I wanted to see if we could simplify our autoconf+makefile system by using it.

Re: [Python-Dev] Mercurial?

2009-04-06 Thread Steve Holden
Dirkjan Ochtman wrote: On Mon, Apr 6, 2009 at 06:20, Alexandre Vassalotti alexan...@peadrop.com wrote: But that won't work if people who are not core developers submit us patch bundle to import. And maintaining a such white-list sounds to me more burdensome than necessary. Well, if you

[Python-Dev] calling dictresize outside dictobject.c

2009-04-06 Thread Dan Schult
Hi, I'm trying to write a C extension which is a subclass of dict. I want to do something like a setdefault() but with a single lookup. Looking through the dictobject code, the three workhorse routines lookdict, insertdict and dictresize are not available directly for functions outside

Re: [Python-Dev] Evaluated cmake as an autoconf replacement

2009-04-06 Thread Greg Ewing
Steve Holden wrote: Isn't it strange how nobody every complained about the significance of whitespace in makefiles: only the fact that leading tabs were required rather than just-any-old whitespace. Make doesn't care how *much* whitespace there is, though, only whether it's there or not. If

[Python-Dev] decorator module in stdlib?

2009-04-06 Thread Daniel Fetchinson
The decorator module [1] written by Michele Simionato is a very useful tool for maintaining function signatures while applying a decorator. Many different projects implement their own versions of the same functionality, for example turbogears has its own utility for this, I guess others do

Re: [Python-Dev] Mercurial?

2009-04-06 Thread Stephen J. Turnbull
Alexandre Vassalotti writes: This makes me remember that we will have to decide how we will reorganize our workflow. For this, we can either be conservative and keep the current CVS-style development workflow--i.e., a few main repositories where all developers can commit to. That was the