Ich verstehe die welt nicht mehr!
Code: Alles auswählen
$ sudo ipython
[sudo] password for myuser:
Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52)
Type "copyright", "credits" or "license" for more information.
IPython 0.8.1 -- An enhanced Interactive Python.
? -> Introduction to IPython's features.
%magic -> Information about IPython's 'magic' % functions.
help -> Python's own help system.
object? -> Details about 'object'. ?object also works, ?? prints more.
In [1]: from socket import *
In [2]: s = socket(AF_INET,SOCK_DGRAM)
In [3]: s.sendto('blabla', ('255.255.255.255', 6668))
---------------------------------------------------------------------------
<class 'socket.error'> Traceback (most recent call last)
/home/kirsch/<ipython console> in <module>()
<class 'socket.error'>: (13, 'Permission denied')