First  |  Prev |  Next  |  Last
Pages: 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125
classes and __init__ question
Hi all, I am a bit confused about classes. What do you pass a class, since all the actual information is passed to __init__? For example, say you have a dog class. The dog object has a name, a size, and a color. I believe you would say this: class dog(): def __init__(self, name, size, color): self.name=name... 17 May 2010 17:59
Python3 buffer extra byte??
Let's consider this code: #!/usr/bin/python3 import cgi, sys print("Content-type:image/jpeg\n\n") f = open("img.jpg","rb") sys.stdout.flush() sys.stdout.buffer.write( f.read() ) f.close() I receive the file with one padding byte at the start of the file (0x0a) http://www.1pix.org/multi/images/wg7zg58gsgbhc... 17 May 2010 15:46
Converting datetime.ctime() values to Unicode
I would like to convert datetime.ctime() values to Unicode. Using Python 2.6.4 running under Windows I can set my locale to Spanish like below: import locale locale.setlocale(locale.LC_ALL, 'esp' ) Then I can pass %a, %A, %b, and %B to ctime() to get day and month names and abbreviations. imp... 17 May 2010 14:37
Installing Lightweight Python
I'd like to install python on an embedded system. It's a powerful x86- based computer with the only limitation of having a small-size flash ROM as its secondary storage. So there is no hard drive and the system is booted from the flash memory. The operating system, BusyBox (a flavor of Linux), and other applicatio... 19 May 2010 17:07
[BarCamp] WebWorkersCamp BarCamp: NodeJS, NoSQL, Message Queues, Asynchronous programming, Web Sockets, Distributed Applications, Decentralized Social Networks, buzzword generators...
Hello, AF83 will be holding a barcamp event on Saturday afternoon, July 3rd in Paris (in La Cantine, a famous Parisian tech place). We wanted to let you know about this event and tell you that you would be most welcome if you could join us on that day. In the ever-growing context of real-time web and multiplyi... 17 May 2010 12:24
[ANN] doit - automation tool 0.8 released
pypi: http://pypi.python.org/pypi/doit homepage: http://python-doit.sourceforge.net/ `doit` comes from the idea of bringing the power of build-tools to execute any kind of task. It will keep track of dependencies between "tasks" and execute them only when necessary. It was designed to be easy to use and "get o... 17 May 2010 10:12
pythonic ssh
hi, pyssh, pexpect, paramiko or creating your your own sockets. what do you use to pythonically ssh to boxes? -- John Maclean MSc. (DIC) BSc. (Hons) Linux Systems and Applications 07739 171 531 ... 17 May 2010 11:17
python application question
I am trying to write an application that takes two files from over the internet and plots one against the other i am getting the data ok. if i want to plot it i have to use something like matplotlib? but this doesn't come with the standard installation. so if i want someone else to use this application, do t... 17 May 2010 10:12
cmd with three arguments
Hi pythonistas, While playing with the Python Standard Library, i came across "cmd". So I'm trying to make a console application. Everything works fine, i created many function with do_....(self, line) prefix, but when i tried to create a function with more arguments i can't make it work. e.g def do_connect(sel... 17 May 2010 10:12
Call for papers: SETP-10, USA, July 2010
It would be highly appreciated if you could share this announcement with your colleagues, students and individuals whose research is in software engineering, software testing, software quality assurance, software design and related areas. Call for papers: SETP-10, USA, July 2010 The 2010 International Conferen... 17 May 2010 06:56
First  |  Prev |  Next  |  Last
Pages: 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125