Re: Implementation of Book Organization tool (Python2.[x])

2009-11-23 Thread ~km
> Though many would disagree, I consider XML as a form of database though > it is only suitable for data exchange. XML is suitable for low- to > medium-volume purpose and when compatibility with various systems is > extremely important (nearly any OS and any programming language has XML > parsers;

Re: Dictionary or Database輝lease advise

2010-02-26 Thread km
Hi, Probably u should try couchdb! its a document oriented database. ( apache.couchdb.org) u can store your dictionaries as json documents and yes they are simple text files; data structures cna be directly stored into JSON documents. memory efficient too.. python module @ http://code.google.com/

Re: NoSQL Movement?

2010-03-03 Thread km
Hi, this would be a good place to start http://en.wikipedia.org/wiki/NoSQL http://nosql-database.org/ HTH, Krishna On Thu, Mar 4, 2010 at 7:41 AM, Avid Fan wrote: > Jonathan Gardner wrote: > > >> I see it as a sign of maturity with sufficiently scaled software that >> they no longer use an SQL

Re: do something every n seconds

2010-11-25 Thread km
while True: time.sleep(10) print('hello python!') HTH, KM On Thu, Nov 25, 2010 at 8:35 PM, Steve Holden wrote: > On 11/25/2010 6:38 AM, Santiago Caracol wrote >> Hello, >> >> how can I do something (e.g. check if new files are in the working >>

shared python module ?

2011-02-04 Thread km
Hi all, I have two version of python 2.6 and 2.7. Now Is there any way that I install a python module (from pypi) and import it across both the versions ? regards, KM -- http://mail.python.org/mailman/listinfo/python-list

python-list@python.org

2009-07-14 Thread ~km
Hi, I'm experiencing a strange behaviour of the Python prompt when using the four arrow keys ( not the VIM' nor Emacs' ones ;-) ). Instead of getting the previous and next command respectively I get ugly characters. See it yourself: http://tinypic.com/view.php?pic=m78cgp&s=3 This is not directly

bad behaviour in interactive Python prompt

2009-07-14 Thread ~km
Hi, I'm experiencing a strange behaviour of the Python prompt when using the four arrow keys ( not the VIM' nor Emacs' ones ;-) ). Instead of getting the previous and next command respectively I get ugly characters. See it yourself: http://tinypic.com/view.php?pic=m78cgp&s=3 This is not directly

Re: bad behaviour in interactive Python prompt

2009-07-14 Thread ~km
On 14 Jul., 15:26, Mark Dickinson wrote: > Where did your version of Python 2.6 come from? > > If you built your copy of Python 2.6 from source, then the problem is > probably that either the readline library is missing, or (much more > likely) the include files for the readline library are missin

Re: bad behaviour in interactive Python prompt

2009-07-14 Thread ~km
On 14 Jul., 15:26, Mark Dickinson wrote: > Where did your version of Python 2.6 come from? > > If you built your copy of Python 2.6 from source, then the problem is > probably that either the readline library is missing, or (much more > likely) the include files for the readline library are missin

Re: Shebang line problems and python

2009-09-16 Thread km
assuming that ur on linux/unix and assuming that u have shebang line as #!/usr/bin/python in ur script set permissions like this chmod 755 myscript.py and then run the script as ./myscripy.py OR simply run the python script as "python myscript.py" at the shell prompt (note that this doesnt need she

Re: How to find any documentation for smbus?

2023-10-30 Thread km via Python-list
Il Sat, 28 Oct 2023 17:08:00 +0100, Chris Green ha scritto: > I am using the python3 smbus module, but it's hard work because of the > lack of documentation. Web searches confirm that the documentation is > somewhat thin! > > If you do the obvious this is what you get:- > > >>> import smbus

is input from a pipe?

2025-01-17 Thread km via Python-list
Not a question, but a quick note about a problem that sometimes pops up in forums, that is how to detect on Linux if standard input (or any I/O stream) is via pipe. My suggestion is to check if the stream is a FIFO, if True it is a pipe, otherwise not a pipe The solution that sometimes is prop

<    1   2