]> granicus.if.org Git - python/log
python
18 years agoWhitespace.
Walter Dörwald [Mon, 27 Mar 2006 09:02:04 +0000 (09:02 +0000)]
Whitespace.

18 years agoFix SF bug #1458903 with AST compiler.
Neal Norwitz [Mon, 27 Mar 2006 08:58:23 +0000 (08:58 +0000)]
Fix SF bug #1458903 with AST compiler.

def foo((x)): was getting recognized as requiring tuple unpacking
which is not correct.

Add tests for this case and the proper way to unpack a tuple of one:
def foo((x,)):

test_inpsect was incorrect before.  I'm not sure why it was passing,
but that has been corrected with a test for both functions above.
This means the test (and therefore inspect.getargspec()) are broken in 2.4.

18 years agoFind a source file in srcdir to allow to build outside of srcdir.
Hye-Shik Chang [Mon, 27 Mar 2006 08:43:11 +0000 (08:43 +0000)]
Find a source file in srcdir to allow to build outside of srcdir.

18 years agoFix reference leaks introduced by the recent incremental codec
Hye-Shik Chang [Mon, 27 Mar 2006 08:24:54 +0000 (08:24 +0000)]
Fix reference leaks introduced by the recent incremental codec
changes.

18 years agoMention patch id for the CJK part of the patch and
Walter Dörwald [Mon, 27 Mar 2006 08:15:44 +0000 (08:15 +0000)]
Mention patch id for the CJK part of the patch and
the name of the two new C functions.

18 years agotagging for release 2.5a0
Anthony Baxter [Mon, 27 Mar 2006 01:11:38 +0000 (01:11 +0000)]
tagging for release 2.5a0

18 years agoupdating snapshot.
Anthony Baxter [Mon, 27 Mar 2006 01:11:07 +0000 (01:11 +0000)]
updating snapshot.

18 years agoYears in the making.
Tim Peters [Sun, 26 Mar 2006 23:27:58 +0000 (23:27 +0000)]
Years in the making.

objimpl.h, pymem.h:  Stop mapping PyMem_{Del, DEL} and PyMem_{Free, FREE}
to PyObject_{Free, FREE} in a release build.  They're aliases for the
system free() now.

_subprocess.c/sp_handle_dealloc():  Since the memory was originally
obtained via PyObject_NEW, it must be released via PyObject_FREE (or
_DEL).

pythonrun.c, tokenizer.c, parsermodule.c:  I lost count of the number of
PyObject vs PyMem mismatches in these -- it's like the specific
function called at each site was picked at random, sometimes even with
memory obtained via PyMem getting released via PyObject.  Changed most
to use PyObject uniformly, since the blobs allocated are predictably
small in most cases, and obmalloc is generally faster than system
mallocs then.

If extension modules in real life prove as sloppy as Python's front
end, we'll have to revert the objimpl.h + pymem.h part of this patch.
Note that no problems will show up in a debug build (all calls still go
thru obmalloc then). Problems will show up only in a release build, most
likely segfaults.

18 years agoBug #1457264: parse http://host?query correctly in urllib
Georg Brandl [Sun, 26 Mar 2006 20:59:38 +0000 (20:59 +0000)]
Bug #1457264: parse http://host?query correctly in urllib

18 years agoFix typo.
Martin v. Löwis [Sun, 26 Mar 2006 16:40:47 +0000 (16:40 +0000)]
Fix typo.

18 years agoPatch from Aldo Cortesi: expected skips for OpenBSD.
Martin v. Löwis [Sun, 26 Mar 2006 10:02:34 +0000 (10:02 +0000)]
Patch from Aldo Cortesi: expected skips for OpenBSD.

18 years agoProvide more debug output, to diagnose OpenBSD test failures.
Martin v. Löwis [Sun, 26 Mar 2006 09:50:11 +0000 (09:50 +0000)]
Provide more debug output, to diagnose OpenBSD test failures.

18 years agoUtilize %zd for Py_ssize_t formatting instead of casting to long.
Hye-Shik Chang [Sun, 26 Mar 2006 06:53:37 +0000 (06:53 +0000)]
Utilize %zd for Py_ssize_t formatting instead of casting to long.

18 years agoAllow long objects as a position value of error callbacks returned.
Hye-Shik Chang [Sun, 26 Mar 2006 06:21:34 +0000 (06:21 +0000)]
Allow long objects as a position value of error callbacks returned.

