ANN: A new version (0.2.7) of the Python module which wraps GnuPG has been released.

2011-04-10 Thread Vinay Sajip
A new version of the Python module which wraps GnuPG has been released. What Changed? = This is a minor enhancement and bug-fix release. See the project website ( http://code.google.com/p/python-gnupg/ ) for more information. Summary: Better support for status messages from GnuPG.

Re: Argument of the bool function

2011-04-10 Thread Robert Kern
On 2011-04-09 23:15 , rusi wrote: On Apr 10, 8:35 am, Grant Edwardsinva...@invalid.invalid wrote: On 2011-04-09, Lie Ryanlie.1...@gmail.com wrote: On 04/09/11 08:59, candide wrote: Le 09/04/2011 00:03, Ethan Furman a ?crit : bool([x]) dir([object]) Not very meaningful, isn't it ?

Re: Retrieving Python Keywords

2011-04-10 Thread candide
Le 10/04/2011 04:09, John Connor a écrit : Actually this is all it takes: import keywords print keywords.kwlist import keywords Traceback (most recent call last): File stdin, line 1, in module ImportError: No module named keywords so I considered first it was a joke ! ;) In fact the

Re: Retrieving Python Keywords

2011-04-10 Thread candide
Le 10/04/2011 04:01, Terry Reedy a écrit : Yes. (Look in the manuals, I did : my main reference book is the Martelli's /Python in a Nutshell/ and the index doesn't refer to the keyword import or try the obvious imports ;-) The only obvious I saw was sys module. --

OOP only in modules

2011-04-10 Thread newpyth
Hi all, from the subject of my post, you can see I do not like very much OOP... and I am not the only one... Knowing that python is intrinsecally OO, I propose to move all OOP stuff (classes, instances and so on) to modules. In this way the OOP fan can keep on using it, but in a module recalled by

design question

2011-04-10 Thread Andrea Crotti
I've been wondering for weeks now how to do but I still didn't get a satisfying answer, so I hope someone can give a hint... I have some logs which I extract from simulation results. These logs are in the form timestamp, nodeid, eventname, event_argument and now I have to analyze the data. I

Re: OOP only in modules

2011-04-10 Thread Andrea Crotti
newpyth newp...@gmail.com writes: Hi all, from the subject of my post, you can see I do not like very much OOP... and I am not the only one... Knowing that python is intrinsecally OO, I propose to move all OOP stuff (classes, instances and so on) to modules. In this way the OOP fan can

Timebased Function Scheduler with Pause and UnPause functionality

2011-04-10 Thread Narendra Sisodiya
I wrote some dirty script for Function Scheduling and pausing them ! May some look and point mistakes, I am totally new to python ! https://gist.github.com/911942 -- ┌─┐ │    Narendra Sisodiya │    http://narendrasisodiya.com └─┘ --

Re: DOCTYPE + SAX

2011-04-10 Thread jdownie
What you suggested solved my problem, but unfortunately it did reveal that the HTML that I was parsing was not compliant with the DTD that it should have been. There were a lot of missing end tags. In light of this frustrating problem i've gone back to the source docbook code. There are many

Encoding problem when launching Python27 via DOS

2011-04-10 Thread Jean-Pierre M
I created a simple program which writes in a unicode files some french text with accents! *# -*- coding: cp1252 -*-* *#!/usr/bin/python* *'''* *Created on 27 déc. 2010* * * *@author: jpmena* *'''* *from datetime import datetime* *import locale* *import codecs* *import os,sys* * * *class

Re: Argument of the bool function

