Serhiy Storchaka
46e1ce214b
Issue #18783 : Removed existing mentions of Python long type in docstrings,
...
error messages and comments.
2013-08-27 20:17:03 +03:00
Serhiy Storchaka
9594942716
Issue #18783 : Removed existing mentions of Python long type in docstrings,
...
error messages and comments.
2013-08-27 19:40:23 +03:00
Ezio Melotti
e0c69161bc
#18741 : merge with 3.3.
2013-08-17 16:13:22 +03:00
Ezio Melotti
b5bc353b88
#18741 : fix more typos. Patch by Févry Thibault.
2013-08-17 16:11:40 +03:00
doko@ubuntu.com
bcaddf6382
- Issue #17754 : Make ctypes.util.find_library() independent of the locale.
2013-05-15 18:04:50 +02:00
doko@ubuntu.com
ef535584a9
- Issue #17754 : Make ctypes.util.find_library() independent of the locale.
2013-05-15 18:02:13 +02:00
Brett Cannon
4c14b5de1c
#17115,17116: Have modules initialize the __package__ and __loader__
...
attributes to None.
The long-term goal is for people to be able to rely on these
attributes existing and checking for None to see if they have been
set. Since import itself sets these attributes when a loader does not
the only instances when the attributes are None are from someone
overloading __import__() and not using a loader or someone creating a
module from scratch.
This patch also unifies module initialization. Before you could have
different attributes with default values depending on how the module
object was created. Now the only way to not get the same default set
of attributes is to circumvent initialization by calling
ModuleType.__new__() directly.
2013-05-04 13:56:58 -04:00
Ezio Melotti
4e59af7abd
#7855 : merge with 3.3.
2013-05-04 17:47:54 +03:00
Ezio Melotti
28faf03d44
#7855 : Add tests for ctypes/winreg for issues found in IronPython. Initial patch by Dino Viehland.
2013-05-04 17:46:23 +03:00
Victor Stinner
765531d2d0
Issue #17516 : use comment syntax for comments, instead of multiline string
2013-03-26 01:11:54 +01:00
Giampaolo Rodola'
0166a283f6
modernize some modules' code by replacing OSError->ENOENT/ENOTDIR/EPERM/EEXIST occurrences with the corresponding pep-3151 exceptions (FileNotFoundError, NotADirectoryError, etc.)
2013-02-12 15:14:17 +01:00
Serhiy Storchaka
73cfd79533
Fix test_from_dll* in test_returnfuncptrs.py.
2013-02-07 15:00:02 +02:00
Serhiy Storchaka
f5d245a0a0
Fix test_from_dll* in test_returnfuncptrs.py.
2013-02-07 14:59:25 +02:00
Serhiy Storchaka
c2255ac153
Fix test_from_dll* in test_returnfuncptrs.py.
2013-02-07 14:58:44 +02:00
Serhiy Storchaka
ac06352c70
Temporarily disable test_from_dll in test_returnfuncptrs.py for Windows.
2013-02-04 15:20:16 +02:00
Serhiy Storchaka
358751e7bd
Temporarily disable test_from_dll in test_returnfuncptrs.py for Windows.
2013-02-04 15:19:59 +02:00
Serhiy Storchaka
a66b46aad6
Temporarily disable test_from_dll in test_returnfuncptrs.py for Windows.
2013-02-04 15:19:37 +02:00
Serhiy Storchaka
b6a53404b7
Issue #6083 : Fix multiple segmentation faults occured when PyArg_ParseTuple
...
parses nested mutating sequence.
2013-02-04 12:57:16 +02:00
Serhiy Storchaka
1d0bb9c8f9
Issue #6083 : Fix multiple segmentation faults occured when PyArg_ParseTuple
...
parses nested mutating sequence.
2013-02-04 12:54:04 +02:00
Serhiy Storchaka
19c4e0df29
Issue #6083 : Fix multiple segmentation faults occured when PyArg_ParseTuple
...
parses nested mutating sequence.
2013-02-04 12:47:24 +02:00
Benjamin Peterson
d41e01dfb5
merge 3.3 ( #5289 )
2013-02-03 19:26:51 -05:00
Benjamin Peterson
cfe34744e3
fix find_library on Solaris ( closes #5289 )
2013-02-03 19:25:11 -05:00
Serhiy Storchaka
f011881d7d
Issue #17041 : Fix testing when Python is configured with the
...
--without-doc-strings.
2013-01-27 20:04:26 +02:00
Serhiy Storchaka
26f1166510
Issue #17041 : Fix testing when Python is configured with the
...
--without-doc-strings.
2013-01-27 20:03:39 +02:00
Serhiy Storchaka
9d0add0c7e
Issue #17041 : Fix testing when Python is configured with the
...
--without-doc-strings.
2013-01-27 19:47:45 +02:00
Serhiy Storchaka
441d30fac7
Issue #15989 : Fix several occurrences of integer overflow
...
when result of PyLong_AsLong() narrowed to int without checks.
This is a backport of changesets 13e2e44db99d and 525407d89277.
2013-01-19 12:26:26 +02:00
Serhiy Storchaka
9101e23ff6
Issue #15989 : Fix several occurrences of integer overflow
...
when result of PyLong_AsLong() narrowed to int without checks.
This is a backport of changesets 13e2e44db99d and 525407d89277.
2013-01-19 12:41:45 +02:00
Serhiy Storchaka
7898043868
Issue #15989 : Fix several occurrences of integer overflow
...
when result of PyLong_AsLong() narrowed to int without checks.
2013-01-15 01:12:17 +02:00
Andrew Svetlov
2606a6f197
Issue #16719 : Get rid of WindowsError. Use OSError instead
...
Patch by Serhiy Storchaka.
2012-12-19 14:33:35 +02:00
Richard Oudkerk
ea69bd3ce1
Issue #16169 : Fix ctypes.WinError()'s confusion between errno and winerror
2012-10-09 13:28:10 +01:00
Meador Inge
b17ad53e39
Issue #15406 : Fix deprecation warning in ctypes test_bitfields.py
...
Patch by Flávio Ribeiro.
2012-07-20 12:52:42 -05:00
Meador Inge
ca9652ea5d
Issue #15406 : Fix deprecation warning in ctypes test_bitfields.py
...
Patch by Flávio Ribeiro.
2012-07-20 12:48:34 -05:00
Meador Inge
7506dab2e8
Issue #6493 : Fix handling of c_uint32 bitfields with width of 32 on Windows.
2012-07-19 00:14:35 -05:00
Meador Inge
60c2266afe
Issue #6493 : Fix handling of c_uint32 bitfields with width of 32 on Windows.
2012-07-19 00:01:22 -05:00
Larry Hastings
605a62ddb1
Issue #15118 : Change return value of os.uname() and os.times() from
...
plain tuples to immutable iterable objects with named attributes
(structseq objects).
2012-06-24 04:33:36 -07:00
Meador Inge
d102e04e4a
Issue #9041 : raised exception is misleading
...
An issue in ctypes.c_longdouble, ctypes.c_double, and ctypes.c_float that
caused an incorrect exception to be returned in the case of overflow has been
fixed.
2012-05-28 14:47:53 -05:00
Meador Inge
031e25b0f7
Issue #9041 : raised exception is misleading
...
An issue in ctypes.c_longdouble, ctypes.c_double, and ctypes.c_float that
caused an incorrect exception to be returned in the case of overflow has been
fixed.
2012-05-28 14:21:16 -05:00
Brett Cannon
cb66eb0dec
Issue #13959 : Deprecate imp.get_suffixes() for new attributes on
...
importlib.machinery that provide the suffix details for import.
The attributes were not put on imp so as to compartmentalize
everything importlib needs for setting up imports in
importlib.machinery.
This also led to an indirect deprecation of inspect.getmoduleinfo() as
it directly returned imp.get_suffix's returned tuple which no longer
makes sense.
2012-05-11 12:58:42 -04:00
Stefan Krah
9a2d99e28a
- Issue #10181 : New memoryview implementation fixes multiple ownership
...
and lifetime issues of dynamically allocated Py_buffer members (#9990 )
as well as crashes (#8305 , #7433 ). Many new features have been added
(See whatsnew/3.3), and the documentation has been updated extensively.
The ndarray test object from _testbuffer.c implements all aspects of
PEP-3118, so further development towards the complete implementation
of the PEP can proceed in a test-driven manner.
Thanks to Nick Coghlan, Antoine Pitrou and Pauli Virtanen for review
and many ideas.
- Issue #12834 : Fix incorrect results of memoryview.tobytes() for
non-contiguous arrays.
- Issue #5231 : Introduce memoryview.cast() method that allows changing
format and shape without making a copy of the underlying memory.
2012-02-25 12:24:21 +01:00
Meador Inge
ffeee3518a
Issue #13979 : Fix ctypes.util.find_library ldconfig regex
2012-02-13 22:08:39 -06:00
Meador Inge
558880451c
Issue #12142 : Fixed reference cycle when importing ctypes
2012-02-04 20:38:20 -06:00
Meador Inge
8582bb1ebd
Issue #12142 : Fixed reference cycle when importing ctypes
2012-02-04 20:36:48 -06:00
Meador Inge
4bc45b7a9f
Issue #13380 : add an internal function for resetting the ctypes caches
2011-11-25 22:37:44 -06:00
Meador Inge
11e381310b
Issue #13380 : add an internal function for resetting the ctypes caches
2011-11-25 22:33:32 -06:00
Meador Inge
1efb33a682
Issue #12881 : ctypes: Fix segfault with large structure field names.
2011-10-03 21:44:22 -05:00
Meador Inge
29f43f7368
Issue #12881 : ctypes: Fix segfault with large structure field names.
2011-10-03 21:48:30 -05:00
Victor Stinner
d83f226d93
test_ctypes: Windows is no more a special case
2011-09-28 13:36:20 +02:00
Amaury Forgeot d'Arc
88354ed8e3
Remove trailing spaces
2011-09-12 21:17:09 +02:00
Amaury Forgeot d'Arc
65604b51e0
Merge 3.2: Issue #12483 : ctypes: Fix a crash when the destruction of a callback
...
object triggers the garbage collector.
2011-09-12 21:09:12 +02:00
Amaury Forgeot d'Arc
bbe46d63ee
Issue #12483 : ctypes: Fix a crash when the destruction of a callback
...
object triggers the garbage collector.
2011-09-12 21:03:36 +02:00