[issue45224] Argparse shows required arguments as optional
Khalid Mammadov added the comment: This is another, larger example, where I actually stumbled on this when looking into Apache Airflow project. Below makes it confusing to see what is actually required and what not. Unless you look for square brackets. Would be it much nicer to list required ones explicitly rather than looking into options and figuring out which one is a must? usage: airflow users create [-h] -e EMAIL -f FIRSTNAME -l LASTNAME [-p PASSWORD] -r ROLE [--use-random-password] -u USERNAME Create a user optional arguments: -h, --helpshow this help message and exit -e EMAIL, --email EMAIL Email of the user -f FIRSTNAME, --firstname FIRSTNAME First name of the user -l LASTNAME, --lastname LASTNAME Last name of the user -p PASSWORD, --password PASSWORD Password of the user, required to create a user without --use-random-password -r ROLE, --role ROLE Role of the user. Existing roles include Admin, User, Op, Viewer, and Public --use-random-password Do not prompt for password. Use random string instead. Required to create a user without --password -u USERNAME, --username USERNAME Username of the user examples: To create an user with "Admin" role and username equals to "admin", run: $ airflow users create \ --username admin \ --firstname FIRST_NAME \ --lastname LAST_NAME \ --role Admin \ --email ad...@example.org airflow users create command error: the following arguments are required: -e/--email, -f/--firstname, -l/--lastname, -r/--role, -u/--username, see help above. -- ___ Python tracker <https://bugs.python.org/issue45224> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue45224] Argparse shows required arguments as optional
Khalid Mammadov added the comment: May I suggest to change it again so we two sections: required and optional? This can help to be more clear from usage perspective. I have changed it locally and it looks like below: usage: myprogram.py [-h] [--foo FOO] --bar BAR required arguments: --bar BAR foo help optional arguments: -h, --help show this help message and exit --foo FOO foo help -- ___ Python tracker <https://bugs.python.org/issue45224> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue45224] Argparse shows required arguments as optional
New submission from Khalid Mammadov : Currently argparse module shows all optional arguments under "optional arguments" section of the help. It also includes those flags/arguments that are required as well. This add confusion to a user and does not properly show intention -- components: Library (Lib) messages: 401969 nosy: khalidmammadov priority: normal severity: normal status: open title: Argparse shows required arguments as optional type: behavior versions: Python 3.10, Python 3.11, Python 3.6, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker <https://bugs.python.org/issue45224> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue39180] Missing getlines func documentation from linecache module
Change by Khalid Mammadov : -- resolution: -> duplicate ___ Python tracker <https://bugs.python.org/issue39180> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue39139] Reference to depricated collections.abc class in collections is unnecessary and confusing
Khalid Mammadov added the comment: Looks like this is covered in greater detail in the other PRs. So, closing the PR and the issue -- stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue39139> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue39139] Reference to depricated collections.abc class in collections is unnecessary and confusing
Change by Khalid Mammadov : -- resolution: -> duplicate ___ Python tracker <https://bugs.python.org/issue39139> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue39180] Missing getlines func documentation from linecache module
Khalid Mammadov added the comment: Looks like it's not meant to be made public as the module is meant to be working on a single line. So closing the issue and PR -- nosy: -ammar2 stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue39180> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue39180] Missing getlines func documentation from linecache module
Khalid Mammadov added the comment: How to find if it was intentional or over-site? -- ___ Python tracker <https://bugs.python.org/issue39180> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue39130] Dict is reversable from v3.8 and should say that in the doc
Change by Khalid Mammadov : -- stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue39130> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue39180] Missing getlines func documentation from linecache module
Change by Khalid Mammadov : -- keywords: +patch pull_requests: +17216 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17784 ___ Python tracker <https://bugs.python.org/issue39180> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue39180] Missing getlines func documentation from linecache module
Change by Khalid Mammadov : -- assignee: docs@python components: Documentation nosy: docs@python, khalidmammadov priority: normal severity: normal status: open title: Missing getlines func documentation from linecache module versions: Python 3.8 ___ Python tracker <https://bugs.python.org/issue39180> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue39139] Reference to depricated collections.abc class in collections is unnecessary and confusing
Change by Khalid Mammadov : -- keywords: +patch pull_requests: +17153 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17707 ___ Python tracker <https://bugs.python.org/issue39139> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue39139] Reference to depricated collections.abc class in collections is unnecessary and confusing
New submission from Khalid Mammadov : "Deprecated since version 3.3, will be removed in version 3.9: Moved Collections Abstract Base Classes to the collections.abc module. For backwards compatibility, they continue to be visible in this module through Python 3.8." on the overview is confusing as it's not listed on that page and explained on the next one. -- assignee: docs@python components: Documentation messages: 358889 nosy: docs@python, khalidmammadov priority: normal severity: normal status: open title: Reference to depricated collections.abc class in collections is unnecessary and confusing type: enhancement versions: Python 3.8 ___ Python tracker <https://bugs.python.org/issue39139> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue39130] Dict is reversable from v3.8 and should say that in the doc
Change by Khalid Mammadov : -- keywords: +patch pull_requests: +17148 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17694 ___ Python tracker <https://bugs.python.org/issue39130> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue39130] Dict is reversable from v3.8 and should say that in the doc
Change by Khalid Mammadov : -- assignee: docs@python components: Documentation nosy: docs@python, khalidmammadov priority: normal severity: normal status: open title: Dict is reversable from v3.8 and should say that in the doc type: enhancement versions: Python 3.8 ___ Python tracker <https://bugs.python.org/issue39130> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue33574] Conversion of Number to String(str(number))
New submission from Khalid Moh'd. : Consider conversion of an integer to string: a=5 #number str #outputs str(a) #works perfectly and prints '5' Now, consider: str="Hello World" #reads the string str #prints "Hello World" str(5) #gives an error Interpreter considers variable str before parenthesis not str from There must be a way to distinguish user defined variable str and conversion operation str(). -- messages: 317049 nosy: Khalid Moh'd. priority: normal severity: normal status: open title: Conversion of Number to String(str(number)) type: compile error versions: Python 3.6 ___ Python tracker <https://bugs.python.org/issue33574> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue29037] Python 2.7.13 prints version header and exits immediately on Windows 10 x64
A.B., Khalid added the comment: OK. I updated pyreadline to version 2.1 from version 2.0 and now the buggy behavior is gone. """ E:\>python Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:53:40) [MSC v.1500 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> """ -- ___ Python tracker <http://bugs.python.org/issue29037> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue29037] Python 2.7.13 prints version header and exits immediately on Windows 10 x64
A.B., Khalid added the comment: Output of SET PY is as follows: E:\>SET PY PYSDL2_DLL_PATH=E:\Python27\Lib\site-packages PYTHON3_HOME=E:\Python35 PYTHON_HOME=E:\Python27 -- ___ Python tracker <http://bugs.python.org/issue29037> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue29037] Python 2.7.13 prints version header and exits immediately on Windows 10 x64
A.B., Khalid added the comment: I enclose the output of "python -v". Where Python exits is of course indicated by the end of the file. However, there is no obvious error that is printed out. Also it might be worthwhile to note that I cleared all compiled files left over from the previous Python (2.7.12) so as to make sure none of them was the cause of the problem. That unfortunately did not affect the buggy behavior. -- Added file: http://bugs.python.org/file46064/python-v.txt ___ Python tracker <http://bugs.python.org/issue29037> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue29037] Python 2.7.13 prints version header and exits immediately on Windows 10 x64
A.B., Khalid added the comment: Running "where python" shows that the updated python (the one with the bug mentioned above) is the one being run. Running python -c "import sys; print sys.stdin.isatty()" prints out "True". -- ___ Python tracker <http://bugs.python.org/issue29037> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue29037] Python 2.7.13 prints version header and exits immediately on Windows 10 x64
New submission from A.B., Khalid: I updated my Python 2.7.12 to 2.7.13 on Windows 10 x64. When I run it in Windows command prompt shell, Python prints the version header and then exits immediately. Like so: """ E:\Users\thisuser>python Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:53:40) [MSC v.1500 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. E:\Users\thisuser> """ This did not happen before. The same happens when Python is run from a powershell. I have no problems running ipython or jupyter notebook, however. And Python does the right thing when run under MSYS2, like so: """ $ python -i Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:53:40) [MSC v.1500 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> """ Could this be an encoding problem? Because MSYS2 is fairly new and I think it might be more friendly to the encoding issues related to Windows shell programming. -- components: Windows messages: 283773 nosy: abkhd, paul.moore, steve.dower, tim.golden, zach.ware priority: normal severity: normal status: open title: Python 2.7.13 prints version header and exits immediately on Windows 10 x64 versions: Python 2.7 ___ Python tracker <http://bugs.python.org/issue29037> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22466] problem with installing python 2.7.8
Khalid added the comment: I tried but I got this error "this installation package could not be opened. verify that the package exists & that you can access it, or contact the application vendor to verify that this is a valid windows installer package" (screen shot in the attachment) by the way I'm admin! On Tue, Sep 23, 2014 at 9:26 PM, Steve Dower wrote: > > Steve Dower added the comment: > > Can you try running this command and then post the log file after > installation fails: > > > msiexec /l*vx log.txt /i "" > > -- > > ___ > Python tracker > <http://bugs.python.org/issue22466> > ___ > -- Added file: http://bugs.python.org/file36703/Capture2.JPG ___ Python tracker <http://bugs.python.org/issue22466> __ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22466] problem with installing python 2.7.8
Khalid added the comment: I found a fix & this is the source http://www.youtube.com/watch?v=KikshWVWhzg but the question is did I make a security vulnerability? On Wed, Sep 24, 2014 at 3:55 AM, Khalid wrote: > > Khalid added the comment: > > I tried downloading installer by firefox,chrome & explorer with latest > update but still the same problem. I'm getting mad about why I can't get an > error log > > On Wed, Sep 24, 2014 at 2:50 AM, Steve Dower > wrote: > > > > > Steve Dower added the comment: > > > > You almost certainly have a corrupted download. I'd try downloading the > > installer again, perhaps with a different browser? > > > > -- > > > > ___ > > Python tracker > > <http://bugs.python.org/issue22466> > > ___ > > > > -- > > ___ > Python tracker > <http://bugs.python.org/issue22466> > ___ > -- ___ Python tracker <http://bugs.python.org/issue22466> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22466] problem with installing python 2.7.8
Khalid added the comment: I tried downloading installer by firefox,chrome & explorer with latest update but still the same problem. I'm getting mad about why I can't get an error log On Wed, Sep 24, 2014 at 2:50 AM, Steve Dower wrote: > > Steve Dower added the comment: > > You almost certainly have a corrupted download. I'd try downloading the > installer again, perhaps with a different browser? > > -- > > ___ > Python tracker > <http://bugs.python.org/issue22466> > ___ > -- ___ Python tracker <http://bugs.python.org/issue22466> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22466] problem with installing python 2.7.8
Khalid added the comment: Downloaded from official website & I run it by simply double click. by the way there is no run as admin On Sep 23, 2014 4:51 AM, "Eric V. Smith" wrote: > > Eric V. Smith added the comment: > > Where did you download the installer from? > > How are you running the installer? > > -- > nosy: +eric.smith > > ___ > Python tracker > <http://bugs.python.org/issue22466> > ___ > -- ___ Python tracker <http://bugs.python.org/issue22466> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22466] problem with installing python 2.7.8
New submission from Khalid: when I'm installing python 2.7.8 I get error "there is a problem with this windows installer package. a DLL required for this install to complete could not be run". I'm using windows 8.1 64bit -- components: Installation files: Capture.JPG messages: 227319 nosy: elctr0 priority: normal severity: normal status: open title: problem with installing python 2.7.8 type: compile error versions: Python 2.7 Added file: http://bugs.python.org/file36693/Capture.JPG ___ Python tracker <http://bugs.python.org/issue22466> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com