This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module github.com/rciorba/gopterbugreport | |
go 1.16 | |
require github.com/leanovate/gopter v0.2.9 // indirect |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MyDict: | |
"""Hai să ne implementăm propriul dicționar. | |
Vom ține datele în o listă de liste de 2 elemente unde primul e cheia, iar a doilea e valoarea. | |
""" | |
def __init__(self, sequence=None): | |
"""Inițializează dicționarul. | |
Opțional poate lua o secvență de perechi, sau un alt dicționar. | |
""" | |
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "3.0.0", | |
"commit_info": { | |
"dirty": false, | |
"id": "94c32d525509f0809034bc3e5238ce9ebdf331f8" | |
}, | |
"machine_info": { | |
"processor": "", | |
"python_compiler": "GCC 4.9.1", | |
"node": "zed", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "3.0.0", | |
"datetime": "2017-01-16T23:18:22.756960", | |
"commit_info": { | |
"dirty": false, | |
"id": "4743e03ac12dcae3799943e2885d9d8cad090514" | |
}, | |
"machine_info": { | |
"python_implementation": "CPython", | |
"processor": "", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
UNCONSUMED=() | |
while [[ $# > 0 ]] | |
do | |
key="$1" | |
case $key in | |
-l|--lib) | |
LIBPATH="$2" | |
shift # past argument | |
;; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# mutable list | |
def foobar(arg_string="abc", arg_list=[]): | |
print arg_string, arg_list | |
arg_string = arg_string + "xyz" | |
arg_list.append("F") | |
for i in range(4): | |
foobar() | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print "A" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import test | |
import sys | |
f = test.Foo() | |
del test | |
del sys.modules["test"] | |
import test | |
print isinstance(f, test.Foo) # prints False |