Re: Building from source -- zlib/binascii problems 2.5.2/2.6.1

2008-12-14 Thread Martin v. Löwis
right library. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: the official way of printing unicode strings

2008-12-14 Thread Martin v. Löwis
hon choses that one when printing to the terminal. When printing to the file, the application needs to make a choice. If you have no idea what encoding to use, your best choice is the one returned by locale.getpreferredencoding(). This is the encoding that the user is most likely to expect. Regards, M

Re: Python 3.0 crashes displaying Unicode at interactive prompt

2008-12-14 Thread Martin v. Löwis
to have an error handler on sys.stdout in interactive mode, which escapes characters that cannot be encoded (perhaps in a different color, if the terminal supports colors, to make it clear that it is an escape sequence) Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem Python 2.6.1 vs 2.6 & pyWin32

2008-12-15 Thread Martin v. Löwis
> I am very disappointed. Help me, please. Try installing Python 2.6.1 "for all users". Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem Python 2.6.1 vs 2.6 & pyWin32

2008-12-15 Thread Martin v. Löwis
at way since Python 1.4 or so: .pyd files built for X.Y won't work for X.(Y+1), and vice versa. It seems that you mean something specific with the word "installer"; I think you should elaborate what precisely you are referring to. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem Python 2.6.1 vs 2.6 & pyWin32

2008-12-15 Thread Martin v. Löwis
s not expected to have permissions to system32, hence the DLL is put into c:\python26. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem Python 2.6.1 vs 2.6 & pyWin32

2008-12-16 Thread Martin v. Löwis
SxS) for the installer to run; one way of installing the CRT is to install Python for all users, another is to install it "just for me", and put \python26 into PATH (so that the installer can find msvcr90.dll). Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: What does the at sign do?

2008-12-16 Thread Martin v. Löwis
a bound name - not necessarily an imported function; it could also be something being set through assignment (register = Registry()). > Yet I cannot figure where this @ sign came from. That's a function decorator; see PEP 318. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

[ANN] EuroPython 2009 – Call for Partic ipation!

2008-12-17 Thread Martin P. Hellwig
On behalf of the EuroPython 2009 organisation it is my privilege and honour to announce the 'Call for Participation' for EuroPython 2009! EuroPython is the conference for the communities around Python, including the Django, Zope and Plone communities. This year's conference will be held in Birmin

[ANN] EuroPython 2009 – Call for Partic ipation!

2008-12-17 Thread Martin P. Hellwig
On behalf of the EuroPython 2009 organisation it is my privilege and honour to announce the 'Call for Participation' for EuroPython 2009! EuroPython is the conference for the communities around Python, including the Django, Zope and Plone communities. This years conference will be held in Birming

Re: Python for amd64 and mingw-w64

2008-12-18 Thread Martin v. Löwis
ined, whereas python26.dll has. It's a mistake if libpython26.a gets included in the Win64 installer at all; this library is only provided for 32-bit systems. My copy of mingw doesn't support Win64 at all. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

[ANN] Python 2.4.6 and 2.5.3 (final)

2008-12-19 Thread Martin v. Löwis
ious major Python releases are available from the Python 2.5 page, at http://www.python.org/2.4/highlights.html http://www.python.org/2.5/highlights.html Enjoy this release, Martin Martin v. Loewis mar...@v.loewis.de Python Release Manager (on behalf of the entire python-dev tea

Re: Python for amd64 and mingw-w64

2008-12-21 Thread Martin v. Löwis
> This is the only problem on python side of things to make extensions > buildable on windows x64 (all the other problems I have encountered so > far to make numpy build with mingw-w64 are numpy's or mingw-w64). Thanks! Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: I always wonder ...

2008-12-22 Thread Martin P. Hellwig
s...@pobox.com wrote: Is there some online troll game running where the players earn points for generating responses to their posts? You just got 10 points ;-) -- mph -- http://mail.python.org/mailman/listinfo/python-list

[ANN] Python 2.5.4 (final)

2008-12-23 Thread Martin v. Löwis
2.5.4, including download links for various platforms, release notes, and known issues, please see: http://www.python.org/2.5.4 Highlights of the previous major Python releases are available from the Python 2.5 page, at http://www.python.org/2.5/highlights.html Enjoy this release, Martin Mar

