Skip to main content
#



i

n

c

o

l

u

m

e

p

y

.

s

i

n

g

l

e

t

o

n

_

d

e

c

o

r

a

t

o

r







D

e

c

o

r

a

t

o

r



s

i

n

g

l

e

t

o

n



f

o

r



m

e

t

h

o

d

s

,



c

l

a

s

s

e

s



a

n

d



o

t

h

e

r

s



o

b

j

e

c

t

s



p

y

t

h

o

n







#

#



I

n

s

t

a

l

l

i

n

g




`

`

`




$



p

i

p



i

n

s

t

a

l

l



i

n

c

o

l

u

m

e

p

y

.

s

i

n

g

l

e

t

o

n

-

d

e

c

o

r

a

t

o

r




`

`

`







#

#



U

s

a

g

e




F

o

r



u

s

e



i

m

p

o

r

t



p

a

c

k

a

g

e



s

i

n

g

l

e

t

o

n

_

d

e

c

o

r

a

t

o

r




`

`

`




f

r

o

m



i

n

c

o

l

u

m

e

p

y

.

s

i

n

g

l

e

t

o

n

_

d

e

c

o

r

a

t

o

r



i

m

p

o

r

t



s

i

n

g

l

e

t

o

n




`

`

`







#

#



E

x

a

m

p

l

e




#

#

#



U

s

i

n

g



f

u

n

c

t

i

o

n

s




`

`

`








1



f

r

o

m



i

n

c

o

l

u

m

e

p

y

.

s

i

n

g

l

e

t

o

n

_

d

e

c

o

r

a

t

o

r



i

m

p

o

r

t



s

i

n

g

l

e

t

o

n








2



@

s

i

n

g

l

e

t

o

n








3



d

e

f



g

e

n

n

u

m

(

)

:








4











n



=



0








5











w

h

i

l

e



T

r

u

e

:








6



















y

i

e

l

d



n








7



















n



+

=



1








8










9



a



=



g

e

n

n

u

m

(

)






1

0



b



=



g

e

n

n

u

m

(

)






1

1



a

s

s

e

r

t



i

d

(

a

)



=

=



i

d

(

b

)

,



"

N

o

t



s

a

m

e



o

b

j

e

c

t

"






1

2



p

r

i

n

t

(

[

n

e

x

t

(

a

)



f

o

r



x



i

n



r

a

n

g

e

(

5

)

]

)






1

3



p

r

i

n

t

(

[

n

e

x

t

(

b

)



f

o

r



x



i

n



r

a

n

g

e

(

5

)

]

)







`

`

`







#

#

#



U

s

i

n

g



c

l

a

s

s

e

s




`

`

`








1



f

r

o

m



i

n

c

o

l

u

m

e

p

y

.

s

i

n

g

l

e

t

o

n

_

d

e

c

o

r

a

t

o

r



i

m

p

o

r

t



s

i

n

g

l

e

t

o

n






1

4



(

.

.

.

)






1

5








1

6








1

7



@

s

i

n

g

l

e

t

o

n






1

8



c

l

a

s

s



G

e

n

N

u

m

:






1

9











d

e

f



_

_

i

n

i

t

_

_

(

s

e

l

f

)

:






2

0



















s

e

l

f

.

n



=



0






2

1











d

e

f



_

_

i

t

e

r

_

_

(

)

:






2

2



















r

e

t

u

r

n



s

e

l

f






2

3











d

e

f



_

_

n

e

x

t

_

_

(

s

e

l

f

)

:






2

4



















s

e

l

f

.

n



+

=



1






2

5



















r

e

t

u

r

n



s

e

l

f

.

n






2

6








2

7








2

8



x



=



G

e

n

N

u

m

(

)






2

9



y



=



G

e

n

N

u

m

(

)






3

0



a

s

s

e

r

t



i

d

(

x

)



=

=



i

d

(

y

)

,



"

N

o

t



s

a

m

e



o

b

j

e

c

t

"






3

1



p

r

i

n

t

(

[

n

e

x

t

(

x

)



f

o

r



i



i

n



r

a

n

g

e

(

5

)

]

)






3

2



p

r

i

n

t

(

[

n

e

x

t

(

y

)



f

o

r



i



i

n



r

a

n

g

e

(

5

)

]

)




~




















































































`

`

`




Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

incolumepy.singleton_decorator-1.0.4-py2.py3-none-any.whl (4.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file incolumepy.singleton_decorator-1.0.4-py3.8.egg.

File metadata

  • Download URL: incolumepy.singleton_decorator-1.0.4-py3.8.egg
  • Upload date:
  • Size: 2.7 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.1 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.8.0

File hashes

Hashes for incolumepy.singleton_decorator-1.0.4-py3.8.egg
Algorithm Hash digest
SHA256 55e9f0ce875ae6c58741abd54bceb95ea25905dc80479f72574a6753fcc7fc47
MD5 ef794f87d405923a54089572a4c20921
BLAKE2b-256 1fa98ec40e0162e97b308ddfff562ea1003ec018441d350b1bd9830fb3af1603

See more details on using hashes here.

File details

Details for the file incolumepy.singleton_decorator-1.0.4-py2.py3-none-any.whl.

File metadata

  • Download URL: incolumepy.singleton_decorator-1.0.4-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.1 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.8.0

File hashes

Hashes for incolumepy.singleton_decorator-1.0.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 50e46db540eb59900c363c72e23de165614fc5cf015626e7364ec3ed97c596bb
MD5 bae3cd1662c1c8de47bb76e3d118f43a
BLAKE2b-256 291988522e035690029ae941b1a6ab682c70bc265376449e819d66e0d62d0816

See more details on using hashes here.

Release history Release notifications | RSS feed

1.2.1

2 files

1.2.0

2 files

This release

1.0.4 This release

2 files

1.0.3

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page