Commit graph

21128 commits

Author SHA1 Message Date
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