18 years agoregsub is gone, nothing to ignore
Neal Norwitz [Sun, 26 Mar 2006 04:59:27 +0000 (04:59 +0000)]
regsub is gone, nothing to ignore

18 years agoTry to handle sys.getfilesystemencoding() returning None.
Neal Norwitz [Sun, 26 Mar 2006 03:11:57 +0000 (03:11 +0000)]
Try to handle sys.getfilesystemencoding() returning None.
ascii seems like the safest bet that it will exist.  I wonder if utf-8
would be a better choice?  This should get test_fileinput passing on OpenBSD.

18 years agoTighten an overbroad and misleading assertion.
Raymond Hettinger [Sun, 26 Mar 2006 03:11:29 +0000 (03:11 +0000)]
Tighten an overbroad and misleading assertion.
(Reported by Jim Jewett.)

18 years agoPatch #1443155: Add the incremental codecs support for CJK codecs.
Hye-Shik Chang [Sun, 26 Mar 2006 02:34:59 +0000 (02:34 +0000)]
Patch #1443155: Add the incremental codecs support for CJK codecs.
(reviewed by Walter Dörwald)

18 years agoGuarantee evaluation order for izip(). Document its creative uses and its limitations.
Raymond Hettinger [Sun, 26 Mar 2006 01:41:25 +0000 (01:41 +0000)]
Guarantee evaluation order for izip().  Document its creative uses and its limitations.

18 years agoTry to fix broken compile on openbsd.
Neal Norwitz [Sun, 26 Mar 2006 00:29:48 +0000 (00:29 +0000)]
Try to fix broken compile on openbsd.

18 years agoGet rid of warnings on some platforms by using %u for a size_t.
Neal Norwitz [Sat, 25 Mar 2006 23:55:39 +0000 (23:55 +0000)]
Get rid of warnings on some platforms by using %u for a size_t.

18 years agoAdd section headers and examples.
Raymond Hettinger [Sat, 25 Mar 2006 23:26:43 +0000 (23:26 +0000)]
Add section headers and examples.

18 years agoSF bug # 1457358 and patch # 1458419, floor division not documented. Patch by Andy.
Neal Norwitz [Sat, 25 Mar 2006 21:25:30 +0000 (21:25 +0000)]
SF bug # 1457358 and patch # 1458419, floor division not documented.  Patch by Andy.

Will backport.

18 years agoFound this in an old email message from Hartmut Goebel.
Skip Montanaro [Sat, 25 Mar 2006 14:12:03 +0000 (14:12 +0000)]
Found this in an old email message from Hartmut Goebel.

18 years agofix typo
Georg Brandl [Sat, 25 Mar 2006 13:12:56 +0000 (13:12 +0000)]
fix typo

18 years agoDon't decrement below zero. And add more tests.
Raymond Hettinger [Sat, 25 Mar 2006 12:15:04 +0000 (12:15 +0000)]
Don't decrement below zero.  And add more tests.

18 years agoMore extensive comment on __exit__ handling, per Guido's request.
Phillip J. Eby [Sat, 25 Mar 2006 04:32:12 +0000 (04:32 +0000)]
More extensive comment on __exit__ handling, per Guido's request.

18 years agoWhitespace normalization.
Tim Peters [Sat, 25 Mar 2006 01:50:43 +0000 (01:50 +0000)]
Whitespace normalization.

18 years agoYield is now allowed in try-finally, so update docs accordingly
Phillip J. Eby [Sat, 25 Mar 2006 00:46:43 +0000 (00:46 +0000)]
Yield is now allowed in try-finally, so update docs accordingly

18 years agoFix a problem with @contextmanager not detecting a broken generator
Phillip J. Eby [Sat, 25 Mar 2006 00:28:24 +0000 (00:28 +0000)]
Fix a problem with @contextmanager not detecting a broken generator
that yields after a throw().  Make @contextmanager not reraise
exceptions, but return a false value in that case instead.  Add test
cases for both behaviors.

18 years agoSupport throw() of string exceptions.
Phillip J. Eby [Sat, 25 Mar 2006 00:05:50 +0000 (00:05 +0000)]
Support throw() of string exceptions.

18 years agoRevert previous change. Wasn't ready yet.
Raymond Hettinger [Fri, 24 Mar 2006 23:55:32 +0000 (23:55 +0000)]
Revert previous change.  Wasn't ready yet.

