[Python-Dev] The "i" string-prefix: I18n'ed strings

2006-04-06 Thread Martin Blais
Hi all I got an evil idea for Python this morning -- Guido: no, it's not about linked lists :-) -- , and I'd like to bounce it here. But first, a bit of context. In the context of writing i18n apps, programmers have to "mark" strings that may be internationalized in a way that - a special hoo

Re: [Python-Dev] The "i" string-prefix: I18n'ed strings

2006-04-06 Thread Martin Blais
On 4/6/06, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > Martin Blais wrote: > >... > >A(P(_("Click here to forget"), href="... > >... > > I assume that this should be > > P(A(_("Click here to forget"), hre

Re: [Python-Dev] The "i" string-prefix: I18n'ed strings

2006-04-06 Thread Martin Blais
On 4/6/06, Alex Martelli <[EMAIL PROTECTED]> wrote: > On 4/6/06, Martin Blais <[EMAIL PROTECTED]> wrote: > > > - We could also have a prefix "I" for strings to be marked but not > > runtime-translated, to replace the N_() strings. > > I'm more dub

Re: [Python-Dev] The "i" string-prefix: I18n'ed strings

2006-04-07 Thread Martin Blais
On 4/7/06, Alexander Schremmer <[EMAIL PROTECTED]> wrote: > On Thu, 6 Apr 2006 20:35:51 -0400, Martin Blais wrote: > > > This is pretty standard > > getttext stuff, if you used _() a lot I'm surprised you don't have a > > need for N_(), I alway

Re: [Python-Dev] The "i" string-prefix: I18n'ed strings

2006-04-07 Thread Martin Blais
On 4/7/06, M.-A. Lemburg <[EMAIL PROTECTED]> wrote: > Martin Blais wrote: > > Hi all > > > > I got an evil idea for Python this morning -- Guido: no, it's not > > about linked lists :-) -- , and I'd like to bounce it here. But > > first, a bit of

Re: [Python-Dev] The "i" string-prefix: I18n'ed strings

2006-04-07 Thread Martin Blais
On 4/7/06, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > Martin Blais wrote: > >> P(a("Click here to forget", href="... > > > > No. That's not going to work: pygettext needs to be able to extract > > the string for the catalogs.

Re: [Python-Dev] elementtree in stdlib

2006-04-07 Thread Martin Blais
On 4/6/06, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > Bob Ippolito wrote: > > > > Try the 2.5 alpha 1 just released, and you'll see that the toplevel > > > package is now xml.etree. The module and class are still called > > > ElementTree, though. > > > > It would be nice to have new code be PEP 8

Re: [Python-Dev] The "i" string-prefix: I18n'ed strings

2006-04-07 Thread Martin Blais
On 4/7/06, Alexander Schremmer <[EMAIL PROTECTED]> wrote: > On Fri, 7 Apr 2006 10:07:26 -0400, Martin Blais wrote: > > > There are cases where you need N_() after initialization, so you need > > both, really. See the link I sent to Alex earlier (to the GNU manual > >

Re: [Python-Dev] Alternative path suggestion

2006-05-09 Thread Martin Blais
growing sleep-hours deficit. I > hope you forgive me. > > Have a good day, > Noam > ___ > Python-Dev mailing list > Python-Dev@python.org > http://mail.python.org/mailman/listinfo/python-dev > Unsubscribe: > http://mail.python.org/mail

Re: [Python-Dev] Cost-Free Slice into FromString constructors--Long

2006-05-25 Thread Martin Blais
estion I will write up a mini-PEP for discussion of this idea and will move the code in the sandbox (and out of a branch). Additionally, I must say, all that hot water in the blue lagoon this morning was a really hot justficiation for the "hot buffer" name. http://furius.ca/tmp/nfs3/html/20

Re: [Python-Dev] Let's stop eating exceptions in dict lookup

2006-05-30 Thread Martin Blais
On 5/29/06, Raymond Hettinger <[EMAIL PROTECTED]> wrote: > > If it is really 0.5%, then we're fine. Just remember that PyStone is an > amazingly uninformative and crappy benchmark. I'm still looking for a benchmark that is not amazingly uninformative and crappy. I've been looking around all day

Re: [Python-Dev] [Python-checkins] r46300 - in python/trunk: Lib/socket.py Lib/test/test_socket.py Lib/test/test_struct.py Modules/_struct.c Modules/arraymodule.c Modules/socketmodule.c

2006-05-31 Thread Martin Blais
On 5/29/06, Guido van Rossum <[EMAIL PROTECTED]> wrote: > [python-checkins] > > >> * Added socket.recv_buf() and socket.recvfrom_buf() methods, that > > >> use the buffer > > >> protocol (send and sendto already did). > > >> > > >> * Added struct.pack_to(), that is the corresponding buffer > > >>

[Python-Dev] A can of worms... (does Python C code have a new C style?)

2006-05-31 Thread Martin Blais
Hi all I'd like to know what the policy is on the source code indentation for C code in the interpreter. At the Need-for-Speed sprints, there was consensus that there is a "new" indentation for style for the Python C source files, with * indentation (emacs: c-basic-offset): 4 chars * no tabs (so

Re: [Python-Dev] [Python-checkins] r46300 - in python/trunk: Lib/socket.py Lib/test/test_socket.py Lib/test/test_struct.py Modules/_struct.c Modules/arraymodule.c Modules/socketmodule.c

2006-05-31 Thread Martin Blais
On 5/31/06, Guido van Rossum <[EMAIL PROTECTED]> wrote: > On 5/31/06, Martin Blais <[EMAIL PROTECTED]> wrote: > > So I assume you're suggesting the following renames: > > > > pack_to -> packinto > > recv_buf -> recvinto > > recvfrom

[Python-Dev] Inject some tracing ...

2006-06-09 Thread Martin Blais
ood idea to add this to the builtins in the future? (Implementation follows.) = #!/usr/bin/env python """ Inject some tracing builtins debugging purposes. """ __version__ = "$Revision: 1781 $" __author__ = "Martin Blai

[Python-Dev] subprocess.Popen(.... stdout=IGNORE, ...)

2006-06-11 Thread Martin Blais
In the subprocess module, by default the files handles in the child are inherited from the parent. To ignore a child's output, I can use the stdout or stderr options to send the output to a pipe:: p = Popen(command, stdout=PIPE, stderr=PIPE) However, this is sensitive to the buffer deadlock p

[Python-Dev] Semantic of isinstance

2006-06-26 Thread Martin Maly
Did I happen to come across a bug or an inconsistency in Python implementation, or am I hitting an intentional behavior? Thanks very much for reading and some insights! 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] Semantic of isinstance

2006-06-26 Thread Martin Maly
Thanks for the response. The code snippet I sent deals with new style classes only so I assume that in some cases isinstance falls back to old-style-like handling which then asks for __bases__ and __class__ etc, possibly incorrectly so on new style classes. Thanks again! Martin -Original

[Python-Dev] while:

2005-07-19 Thread Martin Blais
Hi Today I typed something funny in the interactive interpreter: >>> while: File "", line 1 while: ^ SyntaxError: invalid syntax it got me wondering, wouldn't it be nice if while: ... behaved as: while True: ... Since they appeared, I started using "while T

Re: [Python-Dev] while:

2005-07-20 Thread Martin Blais
On 7/20/05, Facundo Batista <[EMAIL PROTECTED]> wrote: > On 7/20/05, Martin Blais <[EMAIL PROTECTED]> wrote: > > > it got me wondering, wouldn't it be nice if > > > >while: > > ... > > > > behaved as: > > > >

Re: [Python-Dev] should doc string content == documentation content?

2005-07-24 Thread Martin Blais
On 7/24/05, Fred L. Drake, Jr. <[EMAIL PROTECTED]> wrote: > On Sunday 24 July 2005 09:34, [EMAIL PROTECTED] wrote: > > detailed as the full documentation? I'm inclined to think that while it > > might be a noble goal, it's probably not worth the effort for several > > reasons. > > All your rea

Re: [Python-Dev] cvs to bzr?

2005-08-15 Thread Martin Pool
cise import hard. The cvs->baz->bzr process is unfortunate. As Mark said, we're going to be moving away from the Arch-based code and so trying to make that process simpler. -- Martin ___ Python-Dev mailing list Python-Dev@python

Re: [Python-Dev] Replacement for print in Python 3.0

2005-09-01 Thread Martin Blais
On 9/1/05, Bill Janssen <[EMAIL PROTECTED]> wrote: > > Providing you can live with adding a pair of parentheses to that, you can > > have: > > > >def print(*args): > > sys.stdout.write(' '.join(args) + '\n') > > > > I think the language would be cleaner if it lacked this weird exception f

Re: [Python-Dev] Replacement for print in Python 3.0

2005-09-02 Thread Martin Blais
On 9/2/05, Charles Cazabon <[EMAIL PROTECTED]> wrote: > Fredrik Lundh <[EMAIL PROTECTED]> wrote: > > > > > >print('foo:', foo, 'bar:', bar, 'baz:', baz, > > > 'frobble', frobble) > > > > > > To my (admittedly biased) eyes, the second version more obviously > > > prints to a single line

Re: [Python-Dev] Replacement for print in Python 3.0

2005-09-02 Thread Martin Blais
On 9/2/05, Steven Bethard <[EMAIL PROTECTED]> wrote: > Paul Moore wrote: > > Interestingly enough, the other languages I use most (C, Java, > > VB(Script) and Javascript (under Windows Scripting Host)) all use > > functions for output. Except for C, I uniformly dislike the resulting > > code - the

Re: [Python-Dev] Replacement for print in Python 3.0

2005-09-02 Thread Martin Blais
On 9/2/05, Phillip J. Eby <[EMAIL PROTECTED]> wrote: > At 11:02 AM 9/3/2005 +1000, Nick Coghlan wrote: > >Printing the items in a sequence also becomes straightforward: > > > >print " ".join(map(str, range(10))) => output(*range(10)) > > > >Playing well with generator expressions comes for free, to

Re: [Python-Dev] Replacement for print in Python 3.0

2005-09-03 Thread Martin Blais
On 9/3/05, Paolino <[EMAIL PROTECTED]> wrote: > Martin Blais wrote: > > Then how about:: > > > > output(*(x*x for x in range(10)), iter=1) > > > Illegal in python2.4.(Wrongly ?) And makes the star solution half unuseful. > > >>> def f(*args,*

Re: [Python-Dev] Replacement for print in Python 3.0

2005-09-03 Thread Martin Blais
On 9/3/05, Barry Warsaw <[EMAIL PROTECTED]> wrote: > On Fri, 2005-09-02 at 21:42, Guido van Rossum wrote: > > I do hate having to write two parentheses -- it's more than the extra > keystrokes. It's that I have to use two shifted characters and I have > to be sure to close the construct, which ca

Re: [Python-Dev] Replacement for print in Python 3.0

2005-09-04 Thread Martin Blais
On 9/4/05, Tony Meyer <[EMAIL PROTECTED]> wrote: > > Yes. If it didn't have the redirect stuff; I would like it more if it also > didn't have the trailing comma magic. "print" is a fundamental; it deserves > to be a statement :) I don't know exactly what you mean by "fundamental", in opposition

Re: [Python-Dev] Replacement for print in Python 3.0

2005-09-05 Thread Martin Blais
On 9/4/05, Stephan Deibel <[EMAIL PROTECTED]> wrote: > On Sun, 4 Sep 2005, Guido van Rossum wrote: > > But more important to me are my own experiences exploring the > > boundaries of print. > > > > - I quite often come to a point in the evolution of a program where I > > need to change all print st

Re: [Python-Dev] Replacement for print in Python 3.0

2005-09-09 Thread Martin Blais
On 9/8/05, Antoine Pitrou <[EMAIL PROTECTED]> wrote: > > Hi, > > Le jeudi 08 septembre 2005 à 19:12 +0900, Stephen J. Turnbull a écrit : > > > It would be > > nice to be able to lose the "_()" calls to gettext(). The function > > would look to see if a message catalog was available for the cur

[Python-Dev] pygettext() without newlines (Was: Re: Replacement for print in Python 3.0)

2005-09-11 Thread Martin Blais
On 9/11/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > (Maybe someone else has already raised this point. I'm a bit behind.) > > Martin> Here goes something: for applications targeted to the web, where > Martin> newlines don't matter,

Re: [Python-Dev] os.path.diff(path1, path2)

2005-09-14 Thread Martin Blais
On 9/12/05, Nathan Bullock <[EMAIL PROTECTED]> wrote: > Just wondering if a function such as this has ever > been considered? I find that I quite often want a > function that will give me a relative path from path A > to path B. I have created such a function, but it > would be nice if it was in th

Re: [Python-Dev] GIL, Python 3, and MP vs. UP (was Re: Variant of removing GIL.)

2005-09-19 Thread Martin Blais
On 9/18/05, Guido van Rossum <[EMAIL PROTECTED]> wrote: > On 9/17/05, John J Lee <[EMAIL PROTECTED]> wrote: > > c. Since time is needed to iron out bugs (and perhaps also to reimplememt > >some pieces of code "from scratch"), very early in the life of Python 3 > >seems like the least-worst

Re: [Python-Dev] "and" and "or" operators in Py3.0

2005-09-20 Thread Martin Blais
On 9/19/05, Andrew McNamara <[EMAIL PROTECTED]> wrote: > > I agree. I find I often have an object with an optional friendly name > (label) and a manditory system name. So this sort of thing becomes common: > > '%s blah blah' % (foo.label or foo.name) > > The if-else-expression alternative wo

Re: [Python-Dev] os.path.diff(path1, path2)

2005-09-21 Thread Martin Blais
On 9/20/05, Greg Ewing <[EMAIL PROTECTED]> wrote: > Matthias Andreas Benkard wrote: > > * In a recent project, I had occasion to store pathnames of >picture files in a relational database. I wanted to store >the pathnames relative to a user-chosen "Pictures" >directory, so that it could

Re: [Python-Dev] Pythonic concurrency - cooperative MT

2005-10-01 Thread Martin Blais
Hi. I hear a confusion that is annoying me a bit in some of the discussions on concurrency, and I thought I'd flush my thoughts here to help me clarify some of that stuff, because some people on the list appear to discuss generators as a concurrency scheme, and as far as I know (and please correct

Re: [Python-Dev] Pythonic concurrency - cooperative MT

2005-10-02 Thread Martin Blais
On 10/1/05, Antoine <[EMAIL PROTECTED]> wrote: > > > like this with their "deferred objects", no? I figure they would > > need to do something like this too. I will have to check.) > > A Deferred object is just the abstraction of a callback - or, rather, two > callbacks: one for success and one f

Re: [Python-Dev] Pythonic concurrency - cooperative MT

2005-10-02 Thread Martin Blais
On 10/2/05, Christopher Armstrong <[EMAIL PROTECTED]> wrote: > On 10/3/05, Martin Blais <[EMAIL PROTECTED]> wrote: > > On 10/1/05, Antoine <[EMAIL PROTECTED]> wrote: > > > > > > > like this with their "deferred objects", no? I figure they

[Python-Dev] Divorcing str and unicode (no more implicit conversions).

2005-10-02 Thread Martin Blais
Hi. Like a lot of people (or so I hear in the blogosphere...), I've been experiencing some friction in my code with unicode conversion problems. Even when being super extra careful with the types of str's or unicode objects that my variables can contain, there is always some case or oversight whe

Re: [Python-Dev] Divorcing str and unicode (no more implicit conversions).

2005-10-03 Thread Martin Blais
On 10/3/05, M.-A. Lemburg <[EMAIL PROTECTED]> wrote: > > > > I'm not sure it's a sensible default. > > Me neither, especially since this would make it impossible > to write polymorphic code - e.g. ', '.join(list) wouldn't > work anymore if list contains Unicode; dito for u', '.join(list) > with lis

Re: [Python-Dev] unifying str and unicode

2005-10-03 Thread Martin Blais
On 10/3/05, Antoine Pitrou <[EMAIL PROTECTED]> wrote: > > > > If that's how things were designed, then Python's entire standard > > > brary (not to mention third-party libraries) is not "unicode safe" - > > > to quote your own words - since many functions may return 8-bit strings > > > containing n

[Python-Dev] __doc__ behavior in class definitions

2005-10-07 Thread Martin Maly
Hello Python-Dev, My name is Martin Maly and I am a developer at Microsoft, working on the IronPython project with Jim Hugunin. I am spending lot of time making IronPython compatible with Python to the extent possible. I came across a case which I am not sure if by design or a bug in Python

Re: [Python-Dev] Divorcing str and unicode (no more implicit conversions).

2005-10-14 Thread Martin Blais
On 10/3/05, Michael Hudson <[EMAIL PROTECTED]> wrote: > Martin Blais <[EMAIL PROTECTED]> writes: > > > How hard would that be to implement? > > import sys > reload(sys) > sys.setdefaultencoding('undefined') Hmmm any p

Re: [Python-Dev] Divorcing str and unicode (no more implicit conversions).

2005-10-16 Thread Martin Blais
On 10/15/05, Reinhold Birkenfeld <[EMAIL PROTECTED]> wrote: > Martin Blais wrote: > > On 10/3/05, Michael Hudson <[EMAIL PROTECTED]> wrote: > >> Martin Blais <[EMAIL PROTECTED]> writes: > >> > >> > How hard would t

[Python-Dev] enumerate with a start index

2005-10-19 Thread Martin Blais
Hi Just wondering, would anyone think of it as a good idea if the enumerate() builtin could accept a "start" argument? I've run across a few cases where this would have been useful. It seems generic enough too. ___ Python-Dev mailing list Python-Dev@py

[Python-Dev] a different kind of reduce...

2005-10-31 Thread Martin Blais
Hi I find myself occasionally doing this: ... = dirname(dirname(dirname(p))) I'm always--literally every time-- looking for a more functional form, something that would be like this: # apply dirname() 3 times on its results, initializing with p ... = repapply(dirname, 3, p) There is a

Re: [Python-Dev] Coroutines (PEP 342)

2005-11-17 Thread Martin Blais
On 11/14/05, Bruce Eckel <[EMAIL PROTECTED]> wrote: > I just finished reading PEP 342, and it appears to follow Hoare's > Communicating Sequential Processes (CSP) where a process is a > coroutine, and the communicaion is via yield and send(). It seems that > if you follow that form (and you don't s

[Python-Dev] Linked lists

2005-12-14 Thread Martin Blais
Hello again. As I'm digging deeper into LISP and Scheme these days, I was wondering, is there a good compelling reason why in Python we don't have a native singly-linked and doubly-linked list types? That is, reasons other than - "you can get by without it" (sometimes I *want* lists), or - "you c

Re: [Python-Dev] status of development documentation

2005-12-22 Thread Martin Blais
On 12/21/05, Barry Warsaw <[EMAIL PROTECTED]> wrote: > On Wed, 2005-12-21 at 20:36 +0100, Fredrik Lundh wrote: > > > I'm not really interested in optimizing for you, I'm interested in > > optimizing > > for everyone else. They already know HTML. They don't know ReST, and > > I doubt they care ab

Re: [Python-Dev] reST limitations? (was Re: status of development documentation)

2005-12-22 Thread Martin Blais
On 12/22/05, Phillip J. Eby <[EMAIL PROTECTED]> wrote: > At 04:08 PM 12/22/2005 -0500, Martin Blais wrote: > >ReST does an amazing job of inferring generic document structures from > >text, but for documenting source code, you really want to be able to > >say "

Re: [Python-Dev] deque alternative (was: Linked lists)

2005-12-25 Thread Martin Blais
On 12/25/05, Christian Tismer <[EMAIL PROTECTED]> wrote: > Guido van Rossum wrote: > > > Python's philosophy about (built-in) data types, inherited from ABC, > > is to offer a few powerful clearly distinct choices rather than lots > > of alternatives with overlapping usages. This reduces the time i

Re: [Python-Dev] deque alternative (was: Linked lists)

2005-12-26 Thread Martin Blais
On 12/25/05, Josiah Carlson <[EMAIL PROTECTED]> wrote: > > Tim Peters <[EMAIL PROTECTED]> wrote: > > Like Phillip Eby, I use 2-tuples for this when I feel the need > > (usually during a backtracking graph search, to keep track of paths > > back to the root in a space-efficient way), and am happy wi

[Python-Dev] (back to): Linked lists -- (was: deque alternative)

2005-12-27 Thread Martin Blais
On 12/26/05, Josiah Carlson <[EMAIL PROTECTED]> wrote: > > A "flat" list or tuple would certainly be more space-efficient up to > > this point. But when the graph branches, the 2-tuple representation > > allows *sharing* the common path suffix (which may be very long!): > ... > > If there's an N-w

Re: [Python-Dev] Python 2.7 patch levels turning two digit

2014-06-22 Thread Martin v. Löwis
e severe breakage of 2.7 installations, much more problematic than switching to two-digit version numbers. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail

Re: [Python-Dev] Python 2.7 patch levels turning two digit

2014-06-23 Thread Martin v. Löwis
available to MSDN users. It's just not available through regular sales channels anymore. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Python 2.7 patch levels turning two digit

2014-06-23 Thread Martin v. Löwis
odules, so installation compiles the modules from scratch. This is easier, as it can use the ABI of the Python which will be installed to. If you go the "parallel ABIs" route, extension authors have to provide two parallel sets of packages as well. Given 32-bi

Re: [Python-Dev] Python 2.7 patch levels turning two digit

2014-06-23 Thread Martin v. Löwis
tc., all which know how to deal with Python minor version numbers, but are unaware of the notion of competing ABIs on Windows (except that they know how to deal with 32-bit vs. 64-bit). Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org h

Re: [Python-Dev] Python 2.7 patch levels turning two digit

2014-06-23 Thread Martin v. Löwis
, and it will get bigger the more time passes. Playing-the-role-of-Cassandra-ly y'rs, Martin ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/opti

Re: [Python-Dev] PEP 471: scandir(fd) and pathlib.Path(name, dir_fd=None)

2014-07-06 Thread Martin v. Löwis
hat the generator will also support the other generator methods, in particular .send and .throw? Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.or

Re: [Python-Dev] buildbot.python.org down again?

2014-07-10 Thread Martin v. Löwis
useful, so everybody makes their own list. I was maintaining such a list in the Python wiki for some time, until a board member decided that a publically-visible inventory is not appropriate, and it must be a password-protected wiki - where I now keep forgetting where the wiki is, in the first place, l

Re: [Python-Dev] PEP 3121, 384 Refactoring Issues

2014-07-14 Thread Martin v. Löwis
brary. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Bluetooth 4.0 support in "socket" module

2014-07-30 Thread Martin v. Löwis
e then free to contribute support for their platforms. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%

Re: [Python-Dev] Surely "nullable" is a reasonable name?

2014-08-05 Thread Martin v. Löwis
flexibility in naming is greater. zeroes=True formally creates a subtype (of string), and it doesn't hurt that it is not an adjective. "allow_zeroes" might be more descriptive. bitwise=True doesn't really create a subtype of int. For the feature in question, I f

Re: [Python-Dev] PEP 4000 to explicitly declare we won't be doing a Py3k style compatibility break again?

2014-08-21 Thread Martin v. Löwis
enge is "my dependencies are not ported to Python 3". There is little you can do about it, short of porting the dependencies yourself (fortunately, Python and most of its libraries are free software). Regards, Martin ___ Python-Dev mailing list P

Re: [Python-Dev] Bytes path support

2014-08-21 Thread Martin v. Löwis
ot;ls -l" in your shell, the "system" (not just the kernel - but ultimately the terminal program, which might be the console driver, or an X11 application) will interpret the file name as having an encoding, and render them with a font. So for Python, the question is: whi

Re: [Python-Dev] https:bugs.python.org -- Untrusted Connection (Firefox)

2014-08-21 Thread Martin v. Löwis
ld include "python.org" as a server name, which is considered risky regardless of where the service is hosted. There are solutions to that as well, of course. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org https://mail.

Re: [Python-Dev] Bytes path support

2014-08-22 Thread Martin v. Löwis
ecial characters, but replaces the lower-case characters with Hebrew. So yes, Unix doesn't mandate ASCII-compatible encodings; but it still mandates ASCII-inspired encodings. I wonder how you would run "gcc", though, on an SI 960 system; you'ld have to type חדד. Regards, Mar

Re: [Python-Dev] Bytes path support

2014-08-26 Thread Martin v. Löwis
Am 24.08.14 03:11, schrieb Greg Ewing: > Isaac Morland wrote: >> In HTML 5 it allows non-ASCII-compatible encodings as long as U+FEFF >> (byte order mark) is used: >> >> http://www.w3.org/TR/html-markup/syntax.html#encoding-declaration >> >> Not sure about XML. > > According to Appendix F here: >

Re: [Python-Dev] Multilingual programming article on the Red Hat Developer blog

2014-09-17 Thread Martin v. Löwis
> > But is that true? It used to be true, and stopped being so with PEP 393. In particular, Python 3.2 and before would expose UTF-16 in the narrow build, so the elements of a string would be code units. Since Python 3.3, the surrogate code points are not lon

Re: [Python-Dev] 3.5 release schedule PEP

2014-09-25 Thread Martin v. Löwis
eakage elsewhere (as also discussed): - some code will fail because of the space in the path - some installations will fail because of the restricted access to Program Files (which, of course, is also the main reason why people want that install location) It's of

Re: [Python-Dev] Impact of Windows PowerShell OneGet ?

2014-10-30 Thread Martin v. Löwis
t this only supports exe and msi packages. I haven't seen anything resembling dependencies in OneGet. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://m

Re: [Python-Dev] Impact of Windows PowerShell OneGet ?

2014-10-30 Thread Martin v. Löwis
> repo. Python is already available in Chocolatey: https://chocolatey.org/packages/python Given that OneGet intends to support Chocolatey as a repository, it might just work already. All python.org would have to guarantee is stable URLs for the Python msi fil

Re: [Python-Dev] New Windows installer for Python 3.5

2015-01-13 Thread Martin v. Löwis
we can arrange to somehow support relative paths in co_filename. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-

Re: [Python-Dev] PEP 370 - per-user scripts directory on Windows

2015-02-10 Thread Martin v. Löwis
earn how to build the installer. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] PEP 370 - per-user scripts directory on Windows

2015-02-10 Thread Martin v. Löwis
t if the rationale is a bit more verbose, a bug tracker item would be right. All IMO, of course. Martin ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/o

Re: [Python-Dev] PEP 370 - per-user scripts directory on Windows

2015-02-12 Thread Martin v. Löwis
ing to implement it). So you are certainly not alone here, either. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-de

Re: [Python-Dev] [python-committers] Do we need to sign Windows files with GnuPG?

2015-04-16 Thread Martin v. Löwis
know if I can help providing PSF organization verification. > > I already completed that for the current cycle. > I had asked the PSF for a StartSSL certificate when the previous certificate expired, and the PSF was not able to provide one. After waiting several weeks for the PSF t

Re: [Python-Dev] [python-committers] Do we need to sign Windows files with GnuPG?

2015-04-16 Thread Martin v. Löwis
xt to the original file. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Python3 Stable ABI

2015-04-16 Thread Martin v. Löwis
;s typically the case that changes to the header files didn't consider the stable ABI, so each change needs to be reviewed manually. Typically, further changes to other source files will be necessary. Regards, Martin ___ Python-Dev mailing list Python

Re: [Python-Dev] [python-committers] Do we need to sign Windows files with GnuPG?

2015-04-17 Thread Martin v. Löwis
t to Verisign. > > When was that ? I never received such a request. I sent the request to Jesse Noller, Noah Kantrowitz and Kurt Kaiser on 2014-03-17. On 2014-04-15, Jesse indicated that he had given up. Regards, Martin ___ Python-Dev mailing li

Re: [Python-Dev] Unicode literals in Python 2.7

2015-05-07 Thread Martin v. Löwis
code, then you might be able to hack your C library's stdio implementation to delegate fread calls to your code. I recommend to use Python 3 instead. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo

Re: [Python-Dev] [python-committers] How shall we conduct the Python 3.5 beta and rc periods? (Please vote!)

2015-05-22 Thread Martin v. Löwis
a repository URL and branch name into the buildbot configuration, and a post-push hook on the repository to trigger the build. It's actually possible to configure a bitbucket POST hook to trigger a buildbot build, but we haven't yet integrated that into the buildbot master. Regards, Martin

Re: [Python-Dev] PEP 453 (ensurepip) updated

2013-10-22 Thread Martin v. Löwis
ding timely reviews). I suggest that some of the stuff that needs to be done still is delegated, so that Donald doesn't have to do all of it. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/lis

Re: [Python-Dev] PEP 384 (stable api) question

2013-11-07 Thread Martin v. Löwis
nge you see in your compiler warnings. 3.4 is not released yet, perhaps there is something that can be done. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail

Re: [Python-Dev] [Python-checkins] cpython: Issue #19512: Add a new _PyDict_DelItemId() function, similar to

2013-11-08 Thread Martin v. Löwis
in the #ifdef). Removals cause linker failures. It would be possible to automatically find out whether any functions declared under the stable API are actually exported also, by parsing the preprocessor output for Python.h Regards, Martin ___ Pyth

Re: [Python-Dev] unicode Exception messages in py2.7

2013-11-15 Thread Martin v. Löwis
do it, but now it's done - and you might not even change your code even if Python 2.7.x gets changed, since you might want to support older 2.7.x release for some time. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org https://mail.py

Re: [Python-Dev] Accepting PEP 3154 for 3.4?

2013-11-19 Thread Martin v. Löwis
fferedReader might even be included in the standard library. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Accepting PEP 3154 for 3.4?

2013-11-19 Thread Martin v. Löwis
Am 19.11.13 21:28, schrieb Antoine Pitrou: > Well, unless you propose a patch before Saturday, I will happily ignore > your proposal. See http://bugs.python.org/file32709/framing.diff Regards, Martin ___ Python-Dev mailing list Python-Dev@pyth

Re: [Python-Dev] Accepting PEP 3154 for 3.4?

2013-11-19 Thread Martin v. Löwis
he payload (except that HTTP makes it worse by making them optional). Of course, a single length field has other drawbacks, such as having to pickle everything before sending out the first bytes. Regards, Martin ___ Python-Dev mailing list Python-D

Re: [Python-Dev] Accepting PEP 3154 for 3.4?

2013-11-20 Thread Martin v. Löwis
e for this "difficult to implement" property is that the framing is in putting framing "in the middle" of the stack (i.e. not really *below* pickle itself, but into pickle but below the opcodes - just like http chunked transfer is "

Re: [Python-Dev] PEP 428 - pathlib - ready for approval

2013-11-20 Thread Martin v. Löwis
two files in the same directory that differ only in case - i.e. the system would be case-sensitive. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.p

Re: [Python-Dev] PEP 0404 and VS 2010

2013-11-22 Thread Martin v. Löwis
t for 2.7 at this point. I don't think a PEP is necessary - Guido essentially pre-approved changes needed to make Python 2.7 work with newer tools and operating systems. A patch for this would be appreciated - perhaps you would want to put it into your sandbox on

Re: [Python-Dev] PEP 0404 and VS 2010

2013-11-22 Thread Martin v. Löwis
would be allowed to call something "Python" without further qualification (except for the traditional CPython release). Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscri

Re: [Python-Dev] PEP 0404 and VS 2010

2013-11-22 Thread Martin v. Löwis
ut changes it's meaning a lot. Hmm. This isn't the original *question*. Instead, the question read # Can I rely on PEP 404 that the "Python 2.8" namespace never will clash # with CPython? So while the word "Stackless" wasn't removed everywhere, it cer

Re: [Python-Dev] PEP 0404 and VS 2010

2013-11-22 Thread Martin v. Löwis
can I get one? You are not a Python committer yet, are you? If you are, go to hg.python.org/cpython, and invoke the server-side clone. If you are not - does your company agree if you would become one? In any case, patches or a clone on bitbucket would work just as well. Regards, Martin _

Re: [Python-Dev] Running the unit test as root/administrator

2013-12-05 Thread Martin v. Löwis
or the spwd module? Anybody could run the test suite, and somebody might run it as root - so you must be asking for something else. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsub

Re: [Python-Dev] Running the unit test as root/administrator

2013-12-05 Thread Martin v. Löwis
Am 05.12.13 16:21, schrieb Vajrasky Kok: > On Thu, Dec 5, 2013 at 11:06 PM, "Martin v. Löwis" wrote: >> >> Can you please phrase your question more explicit? What is it that >> you want to be done before writing unit tests for the spwd module? > > I am asking

Re: [Python-Dev] Running the unit test as root/administrator

2013-12-05 Thread Martin v. Löwis
w days for most of the year would be appreciated (although we can also deal with operators that leave for longer periods of time - we just disable the slave then, and reenable it when the admin brings it back up). The commitment should be for a "long" period, i.e. a few years. Regards, Mart

Re: [Python-Dev] Fwd: Python 2.x and 3.x usage survey

2013-12-31 Thread Martin v. Löwis
l out surveys ;-) So for the Python 4 survey, I propose to have just a single question: * Have you heard of Python 4? That will prove that Python 4 is even faster than Python 3 :-) Of course, that is also because it has a JIT compiler, and runs on 16 cores with no GIL. Regards, Martin _

<    1   2   3   4   5   6   7   8   9   10   >