Re: issue

2009-01-19 Thread Patrick Steiger
What kind of database do you need? Relational Databases?

The three major databases you can work with python are SQLite, MySQL and
PostgreSQL (favorite of mine.)

SQLite already comes with python. Try:

>>> import sqlite3

SQLite is... Lite. All the informations are stored in a single file.

MySQL and PostgreSQL are more complete databases that run as servers on the
machine, and you can use python bindings for both. (psycopg2 for postgres,
and i forgot what binds mysql to python at the moment.)

I guess you should google for psycopg2, read a little bit about the SQL
syntax (though you may not need to use them directly, it`s good to
understand what happens behind the bindings.) The PostgreSQL docs are quite
good.

Sorry for not providing any links. They should be easy to find if you google
for them.

2009/1/19 amin 

> Hi dears.
> I started programing with python and want to use a suitable
> database.But I Know nothing about them.please introduse one to me.
> thanks.
> --
> http://mail.python.org/mailman/listinfo/python-list
>



-- 
"I May Be the Walrus."
--
http://mail.python.org/mailman/listinfo/python-list


Re: Getting OSError, Could someone suggest?

2009-01-19 Thread Patrick Steiger
2009/1/19 Steven D'Aprano 

> On Mon, 19 Jan 2009 15:47:00 +0530, srinivasan srinivas wrote:
>
> > Hi,
> >  I have written a script which will spawn more than 200 no of
> >  subprocesses. I have used subprocess.Popen to do that.
> >
> >  OSError: [Error 24] Too many open files.
> >
> > Could someone help me in fixing this error?
>
> Open fewer files.
>
> As I understand it, each subprocess counts as at least one open file. You
> may be able to increase the number of open files, but that will be
> dependent on the operating system you are using.
>

Yeah. By his question i supposed that opening less files was not an 'ok'
solution. But of course you can do that, and it is prefered  if it won't
interfere negatively in your program.


-- 
"I May Be the Walrus."
--
http://mail.python.org/mailman/listinfo/python-list


Re: Does Python really follow its philosophy of "Readability counts"?

2009-01-20 Thread Patrick Steiger
2009/1/20 Paul Rubin <"http://phr.cx"@nospam.invalid>

> Luis Zarrabeitia  writes:
> > No wonder you can't get Bruno's point. For the second, static checks
> > to prevent accidents, you have pylint. For the first, not only you
> > are using the wrong tool, but you are barking at python for not
> > having it. Assuming that pylint is perfect (big assumption, but it
> > is up to you to prove where it fails),
>
> Whaat?  Assuming a program is perfect unless a failure is proven
> is not at all a sane approach to getting reliable software.  It is
> the person claiming perfection who has to prove the absence of failure.
> --
> http://mail.python.org/mailman/listinfo/python-list
>

To quote Carl Sagan (who quoted someone else, i guess),

"Abscence of evidence is not evidence of abscence"

-- 
"I May Be the Walrus."
--
http://mail.python.org/mailman/listinfo/python-list


Re: New to python, open source Mac OS X IDE?

2009-01-28 Thread Patrick Steiger
I would recommend Netbeans with Python plugin, Eric4 and Komodo Edit, with
descending order of preference

2009/1/27 joseph.a.mar...@gmail.com 

> Greetings! I've heard enough raving about Python, I'm going to see for
> myself what all the praise is for!
>
> I'm on a Mac. I use Netbeans for Java, PHP, and C if needed. Do you
> even use an IDE for Python?
>
> Any recommendations on open source Python environments?
>
> Thanks!
> --
> http://mail.python.org/mailman/listinfo/python-list
>



-- 
"I May Be the Walrus."
--
http://mail.python.org/mailman/listinfo/python-list


Re: what IDE is the best to write python?

2009-02-02 Thread Patrick Steiger
2009/2/2 Joe Riopel 

> I typically use vim/vi, because it's usually already installed on the
> OS's I work with and vim for Windows works the same. Also, using the
> same editor across these different OS's, I don't have to worry too
> much soft/hard tabs.


 You shouldn't even think about hard tabs, and you should default all your
editors to soft tabs.


-- 
"I May Be the Walrus."
--
http://mail.python.org/mailman/listinfo/python-list