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/2001-January/012036.html below:

[Python-Dev] Keyword arg dictionary without keyword arguments

[Python-Dev] Keyword arg dictionary without keyword arguments [Python-Dev] Keyword arg dictionary without keyword argumentsJeremy Hylton jeremy@alum.mit.edu
Mon, 22 Jan 2001 20:23:56 -0500 (EST)
>>>>> "JJ" == Jack Jansen <jack@oratrix.nl> writes:

  JJ> Recently, Guido van Rossum <guido@digicool.com> said:
  >> > I get the impression that I'm currently seeing a non-NULL third
  >> > argument in my (C) methods even though the method is called
  >> > without keyword arguments.
  >>
  >> > Is this new semantics that I missed the discussion about, or is
  >> > this a bug?
  >>
  >> [...]  Do you really need the NULL?

  JJ> The places that I know I was counting on the NULL now have "if (
  JJ> kw && PyObject_IsTrue(kw))", so I'll just have to hope there
  JJ> aren't any more lingering in there.

Guido,

Does your query ("Do you really need the NULL?") mean that you don't
care whether the argument is NULL or an empty dictionary?  I could
change the code to do either for 2.1a2, if you have a preference.

Jeremy



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