Re: Adding a list of descriptors to a class

2007-08-07 Thread Bob B.
> Probably the simplest thing is to just add the attributes after the > class body, e.g.:: > > >>> class MyClass(object): > ... pass > ... > >>> for attr in ['attr1', 'attr2']: > ... setattr(MyClass, attr, MyDesc(attr)) > ... > >>> c = MyClass() > >>>

16bit RGB with Image module

2007-03-27 Thread Jason B
eError: not enough image data Which I'm pretty sure is because it's expecting a 24bit image. Of course if I tune down the width and height or change the format to B&W ("L") then it *does* display an image, the B&W one even having recognizable features, just not the

Re: 16bit RGB with Image module

2007-03-27 Thread Jason B
raw", "BGR;16") im.show() Although I have no idea *why* it works, other than the fact that I'm now using the correct number of bits per pixel. :) Anyone have thoughts on this? Thanks! J "Jason B" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROT

Pixel Array => Bitmap File

2007-02-27 Thread Jason B
Hi all, I'm somewhat new to Python and I'm trying to figure out the best way to accomplish the following: >From an array of pixel data in an XML file (given the format, width and height of the image as attributes) I must read in the data and save it off as a bmp file. I've gotten the PIL and

Re: Pixel Array => Bitmap File

2007-02-27 Thread Jason B
Thanks, Roel... The Image.frombuffer() method looks promising, but the "mode" parameter seems a bit too limited for my needs. I must be able to specify not only the order of the bits (RGB in any order) but also whether the format is 565, 555, etc. Maybe I need to work outside the bounds of PI

Re: Pixel Array => Bitmap File

2007-02-27 Thread Jason B
My mistake, I see the section now about "Writing Your Own File Decoder..." Thanks again for your help! - J "Jason B" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Thanks, Roel... > > The Image.frombuffer() method looks promising, but the

Re: Property In Python

2006-04-21 Thread B Mahoney
I started with the "How-To Guide for Descriptors" by Raymond Hettinger http://users.rcn.com/python/download/Descriptor.htm It is one of several docs on the "New-style Classes" page at python.org http://www.python.org/doc/newstyle/ -- http://mail.python.org/mailman/listinfo/python-list

Running External Commands + Seeing when they are Finished

2006-05-26 Thread Tommy B
I'm currently working on a script that I will run when I leave my computer on at night. It runs external commands like Ad-Aware, Spybot, AVG, Avast, and the like. The problem is, I want to know how to make it so that one command starts only after the last one finishes. When I run them, they end up

Re: Running External Commands + Seeing when they are Finished

