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

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

Re: we want python software

2017-12-05 Thread km
hiram R" wrote: > > > On Wed, Dec 6, 2017 at 10:08 AM, km wrote: > >> I dont know how these students are selected into b tech stream in India. >> they are so dumb. All they know is a to open a program we need to double >> click it and it runs. >> >> ​W

Re: we want python software

2017-12-05 Thread km
I dont know how these students are selected into b tech stream in India. they are so dumb. All they know is a to open a program we need to double click it and it runs.- windoze legacy. most of the time they pay huge amount to a greedy college and get into tech stream. Now that Java boom (jobs) is o

Re: learning and experimenting python.

2016-12-31 Thread km
You are wasting our time instead of learning python. On Dec 31, 2016 2:09 PM, wrote: > It is moderatable. You can delete your all messages except topics. > -- > https://mail.python.org/mailman/listinfo/python-list > -- https://mail.python.org/mailman/listinfo/python-list

Re: HELP!! How to ask a girl out with a simple witty Python code??

2015-03-04 Thread km
show her your python and and impress her. Regards, Krishna On Thu, Mar 5, 2015 at 7:04 AM, Xrrific wrote: > Guys, please Help!!! > > I am trying to impress a girl who is learning python and want ask her out > at the same time. > > Could you please come up with something witty incorporating a sim

Re: PyPy updated

2014-05-12 Thread km
I tried compiling pandas on pypy 2.3 but it gave error as follows numpy/core/src/multiarray/scalarapi.c:742:16: error: 'PyUnicodeObject' has no member named 'str' uni->str[length] = 0; ^ numpy/core/src/multiarray/scalarapi.c:743:16: error: 'PyUnicodeObject' has no m

Re: regex multiple patterns in order

2014-01-20 Thread km
Aah! I understand now. Thank you Regards, Krishna Mohan On Mon, Jan 20, 2014 at 4:48 PM, Ben Finney wrote: > km writes: > > > I am trying to find sub sequence patterns but constrained by the order > > in which they occur > > There are also specific resources for u

regex multiple patterns in order

2014-01-20 Thread km
I am trying to find sub sequence patterns but constrained by the order in which they occur For example >>> p = re.compile('(CAA)+?(TCT)+?(TA)+?') >>> p.findall('CAACAACAATCTTCTTCTTCTTATATA') [('CAA', 'TCT', 'TA')] But I instead find only one instance of the CAA/TCT/TA in that order. How can I get

pkg_resources ?

2011-06-14 Thread km
esources.run_script('pbpy==0.1', 'run.py') ##code # What are the advantages of using pkg_resources stuff ? Thanks Regards, KM -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Developers with 5 years of experience

2011-05-04 Thread km
probably it is good to post jobs in python-list itself rather than posting it on someother site. Many mailing lists do that. It gives a feel of what jobs we come across for the Python developers. KM On Thu, May 5, 2011 at 3:16 AM, Ben Finney wrote: > "Jerome jjcpl.rpo" writes: >

Python 3.2 vs Java 1.6

2011-04-08 Thread km
Hi All, How does python 3.2 fare compared to Java 1.6 in terms of performance ? any pointers or observations ? regards, KM -- http://mail.python.org/mailman/listinfo/python-list

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

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 >>

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: 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: Manyfile Processing

2009-12-04 Thread km
use glob module Krishna On Fri, Dec 4, 2009 at 6:37 PM, Diez B. Roggisch wrote: > u...@domain.invalid schrieb: > >> Hey, >> >> sorry if i bother you with a beginners question but i have an issue >> with processing a bunch of files. They are some arithmetic lists the >> processing of one file is

Re: Delaunay triangulation

2009-12-02 Thread km
check CGAL (cgal.org) it has python bindings Krishna On Wed, Dec 2, 2009 at 11:28 PM, David Robinow wrote: > On Tue, Dec 1, 2009 at 8:31 PM, Vincent Davis > wrote: > > Anyone know of a python implementation of Delaunay triangulation? > > Matplotlib has one. > There's also Delny @pypi > > It's

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;

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

