Re: [Python-Dev] Python 2.5.1

2007-04-30 Thread Martin v. Löwis
nder which I can successfully invoke it? Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Python 2.5.1

2007-05-01 Thread Martin v. Löwis
Alexey Borzenkov schrieb: > On 5/1/07, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: >> > After doing some research I found that it seems to be impossible to >> > use CreateFile for a file that doesn't have SHARE_READ. >> So what about GetFileAttrib

Re: [Python-Dev] Python 2.5.1

2007-05-01 Thread Martin v. Löwis
real file, or else they had not reported that as a real bug, really. Are you proposing to unfix the bug? Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.p

Re: [Python-Dev] Python 2.5.1

2007-05-01 Thread Martin v. Löwis
> Would tests that use ctypes do do the open directly be acceptable ways > of solving this? If it solves it - sure. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe:

Re: [Python-Dev] head crashing

2007-05-01 Thread Martin v. Löwis
, and relies on the GIL for thread-safety. In release mode, PyMEM_FREE goes directly to free, which is thread-safe. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://m

Re: [Python-Dev] 64 bit warnings

2007-05-02 Thread Martin v. Löwis
n on what the valid ranges are for argcount, kwcount, locals, and what the rationale for these limitations are, and then they should get a consistent datatype. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mai

Re: [Python-Dev] x64 and the testsuite

2007-05-03 Thread Martin v. Löwis
probably create > some Py_int and so on. > Ok, b) is not a real suggestion, then. Also, in Py3k, the int type will go away, along with this entire problem. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/ma

Re: [Python-Dev] 2.6, x64 and PGO

2007-05-03 Thread Martin v. Löwis
. Please, no. This will complicate things very much for everybody, for the sake of a few elitist users who think they have a use case. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/pytho

Re: [Python-Dev] Changing string constants to byte arrays in Py3k

2007-05-05 Thread Martin v. Löwis
play is a constructed thing which may contain runtime-computed components, unlike a literal). So if bytes are mutable and also have source-level representation, they should be displays, not literals. Regards, Martin ___ Python-Dev mailing lis

Re: [Python-Dev] Changing string constants to byte arrays in Py3k

2007-05-05 Thread Martin v. Löwis
x = foo() x[0] = 5 # supported 2. def foo(): return b"\x01\x02\x03" print foo() is foo() # False x = foo() x[0] = 5 # supported 3. def foo(): return b"\x01\x02\x03" print foo() is foo() # True x = foo() x[0] = 5 # TypeError HTH, Martin

Re: [Python-Dev] ImportError on no permission

2007-05-06 Thread Martin v. Löwis
s. Now, I think it is quite possible that you have inaccessible directories on sys.path, e.g. when you inherit PYTHONPATH from a parent process. So I would rather let importing proceed, and add a note to the error message that some files could not be read. Regards, Martin __

Re: [Python-Dev] ImportError on no permission

2007-05-06 Thread Martin v. Löwis
> How about an ImportWarning instead? That way people can have either > have import halt immediately, or continue (with or without a message). If I put my dislike of warnings aside: yes, that would also work. Martin ___ Python-Dev mailing list

Re: [Python-Dev] Commit Keys

2007-05-06 Thread Martin v. Löwis
st it, or somebody else may have found it. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] best practices stdlib: purging xrange

2007-05-08 Thread Martin v. Löwis
If I worry about creating a list in 2.x, I would write try: xrange except NameError: xrange=range at the top of the file. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscr

Re: [Python-Dev] Official version support statement

2007-05-10 Thread Martin v. Löwis
quot;, then no: 2.4 is not anymore officially supported. Only 2.5 is officially supported. There may, of course, be security patches released for 2.4 if there is a need. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.pyth

Re: [Python-Dev] \u and \U escapes in raw unicode string literals

2007-05-10 Thread Martin v. Löwis
nation with a non-raw string: r"foo\uhallo" "\u20ac" r"welt" Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailm

Re: [Python-Dev] \u and \U escapes in raw unicode string literals

