envirnment to Windows
Environment.
Thanks in Advance.
Regards,
Pradeep
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
Can anyone pls help in this regard?
--
https://mail.python.org/mailman/listinfo/python-list
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.
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
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
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
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
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
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
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
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
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
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
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
HI,
How do i find files with .so extension using python .
--
http://mail.python.org/mailman/listinfo/python-list
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("
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
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
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
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.
>
>
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
~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
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
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
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?
> >>>
>
& Regards,
Pradeep
--
http://mail.python.org/mailman/listinfo/python-list
& Regards,
Pradeep
--
http://mail.python.org/mailman/listinfo/python-list
& Regards,
Pradeep
--
http://mail.python.org/mailman/listinfo/python-list
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
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
-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
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
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
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
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
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
Do we have a standard reference library for Tkinter available?
--
Pradeep
--
http://mail.python.org/mailman/listinfo/python-list
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
>
> --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
://stackoverflow.com/questions/26174743/python-making-a-fast-port-scanner
Regards
Pradeep
--
https://mail.python.org/mailman/listinfo/python-list
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
44 matches
Mail list logo