[issue19836] selectors: improve examples section

2013-11-29 Thread Guido van Rossum
Guido van Rossum added the comment: Committed: revision 2a679870d7d2. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue19836] selectors: improve examples section

2013-11-29 Thread Charles-François Natali
Charles-François Natali added the comment: Here's an updated patch adding your echo server to the examples section. -- Added file: http://bugs.python.org/file32899/selectors_example-1.diff ___ Python tracker __

[issue19836] selectors: improve examples section

2013-11-29 Thread Guido van Rossum
Guido van Rossum added the comment: Sorry, here's a version with slightly more logical order of the code. -- Added file: http://bugs.python.org/file32897/echo.py ___ Python tracker _

[issue19836] selectors: improve examples section

2013-11-29 Thread Guido van Rossum
Changes by Guido van Rossum : Removed file: http://bugs.python.org/file32896/echo.py ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue19836] selectors: improve examples section

2013-11-29 Thread Guido van Rossum
Guido van Rossum added the comment: Here's my suggestion. It can use a lot of cleaning up, but it shows the fundamentals of a selector-based I/O loop. -- Added file: http://bugs.python.org/file32896/echo.py ___ Python tracker

[issue19836] selectors: improve examples section

2013-11-29 Thread Guido van Rossum
Guido van Rossum added the comment: This is definitely an improvement over the previous example, but I think both examples are still pretty unrealistic; they seem to be more useful as smoke tests than as examples. My primary concern is that, in order to be both self-contained and small, both

[issue19836] selectors: improve examples section

2013-11-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: This sounds ok to me. -- nosy: +gvanrossum, pitrou ___ Python tracker ___ ___ Python-bugs-list maili

[issue19836] selectors: improve examples section

2013-11-29 Thread Charles-François Natali
Changes by Charles-François Natali : Removed file: http://bugs.python.org/file32894/selectors_examples.diff ___ Python tracker ___ ___ Python-

[issue19836] selectors: improve examples section

2013-11-29 Thread Charles-François Natali
Changes by Charles-François Natali : Added file: http://bugs.python.org/file32895/selectors_examples.diff ___ Python tracker ___ ___ Python-bu

[issue19836] selectors: improve examples section

2013-11-29 Thread Charles-François Natali
New submission from Charles-François Natali: Here's a patch improving the "examples" section for the selectors module. -- assignee: docs@python components: Documentation files: selectors_examples.diff keywords: needs review, patch messages: 204750 nosy: docs@python, neologix priority: no