Commit Graph

2353 Commits

Author SHA1 Message Date
Gustavo Niemeyer 548148810b Patch #1413711: Certain patterns of differences were making difflib
touch the recursion limit. The applied patch inlines the recursive
__helper method in a non-recursive way.
2006-01-31 18:34:13 +00:00
Martin v. Löwis c81e3a63af Fix typo. 2006-01-30 15:04:31 +00:00
Gregory P. Smith cfc4a8dae7 add bsddb.db.DBEnv.set_tx_timestamp mention 2006-01-29 19:46:23 +00:00
Neal Norwitz 62a21121b4 Fix bug #1413192, fix seg fault in bsddb if a txn was deleted before the env.
Will backport.
2006-01-25 05:21:55 +00:00
Gregory P. Smith e101df9748 note the bsddb extension module changes. 2006-01-24 20:09:45 +00:00
Martin v. Löwis 3e86595280 Patch #1349118: urllib2 now supports user:pass@ style proxy
specifications, raises IOErrors when proxies for unsupported protocols
are defined, and uses the https proxy on https redirections.
2006-01-24 15:51:21 +00:00
Georg Brandl 531cebad4c Bug #902075: urllib2 now handles "host:port" proxy specifications
Can/should this be backported?
2006-01-21 07:20:56 +00:00
Georg Brandl 89f35ac180 Bug #1407902: Added support for sftp:// URIs to urlparse. 2006-01-20 17:24:23 +00:00
Georg Brandl 8cb307728e Bug #1402224: Add warning to dl docs about crashes. 2006-01-20 09:34:29 +00:00
Georg Brandl a3a93ae7c8 Bug #1396471: Document that Windows' ftell() can return invalid
values for text files with UNIX-style line endings.
2006-01-20 09:14:36 +00:00
Georg Brandl b709c2caba Bug #1371247: Update Windows LCIDs in locale.py. 2006-01-20 09:07:35 +00:00
Neal Norwitz b896759931 refresh every 12 hours for crazy people like me that keep the page up 2006-01-16 04:37:22 +00:00
Neal Norwitz 3f458d9feb Alphabetize some names and remove a dupe 2006-01-14 21:26:22 +00:00
Martin v. Löwis 11017b172d Patch #1103116: AF_NETLINK sockets basic support. 2006-01-14 18:12:57 +00:00
Neal Norwitz f60cd47f10 Fix typo 2006-01-14 07:05:13 +00:00
Georg Brandl 45ab233935 Bug #1394565: SimpleHTTPServer now doesn't choke on query paramters
any more.
2006-01-13 17:05:56 +00:00
Georg Brandl 4edd989eaf Bug #1403410: The warnings module now doesn't get confused
when it can't find out the module name it generates a warning for.
2006-01-13 16:59:46 +00:00
Neal Norwitz 3b4fff8079 Fix SF bug #1402308, segfault when using mmap(-1, ...)
This didn't crash on Linux, but valgrind complained.
I'm not sure if this test is valid on Windows.

Will backport.
2006-01-11 08:54:45 +00:00
Neal Norwitz 88bbd73d07 SF bug #1400822, Extended version of _curses over{lay,write} does not work
Fix signatures to conform to doc (also fixed ungetmouse()).

Will backport.
2006-01-10 07:05:44 +00:00
Neal Norwitz fc76d633e8 - Patch #1400181, fix unicode string formatting to not use the locale.
This is how string objects work.  u'%f' could use , instead of .
  for the decimal point.  Now both strings and unicode always use periods.

This is the code that would break:

import locale
locale.setlocale(locale.LC_NUMERIC, 'de_DE')
u'%.1f' % 1.0
assert '1.0' == u'%.1f' % 1.0

I couldn't create a test case which fails, but this fixes the problem.

Will backport.
2006-01-10 06:03:13 +00:00
Neal Norwitz 4372558a95 Add some notes about a recurring problem with OpenBSD 2006-01-09 07:29:03 +00:00
Neal Norwitz 671b9e34c6 Fix bugs #1244610, #1392915, fix build problem on OpenBSD 3.7 and 3.8.
configure would break checking curses.h.

Will backport.
2006-01-09 07:07:12 +00:00
Neal Norwitz 5e3d862392 Bug #1400115, Fix segfault when calling curses.panel.userptr()
without prior setting of the userptr.