Re: Python 3 and my Mac (Leopard)

2008-12-26 Thread Martin v. Löwis
in this area, you do need to deep understanding of OSX, so many Mac users are probably not qualified - and neither are most of the Python core contributors. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: strange thing after call PyObject_CallMethod

2009-01-03 Thread Martin v. Löwis
. Hardware watchpoint 2: *(ssize_t *) 168605088 Old value = 2 New value = 1 0xb7d5f406 in list_clear (a=0xa041c74) at Objects/listobject.c:550 550 Py_XDECREF(item[i]); As you can see: this specific object was stored in a list, and the list is now being cleared. H

Re: Memory debugging tool for Python/C API?

2009-01-04 Thread Martin v. Löwis
locates stuff and then releases it, then sys.getrefcount should be unchanged. If it does change, you might have a reference leak. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem building Python 2.5.2 curses module on HP/UX 11.11

2009-01-07 Thread Martin v. Löwis
> So, given that there are no actual errors during the compile, and the > warnings are probably benign, does anyone know what would cause the > resulting compiled module to NOT have the init function? Can you do nm(1) on the module? It's now called _curses_failed.sl Regards,

Re: del behavior 2

2009-01-07 Thread Martin v. Löwis
matically closed - so you don't absolutely have to close them if your program exits abnormally. Likewise, database connections will shut down properly, and windows will close just fine. What kind of thing do you have that remains open even after the process terminates? Regards, Martin -- http://ma

Re: del behavior 2

2009-01-07 Thread Martin v. Löwis
that the master socket *doesn't* get closed? I see that pexpect closes all file descriptors in the child before invoking exec. Could it be that you are starting addition child processes which inherit the master socket? Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: How to store passwords?

2009-01-07 Thread Martin v. Löwis
, given a few encrypted passwords. If you want a good algorithm, you might chose AES, with pure-Python implementations available here: http://bitconjurer.org/rijndael.py A simpler, yet supposedly secure algorithm is TEA: http://mail.python.org/pipermail/python-list/2002-August/159138.html Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: [Python-Dev] compiling python2.5 on linux under wine

2009-01-08 Thread Martin v. Löwis
> i'd just ... much rather be completely independent of proprietary > software when it comes to building free software. I guess my question is then: why do you want to use Windows in the first place? Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: ulimit stack size and python threads

2009-01-08 Thread Martin v. Löwis
> Why is Python overloading the meaning of the ulimit -s like this? Why do you think Python is overloading the meaning of that? I ensure you it isn't - it doesn't actively care what the limits are. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: ulimit stack size and python threads

2009-01-08 Thread Martin v. Löwis
> But even if that worked, I'd be worried that python is doing something > bad with the ulimit -s value under the covers. Again: it definitely isn't. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: ulimit stack size and python threads

2009-01-09 Thread Martin v. Löwis
crash. > It's quite surprising. Not to mention the poor error message. AFAICT, you didn't even *report* yet what the error message is, so I don't know whether it is poor. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: ulimit stack size and python threads

2009-01-09 Thread Martin v. Löwis
> I see. I should be blaming the default behavior of pthreads. You shouldn't blame anybody. Instead, you should sit down and study the problem in detail, until you fully understand it. Then you should start contributing fixes. Never ever should you spread blame. Regards, Martin

Re: BadZipfile "file is not a zip file"

2009-01-09 Thread Martin v. Löwis
odule doesn't implement). Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Python 2.5.3: call for patches

2008-10-07 Thread Martin v. Löwis
of particular interest. Regards, Martin [1] http://svn.python.org/projects/python/branches/release25-maint/ [2] http://bugs.python.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: [Python-Dev] Python 2.5.3: call for patches

2008-10-07 Thread Martin v. Löwis
last 2.5.x release in particular, we will strictly enforce the "no new features" policy; users interested in new features should switch to 2.6. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Python pre-release announcements

2008-10-07 Thread Martin v. Löwis
ugs.python.org. It doesn't matter to me very much; English is not my native language (i.e. RELEASED is about as good SEREALED). Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Compiler, ast and forwards/backwards compatibility

