[issue13543] shlex with string ending in space gives "ValueError: No closing quotation"

2011-12-09 Thread ekorn
ekorn added the comment: https://github.com/ipython/ipython/issues/1109#issuecomment-3072571 It seems this was an IPython bug due to slight abuse of the shlex module. Closing as invalid; thanks for your help. -- resolution: -> invalid status: open ->

[issue13543] shlex with string ending in space gives "ValueError: No closing quotation"

2011-12-08 Thread ekorn
ekorn added the comment: FYI, Min RK commented on the IPython issue: https://github.com/ipython/ipython/issues/1109#issuecomment-3071470 In short, shlex.shlex('blob f(" ")', posix=False) fails, whereas shlex.shlex('blob f( " ")', posix=False) "

[issue13543] shlex with string ending in space gives "ValueError: No closing quotation"

2011-12-06 Thread ekorn
New submission from ekorn : It seems shlex fails on processing strings ending in space, causing this bug that I reported for IPython: https://github.com/ipython/ipython/issues/1109 Fernando Perez made a minimal example of the problem, quoted below. As he points out, it would be best to fix

[issue12148] Clarify "or-ing together" doctest option flags

2011-05-22 Thread ekorn
New submission from ekorn : Combining multiple option flags to doctest.testmod(optionflags=...) requires the bitwise or operator |, not plain "or". I therefore suggest rewording "or-ing together individual option flags." to "or-ing together individual option fla

[issue4545] doctest seems to always fail on numpy.array2string

2008-12-05 Thread ekorn
New submission from ekorn <[EMAIL PROTECTED]>: I don't understand this doctest error, resulting from python test_doctest.py Failed example: numpy.array2string(numpy.arange(2)) Expected: [0 1] Got: '[0 1]' The specified output was copied-and-pasted directly from