On Jul 22, 2010, at 12:00 AM, Stephen J. Turnbull wrote:
My understanding of OSError is that the OS is saying sorry, what you
tried to do is perfectly reasonable under some circumstances, but you
can't do that now. ENOMEM, EPERM, ENOENT etc fit this model.
RuntimeError OTOH is basically
On Wed, Jul 21, 2010 at 07:28:24PM -0600, average wrote:
As to your question of how best to handle inquiries from the blue or
noisy questions, I personally prefer the following (only slightly
tongue-in-cheek):
...After a sufficient period of waiting, say a day or two with no response:
Glyph Lefkowitz wrote:
The selection of RuntimeError in this particular case seems somewhat random and
ad-hoc,
Indeed -- usually a RuntimeError indicates that something
concerning the internals of Python itself is screwed up,
e.g. attempting to execute invalid bytecode.
The fact that it
On Wed, Jul 21, 2010 at 16:58, Antoine Pitrou solip...@pitrou.net wrote:
On Wed, 21 Jul 2010 11:42:00 -0400
Jesse Noller jnol...@gmail.com wrote:
On Wed, Jul 21, 2010 at 11:11 AM, Tim Golden m...@timgolden.me.uk
wrote:
[...snip...]
A messy discussion turned on the question of garbage
On Thu, Jul 22, 2010 at 9:51 AM, Brett Cannon br...@python.org wrote:
On Wed, Jul 21, 2010 at 16:58, Antoine Pitrou solip...@pitrou.net wrote:
On Wed, 21 Jul 2010 11:42:00 -0400
Jesse Noller jnol...@gmail.com wrote:
On Wed, Jul 21, 2010 at 11:11 AM, Tim Golden m...@timgolden.me.uk
wrote:
Greg Ewing writes:
Glyph Lefkowitz wrote:
The selection of RuntimeError in this particular case seems
somewhat random and ad-hoc,
Well, I guess we'd have to catch the person who wrote the code and
ask.
Maybe this is something that could be considered in the
exception hierarchy
On Jul 21, 2010, at 04:11 PM, Tim Golden wrote:
The email module needs some work in Py3. David Murray has been given
some money by the PSF but needs more from other sources to complete
the work. This is hampered by the legalities around commercial
organisations making donations to not-for-profits
Oleg Broytman writes:
On Wed, Jul 21, 2010 at 07:28:24PM -0600, average wrote:
As to your question of how best to handle inquiries from the blue or
noisy questions, I personally prefer the following (only slightly
tongue-in-cheek):
...After a sufficient period of waiting, say a
On Thu, 22 Jul 2010 17:50:00 +0900
Stephen J. Turnbull step...@xemacs.org wrote:
Greg Ewing writes:
Glyph Lefkowitz wrote:
The selection of RuntimeError in this particular case seems
somewhat random and ad-hoc,
Well, I guess we'd have to catch the person who wrote the code and
Am 13.07.2010 15:35, schrieb Antoine Pitrou:
On Tue, 13 Jul 2010 15:20:23 +0100
Michael Foord fuzzy...@voidspace.org.uk wrote:
On 13/07/2010 15:17, Reid Kleckner wrote:
On Mon, Jul 12, 2010 at 2:07 PM, Nick Coghlanncogh...@gmail.com wrote:
MRAB's module offers a superset of re's
On Thu, Jul 22, 2010 at 06:02:33PM +0900, Stephen J. Turnbull wrote:
Oleg Broytman writes:
On Wed, Jul 21, 2010 at 07:28:24PM -0600, average wrote:
As to your question of how best to handle inquiries from the blue or
noisy questions, I personally prefer the following (only slightly
On Fri, Jul 16, 2010 at 6:08 PM, Georg Brandl g.bra...@gmx.net wrote:
Nevertheless, the authoritative reference for our regex engine is its
docs, i.e. http://docs.python.org/library/re.html -- and that states
clearly that inline flags apply to the whole regex.
I think with a new regex
Hello,
during the last year, I have developed a couple of quickening-based
optimizations for the Python 3.1 interpreter. As part of my PhD
programme, I have published a first technique that combines quickening
with inline caching at this year's ECOOP, and subsequently extended
this technique to
On Thu, 22 Jul 2010 08:51:57 +0100
Brett Cannon br...@python.org wrote:
That's an option. I just remember Tim bringing up something about that
approach that didn't quite work as a complete replacement for __del__.
Basically the whole setting a module's globals to None was done before gc
On Thu, 22 Jul 2010 07:02:33 pm Stephen J. Turnbull wrote:
OTOH I think as quick as possible an answer is a good idea here. It
saves the intended audience the thought about whether to reply or
not, and an instant, constructive answer says that somebody cares.
+1
I think that waiting a day
2010/7/22 Antoine Pitrou solip...@pitrou.net:
On Thu, 22 Jul 2010 08:51:57 +0100
Brett Cannon br...@python.org wrote:
That's an option. I just remember Tim bringing up something about that
approach that didn't quite work as a complete replacement for __del__.
Basically the whole setting a
Le jeudi 22 juillet 2010 à 07:23 -0500, Benjamin Peterson a écrit :
2010/7/22 Antoine Pitrou solip...@pitrou.net:
On Thu, 22 Jul 2010 08:51:57 +0100
Brett Cannon br...@python.org wrote:
That's an option. I just remember Tim bringing up something about that
approach that didn't quite
Hello, guys.
Python has more and more reserved words over time. It becomes quite annoying,
since you can not use variables and attributes of such names. Suppose I want to
make an XML parser that reads a document and returns an object with attributes
corresponding to XML element attributes:
On Thu, 22 Jul 2010 13:22:48 +0200
stefan brunthaler sbruntha...@gmail.com wrote:
I wonder whether you would be interested in integrating these
optimizations with the Python 3 distribution, hence this mail. I could
send copies of the papers, as well as provide my prototype source code
to
On 22 July 2010 15:04, Bartosz Tarnowski bartosz-tarnow...@zlotniki.pl wrote:
What should I do then, when the attribute is a reserver word?
You would use elem.getattr('param'). That's what it's for.
Let all reserved words be preceded with some symbol, i.e. ! (exclamation
mark).
Oh, God, no.
On Thu, 22 Jul 2010, Bartosz Tarnowski wrote:
[]
My proposal: let's make a syntax change.
I'm pretty sure this belongs on python-ideas.
Let all reserved words be preceded with some symbol, i.e. ! (exclamation
mark). This goes also for standard library global identifiers.
!for boo in
Hello
As decided during the summit, I've reverted Distutils in the py3k
branch, to its release3.1-maint state. This was already done in 2.7.
I will only work on bugfixes for now on for distutils. Everything new
is done in distutils2. So if you have a feature request, use the
distutils2 component
Note that I'll revert Doc/distutils as well, but I need to check first
with Ronald a few Mac OS X points.
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
2010/7/22 Antoine Pitrou solip...@pitrou.net:
Le jeudi 22 juillet 2010 à 07:23 -0500, Benjamin Peterson a écrit :
2010/7/22 Antoine Pitrou solip...@pitrou.net:
On Thu, 22 Jul 2010 08:51:57 +0100
Brett Cannon br...@python.org wrote:
That's an option. I just remember Tim bringing up
Is the source code under an open source non-copyleft license?
I am (unfortunately) not employed or funded by anybody, so I think
that I can license/release the code as I see fit.
Have you checked that the whole regression test suite passes?
Currently, I am sure my prototype will not pass the
On Thu, Jul 22, 2010 at 9:34 PM, Georg Brandl g.bra...@gmx.net wrote:
So, I thought there wasn't a difference in performance for this use case
(which is compiling a lot of regexes and matching most of them only a
few times in comparison). However, I found that looking at the regex
caching is
On 2010-07-22, at 14:45 , Simon Brunning wrote:
On 22 July 2010 15:04, Bartosz Tarnowski bartosz-tarnow...@zlotniki.pl
wrote:
What should I do then, when the attribute is a reserver word?
You would use elem.getattr('param'). That's what it's for.
getattr(elem, 'param') I believe, rather
Am 22.07.2010 13:29, schrieb Antoine Pitrou:
Le jeudi 22 juillet 2010 à 07:23 -0500, Benjamin Peterson a écrit :
2010/7/22 Antoine Pitrou solip...@pitrou.net:
On Thu, 22 Jul 2010 08:51:57 +0100
Brett Cannon br...@python.org wrote:
That's an option. I just remember Tim bringing up
On 22 July 2010 14:14, Xavier Morel python-...@masklinn.net wrote:
getattr(elem, 'param') I believe, rather than elem.getattr('param')
Doh! You're absolutely right, of course.
--
Cheers,
Simon B.
___
Python-Dev mailing list
Python-Dev@python.org
On Thu, Jul 22, 2010 at 9:22 PM, stefan brunthaler
sbruntha...@gmail.com wrote:
I wonder whether you would be interested in integrating these
optimizations with the Python 3 distribution, hence this mail. I could
send copies of the papers, as well as provide my prototype source code
to
On 10:33 am, solip...@pitrou.net wrote:
On Thu, 22 Jul 2010 17:50:00 +0900
Stephen J. Turnbull step...@xemacs.org wrote:
I think that's Antoine's PEP 3151. Interestingly, he doesn't mention
EINVAL at all.
http://www.python.org/dev/peps/pep-3151/
That's right. It is based on a survey of
The Springer link [1] at least shows the front page to give more of an
idea as to what this is about.
Thanks, I forgot to mention the link.
The idea does sound potentially interesting, although I'm not sure how
applicable it will be with a full-blown LLVM-based JIT on the way for
3.3 (via
Am 22.07.2010 14:12, schrieb Nick Coghlan:
On Thu, Jul 22, 2010 at 9:34 PM, Georg Brandl g.bra...@gmx.net wrote:
So, I thought there wasn't a difference in performance for this use case
(which is compiling a lot of regexes and matching most of them only a
few times in comparison). However, I
Hello all,
PEP 360 - “Externally Maintained Packages” seems to have outdated
contents.
First of all, I don't think Optik and wsgiref are externally
maintained anymore (both seem unmaintained by their original authors).
Second, the version numbers mentioned there could be out of date too
On Jul 16, 2010, at 12:40 PM, Matthias Klose wrote:
I like the proposal, but IMO it is too unspecific about the abi tag.
Assume that an extension is built with such a configured python and
then tried to run with an abi compatible configured python, but with a
slightly different version tag, the
On Thu, Jul 22, 2010 at 10:04 AM, Bartosz Tarnowski
bartosz-tarnow...@zlotniki.pl wrote:
Hello, guys.
Python has more and more reserved words over time. It becomes quite
annoying, since you can not use variables and attributes of such names.
Suppose I want to make an XML parser that reads a
Am 22.07.2010 15:04, schrieb Bartosz Tarnowski:
Hello, guys.
Python has more and more reserved words over time. It becomes quite annoying,
since you can not use variables and attributes of such names. Suppose I want
to
make an XML parser that reads a document and returns an object with
On Thu, Jul 22, 2010 at 10:04 AM, Bartosz Tarnowski
bartosz-tarnow...@zlotniki.pl wrote:
Let all reserved words be preceded with some symbol, i.e. ! (exclamation
mark). This goes also for standard library global identifiers.
!for boo in foo:
!if boo is !None:
!print(hoo)
On Thu, Jul 22, 2010 at 10:08 PM, stefan brunthaler
sbruntha...@gmail.com wrote:
Is the source code under an open source non-copyleft license?
I am (unfortunately) not employed or funded by anybody, so I think
that I can license/release the code as I see fit.
If you did this work under your
On Thu, Jul 22, 2010 at 11:54 AM, Georg Brandl g.bra...@gmx.net wrote:
..
That also has the advantage of introducing a measure of much needed
compatibility with industry-leading web programming languages.
Looks like our messages crossed in flight.
pathologically-eclecticly-yours
On Thu, Jul 22, 2010 at 7:42 AM, Georg Brandl g.bra...@gmx.net wrote:
Am 22.07.2010 14:12, schrieb Nick Coghlan:
On Thu, Jul 22, 2010 at 9:34 PM, Georg Brandl g.bra...@gmx.net wrote:
So, I thought there wasn't a difference in performance for this use case
(which is compiling a lot of regexes
On Tue, Jul 20, 2010 at 20:34, Éric Araujo mer...@netwok.org wrote:
Sorry to add the third way to the mix, but shouldn't the recommended
way to run a module as a script be python -m modname? As in
$ python -m test.regrtest test_spam
This is true but orthogonal to our problem, which is that
On Thu, 22 Jul 2010 16:54:58 +0100
Georg Brandl g.bra...@gmx.net wrote:
You raise a good point. However, I'd rather explicitly signify names instead
of keywords:
for $boo in $foo:
if $boo is $None:
print($hoo)
else:
return sorted($woo)
That also has the
On Thu, Jul 22, 2010 at 10:37 AM, Antoine Pitrou solip...@pitrou.net wrote:
On Thu, 22 Jul 2010 16:54:58 +0100
Georg Brandl g.bra...@gmx.net wrote:
That also has the advantage of introducing a measure of much needed
compatibility with industry-leading web programming languages.
Also, Python
I believe that Pat Campbell is responsible for handling contributor
agreements. I'm trying to find out if we have one from Stuart Sheldon.
Could someone in the know please forward this to Pat, then we'll be
able to move these issues.
TIA.
Mark Lawrence.
On Thu, Jul 22, 2010 at 11:25 AM, Eli Bendersky eli...@gmail.com wrote:
.. shouldn't the recommended
way to run a module as a script be python -m modname? As in
$ python -m test.regrtest test_spam
..
So, how can a decision be reached on this issue? I'd like to fix the
relevant docs because
At EuroPython, I sat down with Brett and we propose an approach
how namespace packages get along with import hooks. I reshuffled
the order in which things get done a little bit, and added a
section that elaborates on the hooks.
Basically, a finder will need to support a find_path method,
return
!for boo in foo:
!if boo is !None:
!print(hoo)
!else:
!return !sorted(woo)
I feel most people could not bear such a difficult syntax. Why have I to
type so much '!'s ?
On Thu, Jul 22, 2010 at 10:04 PM, Bartosz Tarnowski
bartosz-tarnow...@zlotniki.pl wrote:
Hello,
I agree with the idea, but a far less radical change is needed to get the
desired result.
The basic idea is this: it should be possible to use any name as an identifier
in the syntax, including names
like 'while' and 'import'. But there is no need to mess up the entire language
to allow this
oops, :name does break things, e.g
if x :return
So, it could be ::name or |name or name or !name or whatever.
From: gregory.smi...@sympatico.ca
To: python-dev@python.org
Subject: RE: [Python-Dev] Set the namespace free!
Date: Thu, 22 Jul 2010 16:24:27 +
I agree with the
On Wed, Jul 21, 2010 at 9:26 PM, Steve Holden st...@holdenweb.com wrote:
On 7/21/2010 6:45 PM, Alexander Belopolsky wrote:
On Wed, Jul 21, 2010 at 1:42 PM, Benjamin Peterson benja...@python.org
wrote:
..
True, but the tests in that file are (mostly?) all about line tracing.
Hopefully this
Thanks for writing this, Tim.
On 7/21/10 11:11 AM, Tim Golden wrote:
The issue of a __format__ equivalent for bytes was also raised as was the
idea of object methods to render an object as string or bytes, which could
be used in the polymorphic functions above.
Does this mean
On 7/22/2010 5:45 AM, python-dev-requ...@python.org wrote:
Message: 10
Date: Thu, 22 Jul 2010 16:04:00 +0200
From: Bartosz Tarnowskibartosz-tarnow...@zlotniki.pl
To:python-dev@python.org
Subject: [Python-Dev] Set the namespace free!
Message-ID:4c484fd0.2080...@zlotniki.pl
Content-Type:
At 01:51 PM 7/22/2010 +0100, Martin v. Löwis wrote:
At EuroPython, I sat down with Brett and we propose an approach
how namespace packages get along with import hooks. I reshuffled
the order in which things get done a little bit, and added a
section that elaborates on the hooks.
Basically, a
I have no idea why my last post was a copy of the previous one. Webmail choking
on a hairball.
It was supposed to say:
===
Oops, :name does break things, e.g.
if x :return
So, ::name or name or |name or whatever.
I'm very amused by all the jokes about turning python into
On Thu, Jul 22, 2010 at 12:53 PM, gregory.smi...@sympatico.ca wrote:
..
So, ::name or name or |name or whatever.
I'm very amused by all the jokes about turning python into perl, but there's
a good idea here that doesn't actually require that...
No, there isn't. And both '' and '|' are valid
Using setattr to set attributes, where the attribute string
comes from an external source, can create a security hole. Remember
that you can override functions on an object, for that object only,
by setting an attribute. This offers the opportunity for an attack
similar to SQL
Using setattr to set attributes, where the attribute string
comes from an external source, can create a security hole. Remember
that you can override functions on an object, for that object only,
by setting an attribute. This offers the opportunity for an attack
similar to SQL
...After a sufficient period of waiting, say a day or two with no
response:
Ok, I'll wait a bit longer.
I don't think that's a good idea.
My bad, I really only meant a sufficient delay to allow the
possibility of an interested party replying. I actually figured
about a day.
On Thu, Jul 22, 2010 at 11:49 AM, Alexander Belopolsky
alexander.belopol...@gmail.com wrote:
On Thu, Jul 22, 2010 at 12:53 PM, gregory.smi...@sympatico.ca wrote:
I'm very amused by all the jokes about turning python into perl, but there's
a good idea here that doesn't actually require that...
On 7/22/2010 9:36 AM, stefan brunthaler wrote:
Depending on the size and complexity of the
patches, it may still be worth exploring for 3.2.
If your work speeds CPython, U.S. would have to be even better to knock
it out.
I am currently not aware of the planned release schedule, but I
On 7/22/2010 2:04 PM, John Nagle wrote:
From: Bartosz Tarnowskibartosz-tarnow...@zlotniki.pl
Python has more and more reserved words over time
...
What should I do then, when the attribute is a reserver word?
I am going to be a grinch and note that this is strictly a usage
question with
On 7/22/2010 3:29 PM, average wrote:
Speacking of etiquette, it is traditional to use real names in the from
field on pydev. It will get you more attention and respect.
A reference or link to ESR's How to Ask Questions The Smart Way
(http://catb.org/esr/faqs/smart-questions.html) is a pretty
On Fri, Jul 23, 2010 at 12:42 AM, Georg Brandl g.bra...@gmx.net wrote:
Sure -- I don't think this is a showstopper for regex. However if we don't
include regex in a future version, we might think about increasing MAXCACHE
a bit, and maybe not clear the cache when it reaches its max length, but
On 7/22/2010 8:22 AM, Steven D'Aprano wrote:
On Thu, 22 Jul 2010 07:02:33 pm Stephen J. Turnbull wrote:
OTOH I think as quick as possible an answer is a good idea here. It
saves the intended audience the thought about whether to reply or
not, and an instant, constructive answer says that
On Fri, Jul 23, 2010 at 2:25 AM, Alexander Belopolsky
alexander.belopol...@gmail.com wrote:
Note also that argparse/optparse does not know about -m way either:
$ python -m profile -h
Usage: profile.py [-o output_file_path] [-s sort] scriptfile [arg] ...
I am not sure if it is possible for
On Fri, Jul 23, 2010 at 3:30 AM, Alexander Belopolsky
alexander.belopol...@gmail.com wrote:
I see three solutions:
1. Minimal: do not rename test_trace in 2.7 and add trace module
tests to the existing file. Whether to revert test_trace to
test_line_tracing renaming in 3.2 can be decided
On 22/07/2010 23:25, Terry Reedy wrote:
On 7/22/2010 8:22 AM, Steven D'Aprano wrote:
On Thu, 22 Jul 2010 07:02:33 pm Stephen J. Turnbull wrote:
OTOH I think as quick as possible an answer is a good idea here. It
saves the intended audience the thought about whether to reply or
not, and an
Am 22.07.2010 21:49, schrieb Reid Kleckner:
On Thu, Jul 22, 2010 at 11:49 AM, Alexander Belopolsky
alexander.belopol...@gmail.com wrote:
On Thu, Jul 22, 2010 at 12:53 PM, gregory.smi...@sympatico.ca wrote:
I'm very amused by all the jokes about turning python into perl, but there's
a good
Steven D'Aprano st...@pearwood.info writes:
We don't need to make excuses for why we don't give the answer here.
It's enough to give the reason -- it's off-topic for this list, which
is about the development of Python. That and a pointer to the right
list is, in my opinion, all we need to
On 23/07/10 04:24, gregory.smi...@sympatico.ca wrote:
I've suggested :name, which doesn't break old code,
I'm not so sure about that. Consider
foo[a::b]
Do you parse that as a 3-element slice, or as a
2-element slice with :b as the second element?
--
Greg
Georg Brandl g.bra...@gmx.net wrote:
Am 22.07.2010 13:29, schrieb Antoine Pitrou:
Is it the reason why? With the new module creation API in 3.x, extension
modules should be able to handle deletion of their own internal
resources.
Yes, but as Martin noted at the summit, nobody since went
On Fri, 23 Jul 2010 10:59:32 am Ben Finney wrote:
Steven D'Aprano st...@pearwood.info writes:
We don't need to make excuses for why we don't give the answer
here. It's enough to give the reason -- it's off-topic for this
list, which is about the development of Python. That and a pointer
Maciej Fijalkowski, 22.07.2010 10:43:
On Thu, Jul 22, 2010 at 9:51 AM, Brett Cannon wrote:
Basically the whole setting a module's globals to None was done before gc
came into the language. Now that it's there it seems that it might work to
simply let gc clean up the module itself. But this
Georg Brandl, 22.07.2010 16:13:
Am 22.07.2010 13:29, schrieb Antoine Pitrou:
Le jeudi 22 juillet 2010 à 07:23 -0500, Benjamin Peterson a écrit :
2010/7/22 Antoine Pitrou:
Brett Cannon wrote:
Basically the whole setting a module's globals to None was done before gc
came into the language.
75 matches
Mail list logo