Will backport.
2006-01-09 06:24:35 +00:00
Georg Brandl e0aec6df5e Add myself. 2006-01-08 21:13:38 +00:00
Martin v. Löwis 412ed3b8a7 Patch #1177307: UTF-8-Sig codec. 2006-01-08 10:45:39 +00:00
Martin v. Löwis fd9a72ad89 Patch #881820: look for openpty and forkpty also in libbsd.
Will backport.
2006-01-08 10:07:33 +00:00
Neal Norwitz 40c6b47ca1 Fix errors on 64-bit platforms. Will backport 2006-01-05 05:43:35 +00:00
Martin v. Löwis 64c33ddab1 Mention that zlib is now builtin on Windows. 2006-01-03 07:42:14 +00:00
Neal Norwitz 02c408d580 Dammit, who the hell spells build with ii?
Thanks to Tony Meyer for spotting my boo-boo.
2006-01-03 02:18:01 +00:00
Neal Norwitz a39f0572e6 install svn in /usr/local/bin and remove from ~/local/bin 2006-01-03 00:33:50 +00:00
Neal Norwitz d3a5867c0b get the proper full pathname of the script. spell build properly 2006-01-02 23:22:41 +00:00
Neal Norwitz d19a4d47c6 * Change tabs to spaces
* Enable network tests when hunting for leaks
* Disable curses and audio tests properly when running -u all
2006-01-02 22:10:10 +00:00
Neal Norwitz 461aa5bbfc Script to automatically build and test python and doc. The results
are copied up to docs.python.org/dev

