This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author YoSTEALTH
Recipients YoSTEALTH, christian.heimes, martin.panter, pitrou, r.david.murray, vstinner, yselivanov
Date 2018-02-24.00:53:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1519433619.89.0.467229070634.issue28134@psf.upfronthosting.co.za>
In-reply-to
Content
I am using 3.7.0b1 i don't think this issue is fixed!

# simple mockup:
# --------------
def accept(sock):
    client, addr = sock.accept()
    inside = socket(fileno=client.fileno())
    print(inside)
    # <__main__.Socket fd=5, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('127.0.0.1', 8000), raddr=('127.0.0.1', 42532)>
    return inside

outside = accept(sock)
print(outside)
# <__main__.Socket fd=5, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6>


So the "laddr" and "raddr" goes missing the second its out of the function???

This has wasted days of my time, to even get to this point of figuring out whats going on wasn't easy! extremely frustrating.
History
Date User Action Args
2018-02-24 00:53:39YoSTEALTHsetrecipients: + YoSTEALTH, pitrou, vstinner, christian.heimes, r.david.murray, martin.panter, yselivanov
2018-02-24 00:53:39YoSTEALTHsetmessageid: <1519433619.89.0.467229070634.issue28134@psf.upfronthosting.co.za>
2018-02-24 00:53:39YoSTEALTHlinkissue28134 messages
2018-02-24 00:53:39YoSTEALTHcreate