2008-10-08 Thread Martin v. Löwis
t people can still read and understand it, the _ast module might be inappropriate, as it drops all comments. For code-rewriting applications, look at lib2to3 instead. > Am I correct? Am I seriously confused? Please help! I think you are a little confused. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Compiler, ast and forwards/backwards compatibility

2008-10-08 Thread Martin v. Löwis
got disallowed, syntactically (can't test 2.3, at the moment). Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Quality control in open source development

2008-10-08 Thread Martin v. Löwis
CPython, just to make it clear that this is actually but another implementation of the Python language). Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.6, GUI not working on vista?

2008-10-09 Thread Martin v. Löwis
a different way. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.6, GUI not working on vista?

2008-10-09 Thread Martin v. Löwis
s used both by python26.dll, and all extension modules), please let me know. IOW: HELP! HELP!! HELP!!! Meanwhile: just say no to Vista. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.6, GUI not working on vista?

2008-10-09 Thread Martin v. Löwis
IDLE won't run on Vista? Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.6, GUI not working on vista?

2008-10-09 Thread Martin v. Löwis
reported the problem; your message to comp.lang.python was not "reported" (through the usual bug report channels). Somebody might have told you what those channels are; it's unfortunate that nobody did. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.6, GUI not working on vista?

2008-10-09 Thread Martin v. Löwis
e.aspx > * http://en.wikipedia.org/wiki/User_Account_Control#Requesting_elevation Unfortunately, these are irrelevant, since they talk about UAC wrt. applications. However, an MSI file is not an application, so all these settings and APIs don't apply. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: PIL on windows XP x64 (64-bit)?

2008-10-12 Thread Martin v. Löwis
to do image > manipulation on x64 using python? Are there alternatives? I would install the 32-bit Python interpreter. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Upgrading from 2.5 to 2.6

2008-10-12 Thread Martin v. Löwis
or you? No. After installing 2.6, 2.5 will still be around, with all its add-ons. If you want 2.5 to disappear, you should uninstall it first. > I have wxPython, mod_python and Django installed. Will these have to > reinstalled/reconfigured for 2.6? Yes, that will be necessary. Regard

Re: unicode .replace not working - why?

2008-10-12 Thread Martin v. Löwis
textu. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Upgrading from 2.5 to 2.6

2008-10-13 Thread Martin v. Löwis
, you have the option to chose whether the new version should associate itself with the .py extension or not. Through APR (add-remove-programs), you can later change that also - unselect it in one installation, then select it in the other (or run the repair installation if you selected it twice). Rega

Re: installing python 3.0rc1 on Linux

2008-10-13 Thread Martin v. Löwis
ly, problems finding the header files, and that is most likely because you don't have them on your disk. Install the -dev packages that are prerequisites for the individual modules, and it should work out fine. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: PIL on windows XP x64 (64-bit)?

2008-10-13 Thread Martin v. Löwis
;s Open Source Repository? Worth a try :-) Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Upgrading from 2.5 to 2.6

2008-10-14 Thread Martin v. Löwis
ely, I think this is too long for the available space. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Installing Python 2.4 over 2.4?

2008-10-14 Thread Martin v. Löwis
W. eWatson wrote: > I suspect something has been corrupted in Python 2.4. Can I just > re-install on top of it On Windows, you shouldn't reinstall, but instead run the "repair" installation, from "Add and remove programs". Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: python3 - the hardest hello world ever ?

2008-10-14 Thread Martin v. Löwis
> do I miss something (I do hope so) or is switching to Python3 > really hard for Latin1-users? Why do you want to switch? sys.stdout.encoding should already be iso-8859-1, if you are a Latin1-user. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Installing Python 2.4 over 2.4?

2008-10-14 Thread Martin v. Löwis
t;Remove and Add"? I'm talking about the "Add or [not and] Remove Programs" control panel item (ARP). You should not remove, then add, Python, but instead, repair it. > Where do I get a repair installation? Launch ARP. Seek Python (wait while this list is being po

Re: Installing Python 2.4 over 2.4?

2008-10-15 Thread Martin v. Löwis
uot;. In the specific case of Python, the typical choice is whether or not to install the tests, and whether or not to install Tkinter. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: python3 - the hardest hello world ever ?

