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
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
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
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
Is there any efficient etl tool developed in python?
--
http://mail.python.org/mailman/listinfo/python-list
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?
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
does the merging part?
Thanks,
Krishna
--
http://mail.python.org/mailman/listinfo/python-list
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
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
], [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
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
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
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
ulty.
Any suggestions would be greatly appreciated.
Thank you very much,
Krishna
--
http://mail.python.org/mailman/listinfo/python-list
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
i need link of latest IDE of python(GUI)
--
http://mail.python.org/mailman/listinfo/python-list
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
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'
"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
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
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
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
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
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
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):
> >
>>> 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
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
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)
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'
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
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
help...
Sai krishna M
--
I love Freedom
--
http://mail.python.org/mailman/listinfo/python-list
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)),
>
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
40 matches
Mail list logo