undreds of emails a day, speed is
everything...
Thx,
Skip
___
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
g? That way in
2.x you might have StringIO and stringio available at the same time. The
user could enable or disable one or both names for testing and backward
compatibility.
This of course presumes that the api of the module doesn't change, just its
name.
Skip
interchange regarding VMS, perhaps you should add port
maintainers to that PEP as well.
Skip
___
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/ar
Anthony> I've done a lot of the work to get Python to build with g++ -
Anthony> ... I can't spend much more time on this now, but if someone
Anthony> wants to take over and finish it off, that'd be great.
Is this on a branch or available as
Anthony. Feel free to assign it back to me.
Skip
___
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
>>>>> "Jeremy" == Jeremy Hylton <[EMAIL PROTECTED]> writes:
Jeremy> Looks good to me. Why don't you check it in.
I did, but it broke the C build, so I reverted it and reopened the patch.
I'll try
ommon keywords. Yes, I realize
that some keywords in Python are more symbolic than that: "def", "lambda",
"del", "elif", "exec". But most keywords in Python are common English,
understood by almost anyone having any facility with the language.
S
ming twos-complement
arithmetic), cast -1 to unsigned long? Or does the API need to be changed
somehow?
Skip
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailma
errno's value then tested to see if it's not zero?
Looks like this have been that way since December 1999 when Fred added it.
Skip
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
Fred> Looks like a bug to me. It should be set just before confstr() is
Fred> called.
Thanks. I'll fix, test and check in...
Skip
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo
Tim> Explicitly casting -1 is both the obvious and best way, and is
Tim> guaranteed to "work as intended" by the standards.
Thanks. I'll fix 'em.
Skip
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.p
igned char*, int)'
During the 16-bit pass, SRE_CHAR expands to Py_UNICODE, so the call to
sre_literal_template is incorrect. Any ideas how to fix things?
As clever as the two-pass compilation thing is, I must admit it confuses me.
Thx,
Skip
___
I'm on the blame list for the current gentoo buildbot failures. I promise I
ran "make test" before checking anything in. I don't see where the changes
I checked in would have caused the reported test failures, but I'm
investigating. If anyone has any sugges
Fredrik> for some reason, tools of this kind tend to reach the big ball
Fredrik> of mud stage even before they reach the dogfood stage. and
Fredrik> once you have a big ball of mud, you simply won't get much
Fredrik> outside help
Not to mention many dogs won
Maybe they know something we
don't.
Thank you Phillip...
Skip
___
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
ngolia then showed up one day checked it in while
everyone was sleeping. I see mention of "setuptools" in the distutils-sig
archive at least as far back as May 2005 and mention of "eggs" back to at
least April 2005.
Skip
___
Python-De
be designed and implemented to suit
the needs of its constituency while distutils remains avilable and
compatible for those people using it.
Skip
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubsc
ore/etree/ElementTree.py or in a README file in the etree package?
Thx,
Skip
___
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
I had the possibly stupid idea today of running the stdlib through pylint.
Has anybody written a pylintrc file that attempts to reflect the
recommendations of PEP 8 the extent possible?
Thx,
Skip
___
Python-Dev mailing list
Python-Dev@python.org
http
cted, but will try to put some more time
in on it over the next little while.
Skip
___
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/
nce apply() is deprecated,
but the use of *args and **kwds is definitely not magic for this group.
Skip
___
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
hael> List displays (list comprehensions) are defined as (from
Michael> http://docs.python.org/ref/lists.html )
Note that the BNF there is mostly designed for human consumption. Have you
verified that the ambiguity is also present in the Grammar file?
Skip
_
obably ditto. There were some problems reported with the concept on
Windows (which unfortunately I lost). I have no particular interest in this
for the environments in which I work. I've asked for a couple times on
c.l.py for someone who is interested in this to take it over, but nobody's
ev
subpackages at a
Guido> frightening rate, and forgetting to do "touch __init__.py" has
Guido> caused many hours of lost work, not to mention injuries due to
Guido> heads banging against walls.
That's why God created make:
install:
touch __in
l a package with any resources in a
resources subdirectory. Now, those resources subdirectories generally don't
contain Python files (Glade files are the most frequent occupants), but
there's no reason they couldn't contain Python files.
Skip
___
thon.org/sf/1478364
I'm sure at the very least the idea needs more thought than I've given it.
It's just a half-baked idea at this point.
Skip
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/pyth
ot;.lstrip("source/")
String methods are defined in the Objects/stringobject.c file of the source
distribution.
Skip
___
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
er on a day-to-day basis? Maybe that
doesn't qualify as rigorous testing. I've been doing that for several
years. I can only remember once or twice needing to fall back to something
less bleeding edge for a short while.
Skip
___
Python-Dev
Tim> If there's no functionality changes, what would be the problem with
Tim> putting it in post-alpha?
It still represents new code that may introduce new bugs. In theory (and
generally in practice for Python), once you move into the beta stage all you
do is fix
>> skip? was this a real design or a Py3K bluesky idea?
Just about nothing I do is a real design. I don't remember the
weather conditions that day either. I was probably just noodling around
based upon discussions on python-dev that were mutated in my brain by gamma
rays
Fred> I see possibilities here. :-)
Fred appears to be looking for more job security. ;-)
Skip
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mail
poll (always an adventure with
SourceForget), can you explain what epoll does, how it's better than (parts
of) select, how widely it's used and how stable it is?
Thx,
Skip
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.pytho
itory and will be in 2.5. It works
with Python as far back as 1.5.2 though. As a result of last week's
NeedForSpeed sprint some questions were raised about the efficacy of its
string/unicode tests, however, it seems to be the best available tool at the
MAL> Could you please forward such questions to me ?
I suppose, though what question were you referring to? I was referring to
Fredrik's thread about stringbench vs pybench for string/unicode tests,
which I thought was posted to python-dev. I assumed you were aware of the
issu
e Andrew Dalke) post some timing
comparisons between pybench and stringbench. Something about a change not
impacting performance showing a 60% slowdown on pybench but no change using
stringbench. Maybe Fredrik had his iTunes volume cranked up too high... ;-)
Skip
__
Guido> ... PyNumber_AsIndex or whatever it's called.
Maybe the API is getting a little fat if it doesn't fit comfortably in the
BDFL's brain... Does that suggest it might need some streamlining for Py3k?
Skip
___
Python-Dev m
Guido> (Maybe a good unit test would require writing a custome C
Guido> extension; in that case just show some sample code.)
Isn't that what Module/_testcapimodule.c is for?
Skip
___
Python-Dev mailing list
Python-Dev@pyth
/wastemodule.c:19:30: error: WEObjectHandlers.h: No such
file or directory
.../Mac/Modules/waste/wastemodule.c:20:20: error: WETabs.h: No such file or
directory
Skip
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python
>> I recall wastemodule.c being mentioned. Now building it is failing
>> for me (Mac OSX 10.4.6). Was it only wounded but not killed?
Ronald> It that a new failure?
Yes. I svn up and rebuild at least once a week.
Skip
___
Tim> Until all this gets resolved, I strongly suggest reverting this
Tim> patch ...
So I won't check in changes to suppress compilation warnings on my Mac.
Andrew, look in your mail for a patch file.
Skip
___
Python-Dev mailing
t;. Behavior changes should be kept to a bare minimum.
Jim> (5) Should she clean up other issues when touching a module?
I suggest they be submitted as separate patches so as not to confuse
distinct issues (say, if one part needs to be retracted).
Skip
__
by anything in the current tree
Ronald> and are undocumented.
Worked fine, thanks.
Skip
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/opt
e list of candidate modules.
Please don't mess with anything that logs in the common Apache log format.
There are lots of tools out there that munch on that sort of output.
Changing it would just break them.
Skip
___
Python-Dev mailing
thing like 'cvs up -r r242'. How
do I get a list of tags? In cvs I'd do something like 'cvs log | less'.
Thx,
Skip
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscri
Oleg,
Thanks for the help. With the tags url I was able to identify the revision
I needed to update to.
Skip
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org
t checkout, then
Tim>svn switch svn+ssh://[EMAIL PROTECTED]/python/tags/r242
How is that different than noting that r242 corresponds to revision 39619
and executing:
svn up -r 39619
?
Thx,
Skip
___
Python-Dev mailing list
kup (then cache the result).
Skip
___
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
y to get at the MAC address at some
point in the future, maybe via a _uuid extension module that does all the
magic in C? Or is there something inherently slow in discovering a
machine's MAC address (I realize such a task would probably be q
he answer. Hope you don't mind...
It should show up on
http://www.python.org/dev/faq/
as question 3.23 in a few minutes.
Skip
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsu
b
>>> from ctypes import *
>>> libc = CDLL("libc.dylib")
>>> uuid = create_string_buffer(16)
>>> libc.uuid_generate(uuid, 1)
-1073747536
>>> print repr(uuid[:])
'[EMAIL PROTECTED]'
Skip
_
d be restricted to be a constant expression so that at compile
time a jump table or dictionary lookup could be used to jump straight to the
desired case.
Skip
___
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
Greg> Before accepting this, we could do with some debate about the
Greg> syntax. It's not a priori clear that C-style switch/case is the
Greg> best thing to adopt.
Oh sure. That debate should probably leverage PEP 275.
Skip
_n += 1
print _n
The cases must be evaluated in the order they are written for the example to
work properly.
The tension between efficient run-time and Python's highly dynamic nature
would seem to prevent the creation of a switch statement that will satisfy
all demands.
Greg> Multiple values could be written
Greg>case 'a':
Greg>case 'b':
Greg>case 'c':
Greg> ...
That would be an exception to the rule that a line ending in a colon
introduces an indented block.
Skip
_
p thereafter.
And if those expressions' values would change if evaluated after further
execution?
Skip
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/o
being no global statement in f() it must not
modify the global variable.
Skip
___
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
Noam Raphael posted an empty subscript PEP on the Python Wiki:
http://wiki.python.org/moin/EmptySubscriptListPEP
It's not linked to by any other pages on the wiki. Is there a reason it
wasn't added to the peps repository?
Skip
___
Just upgraded my Mac to OSX 10.4.7 yesterday. svn up'd Python trunk, then
"make clean ; configure ; make" and I see that building the zlib module
fails:
gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd
-DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I.
-I
rsion 10.4" on the spine. The "About This Mac" popup says
"10.4.7". It used to run 10.3 though. Is there some possibility the update
from 10.3 to 10.4 had problems?
Note that the compile log on the buildbot 10.4 box also has "10.3" in its
directory names. If I r
uild_ext
db.h: found (4, 2) in /sw/include/db4
db lib: using (4, 2) db-4.2
sqlite: found /usr/include/sqlite3.h
/usr/include/sqlite3.h: version 3.1.3
building 'zlib' extension
gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd
-DNDEBUG -g -O3 -W
PEP and post it.
Even if it's ultimately rejected, it still serves as useful documentation of
the process. I'd go ahead and update it to reflect the latest discussions,
submit it, then let the chips fall where they may. That would also get it
out of the wiki, orphaned page that it is.
Skip
__
oth already identify cases where builtins are masked
by locals or module globals (and may identify cases where locals mask module
globals - I don't recall). I suspect both could be generalized in this
regard without a huge effort. That's probably the
neral, for me to
Facundo> post a patch in SF.
As others have posted, yes, it would be useful for 2.6. However, you should
consider how that might be applied to the other Internet service modules
(ftplib, telnetlib, urllib, etc).
Skip
___
Python-Dev
Guido> To fake things like this, socket.setdefaulttimeout() was added,
Guido> though I don't know if it actually works. Have you tried that?
I'm pretty sure it does, but is a rather blunt instrument for the task, as
it affects all socket connections the app m
Personally, I've never really needed this much, but if you have
Barry> to have it, be explicit! :)
Nor I. I can't think of any situations in my programming where I've used
nested functions, but I was never a LISPer...
Skip
___
o me and I let it get so stale that Martin asked the
author to update it for 2.5 a couple months ago.
Skip
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/op
ele the DBPV (Dictator benevolo per vita)? ;-)
Skip
___
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
Skip> Does that make Samele the DBPV (Dictator benevolo per vita)? ;-)
Alex> In Italian that would be DBAV (Dittatore benevolo a vita)...;-)
Damn Google Translator. File a bug report for me please Alex (or Guido or
Jeremy or Neal or ...). ;-)
I think it's almost a YAGNI, but I'm sure others will
disagree.
Skip
Repeat after me: Python is not Lisp...
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.
)
print x
f()
print x
Today it prints
2
1
2
You're suggesting it will print
2
2
0
?
Sounds reasonable to me. If we're talking py3k I'd chuck "global" as a
keyword though and replace it with something like "outer".
S
Reinhold> Wouldn't that be \versionadded{2.4}?
Yes, thanks. Corrected.
Skip
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/py
ed to. (I will gladly do it if the sentiment is that picking off such
low-hanging fruit is worthwhile.) What do other people think?
Skip
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
Why does math have an fabs function? Both it and the abs builtin function
wind up calling fabs() for floats. abs() is faster to boot.
Skip
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe
l websites running
CentOS 4, Apache+mod_perl, Python, Mason, MySQLdb, Mailman, etc). Their
service has been absolutely awesome. Sean is one of the python.org
webmasters to boot, so he knows our culture very well already.
Skip
___
Python-Dev maili
something?
Thx,
Skip
___
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
any system
with a Python interpreter". If it's that platform-independent, perhaps it
will work on some systems that don't support CVS. It does require Python
2.4, though I doubt that would be a great hardship for many people
interested in
et further I'll post my
results. If others have gotten further, tips would be appreciated.
Skip
___
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
Martin> Like Skip, I tried experimenting with it. While that may be the
Martin> right model, I don't think it is the right software. [problems
Martin> elided]
Martin> So I assume that using bazaar-ng right now would cause problems
Martin> in day-to-day us
ppears that to do a one-time convertsion from cvs to bzr I
will need to also install arch and baz as well as any other packages they
depend on.
Skip
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
f Hunchback of Notre Dame types (maybe more the Marty
Feldman (*) hunchback types) into submission with a whip while one of them
cried, "We'll do anything you ask, master. Just don't beat us again."
The-beatings-will-continue-until-morale-improves-ly, y'rs,
Skip
(*) htt
"id", "reload", "execfile", "ord", etc. Finally,
there is the subset of builtins that is included almost solely as a
convenience for use at the interpreter prompt. They include "quit", "exit"
and "copyright". I could care le
n.org the same
machine with different IP addresses? If they are different machines, why
would we want to host svn repositories on multiple machines?
Skip
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/pytho
ent is over and we have really and truly migrated
to svn I will simply let other people fuss with things.
Skip
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman
ke of
script writers' sanity it would be better to elide spaces or replace them
with underscores so the annotated user is a single "word":
40555 Skip Montanaro ++++
28675 montanaro Python News
40555 Skip Montanaro
28675 montanaro
Guido> It's never too early to start deprecating a feature we know will
Guido> disappear in 3.0.
Though if it's a widely used feature the troops will be highly annoyed by
all the deprecation warnings. (Or does deprecation not coincide with
emitting
uld be
>> exceptions, in order to pass both the exception "type" and message.)
>> PEPs 8_ and 3000_ were accordingly updated.
I do have a followup question on the style thing. (I'll leave others to
answer MAL's question about optimization.) If
x all the instances in the projects I'm
involved with at my day job in a couple rounds of grep/emacs macro sessions.
It took all of about 20 minutes, so I don't think the conversion will be
onerous.
Skip
___
Python-Dev mailing list
Python-Dev@p
Nick> What about simply "str.parts" and "str.rparts"?
-1 because "parts" is not a verb. When I see an attribute that is a noun I
generally expect it to be a data attribute.
Skip
___
Python-Dev mailin
id, I
believe Charlton Heston only parted the Red Sea in one place...
Skip
___
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
#x27;ab', 'ra']
and you get it in the return value. In fact, re.split with a grouped re is
very much like Raymond's str.partition method without the guarantee of
returning a three-element list.
Skip
___
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
In fact, re.split with a grouped re is very much like Raymond's
str.partition method without the guarantee of returning a three-element
list.
Whoops... Should also have included the maxsplit=1 constraint.
Skip
___
Python-Dev mailing
mpiling your patterns and caching them
for you.
Skip
___
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
>> Unrelated comment: maybe 'cut()' and rcut() would be nice short names.
Barry> FWIW, +1 on .cut(), +0 on .partition()
As long as people are free associating: snip(), excise(), explode(),
invade_iraq()...
Skip
___
Pyth
n is the correct one. Always return a
three-element tuple of strings, nothing more. Use '_' or 'dummy' if there
is some element you're not interested in.
Skip
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.o
honest-to-goodness stat object
and also strip the "st_" prefixes removed from the attributes. There's no
namespace collision problems from which the prefixes protect us.
Skip
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.pytho
d would have to recognize that it
wasn't truly NUL-terminated, copy it, call strncmp() or whatever underlying
routine is used for string comparisons. (Maybe string comparisons are done
inline. I'm sure there are some examples where the under
Skip> OTOH, maybe that would work. Perhaps we should try it.
Ah, I forgot the data is part of the PyString object itself, not stored as a
separate char* array. Without a char* in the object it's kind of hard to do
views.
Skip
___
Py
r than that of the
original string.
Skip
___
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
referent field. If not NULL, it refers to another string
object which is INCREFed in the usual way. At string deallocation, if the
referent is not NULL, the referent is DECREFed. If the referent is NULL,
ob_sval is freed.
Skip
___
Python-Dev mailing l
ings would
break with a string containing an embedded NUL.
Skip
___
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
701 - 800 of 1293 matches
Mail list logo