Re: Sockets accept() in child processes
Le 12/04/2012 19:10, Dan Stromberg a écrit : I wonder if this'll do what you need: https://trac.calendarserver.org/browser/CalendarServer/trunk/twext/python/sendfd.py The problem is that this is Linux-only solution, and I would like to keep a multi-platform compatibility. There are other ways to do this : use a Lock and do the select() directly in the children processes, but I can't control which process will get the lock, and it's totally possible that only 2 processes on 8 will accept connections alternatively. -- http://mail.python.org/mailman/listinfo/python-list
SQLAlchemy DB Migration
Hi everybody, I'm looking for a way to migrate SQLAlchemy based database easily. I found Migrate, but finally it's almost the same as doing the migration by hand. If this doesn't exists, do you think that it would be hard to do a simple migration tool which would : - Add/Delete columns from DB if they are not anymore in the models (With a confirmation for deletion) - Add/Delete constraints/sequences on table if they are not on the model too We could also imagine a way to : - Handle column rename, with data copy from one to another - Handle column type change, with proper data conversion Of course, such a system can't be 100% automated, that's not the goal. Human interventation will be needed, but it might be more simpler for simple cases than Migrate. -- Thibaut -- http://mail.python.org/mailman/listinfo/python-list
PySide / PyQt autocompletion in IDEs
Hi, I would like to work with PyQt / PySide, but there is a small problem : methods arguments are not completed by IDE's autocompletion. When, typing "PySide.", I correctly get the module's attributes, but when I want to see what arguments are expected to a constructor / method, all I get is *args, **kwargs. I perfectly understand why this happen, but do you know a way to get around this ? I spend more time looking for arguments in Qt's documentation than effectively programming, which is a problem :-/ Thanks for reading, -- http://mail.python.org/mailman/listinfo/python-list