Re: [Python-Dev] Preparation for VS2010 - MSDN for Windows build slaves, core devs

2012-05-12 Thread Brian Curtin
On Mon, Apr 2, 2012 at 9:12 PM, Brian Curtin wrote: > Hi all, > > If you are a running a build slave or otherwise have an MSDN account > for development work, please check that your MSDN subscription is > still in effect. If the subscription expired, please let me know in > private what your subsc

Re: [Python-Dev] sys.implementation

2012-05-12 Thread Glenn Linderman
On 5/12/2012 10:50 AM, Eric Snow wrote: given a normal (dict-based) object you can use vars() to turn it into a dict: >>> data = SomeClass(a=1, b=2, c=3) >>> ns = vars(data) >>> ns['a'] 1 >>> ns['b'] 2 >>> ns['c'] 3 I'll grant that it doesn't work for some objects (like named tuples)

Re: [Python-Dev] sys.implementation

2012-05-12 Thread Steven D'Aprano
Tres Seaver wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 05/12/2012 08:04 AM, Nick Coghlan wrote: On Sat, May 12, 2012 at 12:40 PM, Eric Snow wrote: If anyone has strong feelings for item-access over attribute-access, please elaborate. I'm just not seeing it as that important and

Re: [Python-Dev] sys.implementation

2012-05-12 Thread Eric Snow
On Sat, May 12, 2012 at 10:51 AM, Tres Seaver wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 05/12/2012 08:04 AM, Nick Coghlan wrote: >> On Sat, May 12, 2012 at 12:40 PM, Eric Snow >> wrote: >>> If anyone has strong feelings for item-access over >>> attribute-access, please elabo

Re: [Python-Dev] sys.implementation

2012-05-12 Thread Eric Snow
On Sat, May 12, 2012 at 8:35 AM, Barry Warsaw wrote: > I'm okay with dropping immutability for sys.implementation, but I still think > attribute access is a more useful model.  You can easily support both getattr > and getitem with a class instance, so I think that's the way to go. > > (FWIW, immu

Re: [Python-Dev] sys.implementation

2012-05-12 Thread Eric Snow
On Sat, May 12, 2012 at 6:04 AM, Nick Coghlan wrote: > On Sat, May 12, 2012 at 12:40 PM, Eric Snow > wrote: >> If anyone has strong feelings for item-access over attribute-access, >> please elaborate.  I'm just not seeing it as that important and would >> rather finish up the PEP as simply as po

Re: [Python-Dev] sys.implementation

2012-05-12 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 05/12/2012 08:04 AM, Nick Coghlan wrote: > On Sat, May 12, 2012 at 12:40 PM, Eric Snow > wrote: >> If anyone has strong feelings for item-access over >> attribute-access, please elaborate. I'm just not seeing it as that >> important and would rath

Re: [Python-Dev] sys.implementation

2012-05-12 Thread Barry Warsaw
On May 12, 2012, at 10:04 PM, Nick Coghlan wrote: >On Sat, May 12, 2012 at 12:40 PM, Eric Snow >wrote: > If anyone has strong feelings for item-access over attribute-access, >> please elaborate.  I'm just not seeing it as that important and would > >rather finish up the PEP as simply as possible.

Re: [Python-Dev] sys.implementation

2012-05-12 Thread Nick Coghlan
On Sat, May 12, 2012 at 12:40 PM, Eric Snow wrote: > If anyone has strong feelings for item-access over attribute-access, > please elaborate.  I'm just not seeing it as that important and would > rather finish up the PEP as simply as possible. I object to adding a new type to the stdlib just for