[issue47155] Strange behavior on the tuple that includes list
New submission from Furkan Onder : I am creating the tuple that includes a list and than I am trying to add new value to this list. Interpreter throw the error, but list is changing. I think it doesn't make sense. I think if we throw the type error, list shouldn't be change. >>> tup = ('hi', 'test', ['a','b']) >>> tup[2] += 'c' Traceback (most recent call last): File "", line 1, in TypeError: 'tuple' object does not support item assignment >>> tup ('hi', 'test', ['a', 'b', 'c']) >>> -- components: Interpreter Core messages: 416291 nosy: furkanonder priority: normal severity: normal status: open title: Strange behavior on the tuple that includes list versions: Python 3.10 ___ Python tracker <https://bugs.python.org/issue47155> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue27779] Sync-up docstrings in C version of the the decimal module
Furkan Onder added the comment: Patches are prepared but not continued. It can be merge by small additions to the patches. -- nosy: +furkanonder ___ Python tracker <https://bugs.python.org/issue27779> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue34431] Docs does not eval allows code object as argument
Furkan Onder added the comment: Hi Jonathan, Are you still planning to work on the patch? -- ___ Python tracker <https://bugs.python.org/issue34431> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26329] os.path.normpath("//") returns //
Change by Furkan Onder : -- pull_requests: +19444 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/20138 ___ Python tracker <https://bugs.python.org/issue26329> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26329] os.path.normpath("//") returns //
Furkan Onder added the comment: PR has been sent! -- nosy: +furkanonder ___ Python tracker <https://bugs.python.org/issue26329> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40462] [easy] undefined name in Lib/test/mock_socket.py
Furkan Onder added the comment: You are welcome :=) -- ___ Python tracker <https://bugs.python.org/issue40462> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19956] inspect.getsource(obj.foo) fails when foo is an injected method constructed from another method
Furkan Onder added the comment: PR has been sent. -- ___ Python tracker <https://bugs.python.org/issue19956> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23677] Mention dict and set comps in library reference
Furkan Onder added the comment: PR has been sent. -- ___ Python tracker <https://bugs.python.org/issue23677> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23677] Mention dict and set comps in library reference
Change by Furkan Onder : -- nosy: +furkanonder nosy_count: 8.0 -> 9.0 pull_requests: +19337 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/20027 ___ Python tracker <https://bugs.python.org/issue23677> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19956] inspect.getsource(obj.foo) fails when foo is an injected method constructed from another method
Change by Furkan Onder : -- nosy: +furkanonder nosy_count: 6.0 -> 7.0 pull_requests: +19335 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/20025 ___ Python tracker <https://bugs.python.org/issue19956> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1944] Document PyUnicode_* API
Change by Furkan Onder : -- nosy: +furkanonder nosy_count: 8.0 -> 9.0 pull_requests: +19322 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/20011 ___ Python tracker <https://bugs.python.org/issue1944> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue34431] Docs does not eval allows code object as argument
Change by Furkan Onder : -- keywords: +patch nosy: +furkanonder nosy_count: 4.0 -> 5.0 pull_requests: +19313 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/2 ___ Python tracker <https://bugs.python.org/issue34431> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2716] Document license under which audioop is used
Change by Furkan Onder : -- keywords: +patch pull_requests: +19289 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/19972 ___ Python tracker <https://bugs.python.org/issue2716> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40462] [easy] undefined name in Lib/test/mock_socket.py
Change by Furkan Onder : -- pull_requests: +19288 pull_request: https://github.com/python/cpython/pull/19972 ___ Python tracker <https://bugs.python.org/issue40462> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2716] Document license under which audioop is used
Furkan Onder added the comment: PR has been sent. -- nosy: +furkanonder ___ Python tracker <https://bugs.python.org/issue2716> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue25707] Add the close method for ElementTree.iterparse() object
Furkan Onder added the comment: Python 3.8.2 (default, Apr 8 2020, 14:31:25) [GCC 9.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import xml.etree.ElementTree as ET >>> import gc >>> ET.iterparse('/dev/null') .IterParseIterator object at 0x7fb96f679d00> >>> gc.collect() 34 The warning(__main__:1: ResourceWarning: unclosed file <_io.BufferedReader name='/dev/null'>) is no longer available in python3.8.2 -- nosy: +furkanonder ___ Python tracker <https://bugs.python.org/issue25707> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13097] ctypes: segfault with large number of callback arguments
Furkan Onder added the comment: The issue continues in python 3.8.2. -- nosy: +furkanonder ___ Python tracker <https://bugs.python.org/issue13097> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40462] [easy] undefined name in Lib/test/mock_socket.py
Furkan Onder added the comment: Hello, I sent a PR that corrects variable and function names. I'm not sure how to fix it for Lib/test/test_json/test_recursion.py:55:24 so I didn't make any changes. -- ___ Python tracker <https://bugs.python.org/issue40462> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40462] [easy] undefined name in Lib/test/mock_socket.py
Change by Furkan Onder : -- keywords: +patch nosy: +furkanonder nosy_count: 1.0 -> 2.0 pull_requests: +19151 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19832 ___ Python tracker <https://bugs.python.org/issue40462> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue39423] Process finished with exit code -1073741819 (0xC0000005) when trying to access data from a pickled file
Furkan Onder added the comment: Hi, Can you share the program codes to better understand the problem? -- nosy: +furkanonder ___ Python tracker <https://bugs.python.org/issue39423> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue38770] Pickle handle self references in classes
Furkan Onder added the comment: Ahh. I misunderstood the problem. Pickle behaves differently when it is a circular reference. If you have a solution, I am waiting with curiosity. -- ___ Python tracker <https://bugs.python.org/issue38770> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue39817] CRITICAL: TypeError: cannot pickle 'generator'
Furkan Onder added the comment: Can you send your code? -- nosy: +furkanonder ___ Python tracker <https://bugs.python.org/issue39817> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue38770] Pickle handle self references in classes
Furkan Onder added the comment: I ran your script and didn't get RecursionError. The issue seems to be fixed. Python 3.8.2 (default, Apr 8 2020, 14:31:25) [GCC 9.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> from __future__ import print_function >>> >>> import pickle, sys >>> >>> class Foo: ... __name__ = __qualname__ = "Foo.ref" ... pass ... >>> Foo.ref = Foo >>> >>> print(sys.version_info) sys.version_info(major=3, minor=8, micro=2, releaselevel='final', serial=0) >>> for proto in range(0, pickle.HIGHEST_PROTOCOL + 1): ... print("{}:".format(proto), end=" ") ... try: ... pkl = pickle.dumps(Foo, proto) ... print("Dump OK,", end=" ") ... assert(pickle.loads(pkl) is Foo) ... print("Load OK,") ... except Exception as err: ... print(repr(err)) ... 0: PicklingError("Can't pickle : import of module '__main__' failed") 1: PicklingError("Can't pickle : import of module '__main__' failed") 2: PicklingError("Can't pickle : import of module '__main__' failed") 3: PicklingError("Can't pickle : import of module '__main__' failed") 4: Dump OK, Load OK, 5: Dump OK, Load OK, >>> -- nosy: +furkanonder ___ Python tracker <https://bugs.python.org/issue38770> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue27635] pickle documentation says that unpickling may not call __new__
Furkan Onder added the comment: The problem is fixed, issue can be closed. -- ___ Python tracker <https://bugs.python.org/issue27635> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19113] duplicate test names in Lib/ctypes/test/test_functions.py
Furkan Onder added the comment: There are two tests with same name in the same test class (ctypes.test.test_functions test_errors) After merging both and re-run I encounter with this error which looks like it was always there but overwritten by other test (with same name) F...s.s... == FAIL: test_errors (__main__.FunctionTestCase) -- Traceback (most recent call last): File "/home/furkan/cpython/Lib/ctypes/test/test_functions.py", line 219, in test_errors self.assertRaises(TypeError, f, X()) #cannot convert parameter AssertionError: TypeError not raised by _testfunc_p_p -- Ran 22 tests in 0.003s -- nosy: +furkanonder ___ Python tracker <https://bugs.python.org/issue19113> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40223] Add -fwrapv for new icc versions
Furkan Onder added the comment: Pr has been sent. -- ___ Python tracker <https://bugs.python.org/issue40223> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40223] Add -fwrapv for new icc versions
Change by Furkan Onder : -- keywords: +patch nosy: +furkanonder nosy_count: 1.0 -> 2.0 pull_requests: +18905 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/19561 ___ Python tracker <https://bugs.python.org/issue40223> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26571] turtle regression in 3.5
Furkan Onder added the comment: PR has been sent. -- ___ Python tracker <https://bugs.python.org/issue26571> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19468] Relax the type restriction on reloaded modules
Furkan Onder added the comment: PR has been sent. -- ___ Python tracker <https://bugs.python.org/issue19468> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21760] inspect documentation describes module type inaccurately
Furkan Onder added the comment: PR has been sent. -- ___ Python tracker <https://bugs.python.org/issue21760> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26571] turtle regression in 3.5
Change by Furkan Onder : -- keywords: +patch nosy: +furkanonder nosy_count: 4.0 -> 5.0 pull_requests: +18820 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/19465 ___ Python tracker <https://bugs.python.org/issue26571> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19468] Relax the type restriction on reloaded modules
Change by Furkan Onder : -- keywords: +patch nosy: +furkanonder nosy_count: 3.0 -> 4.0 pull_requests: +18783 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/19424 ___ Python tracker <https://bugs.python.org/issue19468> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40200] count 0 crash
Furkan Onder added the comment: Can i see the program code? -- nosy: +furkanonder ___ Python tracker <https://bugs.python.org/issue40200> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19961] MacOSX: Tkinter build failure when building without command-line tools
Furkan Onder added the comment: You can try this solution, https://stackoverflow.com/questions/11465258/xlib-h-not-found-when-building-graphviz-on-mac-os-x-10-8-mountain-lion#12089021 -- nosy: +furkanonder ___ Python tracker <https://bugs.python.org/issue19961> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15140] PEP 384 inconsistent with implementation
Furkan Onder added the comment: It fixed. -- nosy: +furkanonder ___ Python tracker <https://bugs.python.org/issue15140> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue27635] pickle documentation says that unpickling may not call __new__
Furkan Onder added the comment: There is still an mistake in the document. I sent a pr to fix it. -- ___ Python tracker <https://bugs.python.org/issue27635> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue27635] pickle documentation says that unpickling may not call __new__
Change by Furkan Onder : -- keywords: +patch nosy: +furkanonder nosy_count: 4.0 -> 5.0 pull_requests: +18626 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/19269 ___ Python tracker <https://bugs.python.org/issue27635> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40086] test_etree is skipped in test_typing due to cElementTree removal
Furkan Onder added the comment: @xtreak You're welcome :) -- ___ Python tracker <https://bugs.python.org/issue40086> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com