Re: [Python-Dev] rationale for the no-new-features approach

2005-03-16 Thread Gregory P. Smith
> [Gregory P. Smith] > > or make it even uglier to hide from pychecker by writing that as: > > > > exec(""" > > try: > > set > > except NameError: > > from sets import Set as set > > """) > > I presume that was somewhat tongue-in-cheek, but if it wasn't, please > reconsider. Modulefinder

RE: [Python-Dev] rationale for the no-new-features approach

2005-03-16 Thread Tony Meyer
[Bob Ippolito] try: set except NameError: from sets import Set as set You don't need the rest. [Skip Montanaro] >>> Sure, but then pychecker bitches about a statement that appears to >>> have no effect. ;-) [Bob Ippolito] >> Well then fix PyChecker to look

Re: [Python-Dev] rationale for the no-new-features approach

2005-03-16 Thread Gregory P. Smith
On Fri, Mar 11, 2005 at 06:47:11PM -0500, Bob Ippolito wrote: > > On Mar 11, 2005, at 2:26 PM, Skip Montanaro wrote: > > > > >Bob> try: > >Bob> set > >Bob> except NameError: > >Bob> from sets import Set as set > > > >Bob> You don't need the rest. > > > >Sure, but the

Re: [Python-Dev] rationale for the no-new-features approach

2005-03-11 Thread Bob Ippolito
On Mar 11, 2005, at 2:26 PM, Skip Montanaro wrote: Bob> try: Bob> set Bob> except NameError: Bob> from sets import Set as set Bob> You don't need the rest. Sure, but then pychecker bitches about a statement that appears to have no effect. ;-) Well then fix PyChecker t

Re: [Python-Dev] rationale for the no-new-features approach

2005-03-11 Thread Skip Montanaro
Bob> try: Bob> set Bob> except NameError: Bob> from sets import Set as set Bob> You don't need the rest. Sure, but then pychecker bitches about a statement that appears to have no effect. ;-) Skip ___ Python-Dev mailing

Re: [Python-Dev] rationale for the no-new-features approach

2005-03-11 Thread Barry Warsaw
On Thu, 2005-03-10 at 23:46, Glyph Lefkowitz wrote: > That way instead of multi-line "except NameError" tests all over the > place you can simply have one-liner boilerplate for every module in your > project: > > 'from py24compat import *' > > Easy to grep/sed for when you're ready to st

Re: [Python-Dev] rationale for the no-new-features approach

2005-03-10 Thread Bob Ippolito
On Mar 10, 2005, at 11:46 PM, Glyph Lefkowitz wrote: Bob Ippolito wrote: try: set except NameError: from sets import Set as set Syntactical variations notwithstanding, I think it's a common desire to want to run on at least the last few versions of Python, but take advantage of improvemen

Re: [Python-Dev] rationale for the no-new-features approach

2005-03-10 Thread Glyph Lefkowitz
Bob Ippolito wrote: try: set except NameError: from sets import Set as set Syntactical variations notwithstanding, I think it's a common desire to want to run on at least the last few versions of Python, but take advantage of improvements and not emit deprecation warnings on the latest a

Re: [Python-Dev] rationale for the no-new-features approach

2005-03-10 Thread Bob Ippolito
On Mar 9, 2005, at 8:03 AM, Skip Montanaro wrote: Anthony> Goal 4: Try and prevent something like Anthony> try: Anthony> True, False Anthony> except NameError: Anthony> True, False = 1, 0 Anthony> from e

Re: [Python-Dev] rationale for the no-new-features approach

2005-03-10 Thread Skip Montanaro
Anthony> Goal 4: Try and prevent something like Anthony> try: Anthony> True, False Anthony> except NameError: Anthony> True, False = 1, 0 Anthony> from ever ever happening again. I will point out that

Re: [Python-Dev] rationale for the no-new-features approach

2005-03-09 Thread Glyph Lefkowitz
Guido van Rossum wrote: On Wed, 09 Mar 2005 10:38:12 -0500, Jim Fulton <[EMAIL PROTECTED]> wrote: +1 (wish * could say +sys.maxint). Anthony gets my +1 too, which then adds up to sys.maxint. :-) +1! I hope this mailing list runs on python2.2+, or the discussion has to stop now due to OverflowErro

Re: [Python-Dev] rationale for the no-new-features approach

2005-03-09 Thread Michael Hudson
Anthony Baxter <[EMAIL PROTECTED]> writes: > My google-fu returned, and I found the piece I was looking for earlier. > This discusses (from an internal Sun perspective) some of the problems > with Java. They make quite a big deal about the problem of changing > code across minor releases. I recall

Re: [Python-Dev] rationale for the no-new-features approach

2005-03-09 Thread Anthony Baxter
My google-fu returned, and I found the piece I was looking for earlier. This discusses (from an internal Sun perspective) some of the problems with Java. They make quite a big deal about the problem of changing code across minor releases. I recall (re)reading this at some point and it helped me cla

Re: [Python-Dev] rationale for the no-new-features approach

2005-03-09 Thread Guido van Rossum
On Wed, 09 Mar 2005 10:38:12 -0500, Jim Fulton <[EMAIL PROTECTED]> wrote: > +1 (wish * could say +sys.maxint). Anthony gets my +1 too, which then adds up to sys.maxint. :-) > To emphasize: > > - We want people to update to bug fix releases quickly. For people >to do that, they need to know t

Re: [Python-Dev] rationale for the no-new-features approach

2005-03-09 Thread Jim Fulton
+1 (wish * could say +sys.maxint). To emphasize: - We want people to update to bug fix releases quickly. For people to do that, they need to know the risk of breakage is low. Reducing the scope of the release is important for that. - Python has gotten much better at this than it used to be. I

Re: [Python-Dev] rationale for the no-new-features approach

2005-03-09 Thread Barry Warsaw
On Wed, 2005-03-09 at 07:17, Anthony Baxter wrote: > So it's only fair that I write down my rationale for why I'm being anal > about the no-new-features approach. Comments are more than welcome - > ideally, after discussion, I'll put some more words in the bugfix PEP. I applaud your strictness Ant

[Python-Dev] rationale for the no-new-features approach

2005-03-09 Thread Anthony Baxter
So it's only fair that I write down my rationale for why I'm being anal about the no-new-features approach. Comments are more than welcome - ideally, after discussion, I'll put some more words in the bugfix PEP. Goal 1: When we cut a bugfix release, people will upgrade to it. - This helps the us