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

pfalcon / micropython
98%
master: 98%

Build:
Build:
LAST BUILD BRANCH: pfalcon
DEFAULT BRANCH: master
Repo Added 22 Jan 2017 12:37PM UTC
Files 246
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

LAST BUILD ON BRANCH lookup-new
branch: lookup-new
CHANGE BRANCH
x
Reset
  • lookup-new
  • README-await
  • bytecode-get-loc
  • bytesio-cow
  • cc3200-bye-uos.sep
  • cmp-readbin-writebin
  • cmp-ustruct-stream
  • codeconv-docs
  • commit-real-name
  • cpp-coveralls-0.3.12
  • cross
  • decode_codestate_size
  • docs-cpy-3.5
  • docs-pfalcon-copyright
  • docs-pyboard-geninfo-hw
  • docs-single-index
  • docs-toc-drop-ind-tables
  • docs-ver-release-same
  • embed-readme
  • esp8266-ld-update
  • esp8266-plus-32K
  • extmod-moduselect-ipoll
  • extmod-rommap
  • float-cmp-fix
  • from_bytes-default-endian
  • frozen-sizes
  • gen-pend-throw
  • getsizeof
  • inplace-ops-fallback
  • ipoll
  • libaxtls-auto
  • lookup-attr-locals_dict
  • machine-signal
  • master
  • master-sizable
  • modlwip-multicast-add
  • modlwip-poll-peer-closed
  • mpy-cross-all
  • network-basenic-doc
  • obj-slots
  • obj-slots-revamp
  • obj.h-rom-consts
  • pfalcon
  • pfalcon-20180831
  • pfalcon-20180907
  • pfalcon-20180908
  • pfalcon-20181006
  • pin-docs-remove-call
  • pin-on-off
  • pyboard-exec-device
  • readme-contrib
  • res-stream2
  • resource_stream1
  • reverse-ops
  • run-tests-features
  • signal-subclass-pin-constructor
  • soft-reboot-friendly-repl
  • spec-meth-qstrs-byte
  • spec-methods-all
  • stream-read-writebin
  • test-ffi_float-skip
  • tests-ussl-conn
  • time-pulse-no-exc
  • tinytest-check-output
  • tools-bin2res
  • trav-stkless-always
  • travis-stackless
  • ucrypto
  • unary-op-bc
  • unix-minus-m-pkg
  • ussl-axtls-nblock-reads
  • v1.10
  • v1.11
  • zephyr-1.13-updates
  • zephyr-build-test
  • zephyr-revamp-make
  • zephyr-socket
  • zephyr-socket2
  • zephyr-wip

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

Relevant lines Covered
Build:
Build:
17791 RELEVANT LINES 17419 COVERED LINES
321131.1 HITS PER LINE
Source Files on lookup-new
Detailed source file information is not available for this build.

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
1013 lookup-new 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, looki... push 28 Oct 2017 02:54PM UTC pfalcon travis-ci pending completion  
See All Builds (864)
  • Repo 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