This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Why only the MacOSXOSAScript in webbrowser does not have the name property?
Type: behavior Stage: patch review
Components: Library (Lib), macOS Versions: Python 3.7, Python 2.7
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: ganow, ned.deily, ronaldoussoren
Priority: normal Keywords: patch

Created on 2019-10-30 17:32 by ganow, last changed 2022-04-11 14:59 by admin.

Pull Requests
URL Status Linked Edit
PR 23134 open ronaldoussoren, 2020-11-03 19:11
Messages (2)
msg355725 - (view) Author: Yoshihiro Nagano (ganow) Date: 2019-10-30 17:32
Hello.

I am using the webbrowser library in macOS and just found that only the MacOSXOSAScript object has `_name` property instead of `name.`
All of the other class, which is inherited from the BaseBrowser, has `name` property.
Are there any specific reasons for this API?
Or, are there any ways to access the name of the browser object independent from the browser type?

The corresponding implementation is shown below:
https://github.com/python/cpython/blob/4cb08b6c0ae6989d169dd48c2b24087941f6d0b0/Lib/webbrowser.py#L641-L643

Thank you.
msg380292 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2020-11-03 19:12
I've created a PR for adding the attribute.
History
Date User Action Args
2022-04-11 14:59:22adminsetgithub: 82828
2020-11-03 19:12:37ronaldoussorensetmessages: + msg380292
2020-11-03 19:11:36ronaldoussorensetkeywords: + patch
stage: patch review
pull_requests: + pull_request22048
2019-10-30 17:32:47ganowcreate