Skip to main content

to replace fixed keywords in functions

Project description

The modul fkr offers the function newkey. With newkey you can create new functions with new fixed keywords.

For example:

def apple( x, fruit = ‘strawberry’):

print( x )

print( fruit)

>>>apple(‘An apple is an:’ )

An apple is an:

strawberry

betterapple = fkr.newkey(apple, fruit = ‘apple’)

>>>betterapple(‘An apple is an:’)

An apple is an:

apple

Attention! Once you replaced fruit you can’t replace it anymore in the new function.

If there are some Bugs please let me know: masatamara@googlemail.com

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fkr-1.0.0.zip (980 Bytes view details)

Uploaded Source

File details

Details for the file fkr-1.0.0.zip.

File metadata

  • Download URL: fkr-1.0.0.zip
  • Upload date:
  • Size: 980 Bytes
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for fkr-1.0.0.zip
Algorithm Hash digest
SHA256 bf8392a0ef0804f1a12f44268cd4565dd667de5f5dd45f21c80a301ae7e0c350
MD5 b86193af46889517d31881c6486cb7a4
BLAKE2b-256 d1966214950ddea635277507f2b36716f36e03eda501fd93f3a7d7650b212544

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page