Commit Graph

31917 Commits

Author SHA1 Message Date
Brett Cannon 4454a1ff84 Fix building of spwd; was incorrectly checking for the needed HAVE_* values to
properly build the module.

Also moved up the creation of config_h_vars (from
distutils.sysconfig.parse_config_h()) higher on up in detect_modules() so that
it can be used sooner).
2005-04-15 20:32:39 +00:00
Raymond Hettinger 1356f785c1 SF bug #1183742: PyDict_Copy() can return non-NULL value on error 2005-04-15 15:58:42 +00:00
Anthony Baxter fa7e6b46ef typo fix, thanks Jeremy Sanders 2005-04-15 06:17:20 +00:00
Walter Dörwald 769f8219a4 SF patch #1180062 by George Yoshida:
Doc/lib/libfunctional.tex: "in an new object" should read "in a new object"
Doc/lib/libsubprocess.tex: argument name is wrong; comma is missing.
2005-04-14 20:08:59 +00:00
Raymond Hettinger 8ec676e9fa Update permissions for Finn Bock. 2005-04-13 22:04:21 +00:00
Fred Drake cc97ebf577 get_method() returns a method name, not take it as an argument
(backporting to release24-maint branch)
2005-04-13 01:08:23 +00:00
Hye-Shik Chang f2dbeff60b Fix HTTP method handler example so that method names in uppercases
can be processed.  (Submitted by Jooncheol Park)
2005-04-12 02:49:52 +00:00
Raymond Hettinger 3033734081 Update permissions for Eric Price. 2005-04-11 03:11:11 +00:00
Raymond Hettinger fc11383ec3 SF bug #1180392: StringIO's docs should mention overwriting of initial value
* Added a note that the initial file position is zero even if the object
  is freshly initialized.
2005-04-11 01:03:44 +00:00
Raymond Hettinger e490502e04 SF bug #1179957: Missing def'n of equality for set elements 2005-04-10 17:32:35 +00:00
Raymond Hettinger 95ed80b0e0 Update status for Irme de Jong. 2005-04-10 16:36:16 +00:00
Raymond Hettinger c672f8c377 SF patch 1179503: Fix typos in rpc.py
* Call to unpack_int() should have no arguments
* Misspelled BadRPCVerspion exception
* Replace <> with !=
2005-04-10 16:21:07 +00:00
Andrew M. Kuchling d8d732e7d2 Fill out one section 2005-04-09 23:59:41 +00:00
Andrew M. Kuchling 4b000cd819 Add more text 2005-04-09 15:51:44 +00:00
Raymond Hettinger bdaad8c939 * Fix error in definition of Im() which returned self instead of 0
for non-complex arguments.

* Replace type() comparisons with isinstance() checks.

* Replace apply() calls with equivalent syntactic form.

* Simplify __hash__ definition to hash the underlying tuple.

* Use math.hypot() for more robust computation of __abs__().

* Use sorted() instead of the multi-step keys/sort/iter.

* Update comment on the cmath module.
2005-04-09 14:55:07 +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
Martin v. Löwis 4a1e48c566 Patch #1177597: Correct various bugs, add comments. 2005-04-09 10:51:19 +00:00
Brett Cannon 629496b77c Add grammar change for allowing ``class B(): pass`` syntax. 2005-04-09 03:03:00 +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
Brett Cannon 4ebc7e3bd0 Add test for ``class B1(): pass``. 2005-04-09 01:27:37 +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 f754f5fd68 test_default_encoding_issues(): Fully restore sys.setdefaultencoding.
test_site often failed under "regrtest.py -r", because this xmlrpc test
left sys with a setdefaultencoding attribute, but loading site.py removes
that attribute and test_site.py verifies the attribute is gone.  Changed
this test to get rid of sys.setdefaultencoding if it didn't exist when
this test started.

