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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T19:45:02+00:00 2026-06-04T19:45:02+00:00

I have been developing a small application in Python using the Web.py framework that

  • 0

I have been developing a small application in Python using the Web.py framework that does some simple PostgreSQL queries. I have noticed that the returned value contains a whole bunch of stuff which encapsulates the actual raw data.

The following code is supposed to query the value of name from the table todo

name = db.query("SELECT name FROM todo;")

but when I call…

return name[0]

The following is returned/printed…

<Storage {'name': u'Learn web.py'}>

The data is correct, the value is “Learn web.py”, but I was wondering if it was possible to just get the raw data, “Learn web.py” instead of all the other stuff. I could parse it, but I was wondering if there was a more correct way like name.rawdata() function that I am missing? I have tried name[1] which is “out-of-bounds”.

  • 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-04T19:45:05+00:00Added an answer on June 4, 2026 at 7:45 pm
    name[0].name
    

    The [0] selects the first row from the result. The .name gets the name column from the row.

    Additionally, rather than using db.query with a raw SQL string, I’d use db.select:

    names = db.select('todo', what='name')
    

    See the documentation for more information.

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

Sidebar

Related Questions

So I have been developing a small ASP.NET web app in C# for my
I have been developing the application which can manage a device using SMS commands;
I have been developing an application for iPad that is very graphically intensive. I
I have been developing a small Java utility that uses two frameworks: Encog and
I am developing a small, internal-use only web application. Given its simple nature and
I have been developing a simple game for iOS which involves dragging and using
I have been asked to build a small web application for one of our
I have been developing an Android application and testing the orientation sensor using SensorSimulator
Recently I have been developing a small OpenGL game. Everything in it runs fine
I have been developing the application which must catch all input sms. For it

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.