Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8783929
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T20:57:14+00:00 2026-06-13T20:57:14+00:00

I use python3.3 and just found out that it accepts keyword arguments in some

  • 0

I use python3.3 and just found out that it accepts keyword arguments in some of its CPython functions:

>>> "I like python!".split(maxsplit=1)
['I', 'like python!']

But some other functions don’t accept keyword arguments:

>>> sum([1,2,3,4], start = 10)
Traceback (most recent call last):
  File "<pyshell#58>", line 1, in <module>
    sum([1,2,3,4], start = 10)
TypeError: sum() takes no keyword arguments

My question is: what is the difference between those functions? Which functions in CPython accept keyword arguments, which functions don’t? And of course – why?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T20:57:15+00:00Added an answer on June 13, 2026 at 8:57 pm

    CPython functions that use PyArg_ParseTuple() to parse their arguments do not support keyword arguments (mostly because PyArg_ParseTuple() only supports positional parameters, e.g. a simple sequence).

    This is explained in the CPython implementation details here:

    CPython implementation detail: An implementation may provide built-in
    functions whose positional parameters do not have names, even if they
    are ‘named’ for the purpose of documentation, and which therefore
    cannot be supplied by keyword. In CPython, this is the case for
    functions implemented in C that use PyArg_ParseTuple() to parse their
    arguments.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just found out that PIL functions on Google App Engine (GAE) are limited
I'm wanting to use an extension for Python that I found here , but
I just found out that I can save space\ speed up reads of CSV
I've just started programming, therefore I'm kinda noob. I'm trying to use python to
I recently learnt Python. I liked it. I just wanted to use it for
I've just started using Eclipse for Python development since we can make use of
Just like the question title. I'm new to Python and regular expressions. Hereby I
I have two django sites that use the same database and share some of
I'm cobbling together some sort of an introduction to Python, but one that focuses
I just recently got interested in how search engines work, and I found out

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.