Daniel Wong wrote:
Ironic that you should mention it. He already mentioned it.
The time machine thing is pretty much a standard
joke in the Python community, which goes to show
how common it is for people to be pleasantly
surprised by what Python already does.
I think everyone's being a bit ha
Daniel Wong wrote:
Are there plans for introducing syntax like this:
(a, (b[2], c)) = ('big' ('red', 'dog'))
I think you'll find Guido has made another trip
in the time machine for this one:
Python 2.3 (#1, Aug 5 2003, 15:52:30)
[GCC 3.1 20020420 (prerelease)] on darwin
Type "help", "copyri
[EMAIL PROTECTED] writes:
> Well, I'm sorry for bothering his majesty with such a stupid idea. At
> least one other person didn't know about it either...
>
> On 5/28/08, Mike Klaas <[EMAIL PROTECTED]> wrote:
> > I find it hard to believe that you have even attempted this, which has
> > bee
On Thu, May 29, 2008 at 10:51 AM, <[EMAIL PROTECTED]> wrote:
> This is in response to Stefan Behnel, who wrote
>
>
>
> Tutorial section on "tuples and sequences", not quite the most hidden place in
> the universe.
>
> http://docs.python.org/tut/node7.html#SECTION00730
>
> Stef
This is in response to Stefan Behnel, who wrote
Tutorial section on "tuples and sequences", not quite the most hidden place in
the universe.
http://docs.python.org/tut/node7.html#SECTION00730
Stefan
I just read that section twice and no where does it mention that
Pyt
[EMAIL PROTECTED] wrote:
> I just looked through the official tutorial and Dive into Python, and
> didn't find anything about it in either of those places.
Tutorial section on "tuples and sequences", not quite the most hidden place in
the universe.
http://docs.python.org/tut/node7.html#SECTION007
this work, (a, (b[2], c)) = ('big', ('red', 'dog'))
but this not (a, (b[2], c)) += ('big' ('red', 'dog'))
paul bedaride
On Thu, May 29, 2008 at 6:52 AM, <[EMAIL PROTECTED]> wrote:
> Indeed. Thank you, Guido.
>
> On 5/28/08, Guido van Rossum <[EMAIL PROTECTED]> wrote:
> > Apart from the missing c
Indeed. Thank you, Guido.
On 5/28/08, Guido van Rossum <[EMAIL PROTECTED]> wrote:
> Apart from the missing comma after 'big' this is already supported.
>
> The time machine strikes again!
>
> --Guido
>
> On Wed, May 28, 2008 at 6:23 PM, Daniel Wong <[EMAIL PROTECTED]> wrote:
>> Hi,
>>
>> Are there
I just looked through the official tutorial and Dive into Python, and
didn't find anything about it in either of those places. While this
feature is documented in the language reference, it does not seem to
be a well-known feature (another example: at least one other person
did not know about it).
Apart from the missing comma after 'big' this is already supported.
The time machine strikes again!
--Guido
On Wed, May 28, 2008 at 6:23 PM, Daniel Wong <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Are there plans for introducing syntax like this:
>
> (a, (b[2], c)) = ('big' ('red', 'dog'))
>
> It seems
Well, I'm sorry for bothering his majesty with such a stupid idea. At
least one other person didn't know about it either...
On 5/28/08, Mike Klaas <[EMAIL PROTECTED]> wrote:
>
> On 28-May-08, at 6:23 PM, Daniel Wong wrote:
>
>> Currently, I must do the following instead:
>>
>> for n, pair in enume
On 28-May-08, at 6:23 PM, Daniel Wong wrote:
Currently, I must do the following instead:
for n, pair in enumerate(list_of_pairs):
a, b = pair
...
<>
Thoughts?
I find it hard to believe that you have even attempted this, which has
been valid in python for ages:
>>> for x, (a, b) in enu
Hi Daniel,
At the moment, we are preparing to ship betas, so this kind of
proposal is a little late for 2.6/3.0. Also, I would recommend to try
this on the python-ideas mailing list first.
--
Cheers,
Benjamin Peterson
"There's no place like 127.0.0.1."
_
Hi,
Are there plans for introducing syntax like this:
(a, (b[2], c)) = ('big' ('red', 'dog'))
It seems quite doable, because Professor Hillfinger at UC Berkeley
created pyth, a dialect of Python, which has this feature. See page 10
of the spec he created for his students to implement the languag
14 matches
Mail list logo