annotate PC/python_nt.rc @ 87690:66c1c9f32567 default tip

Add use_weakref option to functools.lru_cache The use_weakref option makes lru_cache create weak references to the function arguments when creating the cache key, which prevents them from staying in the memory forever even after all other references to them are gone. This is a proof of concept for http://bugs.python.org/issue19859
author Radomir Dopieralski <devel@sheep.art.pl>
date Tue, 03 Dec 2013 16:02:48 +0100
parents 86edad2058ed
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4123
71b43d4b7cd0 Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff changeset
1 // Resource script for Python core DLL.
71b43d4b7cd0 Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff changeset
2 // Currently only holds version information.
71b43d4b7cd0 Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff changeset
3 //
71b43d4b7cd0 Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff changeset
4 #include "winver.h"
71b43d4b7cd0 Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff changeset
5
71b43d4b7cd0 Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff changeset
6 #define MS_WINDOWS
71b43d4b7cd0 Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff changeset
7 #include "modsupport.h"
71b43d4b7cd0 Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff changeset
8 #include "patchlevel.h"
30666
58fe64f7fb19 To build on windows, the manual editing of the python_nt.rc file to
Thomas Heller <theller@ctypes.org>
parents: 30030
diff changeset
9 #ifdef _DEBUG
58fe64f7fb19 To build on windows, the manual editing of the python_nt.rc file to
Thomas Heller <theller@ctypes.org>
parents: 30030
diff changeset
10 # include "pythonnt_rc_d.h"
58fe64f7fb19 To build on windows, the manual editing of the python_nt.rc file to
Thomas Heller <theller@ctypes.org>
parents: 30030
diff changeset
11 #else
58fe64f7fb19 To build on windows, the manual editing of the python_nt.rc file to
Thomas Heller <theller@ctypes.org>
parents: 30030
diff changeset
12 # include "pythonnt_rc.h"
4127
a7a9d83505c4 Use MS_DLL_ID and similar changes
Guido van Rossum <guido@python.org>
parents: 4123
diff changeset
13 #endif
a7a9d83505c4 Use MS_DLL_ID and similar changes
Guido van Rossum <guido@python.org>
parents: 4123
diff changeset
14
75389
f1a9a6505731 Update copyright years and version name.
Georg Brandl <georg@python.org>
parents: 75205
diff changeset
15 /* e.g., 3.3.0a1
16487
771dbb155575 SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents: 15971
diff changeset
16 * PY_VERSION comes from patchevel.h
771dbb155575 SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents: 15971
diff changeset
17 */
771dbb155575 SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents: 15971
diff changeset
18 #define PYTHON_VERSION PY_VERSION "\0"
771dbb155575 SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents: 15971
diff changeset
19
771dbb155575 SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents: 15971
diff changeset
20 /* 64-bit version number as comma-separated list of 4 16-bit ints */
771dbb155575 SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents: 15971
diff changeset
21 #if PY_MICRO_VERSION > 64
771dbb155575 SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents: 15971
diff changeset
22 # error "PY_MICRO_VERSION > 64"
771dbb155575 SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents: 15971
diff changeset
23 #endif
771dbb155575 SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents: 15971
diff changeset
24 #if PY_RELEASE_LEVEL > 99
771dbb155575 SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents: 15971
diff changeset
25 # error "PY_RELEASE_LEVEL > 99"
771dbb155575 SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents: 15971
diff changeset
26 #endif
771dbb155575 SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents: 15971
diff changeset
27 #if PY_RELEASE_SERIAL > 9
771dbb155575 SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents: 15971
diff changeset
28 # error "PY_RELEASE_SERIAL > 9"
771dbb155575 SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents: 15971
diff changeset
29 #endif
771dbb155575 SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents: 15971
diff changeset
30 #define PYVERSION64 PY_MAJOR_VERSION, PY_MINOR_VERSION, FIELD3, PYTHON_API_VERSION
771dbb155575 SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents: 15971
diff changeset
31
6353
666accd66878 Bump version and store DLL version in a string variable (for branding).
Guido van Rossum <guido@python.org>
parents: 4127
diff changeset
32 // String Tables
666accd66878 Bump version and store DLL version in a string variable (for branding).
Guido van Rossum <guido@python.org>
parents: 4127
diff changeset
33 STRINGTABLE DISCARDABLE
666accd66878 Bump version and store DLL version in a string variable (for branding).
Guido van Rossum <guido@python.org>
parents: 4127
diff changeset
34 BEGIN
16487
771dbb155575 SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents: 15971
diff changeset
35 1000, MS_DLL_ID
6353
666accd66878 Bump version and store DLL version in a string variable (for branding).
Guido van Rossum <guido@python.org>
parents: 4127
diff changeset
36 END
666accd66878 Bump version and store DLL version in a string variable (for branding).
Guido van Rossum <guido@python.org>
parents: 4127
diff changeset
37
4123
71b43d4b7cd0 Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff changeset
38 /////////////////////////////////////////////////////////////////////////////
71b43d4b7cd0 Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff changeset
39 //
71b43d4b7cd0 Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff changeset
40 // Version
71b43d4b7cd0 Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff changeset
41 //
71b43d4b7cd0 Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff changeset
42
71b43d4b7cd0 Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff changeset
43 VS_VERSION_INFO VERSIONINFO
16487
771dbb155575 SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents: 15971
diff changeset
44 FILEVERSION PYVERSION64
771dbb155575 SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters <tim.peters@gmail.com>
parents: 15971
diff changeset
45 PRODUCTVERSION PYVERSION64
4123
71b43d4b7cd0 Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff changeset
46 FILEFLAGSMASK 0x3fL
71b43d4b7cd0 Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff changeset
47 #ifdef _DEBUG
71b43d4b7cd0 Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff changeset
48 FILEFLAGS 0x1L
71b43d4b7cd0 Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff changeset
49 #else
71b43d4b7cd0 Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff changeset
50 FILEFLAGS 0x0L
71b43d4b7cd0 Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff changeset
51 #endif
71b43d4b7cd0 Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff changeset
52 FILEOS 0x40004L
71b43d4b7cd0 Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff changeset
53 FILETYPE 0x1L
71b43d4b7cd0 Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff changeset
54 FILESUBTYPE 0x0L
71b43d4b7cd0 Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff changeset
55 BEGIN
71b43d4b7cd0 Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff changeset
56 BLOCK "StringFileInfo"
71b43d4b7cd0 Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff changeset
57 BEGIN
71b43d4b7cd0 Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff changeset
58 BLOCK "000004b0"
71b43d4b7cd0 Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff changeset
59 BEGIN
32062
69433fc1c816 Changed company name to PSF. Added 2004 to copyright years.
Tim Peters <tim.peters@gmail.com>
parents: 30666
diff changeset
60 VALUE "CompanyName", "Python Software Foundation\0"
4123
71b43d4b7cd0 Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff changeset
61 VALUE "FileDescription", "Python Core\0"
71b43d4b7cd0 Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff changeset
62 VALUE "FileVersion", PYTHON_VERSION
71b43d4b7cd0 Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff changeset
63 VALUE "InternalName", "Python DLL\0"
83124
ca1c5a656bdd Copyright update to 2013.
Georg Brandl <georg@python.org>
parents: 75205
diff changeset
64 VALUE "LegalCopyright", "Copyright © 2001-2013 Python Software Foundation. Copyright © 2000 BeOpen.com. Copyright © 1995-2001 CNRI. Copyright © 1991-1995 SMC.\0"
4123
71b43d4b7cd0 Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff changeset
65 VALUE "OriginalFilename", PYTHON_DLL_NAME "\0"
71b43d4b7cd0 Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff changeset
66 VALUE "ProductName", "Python\0"
71b43d4b7cd0 Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff changeset
67 VALUE "ProductVersion", PYTHON_VERSION
71b43d4b7cd0 Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff changeset
68 END
71b43d4b7cd0 Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff changeset
69 END
71b43d4b7cd0 Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff changeset
70 BLOCK "VarFileInfo"
71b43d4b7cd0 Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff changeset
71 BEGIN
71b43d4b7cd0 Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff changeset
72 VALUE "Translation", 0x0, 1200
71b43d4b7cd0 Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff changeset
73 END
71b43d4b7cd0 Added dllbase_nt.txt and python_nt.rc;
Guido van Rossum <guido@python.org>
parents:
diff changeset
74 END