Skip to content

Remove deprecated win32com.server.exception.Exception#2142

Merged
mhammond merged 2 commits intomhammond:mainfrom
Avasam:remove-deprecated-win32com.server.exception.Exception
Mar 14, 2024
Merged

Remove deprecated win32com.server.exception.Exception#2142
mhammond merged 2 commits intomhammond:mainfrom
Avasam:remove-deprecated-win32com.server.exception.Exception

Conversation

@Avasam
Copy link
Copy Markdown
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
@mhammond
Copy link
Copy Markdown
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
@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