Re: [Python-Dev] str.format_from_mapping

2010-10-31 Thread Benjamin Peterson
ethod would be similar to >> "%(foo)s %(bar)s" % d, where d is a dict (or rather any mapping object), >> but of course would use str.format syntax: "{foo} >> {bar}".format_from_mapping(d). > > I must be missing something, but what's the dif

Re: [Python-Dev] str.format_from_mapping

2010-10-31 Thread Benjamin Peterson
2010/10/31 Glenn Linderman : > On 10/31/2010 2:02 PM, Benjamin Peterson wrote: > > 2010/10/31 Antoine Pitrou : > >> On Sun, 31 Oct 2010 16:39:44 -0400 >> Eric Smith wrote: >> > >>> What are your thoughts on adding a str.format_from_mapping (or similar

Re: [Python-Dev] str.format_from_mapping

2010-10-31 Thread Benjamin Peterson
2010/10/31 Glenn Linderman : > On 10/31/2010 3:32 PM, Eric Smith wrote: > > On 10/31/2010 6:28 PM, Glenn Linderman wrote: > > On 10/31/2010 2:02 PM, Benjamin Peterson wrote: > > 2010/10/31 Antoine Pitrou: > >>  On Sun, 31 Oct 2010 16:39:44 -0400 >>  Eric S

Re: [Python-Dev] On breaking modules into packages Was: [issue10199] Move Demo/turtle under Lib/

2010-11-02 Thread Benjamin Peterson
e was documented or announced. > This is in contrast to the logging module which does have a > clean separation of components and where it isn't unusual > to import just part of the package. See http://docs.python.org/whatsnew/2.7.html#updated-module-unittest -- Regards, Benjamin

Re: [Python-Dev] [Python-checkins] r85902 - in python/branches/py3k/Lib: os.py test/test_os.py

2010-11-03 Thread Benjamin Peterson
c_path() is only used to run a > subprocess: os.exec*() and subprocess.Popen() (only the POSIX implementation). > I suppose that a top level "import warnings" would augment the memory > footprint. Warnings is loaded every time anyway. -- Regards, Benjamin __

Re: [Python-Dev] [Python-checkins] r85902 - in python/branches/py3k/Lib: os.py test/test_os.py

2010-11-03 Thread Benjamin Peterson
2010/11/3 Nick Coghlan : > On Wed, Nov 3, 2010 at 10:19 PM, Benjamin Peterson > wrote: >> >> Warnings is loaded every time anyway. > > I would have agreed with you, but the contents of sys.modules in a > just-started interactive interpreter suggests that isn't tru

Re: [Python-Dev] Python-3 transition in Arch Linux

2010-11-04 Thread Benjamin Peterson
o had a few discrepancies: >  scripts/2to3.py: /usr/bin/env python (necessary, I think - I believe > 2to3 is a 2.x only program) No, I believe distutils is supposed to patch that up, though. -- Regards, Benjamin ___ 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] Help with warnings not being raised

2010-11-04 Thread Benjamin Peterson
nraisable and THEN the "C API unavailable" warning, but it is not > showing the warning. > > I don't know why. Are you passing -3 -Wall? -- Regards, Benjamin ___ Python-Dev mailing list Python-Dev@python.org http://mail.pyth

[Python-Dev] [RELEASED] Python 3.1.3 release candidate 1

2010-11-13 Thread Benjamin Peterson
s can always be reported to: http://bugs.python.org Enjoy! -- Benjamin Peterson Release Manager benjamin at python.org (on behalf of the entire python-dev team and 3.1.3's contributors) ___ Python-Dev mailing list Python-Dev@pytho

[Python-Dev] [RELEASED] Python 2.7.1 release candidate 1

2010-11-13 Thread Benjamin Peterson
find, so they can be fixed in the final release. The bug tracker is at: http://bugs.python.org/ Enjoy! -- Benjamin Peterson Release Manager benjamin at python.org (on behalf of the entire python-dev team and 2.7.1's contributors) ___

Re: [Python-Dev] python3k vs _ast

2010-11-17 Thread Benjamin Peterson
rmation disappeared from those nodes. Is there a particular >> reason for that ? In python2.x, the "args" nodes were just "Name" nodes, >> and as for now we keep them as "AssName" nodes in astng/pylint and would >> l

