Re: blocked on futex

2009-03-28 Thread msoulier
On Mar 25, 10:27 am, a...@pythoncraft.com (Aahz) wrote: > That's a bit bizarre.  You're correct that if this is a Python bug, there > will be no fixes available.  However, you said earlier that this is a > patched Python, so I'm wondering whether the applied patch is broken. > Assuming I'm reading

Re: blocked on futex

2009-03-24 Thread msoulier
On Mar 20, 10:22 am, a...@pythoncraft.com (Aahz) wrote: > How many processes do you have running?  What kind of guarantee do you One process. No threads, no forking. > have that there's only one process if you think there should be only one? > What's on the other side of the socket?  If there's n

blocked on futex

2009-03-11 Thread msoulier
Hello, I'm using the Python packaged with CentOS 4.7, which is a patched 2.3.4. Yes, ancient but I can't do anything about it. The problem is that my long-running process, which talks to PostgreSQL via Django models, does a lot of reading and writing to and from the disk and writes to a Unix doma

ANN: Tftpy 0.4.3

2007-07-16 Thread msoulier
Copyright, Michael P. Soulier, 2006. About Release 0.4.3: Buxfix release for an issue with the server's detection of the end of the file during a download. About Release 0.4.2: Bugfix release for some small installation issues with earlier Python releases

ANN: tftpy 0.4.2

2007-06-04 Thread msoulier
Copyright, Michael P. Soulier, 2006. About Release 0.4.2: Bugfix release for some small installation issues with earlier Python releases. About Release 0.4.1: Bugfix release to fix the installation path, with some restructuring into a tftpy package from t

Re: Python does not play well with others

2007-02-01 Thread msoulier
On Jan 24, 2:59 pm, John Nagle <[EMAIL PROTECTED]> wrote: > Python is the only major open source project I've encountered where > there's so much hostility to bug reports. Try telling the Perl community that their debugger is broken. That didn't go well. ;-) Mike -- http://mail.python.org/m

Re: Python does not play well with others

2007-02-01 Thread msoulier
On Jan 23, 8:50 pm, John Nagle <[EMAIL PROTECTED]> wrote: >The major complaint I have about Python is that the packages > which connect it to other software components all seem to have > serious problems. As long as you don't need to talk to anything > outside the Python world, you're fine. A

Re: ANN: Tftpy 0.1 - Pure Python TFTP Library

2006-10-05 Thread msoulier
msoulier wrote: > Announcing new project, Tftpy, a Pure Python TFTP implementation. > > About Release 0.1: > == > > This is an initial release in the spirit of "release early, release > often". Currently the sample client works, supporting RF

ANN: Tftpy 0.1 - Pure Python TFTP Library

2006-10-04 Thread msoulier
Announcing new project, Tftpy, a Pure Python TFTP implementation. About Release 0.1: == This is an initial release in the spirit of "release early, release often". Currently the sample client works, supporting RFC 1350. The server is not yet implemented, and RFC 2347 and 2348 supp

Re: #!/usr/bin/python or #!/usr/bin/env python?

2006-08-09 Thread msoulier
John Salerno wrote: > I understand the difference, but I'm just curious if anyone has any > strong feelings toward using one over the other? I personally prefer being explicit over implicit, but then, that is in the Zen of Python. I work on machines with multiple interpreters installed. I find pi

exception handling in Tkinter

2006-03-31 Thread msoulier
In wxPython I install a top-level exception handler to intercept exceptions and display them in the GUI. With Tkinter, I'm trying to do the same. in __init__ sys.excepthook = self.ExceptionHandler def ExceptionHandler(self, type, value, tb): tblist = traceback.format_tb(tb)

Re: Tkinter and fixed-size frames

2006-03-29 Thread msoulier
> calling pack_propagate(0) on the parent widget should work: Indeed it does. Many thanks. Mike -- http://mail.python.org/mailman/listinfo/python-list

Tkinter and fixed-size frames