2009-11-22 Thread ~km
Hi together, I'm a python-proficient newbie and want to tackle a program with Python 2.x, which basically organizes all my digital books (*.pdf, *.chm, etc..) and to give them specific "labels", such as: "Author" -> string "Read" -> boolean "Last Opened:" -> string and so on.. Now my question is

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: 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

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

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

update python version

2009-05-07 Thread km
Hi all, Is there a way to update python 2.6.1 to 2.6.2 using easy_install ? thanks, regards, KM -- http://mail.python.org/mailman/listinfo/python-list

Re: Geometry package

2009-03-28 Thread km
Hi, I hope this is what u need : http://cgal-python.gforge.inria.fr/ HTH KM On Sun, Mar 29, 2009 at 1:55 AM, Justin Pearson wrote: > Hi all, > > I'm looking for a geometry package in Python; something that will let > me define line segments, and can tell me if two line segment

multiprocessing python2.6.1

2009-02-14 Thread km
? thanks in advance. KM -- http://mail.python.org/mailman/listinfo/python-list

Re: Embarrasing questio

2009-02-12 Thread km
Hi, you could do it this way also : if i in [3,5]: do something... KM ~ On Fri, Feb 13, 2009 at 1:19 AM, Michele Simionato < michele.simion...@gmail.com> wrote: > On Feb 12, 5:07 pm, TechieInsights wrote: > > On Feb 12, 9:03 am, Catherine Heathcote

Re: python for *nix system admins

2008-09-27 Thread km
import os HTH KM ~~ On Sat, Sep 27, 2008 at 1:35 PM, Lars Stavholm <[EMAIL PROTECTED]> wrote: > Hi All, > > I'm new to this list and hoping that this is not off-topic. > If it is, please point me in the right direction. > > I seem to recollect a pyth

python 3.x third party modules

2008-09-23 Thread km
Hi all, I would like to look at third party modules which are python 3.0 ready. could some one point me to such a resource ? If its not available, it would be useful to host a page regarding this on python.org ? any comments ? KM -- http://mail.python.org/mailman/listinfo/python-list

Re: improving a huge double-for cycle

2008-09-23 Thread km
how abt this ? N = len(IN) for k in range(N): for j in range(N): if j >= k: # or k <= j doSomething() KM ~~~ On Thu, Sep 18, 2008 at 6:27 PM, Tim Chase <[EMAIL PROTECTED]>wrote: > Code: Select all >>for i in rang

Re: ANN: Resolver One 1.2 released

2008-08-19 Thread km
Hi, sounds great - but disappointing to find it only available on window$. Is there any Linux release in near future ??? KM ~~ On Tue, Aug 19, 2008 at 6:10 PM, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote: > We are proud to announce the r

Re: A GUI framework for running simulations

2008-01-23 Thread km
Hi, check SimPy module and then http://www.showmedo.com/videos/series?name=pythonThompsonVPythonSeries KM On Jan 23, 2008 8:10 PM, Guilherme Polo <[EMAIL PROTECTED]> wrote: > 2008/1/23, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > Hello! I am currently working on writing a

Re: Python Trajectory Module?

2008-01-02 Thread km
Hi have a look at these demos (includes trajectory etc) with VPython http://showmedo.com/videos/series?name=pythonThompsonVPythonSeries best wishes, KM -- On Jan 2, 2008 5

Re: joining rows

2007-12-29 Thread km
s > > Looking at the answer u require , u can clearly make a dictionary if list datastructure! where dictionary keys are A,B, C ,D and corresponding values are list if items (ie., 1,2,3 ...) Once u have such a dict loaded, its kust a matter of accessing that list via a key and display

Re: comparing dictionaries to find the identical keys

2007-12-28 Thread km
ent or not in the other list and then print corresponding values. Alternately this can also be done with sets module by converting the list into a set object and do a simple intersection of the two sets, by which u get the commonly occuring items. HTH KM > -- > http://mail.python.org/mailman/listinfo/python-list > -- http://mail.python.org/mailman/listinfo/python-list

module level subclassing

2007-12-10 Thread km
that possible ? kindly enlighten regards, KM -- http://mail.python.org/mailman/listinfo/python-list

module organization/inheritance problem

2007-12-07 Thread km
ork ? am i missing something ? regards, KM -- http://mail.python.org/mailman/listinfo/python-list

