[issue11374] pkgutil.extend_path do not recognize py{c,o} file
New submission from Alexandre Badez : extend_path only test if "init.py" files exist, but it should also test "init.pyc" and/or "init.pyo". -- components: Library (Lib) messages: 129896 nosy: Alexandre.Badez priority: normal severity: normal status: open title: pkgutil.extend_path do not recognize py{c,o} file versions: Python 2.5, Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3 ___ Python tracker <http://bugs.python.org/issue11374> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11374] pkgutil.extend_path do not recognize py{c,o} file
Changes by Alexandre Badez : -- type: -> behavior ___ Python tracker <http://bugs.python.org/issue11374> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11374] pkgutil.extend_path do not recognize py{c,o} file
Alexandre Badez added the comment: I've made a simple patch. -- keywords: +patch Added file: http://bugs.python.org/file20977/patch.diff ___ Python tracker <http://bugs.python.org/issue11374> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11374] pkgutil.extend_path do not recognize py{c,o} file
Changes by Alexandre Badez : Removed file: http://bugs.python.org/file20977/patch.diff ___ Python tracker <http://bugs.python.org/issue11374> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11374] pkgutil.extend_path do not recognize py{c,o} file
Alexandre Badez added the comment: A little change in the patch -- Added file: http://bugs.python.org/file20978/patch.diff ___ Python tracker <http://bugs.python.org/issue11374> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24736] argparse add_mutually_exclusive_group do not print help
New submission from Alexandre Badez: Hi, Here is a sample of what I do: >>> import argparse >>> main_parser = argparse.ArgumentParser() >>> group_ex = main_parser.add_mutually_exclusive_group() >>> group_ex1 = group_ex.add_argument_group() >>> group_ex1.add_argument('-a', '--atest', help="help about -a") and None >>> group_ex1.add_argument('-b', '--btest', help="help about -b") and None >>> group_ex.add_argument('-c', '--ctest', help="help about -c") and None >>> main_parser.print_help() usage: [-h] [-a ATEST] [-b BTEST] [-c CTEST] optional arguments: -h, --helpshow this help message and exit -c CTEST, --ctest CTEST help about -c Here is what I would except as help message: >>> main_parser.print_help() usage: [-h] [[-a ATEST] [-b BTEST]] | [-c CTEST] optional arguments: -h, --helpshow this help message and exit -c CTEST, --ctest CTEST help about -c -a ATEST, --atest ATEST help about -a -b BTEST, --btest BTEST help about -b Options '-a' and '-b' are not displayed in the help message due to the "add_mutually_exclusive_group". -- components: Library (Lib) files: test_arg.py messages: 247465 nosy: Alexandre.Badez priority: normal severity: normal status: open title: argparse add_mutually_exclusive_group do not print help type: behavior versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4 Added file: http://bugs.python.org/file40038/test_arg.py ___ Python tracker <http://bugs.python.org/issue24736> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24736] argparse add_mutually_exclusive_group do not print help
Alexandre Badez added the comment: @paul: thanks, I'm very surprised because the parsing work well. It's just the display that do not. Moreover it's not said in the documentation that you cannot nest groups. So maybe we should update the documentation and/or improve the module ? -- ___ Python tracker <http://bugs.python.org/issue24736> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com