2006-03-29 Thread msoulier
Hello, A friend is having an issue with Tkinter that I'm not able to help him with, so I'm posting here. He'd like to put something inside of a frame without the frame automagickally resizing. Example: from Tkinter import * root = Tk() # with these 2 frames by themselves, they are the # size

Re: Module documentation

2006-03-27 Thread msoulier
Bruno Desthuilliers wrote: > In the python shell, typing 'help()' should get you started most > of the time. And honestly, it should work all of the time. If it doesn't, file a bug report. I can't stand it when that doesn't work. Some of us don't do all of our work with a browser handy, and a net

Re: Tried Ruby (or, "what Python *really* needs" or "perldoc!")

2006-03-15 Thread msoulier
> I have found the Python sidebar VERY helpful: Personally, I can't use local docs on my desktop as they may not be the same version of the docs for the Python distro running on the server that I'm deploying on. I usually go to python.org and use the wayback machine to look at the old docs for the

Re: Tried Ruby (or, "what Python *really* needs" or "perldoc!")

2006-03-15 Thread msoulier
> I'd love to have a unified documentation system where *all* the > documentation for *all* installed modules was available to pydoc *and* > the web browser and *all* this documentation was in .py files. Seconded! Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Tried Ruby (or, "what Python *really* needs" or "perldoc!")

2006-03-15 Thread msoulier
While epydoc is nice, I'll point out that one thing that Unix people like myself really like is to be able to check docs on a remote server that we're logged into via a terminal session. The help() function in the interpreter is great for this, although it seems that python eggs broke it. :( Pleas

Re: why no block comments in Python?

2006-03-09 Thread msoulier
> (and if you don't, you can quickly comment out regions by putting them > inside a triple-quoted string.) Although that will use up memory, as opposed to a comment. Still, it's simple enough in an editor like Vim or Emacs to highlight a region, and define a macro to add/remove #s. Any Python IDE

Re: New python.org website

2006-03-09 Thread msoulier
I don't mind the logo or the colour scheme, but I do mind the first paragraph in bolded text. What, you figure the readers can't figure out how to find "What is Python?" by themselves? Bold should be used sparingly. This is serious overuse. Otherwise, I like it. -- http://mail.python.org/mailma

Re: Type Hinting vs Type Checking and Preconditions

2006-03-08 Thread msoulier
> It's also important to note that while Guido did spend a lot of time > thinking about optional type markups (and this caused a LOT of hand > wringing in the Python community, the general consensus in the end was > that there was no real benefit from it. (I got the impression that a > lot of the p

Re: Type Hinting vs Type Checking and Preconditions

2006-03-08 Thread msoulier
> It's actually something that has been being considered for Python 3.0 > for a long time. I will never understand why we can't just leave a good language alone, and instead keep trying to make it everything for all people. If I want strong typing, I'll use Java or C++. And don't tell me to just "

Re: do design patterns still apply with Python?

2006-03-03 Thread msoulier
Personally, I find many of the design patterns apply but require modification. For example, the Factory pattern is mostly to work around the fact that it's difficult in Java and C++ to dynamically load classes. Not so in Python, especially with exec. A simple configuration file and an exec call ca

bunding options

2006-02-22 Thread msoulier
I work at home on Linux desktops, but would like to bundle a Python/wxPython application for Windows desktops, Linux desktops, etc. I am currently using py2exe to distribute a zipfile that is then usable by anyone on win32. On Linux, a source tarball is available, and the users can sync up with th

Tkinter app hanging on windows

2006-01-01 Thread msoulier
Hello, I have a very simple Tkinter application that I'm using to dispatch a mechanize crawl of a web form, when a button is clicked. Most of the time it will be idle, until the user decides to unminimize it and click that button. Unfortunately, I'm finding that after several hours of being up, w

Re: site-packages versus site-python

2005-03-05 Thread msoulier
> Well, broadly, the reason is that it allows version-specific code to be > included in libraries. I've actually found this to be a bit of a pain. I build packages against say, python2.2, and if you upgrade python to 2.3 the package breaks. The code works fine so saying it requires python >= 2.2 s