Issue in software

2021-05-23 Thread pradeep Y
I I couldn't get the solution for this issue since last week will you please help me to solve this issue the issue is when I opened command prompt this below message will Pop up "The program can't start because api-ms-win-crt-runtime-[1-1-0.dl] is missing from your computer.try reinstalling the p

Re: itertools query

2019-09-27 Thread Pradeep Patra
I don't need other combination except 6,7 On Saturday, September 28, 2019, Piet van Oostrum wrote: > Pradeep Patra writes: > > > Hi all, > > > > I have written a small program to generate all the combinations of a and > b > > of the array. I want (6,7) tu

itertools query

2019-09-27 Thread Pradeep Patra
Hi all, I have written a small program to generate all the combinations of a and b of the array. I want (6,7) tuple also included. Can anybody suggest what change I should make to get 6,7 included in my output? Any suggestions Output: [(5,), (6,), (5, 6), (7,), (8,), (7, 8)] from itertools imp

Re: regular expressions help

2019-09-19 Thread Pradeep Patra
creating a list of probable combinations to search from the list. Anybody have better ideas? On Thu, Sep 19, 2019 at 3:46 PM David wrote: > On Thu, 19 Sep 2019 at 19:34, Pradeep Patra > wrote: > > > Thanks David for your quick help. Appreciate it. When I tried on python > 2.7.3 the

Re: regular expressions help

2019-09-19 Thread Pradeep Patra
as long as it works. On Thursday, September 19, 2019, David wrote: > On Thu, 19 Sep 2019 at 18:41, Pradeep Patra > wrote: > > On Thursday, September 19, 2019, Pradeep Patra > wrote: > >> On Thursday, September 19, 2019, David wrote: > >>> On Thu, 19 Sep 2019 at

Re: regular expressions help

2019-09-19 Thread Pradeep Patra
I am using python 2.7.6 but I also tried on python 3.7.3. On Thursday, September 19, 2019, Pradeep Patra wrote: > Beginning of the string. But I tried removing that as well and it still > could not find it. When I tested at www.regex101.com and it matched > successfully whereas I may

regular expressions help

2019-09-19 Thread Pradeep Patra
ot;None" I tried re.finditer() and then a loop to find all the occurences of the pattern in the string but even if there is no error but i could not find the match. Can anyone help me in this regard? Regards Pradeep -- https://mail.python.org/mailman/listinfo/python-list

Re: numpy results in segmentation fault

2019-09-16 Thread Pradeep Patra
t 8:00 PM Thomas Jollans wrote: > On 12/09/2019 15.53, Pradeep Patra wrote: > > Hi , > > > > I was trying to solve the hackerrank and was using python 3.7.x. > > https://www.hackerrank.com/challenges/np-concatenate/problem > > > > While running the code so

numpy results in segmentation fault

2019-09-12 Thread Pradeep Patra
he code is crashing ? Does anyone have any idea? Regards Pradeep import numpy n,m,p = map(int,input().split()) tgt_arr1 = [] for i in range(n): row = list(map(int,input().split())) tgt_arr1.append(row) tgt_arr2 = [] for j in range(m): row = list(map(int,input().split())) tgt_arr2.

How to pass username and password in the curl requests using requests python module

2019-05-02 Thread Pradeep Patra
Can anyone pls help in this regard? -- https://mail.python.org/mailman/listinfo/python-list

Search and Replace of string in a yaml file

2019-03-23 Thread Pradeep Patra
like data integrity of the replaced string with the source string read from JSON. Can anyone suggest some reliable and efficient method to achieve this and appreciate some examples for the same? Regards Pradeep -- https://mail.python.org/mailman/listinfo/python-list

Backward compatible of Python 2 and Python 3

2017-06-05 Thread Pradeep Patra
://stackoverflow.com/questions/26174743/python-making-a-fast-port-scanner Regards Pradeep -- https://mail.python.org/mailman/listinfo/python-list

Re: Python and Tkinter Programming by John Grayson

2010-05-31 Thread Pradeep B
> > --Kevin > > -- > Kevin Walzer > Code by Kevin > http://www.codebykevin.com > -- > http://mail.python.org/mailman/listinfo/python-list > Thanx Kevin. Anybody can throw light on how to do the same in Windows ? -pradeep -- |_|0|_| |_|_|0| |0|0|0| http://picasaweb.google.com/pradeepbpin -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter library reference

2010-05-31 Thread Pradeep B
On Mon, May 31, 2010 at 2:46 PM, eb303 wrote: > On May 29, 3:11 pm, Pradeep B wrote: >> Do we have a standard reference library for Tkinter available? >> >> -- >> Pradeep > > Short answer: no, at least not a complete one for Tkinter itself. > > However, t

Tkinter library reference

2010-05-29 Thread Pradeep B
Do we have a standard reference library for Tkinter available? -- Pradeep -- http://mail.python.org/mailman/listinfo/python-list

