Hello there.
I recently reactivated http://bugs.python.org/issue4448 because of the need to
port http://bugs.python.org/issue4879 to 3.1
This isn't a straightforward port because of the changes in the IO library.
I'd appreciate if someone could shed some light on the comment in line 268 in
On Wed, 21 Jan 2009 03:10:24 pm Terry Reedy wrote:
Steven D'Aprano wrote:
...
In a generator expression, we have:
yielded-expr for-clause if-clause
while the corresponding nested statements are:
for-clause if-clause yielded-expr
The three clauses are neither in the same
It only becomes a problem when someone wants to both support Windows
users of their extension modules with pre-built binaries, but *also*
doesn't want to set up the appropriate environment for building such
binaries (currently a minimum bar of Visual Studio Express on a Windows
VM instance).
On Tue, Jan 20, 2009 at 9:19 PM, Martin v. Löwis mar...@v.loewis.de wrote:
That's a non-starter for anyone who incorporates Python in an existing
MSVC-based development environment.
surely incorporating libpython2.5.dll.a or libpython2.6.dll.a, along
with the .def and the importlib that's
next task: beat the crap out of libmsvcr80.a and /mingw/include/*.h,
repeat until success.
https://sourceforge.net/tracker/index.php?func=detailaid=2134161group_id=2435atid=352435
roumen, it looks like you've been and done that, already - thank you!
On Wed, 21 Jan 2009 at 21:46, Steven D'Aprano wrote:
On Wed, 21 Jan 2009 03:10:24 pm Terry Reedy wrote:
It is a carefully designed 1 to
1 transformation between multiple nested statements and a single
expression.
I'm sure that correspondence is obvious to some, but it wasn't obvious
to me,
FWIW, there are a few historic languages that implement a compound
for-loop: Algol 68, PL/I, SAS et al allow constructs that, if
translated to an equivalent (currently invalid) Python-style syntax
would look like this
for item in iterable while predicate:
suite
Some also allow for an until
- Mensaje original
De: Gerald Britton gerald.brit...@gmail.com
Para: rdmur...@bitdance.com
CC: python-dev@python.org
Enviado: miércoles, 21 de enero, 2009 11:38:01
Asunto: Re: [Python-Dev] PEP 3142: Add a while clause to generator
expressions
FWIW, there are a few historic
OK then, what is the feeling out there about extending the for
syntax in general (and by extension list comprehensions and generator
expressions) by adding an optional while clause like this:
for item in iterable [while [predicate | not predicate]:
suite
The predicate would be tested after
The following was supposed to go to the list:
18:29 Gerald Britton:
Yes you could have long lines, but you wouldn't have to use it. You
could still code it up as you would today. It might be convenient for
shorter expressions though.
12:12 PM Ludvig Ericson:
On Jan 21, 2009, at 16:51,
On Wed, Jan 21, 2009, Gerald Britton wrote:
OK then, what is the feeling out there about extending the for
syntax in general (and by extension list comprehensions and generator
expressions) by adding an optional while clause like this:
for item in iterable [while [predicate | not
In comp.lang.python, there has been some discussion of the fact that
there are no guidelines in PEP 8 for constants:
http://groups.google.com/group/comp.lang.python/browse_thread/thread/ed964fe8ad6da7b7
Is there any sentiment that PEP 8 should be updated to reflect the common
usage of ALL_CAPS
On Tue, Jan 20, 2009 at 11:01 PM, Terry Reedy tjre...@udel.edu wrote:
Guido van Rossum wrote:
2009/1/20 Raymond Hettinger pyt...@rcn.com:
I'm at a loss of why the notice needs to be there at all.
There's a difference between contributing a whole file and
contributing a patch. Patches do
On Wed, Jan 21, 2009 at 10:00 AM, Aahz a...@pythoncraft.com wrote:
In comp.lang.python, there has been some discussion of the fact that
there are no guidelines in PEP 8 for constants:
http://groups.google.com/group/comp.lang.python/browse_thread/thread/ed964fe8ad6da7b7
Is there any sentiment
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Vitor Bosshard wrote:
Some also allow for an until keyword. I'm not suggesting that we
need to do this in Python; it's just interesting to note that there is
some precedent for this approach.
Well, you could propose changing the for loop
sorry, martin - i thought the win32 builds generated python25.lib,
python25.dll
Correct.
and python25.def
No.
so as to fit into the 8.3 filename convention.
No. It generates python25.lib because that's the import library
for python25.dll. It calls it python25.dll because the lib prefix
In article pine.lnx.4.64.0901210811430.14...@kimball.webabinitio.net,
rdmur...@bitdance.com wrote:
...
I understand that you are saying that 'while x' is used in the same
logical sense (take a different action when x is no longer true),
but that I don't feel that that is enough to say that it
this is a progress report on compiling python using entirely free
software tools, no proprietary compilers or operating systems
involved, yet still linking and successfully running with msvcr80
assemblies. manifests and rc files, which are compiled to internal
resources, have been added.
various
http://bugs.python.org/issue5010
correction: that's http://bugs.python.org/issue5026 apologies for the mix-up.
also,for the msvcrt80 build, it is _essential_ that you use a patched
version of mingw32-runtime, see:
Steven D'Aprano wrote:
On Wed, 21 Jan 2009 03:10:24 pm Terry Reedy wrote:
Steven D'Aprano wrote:
The three clauses are neither in the same order, nor are they in
reverse order.
They are in the same order but rotated, with the last brought around
to the front to emphasize it. Did you really
On Wed, Jan 21, 2009 at 7:42 PM, Martin v. Löwis mar...@v.loewis.de wrote:
sorry, martin - i thought the win32 builds generated python25.lib,
python25.dll
Correct.
and python25.def
No.
so as to fit into the 8.3 filename convention.
No. It generates python25.lib because that's the
ok, so - different from what's being generated by ./configure under
msys under wine or native win32 - what's being generated (libpython 2
. 5 . a and libpython 2 . 5 . dll . a) is more akin to the cygwin
environment.
therefore, there's absolutely no doubt that the two are completely
Have you made some benchmarks like pystone?
Cheers,
Cesare
On Wed, Jan 21, 2009 08:50PM, Luke Kenneth Casson Leighton wrote:
this is a progress report on compiling python using entirely free
software tools, no proprietary compilers or operating systems
involved, yet still linking and
Brett Cannon schrieb:
I have been writing up the initial docs for importlib and four things struck
me:
1. Why is three space indents the preferred indentation level?
As said, it matches directive content with directive headers nicely.
Ben's solution is nice as well, but now that we have
Terry Reedy wrote:
Luke Kenneth Casson Leighton wrote:
i look forward to seeing the same incremental improvement applied to
the development of python, evidence of which would be clearly seen by
the acceptance of one of the following patches, one of which is dated
2003:
Mail to fdr...@acm.org is bouncing; I don't know whether it's a
temporary failure. Does anyone have another address for him?
- Forwarded message from Mail Delivery System
mailer-dae...@bag.python.org -
Date: Wed, 21 Jan 2009 22:48:49 +0100 (CET)
From: Mail Delivery System
On Wed, Jan 21, 2009 at 13:53, Georg Brandl g.bra...@gmx.net wrote:
Brett Cannon schrieb:
I have been writing up the initial docs for importlib and four things struck
me:
1. Why is three space indents the preferred indentation level?
As said, it matches directive content with directive
On Wed, Jan 21, 2009 at 6:39 PM, Aahz a...@pythoncraft.com wrote:
Mail to fdr...@acm.org is bouncing; I don't know whether it's a
temporary failure. Does anyone have another address for him?
/me channels Fred: Use freddr...@verizon.net until the acm.org account
is back up.
--
Benji York
On 21Jan2009 14:02, Tres Seaver tsea...@palladion.com wrote:
| Vitor Bosshard wrote:
| BTW, there is already an until keyword in python, it's called while not
;)
|
| 'until' is used at least in some languages (Pascal, Modula*, maybe Ada?)
| for a terminate at bottom loop (one guaranteed to run
Yes, that's what I commonly see.
On Wed, Jan 21, 2009 at 6:42 PM, Benjamin Peterson benja...@python.org wrote:
On Wed, Jan 21, 2009 at 12:48 PM, Guido van Rossum gu...@python.org wrote:
On Wed, Jan 21, 2009 at 10:00 AM, Aahz a...@pythoncraft.com wrote:
In comp.lang.python, there has been some
Cameron Simpson wrote:
Back at uni we had to implement a small language in our compilers class
and the lecturer had specified a proper generic while loop, thus:
loop:
suite
while invariant
suite
endloop
In Python, that is spelled
while True:
suite
if not invariant: break
On Wed, Jan 21, 2009 at 12:48 PM, Guido van Rossum gu...@python.org wrote:
On Wed, Jan 21, 2009 at 10:00 AM, Aahz a...@pythoncraft.com wrote:
In comp.lang.python, there has been some discussion of the fact that
there are no guidelines in PEP 8 for constants:
On Wed, Jan 21, 2009 at 12:48 PM, Guido van Rossum gu...@python.org wrote:
On Wed, Jan 21, 2009 at 10:00 AM, Aahz a...@pythoncraft.com wrote:
In comp.lang.python, there has been some discussion of the fact that
there are no guidelines in PEP 8 for constants:
On Wed, Jan 21, 2009, Benjamin Peterson wrote:
On Wed, Jan 21, 2009 at 12:48 PM, Guido van Rossum gu...@python.org wrote:
On Wed, Jan 21, 2009 at 10:00 AM, Aahz a...@pythoncraft.com wrote:
In comp.lang.python, there has been some discussion of the fact that
there are no guidelines in PEP 8
Gerald Britton wrote:
OK then, what is the feeling out there about extending the for
syntax in general (and by extension list comprehensions and generator
expressions) by adding an optional while clause like this:
for item in iterable [while [predicate | not predicate]:
suite
The
Cameron Simpson wrote:
On 21Jan2009 14:02, Tres Seaver tsea...@palladion.com wrote:
| Vitor Bosshard wrote:
| BTW, there is already an until keyword in python, it's called while
not ;)
|
| 'until' is used at least in some languages (Pascal, Modula*, maybe Ada?)
| for a terminate at
Terry Reedy wrote:
Steven D'Aprano wrote:
Is that Xah Lee? It sounds like the sort of thing he'd say.
It was the thread he started, but not him. He contributed other idiocies.
Xah Lee is still around? I would have expected him to get bored and go
away years ago...
Cheers,
Nick.
--
Nick
37 matches
Mail list logo