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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T00:50:17+00:00 2026-06-15T00:50:17+00:00

My application (C#/WPF) creates Python code for users who are not programmers – they

  • 0

My application (C#/WPF) creates Python code for users who are not programmers – they have a selection of drag & drop items and so they create a sequence that the app translates to Python.

That being said, they’d like to add debug capabilities – the option to inject inputs into their sequence during execution (for example, change myVar‘s value from 1 to 2). From what I understand, I should be able to translate that into Python’s input(). I’ve been trying to understand how it works and got the following error(using PythonWin):

>>> a = 1
>>> input('--:)')
--:)>>> a=2
Traceback (most recent call last):
  File "<interactive input>", line 1, in <module>
  File "<string>", line 1
    a=2
     ^
SyntaxError: invalid syntax

What am I doing wrong?
(Also, some tutorial for debugging capabilities in Python – including input() will be appreciated.)

Edit
We’re working with Python 2.6.6. No need for IronPython – it’s executed in Python environment.

  • 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-15T00:50:19+00:00Added an answer on June 15, 2026 at 12:50 am

    According to python documentation, input() method is equivalent to eval(raw_input(prompt)) and eval() can be used to evaluate expressions only.

    So for example this code is valid:

    >>> a=1 
    >>> input('--:)')
    --:) a+1
    2
    

    but a=2 is a statement so you have to use exec() method to execute it, here is an example:

    >>> exec(raw_input())
    a=2
    >>> a
    2
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a VB.net WPF application that creates a list from a databind. For
I have created a wpf application into which I have added a user control
I have created a desktop application in WPF that I wish to supply to
I have created some tests in my WPF application. Right now I am working
i have a WPF Application with a LoginWindow to access,so i create a Splash
I have a WPF Keyboard Application, it is developed in such a way that
I have a WPF application in VS 2008 with some web service references. For
I have troubles with WPF desktop application based on Microsoft Prism Framework. The application
I have a WPF container application (with ContentControl host) and a containee application (
I have a TabControl in my WPF application. I want my application to basically

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.