On Thu, Mar 29, 2012 at 18:08, Glenn Linderman wrote:
> All it needs is official acceptance now, and integration into the release,
> no?
If it wasn't clear, this is what I said in the first post.
___
Python-Dev mailing list
Python-Dev@python.org
http://
On Thu, Mar 29, 2012 at 22:48, wrote:
> Now that we do have the PEP, I think that should be done properly.
> I thought you offered to rewrite it.
There are definitely areas that I would like to work on, especially
pulling implementation details out and replacing with, as you say,
end-user prose.
2012/3/31 Kristján Valur Jónsson :
> Hi,
>
> Does anyone object if I submit my patches sxs.patch and errnomodule.patch?
>
> These allow python to work correctly when built with vs2010.
>
>
>
> There is also the PCBuild10.patch, but that can wait. I'm sure a number of
> people are regularly buildin
On Fri, Mar 30, 2012 at 10:00, Matěj Cepl wrote:
> Why does HG cpython repo contains .{bzr,git}ignore at all?
> IMHO, all .*ignore files should be strictly repository dependent and they
> should not be mixed together.
For what reason? Are the git or bzr files causing issues on HG?
___
On Sun, Apr 1, 2012 at 17:31, Matěj Cepl wrote:
> On 1.4.2012 23:46, Brian Curtin wrote:
>>
>> For what reason? Are the git or bzr files causing issues on HG?
>
>
> No, but wrong .gitignore causes issues with git repo obtained via
> hg-fast-import. If it is meant as
Hi all,
If you are a running a build slave or otherwise have an MSDN account
for development work, please check that your MSDN subscription is
still in effect. If the subscription expired, please let me know in
private what your subscriber ID is along with the email address you
use for the account
On Tue, Apr 3, 2012 at 14:59, Andrew Svetlov wrote:
> I filed the issue http://bugs.python.org/issue14470 for removing
> w9xopen from subprocess as python 3.3 has declaration about finishing
> support of Windows 2000 and Win9x family.
> But, as I see, VC project for building w9xopen is still prese
Can someone let me in on the process to upgrade tcl and tk on
svn.python.org? For the VS2010 port it looks like I need to upgrade
since the 8.5.9 versions do not work. They use link options that choke
on 2010. Taking 8.5.11, which is the current release, seems to work
out alright so far.
It seems
On Mon, Apr 9, 2012 at 18:41, Terry Reedy wrote:
> In particular, it should include a recent fix so that French keyboards work
> with tk/tkinter and hence Idle better than now. There has been more than one
> complaint about this.
Do you know when this was fixed or have any information about it? T
On Mon, Apr 9, 2012 at 20:53, Terry Reedy wrote:
> On 4/9/2012 7:53 PM, Brian Curtin wrote:
>>
>> On Mon, Apr 9, 2012 at 18:41, Terry Reedy wrote:
>>>
>>> In particular, it should include a recent fix so that French keyboards
>>> work
>>> with t
On Fri, Apr 13, 2012 at 11:29, Victor Stinner
> I will move the precision of monotonic clock of Windows 9x info into this
> table.
I would just remove it entirely. It's not relevant since it's not supported.
___
Python-Dev mailing list
Python-Dev@python
new function isn't documented anywhere.
>>
>
> I forgot to write the docs for it when I committed Brian's code.
>
> Brian, do you mind writing the docs for the two functions?
I'll take care of it today.
___
Python-Dev mail
On Mon, Apr 16, 2012 at 09:54, Brian Curtin wrote:
> On Mon, Apr 16, 2012 at 09:52, Brett Cannon wrote:
>>
>>
>> On Mon, Apr 16, 2012 at 07:19, Antoine Pitrou wrote:
>>>
>>> On Mon, 16 Apr 2012 07:10:31 +0200
>>> brian.curtin wrot
On Mon, Apr 16, 2012 at 18:02, Georg Brandl wrote:
> On 16.04.2012 22:14, brian.curtin wrote:
>>
>> http://hg.python.org/cpython/rev/5cc8b717b38c
>> changeset: 76363:5cc8b717b38c
>> user: Brian Curtin
>> date: Mon Apr 16 15:14:36 2012 -0500
>&
On Wed, Apr 18, 2012 at 13:07, Ethan Furman wrote:
> http://bugs.python.org/issue14617
>
> Patch attached to issue.
Can I request that you not immediately post issues to python-dev?
Those who follow the bug tracker will see the issue and act
accordingly.
(unless I missed some explicit request th
On Thu, Apr 19, 2012 at 05:38, Nick Coghlan wrote:
> On Thu, Apr 19, 2012 at 6:55 PM, Stefan Behnel wrote:
>> What do you think?
>
> I think the possible use of Cython for standard library extension
> modules is potentially worth looking into for the 3.4 timeframe (c.f.
> the recent multiple chec
On Thu, Apr 19, 2012 at 16:08, Stefan Behnel
>> While code generation alleviates the burden of tedious languages, it's also
>> infinitely more complex, makes debugging very difficult and adds to
>> prerequisite knowledge, among other drawbacks.
>
> You can use gdb for source level debugging of Cyth
On Thu, Apr 19, 2012 at 17:21, Stefan Behnel wrote:
> Brian Curtin, 19.04.2012 23:19:
>> On Thu, Apr 19, 2012 at 16:08, Stefan Behnel
>>>> While code generation alleviates the burden of tedious languages, it's also
>>>> infinitely more complex, make
On Tue, Apr 24, 2012 at 14:34, Éric Araujo wrote:
> Le 24/04/2012 15:02, Georg Brandl a écrit :
>>
>> On 24.04.2012 20:34, Benjamin Peterson wrote:
>>>
>>> 2012/4/24 Georg Brandl:
I think that's misleading: there's no way to "correctly" parse malformed
HTML.
>>>
>>> There is in the
On Wed, Apr 25, 2012 at 08:13, brian.curtin wrote:
> http://hg.python.org/cpython/rev/4e9f1017355f
> changeset: 76556:4e9f1017355f
> user: Brian Curtin
> date: Wed Apr 25 08:12:37 2012 -0500
> summary:
> Fix #3561. Add an option to place the Python installatio
On Wed, May 2, 2012 at 12:06 PM, Ezio Melotti wrote:
> On 02/05/2012 19.33, Michael Foord wrote:
>>
>> On 2 May 2012, at 16:55, Terry Reedy wrote:
>>>
>>> I would send the above to webmas...@python.org (should be at the bottom
>>> of pages). We develop CPython but do not directly manage the websit
On Fri, May 4, 2012 at 10:08 AM, Dirkjan Ochtman wrote:
> On Wed, May 2, 2012 at 10:43 AM, Larry Hastings wrote:
>> Do we officially support any C compilers that *don't* permit "intermingled
>> variable declarations and code"? Do we *unofficially* support any? And if
>> we do, what do we gain?
On Mon, Apr 2, 2012 at 9:12 PM, Brian Curtin wrote:
> Hi all,
>
> If you are a running a build slave or otherwise have an MSDN account
> for development work, please check that your MSDN subscription is
> still in effect. If the subscription expired, please let me know in
>
On Sun, May 13, 2012 at 2:30 AM, wrote:
>> If build slave owners could let me know when their machine has VS2010
>> I'd appreciate it. I got the go-ahead to commit the port but want to
>> wait until the build slaves are ready for it.
>
>
> Please don't wait, but let the build slaves break. This i
On Wed, May 16, 2012 at 2:52 AM, "Martin v. Löwis" wrote:
>> +All versions previous to 3.3 use Microsoft Visual Studio 2008, available
>> at
>>
>> +https://www.microsoft.com/visualstudio/en-us/products/2008-editions/express.
>
>
> This isn't actually the case. 2.4 and 2.5 used Visual Studio 2003,
On Wed, May 16, 2012 at 7:44 AM, Antoine Pitrou wrote:
>
> Hello all,
>
> We still need 64-bit Windows buildbots to test for regressions.
> Otherwise we might let regressions slip through, since few people seem
> to run the test suite under Windows at home.
The machine that I used to run a Server
On May 18, 2012 1:26 PM, "Barry Warsaw" wrote:
>
> At what point should we cut over docs.python.org to point to the Python 3
> documentation by default?
Today sounds good to me.
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/ma
On Thu, May 24, 2012 at 7:03 AM, Sturla Molden wrote:
>
> Mingw32CCompiler in cygwincompiler.py emits the symbol -mno-cygwin.
>
> This is used to make Cygwin's gcc behave as mingw. As of gcc 4.6 it is not
> recognized by the mingw gcc compiler itself, and causes as crash. It should
> be removed be
On Thu, May 24, 2012 at 5:21 PM, Terry Reedy wrote:
> The free Visual Studio 11 Express for Windows 8 (still in beta) will produce
> both 32 and 64 bit binaries and allow multiple languages but will only
> produce Metro apps. For desktop apps, either the paid Visual Studio versions
> or the free 2
On Mon, May 28, 2012 at 8:44 PM, Terry Reedy wrote:
>>> + except:
>>> return None
>>
>>
>> "except Exception" may be better here.
>
>
> Idle's Shell catches all exceptions. I think the attempt to provide an
> optional help (a function signature) should too.
Can you exp
On Wed, May 30, 2012 at 10:46 AM, Kristján Valur Jónsson
wrote:
>
>
>> -Original Message-
>> From: R. David Murray [mailto:rdmur...@bitdance.com]
>>
>>
>> The "ValueError: Invalid format string" was coming from a broken-on-
>> windows test_calendar test I checked in. It is fixed now and t
On Wed, May 30, 2012 at 3:35 PM, Kristján Valur Jónsson
wrote:
>
>
> -Original Message-
> From: Brian Curtin [mailto:br...@python.org]
> Sent: 30. maí 2012 15:56
> To: Kristján Valur Jónsson
> Cc: python-dev@python.org
> Subject: Re: [Python-Dev] cpython: Issue #1
On Fri, Jun 1, 2012 at 8:22 AM, wrote:
> I have just codified our current policy on supporting
> Windows releases, namely that we only support some Windows
> version until Microsoft ends its extended support period.
> As a consequence, Windows XP will be supported until
> 08/04/2014, and Windows
On Fri, Jun 1, 2012 at 1:57 PM, Terry Reedy wrote:
> On 6/1/2012 1:27 PM, Brett Cannon wrote:
>>
>> About the only thing I can think of from the language summit that we
>> discussed doing for Python 3.3 that has not come about is accepting the
>> regex module and getting it into the stdlib. Is thi
On Fri, Jun 1, 2012 at 7:37 PM, Mark Lawrence wrote:
> Umpteen versions of regex have been available on pypi for years. Umpteen
> bugs against the original re module have been fixed. If regex can't now go
> into the standard library, what on earth can?
Reviewing a 4000 line patch is probably the
On Mon, Jun 4, 2012 at 7:31 PM, Steven D'Aprano wrote:
> But changes to the stdlib (bug fixes or functional changes) are very likely
> to run at a slower pace to what third-party packages can afford. If you
> continue to develop regex outside of the stdlib, that could cause
> complications.
Devel
On Tue, Jun 12, 2012 at 2:31 PM, Salman Malik wrote:
> Hi All,
>
> I am sort of a newbie to Python ( have just started to use pdb).
> My problem is that I am debugging an application that uses greenlets and
> when I encounter something in code that spawns the coroutines or wait for an
> event, I l
On Jun 13, 2012 8:31 PM, "Stephen J. Turnbull" wrote:
>
> Cameron Simpson writes:
>
> > This approach has its own problems. Is the proposed list, like many
lists,
> > restricted to accept posts only from subscribers? If that is the case,
> > when someone CCs the VM list, everyone honouring the
On Thu, Jun 14, 2012 at 4:12 PM, Aahz wrote:
> Note: I'm no-mail on python-dev
>
> - Forwarded message from Sean Johnson -
>
>> Date: Thu, 14 Jun 2012 03:48:55 -0400
>> From: Sean Johnson
>> To: webmas...@python.org
>> Subject: Windows 3.2.3 64 bit installers are actually 3.2
>>
>> The i
On Mon, Jun 18, 2012 at 2:17 AM, "Martin v. Löwis" wrote:
>> this is just a quick reminder that the feature freeze for 3.3
>> will start next weekend with the release of beta1. Since I
>> won't be able to shift that date for short periods (the next
>> possible date for me would be around July 16
y of the updates were in line with what Martin and I briefly
talked about at PyCon, and I believe some of them came out of previous
PEP discussions on here, so I see nothing unexpected at this point.
My only additional comment would be to have the "Configuration file"
implementation details supplem
work, but it's out of scope of the PEP.
>
> The PEP actually only talks about launcher binaries in c:\windows, and
> essentially says that they must match the bitness of the system.
True, got it.
>> My only additional comment would be to
As the PEP czar for 397, after Martin's final updates, I hereby
pronounce this PEP "accepted"!
Thanks to Mark Hammond for kicking it off, Vinay Sajip for writing up
the code, Martin von Loewis for recent updates, and everyone in the
community who contributed to the discussions.
I will begin integ
On Wed, Jun 20, 2012 at 11:54 AM, Brian Curtin wrote:
> As the PEP czar for 397, after Martin's final updates, I hereby
> pronounce this PEP "accepted"!
>
> Thanks to Mark Hammond for kicking it off, Vinay Sajip for writing up
> the code, Martin von Loewis for recen
On Thu, Jun 28, 2012 at 12:42 PM, Tim Golden wrote:
> Just recently I'm sure I saw a post saying that the main Python repo was
> mirrored on bitbucket.org for the convenience of developers who could then
> fork to their own accounts.
>
> For the life of me I can't find it now. Can someone confirm
On Thu, Jun 28, 2012 at 1:08 PM, Vinay Sajip wrote:
> Tim Golden timgolden.me.uk> writes:
>
>>
>> Just recently I'm sure I saw a post saying that the main Python repo was
>> mirrored on bitbucket.org for the convenience of developers who could
>> then fork to their own accounts.
>>
>> For the lif
On Mon, Jul 23, 2012 at 11:24 AM, Andrew Svetlov
wrote:
> I thought my proposition is minor change, but if it's too late for 3.3
> — I'm ok.
Very simply, the first beta is when feature freeze goes into effect.
This is a really common policy that has been in effect for a long time
in CPython and m
On Mon, Jul 23, 2012 at 1:28 PM, Jesus Cea wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On 23/07/12 19:30, Eli Bendersky wrote:
>>> That said, we could probably merge Doc/ACKS and Misc/ACKS (*).
>>> There doesn't seem to be any strong argument for separating doc
>>> contributions f
On Tue, Jul 24, 2012 at 1:02 PM, Wim Colgate wrote:
> Please forgive me if this is not the prescribed method for asking this
> question.
>
> For various reasons, I would like to build python 2.7.3 from source
> using the latest VS tools (VS11.0 is in RC -- which is close enough
> for my purposes).
On Fri, Aug 10, 2012 at 3:52 PM, "Juancarlo Añez (Apalala)"
wrote:
> Hello,
>
> Please let me know if this is normal:
>
> 1 test failed:
> test_readline
> 1 test altered the execution environment:
> test_subprocess
> 32 tests skipped:
> test_aepack test_al test_applesingle test_bsddb t
On Mon, Aug 13, 2012 at 5:13 PM, brian.curtin
wrote:
> http://hg.python.org/cpython/rev/256bfee696c5
> changeset: 78552:256bfee696c5
> parent: 78549:edcbf3edf701
> parent: 78551:fcad4566910b
> user:Brian Curtin
> date:Mon Aug 13 17:12:02 20
On Tue, Aug 21, 2012 at 5:24 AM, Luc Bourhis wrote:
> Greetings,
>
> it is my understanding that the patches floating around the net to support
> Visual Studio 2010 to compile the Python core and for distutils will never be
> accepted and therefore that the 2.7 line is stuck to VS 2008 for the
On Tue, Aug 28, 2012 at 10:58 PM, Chris Jerdonek
wrote:
> Is there a list somewhere of the IRC nicks of the core developers that
> use IRC (and who wish to be listed) alongside their real names? If
> there is no such list, has there ever been discussion on python-dev of
> creating such a list?
I
On Thu, Sep 27, 2012 at 5:30 PM, Éric Araujo wrote:
> Hi all,
>
> The Montreal-Python user group would like to host a bug day on October
> 27 (to be confirmed) at a partner university in Montreal. It would be
> cool to do a bug day on IRC like we used to (and in other physical
> locations if peop
On Mon, Oct 1, 2012 at 5:18 PM, Maciej Szulik wrote:
> On 09/28/2012 12:30 AM, Éric Araujo wrote:
>>
>> Hi all,
>>
>> The Montreal-Python user group would like to host a bug day on October
>> 27 (to be confirmed) at a partner university in Montreal. It would be
>> cool to do a bug day on IRC like
On Wed, Oct 3, 2012 at 10:13 AM, Larry Hastings wrote:
> On 10/03/2012 04:55 PM, Nick Coghlan wrote:
>
> Regardless of when the first alpha happens, I'll be promoting the hell
> out of it, begging for feedback on any of these changes that are
> available by then (which should be quite a few, given
On Wed, Oct 3, 2012 at 11:02 AM, Larry Hastings wrote:
>
> On 10/03/2012 05:28 PM, Brian Curtin wrote:
>
> The webstats in April 2012 show 5628 downloads of 3.3a1 and 4946
> downloads of 3.3a2 Windows installers.
>
>
> I'd love to know how much feedback we got as a re
On Thu, Oct 4, 2012 at 12:01 PM, Zachary Ware
wrote:
> It occurred to me this morning that Python already ships a set of
> timezone data with the Windows installer: Tcl/Tk's. Is there any way
> we could use that as the default on Windows?
I would say no. You could choose not to include Tcl/Tk in
On Mon, Oct 15, 2012 at 11:04 AM, Jon K Peck wrote:
> I am out of the office until 10/16/2012.
>
> I will be out of the office Monday 10/15/12. I will not have email access
> during this time.
>
>
> Note: This is an automated response to your message "Python-Dev Digest, Vol
> 111, Issue 31" sent
hon)
> decided to move the bug day instead of announcing it late. The date
> that would work for us is November 3rd.
>
> Brian, is it okay for Boston?
> Maciej, what about your group?
> Comitters, who could join on IRC?
>
> Sorry for the false start.
Nothing was formally plan
I just found out that PEP 430 came up again and was approved, but only
because of another website. After that I looked back through my email
only to find mention via python-checkins. Aren't PEPs typically acted
on here on python-dev?
I mention this because I was writing up a blog.python.org post a
On Wed, Nov 14, 2012 at 10:12 AM, Mark Adam wrote:
> On Wed, Nov 14, 2012 at 3:12 AM, Chris Withers wrote:
>> Hi All,
>>
>> A colleague pointed me at Doug's excellent article here:
>> ...which made me a little sad, I suspect I'm not the only one who finds:
>>
>> a_dict = dict(
>> x = 1,
>>
On Wed, Nov 14, 2012 at 3:20 PM, MRAB wrote:
> On 2012-11-14 20:53, Mark Adam wrote:
>>
>> On Wed, Nov 14, 2012 at 1:37 PM, Xavier Morel
>> wrote:
>>>
>>> On 2012-11-14, at 19:54 , Mark Adam wrote:
Merging of two dicts is done with dict.update.
>>>
>>>
>>> No, dict.update merges on
On Wed, Nov 14, 2012 at 3:40 PM, Brandon W Maister wrote:
>
>>
>> To (mis-)quote Antoine:
>> >--> d1 = {1:2}
>> >--> d2 = {'3':4}
>> >--> dict(d1, **d2)
>> > {1: 2, '3': 4}
>>
>> Apparently it is valid syntax. Just make sure you keys for the **
>> operator are valid strings. :)
>>
>
> or not:
>
On Sun, Nov 18, 2012 at 6:18 AM, wrote:
>
> Zitat von Armin Rigo :
>
>
>> Hi,
>>
>> On Sun, Nov 18, 2012 at 8:22 AM, Georg Brandl wrote:
>>>
>>> One way would be to use one hg repo per version, and (maybe, if needed)
>>> a master repo that has them as subrepos.
>>
>>
>> Or have all versions in t
lang=en
There's a longer blog post up at
http://blog.python.org/2012/11/new-contributor-experience-in-python.html
if you would like a bit more information.
On behalf of Kevin Carillo, I thank you for your time and
consideration of this survey.
Bri
On Mon, Nov 19, 2012 at 9:01 AM, Brian Curtin wrote:
> Hi all,
>
> Along with a number of other free and open communities, Python is
> being included in a survey of new contributors since January 2010. The
> survey is being done by Kevin Carillo, a PhD student at Victoria
On Tue, Dec 4, 2012 at 3:54 PM, Brett Cannon wrote:
> But going through python-ideas for this I think is a bit much.
It would never end.
I think an issue on roundup could work just fine.
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.pyt
On Mon, Dec 10, 2012 at 1:22 AM, Antonio Cavallo
wrote:
> I'm not into the py3 at all so I wonder how possibly it could fit/collide
> into the big plan.
>
> Or I'll be wasting my time?
If you're not doing it on Python 3 then you are wasting your time.
_
On Tue, Dec 11, 2012 at 9:48 AM, Paul Moore wrote:
> On 11 December 2012 15:39, Dirkjan Ochtman wrote:
>>> Should the windows installer include the data package?
>>> --
>>>
>>> It has been suggested that the Windows installer should include the
On Wed, Dec 12, 2012 at 9:56 AM, Lennart Regebro wrote:
> General comments:
>
>
> It seems like the consensus is moving towards making sure there always is a
> database available. If this means including it in the standard Python
> distribution as well, or only on Windows, I don't know, opinions o
On Wed, Dec 12, 2012 at 6:10 PM, MRAB wrote:
> On 2012-12-12 23:33, Lennart Regebro wrote:
>>
>> On Thu, Dec 13, 2012 at 12:23 AM, Terry Reedy wrote:
>>>
>>> As a Windows user, I would like there to be one tz data file used by all
>>> Python versions on my machine, including ones included with ot
On Dec 12, 2012 7:24 PM, "Terry Reedy" wrote:
>
> On 12/12/2012 7:27 PM, Brian Curtin wrote:
>>
>> On Wed, Dec 12, 2012 at 6:10 PM, MRAB wrote:
>>>
>>> On 2012-12-12 23:33, Lennart Regebro wrote:
>>>>
>>>>
>>>> On
On Wed, Dec 12, 2012 at 8:10 PM, Janzert wrote:
> On 12/12/2012 8:43 PM, Glenn Linderman wrote:
>>
>> On 12/12/2012 5:36 PM, Brian Curtin wrote:
>>>
>>>
>>> >> C:\ProgramData\Python
>>>
>>
>>^ That. Is not the pat
Last week in Raymond's dictionary thread, the topic of ARM came up,
along with the relative lack of build slave coverage. Today Trent
Nelson received the PandaBoard purchased by the PSF, and a Raspberry
Pi should be coming shortly as well.
http://blog.python.org/2012/12/pandaboard-raspberry-pi-com
On Mon, Dec 24, 2012 at 2:36 AM, Andrew Svetlov
wrote:
> You missed artifacts in ./PC/VC6 ./PC/VS7.1 ./PC/VS8.0 ./PC/VS9.0
Fixed in http://hg.python.org/cpython/rev/deee9f0a4b98
Also reported http://bugs.python.org/issue16769 about removing some
those directories because they are pretty much use
On Mon, Dec 24, 2012 at 7:42 AM, anatoly techtonik wrote:
> What should I do in case Eric lost interest after his GSoC project for PSF
> appeared as useless for python-dev community? Should I rewrite the proposal
> from scratch?
Before you attempt that, start by trying to have a better attitude
t
On December 28th, an unknown attacker used a previously unknown remote
code exploit on http://wiki.python.org/. The attacker was able to get
shell access as the "moin" user, but no other services were affected.
Some time later, the attacker deleted all files owned by the "moin"
user, including all
On Sun, Feb 3, 2013 at 2:00 PM, Simon Cross
wrote:
> On Sun, Feb 3, 2013 at 9:42 PM, Daniel Holth wrote:
>> Bento is the only available packaging tool to heap praise onto and it is
>> impressive.
>
> If Bento is cool, is there some way we can help it gain more traction
> in the Python ecosystem?
Since the Language Summit is held at PyCon I think this counts as on-topic...
If you're interested in going to the conference, there are under 50
tickets remaining: https://us.pycon.org/2013/registration/
___
Python-Dev mailing list
Python-Dev@python.org
python-dev is a proper list to
> discuss PSF-related legal issues.
There are no further details. Either the proper document is signed or it isn't.
Hopefully this is the end of the discussion.
Brian Curtin
Director
Python Software Foundation
___
irs
http://www.python.org/peps/pep-0310.html
[2] PEP 325 Resource-Release Support for Generators
http://www.python.org/peps/pep-0325.html
[3] PEP 288 Generators Attributes and Exceptions
http://www.python.org/peps/pep-0288.html
[4] http://mail.python.org/pipermail/python-dev/2003-February/032800.html
[5] http://mail.python.org/pipermail/python-dev/2003-February/032826.html
[6] http://mail.python.org/pipermail/python-dev/2002-March/021923.html
-Brian
___
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
the tracker for
> the project: <http://sf.net/projects/pywin32>.
Here is a link to the specific (closed) bug:
http://sourceforge.net/tracker/?func=detail&aid=1085454&group_id=78018&atid=551954
And, in case you can't update to the C
y to pass it
to the generator? Your argument is like saying one does not need to
return values from a function because we could always just use a global
variable to do it.
Hrm, not good enough? Use a Queue, or use another variable in a
namespace accessable to both you
were reading the pickled_file
code, I would have no idea where the self.l comes from. If it is coming
from the 'for' loop, why not just be able to explicitly say that?
I agree that this is a confusing way to use generators. But it is the
expected way to
ia syntax.
My impression is that being able to use yield in this way is one of the
primary reasons for the success of ruby. Therefore, I do not see it as
just a clever hack. It is a clean, explicity way to pass values when
changing scope.
-Brian
___
P
On Sat, 12 Mar 2005, Steven Bethard wrote:
Brian Sabbey <[EMAIL PROTECTED]> wrote:
I agree that this is a confusing way to use generators. But it is the
expected way to use "code blocks" as found in other languages. It would
take some getting used to that 'for' can be
and unnecessary, and I find it clean and
useful.
-Brian
___
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
On Sun, 13 Mar 2005, Greg Ewing wrote:
Brian Sabbey wrote:
I prefer re-using the 'for' loop for this purpose because it allows the
problem to be solved in a general way by re-using a structure with which
most users are already familiar, and uses generators, which are easier to
use in
On Mon, 14 Mar 2005, Greg Ewing wrote:
Brian Sabbey wrote:
The problem with creating a new mechanism is that sometimes you will want
to loop. For example, reading a bunch of items from a shared resource,
modifying them, and sending them back. A new, non-looping mechanism will
not be adequate
k1, y.k1) or (x.k2, y.k2))
Not that I find either form better than the other, but I do find both
better than have to define a named function.
I am going to see if I can make a PEP for this.
-Brian
___
Python-Dev mailing list
Python-Dev@python.org
http://ma
uot;epsilon" of functions take a single thunk, then I
would guess that "epsilon**2" take two thunks, and it is not worth
creating syntax for such a small number of cases, especially if that
syntax compromises what would otherwise be a much cleaner sy
y issue here.
Ok. Allow me to try. Up to a choice of (or existence of!) keywords, the
simplest to me is:
def add(thunk1, thunk2, other):
print thunk1(1,2) + thunk2(3,4) + other
with x,y from add(100):
value x*y
also a,b: # yikes??
value
rationale that Josiah Carlson was looking
for.
But, in short:
Brian Sabbey's example from message
http://mail.python.org/pipermail/python-dev/2005-March/052202.html
*seems* reasonably clear, but I don't see how it relates in any way to
"for" loops or generators, except as one (but no
s, a suite can be used to define keyword arguments.
-Brian
___
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
)
try:
code
code
code
finally:
myLock.release()
Well, that was my other proposal, "pre-PEP: Simple Thunks" (there is also
an implementation). It didn't seem to go over all that well. I am going
to try to rewrite it and give more motivation and explana
op example.
-Brian
___
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
ment list in that way would be different
than the behavior of decorators as they are now.
-Brian
___
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
rever' can throw
exceptions at you. Without the '()' one does not get this reminder.
I also believe it is more difficult to read without '()'. The call to the
function is implicit in the fact that it sits next to '@'.
But, again, if such argument list
Fredrik Lundh wrote:
Brian Sabbey wrote:
If suites were commonly used as above to define properties, event handlers
and other callbacks, then I think most people would be able to comprehend
what the first example above is doing much more quickly than the second.
wonderful logic, there. good
401 - 500 of 521 matches
Mail list logo