Re: Python Package documentation error

2021-09-02 Thread Krishna
this file, it is not mandatory to have in Python 3x. to treat directories as packages. So I think we should correct it. [1] https://docs.python.org/3/tutorial/modules.html?highlight=packages#packages Thanks, Krishna On Fri, Sep 3, 2021 at 10:13 AM Krishna wrote: > Hi Python Team, > I thi

Anyone has good understanding of how model base agents work in 2D array? --AIMA repository

2019-10-06 Thread krishna singh
Hi, I have started learning artificial intelligence and currently going through AIMA repository https://github.com/aimacode/aima-python but I am stucked at model base reflex agent implementation in the 2D environment. Does anyone have a good understanding of how model base agents work in 2D arr

Understanding '?' in regular expressions

2012-11-15 Thread krishna . k . kishor3
Can someone explain the below behavior please? >>> re1 = re.compile(r'(?:((?:1000|1010|1020))[ ]*?[\,]?[ ]*?){1,3}') >>> re.findall(re_obj,'1000,1020,1000') ['1000'] >>> re.findall(re_obj,'1000,1020, 1000') ['1020', '1000'] However when I use "[\,]??" instead of "[\,]?" as below, I see a differen

python etl tool

2011-01-01 Thread krishna kumar
can u please list out the etl tool which has been devloped in python and it is being used in market now? or just list me the etl tools developed in python? Thanks Krishnakumar.A -- http://mail.python.org/mailman/listinfo/python-list

etl tool!!!!!

2010-12-28 Thread krishna kumar
Is there any efficient etl tool developed in python? -- http://mail.python.org/mailman/listinfo/python-list

Is there any module for automated testing in python?

2010-10-15 Thread gopi krishna
Hi, Is there any module for automated testing in python? Pls help me frns.. From Gopi -- http://mail.python.org/mailman/listinfo/python-list

Why list comprehension faster than for loop?

2010-05-09 Thread gopi krishna
Why list comprehension faster than for loop? -- http://mail.python.org/mailman/listinfo/python-list

can we change the variables with function

2010-05-09 Thread gopi krishna
Hi can I change the variable in a function using the function suppose >>>def a(): x=20 can we change the variable using the function -- http://mail.python.org/mailman/listinfo/python-list

flattening list

2010-05-09 Thread gopi krishna
Hi , Anyone can pls help me in flattening the list. if p is the my list which is defined below p=[1,[2,3,4],[5,6,],9,[[11,12]]] from the above how to get a list as [1,2,3,4,5,6,9,11,12] -- http://mail.python.org/mailman/listinfo/python-list

dictionary

2010-04-26 Thread gopi krishna
When I give a dictionary with key and value in order how can get back iy in same order -- http://mail.python.org/mailman/listinfo/python-list

Does Abstract class , interfaces there in python ?

2010-04-13 Thread gopi krishna
Hi , I want to know whether there is an abstract class and interfaces in python. If so how to implement it.. Pls help me on this. Thanks Gopi -- http://mail.python.org/mailman/listinfo/python-list

Re: Scalable python dict {'key_is_a_string': [count, some_val]}

2010-03-10 Thread Krishna K
On Fri, Feb 19, 2010 at 11:27 PM, Jonathan Gardner < jgard...@jonathangardner.net> wrote: > On Fri, Feb 19, 2010 at 10:36 PM, krishna > wrote: > > I have to manage a couple of dicts with huge dataset (larger than > > feasible with the memory on my system), it basically

Scalable python dict {'key_is_a_string': [count, some_val]}

2010-02-19 Thread krishna
does the merging part? Thanks, Krishna -- http://mail.python.org/mailman/listinfo/python-list

Re: zip a huge file into multiple small ones

2009-09-07 Thread krishna chaitanya
Can i automate this process of uploading the zip file into a http server and getting the public url for that? On Mon, Sep 7, 2009 at 5:31 PM, Chris Rebert wrote: > On Mon, Sep 7, 2009 at 4:57 AM, Chris Withers > wrote: > > krishna chaitanya wrote: > >> > >> I am

