List Info

Thread: Re: What to do for bytes in 2.6?




Re: What to do for bytes in 2.6?
country flaguser name
Germany
2008-01-18 10:00:17
Guido van Rossum wrote:
> I don't think any of that is necessary. I would rather
have the
> following two in the language by default (see my
response to Terry and
> Raymond):
> 
> bytes is an alias for str (not even a subclass)
> b"" is an alias for ""

Ah, you like to keep it simple. The aliases are easily to
implement.
Give me twenty minutes to implement it and write some unit
tests.

> There is only one thing I'd like -3 to warn about
regarding except
> clauses: if the 'err' variable is used past the end of
the except
> clause. That is a true semantic change that 2to3 cannot
easily fix or
> flag. Consider this an example of how 2to3 and -3
should augment each
> other.

Several warnings have to be removed: ``, callable and maybe
more.

Christian
_______________________________________________
Python-Dev mailing list
Python-Devpython.org
ht
tp://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/p
ython-dev/nessto%40sharedlog.com

Re: What to do for bytes in 2.6?
country flaguser name
Germany
2008-01-18 10:24:00
Christian Heimes wrote:
> Ah, you like to keep it simple. The aliases are easily
to implement.
> Give me twenty minutes to implement it and write some
unit tests.

http://bugs.python.o
rg/issue1865

_______________________________________________
Python-Dev mailing list
Python-Devpython.org
ht
tp://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/p
ython-dev/nessto%40sharedlog.com

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )