[issue26076] redundant checks in tok_get in Parser\tokenizer.c

Oren Milman report at bugs.python.org
Sun Jan 10 17:16:44 EST 2016


Oren Milman added the comment:

Sorry for being so clueless.
The diff is attached.

I manually did some checks to verify that relevant stuff work correctly (the imaginary number 0j, and fractions starting with '0.').
I run 'python -m test', and got the following output:
352 tests OK.
1 test altered the execution environment:
    test_subprocess
45 tests skipped:
    test_bz2 test_crypt test_curses test_dbm_gnu test_dbm_ndbm
    test_devpoll test_epoll test_fcntl test_fork1 test_gdb test_grp
    test_idle test_ioctl test_kqueue test_lzma test_nis test_openpty
    test_ossaudiodev test_pipes test_poll test_posix test_pty test_pwd
    test_readline test_resource test_smtpnet test_socketserver
    test_spwd test_sqlite test_ssl test_syslog test_tcl
    test_threadsignals test_timeout test_tix test_tk test_ttk_guionly
    test_ttk_textonly test_urllib2net test_urllibnet test_wait3
    test_wait4 test_winsound test_xmlrpc_net test_zipfile64

Then, I removed my patch (and made sure hg diff output nothing), rebuilt CPython, run 'python -m test', and got exactly the same output.

----------
versions: +Python 2.7, Python 3.2, Python 3.3, Python 3.4, Python 3.5
Added file: http://bugs.python.org/file41574/issue26076.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26076>
_______________________________________


More information about the Python-bugs-list mailing list