Re: [Python-Dev] Python 3.4 version in the tracker

2011-03-13 Thread Georg Brandl
On 12.03.2011 17:09, Eric Smith wrote: On 03/12/2011 10:55 AM, Éric Araujo wrote: I have a deprecation warning that I need to make an error in 3.4. A neat trick to remember to do those changes is using a test that fails if something does not raise a DeprecationWarning if sys.version_info[:2]

[Python-Dev] Using feature branches for local development

2011-03-13 Thread Nick Coghlan
I'm experimenting with creating some local branches for things I'd like to work on during the sprints this week, and have a couple of questions about the associated workflow. 1. While the feature branches are active, is it correct that I can't use a bare hg push any more, since I don't want to

Re: [Python-Dev] Using feature branches for local development

2011-03-13 Thread Stephen J. Turnbull
On Sun, Mar 13, 2011 at 8:25 PM, Nick Coghlan ncogh...@gmail.com wrote: 1. While the feature branches are active, is it correct that I can't use a bare hg push any more, since I don't want to push the feature branches to hg.python.org? Instead, I need to name all the branches I want to push

Re: [Python-Dev] Using feature branches for local development

2011-03-13 Thread Dirkjan Ochtman
On Sun, Mar 13, 2011 at 12:25, Nick Coghlan ncogh...@gmail.com wrote: I'm experimenting with creating some local branches for things I'd like to work on during the sprints this week, and have a couple of questions about the associated workflow. By local branches, do you mean named branches

Re: [Python-Dev] Using feature branches for local development

2011-03-13 Thread Nick Coghlan
On Sun, Mar 13, 2011 at 7:56 AM, Stephen J. Turnbull step...@xemacs.org wrote: 2. Once I'm done with the feature branch, I need to nuke it somehow (e.g. by enabling the mq extension to gain access to hg strip command) You may *want* to do that, but hg branch obsolete-branch; hg commit -m I'm

Re: [Python-Dev] Python3 regret about deleting list.sort(cmp=...)

2011-03-13 Thread Paul Moore
On 13 March 2011 03:00, Raymond Hettinger raymond.hettin...@gmail.com wrote: But in Python 3 this solution is no longer available. How bad is that? I'm not sure. But I'd like to at least get the issue out in the open. Python3.2 should be substantially better in this regard. It no longer

Re: [Python-Dev] Using feature branches for local development

2011-03-13 Thread Eli Bendersky
On Sun, Mar 13, 2011 at 13:25, Nick Coghlan ncogh...@gmail.com wrote: I'm experimenting with creating some local branches for things I'd like to work on during the sprints this week, and have a couple of questions about the associated workflow. The way to do this, IMHO, is just create a

Re: [Python-Dev] Using feature branches for local development

2011-03-13 Thread Nick Coghlan
On Sun, Mar 13, 2011 at 8:32 AM, Eli Bendersky eli...@gmail.com wrote: The way to do this, IMHO, is just create a local clone and work on it. Then you can keep checking partial changes in without ever worrying about accidentally modifying the official repo. Especially if some of this work is

Re: [Python-Dev] Using feature branches for local development

2011-03-13 Thread Martin v. Löwis
Am 13.03.11 07:25, schrieb Nick Coghlan: I'm experimenting with creating some local branches for things I'd like to work on during the sprints this week, and have a couple of questions about the associated workflow. 1. While the feature branches are active, is it correct that I can't use a bare

[Python-Dev] Failed issue tracker submission

2011-03-13 Thread Python tracker
You are not permitted to edit property stage of class issue.Return-Path: python-dev@python.org X-Original-To: rep...@bugs.python.org Delivered-To: roundup+trac...@psf.upfronthosting.co.za Received: from mail.python.org (mail.python.org [82.94.164.166]) by psf.upfronthosting.co.za

[Python-Dev] Failed issue tracker submission

2011-03-13 Thread Python tracker
You are not permitted to edit property stage of class issue.Return-Path: python-dev@python.org X-Original-To: rep...@bugs.python.org Delivered-To: roundup+trac...@psf.upfronthosting.co.za Received: from mail.python.org (mail.python.org [82.94.164.166]) by psf.upfronthosting.co.za

[Python-Dev] Failed issue tracker submission

