Ticket #5951 defect new
Documentation for the best way to get a reference to a reactor reads as contradictory
| Reported by: | cyli | Owned by: | wirehead |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | core | Keywords: | documentation |
| Cc: | Branch: | branches/clarify_reactor_doscstring-5951-2 | |
| Author: | tomprince | Launchpad Bug: |
Description
http://twistedmatrix.com/documents/12.2.0/api/twisted.internet.reactor.html
"Regardless of which reactor is installed, importing this module is the correct way to get a reference to it."
"New application code should prefer to pass and accept the reactor as a parameter where it is needed, rather than relying on being able to import this module to get a reference."
These seem to be contradictory statements. When/where it should be imported rather than passed should be clarified.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

