code stringlengths 3 6.57k |
|---|
list(set(map(len, src_suffixes) |
match_src_suffix(name, src_suffixes=src_suffixes, lengths=lengths) |
map(lambda l, n=name: n[-l:], lengths) |
SCons.Util.flatten(source) |
SCons.Util.is_String(s) |
match_src_suffix(env.subst(s) |
self.get_src_suffix(env) |
self._adjustixes(s, None, src_suf) |
match_src_suffix(s.name) |
result.append(s) |
bld._execute(env, None, [s], overwarn) |
len(tlist) |
m(t.name) |
filter(mss, tlist) |
result.extend(tlist) |
result.append(s) |
env.get_factory(self.source_factory) |
env.arg2nodes(result, source_factory) |
_get_src_builders_key(self, env) |
id(env) |
memoizer_counters.append(SCons.Memoize.CountDict('get_src_builders', _get_src_builders_key) |
get_src_builders(self, env) |
id(env) |
SCons.Util.is_String(bld) |
builders.append(bld) |
_subst_src_suffixes_key(self, env) |
id(env) |
memoizer_counters.append(SCons.Memoize.CountDict('subst_src_suffixes', _subst_src_suffixes_key) |
subst_src_suffixes(self, env) |
id(env) |
map(lambda x, s=self, e=env: e.subst(x) |
src_suffixes(self, env) |
self.subst_src_suffixes(env) |
self.get_src_builders(env) |
builder.src_suffixes(env) |
sdict.has_key(s) |
suffixes.append(s) |
CompositeBuilder(SCons.Util.Proxy) |
add_action() |
__init__(self, builder, cmdgen) |
logInstanceCreation(self, 'Builder.CompositeBuilder') |
SCons.Util.Proxy.__init__(self, builder) |
add_action(self, suffix, action) |
self.cmdgen.add_action(suffix, action) |
self.set_src_suffix(self.cmdgen.src_suffixes() |
print("String example") |
print(f"String: {s}") |
print(f"String Capitalized: {s.capitalize() |
print(f"String Finding index: {s.find('e') |
print(f"String Lowercase: {s.lower() |
print(f"String Uppercase: {s.upper() |
print(f"String Length: {len(s) |
print(f"String Replace: {s.replace('this', 'THIS') |
print(f"String Swapcase: {s.swapcase() |
print(f"String Title: {s.title() |
print() |
print("List examples") |
print(f"List: {L}") |
print(f"List slicing: {L[1:]}") |
print(f"List slicing: {L[::-1]}") |
print(f"List slicing: {L[0:2]}") |
print(f"List: {L}") |
L.append(10) |
print(f"List Appending:{L}") |
print(f"List Popping:{L.pop() |
L.insert(4, 20) |
print(f"List Inserting : {L}") |
L.reverse() |
print(f"List Reversed: {L}") |
L.sort() |
reversed(L) |
print("Reversed list: {}".format(reversed_list) |
print(i) |
print(f"List Sorted: {L}") |
print("\nTuple example") |
print(f"tup1[0]: {tup1[0]}") |
print(f"tup2[1:5]: {tup2[1:5]}") |
print(f"Creating new from existing: tup3: {tup3}") |
print("\nDictionary examples") |
print(f"Dicstionary d: {d}") |
print(f"Updating d['Age']: {d['Age']}") |
print(f"Updating d['School']: {d['School']}") |
print(f"Dictionary d: {d}") |
print(f"Get Qualification : {d.get('Qualification', 'NA') |
print(f"Dictionary items: {d.items() |
print(f"Dictionary keys: {d.keys() |
print(f"Dictionary values: {d.values() |
print("\nSets example") |
print(my_set) |
my_set.add(2) |
print(my_set) |
my_set.update([2, 3, 4]) |
print(my_set) |
my_set.update([4, 5], {1, 6, 8}) |
print(my_set) |
my_set.remove(6) |
print(my_set) |
my_set.pop() |
print(my_set) |
print(A | B) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.