Re: what gui designer is everyone using

2012-06-07 Thread CM
On Jun 5, 10:10 am, Mark R Rivet wrote: > I want a gui designer that writes the gui code for me. I don't want to > write gui code. what is the gui designer that is most popular? > I tried boa-constructor, and it works, but I am concerned about how > dated it seems to be with no updates in over six

Re: Python libraries portable?

2012-06-07 Thread Tim Johnson
* Corey Richardson [120607 17:01]: > On Thu, 7 Jun 2012 16:43:26 -0800 > Tim Johnson wrote: > > > So what to do if I can't install from the command line? > > I could use python's external command tools like > > subprocess.call(), but am not sure what the implications would be > > since

Re: Python libraries portable?

2012-06-07 Thread Corey Richardson
On Thu, 7 Jun 2012 16:43:26 -0800 Tim Johnson wrote: > So what to do if I can't install from the command line? > I could use python's external command tools like > subprocess.call(), but am not sure what the implications would be > since privileges might be limited. > https://github.co

Re: Python libraries portable?

2012-06-07 Thread Tim Johnson
* Corey Richardson [120607 15:20]: > On Thu, 7 Jun 2012 15:09:36 -0800 > Tim Johnson wrote: > > > Does this mean that I could copy my MySQLdb module directly from > > my workstation via ftp to a server, and have it work, given that > > sys.path contained the path? > > > > No, absolutely

Re: Python libraries portable?

2012-06-07 Thread Corey Richardson
On Thu, 7 Jun 2012 15:09:36 -0800 Tim Johnson wrote: > Does this mean that I could copy my MySQLdb module directly from > my workstation via ftp to a server, and have it work, given that > sys.path contained the path? > No, absolutely not. MySQLdb is a C extension. Assuming same architec

Re: Python libraries portable?

2012-06-07 Thread Tim Johnson
* Corey Richardson [120607 14:19]: > On Thu, 07 Jun 2012 20:20:47 GMT > jkells wrote: > > > We are new to developing applications with Python. A question came > > up concerning Python libraries being portable between > > Architectures.More specifically, can we take a python library > > tha

tiffany 0.3 released

2012-06-07 Thread Christian Tismer
# coding=utf-8 Tiffany - Read/Write Multipage-Tiff with PIL without PIL Tiffany stands for any tiff. The tiny module solves a large set of problems, has no dependencies and just works wherever Python works. Tiffany was developed in the cou

Re: Why does this leak memory?

2012-06-07 Thread Ian Kelly
For comparison, here is what a leaking program would look like: class Foo(object): def __init__(self, other=None): if other is None: other = Foo(self) self.other = other def __del__(self): pass import gc gc.set_debug(gc.DEBUG_STATS | gc.DEBUG_LEAK) f

Re: Why does this leak memory?

2012-06-07 Thread Ian Kelly
On Thu, Jun 7, 2012 at 12:48 PM, Steve wrote: > The leaks can be removed by uncommenting both lines shown. That's just a matter of timing. You call the function before you call set_debug, so when you uncomment the lines, the garbage collector is explicitly run before the debug flags are set. Wh

Re: Python libraries portable?

2012-06-07 Thread Corey Richardson
On Thu, 07 Jun 2012 20:20:47 GMT jkells wrote: > We are new to developing applications with Python. A question came > up concerning Python libraries being portable between > Architectures.More specifically, can we take a python library > that runs on a X86 architecture and run it on a SPARC

Re: what gui designer is everyone using

2012-06-07 Thread Kevin Walzer
On 6/5/12 10:10 AM, Mark R Rivet wrote: I want a gui designer that writes the gui code for me. I don't want to write gui code. what is the gui designer that is most popular? I tried boa-constructor, and it works, but I am concerned about how dated it seems to be with no updates in over six years.

Re: Why does this leak memory?

2012-06-07 Thread John Gordon
In "Steve" writes: > gc: objects in each generation: 453 258 4553 > gc: collectable > gc: collectable > gc: collectable > gc: collectable <_Link 02713300> > gc: collectable > gc: collectable > gc: collectable > gc: collectable <_Link 02713350> > gc: collectable > gc: collectable > gc: co

Python libraries portable?

2012-06-07 Thread jkells
We are new to developing applications with Python. A question came up concerning Python libraries being portable between Architectures.More specifically, can we take a python library that runs on a X86 architecture and run it on a SPARC architecture or do we need to get the native librarie

