[Python-Dev] Suggestion: Please login to wiki when you make changes

2006-04-05 Thread skip
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

[Python-Dev] module aliasing

2006-04-06 Thread skip
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

Re: [Python-Dev] need info for externally maintained modules PEP

2006-04-10 Thread 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

Re: [Python-Dev] building with C++

2006-04-12 Thread skip
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

Re: [Python-Dev] building with C++

2006-04-12 Thread skip
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

Re: [Python-Dev] building with C++

2006-04-13 Thread skip
>>>>> "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

Re: [Python-Dev] PEP 359: The "make" Statement

2006-04-14 Thread skip
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

[Python-Dev] Returning -1 from function with unsigned long type

2006-04-17 Thread skip
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

[Python-Dev] posix_confstr seems wrong

2006-04-17 Thread skip
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:

Re: [Python-Dev] posix_confstr seems wrong

2006-04-17 Thread skip
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

Re: [Python-Dev] Returning -1 from function with unsigned long type

2006-04-17 Thread skip
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

[Python-Dev] How to make _sre.c compile w/ C++?

2006-04-17 Thread skip
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 ___

[Python-Dev] Gentoo failures - it's blaming me...

2006-04-17 Thread 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

Re: [Python-Dev] Raising objections

2006-04-19 Thread skip
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&#

Re: [Python-Dev] setuptools in 2.5.

2006-04-20 Thread skip
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

Re: [Python-Dev] Raising objections

2006-04-20 Thread skip
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

Re: [Python-Dev] setuptools in the stdlib ([Python-checkins] r45510 - python/trunk/Lib/pkgutil.py python/trunk/Lib/pydoc.py)

2006-04-20 Thread skip
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

Re: [Python-Dev] need info for externally maintained modules PEP

2006-04-20 Thread skip
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

[Python-Dev] PEP 8 pylintrc?

2006-04-23 Thread skip
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

[Python-Dev] Compiling w/ C++ (was: Reducing memory overhead for dictionaries by removing me_hash)

2006-04-23 Thread skip
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/

Re: [Python-Dev] PEP 8 pylintrc?

2006-04-24 Thread skip
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

Re: [Python-Dev] Python Grammar Ambiguity

2006-04-24 Thread skip
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 _

Re: [Python-Dev] Addressing Outstanding PEPs

2006-04-26 Thread 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

Re: [Python-Dev] Dropping __init__.py requirement for subpackages

2006-04-27 Thread skip
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

Re: [Python-Dev] Dropping __init__.py requirement for subpackages

2006-04-27 Thread skip
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 ___

[Python-Dev] Is this a bad idea: picky floats?

2006-04-28 Thread 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

Re: [Python-Dev] correction of a bug

2006-05-14 Thread skip
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

Re: [Python-Dev] 2.5 schedule

2006-05-21 Thread skip
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

Re: [Python-Dev] [Python-checkins] r46043 - peps/trunk/pep-0356.txt

2006-05-22 Thread skip
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

Re: [Python-Dev] [Python-checkins] whatever happened to string.partition ?

2006-05-25 Thread skip
>> 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

Re: [Python-Dev] A Horrible Inconsistency

2006-05-26 Thread skip
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

Re: [Python-Dev] epoll implementation

2006-05-26 Thread skip
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

Re: [Python-Dev] Python Benchmarks

2006-05-31 Thread skip
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

Re: [Python-Dev] Python Benchmarks

2006-05-31 Thread skip
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

Re: [Python-Dev] Python Benchmarks

2006-05-31 Thread skip
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 __

Re: [Python-Dev] Arguments and PyInt_AsLong

2006-05-31 Thread 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

Re: [Python-Dev] Possible bug in complexobject.c (still in Python 2.5)

2006-05-31 Thread skip
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

[Python-Dev] Mac/wastemodule build failing

2006-06-04 Thread skip
/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

Re: [Python-Dev] Mac/wastemodule build failing

2006-06-04 Thread skip
>> 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 ___

Re: [Python-Dev] patch #1454481 vs buildbot

2006-06-04 Thread 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

Re: [Python-Dev] Stdlib Logging questions (PEP 337 SoC)

2006-06-04 Thread skip
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 __

Re: [Python-Dev] Mac/wastemodule build failing

2006-06-05 Thread 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

Re: [Python-Dev] Stdlib Logging questions (PEP 337 SoC)

2006-06-06 Thread skip
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

[Python-Dev] Subversion repository question - back up to older versions

2006-06-08 Thread skip
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

Re: [Python-Dev] Subversion repository question - back up to older versions

2006-06-08 Thread skip
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

Re: [Python-Dev] Subversion repository question - back up to older versions

2006-06-08 Thread skip
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

Re: [Python-Dev] UUID module

2006-06-09 Thread skip
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

Re: [Python-Dev] UUID module

2006-06-09 Thread skip
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

Re: [Python-Dev] Subversion repository question - back up to older versions

2006-06-09 Thread skip
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

Re: [Python-Dev] UUID module

2006-06-10 Thread skip
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 _

Re: [Python-Dev] Switch statement

2006-06-10 Thread 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

Re: [Python-Dev] Switch statement

2006-06-10 Thread skip
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

