[Python-Dev] Why doesn't `functools.total_ordering` use the existing ordering methods?

2011-04-25 Thread cool-RR
Hello, Today I was trying to use `total_ordering` for the first time. I was expecting that in order to implement e.g. `x y` it would do `not x y and not x == y`, assuming that `__lt__` and `__eq__` are defined. But I see it just does `y x`, which is problematic. For example if you have a

[Python-Dev] Why does TemporaryDirectory not wait for `__enter__`?

2011-02-26 Thread cool-RR
Hello, I noticed that the `TemporaryDirectory` context manager creates the folder on `__init__` rather than on `__enter__`, resulting in complexity, bugs, and hackarounds in `__del__`. I assume there's a good reason for this decision. What is it? Thanks, Ram.

Re: [Python-Dev] Why does TemporaryDirectory not wait for `__enter__`?

2011-02-26 Thread cool-RR
On Sat, Feb 26, 2011 at 4:39 PM, Nick Coghlan ncogh...@gmail.com wrote: On Sat, Feb 26, 2011 at 10:52 PM, cool-RR cool...@cool-rr.com wrote: Hello, I noticed that the `TemporaryDirectory` context manager creates the folder on `__init__` rather than on `__enter__`, resulting in complexity

[Python-Dev] Generating canonical argument call from `getargspec` and `getcallargs` results

2010-08-24 Thread cool-RR
I was happy to see the new `getcallargs` function in the `inspect` module. But there's one thing I want to do that's related to it, and maybe this was implemented somewhere or someone can give me some pointers about it. I want to have a function that takes the results of `getargspec` and

[Python-Dev] Tkinter has many files

2009-08-06 Thread cool-RR
Hello python-dev! I'm a Python programmer, but this is the first time I'm posting on python-dev, and I am not familiar at all with how the Python implementation works -- so this post may be way off. I've recently released a Python application, PythonTurtlehttp://pythonturtle.com, which is

Re: [Python-Dev] Tkinter has many files

2009-08-06 Thread cool-RR
Why do you need to keep the whole Python distribution under version control? Isn't all you need a script to *generate* the py2exe'd output from an *installed* Python? This is the approach I take with Movable Python which does something very similar. Never mind the source control issue, it's