python-docs-es icon indicating copy to clipboard operation
python-docs-es copied to clipboard

Translate 6 fuzzy entries for Python module API section

Open nswatlan opened this issue 1 month ago • 0 comments

  • Recommendation to use specific PyModule/PyObject functions instead of directly manipulating a module's dict attribute
  • Warning that PyModule_GetFilename raises UnicodeEncodeError for unencodable filenames, with suggestion to use alternative function
  • Instruction to always initialize a member to PyModuleDef_HEAD_INIT
  • Explanation of memory allocation/deallocation lifecycle based on m_size when module is created and destroyed
  • Conditions under which a function is NOT called - specifically when module state is requested but not yet allocated (between creation and execution)
  • Description of PyModule_Create function that creates a new module object with default API version setting

nswatlan avatar Dec 04 '25 18:12 nswatlan