The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
Python: ZSYS module (mimics SYS)
05-21-2023, 08:24 PM (This post was last modified: 05-21-2023 08:30 PM by StephenG1CMZ.)
Post: #1
Python: ZSYS module (mimics SYS)
ZSYS aims to mimic some of the functionality of the sys module, which is provided with most python's, but is absent from the micropython on most calculators.

The aim of the initial implementation serves two purposes:
To attempt to identify which calculator is running, which may be useful in tweaking portable code.
And to emulate some functions that portable code might call in sys, where it is unavailable.

Note: Those versions of the HP Prime that support Python will have sys built-in. Just use sys, unless you wish to make your code portable.

With thanks to the contributions from this thread:
https://www.hpmuseum.org/forum/thread-19962.html

Stephen Lewkowicz (G1CMZ)
https://my.numworks.com/python/steveg1cmz
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Python: ZSYS module (mimics SYS) - StephenG1CMZ - 05-21-2023 08:24 PM



User(s) browsing this thread: 2 Guest(s)