Notice there is no visual difference between single dash - and double-dash --, and the -h option isn't listed under options.
.. argparse::
:module: parser_bug
:func: construct_parser
:prog: python parser_bug.py
| In [1]: from astropy.table import Table | |
| In [2]: | |
| In [2]: numbers = [1, 2, 3] | |
| In [3]: strings = ['a', 'b', 'c'] | |
| In [4]: |
| from astropy.table import Table | |
| numbers = [1, 2, 3] | |
| strings = ['a', 'b', 'c'] | |
| t_numbers = Table(data=[numbers]) | |
| comparison_numbers = (t_numbers['col0'] == 1) | |
| type(comparison_numbers) # this is a Column object | |
| print comparison_numbers |
| from astropy.table import Table | |
| numbers = [1, 2, 3] | |
| strings = ['a', 'b', 'c'] | |
| t_mask_numbers = Table(data=[numbers], masked=True) | |
| comparison_numbers_masked = (t_mask_numbers['col0'] == 1) | |
| type(comparison_numbers_masked) # this is a MaskedColumn object | |
| comparison_numbers_masked # that causes an error on display... | |
| print (comparison_numbers_masked) # ...but can be printed! |
Notice there is no visual difference between single dash - and double-dash --, and the -h option isn't listed under options.
.. argparse::
:module: parser_bug
:func: construct_parser
:prog: python parser_bug.py
| ======================================================================================== test session starts ======================================================================================== | |
| platform darwin -- Python 2.7.5 -- pytest-2.4.0 | |
| Running tests with Astropy version 0.3rc1. | |
| Running tests in /Users/mcraig/anaconda/envs/astropy-0.3rc1/lib/python2.7/site-packages/astropy. | |
| Platform: Darwin-12.5.0-x86_64-i386-64bit | |
| Executable: /Users/mcraig/anaconda/envs/astropy-0.3rc1/python.app/Contents/MacOS/python |