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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T00:19:07+00:00 2026-06-01T00:19:07+00:00

For debug use I want to show the type of a variable in Google

  • 0

For debug use I want to show the type of a variable in Google App Engine.

In traditional environment, I will use "print type( x )" to do it. But in GAE I just don’t know why I can’t use self.response.out.write( str( type( x ) ) ) to echo it in the browser. I got confused because I did transform the <type 'type'> to < type 'str' >.
Since that doesn’t work I have to use self.response.out.write( str( type( x) == type( "123" ) ) ) instead of directly echoing the type.

So what did I miss in thinking?

I am also using logging module to echo the type which works well. But I still want to know why self.response.out.write( ) doesn’t work.

Thanks all for help!!

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

    When browser renders html it thinks that <type 'str'> is a (unknown) tag, so it renders it as <type 'str'></type>, hence it becomes part of your page markup… You can see this with Firebug or any similar tool.

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

Sidebar

Related Questions

I want to use Debug.Trace.trace to print something which I know is a Show
I don't like Jackson. I want to use ajax but with Google Gson. So
I want to use PDT to debug PHP with eclipse. I am using ubuntu
I want to use remote debugging. The program that I want to debug runs
When I use PRINT statements to debug and monitor long running queries in SQL
I can use the PRINT statement in a stored procedure to debug my code.
We initially didn't use any logging or debug tracing but after spending few weeks
I want to use X-Debug in my PHP project to profile it ! So
I want to use the _Debug Constant in Qt Creater. But don't get any
I want to use declarative security to guarantee that my app is only run

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.