Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Async API: some code to review
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Yury Selivanov  
View profile  
 More options Oct 29 2012, 1:20 pm
From: Yury Selivanov <yselivanov...@gmail.com>
Date: Mon, 29 Oct 2012 13:08:14 -0400
Local: Mon, Oct 29 2012 1:08 pm
Subject: Re: [Python-ideas] Async API: some code to review
On 2012-10-29, at 1:03 PM, Guido van Rossum <gu...@python.org> wrote:

> Agreed it would be useful as documentation, and maybe an API can use
> this to enforce proper coding style. It would have to be purely
> decoration though -- I don't want an extra layer of wrapping to occur
> each time you call a coroutine. (I.e. the decorator should just return
> "func".)

I'd also set something like 'func.__coroutine__' to True.  That will allow
to analyze, introspect, validate and do other useful things.

-
Yury
_______________________________________________
Python-ideas mailing list
Python-id...@python.org
http://mail.python.org/mailman/listinfo/python-ideas


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.