[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

[issue20692] Tutorial and FAQ: how to call a method on an int

2021-04-28 Thread Amir
Amir added the comment: Hi everyone! I'm going to work on it. I have a plan to submit my pull request in the upcoming weeks. Thanks. -- components: -Interpreter Core nosy: +Amir.Rastkhadiv20 versions: +Python 3.9 -Python 3.10 ___ P

[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

[issue42322] Spectre mitigations in CPython interpreter

2020-11-11 Thread Amir Naseredini
New submission from Amir Naseredini : I was looking up everywhere and could not find any mitigations for Spectre attack by a Python interpreter(CPython)! I don't know if my question is correct or how feasible it is, but does anyone know if there are any mitigations for different varian

[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

[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

[issue41772] Zipfile.testzip considers wrong password as correct

2020-09-11 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 rais

[issue41772] Zipfile.testzip considers wrong password as correct

2020-09-11 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-11 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

[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 up

[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

[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

[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.pyt

[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

[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-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-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

[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 trac

[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

[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,

[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/is

[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

[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.o

[issue38292] tkinter variable classes don't link to widget if matplotlib's set_cmap() function is called before the tkinter GUI is instantiated

2019-09-27 Thread Amir Emami
New submission from Amir Emami : TkInter variable classes don't link to a widget (tested on Checkbutton and Scale) if matplotlib.pyplot.set_cmap() function is called before the tkinter.Tk() call which instantiates the root of a TkInter GUI. There is no problem if it is called after

[issue35562] Issue in sizeof() function

2018-12-22 Thread Amir Aslan Haghrah
Amir Aslan Haghrah added the comment: Thank you for your response. I noticed this issue while working with 'mmap' and memory sharing. As you said I check it in 'C++' and I got the same result for my struct as Python. ---

[issue35562] Issue in sizeof() function

2018-12-22 Thread Amir Aslan Haghrah
New submission from Amir Aslan Haghrah : If you define a structure which contains an 'c_int' and a 'c_double' member. Then run the sizeof() function for it you get 16 as result as follows: - from ctypes import c_int from ctypes

[issue16800] tempfile._get_default_tempdir() leaves files behind when HD is full

2013-02-05 Thread Amir Szekely
Amir Szekely added the comment: I've submitted a contribution form by e-mail. -- ___ Python tracker <http://bugs.python.org/issue16800> ___ ___ Python-bugs-l

[issue16800] tempfile._get_default_tempdir() leaves files behind when HD is full

2012-12-27 Thread Amir Szekely
Amir Szekely added the comment: Reproduction details: [root@meh /]# uname -a Linux meh 2.6.32-131.17.1.el6-0.0.3.smp.pae.gcc4.1.x86.i686 #1 SMP Tue Dec 20 02:40:22 PST 2011 i686 GNU/Linux [root@meh /]# pwd / [root@meh /]# dd if=/dev/zero of=/tmp/BIG bs=4M dd: writing `/tmp/BIG': No space

[issue16800] tempfile._get_default_tempdir() leaves files behind when HD is full

2012-12-27 Thread Amir Szekely
New submission from Amir Szekely: tempfile._get_default_tempdir() tries to find a good temporary directory by attempting to create a file and write a string into it for all candidate directories. It deletes those files right after closing them. But if writing rather than creating them fails

[issue6608] asctime causing python to crash

2009-07-30 Thread Amir Habibi
New submission from Amir Habibi : I use: Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)] on win32 import time time.asctime((2009, 1, 1, 24, 0, 0, 0, 0, 0)) the 24 is a wrong parameter but it should'n't crash the engine. This may be the side effect

[issue6607] asctime causing python to crash

2009-07-30 Thread Amir Habibi
New submission from Amir Habibi : I use: Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)] on win32 import time asctime((2009, 1, 1, 24, 0, 0, 0, 0, 0)) the 24 is a wrong parameter but it should'n't crash the engine. This may be the side effect of a mo