Permission denied and lock issue with multiprocess logging

2011-06-12 Thread david dani
When i am running the implementation of multiprocess logging through queue handler, i get this error. It is the same with sockethandler as well as with pipe handler if multiprocesses are involved. I am not getting any hint to solve this problem. Please help to solve the problem. Platform: AIX Pyth

Re: __dict__ is neato torpedo!

2011-06-12 Thread Steven D'Aprano
On Sat, 11 Jun 2011 21:28:40 -0500, Andrew Berg wrote: > On 2011.06.11 09:13 PM, Steven D'Aprano wrote: >> A second, more subtle risk: not all objects have a __dict__. But if you >> obey the rule about never updating from arbitrary objects you don't >> know, then you won't be surprised by an obje

Re: __dict__ is neato torpedo!

2011-06-12 Thread Tim Chase
On 06/11/2011 08:32 PM, Andrew Berg wrote: I'm pretty happy that I can copy variables and their value from one object's namespace to another object's namespace with the same variable names automatically: b.__dict__.update(a.__dict__) The reason I'm posting this is to ask what to watch out for w

Handling emails

2011-06-12 Thread TheSaint
Hello I wrote a program which was working on python 2.x. I'd like to go for newer version but I face the problem on how the emails are parsed. In particular I'd like to extract the significant parts of the headers, but the query to the servers had turned in to list of bytes. What could be a metho

Re: Emacs Python indention

2011-06-12 Thread Andrea Crotti
Bastian Ballmann writes: > Hi Emacs / Python coders, > > moving a region of python code for more than one indention in Emacs is > quite annoying, cause the python-shift-left and -right functions always > loose the mark and one has to reactivate it with \C-x \C-x or > guess how many indentions one

Re: Handling emails

2011-06-12 Thread Steven D'Aprano
On Sun, 12 Jun 2011 19:20:00 +0800, TheSaint wrote: > Hello > I wrote a program which was working on python 2.x. I'd like to go for > newer version but I face the problem on how the emails are parsed. In > particular I'd like to extract the significant parts of the headers, but > the query to the

Idle python32 starts now!!!!!!!!!Got it!!!!!

2011-06-12 Thread markrrivet
Ok, after reading eveything I could find on Idle not starting, nothing worked. I was left on my own. So, I went into C:\Python32\Lib\idlelib through a dos command prompt. I then executed the "idle.py" program. The message's that I recieved in the dos window was referring gnuplot.ini. It complained

ftplib: Software caused connection abort, how I solved it

2011-06-12 Thread Mad Sweeney
My program polls FTP servers at intervals for jobs to process. Its running as a service on Windows server 2000 or 2003 :-(. About 13% of times the retrbinary and less often the nlst calls would fail with "Software caused connection abort". I could find no relevant solution on the intertubes. I a

Re: Handling emails

2011-06-12 Thread TheSaint
Steven D'Aprano wrote: First of all: thanks for the reply >> header =_pop.top(nmuid, 0) > To parse emails, you should use the email package. It already handles > bytes and strings. I've read several information this afternoon, mostly are leading to errors. That could be my ignorance fault :) F

Re: Python Card alternatives?

2011-06-12 Thread Adam Tauno Williams
On Sat, 2011-06-11 at 13:07 +, rzed wrote: > Desktop apps don't seem to be the wave of the future, but they still > serve a useful purpose today. They can be ideal for a quick database > table management screen, +1, they are perfect for that, and will be around for a *long* *long* time. An

Re: __dict__ is neato torpedo!

2011-06-12 Thread Hans Mulder
On 12/06/11 10:47:01, Steven D'Aprano wrote: On Sat, 11 Jun 2011 21:28:40 -0500, Andrew Berg wrote: On 2011.06.11 09:13 PM, Steven D'Aprano wrote: A second, more subtle risk: not all objects have a __dict__. But if you obey the rule about never updating from arbitrary objects you don't know,

To install lxml (and easy_install) for Python 3 under Windows...

