Plumber, an alternative to mixin-based subclassing

2011-02-05 Thread Florian Friesdorf
An alternative to mixin-based subclassing: http://pypi.python.org/pypi/plumber -- Florian Friesdorf f...@chaoflow.net GPG FPR: 7A13 5EEE 1421 9FC2 108D BAAF 38F8 99A3 0C45 F083 Jabber/XMPP: f...@chaoflow.net IRC: chaoflow on freenode,ircnet,blafasel,OFTC --

ANN: circuits-1.3.3 (Asynchronous Component-based Application Framework)

2011-02-05 Thread James Mills
Hi, I'm pleased to announce the release of circuits-1.3.3 What is circuits ? == circuits is a Lightweight Event driven and Asynchronous Application Framework for the Python Programming Language with a strong Component Architecture. circuits also includes a lightweight, high performance

LAST CHANCE: OSCON Call for Proposals (deadline 2/7)

2011-02-05 Thread Aahz
DEADLINE Monday February 7 OSCON (O'Reilly Open Source Convention), the premier Open Source gathering, will be held in Portland, OR July 25-29. We're looking for people to deliver tutorials and shorter presentations. http://www.oscon.com/oscon2011 http://www.oscon.com/oscon2011/public/cfp/144

Re: python crash problem

2011-02-05 Thread John Machin
On Feb 3, 8:21 am, Terry Reedy tjre...@udel.edu wrote: On 2/2/2011 2:19 PM, Yelena wrote: . When having a problem with a 3rd party module, not part of the stdlib, you should give a source.    http://sourceforge.net/projects/dbfpy/ This appears to be a compiled extension. Nearly always, when

Re: IDLE: A cornicopia of mediocrity and obfuscation.

2011-02-05 Thread flebber
On Feb 5, 10:24 am, Stephen Hansen me+list/pyt...@ixokai.io wrote: On 2/4/11 3:01 PM, rantingrick wrote: Put your money where your mouth is. ditto! I thought as much. My money is where my mouth is: but that is not IDLE, as I have no use for it and no interest in it at all. The status

psd estimation no matplotlib

2011-02-05 Thread Jack Yu
Hi all, Is there a function psd() for estimating power spectral density that is not dependent on the importing of matplotlib or pylab, like there is numpy.linalg.svd() to pylab.svd(). I would like to run some codes which estimate psd on the computing nodes on a cluster, but the system

Unable to register com component built with python2.7

2011-02-05 Thread sniffer
Hi all, I have built a com component using python2.7 on win 7 but the component refuses to register ,every time i try to register it says the specified module could not be found unable to load python.dll ,i also tried building the same com server with python2.7 again on a win- xp system but to no

Re: itertools.groupby usage to get structured data

2011-02-05 Thread Slafs
On 5 Lut, 05:58, Paul Rubin no.em...@nospam.invalid wrote: Slafs slaf...@gmail.com writes: What i want to have is: a big nested dictionary with 'g1' values as 1st level keys and a dictionary of aggregates and subgroups in it I was looking for a solution that would let me do that kind

Re: Use the Source Luke

2011-02-05 Thread Daniel Fetchinson
For the Python world though, there does seem to have been a change. A decade ago in this newsgroup, there were frequent references to standard library source. I don't see that much anymore. Popularity has a price. A decade ago only hackers were exposed to python who are happy to chat about

Re: Create classes at runtnime

2011-02-05 Thread Marc Aymerich
Thank you all for the answers! I'll try to give you the context in which I need to generate classes like this. I'm developing a reusable control panel for an ISP. I have several modules (VirtualUser, SystemUser, VPS, VirtualHost, ...) and they all share the fact that you can have limits on

Re: Create classes at runtnime

2011-02-05 Thread Peter Otten
Carl Banks wrote: On Feb 4, 1:32 pm, Peter Otten __pete...@web.de wrote: Marc Aymerich wrote: I need to create a pretty complex class at runtime. something like this one: I have a hunch that you've never heard the famous Kernighan quote: Everyone knows that debugging is twice as hard as

Re: itertools.groupby usage to get structured data

2011-02-05 Thread Peter Otten
Slafs wrote: Hi there! I'm having trouble to wrap my brain around this kind of problem: What I have : 1) list of dicts 2) list of keys that i would like to be my grouping arguments of elements from 1) 3) list of keys that i would like do aggregation on the elements of 1) with

Init a dictionary with a empty lists

2011-02-05 Thread Lisa Fritz Barry Griffin
Hi there, How can I do this in a one liner: maxCountPerPhraseWordLength = {} for i in range(1,MAX_PHRASES_LENGTH+1): maxCountPerPhraseWordLength[i] = 0 Thanks! -- http://mail.python.org/mailman/listinfo/python-list

Re: Init a dictionary with a empty lists

2011-02-05 Thread Shashwat Anand
On Sat, Feb 5, 2011 at 6:38 PM, Lisa Fritz Barry Griffin lisaochba...@gmail.com wrote: Hi there, How can I do this in a one liner: maxCountPerPhraseWordLength = {} for i in range(1,MAX_PHRASES_LENGTH+1): maxCountPerPhraseWordLength[i] = 0

Re: Init a dictionary with a empty lists

2011-02-05 Thread Daniel Urban
On Sat, Feb 5, 2011 at 14:08, Lisa Fritz Barry Griffin lisaochba...@gmail.com wrote: Hi there, How can I do this in a one liner:        maxCountPerPhraseWordLength = {}        for i in range(1,MAX_PHRASES_LENGTH+1):            maxCountPerPhraseWordLength[i] = 0 maxCountPerPhraseWordLength

Re: Init a dictionary with a empty lists

2011-02-05 Thread Peter Otten
Lisa Fritz Barry Griffin wrote: How can I do this in a one liner: maxCountPerPhraseWordLength = {} for i in range(1,MAX_PHRASES_LENGTH+1): maxCountPerPhraseWordLength[i] = 0 You can init a dictionary with zeroes with d = dict.fromkeys(range(1,

Re: Init a dictionary with a empty lists

2011-02-05 Thread Vlastimil Brom
2011/2/5 Lisa Fritz Barry Griffin lisaochba...@gmail.com: Hi there, How can I do this in a one liner:        maxCountPerPhraseWordLength = {}        for i in range(1,MAX_PHRASES_LENGTH+1):            maxCountPerPhraseWordLength[i] = 0 Thanks! --

Re: code structure advise for a model

2011-02-05 Thread Martin De Kauwe
On Feb 4, 8:41 pm, Marco Nawijn naw...@gmail.com wrote: On Feb 4, 3:43 am, Martin De Kauwe mdeka...@gmail.com wrote: Hi, I am translating some c++ code to python and just wanted to ask some advise on structure. The original has everything declared globally and nothing passed via

Re: Init a dictionary with a empty lists

2011-02-05 Thread Steven D'Aprano
On Sat, 05 Feb 2011 14:38:29 +0100, Daniel Urban wrote: On Sat, Feb 5, 2011 at 14:08, Lisa Fritz Barry Griffin lisaochba...@gmail.com wrote: Hi there, How can I do this in a one liner:        maxCountPerPhraseWordLength = {}        for i in range(1,MAX_PHRASES_LENGTH+1):            

Guy Steele on Parallel Programing

2011-02-05 Thread Xah Lee
might be interesting. 〈Guy Steele on Parallel Programing〉 http://xahlee.org/comp/Guy_Steele_parallel_computing.html -- Guy Steele on Parallel Programing Xah Lee, 2011-02-05 A fascinating talk by the well respected computer scientist Guy Steele.

Re: Init a dictionary with a empty lists

2011-02-05 Thread Daniel Urban
On Sat, Feb 5, 2011 at 15:38, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Sat, 05 Feb 2011 14:38:29 +0100, Daniel Urban wrote: On Sat, Feb 5, 2011 at 14:08, Lisa Fritz Barry Griffin lisaochba...@gmail.com wrote: Hi there, How can I do this in a one liner:        

Re: Create classes at runtnime

2011-02-05 Thread Marc Aymerich
On Feb 5, 1:06 pm, Marc Aymerich glicer...@gmail.com wrote: Thank you all for the answers! I'll try to give you the context in which I need to generate classes like this. I'm developing a reusable control panel for an ISP. I have several modules (VirtualUser, SystemUser, VPS, VirtualHost,

Re: IDLE: A cornicopia of mediocrity and obfuscation.

2011-02-05 Thread MRAB
On 05/02/2011 09:44, flebber wrote: On Feb 5, 10:24 am, Stephen Hansenme+list/pyt...@ixokai.io wrote: On 2/4/11 3:01 PM, rantingrick wrote: Put your money where your mouth is. ditto! I thought as much. My money is where my mouth is: but that is not IDLE, as I have no use for it and no

Re: IDLE: A cornicopia of mediocrity and obfuscation.

2011-02-05 Thread Robert
On 2011-02-04 13:34:42 -0500, rantingrick said: I don't care who *that* person is as long as *they* are willing to push IDLE forward. I would be honored to accept the reigns and lead OR follow someone else's lead. But we need to receive the old idlefork or have them delete the old idle fork as

Re: Create classes at runtnime

2011-02-05 Thread Miki Tebeka
I need to create a pretty complex class at runtime. You can take the approach that namedtuple does and create a python code for the class as string and then exec it. See http://svn.python.org/view/python/trunk/Lib/collections.py?view=markup HTH, -- Miki http://pythonwise.blogspot.com --

Re: Unable to register com component built with python2.7

2011-02-05 Thread Stephen Hansen
On 2/5/11 2:33 AM, sniffer wrote: Hi all, I have built a com component using python2.7 on win 7 but the component refuses to register ,every time i try to register it says the specified module could not be found unable to load python.dll ,i also tried building the same com server with

Re: Guy Steele on Parallel Programing

2011-02-05 Thread Rui Maciel
Xah Lee wrote: might be interesting. 〈Guy Steele on Parallel Programing〉 http://xahlee.org/comp/Guy_Steele_parallel_computing.html Very interesting. Thanks for the link. Rui Maciel -- http://mail.python.org/mailman/listinfo/python-list

sending through non-default gateway

2011-02-05 Thread Nikola Skoric
Is there a way to create a TCP connection using a gateway of my choice? I have a regular user account on a WinXP machine. It has a DNS server and default gateway configured, and that DNS server and default gateway don't see the rest of the Internet, just the local network. But, I know an IP

Re: sending through non-default gateway

2011-02-05 Thread Dan Stromberg
IIRC, this is an instance of what's called source routing, and was largely shut off after network admins realized it was a security issue. Of course, if you have root/administrator permission, you could probably do it. But if you have that, you could probably just fix the routing table. On Sat,

Oktest 0.7.0 released - a new-style testing library

2011-02-05 Thread Makoto Kuwata
I released Oktest 0.7.0. http://pypi.python.org/pypi/Oktest/ http://packages.python.org/Oktest/ Oktest is a new-style testing library for Python. :: from oktest import ok ok (x) 0 # same as assert_(x 0) ok (s) == 'foo'# same as assertEqual(s, 'foo')

Re: psd estimation no matplotlib

2011-02-05 Thread Corey Richardson
On 02/05/2011 05:19 AM, Jack Yu wrote: Hi all, Is there a function psd() for estimating power spectral density that is not dependent on the importing of matplotlib or pylab [snip] There is not built into Python, but you could rip the function right out of pylab's or matplotlib's source and

Fully functioning email client in Python

2011-02-05 Thread iaoua iaoua
Hi all, I'm a complete newbie to this newsgroup and to Python (pretty much) so please be nice and give me a warm welcome. First of all please allow me to properly introduce myself. My name is James Christian and I am a PhD student at the University of Essex in England doing research on Machine

Re: Unable to register com component built with python2.7

2011-02-05 Thread sniffer
Stephen thanks for your reply but my python installation directory is in my path any other pointers -- http://mail.python.org/mailman/listinfo/python-list

P2PU Python Challenges

2011-02-05 Thread Corey Richardson
In my journeys across the face of the Internet, I found this: http://p2pu.org/general/python-challenges Not sure what it's really going to be, but any new programmers/people looking for something to do might be interested. I'm not quite sure how a class can be organised around a web riddle, but

Re: sending through non-default gateway

2011-02-05 Thread Nikola Skoric
Dana Sat, 5 Feb 2011 14:13:11 -0800, Dan Stromberg drsali...@gmail.com kaze: IIRC, this is an instance of what's called source routing, and was largely shut off after network admins realized it was a security issue. Of course, if you have root/administrator permission, you could probably do

[issue11109] socketserver.ForkingMixIn leaves zombies

2011-02-05 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +gregory.p.smith stage: - patch review versions: +Python 2.7, Python 3.2, Python 3.3 -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11109

[issue11119] Passing a socket to a process (multiprocessing module)

2011-02-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Well, sockets cannot be pickled on any platform: sock = socket.create_connection((www.python.org, 80)) __main__:1: ResourceWarning: unclosed socket.socket object, fd=3, family=2, type=1, proto=0 s = pickle.loads(pickle.dumps(sock))

[issue11127] sockets should not be pickleable

2011-02-05 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: Like already done for file objects, sockets should refuse pickling by raising a TypeError. -- components: Library (Lib) messages: 127976 nosy: pitrou priority: normal severity: normal stage: needs patch status: open title: sockets

[issue11119] Passing a socket to a process (multiprocessing module)

2011-02-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Opened issue11127 for raising a TypeError when trying to pickle any socket. -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9

[issue11124] test_posix failure on the Leopard buildbot

2011-02-05 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - posix.getgroups() failure on Mac OS X ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11124

[issue1227748] subprocess: inheritance of std descriptors inconsistent

2011-02-05 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- assignee: astrand - docs@python nosy: +docs@python stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1227748 ___

[issue11076] Iterable argparse Namespace

2011-02-05 Thread Virgil Dupras
Virgil Dupras hs...@hardcoded.net added the comment: I didn't know about vars() (well, I knew it existed, but never was quite sure what it did). Given that I'm not a Python newbie, I'm guessing I'm not alone in this situation. Maybe that instead of making the Namespace iterable, we should

[issue11077] Tkinter is not thread safe

2011-02-05 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: My claim is that Tkinter is thread-safe as it stands. A lot of thought has been put into making Tkinter thread-safe, so if there is any claim to the contrary, we would need more details: what exact Python version is being used, what exact

[issue11103] Python 3.2 installer doesn't register file extensions on Windows 7

2011-02-05 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Terry, if you are installing Python for all users, but have the Open rebound just for yourself, it is unreasonable to expect that the Python installation procedure changes it. Per-user settings override machine settings; this is by

[issue11077] Tkinter is not thread safe

2011-02-05 Thread Scott M
Scott M scott.m...@comcast.net added the comment: I'll look into making the crash easier to reproduce this coming week. Is Tkinter's thread safety new? Because after I started getting crashes, I did my due diligence in Google and found a number of people writing about how it was necessary to

[issue11077] Tkinter is not thread safe

2011-02-05 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Is Tkinter's thread safety new? It's supported on Unix since 1.5.1, and on Windows since 2.3. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11077

[issue11116] mailbox and email errors

2011-02-05 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: Well, here is the long-asked-for 'fp_mailbox.py' test thing. Note: it generates a 'test.mbox' in CWD! print(USAGE: fp_mailbox.py 0|1|2, 0 = use raw UTF-8 string, 1 = use UTF-8 string,

[issue11046] setup.py/configure [darwin]

2011-02-05 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: ronaldoussoren: thanks for the MACOSX_DEPLOYMENT_TARGET=10.5 hint!! I did Py3K yesterday, and it was a matter of 'configure --prefix=x YZ make make install' as if it were a real UNIX! I *really* think there should be a

[issue11077] Tkinter is not thread safe

2011-02-05 Thread Scott M
Scott M scott.m...@comcast.net added the comment: The new version runs 40 parabolas, then quits. I usually have to run this version 20 times or so to get the crash, so be patient. In general if it's going to crash it does so in the first 6 or so parabolas. Caveat: creates up to 40 threads, so

[issue11128] decimal.py: to_integral() corner cases

2011-02-05 Thread Stefan Krah
New submission from Stefan Krah stefan-use...@bytereef.org: Hi, to_integral() should behave like quantize() for negative exponents: Otherwise (the operand has a negative exponent) the result is the same as using the quantize operation using the given operand as the left-hand-operand, 1E+0 as

[issue11117] Implementing Async IO

2011-02-05 Thread David Beazley
David Beazley d...@dabeaz.com added the comment: Anyone contemplating the use of aio_ functions should first go read The Story of Mel. http://www.catb.org/jargon/html/story-of-mel.html -- nosy: +dabeaz ___ Python tracker rep...@bugs.python.org

[issue11077] Tkinter is not thread safe

2011-02-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I can't reproduce either, but the latest traceback posted in msg127985 seems to hint at a parameter marshalling problem. create is one of the parameters to the called Tk function, but it seemed to be mistaken for another. Since it's arguably

[issue11063] uuid.py module import has heavy side effects

2011-02-05 Thread Vetoshkin Nikita
Vetoshkin Nikita nikita.vetosh...@gmail.com added the comment: I think launching external tools like ifconfig and ipconfig can be avoided pretty easily. There are many recipes around the net how to use native API's. About ctypes' horrible logic during find_library call - don't know yet.

[issue11117] Implementing Async IO

2011-02-05 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: Thanks, David, for the link. The story is really touching :-). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7 ___

[issue11077] Tkinter is not thread safe

2011-02-05 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Tk produces bad screen distance in Tk_GetScreenMM (convert string to screen millimeters) and TkGetDoublePixels (convert string to number of pixels) when strtod fails on the string being passed. It also produces the error in SetPixelAny

[issue11129] logging: allow multiple entries in qualname config

2011-02-05 Thread anatoly techtonik
New submission from anatoly techtonik techto...@gmail.com: When configuration is specified in external file, qualname attribute should allow several values. Maybe comma separated. -- messages: 127992 nosy: techtonik priority: normal severity: normal status: open title: logging: allow

[issue11077] Tkinter is not thread safe

2011-02-05 Thread Scott M
Scott M scott.m...@comcast.net added the comment: If it helps, over the many iterations of this test code, there have been two kinds of issues: 1. pythonw.exe crashes with the Windows variant of a SEGV. No traceback, just a crash. These are rare. 2. Evidence of confusion over which string

[issue11117] Implementing Async IO

2011-02-05 Thread David Beazley
David Beazley d...@dabeaz.com added the comment: Glad you liked it! I think there is a bit of a cautionary tale in there though. With aio_, there is the promise of better performance, but you're also going to need a *LOT* of advance planning and thought to avoid creating a tangled coding

[issue11077] Tkinter is not thread safe

2011-02-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The UpdateStringProc should not be invoked for type cmdName message (as quoted above in the traceback) apparently can mean that there's a mismanagement of Tcl reference counts. From

[issue11077] Tkinter is not thread safe

2011-02-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: As a side note, if Tkinter is intended to be thread safe, the documentation should say so. Clearly, and in the first paragraph. I'm no Tkinter specialist but, judging by its source code, Tkinter (the Python module) *is* intended to be

[issue5285] hmac throws TypeErrors

2011-02-05 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: This damn bug ruined my day. MoinMoin couldn't reset password on many outdated wikies 1.8.2 (including Python's one probably), because of it. http://moinmo.in/MoinMoinBugs/1.8_ResetPasswordError -- nosy: +techtonik

[issue11063] uuid.py module import has heavy side effects

2011-02-05 Thread Kenny Meyer
Kenny Meyer knny.m...@gmail.com added the comment: With the attached patch the heavy work will be done on request, when calling uuid1() or uuid4() not on import. I am working off from the py3k svn branch. Is it necessary to submit a separate patch for py2 branch? -- keywords: +patch

[issue11130] SocketServer: server_address is... a socket

2011-02-05 Thread ProgVal
New submission from ProgVal prog...@gmail.com: Hello, I have issues with a script I'm programming (TypeError at every client connection), so I edited BaseServer's __init__(): def __init__(self, server_address, RequestHandlerClass): Constructor. May be extended, do not override.

[issue11130] SocketServer: server_address is... a socket

2011-02-05 Thread ProgVal
ProgVal prog...@gmail.com added the comment: The problem happens on Python 2.7 too. Additionaly, here is the traceback, if I don't edit the library: Exception happened during processing of request from ('127.0.0.1', 50378) Traceback (most recent call last): File

[issue11063] uuid.py module import has heavy side effects

2011-02-05 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: Kenny, I don't see a problem with uuid is *imported*, it just creates a couple of STANDARD UUID class objects for use later. And this seems to just set the number and validates it. I don't see any subprocess calls performed. Perhaps you

[issue11130] SocketServer: server_address is... a socket

2011-02-05 Thread ProgVal
ProgVal prog...@gmail.com added the comment: This seems odd to me: this line: self.RequestHandlerClass(request, client_address, self) calls TCPServer's constructor: def __init__(self, server_address, RequestHandlerClass, bind_and_activate=True): --

[issue11130] SocketServer: server_address is... a socket

2011-02-05 Thread ProgVal
ProgVal prog...@gmail.com added the comment: Oh, excuse me, it's because of my code! class MyRequestHandler(SocketServer.TCPServer): -- resolution: - invalid ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11130

[issue11130] SocketServer: server_address is... a socket

2011-02-05 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: Unable to determine the bug here. If you have questions with using python, please ask python-l...@python.org -- nosy: +orsenthil stage: - committed/rejected status: open - closed type: - behavior

[issue11122] bdist_rpm fails

2011-02-05 Thread James
James purplei...@gmail.com added the comment: I'll write a docs and script patch for this next week... I'm happy to do the work, Thanks for the comments. James -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11122

[issue9364] some problems with the documentation of pydoc

2011-02-05 Thread yeswanth
yeswanth swamiyeswa...@yahoo.com added the comment: Suggestions are good . One thing I came across when going through the doc is that when you run help(help) after importing help from pydoc , i noticed that the first line of the help utility is Welcome to Python 3.2! This is the online

[issue11131] decimal.py: plus/minus with ROUND_FLOOR

2011-02-05 Thread Stefan Krah
New submission from Stefan Krah stefan-use...@bytereef.org: Another exciting corner case in plus/minus: The operations are evaluated using the same rules as add and subtract; the operations plus(a) and minus(a) (where a and b refer to any numbers) are calculated as the operations add(’0’, a)

[issue11063] uuid.py module import has heavy side effects

2011-02-05 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: If you do 'python -c import uuid under strace, _posixsubprocess is definitely loaded, and a pipe2 call is made. Take a look at the code starting at (py3k trunk) line 418 (try:). That's where the weird stuff happens, which is what the

[issue9364] some problems with the documentation of pydoc

2011-02-05 Thread yeswanth
yeswanth swamiyeswa...@yahoo.com added the comment: Patch for the change i have suggested in pydoc . @Eric I will try to implement the patch suggestions you have made. I still have to figure out how to make crosslinks -- keywords: +patch Added file:

[issue11063] uuid.py module import has heavy side effects

2011-02-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Thanks for posting a patch! I have two comments: - Have you run test_uuid? When I run it, it seems to go into an infinite loop somewhere and I need to kill the process. - uuid should work even when ctypes is not available, so you can't just put

[issue11127] sockets should not be pickleable

2011-02-05 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11127 ___ ___

[issue11109] socketserver.ForkingMixIn leaves zombies

2011-02-05 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11109 ___ ___

[issue11116] mailbox and email errors

2011-02-05 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Thanks, much easier to communicate when runnable code is involved :) Now I can see what you mean about it writing the From. I will figure out why and fix it so that the From line is not written. The traceback from email.generator is

[issue11063] uuid.py module import has heavy side effects

2011-02-05 Thread Vetoshkin Nikita
Vetoshkin Nikita nikita.vetosh...@gmail.com added the comment: uuid should work even when ctypes is not available A bit of offtopic: why can't we assume that ctypes is available? -- ___ Python tracker rep...@bugs.python.org

[issue11063] uuid.py module import has heavy side effects

2011-02-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: A bit of offtopic: why can't we assume that ctypes is available? Because ctypes (or, actually, the libffi it relies on) needs specific low-level code for each platform it runs on, and not all platforms have such code. Another reason is that

[issue9334] argparse does not accept options taking arguments beginning with dash (regression from optparse)

2011-02-05 Thread Gerard van Helden
Gerard van Helden dremel...@gmail.com added the comment: The reporter imho is 100% right. Simply because of the fact that in the current situation, there is no way to supply an argument starting with a dash (not even for instance a filename). That is, of course, total nonsense to be dictated

[issue11063] uuid.py module import has heavy side effects

2011-02-05 Thread Kenny Meyer
Kenny Meyer knny.m...@gmail.com added the comment: Thanks for pointing that out! I guess that is the reason you did the import in a try block. -- Added file: http://bugs.python.org/file20687/unnamed ___ Python tracker rep...@bugs.python.org

[issue11063] uuid.py module import has heavy side effects

2011-02-05 Thread Vetoshkin Nikita
Vetoshkin Nikita nikita.vetosh...@gmail.com added the comment: Maybe I understood and ctypes ImportError simply must be handled and fallbacked to something else. But there are only 3 ways of getting MAC address: 1. using popen 2. using ctypes and native calls 3. using C API and performing

[issue11063] uuid.py module import has heavy side effects

2011-02-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Maybe I understood and ctypes ImportError simply must be handled and fallbacked to something else. Indeed. But there are only 3 ways of getting MAC address: 1. using popen 2. using ctypes and native calls 3. using C API and performing

[issue11063] uuid.py module import has heavy side effects

2011-02-05 Thread Keith Dart
Keith Dart ke...@dartworks.biz added the comment: It's also possible using existing wrapped os system calls. One exaple is here: http://code.google.com/p/pycopia/source/browse/trunk/aid/pycopia/ifconfig.py Although that one doesn't current support MAC addresses, but it could. The socket

[issue11063] uuid.py module import has heavy side effects

2011-02-05 Thread Vetoshkin Nikita
Vetoshkin Nikita nikita.vetosh...@gmail.com added the comment: It's also possible using existing wrapped os system calls. That's right, on linux we can use ioctls but windows would require win api calls like this one:

[issue11063] uuid.py module import has heavy side effects

2011-02-05 Thread Kenny Meyer
Changes by Kenny Meyer knny.m...@gmail.com: Removed file: http://bugs.python.org/file20687/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11063 ___

[issue11063] uuid.py module import has heavy side effects

2011-02-05 Thread Keith Dart
Keith Dart ke...@dartworks.biz added the comment: I'm thinking Python could use a general purpose ifconfig/mac-layer module that uuid.py could then just use. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11063

[issue11063] uuid.py module import has heavy side effects

2011-02-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I'm thinking Python could use a general purpose ifconfig/mac-layer module that uuid.py could then just use. Perhaps, but that's really out of scope for this issue. Feel free to open another issue. --

[issue11121] libpython3.so support with --enable-shared

2011-02-05 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Thanks for the review. Committed as r88350. -- resolution: - accepted status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11121

[issue11067] Py_LIMITED_API breaks most PySomething_Check() functions

2011-02-05 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Thanks for the review. Committed as r88351. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11067 ___

[issue10882] Add os.sendfile()

2011-02-05 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Patch in attachment provides a complete test suite. It also fixes a problem which occurred on BSD platforms when using non-blocking sockets: EAGAIN/EBUSY are now raised if the transmitted data == 0 bytes reflecting socket's send()

[issue9334] argparse does not accept options taking arguments beginning with dash (regression from optparse)

2011-02-05 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: While I also dislike the existing behavior, note that you can get what you want by using an equal sign. import argparse parser = argparse.ArgumentParser(prog='a2x') parser.add_argument('--asciidoc-opts', ... action='store',

[issue11109] socketserver.ForkingMixIn leaves zombies

2011-02-05 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: Rather than depending on the internal details of ForkingMixIn in your BaseServer.serve_forever modification I'd prefer to see that simply call self._cleanup() Define a do-nothing _periodic_cleanup method in BaseServer. ForkingMixIn should

[issue7108] test_commands.py failing on OS X 10.5.7 due to '@' in ls output

2011-02-05 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- assignee: ronaldoussoren - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7108 ___ ___

[issue11085] expose _abcoll as collections.abc

2011-02-05 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: I'll use the packaging approach. The os.path technique predated packages and is no longer the preferred way of doing things. -- ___ Python tracker rep...@bugs.python.org

[issue7678] subprocess.Popen pipeline example code in the documentation is lacking

2011-02-05 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: documentation updated in r88352. thanks! -- assignee: docs@python - gregory.p.smith resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org

[issue1615376] subprocess doesn\'t handle SIGPIPE

2011-02-05 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: The need to call p1.stdout.close() has now been documented as part of issue7678. Python 3.2's subprocess also has restore_signals=True as its default behavior so SIGPIPE is restored by default. I do not think it is appropriate to to add the

[issue11079] Make OS X entry in Applications like that in Windows

2011-02-05 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Ping! Raymond, this needs review and release manager approval to make it into 3.2 final. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11079

[issue969718] BASECFLAGS are not passed to module build line

2011-02-05 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Éric, the Debian patch looks good to me and it solves my build problem. The only question I have is why EXTRA_CFLAGS still go behind CFLAGS and cannot be overridden via the environment. But as it is, the patch is an improvement. I'm

[issue969718] BASECFLAGS are not passed to module build line

2011-02-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Why is OPT duplicated in get_config_vars(...)? Why do OPT and BASECFLAGS environ vars override their Makefile values instead of accumulating with them? Why is EXTRA_CFLAGS not configurable through environ? --

  1   2   >