• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pfalcon / micropython / 1013
98%
master: 98%

Build:
Build:
LAST BUILD BRANCH: pfalcon
DEFAULT BRANCH: master
Ran 28 Oct 2017 02:54PM UTC
Jobs 1
Files 223
Run time 9s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
1013

push

travis-ci

pfalcon
RFC/WIP py/objtype: user classes: Allow to lookup __new__() method.

__new__() method is present by definition in each class, because each class
inherits from "object". But due to effects of multiple inheritance and
subclassing native types, looking it up is tricky: object.__new__ should
be the last choice, if a more specific version is found (in one of multiple
bases, or in native type), that should be used.

This patch implements this behavior by wrapping existing attribute lookup
function, and looking inside "object" only if the otiginal function doesn't
find anything. This relies on "object" not being present explicitly in the
base class chain (otherwise multiple inheritance case will be broken -
object.__new__ will be found while following the very first inheritance
branch, while other branches may have more specific __new__).

This also leads to additional stack usage on each lookup due to extra
function call.

17419 of 17791 relevant lines covered (97.91%)

321131.1 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1013.1 28 Oct 2017 02:54PM UTC 0
97.91
Travis Job 1013.1
Source Files on build 1013
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1013
  • 20b07c39 on github
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc