Re: [Python-3000] set literals

2006-07-10 Thread Diogo Kollross
> I'm curious as to whether people will find one-type-with-two-purposes > easier to learn that what we have now. I see no problem with that. We already have lists-that-can-work-as-stacks-or-queues. ___ Python-3000 mailing list Python-3000@python.org http

Re: [Python-3000] set literals

2006-07-10 Thread Diogo Kollross
While we're at it... what happens to frozenset? ___ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Re: [Python-3000] No Container Literals

2006-07-08 Thread Diogo Kollross
> ...things like list(1, 2, 3) and we can already do dict(ten=10, > eleven=11), so what is the real need for literals as they are?... I like list(1, 2, 3). ___ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python

Re: [Python-3000] set literals

2006-07-08 Thread Diogo Kollross
> str and unicode are *distinct* types. they may be related, but not in > the sense that type("hello") and type(r"hello") both return str. They're distinct types, but not that distinct: Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "credi

Re: [Python-3000] set literals

2006-07-07 Thread Diogo Kollross
> i had this idea -- since quoted literals can be prefixed by a letter > that alters their meaning, why not use the same semantics > with curly braces? String literals are always strings, no matter what kind of string as defined by the prefix. On the other hand, dictionaries and sets seems differe

Re: [Python-3000] xrange vs. int.__getslice__

2006-07-04 Thread Diogo Kollross
> It is how much possible to understand slice in Python language is a > reception of a range of values with the certain step. By default this > step is equal to 1 for objects of any type. It is possible to assume, > that the similar behaviour can be at types float, decimal, long and > other. As the