2007-05-10 Thread Martin v. Löwis
gt; characters should be written using \x or \u escapes. Following that convention: How do you get a non-ASCII byte into a raw byte string in Python 2.x? You can't - so why should you be able to get a non-ASCII character into a raw Unicode string? Regards, Martin _

Re: [Python-Dev] New operations in Decimal

2007-05-10 Thread Martin v. Löwis
> We supposedly have a standard for additions to the standard lib. I cannot > think of any other module being admitted with what amounts to an unlimited > blank check for further additions. xml.dom.minidom, xml.sax, posix, htmlentitydefs, Tkinter. Regard

Re: [Python-Dev] \u and \U escapes in raw unicode string literals

2007-05-10 Thread Martin v. Löwis
Greg Ewing schrieb: > Martin v. Löwis wrote: >> why should you be able to get a non-ASCII character >> into a raw Unicode string? > > The analogous question would be why can't you get a > non-Unicode character into a raw Unicode string. No, that would not be analogo

Re: [Python-Dev] \u and \U escapes in raw unicode string literals

2007-05-10 Thread Martin v. Löwis
u005Cuser32.dll") will just cause puzzled faces. Windows path names are one of the two primary applications of raw strings (the other being regexes). Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listi

Re: [Python-Dev] \u and \U escapes in raw unicode string literals

2007-05-11 Thread Martin v. Löwis
nge when removing the > 'u' prefix in Py3k. How do you know? Py3k hasn't been released, yet. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] \u and \U escapes in raw unicode string literals

2007-05-11 Thread Martin v. Löwis
n't. You may be able to do so when using the API directly, however, it fails if you pass the file name in a command line of some tool that takes /foo to mean a command line option "foo". Regards. Martin ___ Python-Dev mailing list Python-De

Re: [Python-Dev] Official version support statement

2007-05-11 Thread Martin v. Löwis
27;' The more I think about it: no, there is no official support for the current stable release. We will like produce more bug fix releases, but then, we may not if the volunteers doing so lose time or interest, and 2.6 comes out earlier than planned. Why do you need such a statement

Re: [Python-Dev] Official version support statement

2007-05-12 Thread Martin v. Löwis
dation maintains the current stable major > release of Python. Ah, maintains is indeed better than supports. That's what we do: we maintain Python. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/lis

Re: [Python-Dev] Official version support statement

2007-05-12 Thread Martin v. Löwis
red that to python-dev and its readership. I had meant to propose a PEP on maintenance of Python releases for quite some time now; perhaps this is the time to actually write this PEP. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.o

[Python-Dev] Draft PEP: Maintenance of Python Releases

2007-05-12 Thread Martin v. Löwis
everything, so it is essential that there are very very few new patches in each security release. Please let me know what you think. Regards, Martin PEP: XX Title: Maintenance of Python Releases Version: $Revision$ Last-Modified: $Date$ Author: Martin v. Löwis <[EMAIL PROTECTED]> Discussio

Re: [Python-Dev] Official version support statement

2007-05-12 Thread Martin v. Löwis
mp.lang.python, python-tutors, and python-help, and none of them have the notion of "unsupported Python releases". Thing become unsupported by no volunteer being willing to offer help. It's also important to understand that the bug tracker is *

Re: [Python-Dev] Summary of Tracker Issues

2007-05-13 Thread Martin v. Löwis
utton "Spammer" should allow committers to lock an account and hide all messages and files that he sent, but that still requires somebody to implement it. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mail

Re: [Python-Dev] \u and \U escapes in raw unicode string literals

2007-05-13 Thread Martin v. Löwis
slash followed by u in your regular expression, you should write \\u. It would be possible to future-warn about \u in 2.6, catching these cases. Authors then would either have to remove the backslash, or duplicate it, depending on what they want to express. Regards, Martin __

Re: [Python-Dev] Draft PEP: Maintenance of Python Releases

2007-05-13 Thread Martin v. Löwis
activity: creating a new web page on pydotorg, running the test suite, etc. all is still necessary. In any case, the patch gets certified by being committed (with the indication that it is a security fix), so if they want certified patches, they can just import the maintenance branch. Regards

