Code Monkey home page Code Monkey logo

Comments (3)

stephan-hof avatar stephan-hof commented on July 28, 2024

Now with

python3 should be supported. Could you give it a try and report back how it is working ?

from gevent_snmp.

geekhckr avatar geekhckr commented on July 28, 2024

Thanks for python3 changes. I have tried in my local setup it is working fine.

One thing that i have observed was, it accepts python 2 str (bytes) for peername and community.

Are you planning to create a release with these changes?

from gevent_snmp.

stephan-hof avatar stephan-hof commented on July 28, 2024

One thing that i have observed was, it accepts python 2 str (bytes) for peername and community.

Yes and this is intended. The underlying library also requires just a plain char* so no unicode handling at all there. Also SNMP itself has no support for unicode as far as I know.

So image now somebody would do something like this as a community

community = u"\u2603"

How should we convert it to plain bytes ? It is not gevent_snmp responsibilty to know this. It must be the user of the library knowing, how well my device does UTF-8 so I send the snowman as UTF8 encoded bytes.

Are you planning to create a release with these changes?

Hmm currently not. However you can use master for now. We are not planning to make major changes there currently.

from gevent_snmp.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.