Search notes:

(some) Python statements

class

See class

def

def defines a user defined function object.

for

The for statement can be used, for example, to iterate over a numeric range or to iterate over the individual characters of a string.

global

See global and nonlocal

if

See if

import

See import

pass

Explicitly do nothing.
def Foo():
    pass

raise

raise raises an exception.
See also exception handling

while

while cond: iterates over a block of code until a certain condition (cond) becomes false.

with

See here.

yield

yield

See also

assert checks a condition if __debug__ is True. If the condition is False, it raises an AssertionError exception.
break
pass is Python's no-op statement.
return
del

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1758192482, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/Python/statements/index(108): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78