2008-10-15 Thread Martin v. Löwis
und out that you usually use Latin-1, your system is misconfigured. If Python could have found out, but failed to do so, it's a bug in Python. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: memory use with regard to large pickle files

2008-10-15 Thread Martin v. Löwis
or variable? How can I go about > debugging this problem? In Python 2.6, there is the sys.getsizeof function. For earlier versions, the asizeof package gives similar results. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: python3 - the hardest hello world ever ?

2008-10-16 Thread Martin v. Löwis
tion of a default encoding has disappeared. You have to perform conversion between bytes and strings now explicitly. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: python3 - the hardest hello world ever ?

2008-10-16 Thread Martin v. Löwis
gt; I wished I could override the locale settings within a Python script. You can monkey-patch locale.getpreferredencoding, which is used when determining what encoding to use when opening new files. I don't recommend doing so, though. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: ImportError in python 2.5 in C API DLL

2008-10-16 Thread Martin v. Löwis
> Would really appreciate any assistance. You should change your project to create a .pyd file instead of a .dll file. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Unicode File Names

2008-10-17 Thread Martin v. Lo
> Step 4: Either wait for Python 2.7 or apply the patch to your own copy > of zipfile ... Actually, this is released in Python 2.6, see r62724. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: crossplatform standalone python apps

2008-10-17 Thread Martin v. Löwis
ncluded in the zipfile. Notice that Mac OS *.app dirs are *not* cross-platform, either - they only work on Mac OS. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: inserting Unicode character in dictionary - Python

2008-10-18 Thread Martin v. Löwis
Python 3.0, this silliness goes away, because all strings are > Unicode by default. You still need to make sure that the editor's encoding and the declared encoding match. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Unicode File Names

2008-10-18 Thread Martin v. Löwis
ftware (unaware of the UTF-8 bit) has a chance of correctly guessing the file name (if it followed APPNOTE.TXT). I (now) prefer the tradeoff being taken, as it's the one that produces more reliable results in the long run (i.e. when more and more zip readers support UTF-8). Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Unicode File Names

2008-10-18 Thread Martin v. Löwis
> Oddly, os.getcwd() and os.getcwdu() both still exist in Python 3.0. > Since the behavior is now identical it seems os.getcwdu() should be > dropped. It is dropped, and os.getcwdb() has been added. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: inserting Unicode character in dictionary - Python

2008-10-19 Thread Martin v. Löwis
ather than bytes? Yes. > I'm hoping that the answer is "no" Then you need to switch to Python 3.0, when it comes out. Its string literals denote unicode strings. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: I want to release the GIL

2008-10-21 Thread Martin v. Löwis
for i in range(3): t = threading.Thread(target=f, args=(threading.Event(),)) t.setDaemon(1) t.start() while not events: print events time.sleep(0.1) events[0].set() time.sleep(10) HTH, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Unicode (UTF8) in dbhas on 2.5

2008-10-21 Thread Martin v. Löwis
rs, and that they are further UTF-8 encoded. However, such a package doesn't need to be part of the standard library. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Unicode (UTF8) in dbhas on 2.5

2008-10-21 Thread Martin v. Löwis
ntelligent system that does >> more of the grunt work for us. It *is* important to understand the difference between an "UTF-8 string", and a "Unicode string". If the OP hadn't been confused about the two, and fully understood the difference, he probably wouldn't have needed to ask. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.5.chm problem

2008-10-22 Thread Martin v. Löwis
tall Python, and where are you clicking in what order? Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: socket and DynDNS

2008-10-22 Thread Martin v. Löwis
heart beat messages, and the sender side resending everything that might have been lost since the last heart beat. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: 2.6, 3.0, and truly independent intepreters

2008-10-22 Thread Martin v. Löwis
s what has effect. I don't think any of the current committers has a significant interest in supporting multiple interpreters (and I say that as the one who wrote and implemented PEP 3121). To make a significant change, you need to start with a PEP, offer to implement it once accepted, and offer

Re: 2.6, 3.0, and truly independent intepreters

