Search Results

Showing results 1 to 11 of 11
Search took 0.01 seconds.
Search: Posts Made By: int3grate
Forum: Python Feb 8th, 2009
Replies: 4
Views: 340
Posted By int3grate
Even if you don't know what they do... If you would have spent 3 seconds and read his post, obviously he's trying to interface with the HTTP protocol. Giving him a link to look up how to send raw...
Forum: Python Feb 8th, 2009
Replies: 2
Views: 685
Posted By int3grate
There's a bunch of different ways:


curses.echo() # Enable echoing of characters
# Get a 10-character string, with the cursor at pos x,y
s = stdscr.getstr(x,y, 15)


...
Forum: Python Feb 8th, 2009
Replies: 4
Views: 340
Posted By int3grate
check out httplib
http://docs.python.org/library/httplib.html
Forum: Python Feb 8th, 2009
Replies: 2
Solved: Threads? help
Views: 393
Posted By int3grate
Here's an example I wrote up for you that should be helpful...


import time
import threading

time_var = 0

class time_display(object):
global time_var
Forum: Python Feb 8th, 2009
Replies: 14
Views: 797
Posted By int3grate
Also, If you need to open a lot of files concurrently, you can use some code like this:


import os
import sys

file_names = []

file_names.append("test1.txt")
file_names.append("test2.txt")
Forum: Python Feb 4th, 2009
Replies: 6
Views: 2,224
Posted By int3grate
Make sure in the future - you use the "code" block when posting code, it makes it much easier to read...

Whenever you write stuff to file - it needs to be in string format. So when you pass an...
Forum: Python Jan 13th, 2009
Replies: 2
Views: 1,181
Posted By int3grate
The answer to this question really depends on what platform your developing for. There's no one answer that will work cross platform.

I haven't found an easy way to find all the information for...
Forum: Python Jan 12th, 2009
Replies: 6
Views: 943
Posted By int3grate
actually tried using floats with seek in python 2.5.2 and I got the following error:


OverflowError: long int too large to convert to int
Forum: Python Jan 12th, 2009
Replies: 6
Views: 943
Posted By int3grate
Well, I'm using python 2.5, do you know if that would still work? If so, how would I do that?
Forum: Python Jan 12th, 2009
Replies: 6
Views: 943
Posted By int3grate
I am using the second parameter, if you look at the example code I posted... Problem is - even though the Windows build does have large file support, sys.maxint returns 32. So a 32 bit integers is...
Forum: Python Jan 11th, 2009
Replies: 6
Views: 943
Posted By int3grate
Hi all,

I'm relatively new to python (I've been writing python code for about half a year now) and I'm trying to figure out how to use "seek" on larger files.

I'm doing some work with large...
Showing results 1 to 11 of 11

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC