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 8229525
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T16:49:32+00:00 2026-06-07T16:49:32+00:00

Hi I was wondering how to implement this in python. Lets say for example

  • 0

Hi I was wondering how to implement this in python. Lets say for example you have a function with two parameters and both print out to console

def myFunc(varA, varB):
    print 'varA=', varA
    print 'varB=', varB

I have seen libraries (pymel being the one that comes to mind) where it allows you to specify the parameter you are parsing data too by name in no specific order. for example

myFunc(varB=12, varA = 'Tom')

I am not sure what I am missing as this doesn’t seem to work when I try to declare my own functions inside or outside the maya environment.

Any clues would be wonderful, thank you in advanced.

  • 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-07T16:49:34+00:00Added an answer on June 7, 2026 at 4:49 pm

    That’s normal Python behavior. If you’re seeing errors then you’re goofing up something else (e.g. missing a required parameter, trying to pass positional arguments by name, etc.).

    >>> def func(foo, bar):
    ...   print foo, bar
    ... 
    >>> func(bar='quux', foo=42)
    42 quux
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was wondering how exactly does TCP implement in-order delivery. lets say this is
I have to solve this little problem in Python/Django and I'm wondering which is
From this context: import itertools lines = itertools.cycle(open('filename')) I'm wondering how I can implement
I was wondering how other people implemented this scenario. I have an internal rails
I was wondering if anyone could help me out with this. I am running
Does anyone know of a Python replacement for Matlab / Octave bwdist() function? This
I'm going to implement a tokenizer in Python and I was wondering if you
I'm wondering how to implement what is stated in the title. I've tried something
I was wondering how to implement the debuggger mouse over display functionality, U know
Hey all. I'm wondering how to implement a timeout event in the System.Windows.Forms.Webbrowser control?

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.