[issue2741] documentation -- do serversockets work with ipv6

2008-05-05 Thread Mike MacFaden

Mike MacFaden <[EMAIL PROTECTED]> added the comment:

then change 'possible values' to 'for example'

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2741>
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2741] documentation -- do serversockets work with ipv6

2008-05-05 Thread Mike MacFaden

Mike MacFaden <[EMAIL PROTECTED]> added the comment:

so i suggest just removing this sentence --

  AF_INET and socket.AF_UNIX are two possible values.

this would imply that all socket address families are supported.
but if that is not true just list the exceptions.

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2741>
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2741] documentation -- do serversockets work with ipv6

2008-05-02 Thread Mike MacFaden

Mike MacFaden <[EMAIL PROTECTED]> added the comment:

Martin v. Löwis wrote:
> Martin v. Löwis <[EMAIL PROTECTED]> added the comment:
> 
> I fail to see the issue. There are many other address
> families supported as well, such as AF_BLUETOOTH, AF_PACKET,
> AF_TIPC, and AF_NETLINK, depending on the system. The
> documentation just lists some examples.

the way i read the text, i gathered that it might not work
with sockets belonging to a subset of address families.

thanks,
mike

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2741>
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2742] example code does not work

2008-05-02 Thread Mike MacFaden

Mike MacFaden <[EMAIL PROTECTED]> added the comment:

Martin v. Löwis wrote:
> Martin v. Löwis <[EMAIL PROTECTED]> added the comment:
> 
> What operating system are you using? It could be a bug in the
> operating system as well. 

hi martin,

what i've tested so far...

  freebsd 6.2 - release 12 jan 2007
socket.gaierror: (8, 'hostname nor servname provided, or not known')

  Red Hat Enterprise Linux Client release 5.1 (Tikanga), gnu/linux
2.6.18-53.el5
 socket.gaierror: (-2, 'Name or service not known')

mike

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2742>
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2742] example code does not work

2008-05-02 Thread Mike MacFaden

New submission from Mike MacFaden <[EMAIL PROTECTED]>:

the url 
  http://docs.python.org/lib/socket-example.html
gives an example that uses socket.getaddrinfo that has this code

   HOST=''
   ...
   for res in socket.getaddrinfo(HOST, PORT, socket.AF_UNSPEC,
 socket.SOCK_STREAM, 0, socket.AI_PASSIVE)

but this fails on freebsd 6.1/python 2.5 as follows

> /usr/home/mrm/s2.py(30)()
-> for res in socket.getaddrinfo(HOST, PORT, socket.AF_UNSPEC, 
socket.SOCK_STREAM, 0, socket.AI_PASSIVE):
(Pdb) p HOST
''
(Pdb) n
gaierror: (8, 'hostname nor servname provided, or not known')
> /usr/home/mrm/s2.py(30)()

but setting 
  HOST=None
works fine.

either this is a doc bug or a code bug, your pick.

--
assignee: georg.brandl
components: Documentation
messages: 66103
nosy: georg.brandl, mrm
severity: normal
status: open
title: example code does not work
type: behavior
versions: Python 2.5

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2742>
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2741] documentation -- do serversockets work with ipv6

2008-05-02 Thread Mike MacFaden

New submission from Mike MacFaden <[EMAIL PROTECTED]>:

the url
   http://docs.python.org/lib/node633.html
states 
   1)   address_family
   The family of protocols to which the server's socket belongs. 
 socket.AF_INET and socket.AF_UNIX are two possible values.

would suggest including socket.AF_INET6 as well if it is supported
or what criteria makes a socket not usable with this class.

--
assignee: georg.brandl
components: Documentation
messages: 66102
nosy: georg.brandl, mrm
severity: normal
status: open
title: documentation -- do serversockets work with ipv6
versions: Python 2.5

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2741>
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com