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/2016-August/145737.html below:

[Python-Dev] Method signatures in the datetime module documentation

[Python-Dev] Method signatures in the datetime module documentationAlexander Belopolsky alexander.belopolsky at gmail.com
Wed Aug 3 20:24:13 EDT 2016
On Fri, Jul 29, 2016 at 12:55 PM, Alexander Belopolsky
<alexander.belopolsky at gmail.com> wrote:
>
> How should I present the signature of the new replace method in the
> documentation?

Having not seeing any replies, let me make a proposal:

datetime.replace(hour=self.hour, minute=self.minute, second=self.second,
    microsecond=self.microsecond, tzinfo=self.tzinfo, *, fold=self.fold)

while not a valid method signature, this seems to correctly reflect
what replace() does.
More information about the Python-Dev mailing list

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