Re: metaclasses: timestamping instances

2007-09-03 Thread km
Hi, But why does it show varied difference in the time between a and b instance creations when __metaclass__ hook is used and when not used in class Y ? I dont understand that point ! KM On 9/1/07, Michele Simionato <[EMAIL PROTECTED]> wrote: > > On Sep 1, 6:07 pm, Steve Ho

metaclasses: timestamping instances

2007-09-01 Thread km
_created b = Y() print 'b time stamp %e'%b._created print abs(a._created - b._created) I donot understand the difference between 1) setting __metaclass__ to 'Meta' in class Y 2) not setting __metaclass__ to Meta in class Y Why is the difference in behaviour of time stamping

Re: beginner in python

2007-08-02 Thread km
consider the whole line in the data file, they are all unique - there is no redundancy. KM --- On 8/2/07, Beema shafreen <[EMAIL PROTECTED]> wrote: > > Hi everybody , > I am a beginner in python, > I have to f

Re: beginner in python

2007-08-02 Thread km
Standard convention is to use four spaces for indent. Another problem is that u have not closed the filehandle in the program! HTH KM -- http://mail.python.org/mailman/listinfo/python-list

Re: Please help on Binary file manipulation

2007-06-05 Thread km
Hi, I assume ur on a linux/unix box... pls check the manual for 'split' command in linux/unix this does ur job regards, KM --- On 6/5/07, Pieter Potgieter <[EM

Re: Inheriting from Python list object(type?)

2007-05-23 Thread km
= y p = Point(2,3) print dir(p) print type(p) code regards KM -- On 23 May 2007 09:58:36 -0700, Mangabasi <[EMAIL PROTECTED]> wrote: Howdy, I would like to create a Point class that l

Re: __getattr__ and __getattribute__

2007-05-09 Thread km
Oh thats lucid! thanks for the explanation. regards KM - On 5/9/07, Gabriel Genellina <[EMAIL PROTECTED]> wrote: En Tue, 08 May 2007 08:22:03 -0300, km <[EMAIL PROTECTED]> escribió: > i find it difficult to understand

__getattr__ and __getattribute__

2007-05-08 Thread km
Hi all, i find it difficult to understand the difference between the magic methods __getattr__ and __getattribute__ and so donot know when to use former or later. can someone brief me on it ? regards, KM -- http://mail.python.org/mailman/listinfo/python-list

distance map

2007-04-25 Thread km
Hi all, Is there any module to make a network diagram given a 2-D matrix of distances ? any hints regards, KM -- http://mail.python.org/mailman/listinfo/python-list

Re: Best Free and Open Source Python IDE

2007-02-09 Thread km
check out SPE (StanisPpython Editor) KM On 9 Feb 2007 10:43:00 -0800, Bastos <[EMAIL PROTECTED]> wrote: On Feb 8, 10:03 am, "Srikanth" <[EMAIL PROTECTED]> wrote: > Yes, > > All I need is a good IDE, I can't find something like Eclipse (JDT). > Eclipse has

Re: best package for a physical simulation?

2007-01-23 Thread km
Hi, checkout MMTK package http://dirac.cnrs-orleans.fr/MMTK/ regards, KM On 1/24/07, Robert Kern <[EMAIL PROTECTED]> wrote: [EMAIL PROTECTED] wrote: > Hello everyone, > i would like to use python to perform some simulation involving collisions > of colloidal particles. >

setup.py ./configure arguments

2007-01-12 Thread km
Hi, how do i pass '--enable-shared' etc arguments to Python2.5 setup.py ? do i need to edit some file ? regards, KM -- http://mail.python.org/mailman/listinfo/python-list

module hierarchy snapshot

2006-12-24 Thread km
Hi, Is there any good tool get a snapshot of module hierarchy for custom python modules ? regards, KM -- http://mail.python.org/mailman/listinfo/python-list

Re: regex problem

2006-11-22 Thread km
HI Tim, oof! thats true! thanks a lot. Is there any tool to simplify building the regex ? regards, KM On 11/23/06, Tim Chase <[EMAIL PROTECTED]> wrote: > line is am trying to match is > 1959400|Q2BYK3|Q2BYK3_9GAMM Hypothetical outer membra29.90.00011 1 > > regex

regex problem

2006-11-22 Thread km
line. why doesnt it match the group(4) item of the match ? any idea whats wrong with it ? regards, KM -- http://mail.python.org/mailman/listinfo/python-list

Re: how to print pdf with python on a inkjet printer.

2006-11-19 Thread km
i dont see os.startfile in python2.5 installation on my system :-( KM On 11/19/06, Thomas Heller <[EMAIL PROTECTED]> wrote: Gabriel Genellina schrieb: > At Friday 17/11/2006 17:40, Tim Roberts wrote: > >> > double wow! as it is my customer wants me to print to the

Re: What python modules are available?

2006-11-17 Thread km
Hi all, Thats ridiculous! why is that the numpy implementation documentation is put on sale and not available freely to everyone? regards, KM --- On 11/18/06, Robert Kern <[EMAIL PROTEC

java python GPL

2006-11-15 Thread km
Hi all, what does Java released under GPL mean to python ? could it hamper python development on the long run? regards, KM -- http://mail.python.org/mailman/listinfo/python-list

biopython SProt

2006-11-15 Thread km
Hi all, Biopython's SProt module doesnt seem to work with current Uniprot KB . do anyone have a parser to read Uniprot format files ? regards, KM -- http://mail.python.org/mailman/listinfo/python-list

Re: __init__.py

2006-11-14 Thread km
Hi, wow ! i tried it and it works like charm! could access  variables  declared at root module dir  in submodules. also i would like to know if i can have an abstract class declared in __init__.py  with common variables ? regards, KMOn 11/14/06, Fredrik Lundh <[EMAIL PROTECTED]> wrot

Re: __init__.py

2006-11-14 Thread km
/__init__.py so that i can access them by foo.mypath1 in first and second submodule class definitions?  if not  anyother way out ? regards, KMOn 11/14/06, Fredrik Lundh <[EMAIL PROTECTED]> wrote: km wrote:> what is the use of __init__.py file in a module dir ?it tells Python that the

__init__.py

2006-11-14 Thread km
Hi all, what is the use of __init__.py file in a module dir ? Is it used to initialize variables  that could be shared across sub modules  if set in __init__.py at root dir  of module ? regards, KM -- http://mail.python.org/mailman/listinfo/python-list

cross connecting

2006-11-09 Thread km
are suitable for this sort of a work ? regards, KM -- http://mail.python.org/mailman/listinfo/python-list

Re: Python and CMS

2006-10-23 Thread km
Hi, check out Plone atop Zope. http://plone.org regards, KMOn 10/23/06, Sybren Stuvel <[EMAIL PROTECTED]> wrote: Kjell Magne Fauske enlightened us with:> I recommend taking a look at Django [1]. It is not a CMS right out > of the box, but writing one using the Django framework is not that> diffi

Re: references and buffer()

2006-10-08 Thread km
nce of python interpreter ? regards, KM   -- http://mail.python.org/mailman/listinfo/python-list

Re: references and buffer()

2006-10-08 Thread km
age Collected  immediately? regards, KM -- http://mail.python.org/mailman/listinfo/python-list

Re: references and buffer()

2006-10-08 Thread km
he referred variable/buffer object it should be reflected in the referenced variables/buffers objects . am i wrong ? does it mean that references  in python are not true references ? regards, KM -- http://mail.python.org/mailman/listinfo/python-list

references and buffer()

2006-10-08 Thread km
t;>>print x TCGTACC >>> id(y) -1085484104 >>> id(x) -1085476384 now the ids of y and x are not the same - why ? In which situatons are buffers used against the strings ? can i create a write buffer instead of readonly buffer ? what exactly are buffer object types ? and how can i instantiate them ? regards, KM -- http://mail.python.org/mailman/listinfo/python-list

psycopg: tz import error

2006-10-06 Thread km
; fails to import.do i need to set any env variable specially for 2.4.3 ? regards,KM -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: dmath 0.9 - Math routines for the Decimal type

2006-09-25 Thread km
and how different is MIT licence to GPL ? could u elaborate on that ? regards, KM On 9/26/06, Brian Beck <[EMAIL PROTECTED]> wrote: > Brian Beck wrote: > > What is dmath? > > == > > dmath provides the standard math routines for Python's arbitrary-p

memory

2006-09-14 Thread km
Hi all,Is there any module to limit the memory usage of the python program ?regards,KM -- http://mail.python.org/mailman/listinfo/python-list

variable update

2006-09-12 Thread km
Hi all Is there any handy untility for checking if  a variable is populated at runtime ? regards, KM -- http://mail.python.org/mailman/listinfo/python-list

Re: best small database?

2006-09-11 Thread km
checkout gadfly database.regards,KMOn 9/11/06, David Isaac <[EMAIL PROTECTED]> wrote: I have no experience with database applications.This database will likely hold only a few hundred items,including both textfiles and binary files.I would like a pure Python solution to the extent reasonable. Sugge

Re: Ann: CoreBio 0.4

2006-09-11 Thread km
Hi,why are u reinventing the wheel when Biopython[1] is already existing ? is there any specific reason u wanted to develop this CoreBio ? why dont u just extend the existing BioPython package itself ?regards,KM [1]http://biopython.org

Re: Ann: CoreBio 0.4

2006-09-11 Thread km
On 11 Sep 2006 00:59:30 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Announcing CoreBio 0.4 > > CoreBio home page: > http://code.google.com/p/corebio/ > > Download: > http://corebio.googlecode.com/svn/dist/CoreBio-0.4.1.tar.gz > > CoreBio is an open sourc

Re: Building Python Based Web Application

2006-09-08 Thread km
Hi,   I use Plone/Zope for and interface it with PostgreSQL . its pretty good. saves  lot of time. ofcourse the learning curve is steep. Zope uses CSS heavily and since ur comfortable with it it shouldnt take muchtime building the site with much less coding in python.   regards, KM   On 9/9/06

Re: threading support in python

2006-09-08 Thread km
  Where is Guido ? would be great to hear  his opinion on GIL/ GC issues in future versions of Python.   regards, KM   On 7 Sep 2006 08:02:57 GMT, Antoon Pardon <[EMAIL PROTECTED]> wrote: On 2006-09-06, [EMAIL PRO

Re: threading support in python

2006-09-05 Thread km
True, since smartness is a comparison, my friends who have chosen java over python for considerations of a true threading support in a language are smarter, which makes me a dumbo ! :-) KM On 9/5/06, Richard Brodie <[EMAIL PROTECTED]> wrote: > > "km" <[EMAIL PROTECTED]

Re: threading support in python

2006-09-05 Thread km
. ## if __name__ == ''__multiprocessor_execution_environment__': for python_version in range(python2.4.x, python3.x, x): if python_version.GIL: print 'unusable for computation intensive multiprocessor architecture' else:

Re: threading support in python

2006-09-04 Thread km
Hi all, Are there any alternate ways of attaining true threading in python ? if GIL doesnt go then does it mean that python is useless for computation intensive scientific applications which are in need of parallelization in threading context ? regards, KM

threading support in python

2006-09-04 Thread km
Hi all, Is there any PEP to introduce true threading features into python's next version as in java? i mean without having GIL. when compared to other languages, python is fun to code but i feel its is lacking behind in threading regards, KM -- http://mail.python.org/mailman/listinfo/p

Re: subprocess woes

2006-08-30 Thread km
Hi Dennis,   That works great. thanks for the correction. The 'output' variable has the returned data as string obbject. how can i get it as a list object with elements as line by line? Is it that p1.communicate()[0] by default returns a single string only ? regards, KM  On 8/29/06,

Re: subprocess woes

2006-08-30 Thread km
Hi Dennis, That works great ! thanks for the correction regards, KM-- On 8/29/06, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: On Tue, 29 Aug 2006 18:17:47 +0530, km <[EMAIL PROTECTED] >declaimed the following in comp.lang.python:

subprocess woes

2006-08-29 Thread km
The idea is to pipe-input the string to the program as a variable as mentioned above. regards, KM -- http://mail.python.org/mailman/listinfo/python-list

XMLSchema Parsing

2005-11-27 Thread km
Hi all, i'd like to know if there are any good XMLSchema (.xsd files) parsing modules in python. regards, KM -- http://mail.python.org/mailman/listinfo/python-list

Re: loop in python

2005-08-25 Thread km
re really coded in very low level for python ? regards, KM -- http://mail.python.org/mailman/listinfo/python-list

Re: loop in python

2005-08-23 Thread km
n it comes to webscripting) > regards > Steve "The inventor of Holden" regards, KM -- http://mail.python.org/mailman/listinfo/python-list

Re: loop in python

2005-08-22 Thread km
hon is not yet ready? even most of the googling abt python vs perl convince me that perl is faster than python in most of the aspects. Also the first thing any newbie to python asks me is abt "raw speed in comparison with similar languages like perl" when i advocate python to perl. regards, KM -- http://mail.python.org/mailman/listinfo/python-list

Re: loop in python

2005-08-22 Thread km
python snippet, it not better , it takes 0.57 seconds. just test it urself and see. what more do i need to accept python is slow when it comes to loops concept ? PS : my linux box is running fedora core 2 with 256 MB RAM regards, KM

loop in python

2005-08-22 Thread km
0.005 seconds only !!! Is python runtime slow at all aspects when compared to perl ? I really wonder what makes python slower than perl ? Is there any proposal to make python faster in future versions ? curious to know all these ... regards, KM -- http://mail.python.org/mailman/listinfo

global interpreter lock

2005-08-19 Thread km
Hi all, is true parallelism possible in python ? or atleast in the coming versions ? is global interpreter lock a bane in this context ? regards, KM -- http://mail.python.org/mailman/listinfo/python-list

Re: multiple inheritance super()

2005-07-26 Thread km
Hi peter, ya got it working :-) now i understand mro better. thanks, KM - On Tue, Jul 26, 2005 at 04:09:55PM -0400, Peter Hansen wrote: > km wrote: > > Hi all, > > > > In the following code why am i not able to ac

multiple inheritance super()

2005-07-26 Thread km
Hi all, In the following code why am i not able to access class A's object attribute - 'a' ? I wishto extent class D with all the attributes of its base classes. how do i do that ? thanks in advance for enlightment ... here's the snippet #!/usr/bin/python class A(object): def __init__

without shell

2005-06-09 Thread km
hi all, can any linux command be invoked/ executed without using shell (bash) ? what abt security concerns ? regards, KM -- http://mail.python.org/mailman/listinfo/python-list

decimal numarray

2005-05-30 Thread km
Hi all, is there any support for decimal type in numarray module ? regards, KM -- http://mail.python.org/mailman/listinfo/python-list

Re: 20050111: list basics

2005-05-16 Thread km
Hi all, > Perl's pack function will allow you to do direct memory access if you > ask it to via the "p" and "P" templates. can we do direct memory accessing in python also ? regards, KM -- http://mail.python.org/mailman/listinfo/python-list

80 bit precision ?

2005-05-13 Thread km
Hi all, does python currently support 80 bit precision Floating Point Unit ? regards, KM -- http://mail.python.org/mailman/listinfo/python-list

Re: OOPS concept

2005-05-04 Thread km
Hi all, Well this doesnt explain new style classes. let me be more clear. is there any online tutorial/ recommended book which deals explicitly with object oriented programming in python? regards, KM --- > Try this onl

OOPS concept

2005-05-04 Thread km
Hi all, Is there any good step by step online tutorial on OOPS concepts in python ? i have checked some on the python.org.__doc__ page but couldnt make much sense. especially i need help on newstyle classes. regards, KM -- http://mail.python.org/mailman/listinfo/python-list

Re: Supercomputer and encryption and compression @ rate of 96%

2005-05-02 Thread km
ot able to create a file with such a big filename ? any workarounds ? regards, KM On Thu, Apr 14, 2005 at 01:49:22PM +0200, Fredrik Lundh wrote: > Will McGugan wrote: > > > Please implement this as a Python m

Re: Python - what is the fastest database ?

2005-03-02 Thread km
Hi all, Google has specially designed file system 'Goolgle File System' too. KM - On Mon, Feb 28, 2005 at 01:43:53PM -0500, Terry Reedy wrote: > > <[EMAIL PROTECTED]> wrote in message > news:[EMA

  1   2   >