Structures

The Structures module
Download

Structures Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • Zelenyak Aleksandr
  • Publisher web site:
  • http://www.python.org/pypi/trans/

Structures Tags


Structures Description

The Structures module Structures is a Python library for the creation of convenient structures of data with reduction of types and пp>>> from structures import *>>>>>> class S(Structure):... i = Integer... s = String... b = Boolean(True)... l = List...>>> s = S()>>> s.i = '1'>>> assert s.i == 1>>> s.s = 'qwerty'>>> s.su'qwerty'>>> s.bTrue>>> s.b = []>>> s.bFalse>>> s.b = 10>>> s.bTrue>>> s.lAttributeError: l>>> s.l = (1, 2, 3)>>> s.l>>> Requirements: · Python


Structures Related Software