Posts
 
Reputation
Joined
Last Seen
Ranked #2K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
0 Endorsements
~22.1K People Reached
Favorite Forums
Favorite Tags
Member Avatar for hisan
Member Avatar for 3e0jUn
0
1K
Member Avatar for hisan
Member Avatar for TrustyTony
0
59
Member Avatar for hisan

Please let me know how to sort the list of String in either ascending / descending order without considering special characters and case. ex: list1=['test1_two','testOne','testTwo','test_one'] Applying the list.sort /sorted method results in sorted list ['test1_two', 'testOne', 'testTwo', 'test_one'] but the without considering the special characters and case it should be …

Member Avatar for sneekula
0
515
Member Avatar for hisan

I am a newbie to py.test , Please let me know how to run the py.test in PyScripter Editor. I have tried in the belwo way but it doesn't work. import pytest def func(x): return x + 1 def test_answer(): assert func(3) == 5 pytest.main()

Member Avatar for hisan
0
81
Member Avatar for hisan

below is mycode though i have set keepalive, socket connection gets closed after sometime. sb_sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM,socket.SOL_TCP) sb_sock.setsockopt( socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) sb_sock.connect((msg_host, host_port)) reg_msg="REG 0000 "+finder_id+"\r" sb_sock.send(reg_msg)

Member Avatar for hisan
0
504
Member Avatar for hisan

sample_json1={{ "globalControlId": 72, "value": 0, "controlId": 2 }, { "globalControlId": 77, "value": 3, "controlId": 7 } } sample_json2={ { "globalControlId": 77, "value": 3, "controlId": 7 }, { "globalControlId": 72, "value": 0, "controlId": 2 } }

Member Avatar for Schol-R-LEA
0
113
Member Avatar for hisan

Hi All, i want to know how to calculate number of sub String available with in a string in python

Member Avatar for snippsat
0
152
Member Avatar for hisan

Hi All i have downloaded "xmldiff-0.6.10" from their official site (http:// [url]www.logilab.org/859[/url]). I have tried installing the same on my 32 bit Windows 7 OS using the command "setup.py install" but below exceptions are thrown in the console. please help me out in installing this package on Windows Exceptions thrown …

Member Avatar for robert99x
0
157
Member Avatar for hisan

How to create n number thread in python. i want iterate over the for loop and create a thread for iteration sample code for i in range(o,50): i want to create 50 thread here which call the same function. how start and stop each thread after completion .

Member Avatar for Gribouillis
0
252
Member Avatar for hisan

hi All, I am importing the SQL DB data into a CSV file, the length of the data is too large and doesn't fit with default csv file column width, so i need to increase the column width please let me know how can you achieve this . below is …

Member Avatar for raptr_dflo
0
4K
Member Avatar for hisan

Hello all, i am importing the data from db using MySQLdb module in python, please let me know how to write this data into an excel sheet. from db i get data in multiple rows and columns please tell me how to write in excel

Member Avatar for raptr_dflo
0
184
Member Avatar for hisan

Hi All, i have basic python knowledge please let me know how to get started with jython please let me know where can i find good online books for jython, how to write some small programs and how to run them

Member Avatar for vegaseat
0
147
Member Avatar for hisan

Hello All, Ii want to know how can i check whether the response from the server is inJSON format or XML format . Please let me know how to do this,

Member Avatar for sneekula
0
337
Member Avatar for hisan

Hello ALL, I need to capture the HTTP requests that are sent from my web application, using Selenium and python please help me in achieving this.

Member Avatar for hisan
0
168
Member Avatar for hisan

Hi, i have created python exe file of my code using py2exe module. i need to add my own customized icon for this exe file how to achive this

Member Avatar for slate
0
98
Member Avatar for hisan

Hi, I want to know how to use Python variables in My sql statement and below is the syntax i am using import MySQLdb name="XYZ" number="123456" db=MySQLdb.Connect("localhost","root","12345","phone") cursor=db.cursor() sql= ("""INSERT INTO phonebook(number, Mobile) VALUES(%s,%s)""" , name,number) cursor.execute(sql) db.commit() db.close() but this throws the error please refer the attached screen shot …

Member Avatar for hisan
0
6K
Member Avatar for hisan
Member Avatar for Gribouillis
0
7K
Member Avatar for hisan

I need to get the info available devices in my LAN network. My logic is as follows: 1.Send a UDP packet/s to the IP 255.255.255.255 and wait for the response from the available devices, once the devices repond back need to analyze the response.. Please help me out in implementing …

0
57
Member Avatar for hisan

Hi, I want to know how to read the binary file from 10th byte to 90th byte in a file size of 100 bytes and need to write the read data into new binary file. please help me in doing this.

Member Avatar for hisan
0
84