zip a huge file into multiple small ones

2009-09-06 Thread krishna chaitanya
I am new to dealing with zip files in python. I have a huge file which i need to zip and send as an attachment through email. My email restrictions are not allowing me to send it in one go. Is there a way to split this file into multiple zip files, so that i can mail them separately. All the indivi

adding multiple new values to the same key in a dictionary

2009-08-11 Thread Krishna Pacifici
], [10])...} You can see there are several errors here (I have more things being appended than there are values in the dictionary), but I really just want to know how to add multiple values to the same key in a dictionary. Thanks for any help, Krishna -- http://mail.python.org/mailman/listinfo

Re: looping through values in a dictionary and appending to a list

2009-08-11 Thread Krishna Pacifici
Nevermind, got it. Sorry. >>> Krishna Pacifici 08/11/09 2:12 PM >>> Hi, I want to append the values of a dictionary to a list. I have a dictionary sec_dict_clean and I want to append the values to a list, but am having a hard time looping through the values in the diction

Re: dictionary help

2009-08-11 Thread Krishna Pacifici
nd am enjoying all of the flexibility associated with a scripting and programming language. Thanks again, Krishna >>> Simon Forman 08/11/09 12:15 PM >>> On Aug 11, 11:51 am, MRAB wrote: > Krishna Pacifici wrote: > > Thanks for the help. > > > Actually this is

Re: dictionary help

2009-08-11 Thread Krishna Pacifici
suggestions or comments about the above problem would be greatly appreciated. Thanks again, Krishna >>> Dave Angel 08/11/09 7:38 AM >>> Krishna Pacifici wrote: > Hi, > kind of a newbie here, but I have two questions that are probably pretty > simple. > > 1. I ne

dictionary help

2009-08-10 Thread Krishna Pacifici
ulty. Any suggestions would be greatly appreciated. Thank you very much, Krishna -- http://mail.python.org/mailman/listinfo/python-list

How to convert he boolean values into integers

2009-06-25 Thread krishna
Hi Guys, I need to convert 1010100110 boolean value to some think like 2345, if its possible then post me your comment on this Advanced thanks for all Narayana perumal.G -- http://mail.python.org/mailman/listinfo/python-list

IDE

2008-08-24 Thread krishna
i need link of latest IDE of python(GUI) -- http://mail.python.org/mailman/listinfo/python-list

Access individual fields in csv using python

2008-08-07 Thread Krishna
How do I access individual fields in csv using python? Please let me know ASAP as its real urgent for me. Thanks for your help Krishna -- http://mail.python.org/mailman/listinfo/python-list

importing part of a module without executing the rest

2008-06-13 Thread krishna . 000 . k
file1.py -- a = 20 from abc import * print "Should this be printed when 'a' is alone imported from this module" file2.py -- from file1 import a print a file2.py is used in a context where 'from abc import *' statement doesn't make sense but it can make sense of (and requires) 'a'

data manipulation

2008-05-01 Thread Krishna
"expected BOF record". I was wondering how to work around this. Do I have to do some format conversion to accomplish this or am I missing something Thanks Krishna -- http://mail.python.org/mailman/listinfo/python-list

Re: Environment Variables

2008-04-25 Thread Krishna
On Apr 25, 9:17 am, Mike Driscoll <[EMAIL PROTECTED]> wrote: > On Apr 25, 8:07 am, Krishna <[EMAIL PROTECTED]> wrote: > > > > > > > Environment variable set up is the most confusing part for me all the > > time. Please help me with the following quest

Environment Variables

2008-04-25 Thread Krishna
and the file is not found and its not imported. ALso, inside the .py file, if I have a command to open a different file, it doesnt see that either. How do I overcome these basic difficulties in python. I wish I can open any file and work on that using python. Thanks for your help! Krishna -- ht

Re: Excel Manipulation using Python

2008-04-18 Thread Krishna
On Apr 18, 11:36 am, Tim Golden <[EMAIL PROTECTED]> wrote: > Krishna wrote: > > I was trying to delete rows in an existing .xls file using python. How > > do I do that? I was using the following code, it seem to work if I > > type in python window, but if I save it i

