Skip to content

Python3pkg/PyMultiPointer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyMultiPointer

It's a way to create multidimensional pointers

Installation

Installation is easy. Just do

pip install multipointer

Alternatively you can download the repository and start setup.py with the parameter install as with every other module

How to use it

Import it:

from multipointer import *

Convert a variable into one you can use the index method:

# for dict
converted = dict({"key": "value"})
# for list
converted = list([foo, bar])
# etc.

Use the multidimensional index method:

d = {
  "list": [
    "Hi", "Hey"
  ]
}
d.index("list", 0)
# Returns -> "Hey"

The index function:

To use the index function you don't have to convert the object:

d = {
  "list": [
    "Hi", "Hey"
  ]
}
index(d, "list", 0)

About

It's a way to create multidimensional pointers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages