trigger a good
> name in someone else's head...
TemporalDict -- Since the order of insertion is important
SerialDict -- From Websters: of, relating to, consisting of, or
arranged in a series, rank, or row
--
Benji York
___
Python-Dev mailing
doctest (http://tinyurl.com/nekam).
The behavior is controlled by an optionflag, much like ELLIPSIS or
NORMALIZE_WHITESPACE. Tim has given me a few pointers on improvements
to make, which I'll work on this week.
Thoughts/questions?
--
Benji York
Senior Software Engineer
Zope Corporation
_
;d like to try some time (using ReST
tables for FIT), so if there's interest perhaps I'll try my hand at a
plugin system of some sort. (wish I could use zope.component :)
--
Benji York
___
Python-Dev mailing list
Python-Dev@python.org
h
Alexander Belopolsky wrote:
> Benji York zope.com> writes:
>>Here's the idea: when a footnote is referenced in prose, execute the
>>code associated with the footnote at that point. For example:
>>
>
> Another natural place for the referenced code is the __tes
John J Lee wrote:
> Looks like revision 47154 introduced a regexp that hangs Python
Revision 47155 was a similar change to the 2.4 branch.
--
Benji York
Senior Software Engineer
Zope Corporation
___
Python-Dev mailing list
Python-Dev@python.org
h
Paul Moore wrote:
> How many other projects/packages anticipate *not* migrating to Py3K, I wonder?
I certainly can't speak for the project as a whole, but I anticipate a
fair bit of work to port Zope 3 (100+ KLOC) to Python 3.0.
--
Be
active" to spam bots, but hidden from humans would
seem to be as effective without the (slight) annoyances of filling in an
extra field every time.
--
Benji York
___
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
connection, but I'd say it's the wrong one. In C, "x->y"
> dereferences x, while in Python, "x->y" would dereference y. That's
> just begging for trouble.
Then the syntax should obviously be "x<-y".
[insert in-Soviet-Russia-variables-d
^
> SyntaxError: EOL while scanning single-quoted string
> In the first case, it's treated as a continuation character even though
> it's not at the end of a physical line. So it gives an error.
No, that is unrelated to line continuation. The \" is an escap
dentifier, string or number
"""
Nothing happened when I clicked "Yes". The error is repeated each time
a new page is opened.
An additional opinion: The red, appear-on-hover permalink markers don't
make much sense in a CHM and are somewhat distracting. Can those be
hid
viewing the "random" module docs, it looks
like two or more lines overlap in the footer (scroll all the way down).
--
Benji York
http://benjiyork.com
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-d
ted is the very simple zc.lockfile:
http://pypi.python.org/pypi/zc.lockfile
--
Benji York
http://benjiyork.com
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman
= numNodes):
# do something with r
--
Benji York
http://benjiyork.com
___
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 Sat, May 10, 2008 at 10:51 PM, <[EMAIL PROTECTED]> wrote:
> It might be useful to have a wiki page which identified some of the
> conventions people use.
One such entry could be "Do what python does.":
>>> 'I am a string.'
'I am a string.
perhaps there should be an ABC that
things like lists and tuples provide, but strings don't. No idea what
that might be.
--
Benji York
___
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
ould be good to have something in the toolchain to change this.
Subversion can be configured to normalize line endings, either manually
through properties, or automatically via ~/.subversion/config:
[miscellany]
enable-auto-props = yes
[auto-props]
*.c = svn:eol-style=native
*.h = svn:eol-style=
On Fri, Jun 13, 2008 at 4:28 PM, Benji York <[EMAIL PROTECTED]> wrote:
> Subversion can be configured to normalize line endings, either manually
> through properties, or automatically via ~/.subversion/config:
After sending this I though "surely this is in the developer docs&q
On Wed, Jan 21, 2009 at 6:39 PM, Aahz 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
the file object had these methods:
def __enter__(self): return self
def __exit__(self, *args): self.close()
you could write
do file('whatever) as f:
lines = f.readlines()
Or a lock:
def __enter__(self): self.aquire(); return self
def __exit__(self, *args): self.release()
do my_lock:
ow about 2.5's "partial":
for chunk in iter(partial(f1.read, CHUNK_SIZE), ''):
f2.write(chunk)
--
Benji York
___
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
Alexander Schremmer wrote:
> In fact, PHP does it like php.net/functionname which is even shorter, i.e.
> they fallback to the documentation if that path does not exist otherwise.
Like many things PHP, that seems a bit too magical for my tastes.
--
Benj
Neal Norwitz wrote:
> http://www.python.org/dev/buildbot/
If there's interest in slightly nicer buildbot CSS (something like
http://buildbot.zope.org/) I'd be glad to contribute.
--
Benji York
___
Python-Dev mailing list
Python-Dev@py
"builder" links. This only works in Firefox, also because of IE's
limited CSS2 support.
More could be done if the HTML generation was modified, but that didn't
seem prudent.
--
Benji York
___
Python-Dev mailing list
Python-Dev@python.org
horizontal space). The current version is
bold-free with slightly larger text.
--
Benji York
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-de
Martin v. Löwis wrote:
> Benji York wrote:
>
>>See http://www.benjiyork.com/pybb.
>
>
> Great! you haven't explicitly stated that: may I copy this on
> python.org? (I did, but I need confirmation)
Sure! Feel free to use it as you wish.
I replied to Walter Dörwald
ll practical purposes
> we can probably get rid of the seconds in the timestamp.
So far the cosmetic changes have been done purely in CSS, implementing
the above would (AFAICT) require modifying the buildbot waterfall
display HTML generation. Something that's been shied away from thu
lt.aspx
The express editions are only "free" until November 7th:
http://msdn.microsoft.com/vstudio/express/support/faq/default.aspx#pricing
--
Benji York
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo
should be used, if not it's better
to use something that works well regardless of what it's written in.
(Not that I qualify to have an opinion. I don't have time to contribute
to Python, other than with snarky emails.)
--
Benji York
___
nes across different releases,
different architectures, and between particular changes to the code.
(That's assuming that the machines are otherwise idle, though.)
--
Benji York
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.or
to running buildbot and nothing else could be
flagged as such.
--
Benji York
___
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
Neal Norwitz wrote:
> 32-bit or 64-bit? I would expect a modest diff on 64-bit between 2.4 and 2.5.
32-bit; don't know of any 64-bit Pentium Ms :)
> You built both HEAD and 2.4 from scratch, right?
Right.
--
Benji York
___
Python-Dev m
he maximum (1.4 GHz) and remeasure.
2.5a1 reported the same pystones (30k) and, to my surprise, 2.4
reported 31k (about 5k *less* than with freq. scaling on). So there
seems to be some interaction between frequency scaling and pystones.
Benchmarking is hard, let'
become
packages with no modules in them?
sharpening-my-farm-implements-ly y'rs,
--
Benji York
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options
nice.
Is there any reason to pursue the idea, or this mostly a misguided
desire for symmetry?
--
Benji York
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailm
which arguments are positional and which are keyword. Doing so
would recast PEP 3102 from "how to get a keyword-only argument" into
"how to get a keyword (non-positional) argument". A downside would be
the need to specify when an arg
akes for ugly function bodies (or lots of name
rebinding).
--
Benji York
___
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
access
to parts of the repo, and read-write to others. It shouldn't be
difficult (given a recent enough Subversion) to set up a sprint area in
the repo.
--
Benji York
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/
Ian D. Bollinger wrote:
> I'm not sure Xah is so much a troll as he is completely out of his
> mind.
Is that Bollinger's law?
Any sufficiently advanced insanity is indistinguishable from trolling.
--
Benji York
___
Python-Dev mai
Martin v. Löwis wrote:
> Benji York wrote:
>
>>I'm not familiar with the mechanics, recent versions of Subversion allow
>>per-directory security.
>
> It works fine for http(s), but not for svn+ssh.
Versions prior to 1.3 could use Apache's authorization sy
Martin v. Löwis wrote:
> Benji York wrote:
>>Subversion 1.3 added a path-based authorization feature to svnserve.
>
> That's what I mean by "does not work fine": I would need to update
> to subversion 1.3.
I noted that in my original message. I thought you mean
ntire build directory is removed and rebuilt on each run. It slows
things down a bit, but the results have been more consistent and it's
easier to administer.
--
Benji York
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/ma
on't know if we need it hooked into the buildbots (unless it is dirt
> cheap to generate the report).
It would be interesting to combine the coverage over several platforms
and report that.
--
Benji York
___
Python-Dev mailing list
Pyt
It might be interesting as a BuilBot extension: you already know the
definitive identity of the thing that you're running (svn path and
revision), a central server with established communication channel, plus
all the other BuildBot machinery.
--
Benji York
_
statements
else:
statements
except:
statements
--
Benji York
___
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
Nick Coghlan wrote:
> Perhaps ImportWarning should default to being ignored, the same way
> PendingDeprecationWarning does?
>
> Then -Wd would become 'the one obvious way' to debug import problems
+1
--
Benji York
___
Python-D
Michael Hudson wrote:
> Benji York <[EMAIL PROTECTED]> writes:
>
>>Nick Coghlan wrote:
>>
>>>Perhaps ImportWarning should default to being ignored, the same way
>>>PendingDeprecationWarning does?
>>>
>>>Then -Wd would become 't
/~rinard/paper/osdi04.pdf
--
Benji York
___
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
roperty on the directory
A script named "svnmerge" that does just that is included in the contrib
directory of the Subversion tar. We (ZC) have just started using it to
track two-way merge operations, but I don't have much experience
ing that usage to sharing branches
and such via bzr (or mercurial, which looks great), but keeping the
trunk in svn.
--
Benji York
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mai
ame, found, _ = pname.rpartition('.')
line, _, _ = line.partition('#')
Slicing:
sep, port = host.partition(':')[1:]
head, sep = path.rpartition('/')[:2]
line = line.partition(';')[0]
pname, found = pname.rpartition(
its name, but it's an extension that lets
> you store Python objects in shared memory and use them from multiple
> processes, modulo certain strict limitations.
"POSH": http://poshmodule.sourceforge.net/posh/html/
--
Benji York
___
> runner ?
Sounds like a good use for buildbot. After running the tests "normally"
they could be re-run with a different locale.
--
Benji York
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/pyth
52 matches
Mail list logo