Martin v. Löwis
873a277eb4
Patch #975885 : print file name in err msg in quiet mode
2004-06-20 20:59:56 +00:00
Raymond Hettinger
28224f897a
Improve the documented advice on how to best use heapq.heapreplace().
2004-06-20 09:07:53 +00:00
Raymond Hettinger
1761a7cc8b
Use PyArg_UnpackTuple() where possible.
2004-06-20 04:23:19 +00:00
Tim Peters
1b6f7a9057
Bug 975996: Add _PyTime_DoubleToTimet to C API
...
New include file timefuncs.h exports private API function
_PyTime_DoubleToTimet() from timemodule.c. timemodule should export
some other functions too (look for painful bits in datetimemodule.c).
Added insane-argument checking to datetime's assorted fromtimestamp()
and utcfromtimestamp() methods. Added insane-argument tests of these
to test_datetime, and insane-argument tests for ctime(), localtime()
and gmtime() to test_time.
2004-06-20 02:50:16 +00:00
Brett Cannon
1c3fa18be7
shutil.move() will raise an exception when trying to move a directory into
...
itself.
Closes bug #919012 . Thanks Johannes Gijsbers.
2004-06-19 21:11:35 +00:00
Brett Cannon
b46ed71d70
Add news item about raising ValueError when timemodule.c code that uses
...
timestamps will lose precision thanks to time_t < double (bug #919012 ).
2004-06-19 20:50:47 +00:00
Brett Cannon
298c380c74
Raise ValueError when value being stored in a time_t variable will result in
...
more than a second of precision. Primarily affects ctime, localtime, and
gmtime.
Closes bug #919012 thanks to Tim Peters' code.
Tim suggests that the new funciton being introduced, _PyTime_DoubletoTimet(),
should be added to the internal C API and then used in datetime where
appropriate. Not being done now for lack of time.
2004-06-19 20:48:43 +00:00
Marc-André Lemburg
cdc7923f6d
Added normalization for Windows system name. Closes SF #945665 .
2004-06-19 17:17:00 +00:00
Brett Cannon
84601f14a3
Change pydoc.stripid() be able to match against 64-bit addresses by having
...
regex match from 6 to 16 characters.
2004-06-19 01:22:48 +00:00
Brett Cannon
c6c1f478d9
pydoc.stripid() is now case-insensitive for its regex to support platforms that
...
have pointer addresses in uppercase.
Closes bug #934282 . Thanks Robin Becker.
2004-06-19 01:02:51 +00:00
Fred Drake
2b2fe94cde
fix typo
2004-06-18 21:28:28 +00:00
Sjoerd Mullender
4dbda47aea
If self.packages is None (this can happen, I saw it), return
...
immediately (since None is not a sequence you can iterate over).
2004-06-18 20:39:11 +00:00
Nicholas Bastin
9e1bfe7dd9
Disabling end-of-loop code not reached warning on SunPro
2004-06-18 19:57:13 +00:00
Thomas Heller
89a2dc72b1
Rebuild the wininst.exe files.
2004-06-18 18:30:27 +00:00
Thomas Heller
74db40419e
The wininst.exe is no longer compressed with UPX.
2004-06-18 18:29:46 +00:00
Thomas Heller
dd6d207cf8
Fix an obvious typo (It *is* a typo, or not?)
2004-06-18 17:31:23 +00:00
Thomas Heller
48340390ac
When loading the Python dll to run the postinstall script, try to load
...
it from the install directory (as reported by the registry) in case it
is not found on the default Loadlibrary search path.
Fixes SF 935091: bdist_winist post-install script fails on non-admin Python
Already backported.
2004-06-18 17:03:38 +00:00
Thomas Heller
a42bc21ef8
The 'distributing python modules' manual now has an index.
2004-06-18 08:27:36 +00:00
Thomas Heller
949f66141b
Fix typo - the module is named distutils.util.
2004-06-18 06:55:28 +00:00
Skip Montanaro
56f6a4f225
allow developers to more easily build a profiling version of the interpreter
...
and modules by configuring with the --enable-profiling flag.
2004-06-18 02:47:22 +00:00
Fred Drake
964c798a94
Use getopt where possible, so this supports option letters that get
...
jammed together on thos platforms.
2004-06-17 22:04:17 +00:00
Brett Cannon
3706855d11
Add apparently missing word for InvalidStateError definition.
...
Closes bug #973901 . Thanks Brian Gough.
2004-06-17 21:34:05 +00:00
Fred Drake
b849eddde6
fix bug: list of data files was initialized too soon in build_py
2004-06-17 20:16:19 +00:00
Fred Drake
b8ab8b6da8
move support code to a helper module to ease re-use
2004-06-17 20:14:50 +00:00
Fred Drake
9e1ac2496f
- add link to the downloadable package in the generated email
...
- misc. changes
2004-06-17 18:36:54 +00:00
Nicholas Bastin
1ce9e4cfc1
Fixed end-of-loop code not reached warning when using SunPro C
2004-06-17 18:27:18 +00:00
Fred Drake
0083c920f2
make the tarball available for download instead of throwing it away
2004-06-17 17:19:12 +00:00
Michael W. Hudson
24ec21174c
silly typo
2004-06-17 15:55:53 +00:00
Michael W. Hudson
9e151d149e
add missing closing quote.
2004-06-17 13:29:11 +00:00
Armin Rigo
8817fcdba5
Performance tweak: allow stack_pointer and oparg to be register variables.
...
SF patch #943898
2004-06-17 10:22:40 +00:00
Martin v. Löwis
64af6c545c
Comment that getfilesystemencoding returns mbcs even on NT+. Fixes #964870 .
2004-06-16 04:53:46 +00:00
Raymond Hettinger
aefde435ef
Reverse argument order for nsmallest() and nlargest().
...
Reads better when the iterable is a generator expression.
2004-06-15 23:53:35 +00:00
Martin v. Löwis
969297f488
Return unicode strings from _getfullpathname even on W9X. Fixes #924703 .
2004-06-15 18:49:58 +00:00
Martin v. Löwis
0d6e8f2e65
Remove CRLF from project files.
2004-06-15 18:18:19 +00:00
Fred Drake
d0620dcf00
add a test that actually installs some scripts
2004-06-15 16:55:46 +00:00
Fred Drake
bb7c14461d
One unit test for distutils is not much, but is more than we had yesterday.
...
We need to write more; hopefully the barrier is a little lower now.
2004-06-15 15:49:46 +00:00
Raymond Hettinger
a050171ee9
SF bug #973092 : inspect.getframeinfo bug if 'context' is to big
...
Make sure the start argument is not negative.
2004-06-15 11:22:53 +00:00
Fred Drake
40333ceeac
add a pointer to the Distutils Cookbook
2004-06-14 22:07:50 +00:00
Raymond Hettinger
b67ad7e671
Patch #826074 : cmath.log optional base argument, fixes #823209
...
(Contributed by Andrew Gaul.)
2004-06-14 07:40:10 +00:00
Martin v. Löwis
ad21945d03
Back out #957240 .
2004-06-14 04:58:42 +00:00
Raymond Hettinger
148a63f1fc
Remove a function no longer in use.
2004-06-14 04:24:41 +00:00
Tim Peters
3d1f6bba6d
Teach pythoncore project about new pystrtod.c for VC7.1. This was done
...
a long time ago for VC6.
2004-06-14 01:05:46 +00:00
Neal Norwitz
965eeca630
SF bug #970042 , lockf() signature uses len, doc refers to length (use length, same as docstring)
2004-06-13 21:11:03 +00:00
Neal Norwitz
7a135166f6
SF patch #969180 , hotshot incorrectly computes elapsed time by Jason
...
Beardsley.
If the seconds are different, we still need to calculate the differences
between milliseconds.
Also, on a Gentoo Linux (2.6.5) dual Athlon MP box with glibc 2.3,
time can go backwards. This probably happens when the process switches
the CPU it's running on. Time can also go backwards when running NTP.
If we detect a negative time delta (ie, time went backwards), return
a delta of 0. This prevents an illegal array access elsewhere.
I think it's safest to *not* update prev_timeofday in this case, so we
return without updating.
Backport candidate.
2004-06-13 20:45:11 +00:00
Neal Norwitz
0f5aed4e41
Remove compiler warning
2004-06-13 20:32:17 +00:00
Neal Norwitz
d85c452604
Make private function static
2004-06-13 20:31:49 +00:00
Neal Norwitz
75a3204095
Remove warning (static not being first) when building with -W
2004-06-13 20:31:17 +00:00
Neal Norwitz
0a8266a7e3
Remove warning about implicit declaration of strcmp()
2004-06-13 20:29:55 +00:00
Raymond Hettinger
de72eddf69
Fixup error exits in nlargest() and nsmallest().
2004-06-13 15:36:56 +00:00
Raymond Hettinger
bb6b7346ce
Apply heapq.nlargest() to find best matches.
2004-06-13 09:57:33 +00:00