execnet-1.0.1: more robust and rapid python deployment

2009-12-06 Thread holger krekel
Hi everybody, Just uploaded execnet-1.0.1 featuring a new motto: execnet is about rapid-python deployment, be it for multiple CPUs, different platforms or python versions. This release brings a bunch of refinements and most importantly more robust termination, handling of CTRL-C and

ANN: RELEASE: KetchupTV 1.0.0.0

2009-12-06 Thread webmaster
Ketchup TV is a little video player. You can watch WebTV and listen WebRadio. You can watch your own playlists. Ketchup TV has a podcast service with trailers, news and others contents. Ketchup TV is a clone project of FreeHD Gadget. Ketchup TV works without Sidebar and it embed VLC libraries.

moin-1.9.0 released

2009-12-06 Thread Reimar Bauer
== MoinMoin 1.9.0 advanced wiki engine released == MoinMoin is an easy to use, full-featured and extensible wiki software package written in Python. It can fulfill a wide range of roles, such as a personal

Re: Float precision and float equality

2009-12-06 Thread Raymond Hettinger
On Dec 5, 11:42 pm, Tim Roberts t...@probo.com wrote: Raymond Hettinger pyt...@rcn.com wrote:   if not round(x - y, 6): ... That's a dangerous suggestion.  It only works if x and y happen to be roughly in the range of integers. Right. Using abs(x-y) eps is the way to go. Raymond --

Re: How to create a docstring for a module?

2009-12-06 Thread Andreas Waldenburger
On Sat, 5 Dec 2009 23:04:42 -0800 (PST) Dr. Phillip M. Feldman pfeld...@verizon.net wrote: If I create a module xyz.py with a docstring xyz does everything you could possibly want. at the top, the command ?xyz issued at the IPython prompt does not display this docstring. What am I doing

Re: Can't print Chinese to HTTP

2009-12-06 Thread Dave Angel
Gnarlodious wrote: On Dec 5, 3:54 am, Lie Ryan wrote: Because of the switch to unicode str, a simple print('晉') should've worked flawlessly if your terminal can accept the character, but the problem is your terminal does not. There is nothing wrong with Terminal, Mac OSX supports

Re: How to create a docstring for a module?

2009-12-06 Thread Steven D'Aprano
On Sun, 06 Dec 2009 10:55:50 +0100, Andreas Waldenburger wrote: On Sat, 5 Dec 2009 23:04:42 -0800 (PST) Dr. Phillip M. Feldman pfeld...@verizon.net wrote: If I create a module xyz.py with a docstring xyz does everything you could possibly want. at the top, the command ?xyz issued at the

Exception classes don't follow pickle protocol, problems unpickling

2009-12-06 Thread Irmen de Jong
Hi, I am puzzled why Python's exception classes don't seem to follow the pickle protocol. To be more specific: an instance of a user defined exception, subclassed from Exception, cannot be pickled/unpickled correctly in the expected way. The pickle protocol says that: __getinitargs__ is used

Re: How to create a docstring for a module?

2009-12-06 Thread Tim Chase
* He hasn't actually defined a docstring. Docstrings have to be string literals, you can't do this: %s does everything you could possibly want. % xyz I've occasionally wanted something like this, and have found that it can be done by manually assigning to __doc__ (either at the module-level

Re: How to create a docstring for a module?

2009-12-06 Thread Steven D'Aprano
On Sun, 06 Dec 2009 06:34:17 -0600, Tim Chase wrote: * He hasn't actually defined a docstring. Docstrings have to be string literals, you can't do this: %s does everything you could possibly want. % xyz I've occasionally wanted something like this, and have found that it can be done by

Re: logging module, SMTPHandler and gmail in python 2.6

2009-12-06 Thread Vinay Sajip
On Dec 4, 12:31 pm, mynthon mynth...@gmail.com wrote: Thank you for this suggestion. Ideally, you would have created an issue for this on bugs.python.org, because then it would be more likely to be acted upon. I've implemented this feature in r76691 (in Python trunk and py3k) in a more general

Re: When will Python 3 be fully deployed

2009-12-06 Thread Luis M . González
On Dec 6, 3:21 pm, vsoler vicente.so...@gmail.com wrote: I recently read that many libraries, including Numpy have not been ported to Python 3. When do you think that Python 3 will be fully deployed? Should I stick, so far, to Python 2.6? Regards Vicente Soler You'll have some answers

wxEasyGUI: Easy and Interactive GUI Function Dialogs for Python newbie

