s. Add .symlinks and .walksymlinks
methods.
This eliminates an 'if' for programs that want to treat symlinks
specially.
- I have a .move method that combines .rename, .renames, and .move; and
a .copy
method that combines .copy, .copy2, and .copytree .
I'd appreciate a Cc on replies if your newsreader allows it.
-- Mike Orr <[EMAIL PROTECTED]>
--
http://mail.python.org/mailman/listinfo/python-list
. I disagree. But it shows why a "literal"
superclass in the stdlib and higher-level subclasses would be useful.
I don't see why a little change to avoid an unnecessary IOError is a
bad thing. The only programs it would hurt are those that really want
to know whether the thing already
[EMAIL PROTECTED] wrote:
> hi everyone,
>
> I am the first of what may be hundreds of refugees from the Perl
> community. Not only is Python a more productive language, with many
> more nice apps, but the people are friendly as well... waaay more
> friendly than the Perl crowd.
>
> But I must say t
was the odd bit of sense? I know you end console input by typing
ctrl-Z, but I thought it was just like Unix ctrl-D which ends the input
but doesn't actually insert that character.
--
Mike Orr <[EMAIL PROTECTED]>
--
http://mail.python.org/mailman/listinfo/python-list
I'm trying to install a program that uses Durus on a server. It
appears that if a Python program uses eggs, it creates a
~/.python-eggs/ directory, so the home directory must be writeable.
This conflicts with server environments where you want to run a daemon
with minimum privileges. Second, it a
Mike Orr wrote:
> I'm trying to install a program that uses Durus on a server. It
> appears that if a Python program uses eggs, it creates a
> ~/.python-eggs/ directory, so the home directory must be writeable.
> This conflicts with server environments where you want to ru
What's the best way to summarize data by week? I have a set of
timestamped records, and I want a report with one row for each week in
the time period, including zero rows if there are weeks with no
activity. I was planning to use ISO weeks because datetime has a
convenient .isocalendar() method,
On Oct 17, 8:00 pm, Steven D'Aprano <[EMAIL PROTECTED]
cybersource.com.au> wrote:
> On Wed, 17 Oct 2007 23:12:15 +, Paul Hankin wrote:
> > 'if x' doesn't test if x exists, it tests if x when cast to a bool is
> > True.
>
> To be pedantic:
>
> Python doesn't have type casts. bool(x) doesn't cast
On Oct 16, 9:51 am, Roberto Bonvallet <[EMAIL PROTECTED]> wrote:
> For example, in Spanish, "ü" (u with umlaut) should be represented as
> "u", but in German, it should be represented as "ue".
>
> pingüino -> pinguino
> Frühstück -> Fruehstueck
>
> I'd like that web applications (e.g. blogs
> I think this PEP is going off the rails. It's primary virtue was that it
was a simpler, clearer way to write:
class Foo(args):
__metaclass__ = some_metaclass
#...
And it doesn't even do that. What's wrong with "class Foo:
__metaclass__ = blah"? Two lines of code, and the
Lawrence D'Oliveiro wrote:
> "ToddLMorgan" <[EMAIL PROTECTED]> wrote:
> >Are there python specific equivalents to the common Patterns,
> >Anti-Patterns and Refactoring books that are so prevalent as
> >reccomended reading in C++ and Java?
> I don't think they exist. Such books are targeted more to
On Dec 29, 1:53 am, Petar <[EMAIL PROTECTED]> wrote:
> Let me explain how I got to this question. I had written een Article
> class which handled the articles that I had. On a certain page I
> wanted to show all the articles. That got me wondering about what to
> do. Should I make a method in my A
On Mar 16, 6:10 am, Bruce Eckel <[EMAIL PROTECTED]> wrote:
vendors:
> But it gets worse. The lightning talks, traditionally the best, newest
> and edgiest part of the conference, were also sold like commercial air
> time.
We introduced sponsor lighting talks last year. This year it got out
of han
On Feb 1, 3:47 pm, Stephen Hansen wrote:
> Googling, I found SQLalchemy,
> which looks quit good.
> SQLAlchemy is very good. I'm very slowly migrating our entire codebase to it.
>
>
>
> But as I only want to choose once,
> I googled for "SQLalchemy alternatives",
> but it didn't find many answe
s__ in these cases to allow users to extend my class.
It's a little annoying that if you want to print a class's name in
some unknown object, you have to use obj.__class__.__name__ if it's an
instance, and obj.__name__ if it's a class. I sometimes wish classes
had a .__cl
I just saw this thread on the Python-URL.
On Feb 14, 12:39 pm, a...@pythoncraft.com (Aahz) wrote:
> >> Sean DiZazzo =A0 wrote:
>
> >>>Why did Path() get rejected? Is it the idea itself, or just the
> >>>approach that was used? What are the complaints?
>
> >> You should search for the discussiona a
On Mar 11, 7:57 am, gb345 wrote:
> I'm hoping to get advice from anyone with prior experience setting
> up a Python group.
>
> A friend of mine and I have been trying to start a
> scientific-programming-oriented Python group in our school (of
> medecine and bio research), with not much success.
>
17 matches
Mail list logo