Commit graph

2478 commits

Author SHA1 Message Date
Georg Brandl
c98eeede17 Patch #1215184: FileInput now can be given an opening hook which can
be used to control how files are opened.
2006-02-19 14:57:47 +00:00
Georg Brandl
c029f873cb Patch #1212287: fileinput.input() now has a mode parameter for
specifying the file mode input files should be opened with.
2006-02-19 14:12:34 +00:00
Georg Brandl
67e9fb9d7a Patch #1215184: fileinput now has a fileno() function for getting the
current file number.
2006-02-19 13:56:17 +00:00
Georg Brandl
602b9ba6b3 Patch #1349274: gettext.install() now optionally installs additional
translation functions other than _() in the builtin namespace.
2006-02-19 13:26:36 +00:00
Georg Brandl
e466217ab9 Patch #1337756: fileinput now accepts Unicode filenames. 2006-02-19 09:51:27 +00:00
Georg Brandl
f4f4415a18 Patch #1393157: os.startfile() now has an optional argument to specify
a "command verb" to invoke on the file.
2006-02-18 22:29:33 +00:00
Georg Brandl
7b4e7c24df Patch #1373643: The chunk module can now read chunks larger than
two gigabytes.
2006-02-18 21:10:56 +00:00
Georg Brandl
21dd1afde7 Add NEWS entry to previous checkin. 2006-02-17 13:35:13 +00:00
Georg Brandl
bd3bc4dc4c Bug #1430298: It is now possible to send a mail with an empty
return address using smtplib.
2006-02-17 09:52:53 +00:00
Georg Brandl
0e1abe2a07 Add bug number to NEWS entry. 2006-02-17 09:48:14 +00:00
Georg Brandl
501dd0dd9d The names of lambda functions are now properly displayed in pydoc. 2006-02-17 09:45:40 +00:00
Martin v. Löwis
86d662602d Patch #1432345: Make python compile on DragonFly. 2006-02-17 08:40:11 +00:00
Martin v. Löwis
18e165558b Merge ssize_t branch. 2006-02-15 17:27:45 +00:00
Neal Norwitz
79415523d6 Find test failures consistently 2006-02-15 06:07:32 +00:00
Martin v. Löwis
856bf9a4e9 Add build support for AMD64. 2006-02-14 20:42:55 +00:00
Neal Norwitz
88b78d8cd4 Support 2.4 (released versions) better. (rsync was not working with adding the *. Only some files/dirs were copied, not everything.) 2006-02-14 08:14:16 +00:00
Martin v. Löwis
a55e55e9f3 Patch #428494: Prefer linking against ncursesw over ncurses library 2006-02-11 15:55:14 +00:00
Georg Brandl
b69406dc09 Update general copyright years to 2006. 2006-02-11 15:30:36 +00:00
Neal Norwitz
bd3490abdb Be a little less sensitive to failures. Only check for the result from
regrtest.py.  If we grep for just "fail", that finds bsddb deadlock
messages, which presumably are just warnings.  They don't cause
a test failure.
2006-02-09 05:08:56 +00:00
Armin Rigo
a871ef2b3e Added the cProfile module.
Based on lsprof (patch #1212837) by Brett Rosen and Ted Czotter.
With further editing by Michael Hudson and myself.
History in svn repo: http://codespeak.net/svn/user/arigo/hack/misc/lsprof

* Module/_lsprof.c is the internal C module, Lib/cProfile.py a wrapper.
* pstats.py updated to display cProfile's caller/callee timings if available.
* setup.py and NEWS updated.
* documentation updates in the profiler section:
   - explain the differences between the three profilers that we have now
   - profile and cProfile can use a unified documentation, like (c)Pickle
   - mention that hotshot is "for specialized usage" now
   - removed references to the "old profiler" that no longer exists
* test updates:
   - extended test_profile to cover delicate cases like recursion
   - added tests for the caller/callee displays
   - added test_cProfile, performing the same tests for cProfile
* TO-DO:
   - cProfile gives a nicer name to built-in, particularly built-in methods,
     which could be backported to profile.
   - not tested on Windows recently!
2006-02-08 12:53:56 +00:00
Neal Norwitz
082b2df33f Bug #876637, prevent stack corruption when socket descriptor
is larger than FD_SETSIZE.

This can only be acheived with ulimit -n SOME_NUMBER_BIGGER_THAN_FD_SETSIZE
which is typically only available to root.  Since this wouldn't normally
be run in a test (ie, run as root), it doesn't seem too worthwhile to
add a normal test.  The bug report has one version of a test.  I've
written another.  Not sure what the best thing to do is.

Do the check before calling internal_select() because we can't set
an error in between Py_BEGIN_ALLOW_THREADS and Py_END_ALLOW_THREADS.
This seemed the clearest solution, ie handle before calling internal_select()
rather than inside.  Plus there is at least one place outside
of internal_select() that needed to be handled.

Will backport.
2006-02-07 07:04:46 +00:00
Martin v. Löwis
0075690ced Patch #1412872: zipfile: use correct system type on unixy systems. 2006-02-05 17:09:41 +00:00
Neal Norwitz
0e6bc8c260 Patch #1407135, bug #1424041, make mmap.mmap(-1, length) work the same
on both Unix (SVR4 and BSD) and Windows.  Restores behaviour of passing -1
for anonymous memory on Unix.  Use MAP_ANONYMOUS instead of _ANON since
the latter is deprecated according to Linux (gentoo) man pages.

Should we continue to allow mmap.mmap(0, length) to work on Windows?
0 is a valid fd.

Will backport bugfix portions.
2006-02-05 05:45:43 +00:00
Martin v. Löwis
57a34e8026 Patch #1422385: Changes to nis module to support multiple NIS domains 2006-02-04 19:12:37 +00:00
Martin v. Löwis
14694662d5 Drop C library for stat/fstat on Windows. 2006-02-03 12:54:16 +00:00
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