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/2003-March/034006.html below:

[Python-Dev] PyObject_New vs PyObject_NEW

[Python-Dev] PyObject_New vs PyObject_NEWMichael Hudson mwh@python.net
Thu, 13 Mar 2003 11:02:31 +0000
Tim Peters <tim.one@comcast.net> writes:

> [David Abrahams]
>> ...
>> It seems to me that in light of all this, it's probably worth noting
>> this difference between PyObject_New and PyObject_NEW in the docs.
>
> I don't think the macro versions should ever be used outside the core.
> Inside the core, it's safe.  So I think the "doc bug" is that the docs
> mention PyObject_NEW at all.

What, precisely, does PyObject_NEW save you?  From a brief squint at
the sources, my best guess is "nothing" -- and it may even be a
pessimization due to increased code size.

Maybe we could kill it entirely (after the usual round of
deprecations, of course).

Cheers,
M.

-- 
  Like most people, I don't always agree with the BDFL (especially
  when he wants to change things I've just written about in very 
  large books), ... 
         -- Mark Lutz, http://python.oreilly.com/news/python_0501.html



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