Re: [Python-Dev] Mercurial Schedule

2010-11-18 Thread Benjamin Peterson
he >> people who stated that they can't wait for the migration to happen >> would work on solving some of the remaining problems. > > Do we have a exhaustive list of mercurial "to do" things?. http://hg.python.org/pymigr/file/1576eb34ec9f/tasks.txt -- Rega

Re: [Python-Dev] Mercurial Schedule

2010-11-19 Thread Benjamin Peterson
2010/11/19 "Martin v. Löwis" : >> Maybe I misremembered Martin's suggestion, and he was only talking about >> security releases. > > Technically, I was only talking about 2.5. For each branch, the > respective release manager should make a decision. For 2.5 an

Re: [Python-Dev] [Python-checkins] r86699 - python/branches/py3k/Lib/zipfile.py

2010-11-22 Thread Benjamin Peterson
) > +        return  ZipExtFile(zef_file, mode, zinfo, zd, > close_fileobj=should_close) > >     def extract(self, member, path=None, pwd=None): >         """Extract a member from the archive to the current working directory, > ___

Re: [Python-Dev] [Python-checkins] r86699 - python/branches/py3k/Lib/zipfile.py

2010-11-22 Thread Benjamin Peterson
2010/11/22 Łukasz Langa : > Wiadomość napisana przez Benjamin Peterson w dniu 2010-11-23, o godz. 00:47: > > No test? > > > The tests were there already, raising ResourceWarnings. After this change, > they stopped doing that. You may say: now they pass for the first time

Re: [Python-Dev] r86699 - python/branches/py3k/Lib/zipfile.py

2010-11-23 Thread Benjamin Peterson
2010/11/23 Antoine Pitrou : > On Mon, 22 Nov 2010 22:00:08 -0600 > Benjamin Peterson wrote: >> 2010/11/22 Łukasz Langa : >> > Wiadomość napisana przez Benjamin Peterson w dniu 2010-11-23, o godz. >> > 00:47: >> > >> > No test? >> > >>

Re: [Python-Dev] constant/enum type in stdlib

2010-11-23 Thread Benjamin Peterson
27;t understand why people insist on calling that an "enum". enum is > a C legacy and it doesn't bring anything useful as I can tell. Instead, > just assign the values explicitly. The concept of a "enumeration" of values is still useful outside its stunted C incarnat

Re: [Python-Dev] constant/enum type in stdlib

2010-11-24 Thread Benjamin Peterson
gt; > What I expect is that Constant.a should return 1, and Constant.a=2 should > raise TypeError, but what I get is a normal class __dict__. The construction namespace can be customized, but class.__dict__ must always be a real dict. -- Regards, Benjamin ___ 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

[Python-Dev] [RELEASED] Python 2.7.1

2010-11-27 Thread Benjamin Peterson
n can be found at: http://docs.python.org/2.7/ This is a production release. Please report any bugs you find to the bug tracker: http://bugs.python.org/ Enjoy! -- Benjamin Peterson Release Manager benjamin at python.org (on behalf of the entire python-dev team and 2.7.1's co

[Python-Dev] [RELEASED] Python 3.1.3

2010-11-27 Thread Benjamin Peterson
n.org/download/releases/3.1.3/ A list of changes in 3.1.3 can be found here: http://svn.python.org/projects/python/tags/r313/Misc/NEWS The 3.1 documentation can be found at: http://docs.python.org/3.1 Bugs can always be reported to: http://bugs.python.org Enjoy! -- Benjamin Pet

Re: [Python-Dev] Python and the Unicode Character Database

2010-11-28 Thread Benjamin Peterson
r should be discarded. That's different. Python doesn't assign any semantic meaning to the characters in identifiers. The non-latin support for numerals, though, could change the meaning of a program dramatically and needs to be well-specified. Whether int() should do this is debatable. I, for one, think this kind of support belongs in the locale module. -- Regards, Benjamin ___ 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] ICU

2010-12-02 Thread Benjamin Peterson
At the same time, I'm skeptical -- IIRC, ICU is a large amount of C++ > code. I don't know how easy it will be to integrate this into our > build processes for various platforms, nor how "Pythonic" the > resulting APIs will look to the experienced Python user. There's

[Python-Dev] PEP 384 accepted

2010-12-02 Thread Benjamin Peterson
Hi, Since discussion has trailed off without any blocking objections, I'm accepting PEP 384. Martin, you may mark the PEP accepted and proceed with merging the implementation for the beta on Saturday. -- Regards, Benjamin ___ Python-Dev mailing

Re: [Python-Dev] python 2 for building python 3

2010-12-04 Thread Benjamin Peterson
l > creating Makefile > ./Parser/asdl_c.py -h ./Include ./Parser/Python.asdl > /usr/bin/env: python: No such file or directory > make: *** [Include/Python-ast.h] Error 127 > > I think this is the same problem that I saw on the FreeBSD VM. You have to touch Include/Python-ast.h and Python

Re: [Python-Dev] Status of PEP 3143?

2010-12-08 Thread Benjamin Peterson
2010/12/8 Kirk McDonald : > What is the status of PEP 3143? It appears to be aimed at 3.2, but there > does not appear to be a resolution on it. It's after beta freeze now, so definitely not 3.2. AFAIK, though, it's never been discussed here. -- R

Re: [Python-Dev] Status of PEP 3143?

2010-12-08 Thread Benjamin Peterson
2010/12/8 Ben Finney : > Benjamin Peterson writes: > >> 2010/12/8 Kirk McDonald : >> > What is the status of PEP 3143? It appears to be aimed at 3.2, but >> > there does not appear to be a resolution on it. > > I am the PEP 3143 author and champion. It hasn

Re: [Python-Dev] nonlocal x = value

2010-12-17 Thread Benjamin Peterson
s the grammar > more than it's worth. Also, the moratorium applies here, given that Py3.1 > does not implement this. > > Comments? There's a issue and a patch for this somewhere. I personally don't care; it's not too painful to write two lines. -- Regards, Benja

Re: [Python-Dev] nonlocal x = value

2010-12-17 Thread Benjamin Peterson
argument Stephan already made) > > Another +1 for the same reasons.  Also, since global does not allow > assignment, neither should nonlocal. Note that the PEP stated that global would also be extended. -- Regards, Benjamin ___ Python-Dev m

Re: [Python-Dev] [Python-checkins] r87458 - python/branches/py3k/Lib/gettext.py

2010-12-23 Thread Benjamin Peterson
                          expr.sub(repl, x.group(3))) >> +        return "(%s if %s else %s)" % (x.group(2), x.group(1), >> +                                       expr.sub(repl, x.group(3))) > > Please update the comment as well. Done. -- Regards, Benjamin

Re: [Python-Dev] Column offsets for attribute nodes

2010-12-26 Thread Benjamin Peterson
is that an attribute includes the expression from which the attribute is being taken. This is consistent with subscripts and calls, which both have the lineno and col_offset of their source expressions. -- Regards, Benjamin ___ Python-Dev mailing li

Re: [Python-Dev] Possible optimization for LOAD_FAST ?

2010-12-28 Thread Benjamin Peterson
RN_VALUE > > Can't we optimize the LOAD_FAST in lines 19 and 25 to a single load > and put the reference twice on the stack? Yes. Would it be useful? Unlikely. -- Regards, Benjamin ___ Python-Dev mailing list Python-Dev@python.org http:/

Re: [Python-Dev] Compile() and Windows/Mac newlines

2010-12-29 Thread Benjamin Peterson
lines." be deleted? What else could it mean other than use of > '\r' or '\r\n'? $ ./python Python 3.2b2 (py3k:87559, Dec 28 2010, 17:39:51) [GCC 4.4.4] on linux2 Type "help", "copyright", "credits" or "license" for more informati

Re: [Python-Dev] Backport troubles with mercurial

2010-12-30 Thread Benjamin Peterson
ers). > > IIUC this is not about merges, this is about transplants (or > cherry-picking). It would be unannoying to lose svnmerge's relative > convenience in that matter. I assume you meant "annoying"? -- Regards, Benjamin ___ Pyth

Re: [Python-Dev] Backport troubles with mercurial

2010-12-30 Thread Benjamin Peterson
right? >> >> Oh, I wrote the above assuming 3.2->3.3 merging.  For the other direction >> you need cherry-picking, yes. > > I have the impression that Benjamin plans to continue 3.1 bug maintenance > for months after 3.2 final rather than issue the last bug fix the

Re: [Python-Dev] I want my sugar...

2011-01-16 Thread Benjamin Peterson
pported, and I'm ignorant? > Is the usage considered 'unPythonic'? > Can you point me to any existing discussion of the issue (it must have come up > before?)? See python-ideas. -- Regards, Benjamin ___ Python-Dev mailing list Py

Re: [Python-Dev] Exception __name__ missing?

2011-01-17 Thread Benjamin Peterson
2011/1/17 Ron Adam : > > Is this on purpose? Of course: instances don't have names. -- Regards, Benjamin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.

Re: [Python-Dev] devguide: Cover how to (un-)apply a patch.

2011-01-19 Thread Benjamin Peterson
ly across a wider range of version control systems. > > The revert works with svn, hg and bzr. Using patch is not going to work on > Windoze unless cygwin has been installed. I thought you were supposed to use some variant of "update

Re: [Python-Dev] Location of tests for packages

2011-01-24 Thread Benjamin Peterson
themselves. I prefer lib2to3 tests to stay in lib2to3/. -- Regards, Benjamin ___ 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] Mercurial style patch submission (Was: MSI: Remove dependency from win32com.client module (issue4080047))

2011-01-31 Thread Benjamin Peterson
like in this approach in a constructive > manner? As I understand it, there used to be patc...@python.org. I'm not sure why this was discontinued, so perhaps someone more senior should chime in. :) -- Regards, Benjamin ___ Python-Dev mailing

Re: [Python-Dev] MSI: Remove dependency from win32com.client module (issue4080047)

2011-01-31 Thread Benjamin Peterson
#x27;s not a bug or a feature request, why does it need to change? -- Regards, Benjamin ___ 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] API bloat

2011-02-09 Thread Benjamin Peterson
; not only be a lot easier, it will also be less of a moving target. > > And will produce what kind of results?  How many extension libraries work > with this subset? Probably none because it hasn't been released. That's the goal. -- Regards, Benjamin _

Re: [Python-Dev] API bloat

2011-02-09 Thread Benjamin Peterson
bothers me. If they can be justified, what is the process lacking? -- Regards, Benjamin ___ 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] API bloat

2011-02-11 Thread Benjamin Peterson
g? Are some functions useless? > Reducing the number of API functions is not a goal in itself. I think he's referring to deprecations and removals in general. -- Regards, Benjamin ___ 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] r88395 - python/branches/py3k/Lib/asyncore.py

2011-02-11 Thread Benjamin Peterson
gt;> >> >> I propose that in Python 3.3 we rename asyncore to barrel_of_monkeys. > > Would that be a Mapping or a Sequence? Actually, probably Laughable. -- Regards, Benjamin ___ Python-Dev mailing list Python-Dev@python.org http:/

Re: [Python-Dev] svn outage on Friday

2011-02-15 Thread Benjamin Peterson
e outage shouldn't be longer than an hour. > > It's time to move to Mercurial! :-) And doubtless there will be times when Mercurial must be upgraded, too... -- Regards, Benjamin ___ Python-Dev mailing list Python-Dev@python.org http:

Re: [Python-Dev] [Python-checkins] r88503 - in python/branches/py3k: Lib/lib2to3/__main__.py Tools/scripts/2to3

2011-02-22 Thread Benjamin Peterson
py > > -sys.exit(main("lib2to3.fixes")) > +runpy.run_module('lib2to3', run_name='__main__', alter_sys=True) > ___ > Python-checkins mailing list > python-check...@python.org > http://mail.python.org/mailman/listinfo/python-che

Re: [Python-Dev] 3.2.0 == 20th anniversary release

2011-02-23 Thread Benjamin Peterson
! > > Maybe it was a subconscious thing :) Or you realized later how nice it would be, grabbed the time machine, and fixed 10 release blockers on the 19th. :) -- Regards, Benjamin ___ 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] r88503 - in python/branches/py3k: Lib/lib2to3/__main__.py Tools/scripts/2to3

2011-02-23 Thread Benjamin Peterson
2011/2/23 Brett Cannon : > I assume you are having me do this because you still plan to cut separate > releases. Is there a minimum Python version that needs to be supported? 2.5 but that's only for benchmarking purposes IIRC. -- Regard

Re: [Python-Dev] [Python-checkins] r88503 - in python/branches/py3k: Lib/lib2to3/__main__.py Tools/scripts/2to3

2011-02-23 Thread Benjamin Peterson
2011/2/23 Brett Cannon : > Does the benchmarking use the 2to3 script? I'm asking because package > execution is not supported that far back. Correct. But I suppose, it wouldn't really be harmful to add __main__. Just a no-op. -- R

Re: [Python-Dev] [Python-checkins] cpython (2.7): Update copyright years.

2011-02-25 Thread Benjamin Peterson
 /* > -   __version__ 82160. > +   __version__ . Ah, this reminds me. Figuring out what to do with the AST version should probably be a hg roadmap topic. -- Regards, Benjamin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.o

Re: [Python-Dev] Unbinding a name referenced by an enclosing scope - error in documentation?

2011-02-26 Thread Benjamin Peterson
referenced in the _enclosed_ > scope, not the _enclosing_ scope. Is there a typo in the documentation > or am I missing something? Actually you can do that now 3.2+. I've now removed that sentence;. -- Regards, Benjamin ___ Python-Dev

Re: [Python-Dev] Unbinding a name referenced by an enclosing scope - error in documentation?

2011-02-26 Thread Benjamin Peterson
gt; Is there a rational for this? It seems inconsistent -- if you can > assign to names in outer scopes, you should be able to del them > as well. Notice that it's now been changed... -- Regards, Benjamin ___ Python-Dev mailing list

Re: [Python-Dev] r88676 - peps/trunk/pep-0385.txt

2011-02-28 Thread Benjamin Peterson
gt;> merriam-webster.com ;-). > > There are some Google hits, though... Not sure if they are of people > making the same mistakes as I do ;) Endly, perhaps it will be adopted. Did you mean "superfluous" though? -- Regards, Benjamin ___

Re: [Python-Dev] r88676 - peps/trunk/pep-0385.txt

2011-02-28 Thread Benjamin Peterson
2011/2/28 Antoine Pitrou : > Le lundi 28 février 2011 à 13:56 -0600, Benjamin Peterson a écrit : >> 2011/2/28 Antoine Pitrou : >> > On Mon, 28 Feb 2011 13:36:11 -0500 >> > Terry Reedy wrote: >> >> >> >> > +  an existing branch.  The pus

Re: [Python-Dev] contributors survey?

2011-03-01 Thread Benjamin Peterson
simply got > overlooked, or if there's no need at all. How do you determine past developers? -- Regards, Benjamin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http:/

Re: [Python-Dev] contributors survey?

2011-03-01 Thread Benjamin Peterson
2011/3/1 Antoine Pitrou : > On Tue, 1 Mar 2011 16:23:42 -0600 > Benjamin Peterson wrote: >> 2011/3/1 Antoine Pitrou : >> > >> > Hello, >> > >> > In >> > http://mail.python.org/pipermail/python-committers/2011-February/001340.html, >>

Re: [Python-Dev] Improvements for Porting C Extension from 2 to 3

2011-03-03 Thread Benjamin Peterson
eed a consistent examples of > usage of Python C API, especially on Python 3.2. I'm not sure why what C-API is used in Python's extension modules needs to be anyway to you. -- Regards, Benjamin ___ Python-Dev mailing list Python-Dev@pyth

Re: [Python-Dev] Integrate the faulthandler module into Python 3.3?

2011-03-04 Thread Benjamin Peterson
ary, what should > other Python implementations do about implementing it? Ignore it as they're free to ignore any other implementation detail. -- Regards, Benjamin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman

[Python-Dev] small commit emails nit

2011-03-06 Thread Benjamin Peterson
I wonder if we couldn't kill the "cpython" repo name in the commit mails. I find it wastes space for the commit message in the subject line, and it's pretty obvious it's the cpython repo from the branch name. -- Regards, Benjamin _

Re: [Python-Dev] PyCObject_AsVoidPtr removed from python 3.2 - is this documented?

2011-03-06 Thread Benjamin Peterson
2011/3/6 Barry Scott : > I see that PyCObject_AsVoidPtr has been removed from python 3.2. > The 3.2 docs do not seem to explain this has happened and what > to replace it with. It's replaced with PyCapsule. -- Regards, Benjamin

Re: [Python-Dev] small commit emails nit

2011-03-08 Thread Benjamin Peterson
2011/3/8 Antoine Pitrou : > > Well, after a couple of days with the "cpython" prefix stripped, I have > to say that I find it much less practical than it was before. Any other > opinions? "cpy" maybe? -- Regards, Benjamin ___

Re: [Python-Dev] Suggest reverting today's checkin (recursive constant folding in the peephole optimizer)

2011-03-11 Thread Benjamin Peterson
oday's > committer did not accept my advice to be very conservative with changes to > it and to strongly prefer AST transformations instead.  Please consider > reverting this change. -- Regards, Benjamin ___ Python-Dev mailing list Pytho

Re: [Python-Dev] VM and Language summit info for those not at Pycon (and those that are!)

2011-03-12 Thread Benjamin Peterson
at-coherent.html >> >> Wrt. the remark that other implementations should be referenced more >> prominently: I added them to >> >> http://www.python.org/download/ > > Cool. Would you mind mentioning JIT for PyPy in description? Done. -- Regards, Benjam

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

2011-03-13 Thread Benjamin Peterson
> If someone wants to split their work into several changesets, a patch > series using mq could also be the recommended way (that's how > mercurial-devel works). -- Regards, Benjamin ___ 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] cpython: bump ast version

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

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

2011-03-13 Thread Benjamin Peterson
ppears in all > * Otherwise, include it if it doesn't begin with an underscore > > There doesn't seem to be an obvious way to get around these rules for > named tuples... am I overlooking something? No, probably we should add some sort of __yes

Re: [Python-Dev] cpython (3.1): #11515: fix several typos. Patch by Piotr Kasprzyk.

2011-03-15 Thread Benjamin Peterson
ld be submitted upstream. It really doesn't matter if there's typos in 3rd party libraries which we distribute. > > Is that status and the restriction on changes indicated in the file? No, because that would make updating it annoying, too. :) -- Regards, Benjamin _

Re: [Python-Dev] devguide: managing "+1 heads"

2011-03-15 Thread Benjamin Peterson
t; after stepping over a lot of toes. > > For instance, merging between branches (in which direction) is > established here, but not in the devguide. What are you talking about? http://docs.python.org/devguide/committing.html#forward-porting -- Regards, Benjamin ___ 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] public visibility of python-dev decisions "before it's too late"

2011-03-16 Thread Benjamin Peterson
ere >> is not much chance that you can write "close #12345" without >> actually meaning to close the issue :) > > Sorry to bother you. What would be the exact wording?. What "variants" > means?. Matching this re. :) (?:\b(?Pclose[sd]?|closing|)\s+)? -- Rega

Re: [Python-Dev] Please retract my committer rights

2011-03-17 Thread Benjamin Peterson
able to contribute anymore (I have not even started to > learn mercurial yet).  Plus I'm still using 2.6 or even 2.5 with my own > Python projects. Thank you very much for you work. We'd always be happy to have you back. -- Regards, Benjamin

Re: [Python-Dev] Hg: inter-branch workflow

2011-03-21 Thread Benjamin Peterson
t; in personal projects for a couple months and it is > remarkably easy, taking only minutes to learn. > It also works with Hg right out of the box; no need > for extensions, customizations, or a slew of advanced Hg > features. Python, though, is not your run-of-the-mill pet pro

Re: [Python-Dev] Proposal for Python 3.3: dependence injection

2011-03-24 Thread Benjamin Peterson
It's also a slippery slope. Maybe we should add parameters for open() and io functions? What about sys and os? Those often need to be mocked. -- Regards, Benjamin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/

Re: [Python-Dev] [Python-checkins] cpython: Isolate the test_source() test in test_collections

2011-03-24 Thread Benjamin Peterson
#x27;red green blue') > +        globals().pop('NTColor', None)          # remove artifacts from > other tests > +        self.assertNotIn('NTColor', globals()) Shouldn't these other tests cleanup after themselves? -- Regards, Benjamin _

Re: [Python-Dev] 2to3 status, repositories and HACKING guide

2011-03-25 Thread Benjamin Peterson
The main cpython repo. 2011/3/25 anatoly techtonik : > Hi, Benjamin, > > Is your repository for 2to3 is still actual? > http://svn.python.org/view/sandbox/trunk/2to3/ > > Which should I use to start hacking on 2to3? > > -- > anatoly t. > > > > On Wed, Mar

Re: [Python-Dev] Python Core Mentorship program

2011-03-25 Thread Benjamin Peterson
ead can die about now. Honestly, if we spent half the energy we spend worrying about mailing list details on actual work -- Regards, Benjamin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubsc

Re: [Python-Dev] faulthandler is now part of Python 3.3

2011-03-31 Thread Benjamin Peterson
it because these buildbots are dead (oops, sorry!). >> >> Most buildbots are red because a regression in test_logging (since 2 >> days): I disabled temporary the test (issue #11557), I hope that the >> situation will be better in a few hours. >> >> Thank you Antoine

[Python-Dev] warn_unused_result warnings

2011-03-31 Thread Benjamin Peterson
I'm rather sick of seeing this warnings on all compiles, so I propose we enable the -Wno-unused-results option. I judge that most of the cases where this occurs are error reporting functions, where not much with return code can be done. -- Regards, Ben

Re: [Python-Dev] Please revert autofolding of tracker edit form

2011-03-31 Thread Benjamin Peterson
r amateur web page designers, it would be > better to follow proven models.  All of the following have the comment box > at the top and the messages in reverse chronological order: Please no reverse chronological order! Every bug tracker I know which isn't underconfigured roundu

Re: [Python-Dev] warn_unused_result warnings

2011-03-31 Thread Benjamin Peterson
2011/3/31 Victor Stinner : > Le 01/04/2011 01:11, Benjamin Peterson a écrit : >> >> I'm rather sick of seeing this warnings on all compiles, so I propose >> we enable the -Wno-unused-results option. I judge that most of the >> cases where this occurs are error rep

Re: [Python-Dev] Impaired Usability of the Mercurial Source Viewer

2011-03-31 Thread Benjamin Peterson
.org/mirror/cpython/src/3558eecd84f0/Modules/faulthandler.c > > > That's *way* better: >   https://bitbucket.org/mirror/cpython/src/3558eecd84f0/Lib/linecache.py > Why can't we have that for our primary source viewer. Because it's closed source. -- Regards,

Re: [Python-Dev] not possible to install python 3.2

2011-04-02 Thread Benjamin Peterson
*** [test] Error 1" > > The Result?  When I type python on Linux, i get the older version 2.7.1 > instead of the version that i just installed (python 3.2). Actually, it's because Python 3 is installed as python3. -- Regards, Benjamin

Re: [Python-Dev] Policy for making changes to the AST

2011-04-02 Thread Benjamin Peterson
leanups I'd like to happen, too, such as unifying TryExcept and TryFinally into a single node. -- Regards, Benjamin ___ 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] Code highlighting in tracker

2011-04-06 Thread Benjamin Peterson
2011/4/6 anatoly techtonik : > Is it a good idea to have code highlighting in tracker? Why would we need it? -- Regards, Benjamin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: h

Re: [Python-Dev] Code highlighting in tracker

2011-04-07 Thread Benjamin Peterson
2011/4/7 anatoly techtonik : > On Thu, Apr 7, 2011 at 7:01 AM, Benjamin Peterson wrote: >> 2011/4/6 anatoly techtonik : >>> Is it a good idea to have code highlighting in tracker? >> >> Why would we need it? > > Because tracker is ugly. So we should add

Re: [Python-Dev] Policy for making changes to the AST

2011-04-07 Thread Benjamin Peterson
as the author of PyPy's AST implementation, there are even some changes I'd like to make it easier! -- Regards, Benjamin ___ 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] peps: Update PEP 399 to include comments from python-dev.

2011-04-12 Thread Benjamin Peterson
lyze development until the stdlib gets 100% coverage in the tests > suite. Presumably this only applies to new code, though, which I would hope would have comprehensive test coverage regardless of this PEP. -- Regards, Benjamin ___ Python-Dev mailing

Re: [Python-Dev] python and super

2011-04-14 Thread Benjamin Peterson
structure, pushing super calls and > popping until the stack was empty, couldn't this restriction be > removed? No. See line 2 of the Zen of Python. -- Regards, Benjamin ___ Python-Dev mailing list Python-Dev@python.org http://

Re: [Python-Dev] [Python-checkins] cpython: Issue #11223: Add threading._info() function providing informations about the

2011-04-20 Thread Benjamin Peterson
ldly radical?  Maybe the guarantees made about > whether an API will be available in future versions of Python (ostensibly > what "public" vs "private" is for) should not be tightly coupled to the > decision about whether to bother to explain what an API does? With w

Re: [Python-Dev] [Python-checkins] cpython: Issue #11223: Add threading._info() function providing informations about the

2011-04-20 Thread Benjamin Peterson
2011/4/20 R. David Murray : > On Wed, 20 Apr 2011 08:11:48 -0500, Benjamin Peterson > wrote: >> 2011/4/20  : >> > On 08:20 am, victor.stin...@haypocalc.com wrote: >> >> >> >> Hi, >> >> >> >> Le mardi 19 avril 2011 à

Re: [Python-Dev] [Python-checkins] cpython: Issue #11223: Add threading._info() function providing informations about the

2011-04-20 Thread Benjamin Peterson
atory key: 'name', name of > the thread implementation (nt, os2, pthread or solaris for CPython 3.3). How about using a structseq ala sys.float_info or sys.long_info? (In fact, we might want to put this in sys.) -- Regards, Benjamin ___ 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] cpython: Issue #11223: Add threading._info() function providing informations about the

2011-04-20 Thread Benjamin Peterson
2011/4/20 Victor Stinner : > Le mercredi 20 avril 2011 à 11:57 -0500, Benjamin Peterson a écrit : >> How about using a structseq ala sys.float_info or sys.long_info? (In >> fact, we might want to put this in sys.) > > Would you prefer something like the following example? &

Re: [Python-Dev] Why are there no 'set' and 'frozenset' types in the 'types' module?

2011-04-25 Thread Benjamin Peterson
ocumentation at least. http://docs.python.org/dev/library/stdtypes -- Regards, Benjamin ___ 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] the role of assert in the standard library ?

2011-04-28 Thread Benjamin Peterson
o_asserts :) -- Regards, Benjamin ___ 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] 2to3 status, repositories and HACKING guide

2011-05-01 Thread Benjamin Peterson
particular, I find the syntax of > tree matchers the most unclear part. I think you can learn a lot by reading through the current fixers in lib2to3/fixers/. -- Regards, Benjamin ___ Python-Dev mailing list Python-Dev@python.org http://mail.pytho

Re: [Python-Dev] Issue Tracker

2011-05-02 Thread Benjamin Peterson
means switching to Django templates will make Roundup design > plumbing work 47.256% more attractive for potential contributors. Perhaps some of those eager contributors would like to volunteer for the task. -- Regards, Benjamin ___ Python-Dev maili

Re: [Python-Dev] Issue Tracker

2011-05-02 Thread Benjamin Peterson
gt; >>> I'm just guessing here, but I'd say 47.256 %. >> >> That means switching to Django templates will make Roundup design >> plumbing work 47.256% more attractive for potential contributors. > > That's not true actually. > > It&#

Re: [Python-Dev] [Python-checkins] cpython (3.2): Avoid codec spelling issues by just using the utf-8 default.

2011-05-05 Thread Benjamin Peterson
.py > @@ -114,7 +114,7 @@ >         if version == 2: >             if isinstance(a, (str, bytes, bytearray)): >                 if isinstance(a, str): > -                    a = a.encode("utf8") > +                    a = a.encode() -- Regards, Benjamin ___

Re: [Python-Dev] cpython (merge 3.2 -> default): Avoid codec spelling issues by just using the utf-8 default.

2011-05-05 Thread Benjamin Peterson
, some are short-circuited in C code while > others require codec lookup implemented in python. Isn't it cached after the first run? If this is the reasoning, I find it hard to believe that seed() is a large bottleneck in random. -- Regards, Benjamin __

Re: [Python-Dev] Commit changelog: issue number and merges

2011-05-09 Thread Benjamin Peterson
by merging. It seems like something that should be solved by tools like a display visual graph indicating what is merged. (like Bazaar) -- Regards, Benjamin ___ 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] Commit changelog: issue number and merges

2011-05-09 Thread Benjamin Peterson
2011/5/9 R. David Murray : > On Mon, 09 May 2011 09:08:53 -0500, Benjamin Peterson > wrote: >> I thought the whole point of merging was that you brought a changeset >> from one branch to another. This why I just write "merge" because >> otherwise you're t

<    5   6   7   8   9   10   11   12   13   14   >