Brett Cannon
caebe22038
Fix bug #1520914 . Starting in 2.4, time.strftime() began to check the bounds
...
of values in the time tuple passed in. Unfortunately people came to rely on
undocumented behaviour of setting unneeded values to 0, regardless of if it was
within the valid range. Now those values force the value internally to the
minimum value when 0 is passed in.
2006-07-18 04:41:36 +00:00
Kurt B. Kaiser
4b7e35b530
Rebinding Tab key was inserting 'tab' instead of 'Tab'. Bug 1179168.
2006-07-18 04:03:16 +00:00
Barry Warsaw
18d2f39af7
decode_rfc2231(): Be more robust against buggy RFC 2231 encodings.
...
Specifically, instead of raising a ValueError when there is a single tick in
the parameter, simply return that the entire string unquoted, with None for
both the charset and the language. Also, if there are more than 2 ticks in
the parameter, interpret the first three parts as the standard RFC 2231 parts,
then the rest of the parts as the encoded string.
Test cases added.
Original fewer-than-3-parts fix by Tokio Kikuchi.
Resolves SF bug # 1218081. I will back port the fix and tests to Python 2.4
(email 3.0) and Python 2.3 (email 2.5).
Also, bump the version number to email 4.0.1, removing the 'alpha' moniker.
2006-07-17 23:07:51 +00:00
Kurt B. Kaiser
a2f60a47b5
Patch 1479219 - Tal Einat
...
1. 'as' highlighted as builtin in comment string on import line
2. Comments such as "#False identity" which start with a keyword immediately
after the '#' character aren't colored as comments.
3. u or U beginning unicode string not correctly highlighted
Closes bug 1325071
2006-07-17 21:59:27 +00:00
Andrew M. Kuchling
7a752e7ad4
Attribute more features
2006-07-17 16:47:54 +00:00
Georg Brandl
c5e3d8a8d6
Add missing NEWS item ( #1522771 )
2006-07-17 13:26:33 +00:00
Georg Brandl
7b71bf3872
Remove usage of sets module (patch #1500609 ).
2006-07-17 13:23:46 +00:00
Fred Drake
83fa22f564
document xmlcore (still minimal; needs mention in each of the xml.* modules)
...
SF bug #1504456 (partial)
2006-07-17 05:47:52 +00:00
Neal Norwitz
e756310848
Add NEWS entry for a bunch of fixes due to warnings produced by Klocworks static analysis tool.
2006-07-17 01:00:16 +00:00
Neal Norwitz
a5e4f22bfb
Reported by Klocwork #151 .
...
v2 can be NULL if exception2 is NULL. I don't think that condition can happen,
but I'm not sure it can't either. Now the code will protect against either
being NULL.
2006-07-17 00:59:04 +00:00
Neal Norwitz
04e39ec815
otherset is known to be non-NULL based on checks before and DECREF after.
...
DECREF otherset rather than XDECREF in error conditions too.
Reported by Klockwork #154 .
2006-07-17 00:57:15 +00:00
Neal Norwitz
b337bb541b
Stop INCREFing name, then checking if it's NULL. name (f_name) should never
...
be NULL so assert it. Fix one place where we could have passed NULL.
Reported by Klocwork #66 .
2006-07-17 00:55:45 +00:00
Neal Norwitz
ee4cc698ca
PyFunction_SetDefaults() is documented as taking None or a tuple.
...
A NULL would crash the PyTuple_Check(). Now make NULL return a SystemError.
Reported by Klocwork #73 .
2006-07-16 02:35:47 +00:00
Neal Norwitz
fc28e0de58
Handle a NULL name properly.
...
Reported by Klocwork #67
2006-07-16 02:32:03 +00:00
Neal Norwitz
4b0a315c31
Use sizeof(buffer) instead of duplicating the constants to ensure they won't
...
be wrong.
The real change is to pass (bufsz - 1) to PyOS_ascii_formatd and 1
to strncat. strncat copies n+1 bytes from src (not dest).
Reported by Klocwork #58 .
2006-07-16 02:22:30 +00:00
Neal Norwitz
c0cde4da2a
Fix memory leak under some conditions.
...
Reported by Klocwork, #98 .
2006-07-16 02:17:36 +00:00
Neal Norwitz
5eaf772980
Fix memory leaks in some conditions.
...
Reported by Klocwork #152 .
2006-07-16 02:15:27 +00:00
Neal Norwitz
109f91414f
proto was dereffed above and is known to be good. No need for X.
...
Reported by Klocwork, #39 .
2006-07-16 02:05:35 +00:00
Neal Norwitz
ce5b3c3188
self is dereffed (and passed as first arg), so it's known to be good.
...
func is returned from PyArg_ParseTuple and also dereffed.
Reported by Klocwork, #30 (self one at least).
2006-07-16 02:02:57 +00:00
Neal Norwitz
ef02b9e144
a & b were dereffed above, so they are known to be valid pointers.
...
z is known to be NULL, nothing to DECREF.
Reported by Klockwork, #107 .
2006-07-16 02:00:32 +00:00
Neal Norwitz
84be93b2db
Bug #1512814 , Fix incorrect lineno's when code within a function
...
had more than 255 blank lines. Byte codes need to go first, line #s second.
2006-07-16 01:50:38 +00:00
Fred Drake
ec5948aae2
clean up some link markup
2006-07-16 01:21:20 +00:00
Bob Ippolito
5ea4bf1c58
Patch #1220874 : Update the binhex module for Mach-O.
2006-07-15 16:53:15 +00:00
George Yoshida
b2d5af8d9e
Bug #15187702 : ext/win-cookbook.html has a broken link to distutils
2006-07-15 16:03:49 +00:00
Fredrik Lundh
76e268bb62
typo
2006-07-14 21:45:48 +00:00
Thomas Heller
b69a3c2bda
Updates for the ctypes documentation.
2006-07-14 18:22:50 +00:00
Thomas Heller
ce049a0aef
Patch #1521817 : The index range checking on ctypes arrays containing
...
exactly one element is enabled again.
2006-07-14 17:51:14 +00:00
Thomas Heller
9f902470da
Make the prototypes of our private PyUnicode_FromWideChar and
...
PyUnicode_AsWideChar replacement functions compatible to the official
functions by using Py_ssize_t instead of int.
2006-07-14 15:01:05 +00:00
Peter Astrand
7d1d43630e
Bug #1223937 : CalledProcessError.errno -> CalledProcessError.returncode.
2006-07-14 14:04:45 +00:00
Andrew M. Kuchling
8c051da2cf
Mention new options
2006-07-14 13:32:38 +00:00
Martin v. Löwis
c7990b5b98
Fix Debug build of _ssl.
2006-07-14 12:31:05 +00:00
Martin v. Löwis
1def4fafe2
Add debug output to analyse buildbot failure.
2006-07-14 12:10:09 +00:00
Martin v. Löwis
d73168d954
Extend build_ssl to Win64, using VSExtComp.
2006-07-14 09:58:55 +00:00
Neal Norwitz
eda87127a8
Try to improve grammar further.
2006-07-14 07:20:04 +00:00
Georg Brandl
13b78d536b
Patch #1521874 : grammar errors in doanddont.tex.
2006-07-14 07:12:54 +00:00
Andrew M. Kuchling
b7eca839f7
Typo fix
2006-07-13 17:37:26 +00:00
Thomas Heller
6e1ad2eb7d
Fix misleading words.
2006-07-13 17:05:13 +00:00
Thomas Heller
2bdf29ec28
Fix #1521375 . When running with root priviledges, 'gcc -o /dev/null'
...
did overwrite /dev/null. Use a temporary file instead of /dev/null.
2006-07-13 17:01:14 +00:00
Thomas Heller
b4dc2ef5da
A misspelled preprocessor symbol caused ctypes to be always compiled
...
without thread support. Replaced WITH_THREADS with WITH_THREAD.
2006-07-13 09:53:47 +00:00
Georg Brandl
9dceedbb97
Accept long options "--help" and "--version".
2006-07-12 15:31:17 +00:00
Thomas Heller
76c5af6216
Fix the wrong description of LibraryLoader.LoadLibrary, and document
...
the DEFAULT_MODE constant.
2006-07-12 14:25:18 +00:00
Thomas Heller
47d7a069d1
Fix #1467450 : ctypes now uses RTLD_GLOBAL by default on OSX 10.3 to
...
load shared libraries.
2006-07-12 08:43:47 +00:00
Neal Norwitz
a1f1090109
Actually change the MAGIC #. Create a new section for 2.5c1 and mention the impact of changing the MAGIC #.
2006-07-12 07:28:29 +00:00
Neal Norwitz
7e49c6eee8
Fix uninitialized memory read reported by Valgrind when running doctest.
...
This could happen if size == 0.
2006-07-12 05:27:46 +00:00
Neal Norwitz
41efc14498
Fix function name in error msg
2006-07-12 05:26:35 +00:00
Neal Norwitz
edef2be4af
Bug #1520864 : unpacking singleton tuples in for loop (for x, in) work again.
2006-07-12 05:26:17 +00:00
Thomas Heller
3b9be2ae6f
Change the ctypes version number to 1.0.0.
2006-07-11 18:40:50 +00:00
Thomas Heller
a42a662fec
When a foreign function is retrived by calling __getitem__ on a ctypes
...
library instance, do not set it as attribute.
2006-07-11 18:28:35 +00:00
Andrew M. Kuchling
b0aa54ece8
Bump version number; add sys._current_frames
2006-07-11 17:20:16 +00:00
Thomas Heller
249f6b1bf4
Add missing Py_DECREFs.
2006-07-11 16:44:25 +00:00