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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T07:45:45+00:00 2026-06-15T07:45:45+00:00

Here is what I am doing. redis-py blows up when i do this. Python

  • 0

Here is what I am doing. redis-py blows up when i do this.

Python 2.7.3 (default, Aug  1 2012, 05:16:07)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import redis
>>> p = redis.ConnectionPool()
>>> r = redis.Redis(connection_pool=p)
>>> p.release(r)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/redis/connection.py", line 355, in release
    if connection.pid == self.pid:
AttributeError: 'Redis' object has no attribute 'pid'
>>>
  • 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-15T07:45:46+00:00Added an answer on June 15, 2026 at 7:45 am

    OK since nobody responded to this question, I took some time and went through the redis-py source code (use the source luke!) and here is what I found. I will share it here in case someone else faces the same issue in the future.

    The Redis() object returned by

    r = redis.Redis(connection_pool=p)
    

    does not represent a redis connection. It is just a Python object on which the redis API has been proxied. When we make a call to a specific API, say

     r.keys() 

    the internal proxy uses the connection pool passed to ask for a connection before it creates the command and payload and fires against the connection obtained from the pool. It then returns the connection back to the pool. All these actions are transparent to the API user.

    The bottom line is that you can create any number of redis.Redis() objects in the code and just discard them. The Python GC will handle object cleanup while the connection_pool is managed outside of the Redis() object.

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

Sidebar

Related Questions

I'm trying to achieve what this guy here is doing, only in PHP or
I've seen several solutions for doing this: Redis / Resque Delayed Job Heroku Scheduler
It seems that I'm doing here something terribly wrong. Can you help me? The
Are there any problems with what I am doing here? This is my first
I am doing this in i-net Designer (another Crystal Report type program). My problem
What is this JavaScript code doing here, specifically the while loop: function setAjaxLinks(){ var
Can anyone correct what Im doing here Uncaught TypeError: Object function DataService($scope) { this.$scope
I am not sure what I should be doing here. Should I be hardcoding
Can you explain for me what the typedef here is doing and what the
Here I am doing a basic trigger example but jquery is unable to execute

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.