Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #55895

Re: Where and when does Python say this to you?

From gracemia gracemia <gracemia@gmail.com>
Subject Re: Where and when does Python say this to you?
Newsgroups comp.lang.python
References <b2134cf5-d4d0-4538-a240-0e3d0b7aacfb@w19g2000yqa.googlegroups.com>
Message-ID <20112882627usenet@eggheadcafe.com> (permalink)
Organization TeraNews.com
Date 2011-02-08 13:26 +0000

Show all headers | View raw


 File "prueba.py", line 4, in <module>
    sock = socket(AF_UNIX, SOCK_STREAM)
NameError: name 'AF_UNIX' is not defined

code:

import socket
sock = socket(AF_UNIX, SOCK_STREAM)

Thank you !


Submitted via EggHeadCafe 
Statistics, Probability, Lotteries and Dumb Programmers
http://www.eggheadcafe.com/tutorials/aspnet/041de19a-e704-468f-bd3c-79164fc739f5/statistics-probability-lotteries-and-dumb-programmers.aspx

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: AF_UNIX socket not supported Jean-Paul Calderone <calderone.jeanpaul@gmail.com> - 2011-02-08 04:49 -0800
  Re: Where and when does Python say this to you? gracemia gracemia <gracemia@gmail.com> - 2011-02-08 13:27 +0000
  Re: Where and when does Python say this to you? gracemia gracemia <gracemia@gmail.com> - 2011-02-08 13:26 +0000
    Re: Where and when does Python say this to you? Grant Edwards <invalid@invalid.invalid> - 2011-02-08 14:54 +0000
  Re: Where and when does Python say this to you? gracemia gracemia <gracemia@gmail.com> - 2011-02-08 13:28 +0000

csiph-web