Re: Python and Tkinter Programming by John Grayson

2010-05-29 Thread Pradeep B
On Fri, Jan 22, 2010 at 6:48 AM, Ethan Furman wrote: > Peter wrote: >> >> On Jan 15, 9:12 am, Kevin Walzer wrote: On Jan 15, 6:24 am, Mark Roseman  wrote: > >  Peter  wrote: >> >> Besides, the book is mainly about using Python with Tkinter - and >> Tkinter hasn't cha

syntax error : first python program

2009-12-22 Thread pradeep
I have this file in linux === sample.py #!/usr/bin/env python name = "blah" print name --- I executed this bash# ./sample.py File "./sample.py", line 2 name = "blah" ^ bash# /usr/bin/python sample.py File "sample.py", line

Required help on python-time module

2008-08-20 Thread Pradeep Kumar
I am a newbie to python even mobile side also. I am using openmoko device, there I installed stripped down python from feed path's and I need tzset() of time module for my application but when running my application.  time.tzset() at above line getting "no  attribute tzset()  for module" . So 

Re: ERROR: Python C API version mismatch for module dbi

2008-03-31 Thread Pradeep Rai
Thanks !! I will try do so. Regards, Pradeep -On [20080331 12:56], Pradeep Rai ([EMAIL PROTECTED]) wrote: >Can you guide me how to install a 2.5 version of dbi for it to work ? Same way you installed dbi for 2.4 just make sure the called python executable is the 2.5 one. -- Jer

Re: ERROR: Python C API version mismatch for module dbi

2008-03-31 Thread Pradeep Rai
Hi Steve, Can you guide me how to install a 2.5 version of dbi for it to work ? Thanks !! Pradeep Pradeep Rai wrote: > Hi All, > > I have upgraded python v2.5.2 from python v2.4.3. The upgradation > results into following error: > "Python C API version mismatch

Re: ERROR: Python C API version mismatch for module dbi

2008-03-31 Thread Pradeep Rai
Yes, i have copied everything from site-packages of the old one to the new one. Regards, Pradeep -On [20080331 12:29], Pradeep Rai ([EMAIL PROTECTED]) wrote: >I have upgraded python v2.5.2 from python v2.4.3. The upgradation >results into following error: "Python C API version m

Re:Re: ERROR: Python C API version mismatch for module dbi

2008-03-31 Thread Pradeep Rai
-On [20080331 12:29], Pradeep Rai ([EMAIL PROTECTED]) wrote: >I have upgraded python v2.5.2 from python v2.4.3. The upgradation >results into following error: "Python C API version mismatch for module >dbi: This Python has API version 1013, module dbi has version 1012." Did

ERROR: Python C API version mismatch for module dbi

2008-03-31 Thread Pradeep Rai
Hi All, I have upgraded python v2.5.2 from python v2.4.3. The upgradation results into following error: "Python C API version mismatch for module dbi: This Python has API version 1013, module dbi has version 1012." Please suggest, how to resolve this error to proceed further. Regard

RE: Urgent : How to do memory leaks detection in python ?

2008-03-17 Thread Pradeep Rai
Thanks for your inputs !!! I have installed python v 2.5 on my Linux machine and executing the tool again. I would like to share the memory status( using free -m command ) before and after the execution of the tool. BEFORE EXECUTION total used fre

Urgent : How to do memory leaks detection in python ?

2008-03-14 Thread Pradeep Rai
& Regards, Pradeep -- http://mail.python.org/mailman/listinfo/python-list

Urgent : How to do memory leaks detection in python ?

2008-03-14 Thread Pradeep Rai
& Regards, Pradeep -- http://mail.python.org/mailman/listinfo/python-list

Urgent : How to do memory leaks detection in python ?

2008-03-14 Thread Pradeep Rai
& Regards, Pradeep -- http://mail.python.org/mailman/listinfo/python-list

Multithreaded Python Mysql MAC Problems

2007-11-12 Thread Raja Pradeep Rokkam
Hi All, I wrote a multithreaded crawler program in Python 2.4 using Mysql 5.045 and MySqldb version as MySql-Python 1.2.2 on MAC OS 10.4.10 . The program strangely segfaults while it is running perfectly in Ubuntu and Windows as well. The gdb stack trace of program is below: LuLu:~/tempd

Re: Iterable Flattener with Depth.

2007-11-02 Thread Pradeep Jindal
On Friday 02 Nov 2007 10:43:45 pm Ian Clark wrote: > thebjorn wrote: > > On Nov 2, 6:32 am, praddy <[EMAIL PROTECTED]> wrote: > >> On Nov 1, 5:03 pm, [EMAIL PROTECTED] wrote: > >>> Pradeep Jindal: > >>>> Any comments? > >>> >

Iterable Flattener with Depth.

