Comments (2)
Also including return values here as part of this update. It should be possible for the user to specify return values as it is via an argument that can override the inspection. So:
from porchlight import Door
@Door(positional_args=['y'], return_vals=['result1', result2])
def my_door(an_input):
an_output = str(an_input) + "...meaningless nonsense"
return an_output
# this also provides smoother support for things like lambda functions!
my_door = Door(lambda x: x + 1, positional_args=['x'], return_vals=['y'])
from porchlight.
As realized in commit ed1811f, typecheck had been neglected as an input when using Door
previously. This means that type-checking was always on by default if not directly using BaseDoor
. Now, typecheck
is folded into this issue's branch as a fix, and will break previous implementations using earlier versions of porchlight
that required type-checking. In most cases it should be okay, though.
from porchlight.
Related Issues (20)
- Update `DynamicDoor` documentation
- Flesh out `BaseDoor` docstring HOT 1
- Logging restructuring HOT 1
- Allow for Neighborhood to split into identical states
- BaseDoor.return_types should be a dictionary, not a list HOT 1
- Improve testing coverage of porchlight utils HOT 1
- Parameters should have associated "output file" representations
- Let `Neighborhood` initialize with a list of candidate functions/doors
- Param string should use reprs for stored data
- `__name__` is required for `BaseDoor`, but not always present
- Handle situations where non-parsable functions are provided HOT 1
- Return values not properly mapped by `argument_mapping` if not present in argument list.
- Very minor issue in docs due to RtD scheme implementation
- Initialization and finalization settings
- Memory usage monitor
- Pass doors to `Neighborhood.call` and check against available doors HOT 1
- [BUG] Initialization functions with no return values HOT 1
- [BUG] Initialization with keyword argument not recognized as default value
- Add descriptive aliases for `Neighborhood`, `Door`
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 porchlight.