2009-12-06 Thread Valter.Foresto
Python newbie, like me, need a simple, easy to understand and use, simple interactive GUI functions abd dialogs for starting using the language quickly. I wrote the wxEasyGUI simple library with this idea in my mind and started a new project on the SourceForge.net wxEasyGUI - Easy to Use

Re: NumPy installation won't import correctly

2009-12-06 Thread Alex
On Dec 1, 7:04 pm, Ethos kevint...@gmail.com wrote: On Dec 1, 6:37 pm, David Cournapeau courn...@gmail.com wrote: On Wed, Dec 2, 2009 at 11:03 AM, Ethos kevint...@gmail.com wrote: I reinstallednumpy, from sourceforge, even though I had already installed the latest version. Same

Re: How to create a docstring for a module?

2009-12-06 Thread Paul McGuire
On Dec 6, 7:43 am, Steven D'Aprano st...@remove-this- cybersource.com.au wrote: On Sun, 06 Dec 2009 06:34:17 -0600, Tim Chase wrote: I've occasionally wanted something like this, and have found that it can be done by manually assigning to __doc__ (either at the module-level or classes)

Re: Why Can't I Delete a File I Created with Win XP?

2009-12-06 Thread Hans Mulder
J wrote: But that being said, this brings to mind a question about this... in *nix, when I can't do something like delete a file or directory, or unmount a filesystem and cant find the cause, I can do an lsof and grep for references to the file/directory in question, then work from there to

Re: Float precision and float equality

2009-12-06 Thread Anton81
I do some linear algebra and whenever the prefactor of a vector turns out to be zero, I want to remove it. I'd like to keep the system comfortable. So basically I should write a new class for numbers that has it's own __eq__ operator? Is there an existing module for that? --

Generators.

2009-12-06 Thread Jorge Cardona
Hi, I was trying to create a function that receive a generator and return a list but that each elements were computed in a diferent core of my machine. I start using islice function in order to split the job in a way that if there is n cores each i core will compute the elements i,i+n,i+2n,...,

Python3: Sane way to deal with broken encodings

2009-12-06 Thread Johannes Bauer
Dear all, I've some applciations which fetch HTML docuemnts off the web, parse their content and do stuff with it. Every once in a while it happens that the web site administrators put up files which are encoded in a wrong manner. Thus my Python script dies a horrible death: File ./update_db,

Re: How to create a docstring for a module?

2009-12-06 Thread Dr. Phillip M. Feldman
Steven D'Aprano-7 wrote: On Sun, 06 Dec 2009 10:55:50 +0100, Andreas Waldenburger wrote: On Sat, 5 Dec 2009 23:04:42 -0800 (PST) Dr. Phillip M. Feldman pfeld...@verizon.net wrote: If I create a module xyz.py with a docstring xyz does everything you could possibly want. at the top,

Re: How to create a docstring for a module?

2009-12-06 Thread Dr. Phillip M. Feldman
OK. I was able to reproduce the problem. My difficulty was that the command that I issued initially was from xyz import * rather than just import xyz. If I say import xyz, then the docstring is defined; if I say from xyz import *, it isn't. I'm not sure whether this is a bug or expected

Re: Float precision and float equality

2009-12-06 Thread r0g
dbd wrote: On Dec 6, 1:12 am, Raymond Hettinger pyt...@rcn.com wrote: On Dec 5, 11:42 pm, Tim Roberts t...@probo.com wrote: Raymond Hettinger pyt...@rcn.com wrote: if not round(x - y, 6): ... That's a dangerous suggestion. It only works if x and y happen to be roughly in the range of

Re: Python3: Sane way to deal with broken encodings

2009-12-06 Thread Bruno Desthuilliers
Johannes Bauer a écrit : Dear all, I've some applciations which fetch HTML docuemnts off the web, parse their content and do stuff with it. Every once in a while it happens that the web site administrators put up files which are encoded in a wrong manner. Thus my Python script dies a

Re: How to create a docstring for a module?

2009-12-06 Thread Chris Rebert
On Sun, Dec 6, 2009 at 12:34 PM, Dr. Phillip M. Feldman pfeld...@verizon.net wrote: OK.  I was able to reproduce the problem.  My difficulty was that the command that I issued initially was from xyz import * rather than just import xyz.  If I say import xyz, then the docstring is defined; if I

Re: How to create a docstring for a module?

