Add new attachment

Only authorized users are allowed to upload new attachments.

This page (revision-8) was last changed on 14-Feb-2019 13:32 by Administrator

This page was created on 04-Oct-2015 20:36 by BlakeMcBride

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Difference between version and

At line 45 removed 2 lines
All variables are local unless declared with {{global}}
At line 66 changed one line
Logical operators (work like lisp!)
Logical operators (works like lisp!)
At line 81 added one line
All variables are local unless declared with {{global}}
At line 83 added one line
At line 109 changed one line
{{{+=}}} works on all data types
|{{{+=}}} | works on all data types
|{{{"""string"""}}} | to embed newlines in string
| {{{pass}}} | is statement that does nothing (used where statements are required)
At line 111 removed one line
Use {{{"""string"""}}} to embed newlines in string
At line 113 removed 3 lines
{{{pass}}} is statement that does nothing (used where statements are required)
At line 122 changed 2 lines
{{{import file1}}} # imports into the file "file1.py"
{{{import file1, file2, file3
{{{import file1 # imports file "file1.py"
import file1, file2, file3
At line 128 changed one line
{{{from file1 import *}}} # imports into the current package
{{{from file1 import * # imports into the current package
At line 130 changed one line
{{{from file1 import (obj1, obj2, …)}}}
from file1 import (obj1, obj2, …)}}}
At line 133 changed one line
{{{ file1.obj1}}}
{{{file1.obj1}}}
At line 135 removed one line
{{{obj1}}}
At line 136 added 2 lines
{{{obj1}}}
At line 156 added one line
At line 158 added 14 lines
!Dictionary
{{{dict = {}
dict[‘key’] = value
value = dict['key']
dict.clear()
len(dict)
dict.get(‘key’)
dict.has_key(‘key’)
dict.keys()
key in dict
del dict['key']}}}
At line 177 changed one line
def getcv1():
@classmethod
def getcv1(cls):
At line 179 changed one line
def setcv1(val):
@classmethod
def setcv1(cls, val):
At line 197 changed 12 lines
!Dictionary
{{{dict = {}
dict[‘key’] = value
dict.clear()
len(dict)
dict.get(‘key’)
dict.has_key(‘key’)
dict.keys()}}}
At line 226 added one line
!ODBC
At line 228 added 18 lines
{{{import pyodbc
conn = pyodbc.connect('DSN=XXX;UID=YYY;PWD=ZZZ;DATABASE=MyDatabase')
cursor = conn.cursor()
cursor.execute("SELECT * from my_table")
while 1:
row = cursor.fetchone()
if not row:
break
print row.name}}}
[https://code.google.com/p/pyodbc/wiki/GettingStarted]
Version Date Modified Size Author Changes ... Change note
8 14-Feb-2019 13:32 4.858 kB Administrator to previous
7 07-Jun-2016 15:45 4.839 kB BlakeMcBride to previous | to last
6 17-Dec-2015 11:48 4.805 kB BlakeMcBride to previous | to last
5 23-Oct-2015 12:11 4.761 kB BlakeMcBride to previous | to last
4 04-Oct-2015 21:05 4.76 kB BlakeMcBride to previous | to last
3 04-Oct-2015 20:56 4.437 kB BlakeMcBride to previous | to last
2 04-Oct-2015 20:46 4.453 kB BlakeMcBride to previous | to last
1 04-Oct-2015 20:36 4.453 kB BlakeMcBride to last
« This page (revision-8) was last changed on 14-Feb-2019 13:32 by Administrator