Gustavo Niemeyer
6fa0c5a452
Bug #1202493 : Fixing SRE parser to handle '{}' as perl does, rather than
...
considering it exactly like a '*'.
2005-09-14 08:54:39 +00:00
Neal Norwitz
4655e44b0f
break sets a breakpoint rather than stopping the loop.
...
It *appears* a flag is necessary instead.
This was tested in gdb 6.0.
Backport candidate
2005-09-05 16:16:49 +00:00
Walter Dörwald
78a78b0768
Fix rest markup and typos.
2005-09-01 12:04:29 +00:00
Walter Dörwald
c5238b8288
SF bug #1235646 : codecs.StreamRecoder.next() now reencodes the data it reads
...
from the input stream, so that the output is a byte string in the correct
encoding instead of a unicode string.
2005-09-01 11:56:53 +00:00
Walter Dörwald
a47d1c08d0
SF bug #1251300 : On UCS-4 builds the "unicode-internal" codec will now complain
...
about illegal code points. The codec now supports PEP 293 style error handlers.
(This is a variant of the Nik Haldimann's patch that detects truncated data)
2005-08-30 10:23:14 +00:00
Martin v. Löwis
5dbdc59577
Patch #1168594 : set sizes of non-regular files to zero. Fixes #1167128 .
...
Will backport to 2.4.
2005-08-27 10:07:56 +00:00
Georg Brandl
5a650a253c
patch [ 810023 ] Fix for off-by-one bug in urllib.URLopener.retrieve
2005-08-26 08:51:34 +00:00
Georg Brandl
d2e3ba7a35
patch [ 756021 ] Allow socket.inet_aton("255.255.255.255") on Windows
2005-08-26 08:34:00 +00:00
Georg Brandl
4550b8db56
typo
2005-08-26 06:43:52 +00:00
Georg Brandl
02c42871cf
Disallow keyword arguments for type constructors that don't use them.
...
(fixes bug #1119418 )
2005-08-26 06:42:30 +00:00
Georg Brandl
02760f9b25
Correcting my last BZ2 entry. Adding one for #1215928 .
2005-08-25 13:10:41 +00:00
Martin v. Löwis
8b59514e57
Make IDNA return an empty string when the input is empty. Fixes #1163178 .
...
Will backport to 2.4.
2005-08-25 11:03:38 +00:00
Georg Brandl
532efabf1d
patch #848017 : make Cookie more RFC-compliant.
2005-08-24 22:34:21 +00:00
Georg Brandl
b925602f16
Patch [ 1062060 ] fix for 1016880 urllib.urlretrieve silently truncates dwnld
2005-08-24 18:46:39 +00:00
Georg Brandl
568973181a
Patch [ 784089 ] A program to scan python files and list those require coding
2005-08-24 18:32:30 +00:00
Martin v. Löwis
0a5d4a20e7
Patch #1167716 : Support Unicode filenames in mkpath. Fixes #1121494 .
...
Will backport to 2.4.
2005-08-24 14:55:22 +00:00
Martin v. Löwis
d35edda682
Forward UnicodeDecodeError into SyntaxError for source encoding errors.
...
Will backport to 2.4.
2005-08-24 08:39:24 +00:00
Martin v. Löwis
56066d2e55
Return complete lines from codec stream readers
...
even if there is an exception in later lines, resulting in
correct line numbers for decoding errors in source code. Fixes #1178484 .
Will backport to 2.4.
2005-08-24 07:38:12 +00:00
Georg Brandl
6d2b346140
bug [ 1192315 ] 'clear -1' in pdb
2005-08-24 07:36:17 +00:00
Georg Brandl
79c122f568
bug [ 1190204 ] 3.29 site is confusing re site-packages on Windows
2005-08-24 07:31:33 +00:00
Georg Brandl
6f2bbd353b
bug [ 1193849 ] os.path.expanduser documentation wrt. empty $HOME
2005-08-24 07:26:55 +00:00
Georg Brandl
38387b8b91
bug [ 728515 ] mmap's resize method resizes the file in win32 but not unix
2005-08-24 07:17:40 +00:00
Martin v. Löwis
faffa15842
Revert previous checkin.
2005-08-24 06:43:09 +00:00
Martin v. Löwis
bc3b06087c
Patch #1262036 : Make tarfile name absolute. Fixes #1257255 .
...
Will backport to 2.4.
2005-08-24 06:06:52 +00:00
Andrew M. Kuchling
88b8582e45
Typo fixes
2005-08-23 00:57:07 +00:00
Georg Brandl
f33d01d304
bug [ 1266296 ] Mistakes in decimal.Context.subtract documentation
2005-08-22 19:35:18 +00:00
Georg Brandl
f0de6a18bb
Bug #1266283 : lexists() is not exported from os.path
2005-08-22 18:02:59 +00:00
Georg Brandl
33a5f2af59
Fix BZ2File.(x)readlines() for files without a newline.
2005-08-21 14:16:04 +00:00
Raymond Hettinger
beb3101b05
Add a C API for sets and frozensets.
2005-08-16 03:47:52 +00:00
Barry Warsaw
e2eca0b709
Port from the Python 2.4 branch, patches for SF bug # 900092,
...
hotshot.stats.load.
2005-08-15 18:14:19 +00:00
Neil Schemenauer
f98e6b15ba
Fix pystack command.
2005-08-13 00:28:41 +00:00
Neil Schemenauer
cf52c07843
Change the %s format specifier for str objects so that it returns a
...
unicode instance if the argument is not an instance of basestring and
calling __str__ on the argument returns a unicode instance.
2005-08-12 17:34:58 +00:00
Martin v. Löwis
ebd9d5ba1a
Patch #1180695 : Implement nanosecond stat resolution on FreeBSD,
...
add st_gen, st_birthtime.
2005-08-09 15:00:59 +00:00
Martin v. Löwis
147fbe5a55
Patch #1239112 : Correct LINKCC C++ test. Fixes #1189330 .
...
Backported to 2.4.
2005-08-07 21:09:30 +00:00
Martin v. Löwis
b813c53cd8
Patch #827386 : Support absolute source paths in msvccompiler.py.
...
Backported to 2.4.
2005-08-07 20:51:04 +00:00
Georg Brandl
649f8e7de2
patch [ 1105730 ] Faster commonprefix in macpath, ntpath, etc.
2005-08-03 07:30:12 +00:00
Georg Brandl
f13c4ba11b
[ 1243192 ] Incorrect documentation of re.UNICODE
2005-08-02 10:28:08 +00:00
Raymond Hettinger
9f1a6796eb
Revised the set() and frozenset() implementaion to use its own internal
...
data structure instead of using dictionaries. Reduces memory consumption
by 1/3 and provides modest speed-ups for most set operations.
2005-07-31 01:16:36 +00:00
Michael W. Hudson
8137bea4ca
This is barry-scott's patch:
...
[ 1231069 ] ioctl has problem with -ive request codes
by using the 'I' not the 'i' format code to PyArg_ParseTuple().
Backport candidate? Maybe...
2005-07-27 20:24:40 +00:00
Raymond Hettinger
e452c7af77
Update permissions for Johannes Gijsbers.
2005-07-27 17:59:02 +00:00
Guido van Rossum
755149fb97
Ouch, move that comment to the right place.
2005-07-27 00:00:44 +00:00
Guido van Rossum
49a4b68b8b
Fix a problem in Tkinter introduced by SF patch #869468 (checked in as
...
1.179): delete bogus __hasattr__ and __delattr__ methods on class Tk
that were breaking Tkdnd.
2005-07-26 23:57:46 +00:00
Trent Mick
8321b42f38
Upgrade Windows build to zlib 1.2.3 (a security fix)
2005-07-26 02:29:21 +00:00
Georg Brandl
7eb4b7d177
Fix all wrong instances of "it's".
2005-07-22 21:49:32 +00:00
Georg Brandl
08c02dbb85
[ 1243081 ] repair typos
2005-07-22 18:39:19 +00:00
Georg Brandl
150db73c78
added news entry for previous checkin
2005-07-18 08:53:17 +00:00
Tim Peters
de7990b8af
SF bug #1238681 : freed pointer is used in longobject.c:long_pow().
...
In addition, long_pow() skipped a necessary (albeit extremely unlikely
to trigger) error check when converting an int modulus to long.
Alas, I was unable to write a test case that crashed due to either
cause.
Bugfix candidate.
2005-07-17 23:45:23 +00:00
Georg Brandl
5dbda75a02
- Bug #1015140 : disambiguated the term "article id" in nntplib docs and
...
docstrings to either "article number" or "message id".
2005-07-17 20:27:41 +00:00
Hye-Shik Chang
4e422817eb
Add support for FreeBSD 7.
2005-07-17 02:36:59 +00:00
Georg Brandl
a4a8b820aa
bug [ 1238170 ] threading.Thread uses {} as default argument
2005-07-15 09:13:21 +00:00
Raymond Hettinger
8bfa8935ea
textwrap now processes text chucks at O(n) speed instead of O(n**2).
...
Patch #1209527 (Contributed by Connelly).
2005-07-15 06:53:35 +00:00
Raymond Hettinger
d5d469d3d1
Brett requests that Flovis's permissions be dropped.
2005-07-14 17:34:00 +00:00
Georg Brandl
5c5fe2f445
RFE [ 1216944 ] Add Error Code Dictionary to urllib2
2005-07-14 06:40:47 +00:00
Michael W. Hudson
0edc7a03e2
Fix:
...
[ 1229429 ] missing Py_DECREF in PyObject_CallMethod
Add a test in test_enumerate, which is a bit random, but suffices
(reversed_new calls PyObject_CallMethod under some circumstances).
2005-07-12 10:21:19 +00:00
Tim Peters
ecc6e6a54e
SF bug 1185883: PyObject_Realloc can't safely take over a block currently
...
managed by C, because it's possible for the block to be smaller than the
new requested size, and at the end of allocated VM. Trying to copy over
nbytes bytes to a Python small-object block can segfault then, and there's
no portable way to avoid this (we would have to know how many bytes
starting at p are addressable, and std C has no means to determine that).
Bugfix candidate. Should be backported to 2.4, but I'm out of time.
2005-07-10 22:30:55 +00:00
Georg Brandl
af410b510d
bug [ 1234979 ] Lock.acquire treats only 1 as True
2005-07-08 22:26:13 +00:00
Raymond Hettinger
fafc1aeccc
Note Floris's last name.
2005-07-08 14:47:38 +00:00
Raymond Hettinger
6e447d0cd3
Add permissions for the Summer of Code project.
2005-07-08 14:37:56 +00:00
Michael W. Hudson
b89638148b
Fix bug
...
[ 1232517 ] OverflowError in time.utime() causes strange traceback
A needed error check was missing.
(Actually, this error check may only have become necessary in fairly
recent Python, not sure).
Backport candidate.
2005-07-05 15:21:58 +00:00
Georg Brandl
9e43acf2f3
bug #1177468 : don't cache /dev/urandom file descriptor in os.urandom
2005-07-04 17:16:07 +00:00
Raymond Hettinger
3296e696db
SF bug #1224347 : int/long unification and hex()
...
Hex longs now print with lowercase letters like their int counterparts.
2005-06-29 23:29:56 +00:00
Georg Brandl
5284b532d1
- Bug #839151 : Fix an attempt to access sys.argv in the warnings module
...
though this can be missing in embedded interpreters
2005-06-26 22:54:58 +00:00
Georg Brandl
2f210b6bca
- Bug #1155638 : Fix a bug which affected HTTP 0.9 responses in httplib.
2005-06-26 22:09:06 +00:00
Georg Brandl
fbff1bcd69
- Bug #1100201 : Cross-site scripting was possible on BaseHTTPServer via
...
error messages.
2005-06-26 21:36:25 +00:00
Georg Brandl
379f99dbc3
Add NEWS entries for bugs closed at Bug Day.
2005-06-26 21:09:38 +00:00
Georg Brandl
40c7165e7d
NEWS entry for last bugfix
2005-06-25 21:08:46 +00:00
Raymond Hettinger
da99d1cbfe
SF bug #1224621 : tokenize module does not detect inconsistent dedents
2005-06-21 07:43:58 +00:00
Michael W. Hudson
188d4366be
Fix bug:
...
[ 1163563 ] Sub threads execute in restricted mode
basically by fixing bug 1010677 in a non-broken way.
Backport candidate.
2005-06-20 16:52:57 +00:00
Raymond Hettinger
68c0453418
Add untokenize() function to allow full round-trip tokenization.
...
Should significantly enhance the utility of the module by supporting
the creation of tools that modify the token stream and writeback the
modified result.
2005-06-10 11:05:19 +00:00
Georg Brandl
9166e1a24a
Bug #1196315 : fix weakref.WeakValueDictionary constructor.
2005-06-04 09:20:03 +00:00
Georg Brandl
6b95f1d963
Bug #1194181 : bz2.BZ2File didn't handle mode 'U' correctly.
2005-06-03 19:47:00 +00:00
Michael W. Hudson
df88846ebc
This is my patch:
...
[ 1180995 ] binary formats for marshalling floats
Adds 2 new type codes for marshal (binary floats and binary complexes), a
new marshal version (2), updates MAGIC and fiddles the de-serializing of
code objects to be less likely to clobber the real reason for failing if
it fails.
2005-06-03 14:41:55 +00:00
Georg Brandl
268e61cf74
Bug #1213894 : os.path.realpath didn't resolve symlinks that were the first
...
component of the path.
2005-06-03 14:28:50 +00:00
Raymond Hettinger
f8f937f211
Update permissions for Birkenfeld.
2005-06-03 11:15:03 +00:00
Hye-Shik Chang
5f937a7b8b
Patch #1212117 : Add optional attribute st_flags to os.stat_result
...
when the member is available on the platform. (Contributed by
Diego Petteno)
2005-06-02 13:09:30 +00:00
Michael W. Hudson
da85a90808
NEWS entry for the patch I checked in last week.
2005-06-01 11:34:22 +00:00
Raymond Hettinger
671e95b329
Add permissions for Reinhold Birkenfeld.
2005-05-28 23:20:09 +00:00
Skip Montanaro
bbf12ba7b2
Disallow opening files with modes 'aU' or 'wU' as specified by PEP
...
278. Closes bug 967182.
2005-05-20 03:07:06 +00:00
Skip Montanaro
5ff1492720
Add O_SHLOCK & O_EXLOCK. Closes patch #1103951 .
2005-05-16 02:42:22 +00:00
Skip Montanaro
174dd2219d
Add better datetime support to xmlrpclib module. Closes patch #1120353 .
2005-05-14 20:54:16 +00:00
Skip Montanaro
d3b01deb17
credit source of idea for recent doc changes
2005-05-12 13:44:23 +00:00
Raymond Hettinger
7c5e618577
Update Paul Prescod's permissions.
2005-04-30 21:25:19 +00:00
Brett Cannon
c3647ac93e
Make subclasses of int, long, complex, float, and unicode perform type
...
conversion using the proper magic slot (e.g., __int__()). Also move conversion
code out of PyNumber_*() functions in the C API into the nb_* function.
Applied patch #1109424 . Thanks Walter Doewald.
2005-04-26 03:45:26 +00:00
Martin v. Löwis
d7c795e729
Make parse_makefile fallback to environment variables if nothing is
...
defined in the makefile. Get CFLAGS from the Makefile, instead of
getting OPT, BASE_CFLAGS and EXTRA_CFLAGS individually.
2005-04-25 07:14:03 +00:00
Brett Cannon
08cd598c21
Introduced EXTRA_CFLAGS as an environment variable used by the Makefile. Meant
...
to be used for flags that change binary compatibility.
Distutils was tweaked to also use the variable if used during compilation of
the interpreter.
2005-04-24 22:26:38 +00:00
Walter Dörwald
bc8e642c1b
If the data read from the bytestream in readline() ends in a '\r' read one more
...
byte, even if the user has passed a size parameter. This extra byte shouldn't
cause a buffer overflow in the tokenizer. The original plan was to return a line
ending in '\r', which might be recognizable as a complete line and skip any '\n'
that was read afterwards. Unfortunately this didn't work, as the tokenizer only
recognizes '\n' as line ends, which in turn lead to joined lines and
SyntaxErrors, so this special treatment of a split '\r\n' has been dropped. (It
can only happen with a temporarily exhausted bytestream now anyway.)
Fixes parts of SF bugs #1163244 and #1175396 .
2005-04-21 21:32:03 +00:00
Brett Cannon
49ab700cc1
Clarify usage of OPT by noting that if it is set the default values will be
...
left out.
2005-04-20 20:49:39 +00:00
Barry Warsaw
c8d907c60b
As per discussion on python-dev, descriptors defined in C with a NULL setter
...
now raise AttributeError instead of TypeError, for consistency with their
pure-Python equivalent.
2005-04-19 23:43:40 +00:00
Brett Cannon
a267563f43
Add a line explaining what env var to use to set the compiler flags and an
...
example of how to do it so that it is passed directly to ./configure .
2005-04-19 20:28:09 +00:00
Michael W. Hudson
774479c68b
Fix:
...
[ 1176893 ] Readline segfault
by unsilly-ing PyGILState_Release().
Backport candidate.
2005-04-18 08:46:17 +00:00
Raymond Hettinger
8ec676e9fa
Update permissions for Finn Bock.
2005-04-13 22:04:21 +00:00
Raymond Hettinger
3033734081
Update permissions for Eric Price.
2005-04-11 03:11:11 +00:00
Raymond Hettinger
95ed80b0e0
Update status for Irme de Jong.
2005-04-10 16:36:16 +00:00
Martin v. Löwis
ab9ec1654f
Patch #1177597 : Fix various bugs in Demo/classes/Complex.py.
2005-04-09 10:53:34 +00:00
Brett Cannon
f4189916e3
Flush out support for ``class B(): pass`` syntax by adding support to the
...
'parser' module and 'compiler' package.
Closes patch #1176012 . Thanks logistix.
2005-04-09 02:30:16 +00:00
Raymond Hettinger
da524a9d30
Record removal of permissions for Charles Waldman.
2005-04-08 20:43:19 +00:00
Tim Peters
207d5ebfc4
Add ESR info.
2005-04-08 20:02:08 +00:00
Raymond Hettinger
efcd1d3c41
Record a drop request by Ken Manheimer.
2005-04-08 19:09:19 +00:00
Raymond Hettinger
1f0d103da9
Record a drop request by Moshe Zadka.
2005-04-08 18:36:14 +00:00
Tim Peters
b53b741171
Info about Eric Price.
2005-04-08 17:16:28 +00:00
Raymond Hettinger
af2c70a5c7
Update permissions log for Reedy, Holden, Haring, and Cole.
2005-04-08 03:19:09 +00:00
Michael W. Hudson
e3afc598bc
In a threads-disabled build, typing Ctrl-C into a raw_input() crashed,
...
because (essentially) I didn't realise that PY_BEGIN/END_ALLOW_THREADS
actually expanded to nothing under a no-threads build, so if you somehow
NULLed out the threadstate (e.g. by calling PyThread_SaveThread) it would
stay NULLed when you return to Python. Argh!
Backport candidate.
2005-04-07 10:11:19 +00:00
Tim Peters
a739b08d12
By popular demand from Linux-heads(!), renamed developers to developers.txt.
2005-04-06 00:59:02 +00:00
Raymond Hettinger
7dcdd8c3e8
Begin a log of developer permissions.
2005-04-05 22:35:15 +00:00
Walter Dörwald
a6e8a4ad12
Since PyPI only accepts UTF-8 encoded data now, make sure that the data is
...
properly encoded and include the encoding in the Content-Type header.
2005-03-31 13:57:38 +00:00
Michael W. Hudson
b330adf9eb
NEWS entries for the bugs I fixed yesterday.
2005-03-31 09:35:44 +00:00
Bob Ippolito
ed233460d8
Update NEWS for patch 1171735 (Darwin 8 build fixes)
2005-03-29 13:47:59 +00:00
Anthony Baxter
12b6f6cac7
Move exception finalisation later in the shutdown process - this
...
fixes the crash seen in bug #1165761
2005-03-29 13:36:16 +00:00
Raymond Hettinger
267b868f23
* Fix decimal's handling of foreign types. Now returns NotImplemented
...
instead of raising a TypeError. Allows other types to successfully
implement __radd__() style methods.
* Remove future division import from test suite.
* Remove test suite's shadowing of __builtin__.dir().
2005-03-27 10:47:39 +00:00
Martin v. Löwis
55f1bb8bfa
Add the upload command. Make all dist commands register their
...
outputs with the distribution object.
2005-03-21 20:56:35 +00:00
Brett Cannon
e6c430dffe
Add comment about optional option for keeping indentation level from previous
...
line.
2005-03-21 20:41:51 +00:00
Matthias Klose
31a58df5ed
fix two typos in python(1)
2005-03-20 14:16:03 +00:00
Raymond Hettinger
4aec61e0fc
Add a remove() method to collections.deque objects.
2005-03-18 21:20:23 +00:00
Walter Dörwald
09515af5e2
Fix typo.
2005-03-18 10:28:24 +00:00
Raymond Hettinger
bea3f6f5c7
Bug #1163325 : "special" decimals aren't hashable
2005-03-15 04:59:17 +00:00
Raymond Hettinger
96229b1918
Add two new functions, any() and all().
2005-03-11 06:49:40 +00:00
Raymond Hettinger
984f9bb714
operator.itemgetter() and operator.attrgetter() now support extraction
...
of multiple fields. This provides direct support for sorting by
multiple keys.
2005-03-09 16:38:48 +00:00
Martin v. Löwis
e2713becd8
Build with --disable-unicode again. Fixes #1158607 .
...
Will backport to 2.4.
2005-03-08 15:03:08 +00:00
Martin v. Löwis
b60ae99601
Convert file names of posix.access according to the file system encoding.
2005-03-08 09:10:29 +00:00
Martin v. Löwis
78be7df9e4
Patch #918101 : Add tarfile open mode r|* for auto-detection of the
...
stream compression; add, for symmetry reasons, r:* as a synonym of r.
2005-03-05 12:47:42 +00:00
Brett Cannon
409d8f2ebd
Allow classes to be defined with empty parentheses. This means that
...
``class C(): pass`` is no longer a syntax error.
2005-03-05 06:47:57 +00:00
Brett Cannon
07eca3a99b
Add a highlight group for denoting bad whitespace. Also added a match rule for
...
leading tabs in a line when in Python mode.
Also fixed some grammatical errors in the comments.
2005-03-05 05:52:21 +00:00
Greg Ward
40407943b7
SF #1149508 : ensure textwrap handles hyphenated numbers correctly,
...
eg. "2004-03-04" is not broken across lines. (Merged from 2.4 branch.)
2005-03-05 02:53:17 +00:00
Martin v. Löwis
00a73e7715
Patch #1043890 : tarfile: add extractall() method.
2005-03-04 19:40:34 +00:00
Martin v. Löwis
fd78a6f7f8
Patches #925152 , #1118602 : Avoid reading after the end of the buffer
...
in pyexpat.GetInputContext. Will backport to 2.4.
2005-03-04 14:37:01 +00:00
Martin v. Löwis
c72dd38f30
Patch #1075887 : Don't require MSVC in distutils if there is nothing
...
to build. Will backport to 2.4
2005-03-04 13:50:17 +00:00
Martin v. Löwis
637431bf14
Patch #1103407 : Properly deal with tarfile iterators when untarring
...
symbolic links on Windows. Fixes #1100429 . Will backport to 2.4.
2005-03-03 23:12:42 +00:00
Martin v. Löwis
96d743ec8b
Patch #1115086 : support PY_LONGLONG in structmember.
2005-03-03 23:00:26 +00:00
Raymond Hettinger
b67cc80bb9
SF bug #1155938 : Missing None check for __init__().
2005-03-03 16:45:19 +00:00
Martin v. Löwis
4bf108d74f
Patch #802188 : better parser error message for non-EOL following line cont.
2005-03-03 11:45:45 +00:00
Martin v. Löwis
a4dac4094a
Patch #645894 : Use getrusage for computing the time consumption in
...
profile.py if available.
2005-03-03 11:39:45 +00:00
Martin v. Löwis
7fe60c0a0a
Patches #749830 , #1144555 : allow UNIX mmap size to default to current
...
file size.
2005-03-03 11:22:44 +00:00
Martin v. Löwis
df37c8c1ad
Patch #1046831 : Use get_python_version where appropriate in sysconfig.py.
2005-03-03 11:08:03 +00:00
Martin v. Löwis
c5574e809b
Patch #1117454 : Remove code to special-case cookies without values
...
in LWPCookieJar. Backported to 2.4.
2005-03-03 10:57:37 +00:00
Martin v. Löwis
4ea3eade51
Patch #1117339 : Add cookielib special name tests.
...
Backported to 2.4.
2005-03-03 10:48:12 +00:00
Martin v. Löwis
e869eb1953
Patch #1112812 : Make bsddb/__init__.py more friendly for modulefinder.
...
Backported to 2.4.
2005-03-03 09:46:07 +00:00
Martin v. Löwis
ff232d7230
Clear internal call error in 'L' format. Fixes #723201 .
...
Backported to 2.4.
2005-03-03 09:24:38 +00:00
Martin v. Löwis
f2a8d63e4f
Patch #1110248 : SYNC_FLUSH the zlib buffer for GZipFile.flush.
...
Partially fixes #1110242 .
2005-03-03 08:35:22 +00:00
Martin v. Löwis
df24153f65
Patch #1107973 : tarfile.ExFileObject iterators.
2005-03-03 08:17:42 +00:00
Martin v. Löwis
8ed338ab44
Patch #1104111 : Alter setup.py --help and --help-commands.
2005-03-03 08:12:27 +00:00
Martin v. Löwis
4afe154369
Patch #1121234 : Properly cleanup _exit and tkerror commands.
...
Will backport to 2.4.
2005-03-01 08:09:28 +00:00
Raymond Hettinger
9c323f8de4
SF patch #941881 : PEP 309 Implementation (Partial Function Application).
...
Combined efforts of many including Peter Harris, Hye-Shik Chang,
Martin v. Löwis, Nick Coghlan, Paul Moore, and Raymond Hettinger.
2005-02-28 19:39:44 +00:00
Martin v. Löwis
9533e34024
Patch #1093585 : raise a ValueError for negative history items in
...
remove_history and replace_history. Will backport to 2.4.
2005-02-27 20:33:25 +00:00
Martin v. Löwis
c2a0ac20b7
Patch #1049151 : adding bool support to xdrlib.py.
...
Also add xdrlib._test into the test suite.
2005-02-24 20:22:10 +00:00
Walter Dörwald
af3b39a182
Add support for negative indices in UserString.MutableString.__setitem__
...
and UserString.MutableString.__delitem__.
2005-02-18 13:22:43 +00:00
Michael W. Hudson
8e1afab111
NEWS blurb for fix of:
...
[ 1124295 ] Function's __name__ no longer accessible in restricted mode
2005-02-17 14:55:21 +00:00
Brett Cannon
46d9623875
spwdmodule.c should only be built when either HAVE_GETSPNAM or HAVE_GETSPENT is
...
defined.
2005-02-16 00:07:19 +00:00
Brett Cannon
ced04e0936
Add mention of patch #1095802 (fixing "Macintosh" references to represent OS
...
X).
2005-02-13 22:53:22 +00:00
Brett Cannon
4380242580
Modified test for tzset to not rely on tm->tm_zone's existence. Also added
...
sanity checks on tzname if HAVE_TZNAME defined.
Closes bug #1096244 . Thanks Gregory Bond.
2005-02-10 20:48:03 +00:00
Raymond Hettinger
bab4143348
SF patch #1116583 : NameError in cookielib domain check
2005-02-05 01:31:19 +00:00
Jeremy Hylton
ab630507de
Add NEWS item about future parser bug.
2005-02-04 18:44:06 +00:00
Guido van Rossum
d064142579
Security fix PSF-2005-001 for SimpleXMLRPCServer.py.
2005-02-03 15:01:24 +00:00
Michael W. Hudson
faa7648ffe
More bug #1077106 stuff, sorry -- modem induced impatiece!
...
This should go on whatever bugfix branches the other fetches up on.
2005-01-31 17:09:25 +00:00
Martin v. Löwis
1d11de6dbd
Revert os.py 1.75, and directly implement update.
...
Fixes #1110478 and #1100235 .
2005-01-29 13:29:23 +00:00
Martin v. Löwis
13a1fde4da
Partially revert #1074011 ; don't try to fflush stdin.
...
Backported to 2.3 and 2.4.
2005-01-27 18:56:16 +00:00
Fred Drake
9c131f2879
add missing word
2005-01-23 15:16:08 +00:00
Martin v. Löwis
8e3ca8af26
Flush std{in,out,err} before closing it. Fixes #1074011 .
...
Will backport to 2.4 and 2.3.
2005-01-23 09:41:49 +00:00
Martin v. Löwis
c300175547
Patch #579435 : Shadow Password Support Module
2005-01-23 09:27:24 +00:00
Martin v. Löwis
4d394dfebb
Truncate st_?time before comparing it with ST_?TIME in the tests.
2005-01-23 09:19:22 +00:00
Thomas Heller
d6c6e2224b
distutils/command/install.py change.
2005-01-20 19:20:16 +00:00
Michael W. Hudson
46e6d92dc1
tweaks, small updates
2005-01-18 15:53:59 +00:00
Skip Montanaro
058858151d
Document the reconvert module.
2005-01-16 20:48:27 +00:00
Martin v. Löwis
fe33d0ba87
Default stat_float_times to true.
2005-01-16 08:57:39 +00:00
Martin v. Löwis
22b457e03b
Added SEEK_* constants. Fixes #711830 .
2005-01-16 08:40:58 +00:00
Andrew McNamara
f69d94f6c0
Moved reader \r and \n processing from the iterator to the state machine -
...
this allows for better handling of newline characters in quoted fields (and
hopefully resolves Bug 967934).
2005-01-13 11:30:54 +00:00
Skip Montanaro
0af3ade6aa
Add strptime() constructor to datetime class. Thanks to Josh Spoerri for
...
the changes.
2005-01-13 04:12:31 +00:00
Andrew McNamara
7f2053eff3
Add counting of source iterator lines to the reader object - handy for
...
user error messages (otherwise difficult to do without instrumenting
the source).
2005-01-12 11:17:16 +00:00
Andrew McNamara
0f0599ddc1
When quoting=QUOTE_NONNUMERIC, the reader now casts unquoted fields
...
to floats.
2005-01-12 09:45:18 +00:00
Andrew McNamara
c89f284df8
When using QUOTE_NONNUMERIC, we now test for "numericness" with
...
PyNumber_Check, rather than trying to convert to a float. Reimplemented
writer - now raises exceptions when it sees a quotechar but neither
doublequote or escapechar are set. Doublequote results are now more
consistent (eg, single quote should generate """", rather than "",
which is ambiguous).
2005-01-12 07:44:42 +00:00
Andrew McNamara
31d8896ee2
Rename csv.set_field_limit to csv.field_size_limit (since it both sets and
...
gets).
2005-01-12 03:45:10 +00:00
Andrew McNamara
a08eecb638
Add news about csv module updates.
2005-01-12 03:25:27 +00:00
Raymond Hettinger
a422c34b70
SF 1098985: set objects cannot be marshalled
2005-01-11 03:03:27 +00:00
Skip Montanaro
afd77d980e
Add definitions for "up" and "down" commands that print/display the current
...
Python file/line when the current C execution frame is inside
PyEval_EvalFrame. These are commented out by default because GDB sometimes
crashes as a result (seems like a GDB bug).
Add a pyframe command that displays the current Python stack frame. If the
marked lines are uncommented, it will also cause Emacs/XEmacs to display the
current file/line.
2005-01-08 21:56:43 +00:00
Brett Cannon
e6539c4401
In _DummyThread objects the lock stored in __block (allocated thanks to
...
_Thread.__init__) was never used. This is a waste since locks use OS
primitives that are in limited supply. So the lock is deleted in
_DummyThread.__init__ .
Closes bug #1089632 .
2005-01-08 02:43:53 +00:00
Raymond Hettinger
97db05de3e
SF #75103 : imghdr -- identify JPEGs in EXIF format
2005-01-07 08:15:41 +00:00
Raymond Hettinger
c34f8673a1
Teach the peephole optimizer to fold simple constant expressions.
2005-01-02 06:17:33 +00:00
Andrew M. Kuchling
3b585b30c0
[Bug #1083110 ] calling .flush() on decompress objects causes a segfault due to an uninitialized pointer: fixes the problem and adds a test case
2004-12-28 20:10:48 +00:00
Walter Dörwald
3673369951
Add NEWS entry about bug #1076985 .
2004-12-22 12:50:50 +00:00
Sean Reifschneider
7caafe7018
Changing the idle wrapper to use Python and execvp() to pass arguments to
...
idle.
2004-12-21 02:22:29 +00:00
Raymond Hettinger
6065d32325
SF bug #951915 : fix bug in StringIO.truncate - length not changed
...
(Patch by Armin Rigo.)
2004-12-20 23:51:53 +00:00
Raymond Hettinger
b0900e6a21
SF #1085304 : Make array.array pickle-able
2004-12-16 16:23:40 +00:00
Marc-André Lemburg
bb4f1bdd8b
locale.py now uses an updated locale alias table (built using
...
Tools/i18n/makelocalealias.py, a tool to parse the X11 locale
alias file); the encoding lookup was enhanced to use Python's
encoding alias table
As sige-effect, this fixes SF bug [ 1080864 ] locale.py doesn't recognize
valid locale setting.
2004-12-10 21:58:14 +00:00
Raymond Hettinger
3557f42658
Combined several entries.
2004-12-07 12:02:02 +00:00
Raymond Hettinger
a6b45cc31d
Eliminate the deprecated option to return None instead of a tuple of arguments in __reduce__().
2004-12-07 07:05:57 +00:00
Brett Cannon
84667c063a
Change code in setup.py for parsing LDFLAGS and CPPFLAGS to use optparse
...
instead of getopt. Required making use of gettext._ as optional (optparse
changed OK'ed by Greg Ward in private email).
2004-12-07 03:25:18 +00:00
Brett Cannon
516592f4ff
setup.py now uses the library directories specified in LDFLAGS (``-L``
...
directories) and the include directories specified in CPPFLAGS (``-I``
directories) for compiling the extension modules.
This has led to the core being compiled with the values in the shell's
CPPFLAGS. It has also removed the need for special casing to use Fink and
DarwinPorts under darwin since the needed directories can now be specified in
LDFLAGS and CPPFLAGS (e.g., DarwinPorts users can now do
``LDFLAGS=-L/opt/local/lib; CPPFLAGS=-I/opt/local/include; ./configure`` for
everything to work properly).
Parsing the values in the environment variables is done with getopt. While optparse
would have been a nicer solution it cannot be used because of dependency issues
at execution time; optparse uses gettext which uses struct which will not have
been compiled when the code is imported. If optparse ever makes its
importation of gettext optional by catching ImportError and setting _() to an
identity function then it can be used.
2004-12-07 00:42:59 +00:00
Raymond Hettinger
c7979f16ec
Removed deprecated tzparse module.
2004-12-05 11:38:18 +00:00
Raymond Hettinger
b2594050ea
Added optional None arguments to itertools.islice().
2004-12-05 09:25:51 +00:00
Raymond Hettinger
3489cad30a
Removed the deprecated bin parameter from the pickle module.
2004-12-05 05:20:42 +00:00
Raymond Hettinger
4ebe364277
Remove the deprecated statcache module.
2004-12-05 04:55:14 +00:00
Raymond Hettinger
1bc82f891c
Removed deprecated method arguments from the shelve module.
2004-12-05 03:58:17 +00:00
Raymond Hettinger
6c92d76abc
Removed deprecated method from pstats.
2004-12-05 03:28:00 +00:00
Raymond Hettinger
f3fa9460de
Removed deprecated use_statcache argument.
2004-12-05 01:58:09 +00:00
Raymond Hettinger
664347be94
SF bug #1078905 : Docs for unittest run() methods are misleading
2004-12-04 21:21:53 +00:00
Raymond Hettinger
784ab76c87
Remove the deprecated whrandom module.
2004-12-04 10:50:51 +00:00
Raymond Hettinger
665174834a
Remove PyRange_New().
2004-12-03 11:45:13 +00:00
Raymond Hettinger
f9245578c9
Acknowledge contribution of a thorough tutorial review.
2004-12-03 08:33:32 +00:00
Raymond Hettinger
3b0c7c20a1
SF patch #1077353 : add key= argument to min and max
...
(First draft of patch contributed by Steven Bethard.)
2004-12-03 08:30:39 +00:00
Raymond Hettinger
4901a1f267
Add key= argument to heapq.nsmallest() and heapq.nlargest().
2004-12-02 08:59:14 +00:00
Anthony Baxter
4277ed8d0a
whoops!
2004-11-30 11:53:10 +00:00
Anthony Baxter
e2648eeb14
doodedoodedoo on the way to 2.4 final
2004-11-30 01:28:55 +00:00
Anthony Baxter
e48bad7a24
preparing for 2.4 final (wooooooo!)
2004-11-29 01:40:31 +00:00
Kurt B. Kaiser
4c79a83e0c
Hye-Shik Chang's fix for Bug 875692.
...
Improve signal handling, especially when using threads, by forcing an early
re-execution of PyEval_EvalFrame() "periodic" code when things_to_do is not
cleared by Py_MakePendingCalls().
M Misc/NEWS
M Python/ceval.c
2004-11-23 18:06:08 +00:00
Anthony Baxter
5cc727ad7b
2.4rc1
2004-11-18 12:32:27 +00:00
Raymond Hettinger
39e92ead4b
Mark PyRange_New() as deprecated.
2004-11-18 09:41:45 +00:00
Skip Montanaro
0bb2a65dbd
split functionality into pystack and pystackv commands. The former will
...
work with core dumps because it avoids calling any Python API routines. The
latter prints all the local variable values as well as the stack frames but
won't work with core dumps because it relies on _PyObject_Dump to print
variables.
2004-11-17 16:04:15 +00:00
Tim Peters
bbc0d4409c
SF bug 1065388: calendar day/month name lookup too slow
...
__getitem__() methods: compute only the new spellings needed to satisfy
the given indexing object. This is purely an optimization (it should
have no effect on visible semantics).
2004-11-13 16:18:32 +00:00
Raymond Hettinger
96b49a51d0
SF patch 1062495: Modules/zipimport.c does not compile on solaris (Contributed by Niki W. Waibel.)
...
Simple renaming to avoid a conflict that prevented compilation on Solaris.
2004-11-10 13:13:05 +00:00
Tim Peters
50c6bdb1d6
test_doctest.py test_pdb_set_trace_nested(): A new test from Jim Fulton
...
showing that doctest's pdb.set_trace() support was dramatically broken.
doctest.py _OutputRedirectingPdb.trace_dispatch(): Return a local trace
function instead of (implicitly) None. Else interaction with pdb was
bizarre, noticing only 'call' events. Amazingly, the existing set_trace()
tests didn't care.
2004-11-08 22:07:37 +00:00
Tim Peters
fb1ffb0ebb
SF bug 1061968: threads: segfault or Py_FatalError at exit
...
PyGILState_Ensure(): The fix in 2.4a3 for bug 1010677 reintroduced thread
shutdown race bug 225673. Repaired by (once again) ensuring the GIL is
held whenever deleting a thread state.
Alas, there's no useful test case for this shy bug. Four years ago, only
Guido could provoke it, on his box, and today only Armin can provoke it
on his box. I've never been able to provoke it (but not for lack of
trying!).
This is a critical fix for 2.3.5 too, since the fix for 1010677 got
backported there already and so also reintroduced 225673. I don't intend to
backport this fix. For whoever (if anyone) does, there are other thread
fixes in 2.4 that need backporting too, and I bet they need to happen first
for this patch to apply cleanly.
2004-11-08 04:30:21 +00:00
Jeremy Hylton
def9d2a17c
Fix for SF bug 988120 via patch 1061941.
...
If read() returned less than the number of bytes request, the full amount was subtracted from length instead of the actually read amount.
2004-11-07 16:13:49 +00:00
Brett Cannon
7d28e96a41
Add comment about removal of CoreServices/CoreFoundation compilation against
...
the core on OS X (also specifically mention removal of
PyMac_GetAppletScriptFile() ).
2004-11-07 01:19:00 +00:00
Tim Peters
90cf212cef
Essentially SF patch 1061679: add missing __all__ to pickletools.py.
...
Harmless.
2004-11-06 23:45:48 +00:00
Brett Cannon
b12efd3f8a
Comment cleanup.
2004-11-06 19:56:45 +00:00
Anthony Baxter
b0c6630794
post-release
2004-11-04 05:23:17 +00:00
Skip Montanaro
599bd5e1e1
Fix bug 1052242. Also includes rewrite of test case using unittest and
...
avoiding use of popen.
2004-11-04 04:31:30 +00:00
Anthony Baxter
9f41f3a192
release shenanigans
2004-11-03 06:21:37 +00:00
Barry Warsaw
8c72eae237
SF patch #1056967 , changes the semantics of Template.safe_substitute() to not
...
raise a ValueError for dangling delimiters (the delimiter itself is returned).
2004-11-01 03:52:43 +00:00
Tim Peters
ead8b7ab30
SF 1055820: weakref callback vs gc vs threads
...
In cyclic gc, clear weakrefs to unreachable objects before allowing any
Python code (weakref callbacks or __del__ methods) to run.
This is a critical bugfix, affecting all versions of Python since weakrefs
were introduced. I'll backport to 2.3.
2004-10-30 23:09:22 +00:00
Hye-Shik Chang
337614993e
Patch #1044395 : Allow configure option --enable-shared in FreeBSD.
...
(Submitted by James William Pye, Patch revised by Jiwon Seo)
2004-10-26 09:53:46 +00:00
Hye-Shik Chang
182ac85147
SF #737473 : Show up-to-date source code in tracebacks always.
...
And add an optional argument 'filename' to linecache.checkcache()
to enable checking caches per-file.
2004-10-26 09:16:42 +00:00
Raymond Hettinger
561fbf138d
SF bug #1054139 : serious string hashing error in 2.4b1
...
_PyString_Resize() readied strings for mutation but did not invalidate
the cached hash value.
2004-10-26 01:52:37 +00:00
Raymond Hettinger
2ef7e6c8f2
SF bug #1052503 : pdb runcall should accept keyword arguments
2004-10-24 00:32:24 +00:00
Raymond Hettinger
9047c8f73d
SF bug #1048870 : call arg of lambda not updating
2004-10-24 00:10:06 +00:00
Tim Peters
acaffe65a3
Move to version 2 of the PSF license, approved by the Board earlier today.
2004-10-23 03:43:54 +00:00
Brett Cannon
06a30b087e
Fix minor reST error in Misc/NEWS.
...
Applies patch #1051866 . Thanks Felix Wiemann.
2004-10-22 06:22:54 +00:00
Sean Reifschneider
054541e924
Latest version for beta 1.
2004-10-21 23:35:45 +00:00
Andrew M. Kuchling
66e80baea2
Add item
2004-10-20 11:56:15 +00:00
Raymond Hettinger
c64aab8400
SF bug #902037 : relative on-disk SYSTEM id handling is incorrect
2004-10-20 08:21:57 +00:00
Raymond Hettinger
e54e726f0b
SF patch #1038388 : __main__ for whichdb.py
...
(Contributed by Oleg Broytmann.)
2004-10-20 07:17:16 +00:00
Andrew M. Kuchling
9414ded8f3
Delete empty sections in beta1 news
2004-10-19 19:56:55 +00:00
Andrew M. Kuchling
0d19bae30e
Add item
2004-10-19 19:54:41 +00:00
Brett Cannon
8abcc5d533
Add support for %U and %W to contribute to calculating the date when the year
...
and day of the week are specified.
Closes bug #1045381 .
2004-10-18 01:37:57 +00:00
Brett Cannon
be8370dc9c
Add sections for 2.4b2
2004-10-18 01:32:09 +00:00
Anthony Baxter
6a587c160b
release shenanigans
2004-10-15 08:07:21 +00:00
Anthony Baxter
a024034b94
Patch 1046644 - improved distutils support for SWIG.
2004-10-14 10:02:08 +00:00
Anthony Baxter
22dcf66f84
Patch 983206: distutils obeys LDSHARED env var. Removed the code in
...
Python's own setup.py that did the same thing (and tested on Solaris,
where LDSHARED is needed...)
2004-10-13 15:54:17 +00:00
Anthony Baxter
e4f8a48b8f
969574
2004-10-13 14:55:56 +00:00
Andrew M. Kuchling
518d393e0e
Fix PEP number
2004-10-12 15:32:10 +00:00
Fredrik Lundh
5b3687df2e
Added Peter Astrand's subprocess module.
2004-10-12 15:26:28 +00:00
Barry Warsaw
418de1f23c
Added note about the new usegmt argument to email.Utils.formatdate().
2004-10-11 14:32:47 +00:00
Tim Peters
7f468f29f4
SF patch 1044089: New C API function PyEval_ThreadsInitialized(), by Nick
...
Coghlan, for determining whether PyEval_InitThreads() has been called.
Also purged the undocumented+unused _PyThread_Started int.
2004-10-11 02:40:51 +00:00
Tim Peters
8470558a04
PyInterpreterState_New(), PyThreadState_New(): use malloc/free directly.
...
This appears to finish repairs for SF bug 1041645.
This is a critical bugfix.
2004-10-10 02:47:33 +00:00
Tim Peters
263091e388
find_key(): This routine wasn't thread-correct, and accounts for the
...
release-build failures noted in bug 1041645.
This is a critical bugfix. I'm not going to backport it, though (no time).
2004-10-10 01:58:44 +00:00
Andrew M. Kuchling
3afe4f371c
Add helpful comment
2004-10-07 12:30:54 +00:00
Andrew M. Kuchling
6f5932502d
Take out Guido's name and put in the PSF
2004-10-07 12:27:31 +00:00
Andrew M. Kuchling
895f245954
Update two URLs
2004-10-07 12:23:12 +00:00
Andrew M. Kuchling
166e625d6c
Add -m to man page
2004-10-07 12:04:50 +00:00
Raymond Hettinger
db29e0fe8c
SF patch #1035498 : -m option to run a module as a script
...
(Contributed by Nick Coghlan.)
2004-10-07 06:46:25 +00:00
Brett Cannon
4f35c71543
Locale data that contains regex metacharacters are now properly escaped.
...
Closes bug #1039270 .
2004-10-06 02:11:37 +00:00
Tim Peters
130e37f3e2
Read the text files to be compared in universal-newline mode.
2004-10-03 19:03:19 +00:00
Just van Rossum
dd3c83734d
added plistlib news item
2004-10-03 16:27:09 +00:00
David Goodger
1cbf206d32
SF bug #997050 : Document, test, & check for non-string values in ConfigParser. Moved the new string-only restriction added in rev. 1.65 to the SafeConfigParser class, leaving existing ConfigParser & RawConfigParser behavior alone, and documented the conditions under which non-string values work.
2004-10-03 15:55:09 +00:00
David Goodger
68a1abdade
SF bug #1017864 : ConfigParser now correctly handles default keys, processing them with ``ConfigParser.optionxform`` when supplied, consistent with the handling of config file entries and runtime-set options.
2004-10-03 15:40:25 +00:00
Barry Warsaw
bb11386730
Big email 3.0 API changes, with updated unit tests and documentation.
...
Briefly (from the NEWS file):
- Updates for the email package:
+ All deprecated APIs that in email 2.x issued warnings have been removed:
_encoder argument to the MIMEText constructor, Message.add_payload(),
Utils.dump_address_pair(), Utils.decode(), Utils.encode()
+ New deprecations: Generator.__call__(), Message.get_type(),
Message.get_main_type(), Message.get_subtype(), the 'strict' argument to
the Parser constructor. These will be removed in email 3.1.
+ Support for Python earlier than 2.3 has been removed (see PEP 291).
+ All defect classes have been renamed to end in 'Defect'.
+ Some FeedParser fixes; also a MultipartInvariantViolationDefect will be
added to messages that claim to be multipart but really aren't.
+ Updates to documentation.
2004-10-03 03:16:19 +00:00
Raymond Hettinger
565ea5ae37
SF bug#1038917 fix typos (Contributed by George Yoshida.)
2004-10-02 11:02:59 +00:00
Tim Peters
cf8997f6f8
Noted the fix to deque gc.
2004-10-01 02:13:16 +00:00
Brett Cannon
bfef869510
Add note about inclusion of DarwinPorts directories in setup.py on darwin.
2004-09-28 04:08:11 +00:00
Tim Peters
a80a2c8e67
Updated doctest doc news.
2004-09-26 05:13:18 +00:00
Brett Cannon
35ae3dd5aa
Add warning notation about using 'bomb' setting.
2004-09-25 01:39:56 +00:00
Raymond Hettinger
596ba4d89e
Granted Noam Raphael's request for minor improvements to the re module and
...
its documentation.
* Documented that the compiled re methods are supposed to be more full
featured than their simpilified function counterparts.
* Documented the existing start and stop position arguments for the
findall() and finditer() methods of compiled regular expression objects.
* Added an optional flags argument to the re.findall() and re.finditer()
functions. This aligns their API with that for re.search() and
re.match().
2004-09-24 03:41:05 +00:00
Tim Peters
862f0593d8
Introduced a Py_IS_NAN macro, which probably works on the major platforms
...
today. pyconfig.h can override it if not, and can also override
Py_IS_INFINITY now. Py_IS_NAN and Py_IS_INFINITY are overridden now
for Microsoft compilers, using efficient MS-specific spellings.
2004-09-23 19:11:32 +00:00
Tim Peters
307fa78107
SF bug #513866 : Float/long comparison anomaly.
...
When an integer is compared to a float now, the int isn't coerced to float.
This avoids spurious overflow exceptions and insane results. This should
compute correct results, without raising spurious exceptions, in all cases
now -- although I expect that what happens when an int/long is compared to
a NaN is still a platform accident.
Note that we had potential problems here even with "short" ints, on boxes
where sizeof(long)==8. There's #ifdef'ed code here to handle that, but
I can't test it as intended. I tested it by changing the #ifdef to
trigger on my 32-bit box instead.
I suppose this is a bugfix candidate, but I won't backport it. It's
long-winded (for speed) and messy (because the problem is messy). Note
that this also depends on a previous 2.4 patch that introduced
_Py_SwappedOp[] as an extern.
2004-09-23 08:06:40 +00:00
Raymond Hettinger
2c31a058eb
SF patch #1031667 : Fold tuples of constants into a single constant
...
Example:
>>> import dis
>>> dis.dis(compile('1,2,3', '', 'eval'))
0 0 LOAD_CONST 3 ((1, 2, 3))
3 RETURN_VALUE
2004-09-22 18:44:21 +00:00
Raymond Hettinger
0318a939dd
Clarify that iteration is over headers, not Mime elements.
2004-09-22 18:03:47 +00:00
Raymond Hettinger
ce96d8b684
Bug #1030125 : rfc822 __iter__ problem
...
Add iteration support to the Message class.
2004-09-22 17:17:32 +00:00
Brett Cannon
24a0045d58
Add a commented-out recipe on making trailing whitespace explicit.
...
If people think this is not too intrusive it could be uncommented.
2004-09-20 22:33:21 +00:00
Martin v. Löwis
729d47db09
Patch #1024670 : Support int objects in PyLong_AsUnsignedLong[Mask].
2004-09-20 06:17:46 +00:00
Brett Cannon
8b4e886ed9
When this file is sourced in, or used as, one's vimrc file it will set the proper settings to follow the style guidelines laid out in PEPs 7 & 8 as best it can without forcing extraneous settings.
...
Suggested settings are commented out and included at the end of the file.
The goal is to have this file prevent as much as possible from deviating from the style guidelines. It is not meant to collect every cool macro possible for Python. Any useful settings for features included with Vim can be included and commented out, but anything overly extraneous should be left out.
2004-09-19 05:43:13 +00:00
Martin v. Löwis
f3c5611fef
Patch #1029061 : Always extract member names from the tarinfo.
2004-09-18 09:08:52 +00:00
Martin v. Löwis
39a317890f
Patch #1025790 : Add status code constants to httplib.
2004-09-18 09:03:49 +00:00
Tim Peters
528ca53b74
SF bug #1028306 : date-datetime comparison
...
Treat comparing a date to a datetime like a mixed-type comparison.
2004-09-16 01:30:50 +00:00
Skip Montanaro
82d0eecf42
mention httplib ipv6 fix
2004-09-14 17:58:31 +00:00
Walter Dörwald
5011d0c683
Fix quoting.
2004-09-13 08:53:15 +00:00
Tim Peters
82076ef194
Reluctantly, rehabilitate doctest.master.
2004-09-13 00:52:51 +00:00
Andrew M. Kuchling
55be9eab38
Typo fix: 'comparisions' is not a word
2004-09-10 12:59:54 +00:00
Martin v. Löwis
23c48a12d9
Patch #808120 : Add --force-arch=ARCH to bdist_rpm.py.
2004-09-10 06:32:54 +00:00
Martin v. Löwis
641d64812c
Patch #808115 : Add script support to bdist_rpm.py.
2004-09-10 06:25:01 +00:00
Walter Dörwald
69652035bc
SF patch #998993 : The UTF-8 and the UTF-16 stateful decoders now support
...
decoding incomplete input (when the input stream is temporarily exhausted).
codecs.StreamReader now implements buffering, which enables proper
readline support for the UTF-16 decoders. codecs.StreamReader.read()
has a new argument chars which specifies the number of characters to
return. codecs.StreamReader.readline() and codecs.StreamReader.readlines()
have a new argument keepends. Trailing "\n"s will be stripped from the lines
if keepends is false. Added C APIs PyUnicode_DecodeUTF8Stateful and
PyUnicode_DecodeUTF16Stateful.
2004-09-07 20:24:22 +00:00
Jeremy Hylton
566d934745
compiler.transformer: correct lineno attribute when possible
...
SF patch #1015989
The basic idea of this patch is to compute lineno attributes for all AST nodes. The actual
implementation lead to a lot of restructing and code cleanup.
The generated AST nodes now have an optional lineno argument to constructor. Remove the
top-level asList(), since it didn't seem to serve any purpose. Add an __iter__ to ast nodes.
Use isinstance() instead of explicit type tests.
Change transformer to use the new lineno attribute, which replaces three lines of code with one.
Use universal newlines so that we can get rid of special-case code for line endings. Use
lookup_node() in a few more frequently called, but simple com_xxx methods(). Change string
exception to class exception.
2004-09-07 15:28:01 +00:00
Brett Cannon
2ad68e69b9
Ported test__locale to unittest.
2004-09-06 23:30:27 +00:00
Anthony Baxter
f30bc11ce0
update version
2004-09-02 16:38:20 +00:00
Anthony Baxter
e13943a1b0
release date
2004-09-02 16:37:15 +00:00
Andrew M. Kuchling
00873430c1
Add news item.
2004-08-31 13:50:43 +00:00
Andrew M. Kuchling
5a9618e069
Remove mpz, rotor
2004-08-31 13:43:19 +00:00
Andrew M. Kuchling
57269d0c7c
Remove mpz, rotor, xreadlines modules
2004-08-31 13:37:25 +00:00
Anthony Baxter
1a4ddaecc7
SF patch #1007189 , multi-line imports, for instance:
...
"from blah import (foo, bar
baz, bongo)"
2004-08-31 10:07:13 +00:00
Johannes Gijsbers
5ae9743ea6
Bug #1014775 : update NEWS.help for changes in docutils.
2004-08-30 14:33:25 +00:00
Johannes Gijsbers
343cb8a768
Bug #1014770 : apply some rest-foo and fix some docutils errors.
2004-08-30 14:27:11 +00:00
Johannes Gijsbers
4c11f6088a
Patch #934356 : if a module defines __all__, believe that rather than using
...
heuristics for filtering out imported names.
2004-08-30 14:13:04 +00:00
Johannes Gijsbers
ae882f7984
Patch #941486 : add os.path.lexists(). Also fix bug #940578 by using lexists in glob.glob.
2004-08-30 10:19:56 +00:00
Raymond Hettinger
356a4599ac
Teach the random module about os.urandom().
...
* Use it for seeding when it is available.
* Provide an alternate generator based on it.
2004-08-30 06:14:31 +00:00
Tim Peters
47e52ee0c5
SF patch 936813: fast modular exponentiation
...
This checkin is adapted from part 2 (of 3) of Trevor Perrin's patch set.
BACKWARD INCOMPATIBILITY: SHIFT must now be divisible by 5. AFAIK,
nobody will care. long_pow() could be complicated to worm around that,
if necessary.
long_pow():
- BUGFIX: This leaked the base and power when the power was negative
(and so the computation delegated to float pow).
- Instead of doing right-to-left exponentiation, do left-to-right. This
is more efficient for small bases, which is the common case.
- In addition, if the exponent is large (more than FIVEARY_CUTOFF
digits), precompute [a**i % c for i in range(32)], and go left to
right 5 bits at a time.
l_divmod():
- The signature changed so that callers who don't want the quotient,
or don't want the remainder, can pass NULL in the slot they don't
want. This saves them from having to declare a vrbl for unwanted
stuff, and remembering to decref it.
long_mod(), long_div(), long_classic_div():
- Adjust to new l_divmod() signature, and simplified as a result.
2004-08-30 02:44:38 +00:00
Tim Peters
0973b99e1c
SF patch 936813: fast modular exponentiation
...
This checkin is adapted from part 1 (of 3) of Trevor Perrin's patch set.
x_mul()
- sped a little by optimizing the C
- sped a lot (~2X) if it's doing a square; note that long_pow() squares
often
k_mul()
- more cache-friendly now if it's doing a square
KARATSUBA_CUTOFF
- boosted; gradeschool mult is quicker now, and it may have been too low
for many platforms anyway
KARATSUBA_SQUARE_CUTOFF
- new
- since x_mul is a lot faster at squaring now, the point at which
Karatsuba pays for squaring is much higher than for general mult
2004-08-29 22:16:50 +00:00
Martin v. Löwis
e064b41f5a
Patch #914575 : difflib side by side diff support, diff.py s/b/s HTML option.
2004-08-29 16:34:40 +00:00
Martin v. Löwis
dc3883f671
Patch #934711 : Expose platform-specific entropy.
2004-08-29 15:46:35 +00:00
Raymond Hettinger
6ab78cd0c0
SF feature request #992967 : array.array objects should support sequences.
...
Made the constructor accept general iterables.
2004-08-29 07:50:43 +00:00
Brett Cannon
cc8a4f6563
When building with --disable-toolbox-glue under Darwin, skip building any
...
Mac-specific modules. Before all modules were compiled but would fail thanks
to a dependence on the code included when Python was built without the compiler
flag.
Closes bug #991962 .
2004-08-26 01:44:07 +00:00
Dave Cole
3203efb55f
Patch #1014930 . Expose current parse location to XMLParser.
2004-08-26 00:37:31 +00:00
Martin v. Löwis
cae9e673d6
Patch #970015 : Replace - by _ in version and release.
2004-08-25 13:04:53 +00:00