@@ -66,7 +66,9 @@ as its methods and attributes.
66
66
element 0, second as list element 1, and so on). The
67
67
possible values are ``getdns.TRANSPORT_UDP``,
68
68
``getdns.TRANSPORT_TCP``, ``getdns.TRANSPORT_TLS``,
69
- and ``getdns.TRANSPORT_STARTTLS``.
69
+ and ``getdns.TRANSPORT_STARTTLS``. [n.b.: *the
70
+ ``dns_transport`` attribute is still supported but will
71
+ be deprecated in a future release*]
70
72
71
73
.. py:attribute:: limit_outstanding_queries
72
74
@@ -442,7 +444,7 @@ differences:
442
444
address lookup could look like
443
445
444
446
>>> c = getdns.Context()
445
- >>> tid = c.address('www.example.org', callback=' my_callback' )
447
+ >>> tid = c.address('www.example.org', callback=my_callback)
446
448
447
449
* We've introduced a new ``Context`` method, called
448
450
``run``. When your program is ready to check to see
@@ -454,6 +456,11 @@ differences:
454
456
context, ``run`` will invoke all of those that are
455
457
waiting and ready.
456
458
459
+ * In previous releases the callback argument took the
460
+ form of a literal string, but as of this release you
461
+ may pass in the name of any Python runnable, without
462
+ quotes. The newer form is preferred.
463
+
457
464
The callback script takes four arguments: ``type``,
458
465
``result``, ``userarg``, and ``transaction_id. The ``type``
459
466
argument contains the callback type, which may have one of
0 commit comments