2008-10-22 Thread Martin v. Löwis
et nowhere without contributions, then the contributions will come in. If there won't be any contributions, then the itch in the the community isn't that strong that it needs scratching. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: crossplatform standalone python apps

2008-10-23 Thread Martin v. Löwis
> yes, I know that :-), I ment everything that can be, my problem is more > with PYTHONPATH and stuff like that. Then I don't understand what you meant. What is it (specifically!) that you do, what happens, what do you want to happen instead? Regards, Martin -- http://mail.python.

Re: 2.6, 3.0, and truly independent intepreters

2008-10-24 Thread Martin v. Löwis
e-collected properly. However, I also kept the isolated interpreters feature in mind there. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: 2.6, 3.0, and truly independent intepreters

2008-10-24 Thread Martin v. Löwis
in parallel. > As far as I can tell, it seems > CPython's current state can't CPU bound parallelization in the same > address space. That's not true. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: 2.6, 3.0, and truly independent intepreters

2008-10-24 Thread Martin v. Löwis
lution. It's the right one, but it will take five or ten years to implement. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: 2.6, 3.0, and truly independent intepreters

2008-10-25 Thread Martin v. Löwis
re and per-interpreter state in Python). I wasn't claiming that it was impossible to solve that problem - just that it is not simple. If you want to find out what all the problems are, please try implementing it for real. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: sqlite version for python 2.6

2008-10-25 Thread Martin v. Löwis
> I'd like to know which version of sqlite the python 2.6 sqlite3 module > supports. When you compile Python, you can chose any version of sqlite that you want to. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: 2.6, 3.0, and truly independent intepreters

2008-10-25 Thread Martin v. Löwis
n implementation, I don't want to spend my time explaining it to you. > But the approach is sound; nearly any monolithic > program can be turned into a multithreaded program containing one > monolith per thread using such a technique. I'm not debating that. I just claim th

Re: 2.6, 3.0, and truly independent intepreters

2008-10-26 Thread Martin v. Löwis
C code. I don't see how Python is in the way at all. Many people do that, and it works just fine. That's what Jesse (probably) meant with his remark >> A c-level module, on the other hand, can sidestep/release >> the GIL at will, and go on it's merry way and process away.

Re: 2.6, 3.0, and truly independent intepreters

2008-10-27 Thread Martin v. Löwis
Andy O'Meara wrote: > On Oct 24, 9:52 pm, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: >>>> A c-level module, on the other hand, can sidestep/release >>>> the GIL at will, and go on it's merry way and process away. >>> ...Unless part

Re: 2.6, 3.0, and truly independent intepreters

2008-10-28 Thread Martin v. Löwis
> Because then we're back into the GIL not permitting threads efficient > core use on CPU bound scripts running on other threads (when they > otherwise could). Why do you think so? For C code that is carefully written, the GIL allows *very well* to write CPU bound scripts running on other threads.

Re: Specifying an IP address for outbound connections?

2008-10-29 Thread Martin v. Löwis
to continue to use urllib, you'll have to override a lot of classes, or monkey-patch, or use, e.g., PyContext to selectively replace httplib.HTTPConnection.connect. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: separate shared libraries or different Linux/Unix

2008-10-29 Thread Martin v. Löwis
but Python) from source is something that you should completely avoid. Instead of installing zlib, you should have just installed Debian's zlib1g-dev package. Likewise for any other header files that you will need. The libraries provided by Debian are sufficient for building Python 2.6 with all extension modules (that can possibly work on Linux). Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: 2.6, 3.0, and truly independent intepreters

2008-10-30 Thread Martin v. Löwis
> Well, most others here seem to have a lot different definition of what > qualifies as a "futile" discussion, so how about you allow the rest of > us continue to discuss these issues and possible solutions. And, for > the record, I've said multiple times I'm ready to contribute > monetarily, professionally, and personally, so if that doesn't qualify > as the precursor to "code contributions from one of the participants" > then I don't know WHAT does. Ok, I apologize for having misunderstood you here. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Embedding: Is it possible to limit number of virtual instructions executed?

2008-11-01 Thread Martin v. Löwis
etermine that the limit has been reached, and raise an exception (say). Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Simplifying anonymous inner classes?