Re: [Python-Dev] Switch statement

2006-06-11 Thread 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.

Re: [Python-Dev] Switch statement

2006-06-12 Thread skip
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 _

Re: [Python-Dev] Switch statement

2006-06-12 Thread 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

Re: [Python-Dev] 2.5 and beyond

2006-06-30 Thread skip
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

[Python-Dev] Empty Subscript PEP on Wiki - keep or toss?

2006-06-30 Thread skip
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 ___

[Python-Dev] zlib module build failure on Mac OSX 10.4.7

2006-06-30 Thread 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

Re: [Python-Dev] zlib module build failure on Mac OSX 10.4.7

2006-07-01 Thread skip
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

Re: [Python-Dev] zlib module build failure on Mac OSX 10.4.7

2006-07-01 Thread skip
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

Re: [Python-Dev] Empty Subscript PEP on Wiki - keep or toss?

2006-07-01 Thread skip
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 __

Re: [Python-Dev] Lexical scoping in Python 3k

2006-07-03 Thread 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

Re: [Python-Dev] Time-out in URL Open

2006-07-03 Thread skip
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

Re: [Python-Dev] Time-out in URL Open

2006-07-03 Thread skip
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

Re: [Python-Dev] Explicit Lexical Scoping (pre-PEP?)

2006-07-05 Thread skip
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 ___

Re: [Python-Dev] Time-out in URL Open

2006-07-05 Thread 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

Re: [Python-Dev] Import semantics

2006-07-05 Thread skip
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

Re: [Python-Dev] Import semantics

2006-07-05 Thread skip
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 ...). ;-)

Re: [Python-Dev] Explicit Lexical Scoping (pre-PEP?)

2006-07-06 Thread skip
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.

Re: [Python-Dev] Explicit Lexical Scoping (pre-PEP?)

2006-07-07 Thread skip
) 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

Re: [Python-Dev] python/dist/src/Doc/lib emailutil.tex,1.11,1.12

2005-07-17 Thread skip
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

[Python-Dev] should doc string content == documentation content?

2005-07-24 Thread skip
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:

[Python-Dev] math.fabs redundant?

2005-07-29 Thread skip
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

[Python-Dev] Hosting svn.python.org

2005-08-12 Thread skip
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

[Python-Dev] cvs to bzr?

2005-08-13 Thread skip
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

Re: [Python-Dev] Fwd: Distributed RCS

2005-08-14 Thread skip
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

Re: [Python-Dev] cvs to bzr?

2005-08-14 Thread skip
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

Re: [Python-Dev] Fwd: Distributed RCS

2005-08-14 Thread skip
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

Re: [Python-Dev] cvs to bzr?

2005-08-14 Thread skip
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

Re: [Python-Dev] PEP 347: Migration to Subversion

2005-08-16 Thread skip
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

Re: [Python-Dev] Deprecating builtin id (and moving it to sys())

2005-08-21 Thread skip
"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

Re: [Python-Dev] Admin access using svn+ssh

2005-08-22 Thread skip
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

Re: [Python-Dev] Admin access using svn+ssh

2005-08-22 Thread skip
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

Re: [Python-Dev] Admin access using svn+ssh

2005-08-22 Thread skip
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

Re: [Python-Dev] Bare except clauses in PEP 348

2005-08-25 Thread skip
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

Re: [Python-Dev] Style for raising exceptions (python-dev Summary for 2005-08-01 through 2005-08-15 [draft])

2005-08-25 Thread skip
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

Re: [Python-Dev] Style for raising exceptions (python-dev Summary for 2005-08-01 through 2005-08-15 [draft])

2005-08-27 Thread skip
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

Re: [Python-Dev] partition() (was: Remove str.find in 3.0?)

2005-08-30 Thread skip
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

Re: [Python-Dev] partition() (was: Remove str.find in 3.0?)

2005-08-30 Thread skip
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

Re: [Python-Dev] partition() (was: Remove str.find in 3.0?)

2005-08-30 Thread skip
#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

Re: [Python-Dev] partition() (was: Remove str.find in 3.0?)

2005-08-30 Thread skip
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

Re: [Python-Dev] partition() (was: Remove str.find in 3.0?)

2005-08-30 Thread skip
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

Re: [Python-Dev] partition() (was: Remove str.find in 3.0?)

2005-08-30 Thread skip
>> 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

Re: [Python-Dev] Proof of the pudding: str.partition()

2005-08-31 Thread skip
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

[Python-Dev] stat() return value (was: Re: Proof of the pudding: str.partition())

2005-08-31 Thread skip
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

[Python-Dev] String views (was: Re: Proof of the pudding: str.partition())

2005-08-31 Thread skip
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

Re: [Python-Dev] String views (was: Re: Proof of the pudding: str.partition())

2005-08-31 Thread skip
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

Re: [Python-Dev] String views (was: Re: Proof of the pudding: str.partition())

2005-08-31 Thread skip
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

Re: [Python-Dev] String views (was: Re: Proof of the pudding: str.partition())

2005-08-31 Thread skip
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

Re: [Python-Dev] String views (was: Re: Proof of the pudding:str.partition())

2005-09-01 Thread skip
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

<    3   4   5   6   7   8   9   10   11   12   >