Re: what gui designer is everyone using

2012-06-07 Thread Miki Tebeka
> what is the gui designer that is most popular? IIRC Qt designer can output Python code. -- http://mail.python.org/mailman/listinfo/python-list

Installing MySQLdb via FTP?

2012-06-07 Thread Tim Johnson
Is it possible to install MySQLdb via FTP? 1)I have a hostmonster account with SSH. I have been able to log in and install MySQLdb from the shell. Works fine. 2)Now I have a client who wants to have a hostmonster account and we will need MySQLdb. I *will not* have SSH access since (as I understan

Why does this leak memory?

2012-06-07 Thread Steve
When I run this program: import configparser, sys, gc def test(): config=configparser.ConfigParser() #del(config) #gc.collect() test() sys.stderr.write(sys.version) gc.set_debug(gc.DEBUG_LEAK|gc.DEBUG_STATS) It reports: 3.2.3 (default, Apr 11 2012, 07:15:24) [MSC v.1500 32 bit (Intel)]

Re: Interprocess comunication

2012-06-07 Thread Peter Otten
Julio Sergio wrote: > J. Cliff Dyer sdf.lonestar.org> writes: > >> >> readlines() reads all the lines from the filehandle, but the filehandle >> hasn't signalled that it is done writing lines, so fo is waiting until >> fi is complete. You either need to keep reading one line at a time, and >>

Re: Career related question

2012-06-07 Thread Temia Eszteri
On Thu, 7 Jun 2012 22:23:47 +1000, Chris Angelico wrote: >On Thu, Jun 7, 2012 at 7:33 PM, Stanley Lee wrote: >> Hey all, >> >> Can I only post jobs on Python's official website, or can I also >> direct the message to the appropriate mailing list in http://mail.python.org/ >> ? Btw, do I have to

Re: Interprocess comunication

2012-06-07 Thread J. Cliff Dyer
It is for reading all the lines from a complete file. If the file is still being written to, it doesn't have an end yet. File objects do many things besides RPC. Also, there are instances where all you want to do is block until the file is done, and then get all the content. readlines will do th

Re: Interprocess comunication

2012-06-07 Thread Julio Sergio
J. Cliff Dyer sdf.lonestar.org> writes: > > readlines() reads all the lines from the filehandle, but the filehandle > hasn't signalled that it is done writing lines, so fo is waiting until > fi is complete. You either need to keep reading one line at a time, and > manually release control when

Re: Interprocess comunication

2012-06-07 Thread Oscar Benjamin
On 7 June 2012 17:04, Julio Sergio wrote: > I'm trying to call an external process to filter some of my data, i.e., I'm > trying to pass some information to the called process, and have this > information > back transformed. I started testing with the linux 'cat' command, in this > way: > > > ->>

Re: Interprocess comunication

2012-06-07 Thread Julio Sergio
MRAB mrabarnett.plus.com> writes: > > I believe it's waiting for the end of the input, i.e. for the pipe to > close. > > Have you tried calling fo.readline() 3 times instead? > yeah! It worked!... A question remains: what is then the purpose of fo.readlines(...)? Thanks, --Sergio -- htt

Re: Interprocess comunication

2012-06-07 Thread J. Cliff Dyer
On Thu, 2012-06-07 at 16:04 +, Julio Sergio wrote: > Up to this point it worked as expected. However, when I tryied with the > methods > that write and read several lines, apparently the process got stalled: > > ->>> fi.writelines(["uno\n","dos\n","tres\n"]) > ->>> fi.flush() > ->>> s = fo.

Re: Interprocess comunication

2012-06-07 Thread MRAB
On 07/06/2012 17:04, Julio Sergio wrote: I'm trying to call an external process to filter some of my data, i.e., I'm trying to pass some information to the called process, and have this information back transformed. I started testing with the linux 'cat' command, in this way: ->>> import subpr

Interprocess comunication

2012-06-07 Thread Julio Sergio
I'm trying to call an external process to filter some of my data, i.e., I'm trying to pass some information to the called process, and have this information back transformed. I started testing with the linux 'cat' command, in this way: ->>> import subprocess as sp ->>> p = sp.Popen(["cat"],std

xlrd 0.7.8 released!

2012-06-07 Thread Chris Withers
Hi All, I'm pleased to announce the release of xlrd 0.7.8: http://pypi.python.org/pypi/xlrd/0.7.8 This release features the following changes: - Compatibility with Python 2.1 and 2.2 is restored. - Fix for github issue #7: assertion error when reading file with xlwt-written bitmap. The asser

Re: Where is the lastest step by step guide to compile Python into an executable?

2012-06-07 Thread Mark Lawrence
On 07/06/2012 11:05, David Shi wrote: Hi, folks. Where is the lastest step by step guide to compile Python into an executable? Regards. David Google. -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: what gui designer is everyone using

2012-06-07 Thread Dave Cook
On 2012-06-05, Mark R Rivet wrote: > I want a gui designer that writes the gui code for me. I don't want to > write gui code. what is the gui designer that is most popular? > I tried boa-constructor, and it works, but I am concerned about how > dated it seems to be with no updates in over six year

Re: next alpha sequence value from var pointing to array

2012-06-07 Thread Peter Otten
jdmorgan wrote: > Hi Peter, > > Thanks for you feedback. I have the next_alpha function you have > provided. But, am still getting the same result. > The actual value I am passing in is "btl". But, as I mentioned I am > getting it from an array value. Note that what you are calling an array

Re: next alpha sequence value from var pointing to array

2012-06-07 Thread jdmorgan
Hi Peter, Thanks for you feedback. I have the next_alpha function you have provided. But, am still getting the same result. The actual value I am passing in is "btl". But, as I mentioned I am getting it from an array value. Here is my actual code. I am reading a comma separated file, getting

Re: next alpha sequence value from var pointing to array

2012-06-07 Thread Peter Otten
jdmorgan wrote: > Hello, Welcome! > I am still fairly new to python, but find it to be a great scripting > language.Here is my issue: > > I am attempting to utilize a function to receive any sequence of letter > characters and return to me the next value in alphabetic order e.g. send > in "abc"

Re: Career related question

2012-06-07 Thread Chris Angelico
On Thu, Jun 7, 2012 at 7:33 PM, Stanley Lee wrote: > Hey all, > > Can I only post jobs on Python's official website, or can I also > direct the message to the appropriate mailing list in http://mail.python.org/ > ? Btw, do I have to be a subscriber of a given list in order to submit > messages? J

next alpha sequence value from var pointing to array

2012-06-07 Thread jdmorgan
Hello, I am still fairly new to python, but find it to be a great scripting language.Here is my issue: I am attempting to utilize a function to receive any sequence of letter characters and return to me the next value in alphabetic order e.g. send in "abc" get back "abd".I found a function o

Where is the lastest step by step guide to compile Python into an executable?

2012-06-07 Thread David Shi
Hi, folks. Where is the lastest step by step guide to compile Python into an executable? Regards. David -- http://mail.python.org/mailman/listinfo/python-list

Career related question

2012-06-07 Thread Stanley Lee
Hey all, Can I only post jobs on Python's official website, or can I also direct the message to the appropriate mailing list in http://mail.python.org/ ? Btw, do I have to be a subscriber of a given list in order to submit messages? Thanks in advance, Stanley -- http://mail.python.org/mailman/l

Re: Documentación desde la terminal de comandos.

2012-06-07 Thread Chris Rebert
2012/6/6 Diego Uribe Gamez > > Una pregunta, como puedo listar todas las librerías que puedo importar a > un .py? y de sus clases? en la terminal de Linux Debian, algo así como > cuando listo todos los programas usando "# aptitude search nombre" > > Se que entro a otra terminal usando "# Python" >

Re: English version for Mémento Python 3 (draft, readers needed)

2012-06-07 Thread Tim Wintle
On Wed, 2012-06-06 at 16:56 -0400, Jerry Hill wrote: > For what it's worth, I've never seen either of those constructs ("see > overleaf" and "see over"). Are they perhaps more common in a > particular academic context, or possibly more common in places that > use "British English" spellings rather

Documentación desde la terminal de comandos.

2012-06-07 Thread Diego Uribe Gamez
Una pregunta, como puedo listar todas las librerías que puedo importar a un .py? y de sus clases? en la terminal de Linux Debian, algo así como cuando listo todos los programas usando "# aptitude search nombre" Se que entro a otra terminal usando "# Python" Gracias -- *Diego Alonso Uribe Gamez