Pymem icon indicating copy to clipboard operation
Pymem copied to clipboard

Rename open function to open_process to avoid conflict with Python's …

Open zZan54 opened this issue 1 year ago • 2 comments

…built-in open

Renamed the open function in the pymem package to open_process to avoid conflicts with Python's built-in open function. This change prevents errors such as AttributeError: enter when using the with statement for file operations. Updated all relevant references in the code to use the new function name.

Related issue: https://github.com/srounet/Pymem/issues/142

zZan54 avatar Jul 06 '24 12:07 zZan54

we probably want to keep the old open name that just calls open_process and gives a depreciation warning as to not break existing code

StarrFox avatar Jul 06 '24 13:07 StarrFox

Thank you for the feedback. Would you like to proceed with the deprecation approach for the open function, or should we leave it as is?

zZan54 avatar Jul 06 '24 13:07 zZan54