2009-12-06 Thread Stefan Behnel
Dr. Phillip M. Feldman, 06.12.2009 21:34: OK. I was able to reproduce the problem. My difficulty was that the command that I issued initially was from xyz import * rather than just import xyz. If I say import xyz, then the docstring is defined; if I say from xyz import *, it isn't. I'm not

Re: Float precision and float equality

2009-12-06 Thread sturlamolden
On 6 Des, 21:52, r0g aioe@technicalbloke.com wrote: . Right.  Using abs(x-y) eps is the way to go. . . Raymond This only works when abs(x) and abs(y) are larger that eps, but not too much larger. Okay, I'm confused now... I thought them being larger was entirely the point.

Re: Why Can't I Delete a File I Created with Win XP?

2009-12-06 Thread Dave Angel
Hans Mulder wrote: div class=moz-text-flowed style=font-family: -moz-fixedJ wrote: But that being said, this brings to mind a question about this... in *nix, when I can't do something like delete a file or directory, or unmount a filesystem and cant find the cause, I can do an lsof and grep

Re: When will Python 3 be fully deployed

2009-12-06 Thread Edward A. Falk
In article a3a3f9cc-e539-4618-8800-ab9779b5b...@v19g2000vbk.googlegroups.com, vsoler vicente.so...@gmail.com wrote: I recently read that many libraries, including Numpy have not been ported to Python 3. When do you think that Python 3 will be fully deployed? It will never be fully deployed.

Re: Float precision and float equality

2009-12-06 Thread Dave Angel
Anton81 wrote: I do some linear algebra and whenever the prefactor of a vector turns out to be zero, I want to remove it. I'd like to keep the system comfortable. So basically I should write a new class for numbers that has it's own __eq__ operator? Is there an existing module for that?

hola

2009-12-06 Thread franki fuentes cueto
hola soy un pequeño programador y quiesiera pedirles ayuda para programar en python, no se si me podrian mandar ejemplos para poder empezar, y como terminarlo para que se ejecute, me entiendes , aver sime ayudan gracias -- ..FrankiSoft... --

CMNDBOT 0.1 BETA2 released

2009-12-06 Thread Bart Thate
Hello world ! a week after BETA1 i'm releasing BETA2, changes go fast ;] what changed in this version: * RSS plugin can now push to xmpp clients .. add cmnd...@appspot.com to your jabber client and do 1) rss-add to add a feed 2) use rss-start to make the bot start sending you feed updates. * a

Re: When will Python 3 be fully deployed

2009-12-06 Thread Colin W.
On 06-Dec-09 13:25 PM, Luis M. González wrote: On Dec 6, 3:21 pm, vsolervicente.so...@gmail.com wrote: I recently read that many libraries, including Numpy have not been ported to Python 3. When do you think that Python 3 will be fully deployed? Should I stick, so far, to Python 2.6?

Re: When will Python 3 be fully deployed

2009-12-06 Thread Martin P. Hellwig
Edward A. Falk wrote: cut For development purposes, you should stick with the oldest version that will actually run your code. Every time you move to a more modern version, you're leaving potential users/customers out in the cold. If the fear of customers disatification prevents you from

Re: Float precision and float equality

2009-12-06 Thread Carl Banks
On Dec 6, 11:34 am, Anton81 gerenu...@googlemail.com wrote: I do some linear algebra and whenever the prefactor of a vector turns out to be zero, I want to remove it. I'd like to keep the system comfortable. So basically I should write a new class for numbers that has it's own __eq__

Re: Float precision and float equality

2009-12-06 Thread TheSeeker
On Dec 6, 4:54 pm, Carl Banks pavlovevide...@gmail.com wrote: On Dec 6, 11:34 am, Anton81 gerenu...@googlemail.com wrote: I do some linear algebra and whenever the prefactor of a vector turns out to be zero, I want to remove it. I'd like to keep the system comfortable. So basically I

Re: Float precision and float equality

2009-12-06 Thread David Cournapeau
On Sun, Dec 6, 2009 at 1:46 AM, Mark Dickinson dicki...@gmail.com wrote: On Dec 5, 3:37 pm, Anton81 gerenu...@googlemail.com wrote: I'd like to do calculations with floats and at some point equality of two number will be checked. What is the best way to make sure that equality of floats will

Re: How to create a docstring for a module?

2009-12-06 Thread Phillip M. Feldman
Chris Rebert wrote: On Sun, Dec 6, 2009 at 12:34 PM, Dr. Phillip M. Feldman pfeld...@verizon.net wrote: OK. I was able to reproduce the problem. My difficulty was that the command that I issued initially was from xyz import * rather than just import xyz. If I say import xyz, then the