Delete rows using xlrd?

2008-04-18 Thread Krishna
I want to delete some rows (by creating a loop may be) using xlrd. Is this possible, if not how do I do that with python? Please help Thanks Krishna -- http://mail.python.org/mailman/listinfo/python-list

Excel Manipulation using Python

2008-04-18 Thread Krishna
I was trying to delete rows in an existing .xls file using python. How do I do that? I was using the following code, it seem to work if I type in python window, but if I save it in text editor and drage and drop the .py file, it doesnt work. What am I doing wrong here? Thanks for your help! impor

Re: While executing the class definition which object is referenced by the first argument of the class method, Y r Object attributes not allowed as default arguments

2008-03-07 Thread Krishna
On Mar 6, 5:04 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Thu, 06 Mar 2008 22:48:42 -0200, Krishna <[EMAIL PROTECTED]> > escribi�: > > > > >>>> class Test(object): > > ... def __init__(self): > >

While executing the class definition which object is referenced by the first argument of the class method, Y r Object attributes not allowed as default arguments

2008-03-06 Thread Krishna
>>> class Test(object): ... def __init__(self): ... self.a= 2 ... def func(self, k = self.a): ... print k ... Traceback (most recent call last): File "", line 1, in ? File "", line 4, in Test NameError: name 'self' is not defined >>> In the 'definition of the cl

Windows System Administration: State of the Art on Python?

2008-02-26 Thread Krishna Kirti Das
I am a long-time user of Perl who comes to you in peace and is evaluating different scripting languages for use as a scripting platform for system administrators on the Windows platform. Perl already has many modules that allow sys admins and devolpers to do lots of things with the Windows OS, and

Re: copying files through Python

2008-02-16 Thread Lalit Krishna
Hi this is the code which I wrote till now. It is giving permission denied error for sub folders of source directory. Does anyone have any idea what is going wrong import os import shutil def copytreetosinglefolder(src, dst): names = os.listdir(src) if (os.path.isdir(dst)==False): os.mkdir(dst)

working of round()

2007-04-15 Thread Krishna . K . 1900
Does round() always perfectly return the output expected or are there some artifacts which don't allow perfect functionality Using python 2.5: >>> round(12.234, 2) 12.23 >>> round(12.234, 3) 12.234 >>> round(12.234, 1) 12.199 >>> but was expecting 12.2 Also, for round(x,n), can't 'x'

silent processing with python+modpython+cheetah

2006-10-21 Thread Sai Krishna M
ings.? Also if we want to have partial processing of the pages, i.e, the value one chooses for a particular field determines the value to be entered for another field in the same page, how can it be done? Thanks, Sai krishna. -- http://mail.python.org/mailman/listinfo/python-list

Re: Screen capture on Linux

2006-10-21 Thread Sai Krishna M
On 10/21/06, Paolo Pantaleo <[EMAIL PROTECTED]> wrote: > Hi, > > I need to capture a screen snapshot in Linux. PIL has a module Its defaultly provided in the 'actions' menu of the OS. > IageGrab, but in the free version it only works under Windows. Is > there any package to capture the screen on

inserting into a file

2006-09-11 Thread Sai Krishna M
help... Sai krishna M -- I love Freedom -- http://mail.python.org/mailman/listinfo/python-list

Re: search/replace in Python (solved)

2005-05-28 Thread Vamsee Krishna Gomatam
Leif K-Brooks wrote: > Oliver Andrich wrote: > > > For real-world use you'll want to URL encode and entityify the text: > > import cgi > import urllib > > def google_link(text): > text = text.group(1) > return '%s' % (cgi.escape(urllib.quote(text)), >

search/replace in Python

2005-05-28 Thread Vamsee Krishna Gomatam
Hello, I'm having some problems understanding Regexps in Python. I want to replace "PHRASE" with "http://www.google.com/search?q=PHRASE>PHRASE" in a block of text. How can I achieve this in Python? Sorry for the naive question but the documentation is really bad :-( Regards, GVK -- http