Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deprecated win32com.server.exception.Exception #2142

Conversation

Avasam
Copy link
Collaborator

@Avasam Avasam commented Nov 3, 2023

Something I came across. This really ought to be removed to avoid shadowing builtin Exception
Note that this can impact users, so it is a "breaking change". Not that it's a hard one to update (change 1 aliased name Exception -> COMException). So it should at least be communicated in a changelog.

Figured with all the recent refactoring it might be a good time.

Not sure what to do with com.win32comext.axscript.server.error.Exception. As far as I can tell, it's unused in pywin32's code, but could maybe be used in downstream code for better com object traceback? I could rename it to avoid the builtin shadowing, but it wasn't previously marked as deprecated/obsolete.

@Avasam Avasam changed the title Remove deprecated win32com.server.exception.Exception Remove deprecated win32com.server.exception.Exception Nov 3, 2023
@Avasam Avasam force-pushed the remove-deprecated-win32com.server.exception.Exception branch from 35a21e1 to dc80dd5 Compare November 3, 2023 16:36
@Avasam Avasam force-pushed the remove-deprecated-win32com.server.exception.Exception branch from dc80dd5 to 1340303 Compare November 3, 2023 16:44
…e-deprecated-win32com.server.exception.Exception
@mhammond
Copy link
Owner

Not sure what to do with com.win32comext.axscript.server.error.Exception

I'd be super surprised if it is used anywhere, given that the point of using axscript.server would be for other languages to invoke Python code and those other languages really aren't going to have access to this anyway.

@mhammond mhammond merged commit ccf58b8 into mhammond:main Mar 14, 2024
16 checks passed
@Avasam Avasam deleted the remove-deprecated-win32com.server.exception.Exception branch March 14, 2024 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants