[issue46876] Walrus operator not in help

2022-02-27 Thread Mohammad Mahdi Zojaji Monfared
New submission from Mohammad Mahdi Zojaji Monfared : Walrus oprator := not in help("symbols") and help(":=") does not work. -- components: Interpreter Core files: walrus.png messages: 414168 nosy: mmahdizojajim priority: normal severity: normal status: open ti

[issue46326] 'venv --clear' should prompt user before nuking entire directory

2022-01-11 Thread Ali Mohammad Pur
Change by Ali Mohammad Pur : -- title: 'virtualenv --clear' should prompt user before nuking entire directory -> 'venv --clear' should prompt user before nuking entire directory ___ Python tracker <https://bugs.python.org/issu

[issue46326] 'virtualenv --clear' should prompt user before nuking entire directory

2022-01-11 Thread Ali Mohammad Pur
Ali Mohammad Pur added the comment: > If similar behavior is also an issue with the Python standard library venv > module (which is a derivative of virtualenv), please update this issue > accordingly Yes, my bad, I should have mentioned that this applies to venv, I will update

[issue46326] 'virtualenv --clear' should prompt user before nuking entire directory

2022-01-10 Thread Ali Mohammad Pur
New submission from Ali Mohammad Pur : `virtualenv --clear` is extremely eager to delete the passed directory without any sort of confirmation, leading to possible data-loss (e.g. with a mistyped command, or a misunderstanding of what it actually does). Simply deleting an entire directory tree

[issue45752] copy module doc wrongly says it doesn't copy arrays

2021-11-14 Thread Mohammad Mostafa Farzan
Change by Mohammad Mostafa Farzan : -- pull_requests: +27804 pull_request: https://github.com/python/cpython/pull/29556 ___ Python tracker <https://bugs.python.org/issue45

[issue45752] copy module doc wrongly says it doesn't copy arrays

2021-11-13 Thread Mohammad Mostafa Farzan
Change by Mohammad Mostafa Farzan : -- keywords: +patch nosy: +m2_farzan nosy_count: 4.0 -> 5.0 pull_requests: +27797 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29548 ___ Python tracker <https://bugs.p

[issue42511] string in string not working

2020-11-30 Thread Mohammad Sadra Sharifzadeh
New submission from Mohammad Sadra Sharifzadeh : I want to know whether some string is in same string or not (yeah the SAME) in the file attached I have two expressions: 1- print('اندیمشک' in 'اندیمشک') 2- print('اندیمشک' in 'اندیمشک') as you can see both of them are same thing but if you run

[issue41776] Revise example of "continue" in the tutorial documentation

2020-09-13 Thread AmirHossein Haji Mohammad Sadegh
New submission from AmirHossein Haji Mohammad Sadegh : It's not wrong but in the example for "continue" in the tutorial, the code prints "Found an even number" for even numbers and "Found a number" for odd numbers. Maybe it would be better if we print "Fo

[issue38130] Error in section 8.6 of the tutorials (Errors and Exceptions, `finally` bullet points))

2019-09-12 Thread Mohammad Dehghan
Mohammad Dehghan added the comment: I submitted a PR for this: https://github.com/python/cpython/pull/16016 -- ___ Python tracker <https://bugs.python.org/issue38

[issue38130] Error in section 8.6 of the tutorials (Errors and Exceptions, `finally` bullet points))

2019-09-12 Thread Mohammad Dehghan
New submission from Mohammad Dehghan : In section 8.6 of the tutorials page (https://docs.python.org/3/tutorial/errors.html#defining-clean-up-actions), the first item of the bullet points explaining some situations about finally clause, states that > If an exception occurs during execut

[issue38130] Error in section 8.6 of the tutorials (Errors and Exceptions, `finally` bullet points))

2019-09-12 Thread Mohammad Dehghan
Change by Mohammad Dehghan : -- assignee: docs@python components: Documentation nosy: Mohammad Dehghan, docs@python priority: normal severity: normal status: open title: Error in section 8.6 of the tutorials (Errors and Exceptions, `finally` bullet points)) type: behavior versions

[issue3687] Popen() object stdout attribute reassignment behaviour

2016-11-23 Thread Mohammad Maaz Khan
Mohammad Maaz Khan added the comment: Hi, I want to update the doc for this. This will be my first attempt to update the documentation. -- nosy: +maaz92 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/

[issue16026] csv.DictReader argument names documented incorrectly

2016-11-23 Thread Mohammad Maaz Khan
Mohammad Maaz Khan added the comment: Hi Éric, I think the documentation should be changed to match the arguments' names. -- nosy: +maaz92 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue27878] Unicode word boundries

2016-08-27 Thread mohammad aghanabi
New submission from mohammad aghanabi: According to [UAX #29](http://unicode.org/reports/tr29) - unicode word boundaries (rule WB5a), an apostrophe includes U+0027 ( ' ) APOSTROPHE and U+2019 ( ’ ) RIGHT SINGLE QUOTATION MARK (curly apostrophe). However regex module only implements U+0027

[issue17470] random.choice should accept a set as input

2013-03-18 Thread Mohammad Akram
New submission from Mohammad Akram: I think the random.choice function should support sets. The random.sample function already supports sets and therefore the API should be consistent in this regard. This is how it's done in the sample method (line 295): if isinstance(population

[issue7496] python does not work in command prompt

2009-12-13 Thread mohammad
New submission from mohammad mohammad.madan...@gmail.com: when i type python in my command promp this message is shown : C:\Documents and Settings\Xpython Fatal Python error: Py_Initialize: can't initialize sys standard streams LookupError: unknown encoding: cp720 This application has

[issue4749] Issue with RotatingFileHandler logging handler on Windows

2008-12-26 Thread Mohammad Al
New submission from Mohammad Al mramah...@hotmail.com: It seems that RotatingFileHandler is experiencing an issue when attempting to rotate log files under Windows. The following errors are received: Traceback (most recent call last): File C:\Python25\lib\logging\handlers.py, line 73