Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e2923f5

Browse filesBrowse files
authored
Update main.py (GoogleCloudPlatform#2472)
1 parent 2165c21 commit e2923f5
Copy full SHA for e2923f5

File tree

Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed

‎functions/tips/main.py

Copy file name to clipboardExpand all lines: functions/tips/main.py
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ def scope_demo(request):
8989

9090

9191
# [START functions_tips_lazy_globals]
92+
# [START run_tips_global_lazy]
9293
# Always initialized (at cold-start)
9394
non_lazy_global = file_wide_computation()
9495

@@ -114,6 +115,7 @@ def lazy_globals(request):
114115
lazy_global = function_specific_computation()
115116

116117
return 'Lazy: {}, non-lazy: {}.'.format(lazy_global, non_lazy_global)
118+
# [END run_tips_global_lazy]
117119
# [END functions_tips_lazy_globals]
118120

119121

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.