2011-03-13 Thread Python tracker
You are not permitted to edit property stage of class issue.Return-Path: python-dev@python.org X-Original-To: rep...@bugs.python.org Delivered-To: roundup+trac...@psf.upfronthosting.co.za Received: from mail.python.org (mail.python.org [82.94.164.166]) by psf.upfronthosting.co.za

[Python-Dev] Failed issue tracker submission

2011-03-13 Thread Python tracker
You are not permitted to edit property stage of class issue.Return-Path: python-dev@python.org X-Original-To: rep...@bugs.python.org Delivered-To: roundup+trac...@psf.upfronthosting.co.za Received: from mail.python.org (mail.python.org [82.94.164.166]) by psf.upfronthosting.co.za

Re: [Python-Dev] Using feature branches for local development

2011-03-13 Thread Eli Bendersky
On Sun, Mar 13, 2011 at 14:41, Nick Coghlan ncogh...@gmail.com wrote: On Sun, Mar 13, 2011 at 8:32 AM, Eli Bendersky eli...@gmail.com wrote: The way to do this, IMHO, is just create a local clone and work on it. Then you can keep checking partial changes in without ever worrying about

Re: [Python-Dev] Using feature branches for local development

2011-03-13 Thread Nick Coghlan
On Sun, Mar 13, 2011 at 8:47 AM, Martin v. Löwis mar...@v.loewis.de wrote: Am 13.03.11 07:25, schrieb Nick Coghlan: 2. Once I'm done with the feature branch, I need to nuke it somehow (e.g. by enabling the mq extension to gain access to hg strip command) I think this will need

Re: [Python-Dev] Using feature branches for local development

2011-03-13 Thread Antoine Pitrou
On Sun, 13 Mar 2011 09:28:28 -0400 Nick Coghlan ncogh...@gmail.com wrote: The mercurial-recommended way is that you just push your changes to cpython when done, which puts all your individual commits into Python's history. I tried to find an official statement on which way it should be

Re: [Python-Dev] Python 3.4 version in the tracker

2011-03-13 Thread Eric Smith
On 03/13/2011 06:49 AM, Georg Brandl wrote: On 12.03.2011 17:09, Eric Smith wrote: On 03/12/2011 10:55 AM, Éric Araujo wrote: I have a deprecation warning that I need to make an error in 3.4. A neat trick to remember to do those changes is using a test that fails if something does not raise

Re: [Python-Dev] Using feature branches for local development

2011-03-13 Thread Benjamin Peterson
2011/3/13 Antoine Pitrou solip...@pitrou.net: On Sun, 13 Mar 2011 09:28:28 -0400 Nick Coghlan ncogh...@gmail.com wrote: The mercurial-recommended way is that you just push your changes to cpython when done, which puts all your individual commits into Python's history. I tried to find an

Re: [Python-Dev] Using feature branches for local development

2011-03-13 Thread Stephen J. Turnbull
On Sun, Mar 13, 2011 at 9:05 PM, Nick Coghlan ncogh...@gmail.com wrote: On Sun, Mar 13, 2011 at 7:56 AM, Stephen J. Turnbull step...@xemacs.org wrote: You may *want* to do that, but hg branch obsolete-branch; hg commit -m I'm done --close should also do the trick of getting it out of the

Re: [Python-Dev] Using feature branches for local development

2011-03-13 Thread Stephen J. Turnbull
On Sun, Mar 13, 2011 at 9:32 PM, Eli Bendersky eli...@gmail.com wrote: The way to do this, IMHO, is just create a local clone and work on it. Then you can keep checking partial changes in without ever worrying about accidentally modifying the official repo. Especially if some of this work is

Re: [Python-Dev] Using feature branches for local development

2011-03-13 Thread Éric Araujo
tl;dr: +1 for pushing only clean changesets. Le 13/03/2011 14:44, Antoine Pitrou a écrit : I think we (python-dev) will need to take a decision on this. My personal opinion is that we don't want to see all intermediate commits which led to a patch (or feature) in the main repo. It may also

[Python-Dev] Submitting changes through Mercurial

2011-03-13 Thread Martin v. Löwis
I've added a feature in the bug tracker where submitters can post Mercurial repository URLs, and then repeatedly create patches. Roundup will extract the current patch (cpython-default:submitter-default), and attach the patch to the issue (which then allows Rietveld review of the patch).

Re: [Python-Dev] Python3 regret about deleting list.sort(cmp=...)

