GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - code-roller/python-pointer-library: Pointers for Python. The helps us with pointers in the python language. But, the project is archived.

This repository was archived by the owner on Mar 29, 2021. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

4 Commits
4 Commits

Folders and files

NameName
Last commit message
Last commit date
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
ptr.py
ptr.py
 
 

Repository files navigation

pyPtr

Pointers for Python

Usage

To create a new Pointer:

import ptr

num: int = 10
num_pointer: ptr.Pointer = ptr.Pointer(num)

To get the address and value that the pointer points to:

num_pointer_address: int = num_pointer.getAddress()
num_pointer_value: int = num_pointer.getVal()

To perform calculations:

# += and -=
num_pointer.increment()
num_pointer_value_after_plus_equals: int = num_pointer.getVal()

num_pointer.decrement()
num_pointer_value_after_minus_equals: int = num_pointer.getVal()


# + and -
num_pointer.add(10)
num_pointer_value_after_plus: int = num_pointer.getVal()

num_pointer.sub(15)
num_pointer_value_after_minus: int = num_pointer.getVal()


# ==, !=, <, >, <= and >=
other: int = 15
other_pointer: ptr.Pointer = ptr.Pointer(other)

are_addresses_equal: bool = num_pointer.eqeq(other_pointer)
are_addresses_not_equal: bool = num_pointer.ne(other_pointer)
are_addresses_greater: bool = num_pointer.gt(other_pointer)
are_addresses_less: bool = num_pointer.lt(other_pointer)
are_addresses_less_or_equal: bool = num_pointer.lte(other_pointer)
are_addresses_greater_or_equal: bool = num_pointer.gte(other_pointer)

Credits

Made by these members of the code roller team =D

About

Pointers for Python. The helps us with pointers in the python language. But, the project is archived.

discord.gg/vzcNRVrHR5

Topics

pointerspythonpython-librarypython-module

Resources

Readme
MIT license
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.