This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def doPoll(self, timeout): | |
| """ | |
| Poll the poller for new events. | |
| """ | |
| if timeout is None: | |
| timeout = -1 # Wait indefinitely. | |
| try: | |
| # Limit the number of events to the number of io objects we're | |
| # currently tracking (because that's maybe a good heuristic) and |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class MyCustomView(APIView): | |
| """ | |
| This is a custom view that can be anything at all. | |
| It's not using a serializer class, but I can define my own parameters. | |
| Cet exemple démontre l'utilisation de caractères unicode | |
| """ | |
| def get(self, *args, **kwargs): | |
| """ |
NewerOlder