[issue39355] The Python library will not compile with a C++2020 compiler because the code uses the reserved “module” keyword
Change by Hasan : -- pull_requests: +29442 pull_request: https://github.com/python/cpython/pull/31282 ___ Python tracker <https://bugs.python.org/issue39355> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue39355] The Python library will not compile with a C++2020 compiler because the code uses the reserved “module” keyword
Change by Hasan : -- pull_requests: +26787 pull_request: https://github.com/python/cpython/pull/28373 ___ Python tracker <https://bugs.python.org/issue39355> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue39355] The Python library will not compile with a C++2020 compiler because the code uses the reserved “module” keyword
Change by Hasan : -- keywords: +patch pull_requests: +26773 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/28359 ___ Python tracker <https://bugs.python.org/issue39355> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue39355] The Python library will not compile with a C++2020 compiler because the code uses the reserved “module” keyword
Hasan added the comment: Okey. There will be huge changes for this issue as this keyword has been used in a lot of places. That's why i will try to send pull requests module by module to keep it clean and simple for review. -- ___ Python tracker <https://bugs.python.org/issue39355> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue39355] The Python library will not compile with a C++2020 compiler because the code uses the reserved “module” keyword
Hasan added the comment: We have tested with cxx-modules that issue. module is just a specifier for export (only export is a compiler-based keyword in >= C++20) That's why we can use module as argument name and there's no need to rename or delete *module arguments from header files. What do you recommend to do? http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1103r3.pdf -- ___ Python tracker <https://bugs.python.org/issue39355> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue39355] The Python library will not compile with a C++2020 compiler because the code uses the reserved “module” keyword
Hasan added the comment: If nobody works, i would like to solve this -- nosy: +AliyevH ___ Python tracker <https://bugs.python.org/issue39355> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue42053] fwalk: incorrect boolean test for non-fd arguments
Change by Hasan : -- pull_requests: -26038 ___ Python tracker <https://bugs.python.org/issue42053> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue42053] fwalk: incorrect boolean test for non-fd arguments
Change by Hasan : -- pull_requests: +26039 pull_request: https://github.com/python/cpython/pull/27524 ___ Python tracker <https://bugs.python.org/issue42053> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue42053] fwalk: incorrect boolean test for non-fd arguments
Change by Hasan : -- keywords: +patch nosy: +AliyevH nosy_count: 2.0 -> 3.0 pull_requests: +26038 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27523 ___ Python tracker <https://bugs.python.org/issue42053> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue44732] Rename types.Union to types.UnionType
Hasan added the comment: should have a deprecation period and if so, how long? -- ___ Python tracker <https://bugs.python.org/issue44732> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue44732] Rename types.Union to types.UnionType
Change by Hasan : -- keywords: +patch pull_requests: +25884 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27342 ___ Python tracker <https://bugs.python.org/issue44732> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue44732] Rename types.Union to types.UnionType
Hasan added the comment: If nobody works on it i would like to fix it -- nosy: +AliyevH ___ Python tracker <https://bugs.python.org/issue44732> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue44729] sys.setprofile bug
Change by Hasan : -- type: -> behavior ___ Python tracker <https://bugs.python.org/issue44729> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue44729] sys.setprofile bug
New submission from Hasan : 1. If we try to import modules except os or sys, we will get such events. 2. If we access frame.f_locals.items() and frame.f_code.replace() inside tracefunc, function execution shows events and stops, but if access other frame.f_locals.* it begins to call and look all files in python directory import sys def tracefunc(frame, event, arg): if event == "call": print('frame.f_locals.items: ->', frame.f_locals.items()) return tracefunc sys.setprofile(tracefunc) def test_sum(x: int, y: int): return x + y test_sum(10, 20) import asyncio - event: -> call frame.f_locals.items: -> dict_items([('x', 10), ('y', 20)]) event: -> return event: -> call frame.f_locals.items: -> dict_items([('name', 'asyncio'), ('import_', )]) event: -> call frame.f_locals.items: -> dict_items([('self', <_frozen_importlib._ModuleLockManager object at 0x10ae2a3f0>), ('name', 'asyncio')]) event: -> return event: -> call frame.f_locals.items: -> dict_items([('self', <_frozen_importlib._ModuleLockManager object at 0x10ae2a3f0>)]) event: -> call frame.f_locals.items: -> dict_items([('name', 'asyncio')]) event: -> c_call event: -> c_return event: -> call frame.f_locals.items: -> Traceback (most recent call last): File "/Users/hasanaliyev/Documents/programming/github/test/debugger/notwork.py", line 38, in import asyncio ^^ File "", line 1024, in _find_and_load File "", line 170, in __enter__ File "", line 196, in _get_module_lock File "", line 71, in __init__ File "/Users/hasanaliyev/Documents/programming/github/test/debugger/notwork.py", line 24, in tracefunc print('frame.f_locals.items: ->', frame.f_locals.items()) ^ File "", line 139, in __repr__ AttributeError: '_ModuleLock' object has no attribute 'name' -- components: Library (Lib) messages: 398102 nosy: AliyevH priority: normal severity: normal status: open title: sys.setprofile bug versions: Python 3.11 ___ Python tracker <https://bugs.python.org/issue44729> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue42095] plistlib: Add tests that compare with plutil(1)
Hasan added the comment: You are welcome! Thanks for accepting -- ___ Python tracker <https://bugs.python.org/issue42095> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue42095] plistlib: Add tests that compare with plutil(1)
Change by Hasan : -- pull_requests: -25709 ___ Python tracker <https://bugs.python.org/issue42095> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue42095] plistlib: Add tests that compare with plutil(1)
Change by Hasan : -- pull_requests: +25710 pull_request: https://github.com/python/cpython/pull/27173 ___ Python tracker <https://bugs.python.org/issue42095> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue42095] plistlib: Add tests that compare with plutil(1)
Change by Hasan : -- pull_requests: +25709 pull_request: https://github.com/python/cpython/pull/27172 ___ Python tracker <https://bugs.python.org/issue42095> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue42095] plistlib: Add tests that compare with plutil(1)
Change by Hasan : -- nosy: +zach.ware ___ Python tracker <https://bugs.python.org/issue42095> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue42095] plistlib: Add tests that compare with plutil(1)
Change by Hasan : Removed file: https://bugs.python.org/file50018/test_plistlib_plutil.py ___ Python tracker <https://bugs.python.org/issue42095> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue42095] plistlib: Add tests that compare with plutil(1)
Change by Hasan : Added file: https://bugs.python.org/file50020/test_plistlib_plutil.py ___ Python tracker <https://bugs.python.org/issue42095> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41491] plistlib can't load macOS BigSur system LaunchAgent
Change by Hasan : Removed file: https://bugs.python.org/file50019/test_plistlib_plutil.py ___ Python tracker <https://bugs.python.org/issue41491> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41491] plistlib can't load macOS BigSur system LaunchAgent
Change by Hasan : Added file: https://bugs.python.org/file50019/test_plistlib_plutil.py ___ Python tracker <https://bugs.python.org/issue41491> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue42095] plistlib: Add tests that compare with plutil(1)
Change by Hasan : Removed file: https://bugs.python.org/file50017/test_plistlib_plutil.py ___ Python tracker <https://bugs.python.org/issue42095> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue42095] plistlib: Add tests that compare with plutil(1)
Change by Hasan : Added file: https://bugs.python.org/file50018/test_plistlib_plutil.py ___ Python tracker <https://bugs.python.org/issue42095> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue42095] plistlib: Add tests that compare with plutil(1)
Change by Hasan : Added file: https://bugs.python.org/file50017/test_plistlib_plutil.py ___ Python tracker <https://bugs.python.org/issue42095> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue42095] plistlib: Add tests that compare with plutil(1)
Hasan added the comment: Does this issue still open? I would like to write this tests. -- nosy: +AliyevH ___ Python tracker <https://bugs.python.org/issue42095> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24258] BZ2File objects do not have name attribute
Hasan Diwan added the comment: Patch adds a bz2.BZ2File.name property corresponding to the filename passed in. -- keywords: +patch nosy: +Hasan Diwan versions: +Python 3.10, Python 3.11, Python 3.8, Python 3.9 -Python 3.6 Added file: https://bugs.python.org/file49991/bz2.name.patch ___ Python tracker <https://bugs.python.org/issue24258> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43334] venv does not install libpython
Hasan added the comment: Can you please provide more information about this behavior? -- nosy: +AliyevH ___ Python tracker <https://bugs.python.org/issue43334> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43324] asyncio
Change by Hasan : -- keywords: +patch pull_requests: +23436 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24651 ___ Python tracker <https://bugs.python.org/issue43324> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43324] asyncio
New submission from Hasan : Added socket getfqdn and gethostbyaddr functions with threadpoolexecutor to asyncio library -- messages: 387690 nosy: AliyevH priority: normal severity: normal status: open title: asyncio type: enhancement versions: Python 3.10 ___ Python tracker <https://bugs.python.org/issue43324> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue37668] Allow individual test to be specified by "#" or "."
New submission from Hasan Diwan : The attached patch allows for individual tests to be specified using a #. Existing tests still pass: == Tests result: SUCCESS == All 40 tests OK. Total duration: 4 min 15 sec Tests result: SUCCESS -- components: Tests files: python.pat messages: 348377 nosy: Hasan Diwan priority: normal severity: normal status: open title: Allow individual test to be specified by "#" or "." type: enhancement versions: Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9 Added file: https://bugs.python.org/file48502/python.pat ___ Python tracker <https://bugs.python.org/issue37668> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue36168] DOC: Fix capitalization in string.rst
Readul Hasan Chayan added the comment: If no one has any problem I would like to work on this. This will be my first contribution if it happens. -- nosy: +Readul Hasan Chayan ___ Python tracker <https://bugs.python.org/issue36168> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19143] Finding the Windows version getting messier (detect windows 8.1?)
Mahmud Al Hasan added the comment: Thanks to Steve Dower the problem is solved! -- ___ Python tracker <https://bugs.python.org/issue19143> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19143] Finding the Windows version getting messier (detect windows 8.1?)
Mahmud Al Hasan added the comment: The problem still exists on python 3.4 and I need to use this version. Any solution? -- nosy: +rauaha versions: -Python 2.7, Python 3.5, Python 3.6 ___ Python tracker <https://bugs.python.org/issue19143> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue32148] Python 2.7.14 has Tkinter with big T letter.
New submission from Hasan Mahmood : Using python 2.7.14. Importing Dialogs Got problem in importing tkinter. In doccumentation of tkinter, it is stated the big letter T in Tkinter is used only used in python 3 but. It is expected that it is possible to use tkinter with small letter T beccause I use python 2.7.14 -- components: Tkinter files: Tkinter.PNG messages: 307055 nosy: HMahmood priority: normal severity: normal status: open title: Python 2.7.14 has Tkinter with big T letter. versions: Python 2.7 Added file: https://bugs.python.org/file47299/Tkinter.PNG ___ Python tracker <https://bugs.python.org/issue32148> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24395] webbrowser.py update to use argparse.py
New submission from Hasan Diwan: The webbrowser module uses getopt, which needs to be ripped out and replaced with argparse. The attached file does just this. -- components: Library (Lib) files: webbrowser.py messages: 244913 nosy: Hasan Diwan, georg.brandl priority: normal severity: normal status: open title: webbrowser.py update to use argparse.py type: enhancement versions: Python 2.7 Added file: http://bugs.python.org/file39641/webbrowser.py ___ Python tracker <http://bugs.python.org/issue24395> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9565] socket : accept() method not working
New submission from Hasan : hi, i am use the socket module in python. But accept() method not working and its not give me an error about this problem. for example i run the my scipt. When it comes to accept() method line, python is locks. i use the ubuntu os. and python 2.6.5 pls, help me. -- components: IDLE files: server.py messages: 113567 nosy: cmuse priority: normal severity: normal status: open title: socket : accept() method not working versions: Python 2.6 Added file: http://bugs.python.org/file18471/server.py ___ Python tracker <http://bugs.python.org/issue9565> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7477] kqueue timers don't work properly
Hasan added the comment: Closing it. My mistake. I was passing incorrect arguments. KQ_EV_ONESHOT requires KQ_EV_ADD as well, and timer data goes into data. -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue7477> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7477] kqueue timers don't work properly
Hasan added the comment: Typo in the repro. The statement: new_e = f.control should be: new_e = kq.control -- ___ Python tracker <http://bugs.python.org/issue7477> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7477] kqueue timers don't work properly
New submission from Hasan : kqueue timers are not working at all on Mac OSX 10.6.1 (probably not working on other BSDs as well but haven't tested it). Here's a simply repro: from select import * kq = kqueue() e = kevent(1, flags=KQ_EV_ENABLE|KQ_EV_ONESHOT, filter=KQ_FILTER_TIMER) e new_e = f.control([e], 1, 0) This should block 10s before it returns control with new_e having a timer event returned. However, it isn't the case. control returns immediately returning a busted event: [] Am I missing something? -- components: Library (Lib) messages: 96247 nosy: hasan severity: normal status: open title: kqueue timers don't work properly type: behavior versions: Python 2.6 ___ Python tracker <http://bugs.python.org/issue7477> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4108] robotparser.py fail when more than one User-Agent: * is present
New submission from taskinoor hasan sajid <[EMAIL PROTECTED]>: Check the robots.txt file from mathworld. --> http://mathworld.wolfram.com/robots.txt It contains 2 User-Agent: * lines. >From http://www.robotstxt.org/norobots-rfc.txt "These name tokens are used in User-agent lines in /robots.txt to identify to which specific robots the record applies. The robot must obey the first record in /robots.txt that contains a User- Agent line whose value contains the name token of the robot as a substring. The name comparisons are case-insensitive. If no such record exists, it should obey the first record with a User-agent line with a "*" value, if present. If no record satisfied either condition, or no records are present at all, access is unlimited." But it seems that our robotparser is obeying the 2nd one. the problem occures because robotparser assumes that no robots.txt will contain two * user-agent. it should not have two two such line, but in reality many site may have two. So i have changed robotparser.py as follow: def _add_entry(self, entry): if "*" in entry.useragents: # the default entry is considered last if self.default_entry == None: # this check is added self.default_entry = entry else: self.entries.append(entry) And at the end of parse(self, lines) method if state==2: #self.entries.append(entry) self._add_entry(entry) # necessary if there is no new line at end and last User-Agent is * -- components: Library (Lib) messages: 74665 nosy: thsajid severity: normal status: open title: robotparser.py fail when more than one User-Agent: * is present versions: Python 2.5 ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue4108> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com