tessl install tessl/pypi-comtypes@1.4.0Pure Python COM package for Windows COM automation and interoperability
Agent Success
Agent success rate when using this tile
88%
Improvement
Agent success rate improvement when using this tile compared to baseline
0.99x
Baseline
Agent success rate without this tile
89%
{
"context": "This criteria evaluates how effectively the engineer uses the comtypes package for data type conversion between Python and COM. The focus is on proper use of comtypes' automatic type conversion mechanisms, SAFEARRAY creation, VARIANT handling, and COM-specific data types.",
"type": "weighted_checklist",
"checklist": [
{
"name": "BSTR Conversion",
"description": "Uses comtypes.BSTR or comtypes' automatic string conversion to convert Python strings to COM BSTR type in the convert_to_com function",
"max_score": 15
},
{
"name": "Basic Type Conversion",
"description": "Properly handles automatic type conversion for int, float, bool values using comtypes' built-in conversion mechanisms (e.g., through ctypes or automatic marshaling)",
"max_score": 15
},
{
"name": "DateTime Conversion",
"description": "Converts Python datetime objects to COM DATE type using appropriate comtypes functions or types (e.g., through VARIANT or automatic conversion)",
"max_score": 10
},
{
"name": "SAFEARRAY Creation",
"description": "Uses comtypes SAFEARRAY creation functions (e.g., _midlSAFEARRAY, POINTER with array types, or comtypes.safearray module) to create COM-compatible arrays in create_com_array function",
"max_score": 25
},
{
"name": "Array Element Types",
"description": "Correctly specifies element types for SAFEARRAY using comtypes type specifications (e.g., c_int, c_wchar_p, or VT_* constants)",
"max_score": 10
},
{
"name": "VARIANT Handling",
"description": "Uses comtypes.automation.VARIANT or accesses .value attribute to unwrap VARIANT values in unwrap_variant function",
"max_score": 15
},
{
"name": "CURRENCY Type",
"description": "Uses comtypes.CURRENCY or comtypes.automation.CURRENCY type to convert Python numeric values to COM CURRENCY in python_to_currency function",
"max_score": 10
}
]
}