Created
March 3, 2014 20:42
-
-
Save leepa/9334242 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[leepa@joolzbsd ~]$ pkg info python27 | |
python27-2.7.6_4 | |
Name : python27 | |
Version : 2.7.6_4 | |
Installed on : Mon Mar 3 20:39:53 UTC 2014 | |
Origin : lang/python27 | |
Architecture : freebsd:10:x86:64 | |
Prefix : /usr/local | |
Categories : python lang ipv6 | |
Licenses : PSFL | |
Maintainer : python@FreeBSD.org | |
WWW : http://www.python.org/ | |
Comment : Interpreted object-oriented programming language | |
Options : | |
EXAMPLES : on | |
FPECTL : off | |
IPV6 : on | |
NLS : on | |
PTH : off | |
PYMALLOC : on | |
SEM : off | |
THREADS : on | |
UCS2 : off | |
UCS4 : on | |
Shared Libs required: | |
libpython2.7.so | |
libintl.so.9 | |
Flat size : 68.6MiB | |
Description : | |
Python is an interpreted object-oriented programming language, and is | |
often compared to Tcl, Perl or Scheme. | |
WWW: http://www.python.org/ | |
[leepa@joolzbsd ~]$ cat testpy.py | |
import socket | |
r, w = socket.socketpair() | |
w.send(b'X' * 1024) | |
r.recvfrom_into(bytearray(), 1024) | |
[leepa@joolzbsd ~]$ python2.7 testpy.py | |
Traceback (most recent call last): | |
File "testpy.py", line 4, in <module> | |
r.recvfrom_into(bytearray(), 1024) | |
ValueError: nbytes is greater than the length of the buffer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment