typeidea icon indicating copy to clipboard operation
typeidea copied to clipboard

第19页代码勘误:《Django企业开发实战》2020年3月河北第6次印刷

Open MaoningGuan opened this issue 5 years ago • 0 comments

代码实验环境: 操作系统:Windows 10 专业版, 64bit Python环境:anaconda 3, Python 3.7.6

书中代码: if e.args[0] != errno.EAGAIN:

问题阐述: 经过实验验证,该exception返回的e.args[0] = 10035。

代码应修改为: if e.args[0] != errno.EWOULDBLOCK:

MaoningGuan avatar Jun 08 '20 02:06 MaoningGuan