2011-03-13 Thread Daniel Stutzbach
On Sat, Mar 12, 2011 at 3:44 PM, Guido van Rossum gu...@python.org wrote: I recently advised a Googler who was sorting a large dataset and running out of memory. My analysis of the situation was that he was sorting a huge list of short lines of the form shortstring,integer with a key function

Re: [Python-Dev] cpython: bump ast version

2011-03-13 Thread Antoine Pitrou
On Sun, 13 Mar 2011 01:34:21 +0100 benjamin.peterson python-check...@python.org wrote: http://hg.python.org/cpython/rev/52940f7f3726 changeset: 68416:52940f7f3726 user:Benjamin Peterson benja...@python.org date:Sat Mar 12 18:35:23 2011 -0600 summary: bump ast version

Re: [Python-Dev] cpython: bump ast version

2011-03-13 Thread Benjamin Peterson
2011/3/13 Antoine Pitrou solip...@pitrou.net: On Sun, 13 Mar 2011 01:34:21 +0100 benjamin.peterson python-check...@python.org wrote: http://hg.python.org/cpython/rev/52940f7f3726 changeset:   68416:52940f7f3726 user:        Benjamin Peterson benja...@python.org date:        Sat Mar 12

Re: [Python-Dev] cpython: bump ast version

2011-03-13 Thread Santoso Wijaya
A revision number is, indeed, local to the working repository. A changeset ID, however is global. From Mercurial's documentation: Revision numbers referring to changesets are very likely to be different in another copy of a repository. Do not use them to talk about changesets with other people.

Re: [Python-Dev] Python3 regret about deleting list.sort(cmp=...)

2011-03-13 Thread Daniel Stutzbach
On Sat, Mar 12, 2011 at 9:17 PM, Terry Reedy tjre...@udel.edu wrote: But in this case, they are much slower. To be faster, one would need something like key=lambda p,q:p*(lcm//q), where lcm is the least common multiple of of all the q's (denominators). For the example above, lcm = 700. But

Re: [Python-Dev] Python3 regret about deleting list.sort(cmp=...)

2011-03-13 Thread Terry Reedy
On 3/13/2011 2:05 PM, Daniel Stutzbach wrote: On Sat, Mar 12, 2011 at 3:44 PM, Guido van Rossum gu...@python.org mailto:gu...@python.org wrote: I recently advised a Googler who was sorting a large dataset and running out of memory. My analysis of the situation was that he was

[Python-Dev] pydoc for named tuples is missing methods

2011-03-13 Thread Tim Lesher
[I mentioned this to Raymond Hettinger after his PyCon talk, and I promised a bug and hopefully a patch. I don't see an obvious solution, though, so I'll ask here first.] Because named tuple prefixes a single underscore to its added method names (_asdict, _replace, and _make), those methods'

Re: [Python-Dev] pydoc for named tuples is missing methods

2011-03-13 Thread Benjamin Peterson
2011/3/13 Tim Lesher tles...@gmail.com: [I mentioned this to Raymond Hettinger after his PyCon talk, and I promised a bug and hopefully a patch. I don't see an obvious solution, though, so I'll ask here first.] Because named tuple prefixes a single underscore to its added method names

Re: [Python-Dev] pydoc for named tuples is missing methods

2011-03-13 Thread James Mills
On Mon, Mar 14, 2011 at 12:41 PM, Tim Lesher tles...@gmail.com wrote: [I mentioned this to Raymond Hettinger after his PyCon talk, and I promised a bug and hopefully a patch. I don't see an obvious solution, though, so I'll ask here first.] Because named tuple prefixes a single underscore to

Re: [Python-Dev] pydoc for named tuples is missing methods

2011-03-13 Thread James Mills
On Mon, Mar 14, 2011 at 12:57 PM, James Mills prolo...@shortcircuit.net.au wrote: [output omitted; it excludes _asdict, _replace, and _make] Sorry I missed this bit :) Works for me. Python 3.2 on 32bit Linux. Scrap that :) cheers James -- -- James Mills -- -- Problems are solved by method

Re: [Python-Dev] pydoc for named tuples is missing methods

2011-03-13 Thread Tim Lesher
Addendum: this looks related to bug 1189811. http://bugs.python.org/issue1189811 That issue seems to hinge on the definition of private. -- Tim Lesher tles...@gmail.com ___ Python-Dev mailing list Python-Dev@python.org