Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    socket.fileno()

    Scheduled Pinned Locked Moved Discussion
    selectasynciosocket
    5 Posts 3 Posters 2.3k Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      hcvst
      last edited by

      Hi,

      my local micropython installation exposes a fileno() method on socket objects whereas the mircopython installation on WiPy/LoPy does not. Is that by design or does that method remain to be ported?

      I am trying to use the select package (from micropython) and asyncio package (from micropython-lib) but both appear to depend on that method to be available.

      Thanks,
      Hans

      D 1 Reply Last reply Reply Quote 0
      • D Offline
        daniel @hcvst
        last edited by

        @hcvst The LoPy port of MicroPython is not yet complete, but we'll have the socket.fileno() method for the release in a few weeks.

        Cheers,
        Daniel

        1 Reply Last reply Reply Quote 0
        • L Offline
          lemariva
          last edited by

          Hi Daniel,

          do you have any news about this? I am using the Wipy 2.0, and socket.fileno() is not available yet.

          Thanks in advance,

          Mauro

          1 Reply Last reply Reply Quote 0
          • D Offline
            daniel
            last edited by

            @lemariva apologies, this was not added as promised, but now I'll make sure to include in the next release.

            1 Reply Last reply Reply Quote 0
            • D Offline
              daniel
              last edited by

              Hello,

              fileno method added here: https://forum.pycom.io/topic/1951/new-firmware-release-version-v1-9-2-b1

              Cheers,
              Daniel

              1 Reply Last reply Reply Quote 1

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • 1 / 1
              • First post
                Last post

              Pycom on Twitter

              Pycom