Re: Are routine objects guaranteed mutable with dictionary?

2009-12-06 Thread Alf P. Steinbach
* Dennis Lee Bieber: On Sat, 05 Dec 2009 11:26:34 +0100, Alf P. Steinbach al...@start.no declaimed the following in gmane.comp.python.general: The devolution of terminology has been so severe that now even the Wikipedia article on this subject confounds the general concept of routine with the

Re: High-performance Python websites

2009-12-06 Thread Aaron Watters
The key to scaling a web site is to make sure you can load-balance to as many front ends as needed and then use a common database backend that is fast enough or possibly a common file system that is fast enough. I can't speak to Django specifically but you can certainly get essentially unlimited

Re: How to create a docstring for a module?

2009-12-06 Thread alex23
Phillip M. Feldman pfeld...@verizon.net wrote: It does seem as though IPython could be a bit more clever about this.   I disagree. I _like_ that IPython is only reporting on the current state of the interpreter and not trying to second guess what I meant. If the user asks for documentation on

Re: Float precision and float equality

2009-12-06 Thread Dave Angel
Carl Banks wrote: On Dec 6, 11:34 am, Anton81 gerenu...@googlemail.com wrote: I do some linear algebra and whenever the prefactor of a vector turns out to be zero, I want to remove it. I'd like to keep the system comfortable. So basically I should write a new class for numbers that has

What is the significance of after() in this code?

2009-12-06 Thread W. eWatson
See Subject. def StackImages(self): self.Upload(P) self.after_id = self.master.after(1,self.GetFrameOne) -- http://mail.python.org/mailman/listinfo/python-list

Re: What is the significance of after() in this code?

2009-12-06 Thread Carl Banks
On Dec 6, 7:29 pm, W. eWatson wolftra...@invalid.com wrote: See Subject.      def StackImages(self):          self.Upload(P)          self.after_id = self.master.after(1,self.GetFrameOne) It's a method of the object that is bound to self.master. It's return value is then bound to the

Re: What is the significance of after() in this code?

2009-12-06 Thread Benjamin Kaplan
On Sun, Dec 6, 2009 at 10:29 PM, W. eWatson wolftra...@invalid.com wrote: See Subject.    def StackImages(self):        self.Upload(P)        self.after_id = self.master.after(1,self.GetFrameOne) -- http://mail.python.org/mailman/listinfo/python-list I think this is close to winning an

python proxy checker ,change to threaded version

2009-12-06 Thread elca
Hello ALL, i have some python proxy checker . and to speed up check, i was decided change to mutlthreaded version, and thread module is first for me, i was tried several times to convert to thread version and look for many info, but it not so much easy for novice python programmar . if

Re: Generators.

2009-12-06 Thread Lie Ryan
On 12/7/2009 7:22 AM, Jorge Cardona wrote: Hi, I was trying to create a function that receive a generator and return a list but that each elements were computed in a diferent core of my machine. I start using islice function in order to split the job in a way that if there is n cores each i

Re: Float precision and float equality

2009-12-06 Thread dbd
On Dec 6, 1:48 pm, sturlamolden sturlamol...@yahoo.no wrote: On 6 Des, 21:52, r0g aioe@technicalbloke.com wrote: . Right.  Using abs(x-y) eps is the way to go. . . Raymond This only works when abs(x) and abs(y) are larger that eps, but not too much larger. Okay, I'm

Re: Are routine objects guaranteed mutable with dictionary?

2009-12-06 Thread MRAB
Alf P. Steinbach wrote: * Dennis Lee Bieber: On Sat, 05 Dec 2009 11:26:34 +0100, Alf P. Steinbach al...@start.no declaimed the following in gmane.comp.python.general: The devolution of terminology has been so severe that now even the Wikipedia article on this subject confounds the general

Re: What is the significance of after() in this code?

2009-12-06 Thread zeph
On Dec 6, 8:46 pm, Benjamin Kaplan benjamin.kap...@case.edu wrote: On Sun, Dec 6, 2009 at 10:29 PM, W. eWatson wolftra...@invalid.com wrote: See Subject.    def StackImages(self):        self.Upload(P)        self.after_id = self.master.after(1,self.GetFrameOne) --

Re: What is the significance of after() in this code?

