Comments (1)
Users can similarly define subclasses which add the above functions as @classmethod
-decorated methods, or do the isinstance
check before calling super().__init__(...)
- whether subclassing like that is better or worse than external helper functions is a separate matter, but it's also possible.
from python-macaddress.
Related Issues (20)
- Explicitly overloading `__ne__` HOT 3
- `@functools.total_ordering` HOT 6
- Weak References HOT 3
- Retain `.oui` for backwards compatibility? HOT 17
- `self.formats` vs `type(self).formats` HOT 7
- IMEI HOT 4
- Release 2.0.0? HOT 10
- Relentless Robot SemVer or Feely Human SemVer? HOT 1
- Alternatives for custom formats instead of subclassing? HOT 5
- Incremental Parsing? HOT 8
- `SNAP` "addresses" HOT 1
- Why no `__index__`?
- Overloading `+` (and `-`)? HOT 1
- Notes on Avoiding Accidentally Inconsistently Transitive Equality
- MicroPython support
- `self.size` vs `type(self).size` HOT 7
- Prefixed "Groups" of Addresses (like `ipaddress.ip_network`) HOT 16
- Allow Copy Construction or "Casting" to Different Sizes? HOT 18
- EUI-48 and "MAC"; the fate of `macaddress.MAC` HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-macaddress.