18 years agoAdd more tests
Raymond Hettinger [Fri, 24 Mar 2006 23:47:53 +0000 (23:47 +0000)]
Add more tests

18 years agoRevert r42719, because the isinstance() check wasn't redundant; formatting a
Phillip J. Eby [Fri, 24 Mar 2006 22:10:54 +0000 (22:10 +0000)]
Revert r42719, because the isinstance() check wasn't redundant; formatting a
string exception was causing a TypeError.

18 years agoSF Patch #1455676: Simplify using Queues with daemon consumer threads
Raymond Hettinger [Fri, 24 Mar 2006 20:43:29 +0000 (20:43 +0000)]
SF Patch #1455676:  Simplify using Queues with daemon consumer threads

Adds join() and task_done() methods to track when all enqueued tasks have
been gotten and fully processed by daemon consumer threads.

18 years agoAdd documentation for PEP 338
Nick Coghlan [Fri, 24 Mar 2006 13:36:33 +0000 (13:36 +0000)]
Add documentation for PEP 338

18 years agorun_module shouldn't hold the import lock when running a script
Nick Coghlan [Fri, 24 Mar 2006 13:05:53 +0000 (13:05 +0000)]
run_module shouldn't hold the import lock when running a script

18 years agoUse absolute import.
Neal Norwitz [Fri, 24 Mar 2006 08:58:38 +0000 (08:58 +0000)]
Use absolute import.

18 years agoClarify cases when waitpid might not return self.pid.
Martin v. Löwis [Fri, 24 Mar 2006 08:26:26 +0000 (08:26 +0000)]
Clarify cases when waitpid might not return self.pid.

18 years agoBug #1183780: Add Popen objects to _active only in __del__.
Martin v. Löwis [Fri, 24 Mar 2006 08:14:54 +0000 (08:14 +0000)]
Bug #1183780: Add Popen objects to _active only in __del__.
Cleanup terminated processes as well.
Add cmd attribute to Popen4.

18 years agoExceptions should inherit from Exception now.
Neal Norwitz [Fri, 24 Mar 2006 08:02:51 +0000 (08:02 +0000)]
Exceptions should inherit from Exception now.

18 years agoHmmm, I don't think we wanted to test // twice and / not at all (in this section).
Neal Norwitz [Fri, 24 Mar 2006 07:30:56 +0000 (07:30 +0000)]
Hmmm, I don't think we wanted to test // twice and / not at all (in this section).

18 years agoExceptions should inherit from Exception now.
Neal Norwitz [Fri, 24 Mar 2006 07:03:44 +0000 (07:03 +0000)]
Exceptions should inherit from Exception now.

18 years agoSF bug #1457411, fix errors using variables that don't exist.
Neal Norwitz [Fri, 24 Mar 2006 05:36:33 +0000 (05:36 +0000)]
SF bug #1457411, fix errors using variables that don't exist.

Rename file -> filename to be clear.

Will backport.

18 years agoForward port of 43262: Add 2.4.3 UUIDs.
Martin v. Löwis [Thu, 23 Mar 2006 19:21:52 +0000 (19:21 +0000)]
Forward port of 43262: Add 2.4.3 UUIDs.

18 years agoRelax result test for program mode of quopri.
Martin v. Löwis [Thu, 23 Mar 2006 19:14:23 +0000 (19:14 +0000)]
Relax result test for program mode of quopri.

18 years agoPreserve command name, for later printing of active
Martin v. Löwis [Thu, 23 Mar 2006 18:18:35 +0000 (18:18 +0000)]
Preserve command name, for later printing of active
commands. If there are active commands when the tests
start, fail, printing these commands.

18 years agoRewrite pipe code using subprocess, to make sure the
Martin v. Löwis [Thu, 23 Mar 2006 18:16:43 +0000 (18:16 +0000)]
Rewrite pipe code using subprocess, to make sure the
child process is closed when the test completes.

18 years agoPatch #1396919: Reenable the system scope threads on FreeBSD 5.4
Hye-Shik Chang [Thu, 23 Mar 2006 12:32:36 +0000 (12:32 +0000)]
Patch #1396919: Reenable the system scope threads on FreeBSD 5.4
and later versions because they bumped the default setting to
get our basic tests to run correctly..

18 years agoCosmetic improvement for r43247
Hye-Shik Chang [Thu, 23 Mar 2006 12:12:44 +0000 (12:12 +0000)]
Cosmetic improvement for r43247