Don't know whether this is a bugfix (backport) candidate.
2005-04-08 18:00:59 +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
Raymond Hettinger ad351f806d SF bug #1178269 Clarify when isMappingType/isSequenceType is True. 2005-04-07 05:36:17 +00:00
Raymond Hettinger fb5f04d77f SF bug #1178255: 256 should read 255 in operator module docs 2005-04-07 04:38:04 +00:00
Michael W. Hudson 9ef852c6c2 Make that a C, not a C++, comment. 2005-04-06 13:05:18 +00:00
Michael W. Hudson 2ea3072805 Add a comment explaining the import of longintrepr.h. 2005-04-06 11:27:40 +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
Raymond Hettinger c88a6c75df SF bug #1168983: ftplib.py string index out of range
* resp[:1] in '123' # after Py2.2, this allowed blank responses to pass.
* replace <> with !=
* provide a usage message for empty command line calls

Backport candidate.
2005-04-05 04:31:09 +00:00
Walter Dörwald 714f87821f Fix typos. 2005-04-04 21:42:22 +00:00
Walter Dörwald 7a6dc139de Fix for SF bug #1175396: readline() will now read one more character, if
the last character read is "\r" (and size is None, i.e. we're allowed to
call read() multiple times), so that we can return the correct line ending
(this additional character might be a "\n").

If the stream is temporarily exhausted, we might return the wrong line ending
(if the last character read is "\r" and the next one (after the byte stream
provides more data) is "\n", but at least the atcr member ensure that we
get the correct number of lines (i.e. this "\n" will not be treated as
another line ending.)
2005-04-04 21:38:47 +00:00
Hye-Shik Chang cf18a5d67b Fill docstrings for module and functions, extracted from the tex
documentation.  (Patch #1173245, Contributed by Jeremy Yallop)
2005-04-04 16:32:07 +00:00
Hye-Shik Chang b6fa2814f7 Make a handy macro, Py_DEFAULT_RECURSION_LIMIT to allow to define
a default value of recursion limit from build systems.  1000 levels
are still too high for some 64bit systems.
2005-04-04 15:49:02 +00:00
Hye-Shik Chang ac89f6ef29 Fix testcase for 64bit BSD systems: long is 8 bytes for those systems
so there's no need to pad after off_t members.  And a small typo fix.
2005-04-04 15:21:04 +00:00
Vinay Sajip 99358df865 Added threadName to LogRecord 2005-03-31 20:18:06 +00:00
Vinay Sajip 4a70486c37 Added threadName and now using re-entrant lock 2005-03-31 20:16:55 +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
Michael W. Hudson 5253c30791 I suppose a bug report or even a fix would be a better response, but
commit a yelp about a noted flaw the error messages for METH_KEYWORDS
functions under some circumstances.
2005-03-30 16:41:55 +00:00
Michael W. Hudson e2749cb264 Fix for rather inaccurately titled bug
[ 1165306 ] Property access with decorator makes interpreter crash

Don't allow the creation of unbound methods with NULL im_class, because
attempting to call such crashes.

Backport candidate.
2005-03-30 16:32:10 +00:00
Michael W. Hudson 5c473559e5 Minor wording fix. 2005-03-30 16:25:34 +00:00
Michael W. Hudson da6242c844 Fixes for
[ 1166660 ] The readline module can cause python to segfault

It seems to me that the code I'm rewriting here attempted to call any
user-supplied hook functions using the thread state of the thread that
called the hook-setting function, as opposed to that of the thread
that is currently executing.  This doesn't work, in general.

Fix this by using the PyGILState API (It wouldn't be that hard to
define a dummy version of said API when #ifndef WITH_THREAD, would
it?).

Also, check the conversion to integer of the return value of a hook
function for errors (this problem was mentioned in the ipython bug
report linked to in the above bug).
2005-03-30 11:21:53 +00:00
Michael W. Hudson 9a8c3142e2 Be a bit more accurate. 2005-03-30 10:09:12 +00:00
Michael W. Hudson b47039f66b I don't think it's particularly accurate to say Guido is maintaining
this module any more.
2005-03-30 09:38:12 +00:00