2008-11-01 Thread Martin v. Löwis
eflected from the method's __name__, so I don't need to pass it into the Action constructor. To implement the decorator, I suggest to just set a function attribute, and return the original function. HTH, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Installation of Py3.0rc1 fails on Mac OS X with bad locale

2008-11-01 Thread Martin v. Löwis
> How should this issue be worked around or dealt with? Should users on > Mac OS X 10.5 change the default value of LC_CTYPE? To what? It would be best if a Mac user could propose a patch for that problem before the release of Python 3.0. Regards, Martin -- http://mail.python.org/m

Re: How do I find the memory used by a python process

2008-11-03 Thread Martin v. Löwis
ckage: http://pypi.python.org/pypi/muppy Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: separate shared libraries or different Linux/Unix

2008-11-04 Thread Martin v. Löwis
ays picks up the libraries you want. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: socket.getaddrinfo: flags |= AI_ADDRCONFIG

2008-11-05 Thread Martin v. Löwis
httplib. There is apparently a problem with this one, also: implementations might define AI_ADDRCONFIG, but not implement it, but instead return EAI_BADFLAGS. Not sure whether this is a real problem, though. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: modifying a codec

2008-11-05 Thread Martin v. Löwis
rring in the input should get decoded - as u"—" or as u"\u2014"? Most likely, decoding that output is of no concern to you, in which case the approach with the error handler is the best way (IMO). Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Python25\Tools\checkversions.py

2008-11-06 Thread Martin v. Löwis
Colin J. Williams wrote: > Is _checkversion.py used at all currently? I don't think so. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Python25\Tools\checkversions.py

2008-11-06 Thread Martin v. Löwis
> I suggest that consideration be given to dropping it and and > versionchecker from the distribution. I see that it still appears in > versions 2.6 and 3.0. Please submit a bug report to bugs.python.org to this effect. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: etymology of "list comprehension"?

2008-11-06 Thread Martin v. Löwis
;the set of all capitals consists of Paris, London, Berlin, Madrid, ..." The definition in logic, in turn, matches my understanding of the English word "to comprehend": If I know all attributes, marks, etc of an object, I understand it fully, i.e. I comprehend it. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: best way to accelerate xmlrpc?

2008-11-08 Thread Martin v. Löwis
xmlrpclib apparently is no longer available. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Installation of Py3.0rc1 fails on Mac OS X with bad locale

2008-11-08 Thread Martin v. Löwis
="en_US.UTF-8" It's not a patch - as you say, it's a workaround. It's not clear to me whether this has potentially negative side effects, such as other programs now breaking. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 3.0 - is this true?

2008-11-09 Thread Martin v. Löwis
> def comp(x1, x2): >try: >if x1return -1 >else: >return 1 >except TypeError: >if str(x1)return -1 >else: >return 1 > Please correct me if I'm wrong, but I think this is not transitive. If strings and ints are

Re: Python 3.0 - is this true?

2008-11-09 Thread Martin v. Löwis
Of course, the peak memory usage is higher with the key function (O(n), compared to O(1) for the cmp= function, assuming the frame objects get deallocated and reused immediately). Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 3.0 - is this true?

2008-11-09 Thread Martin v. Löwis
raceback (most recent call last): File "", line 1, in ? TypeError: no ordering relation is defined for complex numbers Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Installing Python 2.6 on Vista

2008-11-09 Thread Martin v. Löwis
go back to XP 4. go back to Python 2.5 Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 3.0 - is this true?

2008-11-09 Thread Martin v. Löwis
> In any case, would it be possible to add a cmp= function which did more > or less what the current default cmp does now? As somebody pointed out, it's possible to create a key= function that provides arbitrary ordering: just return an object custom type whose __lt__ never fails: class AlwaysOrd

Re: Python 3.0 - is this true?

2008-11-09 Thread Martin v. Löwis
...]. The third element is semantically not different from the first element, hence a list is appropriate. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Installing Python 2.6 on Vista

2008-11-09 Thread Martin v. Löwis
> It installs fine for 'just me', so no problem. It installs for 'just me', but it doesn't work. Just try starting IDLE, or import the socket module. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

<    29   30   31   32   33   34   35   36   37   38   >