18 years agoSkip to install files for empty directories; to name it, Lib/lib-old.
Hye-Shik Chang [Thu, 23 Mar 2006 12:04:37 +0000 (12:04 +0000)]
Skip to install files for empty directories; to name it, Lib/lib-old.
BSD make stops the build when it tries to expand wild cards on empty
directories.

18 years agoStop duplicating code and handle slice indices consistently and correctly
Neal Norwitz [Thu, 23 Mar 2006 06:03:08 +0000 (06:03 +0000)]
Stop duplicating code and handle slice indices consistently and correctly
wrt to ssize_t.

18 years agoFix a ssize_t issue
Neal Norwitz [Thu, 23 Mar 2006 05:48:09 +0000 (05:48 +0000)]
Fix a ssize_t issue

18 years agoHeh -- used the right format for a refcount, but forgot
Tim Peters [Thu, 23 Mar 2006 05:41:24 +0000 (05:41 +0000)]
Heh -- used the right format for a refcount, but forgot
to stop truncating it.

18 years agoForward port MvL's fix in 43227:
Neal Norwitz [Thu, 23 Mar 2006 05:39:47 +0000 (05:39 +0000)]
Forward port MvL's fix in 43227:

Fix crash when a Unicode string containing an encoding declaration is
compile()d. Fixes #1115379.

18 years ago_Py_NegativeRefcount(): print the full value of ob_refcnt.
Tim Peters [Thu, 23 Mar 2006 05:38:33 +0000 (05:38 +0000)]
_Py_NegativeRefcount():  print the full value of ob_refcnt.

18 years agoAdd email/mime to LIBSUBDIRS. Fixes SF bug # 1454912.
Barry Warsaw [Wed, 22 Mar 2006 14:57:54 +0000 (14:57 +0000)]
Add email/mime to LIBSUBDIRS.  Fixes SF bug # 1454912.

18 years agoFix some int/Py_ssize_t issues which led to compiler warnings
Thomas Heller [Wed, 22 Mar 2006 13:21:16 +0000 (13:21 +0000)]
Fix some int/Py_ssize_t issues which led to compiler warnings
on 64-bit platforms.

18 years agoInclude <malloc.h> on windows, to avoid warnings when compiling with mingw.
Thomas Heller [Wed, 22 Mar 2006 12:59:53 +0000 (12:59 +0000)]
Include <malloc.h> on windows, to avoid warnings when compiling with mingw.
Don't use SEH when compiling wth mingw.
Use IS_INTRESOURCE to determine function name from function ordinal.

Rewrite the code that allocates and frees callback functions, hopefully
this avoids the coverty warnings: Remove the THUNK typedef, and move the
definition of struct ffi_info into the header file.

18 years agoctypes was added.
Thomas Heller [Wed, 22 Mar 2006 10:09:27 +0000 (10:09 +0000)]
ctypes was added.

