-
Notifications
You must be signed in to change notification settings - Fork 0
/
PROGRAMMING NOTES.txt
67 lines (49 loc) · 2.06 KB
/
PROGRAMMING NOTES.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
--------------------------------------------------------------------------------
nuovo numero versione
commentare
codificare/gui/icone/labels
tooltips
aggiornare "about" (anche librerie)
traduzionare
buildare translations
changeloggare
readme
testare
aggiornare setup.py
buildare (win + linux)
aggiornare versione su web service
--------------------------------------------------------------------------------
IDE: Eclipse 3.7
Docs:
cx_Freeze - http://cx_freeze.readthedocs.org/en/latest/index.html
lxml
libxml2-dev
libxslt-dev
IMDbPY
install lxml first
[under Windows] python setup.py --without-cutils install
Packaging:
cx_Freeze 4.2
python-dev [under Linux]
libssl-dev [under Linux]
The policy we use with PyQt is as follows:
• Use type str only when working with strictly 7-bit ASCII strings or with
raw 8-bit data, that is, with raw bytes.
• For strings that will be used only by PyQt functions, for example, strings
that are returned by one PyQt function only to be passed at some point to
another PyQt function—do not convert such strings. Simply keep them as
QStrings.
• In all other cases, use unicode strings, converting QStrings to unicode as
soon as possible. In other words, as soon as a QString has been returned
from a Qt function, always immediately convert it to type unicode.
This policy means that we avoid making incorrect assumptions about 8-bit
string encodings (because we use Unicode). It also ensures that the strings we
pass to Python functions have the methods that Python expects: QStrings have
different methods from str and unicode, so passing them to Python functions
can lead to errors. PyQt uses QString rather than unicode because when PyQt
was first created, Python’s Unicode support was nowhere near as good as it
is today.
le liste sono mutabili, quindi se ne faccio delle copie e cambio le copie,
anche l'originale cambia. per caso modifico copie di liste da qualche parte?
usare i set quando voglio liste con item non duplicati