Re: [Python-Dev] Breaking undocumented API

2010-11-11 Thread Karen Tracey
On Thu, Nov 11, 2010 at 6:51 AM, Michael Foord wrote: > On 10/11/2010 15:48, R. David Murray wrote: > >> I think Tres was referring to certain packages (which shall remain >> nameless since I don't feel like googling to find one) whose >> documentation recommends the 'from import *' methodology.

Re: [Python-Dev] Proposed downstream change to site.py in Fedora (sys.defaultencoding)

2010-01-22 Thread Karen Tracey
On Fri, Jan 22, 2010 at 9:22 AM, Michael Foord wrote: > On 22/01/2010 14:18, Karen Tracey wrote: > > > The doc here: > http://docs.python.org/3.1/library/functions.html?highlight=open#open just > calls it default encoding and clarifies that is "whatever > locale.getp

Re: [Python-Dev] Proposed downstream change to site.py in Fedora (sys.defaultencoding)

2010-01-22 Thread Karen Tracey
On Fri, Jan 22, 2010 at 7:38 AM, Michael Foord wrote: > On 21/01/2010 21:21, "Martin v. Löwis" wrote: > >> Where the default *file system encoding* is used (i.e. text files are >>> written or read without specifying an encoding) >>> >>> >> I think you misunderstand the notion of the *file system e

Re: [Python-Dev] [RELEASED] Python 2.7 alpha 2

2010-01-09 Thread Karen Tracey
On Sat, Jan 9, 2010 at 12:29 PM, Benjamin Peterson wrote: > On behalf of the Python development team, I'm gleeful to announce the > second > alpha release of Python 2.7. > > Well yay. Django's test suite (1242 tests) runs with just one failure on the 2.7 alpha 2 level, and that looks to be likely

[Python-Dev] Issue 3745 backwards incompatibility

2009-12-14 Thread Karen Tracey
In testing some existing code with the 2.7 alpha release, I've run into: TypeError: Unicode-objects must be encoded before hashing when the existing code tries to pass unicode objects to hashlib.sha1 and hashlib.md5. This is, I believe, due to changes made for issue 3745: http://bugs.python

Re: [Python-Dev] nonlocal keyword in 2.x?

2009-10-23 Thread Karen Tracey
On Thu, Oct 22, 2009 at 5:51 PM, "Martin v. Löwis" wrote: > > From the Django roadmap for supporting 3.0, using 2.6 as a stepping > > stone (and if 2.7 was a *better* stepping stone then it would make it > > easier): > > > >http://groups.google.com/group/django-developers/msg/0888b1c8f2518059

Re: [Python-Dev] Announcing PEP 3136

2009-10-03 Thread Karen Tracey
On Wed, Sep 30, 2009 at 5:15 PM, Yuvgoog Greenle wrote: > I like how python has a minimalistic and powerful syntax (-1 for the break > ___ PEP). > Also, I really dislike the for/else ambiguity "butterflies". > When is the else after a loop executed? 1. When the loop isn't entered at > all. > 2. Wh

Re: [Python-Dev] Announcing PEP 3136

2009-10-02 Thread Karen Tracey
At 05:15 PM 9/30/2009, Yuvgoog Greenle wrote: I like how python has a minimalistic and powerful syntax (-1 for the break ___ PEP). Also, I really dislike the for/else ambiguity "butterflies". When is the else after a loop executed? 1. When the loop isn't entered at all. 2. When the loop termin

Re: [Python-Dev] should list's call to __len__ swallow SystemExit?

2009-01-14 Thread Karen Tracey
On Wed, Jan 14, 2009 at 6:12 AM, Nick Coghlan wrote: > Dino Viehland wrote: > > We had a bug reported that effectively boils down to we're not > > swallowing exceptions when list calls __len__ > > ( > http://www.codeplex.com/WorkItem/View.aspx?ProjectName=IronPython&WorkItemId=20598 > ). > > > >

Re: [Python-Dev] Fwd: Change in repr of Decimal in 2.6

2008-07-19 Thread Karen Tracey
On Sat, Jul 19, 2008 at 10:52 PM, Terry Reedy <[EMAIL PROTECTED]> wrote: > >>> f.clean('1') == Decimal('1') > True > Ah, yes, why didn't I think of that? > > Since 'True' is a keyword, and Guido is *very* reluctant to even add > keywords, let alone change their spelling, I think you can depend

Re: [Python-Dev] Change in repr of Decimal in 2.6

2008-07-18 Thread Karen Tracey
On Fri, Jul 18, 2008 at 11:55 PM, Guido van Rossum <[EMAIL PROTECTED]> wrote: > This is an example of the problem with doctest -- it's easy to > overspecify the tests. I don't think that whether the repr() of a > Decimal uses single or double quotes should be considered a spec cast > in stone by d

[Python-Dev] Fwd: Change in repr of Decimal in 2.6

2008-07-18 Thread Karen Tracey
Meant to copy list on reply, sorry. -- Forwarded message -- From: Karen Tracey <[EMAIL PROTECTED]> Date: Fri, Jul 18, 2008 at 11:48 PM Subject: Re: [Python-Dev] Change in repr of Decimal in 2.6 To: Raymond Hettinger <[EMAIL PROTECTED]> On Fri, Jul 18, 2008 at 11:19

[Python-Dev] Change in repr of Decimal in 2.6

2008-07-18 Thread Karen Tracey
[Originally posted to python-list but on further reflection and some feedback I think it might be more appropriate here.] I noticed when trying out Python's 2.6b2 release that the repr of Decimal has changed since 2.5. On 2.5: Python 2.5.1 (r251:54863, Mar 7 2008, 04:10:12) [GCC 4.1.3 20070929