[issue38979] ContextVar[str] should return ContextVar class, not None

2019-12-07 Thread Amir Mohamadi
Amir Mohamadi added the comment: @asvetlov I have a question! Should "contextvar_cls_getitem" function be changed? And can you please help me figure out how to change it? -- nosy: +Amir -DahlitzFlorian, gvanrossum, levkivskyi,

[issue38979] ContextVar[str] should return ContextVar class, not None

2019-12-07 Thread Amir Mohamadi
Change by Amir Mohamadi : -- keywords: +patch pull_requests: +16975 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17497 ___ Python tracker <https://bugs.python.org/issu

[issue38536] Trailing space in formatted currency with international=True and symbol following value

2019-10-20 Thread Amir Mohamadi
Amir Mohamadi added the comment: Hi! I'm a newbie. Can I work on it with your help??? -- nosy: +Amir ___ Python tracker <https://bugs.python.org/issue38

[issue38408] urlparse gives no method to build a url with a port

2019-10-08 Thread Amir Mohamadi
Amir Mohamadi added the comment: Hi! I'm a newbie but I'd like to work on this issue can I work on it??? -- nosy: +Amir ___ Python tracker <https://bugs.python.org/issue38

[issue38419] The path of check-c-globals.py on README is wrong

2019-10-09 Thread Amir Mohamadi
Change by Amir Mohamadi : -- keywords: +patch pull_requests: +16266 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16680 ___ Python tracker <https://bugs.python.org/issu

[issue39603] [security] http.client: HTTP Header Injection in the HTTP method

2020-02-11 Thread Amir Mohamadi
Amir Mohamadi added the comment: @vstinner sorry to bother you, I have a quick question. the request(...) method is like this: def request(self, method, url, body=None, headers={}, *, encode_chunked=False): """Send a c

[issue39603] [security] http.client: HTTP Header Injection in the HTTP method

2020-02-12 Thread Amir Mohamadi
Change by Amir Mohamadi : -- keywords: +patch pull_requests: +17850 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18480 ___ Python tracker <https://bugs.python.org/issu

[issue39603] [security] http.client: HTTP Header Injection in the HTTP method

2020-02-12 Thread Amir Mohamadi
Change by Amir Mohamadi : -- pull_requests: +17858 pull_request: https://github.com/python/cpython/pull/18485 ___ Python tracker <https://bugs.python.org/issue39

[issue39524] Escape sequences in doc string of ast._pad_whitespace

2020-02-03 Thread Amir Mohamadi
Amir Mohamadi added the comment: But in both cases the 'Output' will contain '\\': "Replace all chars except '\\f\\t' in a line with spaces." -- nosy: +Amir ___ Python tracker <https://bugs.python.o

[issue39603] [security] http.client: HTTP Header Injection in the HTTP method

2020-02-11 Thread Amir Mohamadi
Amir Mohamadi added the comment: can I work on it?! -- nosy: +Amir ___ Python tracker <https://bugs.python.org/issue39603> ___ ___ Python-bugs-list mailin

[issue39966] mock 3.9 bug: Wrapped objects without __bool__ raise exception

2020-03-20 Thread Amir Mohamadi
Amir Mohamadi added the comment: I'd like to work on it. Should I add tests to 'Lib/unittest/test/testmock/testmock.py'?? -- nosy: +Amir ___ Python tracker <https://bugs.python.org/issue39

[issue39966] mock 3.9 bug: Wrapped objects without __bool__ raise exception

2020-03-21 Thread Amir Mohamadi
Change by Amir Mohamadi : -- keywords: +patch pull_requests: +18462 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/19102 ___ Python tracker <https://bugs.python.org/issu

[issue41772] Zipfile.testzip considers wrong password as correct

2020-09-12 Thread Amir Mohamadi
Change by Amir Mohamadi : -- components: Library (Lib) nosy: Amir priority: normal severity: normal status: open title: Zipfile.testzip considers wrong password as correct type: behavior ___ Python tracker <https://bugs.python.org/issue41

[issue41772] Zipfile.testzip considers wrong password as correct

2020-09-12 Thread Amir Mohamadi
Change by Amir Mohamadi : Added file: https://bugs.python.org/file49453/encrypted.zip ___ Python tracker <https://bugs.python.org/issue41772> ___ ___ Python-bugs-list m

[issue41772] Zipfile.testzip considers wrong password as correct

2020-09-12 Thread Amir Mohamadi
New submission from Amir Mohamadi : Zipfile.testzip sometimes works perfectly with wrong password. refer to poc.py I've a zip file with password '76453' and when I try a wrong password with extractall: myzip.setpassword('10006050') myzip.extractall() it raises a Bad CRC-32 exception

[issue42008] Internal Random class calling seed() with incorrect argument

2020-10-12 Thread Amir Mohamadi
Amir Mohamadi added the comment: Can I open a PR for it? -- nosy: +Amir ___ Python tracker <https://bugs.python.org/issue42008> ___ ___ Python-bugs-list mailin

[issue42008] Internal Random class calling seed() with incorrect argument

2020-10-12 Thread Amir Mohamadi
Change by Amir Mohamadi : -- keywords: +patch pull_requests: +21641 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22668 ___ Python tracker <https://bugs.python.org/issu

[issue41395] pickle and pickletools cli interface doesn't close input and output file.

2020-08-02 Thread Amir Mohamadi
Change by Amir Mohamadi : -- nosy: +Amir nosy_count: 6.0 -> 7.0 pull_requests: +20845 pull_request: https://github.com/python/cpython/pull/21702 ___ Python tracker <https://bugs.python.org/issu

[issue41004] Hash collisions in IPv4Interface and IPv6Interface

2020-06-21 Thread Amir Mohamadi
Amir Mohamadi added the comment: No @rvteja92, you don't need open multiple PRs, only make your changes on master branch. for more informations read this: https://devguide.python.org/ And for the CLA sign it will take a while to be updated

[issue41004] Hash collisions in IPv4Interface and IPv6Interface

2020-06-18 Thread Amir Mohamadi
Amir Mohamadi added the comment: Can I make a PR for this? -- nosy: +Amir ___ Python tracker <https://bugs.python.org/issue41004> ___ ___ Python-bugs-list mailin

[issue16879] distutils.command.config uses fragile constant temporary file name

2020-11-12 Thread Amir Mohamadi
Amir Mohamadi added the comment: Can I open a PR for it? -- nosy: +Amir ___ Python tracker <https://bugs.python.org/issue16879> ___ ___ Python-bugs-list mailin

[issue41556] hostname verification fails if hostname starts with literal IPv4

2021-08-08 Thread Amir Mohamadi
Amir Mohamadi added the comment: Seems to be solved by https://github.com/openssl/openssl/pull/16201. I guess we can close this issue. -- nosy: +Amir ___ Python tracker <https://bugs.python.org/issue41