2009-12-06 Thread alex23
zeph zep...@gmail.com wrote: True, though by *context* the after method looks like it takes a time (probably in milliseconds, given its size), and a method, and calls the method after that amount of time, and returning some process/ thread id to self.after_id.  Though if that's right, we still

how to convert string function to string method?

2009-12-06 Thread Dr. Phillip M. Feldman
I wrote a handy-dandy function (see below) called strip_pairs for stripping matching pairs of characters from the beginning and end of a string. This function works, but I would like to be able to invoke it as a string method rather than as a function. Is this possible? def strip_pairs(s=None,

Re: how to convert string function to string method?

2009-12-06 Thread Stephen Hansen
On Sun, Dec 6, 2009 at 10:47 PM, Dr. Phillip M. Feldman pfeld...@verizon.net wrote: I wrote a handy-dandy function (see below) called strip_pairs for stripping matching pairs of characters from the beginning and end of a string. This function works, but I would like to be able to invoke it

[issue7447] Sum() doc and behavior mismatch

2009-12-06 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- assignee: georg.brandl - rhettinger nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7447 ___

[issue1923] meaningful whitespace can be lost in rfc822_escape

2009-12-06 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: I will treat the empty line problem in another issue because I won't apply it in 2.6/3.1. This one is fixed in r76684, r76685, r76686, r76687. Thanks ! -- status: open - closed versions: +Python 2.6, Python 2.7, Python 3.1, Python

[issue6472] Inconsistent use of iterator in ElementTree doc diff between Py and C modules

2009-12-06 Thread flox
flox la...@yahoo.fr added the comment: Proposed patch fixes most of the discrepancies between both implementations. It restores some features that were lost with Python 3: * cElement slicing and extended slicing * iterparse, cET.getiterator and cET.findall return an iterator (as

[issue6472] Inconsistent use of iterator in ElementTree doc diff between Py and C modules

2009-12-06 Thread flox
Changes by flox la...@yahoo.fr: Added file: http://bugs.python.org/file15462/issue6472_py3k.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6472 ___

[issue1771] Remove cmp parameter to list.sort() and builtin.sorted()

2009-12-06 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Tom, I think I'm missing your point: all three of the examples you give seem like perfect candidates for a key-based sort rather than a comparison-based one. For the first example, couldn't you do something like: def direction(pt1, pt2):

[issue5949] IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs

2009-12-06 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: With just the test patch applied, test_imaplib passes for me on trunk r76687. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5949

[issue1771] Remove cmp parameter to list.sort() and builtin.sorted()

2009-12-06 Thread Tom Switzer
Tom Switzer thomas.swit...@gmail.com added the comment: Mark: I think your example actually helps illustrate my point. My point was that computing the angle directly is less efficient or not as nice numerically. For instance, if you are sorting points by angle relative to an extreme point you

[issue5949] IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs

2009-12-06 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Ah, your new test isn't being run, that's why test_impalib passes. Let me figure out why your test isn't run. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5949

[issue5949] IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs

2009-12-06 Thread Scott Dial
Scott Dial sc...@scottdial.com added the comment: The test requires regrtest.py be run with network support and the python instance be built with threads. $ ./python Lib/test/regrtest.py -u network test_imaplib Without network support, it just skips those test (which is the same way test_ssl).

[issue5949] IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs

2009-12-06 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: OK, after adding ThreadedNetworkedTests to the 'tests' list in test_main, the new tests ran and did hang. After applying the imaplib patch, the new tests completed. However, afterward I got the following traceback: Exception in thread

[issue5949] IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs

2009-12-06 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Ah, my mistake, I misread the code, sorry. Yes, if I supply -uall to regrtest the tests run correctly. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5949

[issue3754] minimal cross-compilation support for configure

2009-12-06 Thread Roumen Petrov
Changes by Roumen Petrov bugtr...@roumenpetrov.info: Added file: http://bugs.python.org/file15464/python-trunk-20091206-CROSS.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3754

[issue3871] cross and native build of python for mingw32 with distutils

2009-12-06 Thread Roumen Petrov
Changes by Roumen Petrov bugtr...@roumenpetrov.info: Added file: http://bugs.python.org/file15465/python-trunk-20091206-MINGW.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3871

[issue5949] IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs

2009-12-06 Thread Scott Dial
Scott Dial sc...@scottdial.com added the comment: Thanks for giving it a try. I believe the issue is that I am raising an exception in the middle of run_server, which was not a pattern tested in the other modules I looked at. Thus, the threads for those do not get reaped correctly. I have

[issue7448] when piping output between subprocesses some fd is left open blocking forever

2009-12-06 Thread Clovis Fabricio
New submission from Clovis Fabricio nosklo+pyt...@gmail.com: Suppose I want to simulate the following shell pipe using the subprocess module: `grep -v not | cut -c 1-10` The documentation example here http://docs.python.org/library/subprocess.html#replacing-shell-pipeline Implies that I want

[issue5672] Implement a way to change the python process name

2009-12-06 Thread Marcelo Fernández
Marcelo Fernández marcelo.fidel.fernan...@gmail.com added the comment: Great, piro! I'm taking a look at it, and it seems to use setproctitle() in BSD, and writes over the argv array in most Sys-V like systems; this includes Linux? My question is because I think there's a better and

[issue1771] Remove cmp parameter to list.sort() and builtin.sorted()

2009-12-06 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Ah. Thanks for the explanation; I see your point. I guess you do just have to use a CmpToKey-type wrapper for this sort of comparison. Though for this *particular* example, it seems to me that you could still use a key function lambda

[issue7449] A number tests crash if python is compiled --without-threads

2009-12-06 Thread R. David Murray
New submission from R. David Murray rdmur...@bitdance.com: In the past (= 2.6) regrtest skipped a test if any import failure happened, which masked various real test failures. This was fixed, and tests that should be skipped if certain modules are not available were changed to use

[issue5672] Implement a way to change the python process name

2009-12-06 Thread Daniele Varrazzo
Daniele Varrazzo p...@develer.com added the comment: I'm taking a look at it, and it seems to use setproctitle() in BSD, and writes over the argv array in most Sys-V like systems; this includes Linux? Yes: Linux uses what in the source is referred as the PS_USE_CLOBBER_ARGV strategy: it

[issue5672] Implement a way to change the python process name

2009-12-06 Thread Marcelo Fernández
Marcelo Fernández marcelo.fidel.fernan...@gmail.com added the comment: 2009/12/6 Daniele Varrazzo rep...@bugs.python.org: My question is because I think there's a better and supported method for Linux, that is, using prctl [1]. I read somewhere that changing argv causes some inconsistencies

[issue5949] IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs

2009-12-06 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: The traceback I posted was a spurious result of my misunderstanding your test code. With -uall it worked fine. Sorry that I didn't make that clear. Thanks for doing the work of putting the extended test framework together. Without

[issue5949] IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs

2009-12-06 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Patch actually attached this time. -- Added file: http://bugs.python.org/file15467/test_imaplib_issue5949.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5949

[issue6472] Inconsistent use of iterator in ElementTree doc diff between Py and C modules

2009-12-06 Thread flox
flox la...@yahoo.fr added the comment: I fixed it differently, using the upstream modules (Thank you Fredrik). * ElementTree 1.3a3-20070912 * cElementTree 1.0.6-20090110 It works. And it closes issue1143, too. -- Added file: http://bugs.python.org/file15468/issue6472_upstream.diff

[issue5672] Implement a way to change the python process name

2009-12-06 Thread Daniele Varrazzo
Daniele Varrazzo p...@develer.com added the comment: It seems that some utilities and programs (killall, gnome-system-monitor, and so on) looks for the process name in /proc/PID/status, not in /proc/PID/cmdline, so it should be better (in Linux), to modify both, /proc/PID/cmdline (changing

[issue5672] Implement a way to change the python process name

2009-12-06 Thread Marcelo Fernández
Marcelo Fernández marcelo.fidel.fernan...@gmail.com added the comment: 2009/12/6 Daniele Varrazzo rep...@bugs.python.org: Just released setproctitle 0.2 where I also call prctl() if available. It is actually the string used by killall. Great! I've just tested it and it works fine here...

[issue7449] A number tests crash if python is compiled --without-threads

2009-12-06 Thread Jerry Seutter
Changes by Jerry Seutter jseut...@gmail.com: -- assignee: - jseutter nosy: +jseutter ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7449 ___ ___

[issue4111] Add DTrace probes

2009-12-06 Thread Mark Wielaard
Changes by Mark Wielaard m...@redhat.com: -- nosy: +mjw ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4111 ___ ___ Python-bugs-list mailing list

[issue5672] Implement a way to change the python process name

2009-12-06 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I've just tested it and it works fine here... Any possibility this module can be included in the regular python standard library, in the future? Only in the far future. I don't think the Python standard library should include a module