Needs lots more work.  Feel free to add code, fixes, or FIXME comments.
2006-01-02 20:07:16 +00:00
Barry Warsaw 538561e466 Ported from 2.4 branch:
Patch by Ori Avtalion to fix a minor display glitch in the RightArrow.
2006-01-01 21:48:54 +00:00
Martin v. Löwis d5845ec32e Use -xcode=pic32 for SunPro. Will backport to 2.4. 2005-12-30 12:31:38 +00:00
Georg Brandl cd4d1e8b46 [ 959576 ] Can't build Python on POSIX w/o $HOME 2005-12-27 17:37:07 +00:00
Neal Norwitz ab86f8eef5 Patch #1157027, cookielib mis-handles RFC 2109 cookies in Netscape mode 2005-12-23 21:44:36 +00:00
Neal Norwitz 338e7866e6 Patch #1117398: fix cookielib LoadError 2005-12-23 21:27:46 +00:00
Neal Norwitz c10978f43c Bug #1072182, fix some potential problems if characters are signed. 2005-12-19 06:07:16 +00:00
Neal Norwitz 5d0ad50f5a Bug #889500, fix line number on SyntaxWarning for global declarations. 2005-12-19 04:27:42 +00:00
Neal Norwitz db83eb3170 Fix Bug #1378022, UTF-8 files with a leading BOM crashed the interpreter.
Needs backport.
2005-12-18 05:29:30 +00:00
Neal Norwitz e7214a130b Get float() to be more portable across platforms. Disable hex strings. 2005-12-18 05:03:17 +00:00
Neal Norwitz 8856fb750b SF Patch #1365916, mmap fails on AMD64
Fix some 64-bit issues due to mismatch format characters w/actual data types
2005-12-18 03:34:22 +00:00
Barry Warsaw 2a38a86c1c Expose Subversion revision number (calculated via "svnversion .") to Python.
Add C API function Py_GetBuildNumber(), add it to the interactive prompt
banner (i.e. Py_GetBuildInfo()), and add it as the sys.build_number
attribute.  The build number is a string instead of an int because it may
contain a trailing 'M' if there are local modifications.
2005-12-18 01:27:35 +00:00
Neal Norwitz 11ca77e6de Doc for PEP 341, needs improvement 2005-12-17 22:24:12 +00:00
Georg Brandl 58f46b6565 Fix leftover word. 2005-12-17 21:47:06 +00:00
Georg Brandl fa16668c9b Added PEP 341 to NEWS.
We still need a change in the reference manual to reflect the
new try statement.
2005-12-17 21:45:17 +00:00
Neal Norwitz f599f424a2 SF patch #1355913, PEP 341 - Unification of try/except and try/finally
Modified since ast-arenas was implemented.
2005-12-17 21:33:47 +00:00
Neal Norwitz 23a6958910 Add Michael Urman for work on SF patch #1365916 2005-12-17 18:41:15 +00:00
Hye-Shik Chang 835b243c71 Bug #1379994: Fix *unicode_escape codecs to encode r'\' as r'\\'
just like string codecs.
2005-12-17 04:38:31 +00:00
Tim Peters e3547fd2f7 More text about the pragmatic significance of hashlib. 2005-12-16 23:13:57 +00:00
Brett Cannon 3cbd0380f3 Add the missing mention of the hashlib module. 2005-12-16 22:49:23 +00:00
Neal Norwitz a716eabca7 Revert r41662 and the part of 41552 that originally caused the problem
(calling ftell(stdin) doesn't seem defined).  So we won't test errors
from ftell unless we can do it portably.
2005-12-15 05:25:09 +00:00
Hye-Shik Chang e237d50390 Add a workaround for file.ftell() to raise IOError for ttys.
ftell(3) on BSD doesn't set errno even for ttys and returns useless
values.
2005-12-13 16:44:02 +00:00
Fredrik Lundh 7e0aef0e75 r1068@spiff: Fredrik | 2005-12-12 19:50:30 +0100
assorted xml.etree tweaks
2005-12-12 18:54:55 +00:00
Hye-Shik Chang c5c57e6d98 Bug #1290333: Added a workaround for cjkcodecs' _codecs_cn module
build problem on AIX.
2005-12-12 11:48:32 +00:00
Hye-Shik Chang aaa2f1dea7 Patch #1276356: Implement new resource "urlfetch" for regrtest.
This enables even impatient people to run tests that require remote
files such as test_normalization and test_codecmaps_*.
2005-12-10 17:44:27 +00:00
Andrew M. Kuchling 427aedbbd4 [Patch #1039083] Add 'encoding' parameter to SimpleXMLRPCServer 2005-12-04 17:13:12 +00:00
Andrew M. Kuchling 10a16dea74 [Patch #893642] Add optional allow_none argument to SimpleXMLRPCServer, CGIXMLRPCRequestHandler 2005-12-04 16:34:40 +00:00
Andrew M. Kuchling e63fde72f3 [Bug #792570] Under Windows, socket.read() seems to run into trouble when
asked to read tens of megabytes of data.  On my Mac, it hits MemoryErrors
when reading around 15Mb in one chunk.  The fix is to read the body in several
parts, not as one big piece.

It would be nice to fix the underlying socket.read() problem, too.

2.4 bugfix candidate.
2005-12-04 15:36:57 +00:00
Andrew M. Kuchling 3a97605500 [Bug #1222790] Set reuse-address and close-on-exec flags on the HTTP listening socket 2005-12-04 15:07:41 +00:00
Martin v. Löwis b45b315855 Patch #1350409: Port signal handling to VS 2005. 2005-11-28 17:34:23 +00:00
Martin v. Löwis 307021f40b Patch #1162825: Support non-ASCII characters in IDLE window titles. 2005-11-27 16:59:04 +00:00
Georg Brandl 1f663574ee bug #1365984: urllib and data: URLs. Problem was that cStringIO objects cannot be assigned attributes on the fly. 2005-11-26 16:50:44 +00:00
Georg Brandl f06e30af4a bug #1281408: make Py_BuildValue work with unsigned longs and long longs 2005-11-24 15:37:42 +00:00
Brett Cannon ad07ff2c77 Prevent threading.Thread.join() from blocking when a previous call raised an
exception (e.g., passing in an illegal argument).

Applies patch #1314396.  Thanks Eric Blossom.
2005-11-23 02:15:50 +00:00
Georg Brandl a13c2446dc Bug #869197: setgroups rejects long integer argument 2005-11-22 19:30:31 +00:00
Andrew M. Kuchling b2a739d19b Typo fix 2005-11-22 15:14:44 +00:00
Walter Dörwald 09f0dd5842 Use basestring instead of type.StringType for checking whether a input
or output file is a file name instead of a file object. This enables
unicode file names as arguments to uu.encode() and uu.decode().
2005-11-21 19:10:07 +00:00
Neal Norwitz 7bcabc60a3 Fix a few more memory leaks
Document more info about the benefits of configuring without
pymalloc when running valgrind
2005-11-20 23:58:38 +00:00
Neal Norwitz 497b19a8a2 Updated gentoo to 2005.0 2005-11-13 18:58:32 +00:00
Neal Norwitz 67715f0420 - SF Bug #1350188, "setdlopenflags" leads to crash upon "import"
It was possible dlerror() returns a NULL pointer, use a default error
  message in this case.
2005-11-09 06:59:35 +00:00
Brett Cannon 789fd005e0 Fix typo in envvar name. 2005-11-07 21:42:42 +00:00
Neal Norwitz 0f46bbf781 Bug #1346533, select.poll() doesn't raise an error if timeout > sys.maxint
Need to check return result of PyInt_AsLong()

Will backport.
2005-11-03 05:00:25 +00:00
Brett Cannon 5d0bf9446b Change time.strptime() to raise ValueError whenever there is an error in the
format string.  Before exceptions generated by the internal code propagated up
to the user and were not helpful.

Closes bug #1340337.
2005-11-02 23:04:26 +00:00
Neal Norwitz cf4863831c Fix SF #1345263, colorsys tests, bug in frange
Fix a typo that caused step to be ignored.

Will backport.
2005-11-02 05:54:27 +00:00
Neal Norwitz 7b631793ab Bug #1344508, Fix UNIX mmap leaking file descriptors. Will backport. 2005-11-02 05:26:07 +00:00
Fred Drake db390c1ad8 fix typos, mostly in comments 2005-10-28 14:39:47 +00:00
Neal Norwitz f339654280 Patch #1338314, Bug #1336623: fix tarfile so it can extract
REGTYPE directories from tarfiles written by old programs.

Will backport.
2005-10-28 05:52:22 +00:00
Marc-André Lemburg a5bafc43d7 Add news item for the new charmap codecs. 2005-10-23 13:43:40 +00:00
Neal Norwitz fed9b3ece3 add some notes about recent checkins 2005-10-21 06:32:02 +00:00
Neal Norwitz b6570f51c5 Get the bug # write 2005-10-21 06:26:10 +00:00
Neal Norwitz 16af734bec Incorrect code was generated for:
foo(a = i for i in range(10))

This should have generated a SyntaxError.  Fix the Grammar so
it raises a SyntaxError and test it.
2005-10-21 06:25:33 +00:00
Jeremy Hylton 3e0055f8c6 Merge ast-branch to head
This change implements a new bytecode compiler, based on a
transformation of the parse tree to an abstract syntax defined in
Parser/Python.asdl.

The compiler implementation is not complete, but it is in stable
enough shape to run the entire test suite excepting two disabled
tests.
2005-10-20 19:59:25 +00:00
Raymond Hettinger 079144199c Drop permissions for Gregory K Johnson. 2005-10-17 03:37:26 +00:00
Raymond Hettinger dc4efd0a74 Add Nick Coghlan 2005-10-16 11:17:30 +00:00
Walter Dörwald 007f8dfde2 Bug #1245379: Add "unicode-1-1-utf-7" as an alias for "utf-7" as specified
by RFC 1642.
2005-10-09 19:42:27 +00:00
Walter Dörwald a05834e59c Remove trailing spaces. 2005-10-09 19:38:21 +00:00
Walter Dörwald 6611a8b0dc Fix indentation. 2005-10-09 19:28:35 +00:00
Walter Dörwald d1c1e10f70 Part of SF patch #1313939: Speedup charmap decoding by extending
PyUnicode_DecodeCharmap() the accept a unicode string as the mapping
argument which is used as a mapping table.

This code isn't used by any of the codecs yet.
2005-10-06 20:29:57 +00:00
Georg Brandl e8f244305e Patch #754022: Greatly enhanced webbrowser.py. 2005-10-03 14:16:44 +00:00
Neal Norwitz 76390de83c suppress more errors on my box, most are gentoo specific. Py_ADDRESS_IN_RANGE is x86_64 specific and the readline memory leaks should be generally applicable 2005-10-03 07:46:34 +00:00
Neal Norwitz 708e51a6b1 Fix SF bug #976608, Unhelpful error message when mtime of a module is -1
Will backport.
2005-10-03 04:48:15 +00:00
Neal Norwitz 11bd119226 SF bug #887946, segfault if redirecting directory
Also provide a warning if a directory is passed on the command line.
Add minimal command line test.

Will backport.
2005-10-03 00:54:56 +00:00
Neal Norwitz c5cdcba2d9 SF patch #1227568, Expression AST node not documented. 2005-10-03 00:38:46 +00:00
Neal Norwitz 40d3781416 - Fix segfault with invalid coding.
- SF Bug #772896, unknown encoding results in MemoryError, which is not helpful

I will only backport the segfault fix.  I'll let Anthony decide if he wants
the other changes backported.  I will do the backport if asked.
2005-10-02 01:48:49 +00:00
Georg Brandl 8b813db2ef bug [ 729103 ] Cannot retrieve name of super object 2005-10-01 16:32:31 +00:00
Neal Norwitz 484d9a409a Patch #1309009, Fix segfault in pyexpat when the XML document is
in latin_1, but Python incorrectly assumes it is in UTF-8 format

Will backport.
2005-09-30 04:46:49 +00:00
Georg Brandl aa93517de8 patch [ 1300515 ] xdrlib.py: pack_fstring() did not use null bytes for padding 2005-09-29 20:49:16 +00:00
Georg Brandl 80ba8e8549 bug [ 1296004 ] MemoryError in httplib 2005-09-29 20:16:07 +00:00