Re: Best approach for bulk DNS lookups in Python — socket vs dnspython vs asyncio

2026-03-10 Thread Cynthia Marshal via Python-list
For this kind of bulk lookup, dnspython is usually fine, but performance often depends more on resolver settings, timeout, retry behavior, and concurrency limits than on the library alone. socket.getaddrinfo will not help for MX/TXT, and calling dig in subprocesses is usually not worth the overh

Re: I always forget how to access information about classes and methods - how to do it?

2026-03-10 Thread Cynthia Marshal via Python-list
You can check classes and methods in Python by using the built-in introspection tools. dir(obj) shows the available attributes and methods, help(obj) shows the documentation for an object, and help(obj.method) shows details for one method. If you want to see the parameters of a callable, inspect