A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2000-July/006947.html below:

[Python-Dev] Patches

[Python-Dev] PatchesGreg Stein gstein@lyra.org
Tue, 18 Jul 2000 23:55:59 -0700
On Wed, Jul 19, 2000 at 06:17:49AM +0000, Peter Schneider-Kamp wrote:
> Fredrik Lundh wrote:
> > 
> > > -0 on that, I'd rather use snprintf when available, sprintf when not.

Falling back to sprintf() is just untenable.

> > strange argument.  why is it okay to crash Python on Windows,
> > pure SUSv2 platforms, pure ANSI C platforms, etc?
> 
> I was assuming that most modern systems have a sprintf function

(I presume you meant snprintf here)

Yes, most do, but it isn't quite the same...

> available. If this is not the case, my argument is indeed void.
> 
> I was extrapolating from the fact that it's available on the
> systems I work on (linux, sunos, solaris).
> 
> > besides, snprintf doesn't do the same thing as my PyErr_Format
> > replacement...
> 
> Yes, but it would by possible to use snprintf in PyErr_Format.

still not quite the same. /F's PyErr_Format returns an arbitrary length
string. snprintf() would be cut at some pre-specified limit.

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4