18 years agoRemove false information from the comment and reformat it like other
Hye-Shik Chang [Wed, 22 Mar 2006 08:52:43 +0000 (08:52 +0000)]
Remove false information from the comment and reformat it like other
comments in the file. (SF #1455641)

18 years agoDamn another occurrence of using as as a keywordf
Neal Norwitz [Wed, 22 Mar 2006 07:13:30 +0000 (07:13 +0000)]
Damn another occurrence of using as as a keywordf

18 years agoChange NEWS entry for recent socket API change
Georg Brandl [Wed, 22 Mar 2006 06:44:14 +0000 (06:44 +0000)]
Change NEWS entry for recent socket API change

18 years agoWhitespace normalization.
Tim Peters [Wed, 22 Mar 2006 03:23:21 +0000 (03:23 +0000)]
Whitespace normalization.

18 years agoRecord that test_wait[34] get skipped on native Windows.
Tim Peters [Wed, 22 Mar 2006 02:58:17 +0000 (02:58 +0000)]
Record that test_wait[34] get skipped on native Windows.

18 years agoNews about email 4.0.
Barry Warsaw [Wed, 22 Mar 2006 02:45:50 +0000 (02:45 +0000)]
News about email 4.0.

18 years agoremove test file
Barry Warsaw [Tue, 21 Mar 2006 19:46:26 +0000 (19:46 +0000)]
remove test file

18 years agopy trunk svn test
Barry Warsaw [Tue, 21 Mar 2006 19:37:40 +0000 (19:37 +0000)]
py trunk svn test

18 years agopy trunk svn test
Barry Warsaw [Tue, 21 Mar 2006 19:26:34 +0000 (19:26 +0000)]
py trunk svn test

18 years agopy trunk svn test
Barry Warsaw [Tue, 21 Mar 2006 18:30:37 +0000 (18:30 +0000)]
py trunk svn test

18 years agoCorrect API design mistake from rev. 43126: make socket attributes readonly properties.
Georg Brandl [Tue, 21 Mar 2006 18:17:25 +0000 (18:17 +0000)]
Correct API design mistake from rev. 43126: make socket attributes readonly properties.

18 years agoUpdate to Tk 8.4.12 and Tix 8.4.0
Martin v. Löwis [Tue, 21 Mar 2006 13:20:29 +0000 (13:20 +0000)]
Update to Tk 8.4.12 and Tix 8.4.0

18 years agoUpdate to OpenSSL 0.9.8a
Martin v. Löwis [Tue, 21 Mar 2006 12:08:39 +0000 (12:08 +0000)]
Update to OpenSSL 0.9.8a

18 years agoAdd a note about pow(x,y) equalling x**y (the "**" operator
Georg Brandl [Tue, 21 Mar 2006 08:48:04 +0000 (08:48 +0000)]
Add a note about pow(x,y) equalling x**y (the "**" operator
was used unmotivated in the pow() docs)

18 years agoTry to repair at least one segfault on the Mac buildbot,
Tim Peters [Tue, 21 Mar 2006 03:58:41 +0000 (03:58 +0000)]
Try to repair at least one segfault on the Mac buildbot,
as diagnosed by Nick Coghlan.

test_capi.py:  A test module should never spawn a thread as
a side effect of being imported.  Because this one did, the
segfault one of its thread tests caused didn't occur until
a few tests after test_regrtest.py thought test_capi was
finished.  Repair that.  Also join() the thread spawned
at the end, so that test_capi is truly finished when
regrtest reports that it's done.

_testcapimodule.c test_thread_state():  this spawns a
couple of non-threading.py threads, passing them a PyObject*
argument, but did nothing to ensure that those threads
finished before returning.  As a result, the PyObject*
_could_ (although this was unlikely) get decref'ed out of
existence before the threads got around to using it.
Added explicit synchronization (via a Python mutex) so
that test_thread_state can reliably wait for its spawned
threads to finish.

18 years agoShow an example of calling a named set method.
Raymond Hettinger [Mon, 20 Mar 2006 18:35:55 +0000 (18:35 +0000)]
Show an example of calling a named set method.

18 years agoAvoid a potential double-free bug.
Thomas Heller [Mon, 20 Mar 2006 14:22:05 +0000 (14:22 +0000)]
Avoid a potential double-free bug.

18 years agoApply patch from Martin v. Loewis: Avoid function pointer casts.
Thomas Heller [Mon, 20 Mar 2006 10:22:42 +0000 (10:22 +0000)]
Apply patch from Martin v. Loewis: Avoid function pointer casts.

https://sourceforge.net/tracker/?func=detail&atid=532156&aid=1453037&group_id=71702

18 years agoRemove mention of fpectl in README.
Georg Brandl [Mon, 20 Mar 2006 09:38:58 +0000 (09:38 +0000)]
Remove mention of fpectl in README.

18 years agoDamn Coverity. I can't even sneak in a leak any more. :-)
Neal Norwitz [Mon, 20 Mar 2006 08:47:12 +0000 (08:47 +0000)]
Damn Coverity.  I can't even sneak in a leak any more. :-)

18 years agoFix another bug found by Coverty.
Thomas Heller [Mon, 20 Mar 2006 08:29:28 +0000 (08:29 +0000)]
Fix another bug found by Coverty.

18 years agoFix bug found by Coverty.
Thomas Heller [Mon, 20 Mar 2006 08:28:19 +0000 (08:28 +0000)]
Fix bug found by Coverty.

18 years agoPlug a leak in the ctypes test suite when tests are run repeatedly.
Thomas Heller [Mon, 20 Mar 2006 08:11:56 +0000 (08:11 +0000)]
Plug a leak in the ctypes test suite when tests are run repeatedly.

18 years agoAccessing unaligned structure fields works now on all architectures.
Thomas Heller [Mon, 20 Mar 2006 07:54:01 +0000 (07:54 +0000)]
Accessing unaligned structure fields works now on all architectures.
Including unittest.

18 years agoThe helper is only necessary for wait3/4.
Neal Norwitz [Mon, 20 Mar 2006 07:25:26 +0000 (07:25 +0000)]
The helper is only necessary for wait3/4.

18 years agowhitespace n11n
Anthony Baxter [Mon, 20 Mar 2006 07:10:01 +0000 (07:10 +0000)]
whitespace n11n

18 years agoTry to cleanup a lot of boilerplate #ifdef wrt wait types and make the code
Neal Norwitz [Mon, 20 Mar 2006 06:48:34 +0000 (06:48 +0000)]
Try to cleanup a lot of boilerplate #ifdef wrt wait types and make the code
more consistent (and smaller by 85 lines or so).

18 years agoMake some functions static, reformat function decl to be consistent and check for...
Neal Norwitz [Mon, 20 Mar 2006 06:34:06 +0000 (06:34 +0000)]
Make some functions static, reformat function decl to be consistent and check for error from PyModule_GetDict()

18 years agoGet Py_DEPRECATED to work with gcc 4.x too
Neal Norwitz [Mon, 20 Mar 2006 06:33:01 +0000 (06:33 +0000)]
Get Py_DEPRECATED to work with gcc 4.x too

18 years agomoved older releases into HISTORY
Anthony Baxter [Mon, 20 Mar 2006 06:30:41 +0000 (06:30 +0000)]
moved older releases into HISTORY

18 years agoPatch #1309579: wait3 and wait4 were added to the posix module by Chad J. Schroeder.
Neal Norwitz [Mon, 20 Mar 2006 06:30:08 +0000 (06:30 +0000)]
Patch #1309579: wait3 and wait4 were added to the posix module by Chad J. Schroeder.

This was a fair amount of rework of the patch.  Refactored test_fork1 so it
could be reused by the new tests for wait3/4.  Also made them into new style
unittests (derive from unittest.TestCase).

18 years agoexperimenting with release stuff. please ignore
Anthony Baxter [Mon, 20 Mar 2006 06:25:04 +0000 (06:25 +0000)]
experimenting with release stuff. please ignore

18 years agoreplace use of int16_t with a (typedef'd) short, to fix Windows buildbots.
Anthony Baxter [Mon, 20 Mar 2006 05:58:21 +0000 (05:58 +0000)]
replace use of int16_t with a (typedef'd) short, to fix Windows buildbots.
expand tabs.

18 years agoignore the fetched NormalizationTest.txt file
Anthony Baxter [Mon, 20 Mar 2006 05:29:26 +0000 (05:29 +0000)]
ignore the fetched NormalizationTest.txt file

18 years agoSF [ 1231053 ] audioop - alaw encoding/decoding added, code updated
Anthony Baxter [Mon, 20 Mar 2006 05:21:58 +0000 (05:21 +0000)]
SF [ 1231053 ] audioop - alaw encoding/decoding added, code updated
 This patch adds a-LAW encoding to audioop and replaces the old
u-LAW encoding/decoding code with the current code from sox.

Possible issues: the code from sox uses int16_t.

Code by Lars Immisch

18 years agoSF #1445431, fix some leaks in error conditions.
Neal Norwitz [Mon, 20 Mar 2006 04:08:12 +0000 (04:08 +0000)]
SF #1445431, fix some leaks in error conditions.

18 years agoGet rid of some warnings.
Neal Norwitz [Mon, 20 Mar 2006 02:04:23 +0000 (02:04 +0000)]
Get rid of some warnings.

18 years agoFix problem spotted by Coverity that occurs if tzinfo.tzname().replace()
Neal Norwitz [Mon, 20 Mar 2006 01:58:39 +0000 (01:58 +0000)]
Fix problem spotted by Coverity that occurs if tzinfo.tzname().replace()
returns a non-string when converting %Z.

Will backport.

18 years agoUpdate function name to reflect params and stop casting to long to avoid losing data
Neal Norwitz [Mon, 20 Mar 2006 01:55:26 +0000 (01:55 +0000)]
Update function name to reflect params and stop casting to long to avoid losing data

18 years agoUse macro versions instead of function versions when we already know the type.
Neal Norwitz [Mon, 20 Mar 2006 01:53:23 +0000 (01:53 +0000)]
Use macro versions instead of function versions when we already know the type.
This will hopefully get rid of some Coverity warnings, be a hint to
developers, and be marginally faster.

Some asserts were added when the type is currently known, but depends
on values from another function.