2006-05-27 Thread Tommy B
The problem is with that (which is what I'm doing already) is that one app is in a window and one app is on the command line. Thus, you end up with both apps running at the same time. Are there any modules that have functions for checking when windows are opened or closed? -- http://mail.python.o

Installing Python2.4 on RHEL4?

2008-03-14 Thread Eric B.
Hi, I appologize if this is slightly OT, but I am really struggling to figure out how to install Python2.4 on RHEL4. To make matters worse, the RHEL4 machine is a 64bit architecture. I search pyvault, but they only have for .i386. Does anyone know where / how I can find Python2.4 for RHEL4 x

Re: Installing Python2.4 on RHEL4?

2008-03-14 Thread Eric B.
"Jarek Zgoda" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Eric B. pisze: > >> I appologize if this is slightly OT, but I am really struggling to figure >> out how to install Python2.4 on RHEL4. To make matters worse, the RHEL4 >> machine

Cannot build Python 2.4 SRPM on x64 platform

2008-03-16 Thread Eric B.
Hi, For those on several python lists, I appologize in advance for cross-posting, but I'm really not sure which list is best to ask for assistance with this. Currently, I am trying to build the python2.4 SRPM from Python.org on a RHEL4 x64 platform, but the build is failing with a very non-descri

Re: Cannot build Python 2.4 SRPM on x64 platform

2008-03-16 Thread Eric B.
"Michael Wieher" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Sorry I don't have much of a better idea, but if I had this kind of > problem > with an RPM, I'd just grab the tarball and start hacking away at > ./configure > pre-requirements, trying to use --options to trim it dow

Sr. Architect - NYC - Opportunity

2008-03-26 Thread Timothy B
Senior Developer Must be proficient in Python, expert preferred Must have one large scale public web project in their portfolio, preferably startup experience Must be able to develop with certain architectural considerations in mind at all times, such as: multilingual text, runtime efficiency in a

How to take snap shot of the of project screen in Python

2008-03-27 Thread Praveena B
Hi, Can anyone help me out? Thanks, Praveena. Never miss a thing. Make Yahoo your homepage. -- http://mail.python.org/mailman/listinfo/python-list

how to capture screenshots of the active window in Python

2008-03-27 Thread Praveena B
Can anyone help me out?? Never miss a thing. Make Yahoo your homepage. -- http://mail.python.org/mailman/listinfo/python-list

Why this code is working?

2009-01-14 Thread Hussein B
Hey, Why this code is working? >>> def f1( ): ... x = 88 ... f2(x) ... >>> def f2(x): ... print x ... >>> f1( ) 88 Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: Why this code is working?

2009-01-14 Thread Hussein B
On Jan 14, 11:55 am, Bruno Desthuilliers wrote: > Hussein B a écrit : > > > Hey, > > Why this code is working? > > >>>> def f1( ): > > ...      x = 88 > > ...      f2(x) > > ... > >>>> def f2(x): > > ...      print x &g

Re: Why this code is working?

2009-01-14 Thread Hussein B
On Jan 14, 2:21 pm, Steven D'Aprano wrote: > On Wed, 14 Jan 2009 01:57:48 -0800, Hussein B wrote: > >> Well... Because it is correct ? > > >> What make you think it _shouldn't_ work ? > > > Because def2 is defined after def1 in an interpreted languag

Am I interacting with the database correctly?

2009-01-18 Thread Hussein B
Hey, I'm new with database interactions in Python and I'm not sure if I'm handling the cursor and transactions correctly: cursor = db.cursor(MySQLdb.cursors.DictCursor) cursor.execute(flate_rate_pkgs_sql) rows = cursor.fetchall() #I have for loop here to iterate over rows cursor.execute

How to start a transaction?

2009-01-20 Thread Hussein B
Hey, I know the basics of interacting with databases in Python. How to start a transaction in case I want to group a couple of insert and update statements into a single operation? Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Why I'm getting the date of yesterday

2009-01-20 Thread Hussein B
Hey, I'm trying to get the get the date before today, I tried this: d = datetime.now() - timedelta(days = -1) But I got the date of tomorrow. when I tried: d = datetime.now() + timedelta(days = -1) I got the date of yesterday. Would you please explain to me why I got the date of yesterday when I ad

How to get first/last day of the previous month?

2009-01-20 Thread Hussein B
Hey, I'm creating a report that is supposed to harvest the data for the previous month. So I need a way to get the first day and the last day of the previous month. Would you please tell me how to do this? Thanks in advance. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to get first/last day of the previous month?

2009-01-20 Thread Hussein B
On Jan 20, 5:04 pm, Carsten Haese wrote: > Hussein B wrote: > > Hey, > > I'm creating a report that is supposed to harvest the data for the > > previous month. > > So I need a way to get the first day and the last day of the previous > > month. > >

What is wrong in my list comprehension?

2009-02-01 Thread Hussein B
Hey, I have a log file that doesn't contain the word "Haskell" at all, I'm just trying to do a little performance comparison: ++ from datetime import time, timedelta, datetime start = datetime.now() print start lines = [line for line in file('/media/sda4/Servers/Apache/ Tomcat-6.0.14/lo

"server chain" with python socket module

2008-12-02 Thread B R
dear all, I want to connect my A machine to the E server via servers B, C and D, is there a way to set-up such "server chain" with python socket module (or other module) ? many thanks boris vn%ibo%ris[at]hotmail.com

What is site-packages?

2008-12-28 Thread Hussein B
Hey, What is /usr/lib/pythonx.y/site-packages folder and for what it is used usually? Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: What is site-packages?

2008-12-28 Thread Hussein B
On Dec 28, 2:04 pm, "Chris Rebert" wrote: > On Sun, Dec 28, 2008 at 3:40 AM, Hussein B wrote: > > Hey, > > What is /usr/lib/pythonx.y/site-packages folder and for what it is > > used usually? > > I believe it's where third-party libraries are t

Code coverage to Python code

2009-01-04 Thread Hussein B
Hey, What is the best code coverage tool available for Python? Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Which PostgreSQL adapter to use?

2008-11-04 Thread Hussein B
Hey, Which Adapter to use with PostgreSQL: PyPgSQL, psycopg or PyGreSQL? Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Which PostgreSQL adapter to use?

2008-11-04 Thread Hussein B
Hi, Which PostgreSQL adapter to use: PyGreSQL, PyPgSQL or psycopg? Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: Snippets management

2008-11-05 Thread Edwin B.
r <[EMAIL PROTECTED]> writes: > On Nov 5, 7:55 pm, [EMAIL PROTECTED] (Edwin) wrote: >> Hi there, >> >> I've been looking for a snippet manager and found PySnippet but it >> requires PyGTK. Do you know any other option that doesn't need much? >> >> I'm sort of new to python and user interfaces seem

Re: Snippets management

2008-11-06 Thread Edwin B.
Robert Lehmann <[EMAIL PROTECTED]> writes: > I don't think there is a one-size-fits-all solution. I definetly agree. > Setting up a 'snippets' repository sounds good if you just want to be > able to look back at what you've done and/or have a place to stash away > quick tests. I have set up a

Characters aren't displayed correctly

2009-03-01 Thread Hussein B
Hey, I'm retrieving records from MySQL database that contains non english characters. Then I create a String that contains HTML markup and column values from the previous result set. + markup = u'''.''' for row in rows: markup = markup + '' + row['id'] markup = markup + ' + Then I'

Re: Characters aren't displayed correctly

2009-03-02 Thread Hussein B
On Mar 1, 4:51 pm, Philip Semanchuk wrote: > On Mar 1, 2009, at 8:31 AM, Hussein B wrote: > > > Hey, > > I'm retrieving records from MySQL database that contains non english > > characters. > > Then I create a String that contains HTML markup and column valu

Re: Characters aren't displayed correctly

2009-03-02 Thread Hussein B
On Mar 1, 11:27 pm, "J. Clifford Dyer" wrote: > On Sun, 2009-03-01 at 09:51 -0500, Philip Semanchuk wrote: > > On Mar 1, 2009, at 8:31 AM, Hussein B wrote: > > > > Hey, > > > I'm retrieving records from MySQL database that contains non english > &

Re: Characters aren't displayed correctly

2009-03-02 Thread Hussein B
On Mar 2, 4:03 pm, "J. Clifford Dyer" wrote: > On Mon, 2009-03-02 at 00:33 -0800, Hussein B wrote: > > On Mar 1, 11:27 pm, "J. Clifford Dyer" wrote: > > > On Sun, 2009-03-01 at 09:51 -0500, Philip Semanchuk wrote: > > > > On Mar 1,

Re: Characters aren't displayed correctly

2009-03-02 Thread Hussein B
On Mar 2, 4:31 pm, John Machin wrote: > On Mar 2, 7:30 pm, Hussein B wrote: > > > On Mar 1, 4:51 pm, Philip Semanchuk wrote: > > > > On Mar 1, 2009, at 8:31 AM, Hussein B wrote: > > > > > Hey, > > > > I'm retrieving records from MyS

Re: Characters aren't displayed correctly

2009-03-03 Thread Hussein B
On Mar 2, 5:40 pm, John Machin wrote: > On Mar 3, 1:50 am, Hussein B wrote: > > > > > On Mar 2, 4:31 pm, John Machin wrote:> On Mar 2, > > 7:30 pm, Hussein B wrote: > > > > > On Mar 1, 4:51 pm, Philip Semanchuk wrote: > > > > > > On

Re: Characters aren't displayed correctly

2009-03-03 Thread Hussein B
On Mar 3, 11:05 am, Hussein B wrote: > On Mar 2, 5:40 pm, John Machin wrote: > > > > > On Mar 3, 1:50 am, Hussein B wrote: > > > > On Mar 2, 4:31 pm, John Machin wrote:> On Mar 2, > > > 7:30 pm, Hussein B wrote: > > > > > > On Mar

Re: Characters aren't displayed correctly

2009-03-03 Thread Hussein B
On Mar 3, 12:21 pm, John Machin wrote: > On Mar 3, 8:49 pm, Hussein B wrote: > > > > > On Mar 3, 11:05 am, Hussein B wrote: > > > > On Mar 2, 5:40 pm, John Machin wrote: > > > > > On Mar 3, 1:50 am, Hussein B wrote: > > > > > > On

Re: Characters aren't displayed correctly

2009-03-03 Thread Hussein B
On Mar 3, 1:54 pm, John Machin wrote: > On Mar 3, 10:22 pm, Hussein B wrote: > > > > > Hey, > > > > I added use_unicode and charset keyword params to the connect() method > > > > Hey, that was a brilliant idea -- I was just about to ask you to try > &

Monitoring Internet Explorer

2009-04-06 Thread a b
Hi, I'm trying to write a program that monitor Internet Explorer events - creating/deletion of the process, loading pages, creating tabs etc. I managed to monitor creation/deletion by using WMI, but I couldn't find a way to monitor the rest of the events. Is there a way to do this ? Thanks.  

does paramiko support python2.5?

2008-06-13 Thread Praveena B
when i used paramiko in python2.5 i got the error below.   File "C:\praveena\python scripts\sshlib\ssh.py", line 5, in     import paramiko   File "C:\Python25\Lib\site-packages\paramiko\__init__.py", line 69, in     from transport import randpool, SecurityOptions, Transport   File "C:\Python25\L

Module clarification

2008-07-28 Thread Hussein B
Hi. I'm a Java guy and I'm playing around Python these days... In Java, we organize our classes into packages and then jarring the packages into JAR files. What are modules in Python? What is the equivalent of modules in Java? Please correct me if I'm wrong: I saved my Python code under the file

Re: Module clarification

2008-07-28 Thread Hussein B
On Jul 28, 6:55 am, Floris Bruynooghe <[EMAIL PROTECTED]> wrote: > On Jul 28, 9:54 am, Hussein B <[EMAIL PROTECTED]> wrote: > > > Hi. > > I'm a Java guy and I'm playing around Python these days... > > In Java, we organize our classes into packages an

Re: Module clarification

2008-07-28 Thread Hussein B
On Jul 28, 8:11 am, Duncan Booth <[EMAIL PROTECTED]> wrote: > Hussein B <[EMAIL PROTECTED]> wrote: > > If I have a couple of modules, is there a way to package them? or > > there is no such a thing in Python? > > It sounds rather as though you haven't yet g

Continuous integration for Python projects

2008-07-29 Thread Hussein B
Hi. Please correct my if I'm wrong but it seems to me that the major continuous integration servers (Hudson, CruiseControl, TeamCity ..) don't support Python based application. It seems they mainly support Java, .NET and Ruby. Can I use one of the previous listed servers for Python project? Thanks.

Build tool for Python

2008-07-29 Thread Hussein B
Hi. Apache Ant is the de facto building tool for Java (whether JSE, JEE and JME) application. With Ant you can do what ever you want: compile, generate docs, generate code, packing, deploy, connecting to remote servers and every thing. Do we have such a tool for Python projects? Thank you. -- http:

You advice please

2008-08-13 Thread Hussein B
Hey, I'm a Java/Java EE developer and I'm playing with Python these days. I like the Python language so much and I like its communities and the Django framework. My friends are about to open a Ruby/Rails shop and they are asking me to join them. I don't know what, sure I'm not leaving Java, but the

Re: You advice please

2008-08-13 Thread Hussein B
On Aug 13, 6:51 am, Jeroen Ruigrok van der Werven <[EMAIL PROTECTED] nomine.org> wrote: > -On [20080813 13:16], Hussein B ([EMAIL PROTECTED]) wrote: > > >My friends are about to open a Ruby/Rails shop and they are asking me > >to join them. > > I hope they are fully

Re: You advice please

2008-08-13 Thread Hussein B
On Aug 13, 7:40 am, Bruno Desthuilliers wrote: > Álvaro G. Vicario a écrit : > > > > > Hussein B escribió: > >> The sad fact (at least to me), Ruby is getting a lot of attention > >> these days. > >> Why Python isn't getting this attention alth

Re: You advice please

2008-08-13 Thread Hussein B
On Aug 13, 7:50 am, Bruno Desthuilliers wrote: > Hussein B a écrit : > > > Hey, > > I'm a Java/Java EE developer and I'm playing with Python these days. > > I like the Python language so much and I like its communities and the > > Django framework. >

Re: You advice please

2008-08-14 Thread Hussein B
On Aug 13, 8:08 am, Bruno Desthuilliers wrote: > Hussein B a écrit : > (snip) > > > > > Personally, I don't like the RoR framework at all. > > It doesn't come with any thing new or revolutionary, > > You could say the same about Python and about Djang

Re: You advice please

2008-08-14 Thread Hussein B
On Aug 13, 11:14 am, Alia Khouri <[EMAIL PROTECTED]> wrote: > Hussein B wrote: > > I'm a Java/Java EE developer and I'm playing with Python these days. > > I like the Python language so much and I like its communities and the > > Django framework. > >

how to read contents of a silk results file using python script?

2008-04-08 Thread Praveena B
can anyone help me? You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost. http://tc.deals.yahoo.com/tc/blockbuster/text5.com-- http://mail.python.org/mailman/l

Sr. Lead Architect - (NYC)

2008-04-11 Thread Timothy B
I am in need for a Sr. Lead Architect for an outstanding company located in NYC. The company has been outsourcing their technology to California and are bringing the office to NYC. The company is looking for an individual who can build and manage the technolgy team in NYC. Individual must be a Py

Re: You advice please

2008-08-18 Thread Hussein B
On Aug 15, 10:05 am, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: > Hussein B a écrit : > (snip) > > > But this critisim looks so serious: > >http://en.wikipedia.org/wiki/Ruby_programming_language#Criticism > > Most of what's written here could apply to Py

AOP in Python

2008-08-18 Thread Hussein B
Hey, AOP is build in Groovy language via many means, does Python support AOP out of the box without the need for such tools: http://pythonsource.com/open-source/aspect-oriented-frameworks Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Question regarding the standard library?

2008-08-19 Thread Hussein B
Hey, Is the standard library of Python is compiled (you know, the pyc thing)? Is it allowed to edit the source code of the standard library? I'm not talking about submitting the modified code to Python source code repository, I'm just asking if some one can edit the source code in his own machine.

Re: Question regarding the standard library?

2008-08-19 Thread Hussein B
On Aug 19, 7:16 am, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > Hussein B wrote: > > Is the standard library of Python is compiled (you know, the pyc > > thing)? > > Is it allowed to edit the source code of the standard library? > > I'm not talking about

Eggs and Gems

2008-08-19 Thread Hussein B
Hey, Are Python eggs and RubyGems do the same thing (of course Gems is for Ruby and eggs is for Python)? If yes, is it outstanding as the RubyGems? Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: Question regarding the standard library?

2008-08-19 Thread Hussein B
On Aug 19, 8:10 am, George Sakkis <[EMAIL PROTECTED]> wrote: > On Aug 19, 8:16 am, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > > > > > Hussein B wrote: > > > Is the standard library of Python is compiled (you know, the pyc > > > thing)? > > &

Basic importing question

2008-08-20 Thread Hussein B
Hey, Suppose I have a Python application consists of many modules (lets say it is a Django application). If all the modules files are importing sys module, how many times the sys module will be compiled and executed? Only once (the first time the PVM locates, compiles and executes the sys module)?

Re: Basic importing question

2008-08-20 Thread Hussein B
On Aug 20, 5:43 am, John Machin <[EMAIL PROTECTED]> wrote: > On Aug 20, 8:08 pm, Hussein B <[EMAIL PROTECTED]> wrote: > > > Hey, > > Suppose I have a Python application consists of many modules (lets say > > it is a Django application). > > If all the m

Re: Basic importing question

2008-08-20 Thread Hussein B
On Aug 20, 5:43 am, John Machin <[EMAIL PROTECTED]> wrote: > On Aug 20, 8:08 pm, Hussein B <[EMAIL PROTECTED]> wrote: > > > Hey, > > Suppose I have a Python application consists of many modules (lets say > > it is a Django application). > > If all the m

Re: Basic importing question

2008-08-20 Thread Hussein B
On Aug 20, 6:39 am, Bruno Desthuilliers wrote: > Hussein B a écrit : > (snip) > > > One more question: > > If I have this structure: > > orig/com/domain/project/Klass1.py > > Klass2.py > > __init__.py >

Is my thinking Pythonic?

2008-08-21 Thread Hussein B
Hey, Well, as you all know by now, I'm learning Python :) One thing that is annoying my is the OOP in Python. Consider this code in Java: -- public class Car { private int speed; private String brand; // setters & getters } -- With one look at the top of the class, you can know that each ins

No method overloading

2008-08-24 Thread Hussein B
Hey, Please correct me if I'm wrong but Python doesn't support method overload, right? -- def method(self): #code def method(self, data): #code -- The last declaration of method() erase the previous one (like JavaScript). Thanks. -- http://mail.python.org/mailman/listinfo/python-list

What is class method?

2008-08-24 Thread Hussein B
Hi, I'm familiar with static method concept, but what is the class method? how it does differ from static method? when to use it? -- class M: def method(cls, x): pass method = classmethod(method) -- Thank you for your time. -- http://mail.python.org/mailman/listinfo/python-list

Best way to set/get an object property

2008-08-24 Thread Hussein B
Hey, I noted that Python encourage the usage of: -- obj.prop = data x = obj.prop -- to set/get an object's property value. What if I want to run some logic upon setting/getting a property? What is Python preferred method to do so (using the new feature 'property')? I don't think __getattr__ and __s

Re: Best way to set/get an object property

2008-08-24 Thread Hussein B
On Aug 24, 5:28 am, Peter Otten <[EMAIL PROTECTED]> wrote: > Hussein B wrote: > > I noted that Python encourage the usage of: > > -- > > obj.prop = data > > x = obj.prop > > -- > > to set/get an object's property value. > > What if I want to

Re: Best way to set/get an object property

2008-08-25 Thread Hussein B
On Aug 24, 7:12 pm, Steven D'Aprano <[EMAIL PROTECTED] cybersource.com.au> wrote: > On Sun, 24 Aug 2008 12:28:53 +0200, Peter Otten wrote: > > Hussein B wrote: > > >> I noted that Python encourage the usage of: -- > >> obj.prop = data > >> x = obj

Re: Best way to set/get an object property

2008-08-25 Thread Hussein B
On Aug 25, 4:31 am, Steven D'Aprano <[EMAIL PROTECTED]> wrote: > On Sun, 24 Aug 2008 23:56:27 -0700, Hussein B wrote: > > On Aug 24, 7:12 pm, Steven D'Aprano <[EMAIL PROTECTED] > > cybersource.com.au> wrote: > >> >> I noted that Python

Understanding this generator function

2008-08-27 Thread Hussein B
Hey, This is an example of a generator function: = def counter(start_at=0): count = start_at while True: val = (yield count) if val is not None: count = val else: count += 1 == >>> count = counter(5) >>> count.next() 5 >>> count.send(9

Python svn bindings for Subversion?

2008-08-28 Thread Mike B
I'm trying to get Subversion 'hook scripts' working on an Ubuntu box and the following fails. from svn import fs, repos, core, delta As far as I can tell there are two Python Subversion libraries, 'pysvn' and 'svn': 'pysvn' from http://pysvn.tigris.org/ appears to be a client side interface and i

Re: Python svn bindings for Subversion?

2008-08-29 Thread Mike B
On Thu, 28 Aug 2008 19:58:10 GMT, Matthew Woodcraft <[EMAIL PROTECTED]> wrote: >Mike B writes: >> I'm trying to get Subversion 'hook scripts' working on an Ubuntu box and the >> following fails. >> >> from svn import fs, repos, core, delta >[...]

PySerial and termios

2009-11-30 Thread a b
I have a pain in the a** problem with pyserial- it works 90% of time but on the 10% of time it thorows and termios.error exception with the value (5, 'Input/output error') and i cannot get rid of it :( The system works as follows: A device sends out rs485 data -> rs485 to rs232 converter converts i

editor with autocompletion

2009-12-03 Thread Siva B
Hi friends, I am writing a new language. So I want an editor with auto complete. I there any such tool in Python ?(not only in python any other) I want it for my new lang help me Thanks siva -- http://mail.python.org/mailman/listinfo/python-list

read from standard input

2009-12-04 Thread Siva B
Hi all, I wrote a program to read some data through standard input and write in a file. the following code works fine in linux. but its giving ArgumentError in windows. Code: import sys orig_source = sys.stdin.read() file=open('data.txt','w') file.write(orig_source) file.close() please post s

Re: read from standard input

2009-12-04 Thread Siva B
t 11:54 AM, Chris Rebert wrote: > On Fri, Dec 4, 2009 at 9:37 PM, Siva B wrote: > > Hi all, > > > > I wrote a program to read some data through standard input and write in a > > file. > > the following code works fine in linux. > > but its giving ArgumentErro

Re: editor with autocompletion

2009-12-04 Thread Siva B
open source.) I have seen Komodo edit but it looks too big any help plz. Regards, Siva On Fri, Dec 4, 2009 at 8:04 PM, Gerhard Häring wrote: > Siva B wrote: > > Hi friends, > > > > I am writing a new language. > > So I want an editor with auto complete. > >

Re: read from standard input

2009-12-05 Thread Siva B
gt;> > >> On Fri, Dec 4, 2009 at 9:37 PM, Siva B wrote: > >> > Hi all, > >> > > >> > I wrote a program to read some data through standard input and write > in > >> > a > >> > file. > >> > the following code work

Multiple console windows for a single program?

2010-02-28 Thread Blake B
n "console" windows using TK or something? Thanks in advance, Blake B -- http://mail.python.org/mailman/listinfo/python-list

Automatic import ?

2010-03-25 Thread C. B.
Hi everyone, I'm currently coding a C library which provides several modules and objects. Let's say that some of these objects are classes called AAA and BBB. The constructor of AAA needs to get BBB as argument. So I can run the following code : from mymodule import AAA from mymodule import BBB

Re: Automatic import ?

2010-03-26 Thread C. B.
> > What is the behaviour of the __init__.py file? > Not yet used, but I read this file is run by Python when a module of a package is imported. So you can insert default importations in it. -- http://mail.python.org/mailman/listinfo/python-list

Re: Automatic import ?

2010-03-26 Thread C. B.
At first, thank you all for your answers. Some more details about what I'm coding and what I need... The classes AAA and BBB are just given as examples. In fact, BBB's constructor accepts several parameters, meaning it can be different for each creation of AAA. So it can't be simply skipped from

Re: Automatic import ?

2010-03-27 Thread C. B.
> In that particular case, replace automatic by implicit, and you got the > reason why it is not a good idea. > Maybe in your case the C habits clashes to the python habits. > You're right ! As a C developer, I appreciate to only include to deal with strings, without wondering which other heade

RE: Leo 4.8 rc1 released

2010-11-15 Thread Mikael B
> From: edream...@gmail.com > Subject: Leo 4.8 rc1 released > Date: Mon, 15 Nov 2010 09:06:01 -0800 > To: python-list@python.org > > Leo 4.8 release candidate 1 is now available at: > http://sourceforge.net/project/showfiles.php?group_id=3458&package_id=29106 > > Leo is a text editor, data org

try to use unicode

2010-11-19 Thread Mikael B
Hi. I'm learning python. python 2.6.6 on ubuntu 10.10 I'm swedish so I try to use unicode to get swedish characters. I've checked wikipedia. utf-8 is said to be an unicode encoding.. this is the test program: # -*- coding: utf-8 -*- import readline s=raw_input(u'Månadslön:') and this is the

RE: try to use unicode

2010-11-19 Thread Mikael B
Date: Sat, 20 Nov 2010 08:47:18 +0100 From: stefan.sonnenb...@pythonmeister.com To: mba...@live.se CC: python-list@python.org Subject: Re: try to use unicode Meddelandetext Am 20.11.2010 06:53, schrieb Mikael B: Hi. I'm learning p

RE: try to use unicode

2010-11-20 Thread Mikael B
Meddelandetext Am 20.11.2010 06:53, schrieb Mikael B: Hi. I'm learning python. python 2.6.6 on ubuntu 10.10 I'm swedish so I try to use unicode to get swedish characters. I've checked wikipedia. utf-8 is said t

RE: Python's equivalent to Main calling program and subprograms

2010-12-01 Thread m b
> > > > if __name__ == "__main__": > > main() What does this mean? /Mikael -- http://mail.python.org/mailman/listinfo/python-list

Excellent SAS Developer avaliable immediately for your client requriments

2010-04-09 Thread Haritha b
Dear Partners I have Keerthi, SAS Developer available immediately for your client requirements. Has worked for AccessPharmaceuticalsInc, ICON Clinical Research, Amarillo Biosciences. She is in NC right now and is willing to relocate in NC. Please let me know if you have any direct client position

Excellent Oracle Apps Technical Consutant avaliable immediately for your client requriments

2010-04-09 Thread Haritha b
Dear Partners I have Raja Rao, Oracle Apps Technical consultant available immediately for your client requirements. Has worked for Tekelec, Hitachi Data Systems etc. He is in NC right now and is willing to relocate. Pl. let me know if you have any direct client positions for him. Location: NC Re

Re: parsing XML

2010-05-16 Thread Jake b
2010 17:20:57 -0700 (PDT) > In-Reply-To: <4beec709$0$18653$4fafb...@reader3.news.tin.it> > References: > >         <4beec709$0$18653$4fafb...@reader3.news.tin.it> > Date: Sat, 15 May 2010 19:20:57 -0500 > Message-ID: > Subject: Re: parsing XML > From: Jake b

Re: tone generation for motherboard and sound card speakers?

2010-05-16 Thread Jake b
For sound ( not internal beep ) you can check out: - pygame: http://www.pygame.org/project-PygSoundTestTest-1453-.html - python.org/sound : http://wiki.python.org/moin/PythonInMusic - pk http://trac2.assembla.com/pkaudio/ - pureData http://puredata.info/Members/thomas/py -- Jake --

View Html/ py code in a zip as HTML/text ? ( for phone )

2010-05-19 Thread Jake b
I'm trying to figure out the best way to view python snippets / smaller files on the itouch/iPhone. I'm reading a new projects docs, but it's not easy to view the zip. It can't view zip files. Say I want to read pyglet examples, I need unzip at least one file and serve that. If it is text/HTML/py

Re: where are the program that are written in python?

2010-05-21 Thread Jake b
did this not go to the list? Arg, reply does in other mailing list. On Fri, May 21, 2010 at 5:48 AM, Jake b wrote: > I took it as game-domain only question: > I don't know of any big game written in python. ( meaning python code, > using c++ libs. ) Verses games that at

Re: client server console app with cmd library

2010-05-21 Thread Jake b
Networking can be hard. I'd suggest checking out these libs. pygame mastermind: http://www.pygame.org/project-Mastermind+Networking+Lib-859-1773.html podSixNet : http://mccormick.cx/projects/PodSixNet/ twisted: http://wiki.python.org/moin/Twisted-Examples lots of references in the answers to this

<    1   2   3   4   5   6   7   8   9   10   >