Re: [Python-Dev] Summary of Tracker Issues

2007-05-13 Thread Martin v. Löwis
d is just unacceptable. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Draft PEP: Maintenance of Python Releases

2007-05-14 Thread Martin v. Löwis
he branch, not by fetching a tarball." In effect, this is what the PEP says. That's intentional (i.e. it is my intention - others may have different intentions). It's the repository that holds the security patches; the tarballs (and the version number bumps) are just a convenience.

Re: [Python-Dev] Draft PEP: Maintenance of Python Releases

2007-05-14 Thread Martin v. Löwis
you can start setting a policy that these volunteers can agree to. When the volunteers then run away, or become inactive, the policy needs revisiting. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listi

Re: [Python-Dev] Draft PEP: Maintenance of Python Releases

2007-05-14 Thread Martin v. Löwis
get. If PSRT members (who are they, anyway) also happen to be committers, they can commit these changes at the time the PSRT deems appropriate. If they are not committers, they need to post the patch to SF as anybody else. (you can tell that I come from a country where people are quite skeptical ab

Re: [Python-Dev] Draft PEP: Maintenance of Python Releases

2007-05-14 Thread Martin v. Löwis
ain than that: yes, I do not take security seriously enough to release security fixes for old Python versions more than once a year. As a user, it's easy to demand things, and people really have to learn that in open source, all things are done by volunteers, and that demanding g

Re: [Python-Dev] Draft PEP: Maintenance of Python Releases

2007-05-14 Thread Martin v. Löwis
ets implemented, I believe there would be more security patches than those we had seen - this single one was only in response to some demanding users. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listi

Re: [Python-Dev] Draft PEP: Maintenance of Python Releases

2007-05-14 Thread Martin v. Löwis
> You can always can make a checkout of the security-manteined-only > branch, if you're in a particular hurry (maybe the PEP should say > something about this). Indeed. I can add explicit wording to say that. Regards, Martin ___ Python-De

Re: [Python-Dev] Summary of Tracker Issues

2007-05-14 Thread Martin v. Löwis
Aahz schrieb: > On Mon, May 14, 2007, "Martin v. L?wis" wrote: >> Skip(?): >>> In the meantime (thinking out loud here), would it be possible to keep >>> search engines from seeing a submission or an edit until a trusted person >>> has had a chance

Re: [Python-Dev] Summary of Tracker Issues

2007-05-14 Thread Martin v. Löwis
onsidered CAPTCHA, but some people were immediately opposed to using it, both for the reason that spammers still get past it in an automated manner, and that it might lock out certain groups of legitimate users. So I have personally given up on that

Re: [Python-Dev] marshal and ssize_t (PEP 353)

2007-05-15 Thread Martin v. Löwis
tly backwards-compatible, assuming that S/T/U get used only when needed. However, it would complicate the implementation. I'm still leaning towards "don't change", since I don't expect that such string objects occur in so

Re: [Python-Dev] Summary of Tracker Issues

2007-05-15 Thread Martin v. Löwis
ow what an orb is (it's not an object request broker, right?) Is the answer "sun"? Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/ma

Re: [Python-Dev] marshal and ssize_t (PEP 353)

2007-05-15 Thread Martin v. Löwis
n/branches/[EMAIL PROTECTED] but that URL is, unfortunately, not browsable. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-d

Re: [Python-Dev] Summary of Tracker Issues

2007-05-16 Thread Martin v. Löwis
g to help us not throw up > our hands in surrender. Would that help go so far as to provide patches to the roundup installation? Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Uns

Re: [Python-Dev] recursion limit in marshal

2007-05-17 Thread Martin v. Löwis
d, and for code objects, it would index the various elements of the code object. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/option

Re: [Python-Dev] Py2.6 buildouts to the set API

2007-05-19 Thread Martin v. Löwis
ets are created, copied, and > discarded. It would run as if written: s=s1.copy(); s.update(s2); > s.update(s3); s.update(s4). I'd rather see this as collections.bigunion. > * Make sets listenable for changes (proposed by Jason Wells): -1, IAGNI. Martin ___

Re: [Python-Dev] Summary of Tracker Issues

2007-05-19 Thread Martin v. Löwis
n, and wondering what bastards let the spam in in the first place. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%

Re: [Python-Dev] Py2.6 buildouts to the set API

2007-05-19 Thread Martin v. Löwis
true set; it couldn't be an iterator, as you need to test whether an element of self is in the other operand. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: htt

Re: [Python-Dev] [Python-checkins] buildbot failure in x86 W2k trunk

2007-05-20 Thread Martin v. Löwis
Brett Cannon schrieb: > For removing extension modules from the build process on Windows, do you > just delete the File entry from PCbuild/pythoncore.vcproj? No, you also need to remove the entry from PC/config.c. Regards, Martin ___ Python-Dev m

Re: [Python-Dev] PEP 384 accepted

2010-12-03 Thread Martin v. Löwis
er, I know that the patch will be rejected, >> so I don't even start working on it. > This would be a very useful feature for distutils2. But I'm not interested at all in having it in distutils2. I want the Python build itself

Re: [Python-Dev] PEP 384 accepted

2010-12-03 Thread Martin v. Löwis
ion. If you implement it in distutils2, you have very good chances > to get it for 3.3. Isn’t that a win? It is, unfortunately, a very weak promise. Until distutils2 is integrated in Python, I probably won't spend any time on it. Regards, Martin __

Re: [Python-Dev] gc ideas -- sparse memory

2010-12-03 Thread Martin v. Löwis
ree memory, > would it not make more sense to tell OS that [] is not needed > anymore, and not move some of the consequtive [L_LL][LFFF] at all, or > at least not move those objects as far down the memory region? See above. Python does no moving of objects whatsoever. Regards, Martin _

Re: [Python-Dev] gc ideas -- dynamic profiling

2010-12-03 Thread Martin v. Löwis
together > (generations are separate regions) or preload the object with high > survival count (if q1 is single region). We would consider such a proposal only if you had *actual evidence* that it improves things, rather than just having a reasonin

Re: [Python-Dev] gc ideas -- sparse memory

2010-12-03 Thread Martin v. Löwis
aim that they are identical if they are equal (assuming they support equality - which is tricky for things like NaN). Of course, the C API has lots of assumptions that identity and address are really the same thing. Regards, Martin ___ Python-Dev mailin

Re: [Python-Dev] PEP 384 accepted

2010-12-03 Thread Martin v. Löwis
Am 04.12.2010 00:35, schrieb Terry Reedy: > On 12/3/2010 5:52 PM, "Martin v. Löwis" wrote: >> Am 03.12.2010 23:48, schrieb Éric Araujo: >>>> But I'm not interested at all in having it in distutils2. I want the >>>> Python build itself to use it,

Re: [Python-Dev] PEP 384 accepted

2010-12-03 Thread Martin v. Löwis
Am 04.12.2010 01:00, schrieb Terry Reedy: > On 12/3/2010 6:46 PM, "Martin v. Löwis" wrote: > >>> and stable as D1. I do not know what Martin means by 'integrate' (other >>> than that he be able to use it to build Python) >> >> That th

Re: [Python-Dev] gc ideas -- sparse memory

2010-12-04 Thread Martin v. Löwis
> Am I still missing something? Apparently. The hole C API would break if objects would move in memory. Since they have to stay at fixed addresses, it's easy enough to use the address as ID. There is no problem to be solved here. Regards

Re: [Python-Dev] PEP 384 accepted

2010-12-04 Thread Martin v. Löwis
depends on the programming language. So for C++, it's an API change; for C, it's not. Still, I can point that out. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe:

Re: [Python-Dev] gc ideas -- sparse memory

2010-12-04 Thread Martin v. Löwis
> I'm afraid I don't follow you. Unless you're suggesting some sort of > esoteric object system whereby objects *don't* have identity (e.g. where > objects are emergent properties of some sort of distributed, > non-localised "information"), any object naturally has an identity -- > itself. Not in

Re: [Python-Dev] python 2 for building python 3

2010-12-04 Thread Martin v. Löwis
tually Python 3. This shouldn't be necessary, as typeslots.inc is also checked into subversion, and should have a newer time stamp than typeslots.inc (perhaps not currently, but that is the plan, anyway). In any case, I now made the script 2-vs-3

Re: [Python-Dev] gc ideas -- sparse memory

2010-12-04 Thread Martin v. Löwis
l, sure, in a hash table you need a hash value. But I was talking > about an id() function. > > So is that it? Is IdentityHashValue (or *Code, as the case may be) just > a longer name for hash()? Of course not. Regards, Martin ___ Python

Re: [Python-Dev] gc ideas -- sparse memory

2010-12-04 Thread Martin v. Löwis
at's only the case if the hash() result is guaranteed not to change. In some applications, it may be desirable to have that as an absolute guarantee (rather than just being a convention). No, you can't substitute identity hash with hash: the value hash o

Re: [Python-Dev] PEP 384 accepted

2010-12-04 Thread Martin v. Löwis
erhaps yes: I disagree with the principle that bold rewrites should be developed independently. Such work would be much better carried out in a branch - it will never stand on its own. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org

Re: [Python-Dev] python 2 for building python 3

2010-12-04 Thread Martin v. Löwis
files after an update, perhaps Mercurial is better with that. For a release, the time stamps in the tar file will do fine. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe:

Re: [Python-Dev] Python and the Unicode Character Database

2010-12-04 Thread Martin v. Löwis
> I actually wonder if Python's re module can claim to provide even > Basic Unicode Support. Do you really wonder? Most definitely it does not. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailm

[Python-Dev] PEP 11: Dropping support for ten year old systems

2010-12-05 Thread Martin v. Löwis
2000, for which we already decided to not support it anymore. Opinions? Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-d

Re: [Python-Dev] PEP 11: Dropping support for ten year old systems

2010-12-05 Thread Martin v. Löwis
rocAddress to call them. These can be replaced with regular calls. _WINNT (or whatever the macro is called) then needs to be bumped accordingly. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python

Re: [Python-Dev] PEP 11: Dropping support for ten year old systems

2010-12-05 Thread Martin v. Löwis
Am 06.12.2010 05:36, schrieb Nick Coghlan: > On Mon, Dec 6, 2010 at 7:48 AM, "Martin v. Löwis" wrote: >> I'd like to tighten PEP 11, and declare a policy that systems >> older than ten years at the point of a feature release are not >> supported anymore by def

Re: [Python-Dev] PEP 11: Dropping support for ten year old systems

2010-12-06 Thread Martin v. Löwis
Am 06.12.2010 09:36, schrieb Jeroen Ruigrok van der Werven: > -On [20101206 08:30], "Martin v. Löwis" (mar...@v.loewis.de) wrote: >> As a counter-example, I think the only way to phase out support >> for old OpenBSD releases is that we set a date. > > If you want, I

Re: [Python-Dev] PEP 11: Dropping support for ten year old systems

2010-12-06 Thread Martin v. Löwis
without any official EOL or life cycles. Here my proposal stands: 10 years, by default. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] python 2 for building python 3

2010-12-06 Thread Martin v. Löwis
resolution, but that might give you files dated in the future (which make complains about - but you'ld get over with that after 20s). ms might offer some middle ground (but I think all filesystems supporting ms resolution will also support µs). Regards, Martin

Re: [Python-Dev] PEP 11: Dropping support for ten year old systems

2010-12-06 Thread Martin v. Löwis
Am 06.12.2010 14:40, schrieb Floris Bruynooghe: > On 6 December 2010 09:18, "Martin v. Löwis" wrote: >>> Also, it is not clear what to do about distributions/OSs >>> without any official EOL or life cycles. >> >> Here my proposal stands: 10 years,

Re: [Python-Dev] transform() and untransform() methods, and the codec registry

2010-12-06 Thread Martin v. Löwis
s taken out again: codecs.lookup would still find them. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] PEP 11: Dropping support for ten year old systems

2010-12-06 Thread Martin v. Löwis
Am 06.12.2010 20:25, schrieb Terry Reedy: > On 12/6/2010 4:08 AM, "Martin v. Löwis" wrote: > >> For Windows and Solaris, it seems that some users continue to use the >> system after the vendor stops producing patches, and dislike the >> prospect of not hav

Re: [Python-Dev] PEP 11: Dropping support for ten year old systems

2010-12-06 Thread Martin v. Löwis
on warnings (and, occasionally, "exciting" > code-generation bugs...) Dropping support for old gcc versions (or other old compiler versions) is probably an issue on its own. It will be difficult to figure out what work-arounds are in place for what particular compiler glitch. Regards

Re: [Python-Dev] Python and the Unicode Character Database

2010-12-07 Thread Martin v. Löwis
Am 07.12.2010 04:03, schrieb Alexander Belopolsky: > On Sat, Dec 4, 2010 at 5:58 PM, "Martin v. Löwis" wrote: >>> I actually wonder if Python's re module can claim to provide even >>> Basic Unicode Support. >> >> Do you really wonder? Most definite

Re: [Python-Dev] Can't compile regex module with Python 3.2

2010-12-08 Thread Martin v. Löwis
ure about this? It's not intentional (except in the limited ABI). Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] OpenSSL Vulnerability (openssl-1.0.0a)

2010-12-09 Thread Martin v. Löwis
bug and security fixes I don't plan upgrading the Windows build before 3.2; I have already patched the OpenSSL copy that we use. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev U

Re: [Python-Dev] Can't compile regex module with Python 3.2

2010-12-09 Thread Martin v. Löwis
Am 09.12.2010 06:57, schrieb Alexander Belopolsky: > On Thu, Dec 9, 2010 at 12:47 AM, "Martin v. Löwis" wrote: > .. >>> However, in Python 3.2b1 the library python32.lib contains only >>> _PyUnicode_IsWhitespace, therefore breaking the build. >>> >

Re: [Python-Dev] Locale-specific formatting

2010-12-18 Thread Martin v. Löwis
> Comments? How do you implement that? In particular, how do you retrieve information for different locales in a single program? Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-

Re: [Python-Dev] Issue #8863 adds a new PYTHONNOFAULTHANDLER environment variable

2010-12-18 Thread Martin v. Löwis
ould approve it - that would be convincing). I also share Alexander's concern that Python just shouldn't mess with signal handlers at all, ideally. So some trade-off has to be found to address that concern (e.g. by making the signal handlers only active for the exe

Re: [Python-Dev] Locale-specific formatting

2010-12-18 Thread Martin v. Löwis
Am 18.12.2010 19:26, schrieb MRAB: > On 18/12/2010 09:26, "Martin v. Löwis" wrote: >>> Comments? >> >> How do you implement that? In particular, how do you retrieve >> information for different locales in a single program? >> > The locale m

Re: [Python-Dev] Locale-specific formatting

2010-12-19 Thread Martin v. Löwis
Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Issue #8863 adds a new PYTHONNOFAULTHANDLER environment variable

2010-12-19 Thread Martin v. Löwis
Some signal handlers are more likely to interfere with the the rest of the application than others. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/m

Re: [Python-Dev] Issue #8863 adds a new PYTHONNOFAULTHANDLER environment variable

2010-12-19 Thread Martin v. Löwis
async-signal-safe function, this part is fine. Looking at your function list, my other concern is that you are calling Python API without holding the GIL, IIUC. In particular, you are accessing _PyThreadState_Current, which may not point to the current thread if the current

Re: [Python-Dev] Issue #8863 adds a new PYTHONNOFAULTHANDLER environment variable

2010-12-19 Thread Martin v. Löwis
egards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Issue #8863 adds a new PYTHONNOFAULTHANDLER environment variable

2010-12-19 Thread Martin v. Löwis
thread. > I don't think that it will possible the acquire the GIL in > Py_FatalError() or in the fault handler. I agree. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Un

Re: [Python-Dev] Issue #8863 adds a new PYTHONNOFAULTHANDLER?environment variable

2010-12-20 Thread Martin v. Löwis
ere also counter- examples where you'ld need the Python stack (or, rather, the entire interpreter trace) to understand how the crashing case can occur in the first place. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://ma

Re: [Python-Dev] Issue #8863 adds a new PYTHONNOFAULTHANDLER environment variable

2010-12-20 Thread Martin v. Löwis
and: the last active thread may not be the one that got the signal. Instead, it may be another thread that keeps running while your thread crashes. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/pyt

Re: [Python-Dev] Search-friendly shortcuts for Windows?

2010-12-20 Thread Martin v. Löwis
> Given the changing dynamics of the desktop launch menus to better > support direct access as an alternative to hierarchical navigation, > would it be reasonable to consider including the major version number > in the start menu shortcut names? > > (Question is mainly for Mart

Re: [Python-Dev] Fault handler updated, now disabled by default

2010-12-22 Thread Martin v. Löwis
> So, do you agree with the fault handler? Does someone want to give a > last review because I commit it? It's a new feature, so regardless of whether it's correct or not (which I haven't reviewed yet), I don't think it should go in before 3.2 is

Re: [Python-Dev] Fault handler updated, now disabled by default

2010-12-23 Thread Martin v. Löwis
for testing. This specific feature has seen very little testing. Giving it a full release cycle (i.e. until 3.3) would somewhat reduce the need for a more careful code review. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.

Re: [Python-Dev] Issue #8863 adds a new?PYTHONNOFAULTHANDLER?environment variable

2010-12-23 Thread Martin v. Löwis
s has nothing to do with Unix signals. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] r87445 - python/branches/py3k/Lib/numbers.py

2010-12-23 Thread Martin v. Löwis
gt; This is misleading as to what the method actually does, > Really? Unless I misunderstood the docs, __index__ is used when the > object is used as an index (or with bin or oct, but I didn’t want to > complicate the docstring, just fix it). In case Antoine's objection isn't

Re: [Python-Dev] [Python-checkins] r87458 - python/branches/py3k/Lib/gettext.py

2010-12-23 Thread Martin v. Löwis
return "(%s if %s else %s)" % (x.group(2), x.group(1), > + expr.sub(repl, x.group(3))) Please update the comment as well. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.or

Re: [Python-Dev] Range __contains__ and objects with __index__ methods

2010-12-26 Thread Martin v. Löwis
> What are the actual used of .__index__? Can you please rephrase this question? Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/opti

Re: [Python-Dev] [Python-checkins] r87504 - in python/branches/py3k: Doc/c-api/exceptions.rst Include/pyerrors.h Include/warnings.h

2010-12-28 Thread Martin v. Löwis
;UTF-8 encoded string", because "UTF-8-encoded" has too many > "-". I should maybe be uniformized. David's other concern was whether it should be "encod*ed*" or "encod*ing*". It seems he would prefer "encoded". Not sure w

Re: [Python-Dev] os.getpriority() and os.setpriority()

2010-12-28 Thread Martin v. Löwis
Process, as well as Get/SetThreadPriority along with it. I think Python should incorporate something like pywin32, to expose all APIs whole-sale, in a type-safe manner (unlike ctypes). Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org htt

Re: [Python-Dev] Possible optimization for LOAD_FAST ?

2010-12-29 Thread Martin v. Löwis
Am 28.12.2010 18:08, schrieb Lukas Lueg: > Also, the > load_fast in lne 22 to reference x could be taken out of the loop as x > will always point to the same object That's not true; a debugger may change the value of x. Regards, Martin

Re: [Python-Dev] Issue #10348: concurrent.futures doesn't work on BSD

2010-12-29 Thread Martin v. Löwis
nize on FreeBSD. As a consequence, multiprocessing locks would stop working on FreeBSD, and concurrent futures; the tests would recognize this lack of features and get skipped. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python

Re: [Python-Dev] Issue #10348: concurrent.futures doesn't work on BSD

2010-12-29 Thread Martin v. Löwis
a whitelist of systems on which POSIX IPC is used (==['linux']), and use sysv ipc everywhere else. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

<    22   23   24   25   26   27   28   29   30   31   >