2011-04-10 Thread candide
Le 08/04/2011 18:41, Benjamin Kaplan a écrit : bool(x=5) is just passing the value 5 as the argument x to the function. Anyway, passing x as a keyword argument to the bool function appears to be very rare : i did a regexp search for about 3 source-code Python files (among them

Re: Argument of the bool function

2011-04-10 Thread Chris Angelico
On Sun, Apr 10, 2011 at 10:54 PM, candide candide@free.invalid wrote: Anyway, passing x as a keyword argument to the bool function appears to be very rare : i did a regexp search for about 3 source-code Python files (among them official Python source-code, Django, Sphinx, Eric source-code

Re: design question

2011-04-10 Thread Andrea Crotti
Andrea Crotti andrea.crott...@gmail.com writes: [...] I left the Timeline as before, but tried to rewrite some more classes. This is the abstract class for a metric, and below another class for the metric which involve only counting things. In the end an example on how to use this. I need to

Re: OOP only in modules

2011-04-10 Thread Steven D'Aprano
On Sun, 10 Apr 2011 03:35:48 -0700, newpyth wrote: Hi all, from the subject of my post, you can see I do not like very much OOP... and I am not the only one... Knowing that python is intrinsecally OO, I propose to move all OOP stuff (classes, instances and so on) to modules. Python is based

Re: How to program in Python to run system commands in 1000s of servers

2011-04-10 Thread Babu
On Apr 8, 5:40 am, Thomas Rachel nutznetz-0c1b6768-bfa9-48d5- a470-7603bd3aa...@spamschutz.glglgl.de wrote: Am 07.04.2011 21:14, schrieb Anssi Saari: Chris Angelicoros...@gmail.com  writes: Depending on what exactly is needed, it might be easier to run a separate daemon on the computers,

Re: How to program in Python to run system commands in 1000s of servers

2011-04-10 Thread Chris Angelico
On Mon, Apr 11, 2011 at 12:22 AM, Babu bab...@gmail.com wrote: Are there any more different approaches?  I suppose if we take the daemon approach then we can make it as a webservice as well? Yes, your daemon could function via HTTP. But if you go that route, you would need some way to collect

Re: Multiprocessing, shared memory vs. pickled copies

2011-04-10 Thread sturlamolden
On 9 apr, 22:18, John Ladasky lada...@my-deja.com wrote: So, there are limited advantages to trying to parallelize the evaluation of ONE cascade network's weights against ONE input vector. However, evaluating several copies of one cascade network's output, against several different test

ANN: A new version (0.2.7) of the Python module which wraps GnuPG has been released.

2011-04-10 Thread Vinay Sajip
A new version of the Python module which wraps GnuPG has been released. What Changed? = This is a minor enhancement and bug-fix release. See the project website ( http://code.google.com/p/python-gnupg/ ) for more information. Summary: Better support for status messages from GnuPG.

Re: Multiprocessing, shared memory vs. pickled copies

2011-04-10 Thread Miki Tebeka
Now, I don't know that I actually HAVE to pass my neural network and input data as copies -- they're both READ-ONLY objects for the duration of an evaluate function (which can go on for quite a while). One option in that case is to use fork (if you're on a *nix machine). See

Re: Argument of the bool function

2011-04-10 Thread Mel
Chris Angelico wrote: Who would use keyword arguments with a function that takes only one arg anyway? It's hard to imagine. Maybe somebody trying to generalize function calls (trying to interpret some other language using a python program?) # e.g. input winds up having the effect of ..

Re: Multiprocessing, shared memory vs. pickled copies

2011-04-10 Thread John Nagle
On 4/10/2011 9:11 AM, Miki Tebeka wrote: Now, I don't know that I actually HAVE to pass my neural network and input data as copies -- they're both READ-ONLY objects for the duration of an evaluate function (which can go on for quite a while). One option in that case is to use fork (if you're on

Re: OOP only in modules

2011-04-10 Thread newpyth
Hi all, I must thank before Andrea Crotti and Steven D'Aprano, which kindly replayed to my post... they deserve an answer. To Andrea Crotti's OOP makes life easier also to the user... that is NOT my experience... I'm not pretending that everyone else thinks like me (also if many people do... load

Re: [OT] Free software versus software idea patents

2011-04-10 Thread Westley Martínez
On Sat, 2011-04-09 at 23:55 +, Steven D'Aprano wrote: On Fri, 08 Apr 2011 01:37:45 -0500, harrismh777 wrote: Steven D'Aprano wrote: The reason Mono gets hit (from others besides me) is that they are in partnership and collaboration with Microsoft, consciously and unconsciously.

Re: Encoding problem when launching Python27 via DOS

2011-04-10 Thread MRAB
On 10/04/2011 13:22, Jean-Pierre M wrote: I created a simple program which writes in a unicode files some french text with accents! [snip] This line: l.p(premier message de Log à accents) passes a bytestring to the method, and inside the method, this line: unicode_str=u'%s : %s \n'

Re: OOP only in modules

2011-04-10 Thread Andrea Crotti
newpyth newp...@gmail.com writes: [...] My main goal is to arrange OO in a paradigmatic manner in order to apply to it the procedural scheme. especially to the caller or called modules. Bye. I have some troubles understanding what you mean. Can you write an example of code that it's for

Re: Argument of the bool function

2011-04-10 Thread Colin J. Williams
On 10-Apr-11 12:21 PM, Mel wrote: Chris Angelico wrote: Who would use keyword arguments with a function that takes only one arg anyway? It's hard to imagine. Maybe somebody trying to generalize function calls (trying to interpret some other language using a python program?) # e.g. input

Re: Retrieving Python Keywords

2011-04-10 Thread Terry Reedy
On 4/10/2011 5:12 AM, candide wrote: Le 10/04/2011 04:01, Terry Reedy a écrit : Yes. (Look in the manuals, I did : my main reference book is the Martelli's /Python in a Nutshell/ You should only use that as a supplement. and the index doesn't refer to the keyword import and now you

Python program termination and exception catching

2011-04-10 Thread Jason Swails
Hello everyone, This may sound like a bit of a strange desire, but I want to change the way in which a python program quits if an exception is not caught. The program has many different classes of exceptions (for clarity purposes), and they're raised whenever something goes wrong. Most I want

Re: Python program termination and exception catching

2011-04-10 Thread Laszlo Nagy
2011.04.10. 21:25 keltezéssel, Jason Swails írta: Hello everyone, This may sound like a bit of a strange desire, but I want to change the way in which a python program quits if an exception is not caught. The program has many different classes of exceptions (for clarity purposes), and

Re: Python program termination and exception catching

2011-04-10 Thread Jason Swails
On Sun, Apr 10, 2011 at 12:34 PM, Laszlo Nagy gand...@shopzeus.com wrote: 2011.04.10. 21:25 keltezéssel, Jason Swails írta: Hello everyone, This may sound like a bit of a strange desire, but I want to change the way in which a python program quits if an exception is not caught. The

Re: Python program termination and exception catching

2011-04-10 Thread Benjamin Kaplan
On Sun, Apr 10, 2011 at 4:05 PM, Jason Swails jason.swa...@gmail.com wrote: On Sun, Apr 10, 2011 at 12:34 PM, Laszlo Nagy gand...@shopzeus.com wrote: 2011.04.10. 21:25 keltezéssel, Jason Swails írta: Hello everyone, This may sound like a bit of a strange desire, but I want to change the

Re: Multiprocessing, shared memory vs. pickled copies

2011-04-10 Thread sturlamolden
On 10 apr, 18:27, John Nagle na...@animats.com wrote:     Unless you have a performance problem, don't bother with shared memory.     If you have a performance problem, Python is probably the wrong tool for the job anyway. Then why does Python have a multiprocessing module? In my opinion,

Re: Multiprocessing, shared memory vs. pickled copies

2011-04-10 Thread sturlamolden
On 8 apr, 03:10, sturlamolden sturlamol...@yahoo.no wrote: That was easy, 64-bit support for Windows is done :-) Now I'll just have to fix the Linux code, and figure out what to do with os._exit preventing clean-up on exit... :-( Now it feel dumb, it's not worse than monkey patching

Re: Python program termination and exception catching

2011-04-10 Thread Jerry Hill
On Sun, Apr 10, 2011 at 3:25 PM, Jason Swails jason.swa...@gmail.com wrote: Hello everyone, This may sound like a bit of a strange desire, but I want to change the way in which a python program quits if an exception is not caught.  The program has many different classes of exceptions (for

Re: Argument of the bool function

2011-04-10 Thread Ben Finney
Mel mwil...@the-wire.com writes: Python is a pragmatic language, so all the rules come pre-broken. +1 QOTW -- \ “Science shows that belief in God is not only obsolete. It is | `\also incoherent.” —Victor J. Stenger, 2001 | _o__)

Re: [OT] Free software versus software idea patents

2011-04-10 Thread harrismh777
Steven D'Aprano wrote: What do you mean 'just like?They are nothing alike. All three of Python, Apache and Linux have accepted donations from Microsoft. Microsoft is a corporate sponsor of the PSF. Microsoft is not in the business of donating money and time to competitors out of the

Re: [OT] Free software versus software idea patents

2011-04-10 Thread Chris Angelico
On Mon, Apr 11, 2011 at 10:04 AM, harrismh777 harrismh...@charter.net wrote:    Not so fast there, Steve. If they [Microsoft] are paying anything (unsubstantiated, unknowable) to Python, Apache, or (Linux, whatever you mean by that term...) there are only two motives:

Re: [OT] Free software versus software idea patents

2011-04-10 Thread harrismh777
Chris Angelico wrote: Not so fast there, Steve. If they [Microsoft] are paying anything (unsubstantiated, unknowable) to Python, Apache, or (Linux, whatever you mean by that term...) there are only two motives: http://www.python.org/psf/ - Microsoft is listed.

Re: Creating unit tests on the fly

2011-04-10 Thread Roy Smith
In article e2a1efe6-17bb-4d94-8fcc-b812b41f6...@d28g2000yqf.googlegroups.com, Raymond Hettinger pyt...@rcn.com wrote: I think you're going to need a queue of tests, with your own test runner consuming the queue, and your on-the-fly test creator running as a producer thread. Writing your

Re: [OT] Free software versus software idea patents

2011-04-10 Thread harrismh777
Chris Angelico wrote: All software can be expressed as lambda calculus. The point being, all software is mathematics... With enough software, you can simulate anything. That means that the entire universe can be expressed as lambda calculus. Does that mean that nothing can ever be

Re: [OT] Free software versus software idea patents

2011-04-10 Thread Westley Martínez
On Mon, 2011-04-11 at 10:18 +1000, Chris Angelico wrote: On Mon, Apr 11, 2011 at 10:04 AM, harrismh777 harrismh...@charter.net wrote: Not so fast there, Steve. If they [Microsoft] are paying anything (unsubstantiated, unknowable) to Python, Apache, or (Linux, whatever you mean by that

Have a nice day.

2011-04-10 Thread Ashraf Ali
Sale Sale Sale. Just visit the following link to buy computer accessories. You can buy computer accessories on reasonable prices. just visit http://www.onlineshoppingpk.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Python program termination and exception catching

2011-04-10 Thread Jason Swails
On Sun, Apr 10, 2011 at 4:49 PM, Jerry Hill malaclyp...@gmail.com wrote: On Sun, Apr 10, 2011 at 3:25 PM, Jason Swails jason.swa...@gmail.com wrote: Hello everyone, This may sound like a bit of a strange desire, but I want to change the way in which a python program quits if an

[issue11818] tempfile.TemporaryFile example in docs doesnt work

2011-04-10 Thread eduardo
New submission from eduardo schettin...@gmail.com: From the example: http://docs.python.org/py3k/library/tempfile.html#examples The error message is weird... but I guess the problem is the default mode 'w+b'. Python 3.3a0 (default:78a66c98288d, Apr 9 2011, 16:13:31) [GCC 4.4.5] on linux2

[issue11810] _socket fails to build on OpenIndiana

2011-04-10 Thread Carl Brewer
Carl Brewer c...@bl.echidna.id.au added the comment: I know this is closed etc... but Plone (the CMS I use) is tied to various versions of Python, in particular 2.6 at this time. Having it not build on Open[Solaris/Indiana] means I can't install current versions of Plone/Zope on this

[issue11819] 'unittest -m' should not pretend it works on Python 2.5/2.6

2011-04-10 Thread anatoly techtonik
New submission from anatoly techtonik techto...@gmail.com: The following command is broken on Python 2.5/2.6 python -m unittest test_file It outputs -- Ran 0 tests in 0.000s OK But in Python 2.7 the same command works

[issue11819] 'unittest -m' should not pretend it works on Python 2.5/2.6

2011-04-10 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti, michael.foord ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11819 ___ ___

[issue11818] tempfile.TemporaryFile example in docs doesnt work

2011-04-10 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 87d89f767b23 by Ross Lagerwall in branch '3.2': Issue #11818: Fix tempfile examples for Python 3. http://hg.python.org/cpython/rev/87d89f767b23 -- nosy: +python-dev ___ Python tracker

[issue11818] tempfile.TemporaryFile example in docs doesnt work

2011-04-10 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: Fixed the examples for Python 3. It writes and reads bytes now. Also fixed the old Python 2 print statement. -- assignee: docs@python - rosslagerwall nosy: +rosslagerwall resolution: - fixed status: open - closed versions:

[issue11820] idle3 shell os.system swallows shell command output

2011-04-10 Thread kent
New submission from kent fuzzba...@comcast.net: attempting to run an os.system command under the idle 3 shell swallows the out put. Idle 3 is running on a 32 bit kde mandriva linux. import os os.system('ls') 0 os.system('pwd') 0 as you can see it returns a 0 indicating successful

[issue11820] idle3 shell os.system swallows shell command output

2011-04-10 Thread kent
kent fuzzba...@comcast.net added the comment: running it as a file from idle gives the same result. import os print (os.system('pwd')) 0 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11820

[issue11810] _socket fails to build on OpenIndiana

2011-04-10 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I know this is closed etc... but Plone (the CMS I use) is tied to various versions of Python, in particular 2.6 at this time. Having it not build on Open[Solaris/Indiana] means I can't install current versions of Plone/Zope on this platform.

[issue11810] _socket fails to build on OpenIndiana

2011-04-10 Thread Carl Brewer
Carl Brewer c...@bl.echidna.id.au added the comment: Plone ships with a universal installer which expects particular versions of python (and PIL etc etc) which makes it easy to build on, for example, many Linux distros, but it's just not working on Open[Solaris|Indiana] and also NetBSD

[issue11810] _socket fails to build on OpenIndiana

2011-04-10 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11810 ___ ___ Python-bugs-list mailing

[issue11819] 'unittest -m' should not pretend it works on Python 2.5/2.6

2011-04-10 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Isn't this an exact duplicate of issue6514? Or do you suggest something else? -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11819

[issue11821] smtplib should provide a means to validate a remote server ssl certificate(s)

2011-04-10 Thread david
New submission from david db.pub.m...@gmail.com: (This is similar to http://bugs.python.org/issue10274) The smtplib module should provide a means to validate a remote server ssl certificate(s). It would be 'nice' if smtplib.SMTP_SSL smtplib.starttls took in arguments to validate the remote

[issue8809] smtplib should support SSL contexts

2011-04-10 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- title: smptlib should support SSL contexts - smtplib should support SSL contexts ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8809 ___

[issue11821] smtplib should provide a means to validate a remote server ssl certificate(s)

2011-04-10 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Duplicate of issue11821. -- nosy: +pitrou resolution: - duplicate status: open - closed superseder: - smtplib should provide a means to validate a remote server ssl certificate(s) ___ Python tracker

[issue11821] smtplib should provide a means to validate a remote server ssl certificate(s)

2011-04-10 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Oops, I meant issue8809. -- superseder: smtplib should provide a means to validate a remote server ssl certificate(s) - smtplib should support SSL contexts ___ Python tracker rep...@bugs.python.org

[issue6514] python -m unittest testmodule does not run any tests

2011-04-10 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6514 ___ ___ Python-bugs-list

[issue11819] 'unittest -m' should not pretend it works on Python 2.5/2.6

2011-04-10 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Yes, this is a duplicate. -- nosy: +georg.brandl resolution: - duplicate status: open - closed superseder: - python -m unittest testmodule does not run any tests ___ Python tracker

[issue2650] re.escape should not escape underscore

2011-04-10 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset dda33191f7f5 by Ezio Melotti in branch 'default': #2650: re.escape() no longer escapes the _. http://hg.python.org/cpython/rev/dda33191f7f5 -- ___ Python tracker rep...@bugs.python.org

[issue2650] re.escape should not escape underscore

2011-04-10 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2650 ___

[issue8809] smtplib should support SSL contexts

2011-04-10 Thread david
Changes by david db.pub.m...@gmail.com: -- nosy: +db ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8809 ___ ___ Python-bugs-list mailing list

[issue8428] buildbot: test_multiprocessing timeout (test_notify_all? test_pool_worker_lifetime?)

2011-04-10 Thread Charles-Francois Natali
Charles-Francois Natali neolo...@free.fr added the comment: I think those lockups are due to a race in the Pool shutdown code. In Lib/multiprocessing/pool.py: def close(self): debug('closing pool') if self._state == RUN: self._state = CLOSE

[issue8809] smtplib should support SSL contexts

2011-04-10 Thread Thomas Scrace
Thomas Scrace t...@scrace.org added the comment: Is anybody working on this issue? If not, I think it looks like it might be a nice one for me to tackle. I'll go ahead unless there are any objections. -- nosy: +thomas.scrace ___ Python tracker

[issue11816] Add functions to return disassembly as string

2011-04-10 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: I really like the idea of adding some lower level infrastructure to dis to make it generator based, making the disassembly more amenable to programmatic manipulation. Consider if, for each line disassemble() currently prints, we had an

[issue11816] Refactor the dis module to provide better building blocks for bytecode analysis

2011-04-10 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Changed issue title to cover ideas like get_opinfo(). -- title: Add functions to return disassembly as string - Refactor the dis module to provide better building blocks for bytecode analysis ___

[issue11816] Refactor the dis module to provide better building blocks for bytecode analysis

2011-04-10 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Oops, I forgot to edit my comment to match the OpInfo definition I used in the proof-of-concept: OpInfo = collections.namedtuple(OpInfo, opindex opcode opname oparg details starts_line is_jump_target) --

[issue11816] Refactor the dis module to provide better building blocks for bytecode analysis

2011-04-10 Thread Eugene Toder
Eugene Toder elto...@gmail.com added the comment: So in the near term, dis-based tests should continue to copy/paste sys.stdout redirection code? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11816

[issue11817] berkeley db 5.1 support

2011-04-10 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Python 2.7 is closed for new features, I afraid. And Berkeley DB is not included in the Python3 stdlib. It has reverted to being maintained entirely as a third party package. -- nosy: +r.david.murray resolution: - rejected

[issue11802] filecmp.cmp needs a documented way to clear cache

2011-04-10 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: Georg? Benjamin? Do you think this fix should be backported? -- nosy: +benjamin.peterson, georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11802

[issue11816] Refactor the dis module to provide better building blocks for bytecode analysis

2011-04-10 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: If we decide our long term goal is the use of the opcode stream for programmatic access, then yes. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11816

[issue11807] Documentation of add_subparsers lacks information about parametres

2011-04-10 Thread Filip Gruszczyński
Filip Gruszczyński grusz...@gmail.com added the comment: Here is a patch for this. I am not much of technical writer, so please be patient with me. I tried to provide all the information about parameters, that can be inferred from the code and experimenting. I have left out one parameter -

[issue11610] Improving property to accept abstract methods

2011-04-10 Thread Darren Dale
Darren Dale dsdal...@gmail.com added the comment: So, are there objections to this patch, or can it be merged? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11610 ___

[issue11772] email header wrapping edge case failure

2011-04-10 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- resolution: - duplicate stage: needs patch - committed/rejected status: open - closed superseder: - email.header.Header doesn't fold headers correctly ___ Python tracker rep...@bugs.python.org

[issue8809] smtplib should support SSL contexts

2011-04-10 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Is anybody working on this issue? If not, I think it looks like it might be a nice one for me to tackle. I'll go ahead unless there are any objections. Nobody is working on it AFAIK. Feel free to give it a try :) --

[issue11650] Faulty RESTART/EINTR handling in Parser/myreadline.c

2011-04-10 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: On Sat, Apr 09, 2011 at 02:18:01PM +, STINNER Victor wrote: I noticied a strange behaviour: Still fun, but this one could even make it except for termios flags, multibyte and the real problem, signal handling. Hm. --

[issue11700] mailbox.py proxy updates

2011-04-10 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: I reviewed this. And moved a _PartialFile-only _read() case to _PartialFile where it belongs (*this* _ProxyFile will never be extended to stand alone so i shouldn't have moved that the other direction at all). -- Added

[issue11492] email.header.Header doesn't fold headers correctly

2011-04-10 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: This was quite the adventure. The more I worked on fixing the tests, the more if/else cases the existing splitting algorithm grew. When I reached the point where fixing one test broke two others, I thought maybe it was time to try a

[issue11822] Improve disassembly to show embedded code objects

2011-04-10 Thread Raymond Hettinger
New submission from Raymond Hettinger raymond.hettin...@gmail.com: Now that list comprehensions mask run their internals in code objects (the same way that genexps do), it is getting harder to use dis() to see what code is generated. For example, the pow() call isn't shown in the following

[issue11816] Refactor the dis module to provide better building blocks for bytecode analysis

2011-04-10 Thread Alex Gaynor
Alex Gaynor alex.gay...@gmail.com added the comment: FWIW in PyPy we have https://bitbucket.org/pypy/pypy/src/default/lib_pypy/disassembler.py which we use for some of our tools. -- nosy: +alex ___ Python tracker rep...@bugs.python.org

[issue11492] email.header.Header doesn't fold headers correctly

2011-04-10 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Note that this fix solves issue 11772, so I've closed that one as a duplicate. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11492

[issue1602] windows console doesn't print or input Unicode

2011-04-10 Thread pyloz
Changes by pyloz merlinschindlb...@googlemail.com: -- nosy: +smerlin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1602 ___ ___ Python-bugs-list

[issue11823] disassembly needs to argument counts on calls with keyword args

2011-04-10 Thread Raymond Hettinger
New submission from Raymond Hettinger raymond.hettin...@gmail.com: The argument to CALL_FUNCTION is overloaded to show both the number of positional arguments and keyword arguments (shifted by 8-bits): dis(foo(10, opt=True)) 1 0 LOAD_NAME0 (foo) 3

[issue11823] disassembly needs to argument counts on calls with keyword args

2011-04-10 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- keywords: +easy stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11823 ___ ___

[issue9325] Add an option to pdb/trace/profile to run library module as a script

2011-04-10 Thread Greg Słodkowicz
Greg Słodkowicz jerg...@gmail.com added the comment: Following Nick's advice, I extended runpy.run_module to accept an extra parameter to be used as replacement __main__ namespace. Having this, I can make this temporary __main__ accessible in main() in modules like trace/profile/pdb even if

[issue11823] disassembly needs to argument counts on calls with keyword args

2011-04-10 Thread Daniel Urban
Changes by Daniel Urban urban.dani...@gmail.com: -- nosy: +durban ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11823 ___ ___ Python-bugs-list

[issue8428] buildbot: test_multiprocessing timeout (test_notify_all? test_pool_worker_lifetime?)

2011-04-10 Thread Charles-Francois Natali
Charles-Francois Natali neolo...@free.fr added the comment: Attached is a patch fixing this race, and a similar one in Pool's terminate. -- keywords: +patch Added file: http://bugs.python.org/file21608/pool_shutdown_race.diff ___ Python tracker

[issue8428] buildbot: test_multiprocessing timeout (test_notify_all? test_pool_worker_lifetime?)

2011-04-10 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Nice! See also issue11814. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8428 ___

[issue8428] buildbot: test_multiprocessing timeout (test_notify_all? test_pool_worker_lifetime?)

2011-04-10 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset d5e43afeede6 by Antoine Pitrou in branch '3.2': Issue #8428: Fix a race condition in multiprocessing.Pool when terminating http://hg.python.org/cpython/rev/d5e43afeede6 -- nosy: +python-dev

[issue11814] possible typo in multiprocessing.Pool._terminate

2011-04-10 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset c046b7e1087b by Antoine Pitrou in branch '3.2': Issue #11814: Fix likely typo in multiprocessing.Pool._terminate(). http://hg.python.org/cpython/rev/c046b7e1087b New changeset 76a3fc180ce0 by Antoine Pitrou in branch 'default':

[issue8428] buildbot: test_multiprocessing timeout (test_notify_all? test_pool_worker_lifetime?)

2011-04-10 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset dfc61dc14f59 by Antoine Pitrou in branch '2.7': Issue #8428: Fix a race condition in multiprocessing.Pool when terminating http://hg.python.org/cpython/rev/dfc61dc14f59 -- ___ Python

[issue8428] buildbot: test_multiprocessing timeout (test_notify_all? test_pool_worker_lifetime?)

2011-04-10 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Should be fixed now, thank you Charles-François. As for the TestCondition failure, there's a separate issue11790 open. (Victor, please don't file many bugs in a single issue!) -- resolution: - fixed stage: - committed/rejected status:

[issue11814] possible typo in multiprocessing.Pool._terminate

2011-04-10 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Fixed. The _terminate() issue has been fixed separately in issue8428. -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue11816] Refactor the dis module to provide better building blocks for bytecode analysis

2011-04-10 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: - rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11816 ___ ___

[issue11747] unified_diff function product incorrect range information

2011-04-10 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 36648097fcd4 by Raymond Hettinger in branch '3.2': Cleanup and modernize code prior to working on Issue 11747. http://hg.python.org/cpython/rev/36648097fcd4 New changeset 58a3bfcc70f7 by Raymond Hettinger in branch 'default':

[issue4877] xml.parsers.expat ParseFile() causes segmentation fault when passed a closed file object

2011-04-10 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 28705a7987c5 by Ezio Melotti in branch '2.7': #4877: Fix a segfault in xml.parsers.expat while attempting to parse a closed file. http://hg.python.org/cpython/rev/28705a7987c5 -- nosy: +python-dev

[issue4877] xml.parsers.expat ParseFile() causes segmentation fault when passed a closed file object

2011-04-10 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: This is now fixed in 2.7, I also removed the unnecessary call to PyErr_Clear in ba699cf9bdbb (2.7), 6b4467e71872 (3.2), and 2d1d9759d3a4 (3.3). -- assignee: - ezio.melotti resolution: - fixed stage: commit review -

[issue11820] idle3 shell os.system swallows shell command output

2011-04-10 Thread kent
kent fuzzba...@comcast.net added the comment: When starting idle from a terminal the output from the command is sent to the terminal. When starting idle from the desktop, the output disappears except for the exit status. Same behavior with 2.65 --

  1   2   >