2011-06-12 Thread ncdave4life
I had difficulty installing lxml for Python 3.1 under Windows, and took some notes as I worked through it. Here's how I finally managed it... Go to http://lxml.de/installation.html#ms-windows. Follow the link to the "binary egg distribution of lxml" here: http://cheeseshop.python.org/pypi/lxml

Re: To install lxml (and easy_install) for Python 3 under Windows...

2011-06-12 Thread Irmen de Jong
On 12-6-2011 18:38, ncdave4l...@mailinator.com wrote: > I had difficulty installing lxml for Python 3.1 under Windows, and > took some notes as I worked through it. Here's how I finally managed > it... > > [...] In cases like this, Christoph Gohlke's page with 'Unofficial Windows Binaries for

Re: Python Card alternatives?

2011-06-12 Thread Wolfgang Keller
> Are there any other, better solutions? Others are e.g.: - Pypapi - Camelot - Kiwi - Sqlkit - Gnuenterprise etc... Sincerely, Wolfgang -- Führungskräfte leisten keine Arbeit(D'Alembert) -- http://mail.python.org/mailman/listinfo/python-list

debian defaults not up-to-date

2011-06-12 Thread blues2use
Just finished installing Mint 10 and all has gone well. However, when I removed some applications, I received this error during the removal: INFO: using unknown version '/usr/bin/python2.7' (debian_defaults not up- to-date?) The removal proceeds without any other warnings or errors. Not sure wh

Re: Unsupported operand type(s) for +: 'float' and 'tuple'

2011-06-12 Thread Thomas Rachel
Am 11.06.2011 03:02 schrieb Gabriel Genellina: Perhaps those names make sense in your problem at hand, but usually I try to use more meaningful ones. Until here we agree. > 0 and O look very similar in some fonts. That is right - but who would use such fonts for programming? Thomas -- htt

Re: debian defaults not up-to-date

2011-06-12 Thread Benjamin Kaplan
On Jun 12, 2011 10:32 AM, "blues2use" wrote: > > Just finished installing Mint 10 and all has gone well. However, when I > removed some applications, I received this error during the removal: > > INFO: using unknown version '/usr/bin/python2.7' (debian_defaults not up- > to-date?) > > The removal

[RELEASE] Python 2.7.2

2011-06-12 Thread Benjamin Peterson
On behalf of the Python development team, I'm rosy to announce the immediate availability of Python 2.7.2. Since the release candidate 2 weeks ago, there have been 2 changes: 1. pyexpat.__version__ has be changed to be the Python version. 2. A regression from 3.1.3 in the handling of comments in t

[RELEASED] Python 3.1.4

2011-06-12 Thread Benjamin Peterson
On behalf of the Python development team, I'm sanguine to announce a release candidate for the fourth bugfix release for the Python 3.1 series, Python 3.1.4. Since the 3.1.4 release candidate 2 weeks ago, there have been three changes: 1. test_zipfile has been fixed on systems with an ASCII filesy

Re: Python 2.7.2

2011-06-12 Thread jmfauth
On 12 juin, 19:57, Benjamin Peterson wrote: > On behalf of the Python development team, I'm rosy to announce the immediate > availability of Python 2.7.2. > Small error: The link points to Python 2.7.1. The 2.7.2 page exists: http://www.python.org/download/releases/2.7.2/ Update Python 2.7.2 a

Re: Function declarations ?

2011-06-12 Thread Andre Majorel
On 2011-06-10, Asen Bozhilov wrote: > Andre Majorel wrote: > >> Is there a way to keep the definitions of the high-level >> functions at the top of the source ? I don't see a way to >> declare a function in Python. > > Languages with variable and function declarations usually use > hoisted environ

Re: [Python-Dev] [RELEASED] Python 3.1.4

2011-06-12 Thread Benjamin Peterson
2011/6/12 Paul Moore : > On 12 June 2011 18:58, Benjamin Peterson wrote: >> On behalf of the Python development team, I'm sanguine to announce a release >> candidate for the fourth bugfix release for the Python 3.1 series, Python >> 3.1.4. > > Is this actually a RC, or is that a typo? That is a

Re: Permission denied and lock issue with multiprocess logging

2011-06-12 Thread Vinay Sajip
On Jun 12, 8:49 am, david dani wrote: > When i am running the implementation of multiprocessloggingthrough > queue handler, i get this error. It is the same with sockethandler as > well as with pipe handler if multiprocesses are involved. I am not > getting any hint to solve this problem. Please h

Re: parallel computations: subprocess.Popen(...).communicate()[0] does not work with multiprocessing.Pool

2011-06-12 Thread Chris Torek
In article Hseu-Ming Chen wrote: >I am having an issue when making a shell call from within a >multiprocessing.Process(). Here is the story: i tried to parallelize >the computations in 800-ish Matlab scripts and then save the results >to MySQL. The non-parallel/serial version has been running

Re: debian defaults not up-to-date

2011-06-12 Thread rusi
On Jun 12, 10:25 pm, blues2use wrote: > Just finished installing Mint 10 and all has gone well. However, when I > removed some applications, I received this error during the removal: > > INFO: using unknown version '/usr/bin/python2.7' (debian_defaults not up- > to-date?) > > The removal proceeds

Re: Handling emails

2011-06-12 Thread Nobody
On Sun, 12 Jun 2011 21:57:38 +0800, TheSaint wrote: > However, some line will fail to decode correctly. I can't imagine why emails > don't comply to a standard. Any headers should be in ASCII; Non-ASCII characters should be encoded using quoted-printable and/or base-64 encoding. Any message wit

Re: Handling emails

2011-06-12 Thread Dan Stromberg
On Sun, Jun 12, 2011 at 6:46 PM, Nobody wrote: > Any message with non-ASCII characters in the headers can safely be > discarded as spam (I've never seen this bug in "legitimate" email). > Many MTAs will simply reject such messages. http://en.wikipedia.org/wiki/Email_address#Internationalization

Re: Function declarations ?

2011-06-12 Thread Tim Roberts
Andre Majorel wrote: > >Anyway, it seems the Python way to declare a function is > > def f (): >pass No, that DEFINES a function. There is no way to declare a function in Python. It isn't done, because it isn't necessary. That code doesn't do what you think it does. Example: def f()

Re: Keyboard Layout: Dvorak vs Colemak: is it Worthwhile to Improve the Dvorak Layout?

2011-06-12 Thread Tim Roberts
Xah Lee wrote: > >(a lil weekend distraction from comp lang!) > >in recent years, there came this Colemak layout. The guy who created >it, Colemak, has a site, and aggressively market his layout. It's in >linuxes distro by default, and has become somewhat popular. >... >If your typing doesn't come

Subsetting a dataset

2011-06-12 Thread Kumar Mainali
I have a huge dataset containing millions of rows and several dozen columns in a tab delimited text file. I need to extract a small subset of rows and only three columns. One of the three columns has two word string with header “Scientific Name”. The other two columns carry numbers for Longitude a

Subsetting a dataset

2011-06-12 Thread Kumar Mainali
I have a huge dataset containing millions of rows and several dozen columns in a tab delimited text file. I need to extract a small subset of rows and only three columns. One of the three columns has two word string with header “Scientific Name”. The other two columns carry numbers for Longitude a

Re: Subsetting a dataset

2011-06-12 Thread Benjamin Kaplan
On Sun, Jun 12, 2011 at 9:53 PM, Kumar Mainali wrote: > I have a huge dataset containing millions of rows and several dozen columns > in a tab delimited text file.  I need to extract a small subset of rows and > only three columns. One of the three columns has two word string with header > “Scient

Re: Subsetting a dataset

2011-06-12 Thread Terry Reedy
On 6/13/2011 12:53 AM, Kumar Mainali wrote: I have a huge dataset containing millions of rows and several dozen columns in a tab delimited text file. I need to extract a small subset of rows and only three columns. One of the three columns has two word string with header “Scientific Name”. The o

Re: Subsetting a dataset

2011-06-12 Thread Dan Stromberg
On Sun, Jun 12, 2011 at 9:53 PM, Kumar Mainali wrote: > I have a huge dataset containing millions of rows and several dozen columns > in a tab delimited text file. I need to extract a small subset of rows and > only three columns. One of the three columns has two word string with header > “Scien