2007-11-01 Thread Pradeep Jindal
llo']]], 11, 12] py> flatten_iter(temp,2) [1, 2, 3, 4, 5, 'bash', 6, 7, 8, [9, 10, ['hi', 'hello']], 11, 12] py> flatten_iter(temp) [1, 2, 3, 4, 5, 'bash', 6, 7, 8, 9, 10, 'hi', 'hello', 11, 12] py> flatten_iter(temp,3) [1, 2, 3, 4, 5, 'bash', 6, 7, 8, 9, 10, ['hi', 'hello'], 11, 12] Any comments? Thanks - Pradeep -- http://mail.python.org/mailman/listinfo/python-list

Re: parse text file

2007-10-29 Thread Pradeep Jindal
ion around > http://mail.yahoo.com You can use regular expressions module like this. >>> import re >>> match_upto_brackets = re.compile(r'.*[>\]}](.*)') >>> match_upto_brackets.sub(r'\1', ' 4 50').strip() '4 50' >>> match_upto_brackets.sub(r'\1', '>> match_upto_brackets.sub(r'\1', '>> Pradeep -- http://mail.python.org/mailman/listinfo/python-list

Re: SQLObject - Connect to established DB with non-int 'id' field

2007-10-29 Thread Pradeep Jindal
~Sean I know I am not exactly answering your question, but its much better to use sqlalchemy when you already have the databases setup. And especially when you can not make any changes to existing database schemas. - Pradeep -- http://mail.python.org/mailman/listinfo/python-list

Re: object inheritance

2007-10-27 Thread Pradeep Jindal
On Friday 26 Oct 2007 6:21:57 pm Anand wrote: > On Oct 26, 5:31 pm, "Pradeep Jindal" <[EMAIL PROTECTED]> wrote: > > Can you tell any specific use case for doing this? > > I have many implementaions of a db interface. > > SimpleDB - simple implementation

Re: object inheritance

2007-10-26 Thread Pradeep Jindal
Can you tell any specific use case for doing this? Regards, Pradeep On 10/26/07, Anand <[EMAIL PROTECTED]> wrote: > I am trying to implement some kind of object inheritance. Just like > one class can extend from another, I want to do the same on objects > dynamically. > >

How to convert None to null value

2007-09-07 Thread pradeep kumar
Hi , i am trying to insert records from one table to another table in postgres sql using the the following code posConn.query("insert into usr(usr_id,usr_name,usr_passwd,grp_cde,usr_type,usr_chk_till_val, \ usr_active,usr_daily_auth,usr_lst_login,usr_lst_logout,usr_shift_id,usr_role_level) value

How to get inputs for a python program that run from another python program

2007-06-11 Thread pradeep nair
I would like to know how to pass keyboard input for a python script which is ran by another script. for eg: hello1.py: import os if __name__=='__main__': print "I will call this other program called hello.py" os.system("python hello.py") print "hello1.py" hello.py: import os

Re: How to find the present working directory using python.

2007-05-04 Thread pradeep nair
On May 4, 12:05 pm, SamG <[EMAIL PROTECTED]> wrote: > On May 4, 12:03 pm, pradeep nair <[EMAIL PROTECTED]> wrote: > > > how to find out the present working directory using python. > > > os.system('pwd') works good. But i need some specific on

How to find the present working directory using python.

2007-05-04 Thread pradeep nair
how to find out the present working directory using python. os.system('pwd') works good. But i need some specific one in python rather than embedding shell command into python. -- http://mail.python.org/mailman/listinfo/python-list

Re: FInd files with .so extension

2007-05-02 Thread pradeep nair
AIL PROTECTED]> wrote: > > > May be this would work > > > import os > > > grep="so" > > > dir="." > > > lst = os.listdir(dir) > > > filelst=[] > > > for i in lst: > > > if i.split("

FInd files with .so extension

2007-05-02 Thread pradeep nair
HI, How do i find files with .so extension using python . -- http://mail.python.org/mailman/listinfo/python-list

how to find the OS name..??

2007-04-21 Thread pradeep nair
How do i determine the type of OS i'm working on using python??(i.e whether CentOS,Fedora,SLES,...along with the version) -- http://mail.python.org/mailman/listinfo/python-list

connecting webservers through HTTP port using python

2006-12-18 Thread pradeep kumar
hii iam working on socket programming, i've to connect webservers through HTTP port and send/receive data.. so currently i'm installed apache server and trying to connect that server using python. so any tell me how to connect the apache server by python code. give suggestions.. -- http://mail.py

doubt in curses module

2006-12-11 Thread pradeep kumar
hii, iam new to python. i want to use function keys in my program, so i went through the curses module, but in that module it shows a different window object and after pressing the our desired function key in it, that will return the ascii value of that key to the command prompt. so, i want to hid

Python form Unix to Windows

2006-08-16 Thread Pradeep
envirnment to Windows Environment. Thanks in Advance. Regards, Pradeep -- http://mail.python.org/mailman/listinfo/python-list