Python 标准库参考指南 3.13 13.6 Unix 平台 ..... 816 16.13.7 Linux 平台 ..... 817 16.13.8 Android 平台 ..... 817 16.14 errno --- 标准 errno 系统符号 ..... 817 16.15 ctypes --- Python 的外部函数库 ..... 824 16.15.1 ctypes 教程 ..... 824 16 不能互换,尽管它们的名称和用途相似。有关何时使用的详细信息,请参阅 NotImplemented。 ## exception OSError([arg]) exception OSError(errno, strerror[, filename[, winerror[, filename2]]]) 此异常在一个系统函数返回系统相关的错误时将被引发,此类错误包括 I/O 操作失败例如“文件未找到 文OS exceptions 中所描述的。具体的子类取决于最终的errno值。此行为仅在直接或通过别名来构造OSError时发生,并且在子类化时不会被继承。 ## errno 来自于 C 变量 errno 的数字错误码。 ## winerror 在 Windows 下,此参数将给出原生的 Windows 错误码。而 errno 属性将是该原生错误码在 POSIX 平台下的近似转换形式。 在0 码力 | 2246 页 | 11.74 MB | 1 年前3
Haskell 2010 Language ReportC 219 26 Foreign.C.Error 221 26.1 Haskell representations of errno values 221 26.1.1 Common errno symbols 222 26.1.2 Errno functions 225 26.1.3 Guards for IO operations that may fail 226 SPECIFICATION OF EXTERNAL ENTITIES foreign import ccall "errno.h &errno" errno :: Ptr CInt It imports the address of the variable errno, which is of the C type int. Dynamic import. The type of String module Foreign.C.Error # Chapter 26 Foreign.C.Error module Foreign.C.Error ( Errno(Errno), eOK, e2BIG, eACCES, eADDRINUSE, eADDRNOTAVAIL, eADV, eAFNOSUPPORT, eAGAIN, eALREADY, eBADF0 码力 | 329 页 | 1.43 MB | 2 年前3
Tornado 6.0 Documentation
6/library/asyncio.html#module-asyncio] event loop. Example usage for a simple TCP server: import errno import functools import socket import tornado.ioloop from tornado.ioloop import IOStream async def connection, address = sock.accept() except socket.error as e: if e.args[0] not in (errno.EWOULDBLOCK, errno.EGAIN): raise return connection.setblocking(0) io_loop = tornado.ioloop.IOLoop there was nothing to read (the socket returned EWOULDBLOCK [https://docs.python.org/3.6/library/errno.html#errno.EWOULDBLOCK] or equivalent), and zero on EOF. Changed in version 5.0: Interface redesigned0 码力 | 869 页 | 692.83 KB | 2 年前3
Python 标准库参考指南 2.7.18 panel stack extension for curses ..... 555 15.15 platform —获取底层平台的标识数据 ..... 556 15.16 errno —Standard errno system symbols ..... 560 15.17 ctypes —Python 的外部函数库 ..... 566 16 Optional Operating exceptions of this type are created with a 2-tuple, the first item is available on the instance's errno attribute (it is assumed to be an error number), and the second item is available on the strerror The filename attribute is None when this exception is created with other than 3 arguments. The errno and strerror attributes are also None when the instance was created with other than 2 or 3 arguments0 码力 | 1552 页 | 7.42 MB | 1 年前3
Python 标准库参考指南 2.7.18 panel stack extension for curses ..... 555 15.15 platform — 获取底层平台的标识数据 ..... 556 15.16 errno — Standard errno system symbols ..... 560 15.17 ctypes — Python 的外部函数库 ..... 566 16 Optional Operating exceptions of this type are created with a 2-tuple, the first item is available on the instance's errno attribute (it is assumed to be an error number), and the second item is available on the strerror The filename attribute is None when this exception is created with other than 3 arguments. The errno and strerror attributes are also None when the instance was created with other than 2 or 3 arguments0 码力 | 1552 页 | 7.42 MB | 1 年前3
Python 标准库参考指南 2.7.18 panel stack extension for curses ..... 555 15.15 platform — 获取底层平台的标识数据 ..... 556 15.16 errno — Standard errno system symbols ..... 560 15.17 ctypes — Python 的外部函数库 ..... 566 16 Optional Operating exceptions of this type are created with a 2-tuple, the first item is available on the instance's errno attribute (it is assumed to be an error number), and the second item is available on the strerror The filename attribute is None when this exception is created with other than 3 arguments. The errno and strerror attributes are also None when the instance was created with other than 2 or 3 arguments0 码力 | 1552 页 | 7.42 MB | 1 年前3
ThinkJS 2.0 Documentationthe output is {errno: 0, errmsg: "", data: {"name": "thinkjs"}}, the client can determine whether there is an exception with the current interface through errno is 0 or not. ## 指定错误号和错误信息 } } JavaScript In this example, the output is {errno: 1000, errmsg: "connect error"} . When clients found errno is greater than zero, then it knows there are exceptions with the and error message are errno and errmsg respectively. If needed, you can modify the configuration file src/common/config/error.js to reset them. export default { key: 'errno', // error number0 码力 | 141 页 | 1.61 MB | 2 年前3
ThinkJS 2.1 Documentationthe output is {errno: 0, errmsg: "", data: {"name": "thinkjs"}}, the client can determine whether there is an exception with the current interface through errno is 0 or not. ## 指定错误号和错误信息 } } JavaScript In this example, the output is {errno: 1000, errmsg: "connect error"} . When clients found errno is greater than zero, then it knows there are exceptions with the and error message are errno and errmsg respectively. If needed, you can modify the configuration file src/common/config/error.js to reset them. export default { key: 'errno', // error number0 码力 | 148 页 | 1.69 MB | 2 年前3
ThinkJS 2.2 Documentationthe output is {errno: 0, errmsg: "", data: {"name": "thinkjs"}}, the client can determine whether there is an exception with the current interface through errno is 0 or not. ## 指定错误号和错误信息 } } JavaScript In this example, the output is {errno: 1000, errmsg: "connect error"} . When clients found errno is greater than zero, then it knows there are exceptions with the and error message are errno and errmsg respectively. If needed, you can modify the configuration file src/common/config/error.js to reset them. export default { key: 'errno', // error number0 码力 | 156 页 | 2.62 MB | 2 年前3
Python 标准库参考指南 3.6.15 字符的工具 651 16.13 curses.panel —curses 的 panel 栈扩展 653 16.14 platform —获取底层平台的标识数据 655 16.15 errno —标准 errno 系统符号 658 16.16 ctypes —Python 的外部函数库 664 # 17 并发执行 695 17.1 threading —基于线程的并行 695 17.2 multiprocessing 有相似的名称和用途。请参阅NotImplemented了解有关何时使用它们的详细说明。 ## exception OSError ([arg]) ## exception OSError (errno, strerror[, filename[, winerror[, filename2]]]) 此异常在一个系统函数返回系统相关的错误时将被引发,此类错误包括I/O操作失败例如“文件未找到”或 ,如下文OS exceptions中所描述的。具体的子类取决于最终的errno值。此行为仅在直接或通过别名来构造OSError时发生,并且在子类化时不会被继承。 ## errno 来自于C变量errno的数字错误码。 ## winerror 在 Windows 下,此参数将给出原生的 Windows 错误码。而 errno 属性将是该原生错误码在 POSIX 平台下的近似转换形式。 在W0 码力 | 1886 页 | 8.95 MB | 1 年前3
共 456 条
- 1
- 2
- 3
- 4
- 5
- 6
- 46













