Thomas Ward via Mailman-Developers writes:

 > So, I need some information (hint: type hinting in your examples,
 > etc. would be wonderful):

Patches welcome ;-)  However, normal type hints in the examples won't
help you here.  We'd have to extract attribute references from inside
of function calls, stuff them into type-hinted variables, and use
those. Realistically, to find the type that matters to your problem
you either need to Use the Source, Luke, or RTFM.

 > (1) What is the datatype of `msg` in the archive_message class?

Ask not what is the data type of `msg`.  Ask instead what is the data
type of `msg['Subject']`.  I expect that it's `email.header.Header`.
Try `TID_PATTERN.search(str(message_subject))[0]`.

-- 
GNU Mailman consultant (installation, migration, customization)
Sirius Open Source    https://www.siriusopensource.com/
Software systems consulting in Europe, North America, and Japan
_______________________________________________
Mailman-Developers mailing list -- mailman-developers@python.org
To unsubscribe send an email to mailman-developers-le...@python.org
https://mail.python.org/mailman3/lists/mailman-developers.python.org/
Mailman FAQ: https://wiki.list.org/x/AgA3

Security Policy: https://wiki.list.org/x/QIA9

Reply via email to