Hi Martin,
On 4/29/07, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote:
> The error Windows reports is ERROR_SHARING_VIOLATION. I never
> understood sharing fully, but it may be that if the file is opened
> in "exclusive sharing", stat'ing it may fail.
Sharing is actually very easy. If you didn't spe
James> I did not intend to imply that it should be impossible to pass
James> different arguments, only that passing the same ones should be
James> foolproof and not require repeating yourself.
Then some other argument syntax than "()" is needed which clearly means,
"pass no arguments"
Delaney, Timothy (Tim) wrote:
> What I'm proposing is that the `super = super_factory()` line be
> implicit in this case, resulting in the following code behaving
> identically:
>
> class A(object):
> def f(self):
> def inner():
> return 'A' + super.f()
>
From: "Delaney, Timothy (Tim)" <[EMAIL PROTECTED]>
> Sorry - this is related to my proposal that the following two bits of
> code behave the same:
>
>class A(object):
>def f(self, *p, **kw):
>super.f(*p, **kw)
>
>class A(object):
>def f(self, *p, **kw):
>
I was hoping you guys would consider creating function in os.path or
otherwise that would find the full path of a file when given only it's base
name and nothing else.I have been made to understand that this is not
currently possible.If it is in any can you please inform me of it[i know
this i
Joshua> I was hoping you guys would consider creating function in
Joshua> os.path or otherwise that would find the full path of a file
Joshua> when given only it's base name and nothing else.I have been made
Joshua> to understand that this is not currently possible.If it is in
On 4/30/07, Delaney, Timothy (Tim) <[EMAIL PROTECTED]> wrote:
> Guido van Rossum wrote:
>
> >> 1. When a method is defined, the class is bound to it via an
> attribute
> >> (which in my version is called func_class).
>
> > In Py3k all the func_XXX attrs are renamed __XXX__, so this would be
> > __c
On 4/30/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> James> I did not intend to imply that it should be impossible to pass
> James> different arguments, only that passing the same ones should be
> James> foolproof and not require repeating yourself.
>
> Then some other argument
Jim Jewett wrote:
> Rationale for Removing Implicit String Concatenation
>
> Implicit String concatentation can lead to confusing, or even
> silent, errors. [1]
>
> def f(arg1, arg2=None): pass
>
> f("abc" "def") # forgot the comma, no warning ...
>
From: "Calvin Spealman" <[EMAIL PROTECTED]>
> I believe the direction my PEP took with all this is a good bit
> primitive compared to this approach, although I still find value in it
> because at least a prototype came out of it that can be used to test
> the waters, regardless of if a more direct
On 4/30/07, Tim Delaney <[EMAIL PROTECTED]> wrote:
> I've been working on improved super syntax for quite a while now - my
> original approach was 'self.super' which used _getframe() and mro crawling
> too. I hit on using bytecode hacking to instantiate a super object at the
> start of the method t
Hi Calvin,
On Mon, Apr 30, 2007 at 08:34:56AM -0400, Calvin Spealman wrote:
> If you want, you can also grab the reference
> implementation from my blog: http://ironfroggy-code.blogspot.com/
This reference implementation is broken. It doesn't pass the following
test, for example:
class A(o
On 4/30/07, Armin Rigo <[EMAIL PROTECTED]> wrote:
> Hi Calvin,
>
> On Mon, Apr 30, 2007 at 08:34:56AM -0400, Calvin Spealman wrote:
> > If you want, you can also grab the reference
> > implementation from my blog: http://ironfroggy-code.blogspot.com/
>
> This reference implementation is broken. It
On Monday, April 30, 2007, at 06:28AM, "Neal Norwitz" <[EMAIL PROTECTED]> wrote:
>PEP 11 notes that Mac OS 9 support was unsupported in 2.4. There are
>still quite a few places that we check for sys.platform == 'mac'.
>There are also (at least) 2 modules (macpath and macurl2path) that
>look spec
Hi,
I have submitted a patch (http://www.python.org/sf/1704547) that
allows os.rename to replace the destination file if it exists, on
windows. As part of discussion in the tracker, Martin suggested that
python-dev should discuss the change.
Currently, os.rename() on windows uses the API MoveFile
On 4/29/07, Delaney, Timothy (Tim) <[EMAIL PROTECTED]> wrote:
> Guido van Rossum wrote:
> >> 2. Every non-static method has an implicit cell variable called
> >> 'super'.
> >
> > I think you're using 'cell' in a different sense than it is normally
> > used in Python's implementation. What you are l
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
David Goodger and I have been the PEP editors for ages. Well, mostly
David lately as I've been way too busy to be of much use. David is
also pretty busy, and he lamented that he doesn't have much time for
editing when he put out his call for PE
> After doing some research I found that it seems to be impossible to
> use CreateFile for a file that doesn't have SHARE_READ. I played with
> different combinations and with FLAG_BACKUP_SEMANTICS and nothing
> helped. However on Windows there's still a possibility to read
> attributes: use FindFi
I wanted to get this in before the Py3K PEP deadline, since this is a
Python 2.6 PEP that would presumably impact 3.x as well. Feedback welcome.
PEP: 365
Title: Adding the pkg_resources module
Version: $Revision: 55032 $
Last-Modified: $Date: 2007-04-30 20:24:48 -0400 (Mon, 30 Apr 2007) $
Autho
Raghuram Devarakonda wrote:
> Hi,
>
> I have submitted a patch (http://www.python.org/sf/1704547) that
> allows os.rename to replace the destination file if it exists, on
> windows. As part of discussion in the tracker, Martin suggested that
> python-dev should discuss the change.
Does MOVEFILE_R
JOSHUA ABRAHAM wrote:
> I was hoping you guys would consider creating function in os.path or
> otherwise that would find the full path of a file when given only it's base
> name and nothing else.I have been made to understand that this is not
> currently possible.
Does os.path.abspath() do wha
On 4/30/07, Andrew Bennetts <[EMAIL PROTECTED]> wrote:
> Does MOVEFILE_REPLACE_EXISTING mean the rename over an existing file is
> actually
> atomic? I cannot find any MSDN docs that say so (and I've seen some that
> suggest to me that it probably isn't).
Even though MSDN docs do not say it exp
On 4/30/07, Greg Ewing <[EMAIL PROTECTED]> wrote:
> JOSHUA ABRAHAM wrote:
> > I was hoping you guys would consider creating function in os.path or
> > otherwise that would find the full path of a file when given only it's base
> > name and nothing else.I have been made to understand that this is n
This is the third time I've seen a crash on 2 different machines.
This is the first time I noticed this unexplained crash:
http://python.org/dev/buildbot/all/amd64%20gentoo%20trunk/builds/1983/step-test/0
That was at r54982.
I tried to reproduce this: with a non-debug build, with a debug build,
24 matches
Mail list logo