[Python-Dev] PEP 454 (tracemalloc) disable ==> clear?

2013-10-28 Thread Jim Jewett
reset() function: Clear traces of memory blocks allocated by Python. Does this do anything besides clear? If not, why not just re-use the 'clear' name from dicts? disable() function: Stop tracing Python memory allocations and clear traces of memory blocks alloc

Re: [Python-Dev] PEP 454 (tracemalloc) disable ==> clear?

2013-10-30 Thread Jim Jewett
On Wed, Oct 30, 2013 at 6:02 AM, Victor Stinner wrote: > 2013/10/30 Jim J. Jewett : >> Well, unless I missed it... I don't see how to get anything beyond >> the return value of get_traces, which is a (time-ordered?) list >> of allocation size with then-current call stack. It doesn't mention >> an

Re: [Python-Dev] [Python-checkins] cpython: Close #19762: Fix name of _get_traces() and _get_object_traceback() function

2013-11-25 Thread Jim Jewett
Why are these functions (get_traces and get_object_traceback) private? (1) Is the whole module provisional? At one point, I had thought so, but I don't see that in the PEP or implementation. (I'm not sure that it should be provisional, but I want to be sure that the decision is intentional.) (

Re: [Python-Dev] PEP 460 reboot

2014-01-14 Thread Jim Jewett
On Tue, Jan 14, 2014 at 3:06 PM, Guido van Rossum wrote: > Personally I wouldn't add any words suggesting or referring to the > option of creation another class for this purpose. You wouldn't > recommend subclassing dict for constraining the types of keys or > values, would you? Yes, and it is so

[Python-Dev] Extent of post-rc churn

2014-02-20 Thread Jim Jewett
http://midwinter.com/~larry/3.4.status/merge.status.html lists enough changes that it sounds more like a bugfix release than "just a few last tweaks after the rc". It would probably help if the what's-new-in-rc2 explicitly mentioned that asyncio is new and provisional with 3.4, and listed its chan

[Python-Dev] DB-API v2.1 or v3 [inspired by: python 3 niggle: None < 1 raises TypeError]

2014-02-20 Thread Jim Jewett
I personally regret that sorting isn't safe, but that ship has sailed. There is practicality benefit in making None compare to everything, just as C and Java do with null pointers -- but it is too late to do by default. Adding a keyword to sorted might be nice -- but then shouldn't it also be add

[Python-Dev] html5lib/BeautifulSoup (was: Integrate lxml into the stdlib? (was: Integrate BeautifulSoup into stdlib?))

2009-03-05 Thread Jim Jewett
Stefan Behnel wrote: > I would have a hard time feeling happy > if a real-world HTML parser was added to the stdlib that provides a totally > different interface than the best (and fastest) XML library that the stdlib > currently has. I doubt there would be any objection to someone contributing w

Re: [Python-Dev] Integrate BeautifulSoup into stdlib?

2009-03-08 Thread Jim Jewett
Michael Foord wrote: > Chris Withers wrote: >> ... love to see ... but ... not optimistic >> - python to grow a decent, cross platform, package management system As stated, this may be impossible, because of the difference in what a package should mean on Windows vs Unix. If you just mean a way

[Python-Dev] wait time [was: Ext4 data loss]

2009-03-12 Thread Jim Jewett
It is starting to look as though flush (and close?) should take an optional wait parameter, to indicate how much re-assurance you're willing to wait for. It also looks like we can't know enough to predict all sensible symbolic constants -- so instead use a floating point numeric value. f.flush(wa

Re: [Python-Dev] wait time [was: Ext4 data loss]

2009-03-12 Thread Jim Jewett
On 3/12/09, "Martin v. Löwis" wrote: >> It is starting to look as though flush (and close?) should take an >> optional wait parameter, to indicate how much re-assurance you're >> willing to wait for. > Unfortunately, such a thing would be unimplementable on most of today's > operating systems. W

[Python-Dev] sure [was: Ext4 data loss]

2009-03-12 Thread Jim Jewett
[new name instead of "wait" -- but certainty is too long, patience too hard to spell, etc...] >> class file(_file): ... >> def flush(self, sure=0): > super().flush(self) > if sure < 0.25: > return > if sure < 0.5 and os.fdatasync: > os.fdatasync(

[Python-Dev] return from a generator [was:PEP 380 (yield from a subgenerator) comments]

2009-03-26 Thread Jim Jewett
On Thu, Mar 26, 2009 at 4:19 PM, P.J. Eby wrote: >> What I don't like is the confusion of adding "return values" to generators, >> at least using the 'return' statement. At Fri Mar 27 04:39:48 CET 2009, Guido van Rossum replied: > I'm +1 on "yield from" and +0 on return values in generators. >

[Python-Dev] package resources [was: "setuptools has divided the Python community"]

2009-03-28 Thread Jim Jewett
At 11:27 PM 3/26/2009 +, Paul Moore wrote: >> What I'd really like is essentially some form of "virtual filesystem" >> access to stuff addressed relative to a Python package name, P.J. Eby responded: > Note that relative to a *Python package name* isn't quite as useful, > due to namespace pack

[Python-Dev] #!/usr/bin/env python --> python3 where applicable

2009-04-30 Thread Jim Jewett
Jared Grubb wrote: > Ok, so if I understand, the situation is: > * python points to 2.x version > * python3 points to 3.x version > * need to be able to run certain 3k scripts from cmdline (since we're >talking about shebangs) using Python3k even though "python" >points to 2.x > So, if I

[Python-Dev] PEP 383 and GUI libraries

2009-05-03 Thread Jim Jewett
(sent only to python-dev, as I am not a subscriber of tahoe-dev) Zooko wrote: > [Tahoe] currently uses utf-8 for its internal storage (note: nothing to > do with reading or writing files from external sources -- only for > storing filenames in the decentralized storage system which is > accessed

[Python-Dev] PEP 384: Defining a Stable ABI

2009-05-22 Thread Jim Jewett
Martin v. Löwis wrote: > - PyGetSetDef (name, get, set, doc, closure) Is it fully decided that the generally-unused closure parameter will stay until python 4? > The accessor macros to these fields (Py_REFCNT, Py_TYPE, Py_SIZE) > are also available to applications. There have been several expe

[Python-Dev] Remove site-packages?!? [was: [Distutils] PEP 376 - from PyPM's point of view]

2009-07-18 Thread Jim Jewett
Michael Foord wrote: >> I agree. People with versioning issues *should* be using virtualenv. Tarek Ziadé replied (and several people later agreed) > Let's remove site-packages from Python then. What about those people *without* versioning issues? I have no qualms suggesting that package manageme

[Python-Dev] standard library mimetypes module pathologically broken?

2009-08-02 Thread Jim Jewett
[It may be worth creating a patch; I think most of these comments would be better on the bug-tracker.] (1) In a few cases, it looked like you were changing parameter names between "files" and "filenames". This might break code that was calling it with keyword arguments -- as I typically would fo

[Python-Dev] statement vs expression [was: (try-except) conditional expression similar to (if-else) conditional (PEP 308)]

2009-08-09 Thread Jim Jewett
> Kristján Valur Jónsson wrote: >> I've never understood the need to have a distinction betwen statements >> and expressions, not when expressions can have side effects. Alex Martelli responded: > If you're interested in understanding it better, research > Query-Command Separation (QCS), e.g. sta

[Python-Dev] codecs.oen [was: PEP 385: the eol-type issue]

2009-08-09 Thread Jim Jewett
> M.-A. Lemburg wrote: >> ... and because of this, the feature is already available if >> you use codecs.open() instead of the built-in open(): Neil Hodgson asked: > So should I not add an issue for the basic open because codecs.open > should be used for this case? In python 3, why does codecs.o

[Python-Dev] __file__ and bytecode-only

2010-03-03 Thread Jim Jewett
I understand the need to ship without source -- but why does that require supporting .pyc (or .pyo) -only? Couldn't vendors just replace the real .py files with empty files? Then no one would need the extra stat call, and no one would be bitten by orphaned .pyc files after a rename. [Yes, zips c

[Python-Dev] PEP 356: python.org/sf/1515343 resolution

2006-07-11 Thread Jim Jewett
python.org/sf/1515343 fixes a regression against 2.4, which masks exceptions, and should therefore go in before release. The tracker has a patch to the test cases, and two alternative fixes. (One minimal, the other less ugly.) Since this only affects string exceptions with a value, it might be a

[Python-Dev] Restricted execution: what's the threat model?

2006-07-12 Thread Jim Jewett
Ka-Ping Yee writes: > A. The interpreter will not crash no matter what Python code > it is given to execute. Why? We don't want it to crash the embedding app (which might be another python interpreter), but if the sandboxed interpreter itself crashes, is that so bad? The embedding app

[Python-Dev] logging module broken because of locale

2006-07-20 Thread Jim Jewett
Mihai, It does make sense to document this limit for people writing subclasses, or using a Turkic codeset. I'm not sure that logging is the right place to document it, and I don't think changing the base classes is a good idea. TimedRotatingFileHandler and HTTPHandler restrict their input to a t

Re: [Python-Dev] logging module broken because of locale

2006-07-20 Thread Jim Jewett
On 7/20/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > On Thu, Jul 20, 2006 at 11:39:27AM -0400, Jim Jewett wrote: > > Even SysLogHandler.emit doesn't actually print the string; it is only > > used as a lookup key for a dictionary whose keys are all lower-case > &

[Python-Dev] Rounding float to int directly (Re: struct module and coercing floats to integers)

2006-08-03 Thread Jim Jewett
Greg Ewing wrote: > The time isn't the main issue. The main issue > is that almost all the use cases for round() > involve doing an int() on it afterwards. At > least nobody has put forward an argument to > the contrary yet. Or, more accurately, they *should* involve an int afterwards, but often

[Python-Dev] unicode hell/mixing str and unicode as dictionary keys

2006-08-03 Thread Jim Jewett
http://mail.python.org/pipermail/python-dev/2006-August/067934.html M.-A. Lemburg mal at egenix.com > Ralf Schmitt wrote: >> Still trying to port our software. here's another thing I noticed: >> d = {} >> d[u'm\xe1s'] = 1 >> d['m\xe1s'] = 1 >> print d (a 2-element dictionary, because they are no

[Python-Dev] openSSL and windows binaries - license

2006-08-08 Thread Jim Jewett
The OpenSSL library implements some algorithms that are patented. The source code should be fine to (re)distribute, but but there may be a slight legal risk with distributing a binary. Note that http://www.openssl.org/support/faq.html#LEGAL1 says that we can avoid building the problem sections wi

Re: [Python-Dev] openSSL and windows binaries - license

2006-08-08 Thread Jim Jewett
On 8/8/06, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > Jim Jewett schrieb: > > The OpenSSL library implements some algorithms that are patented. The > > source code should be fine to (re)distribute, but but there may be a > > slight legal risk with dist

Re: [Python-Dev] openSSL and windows binaries - license

2006-08-09 Thread Jim Jewett
On 8/8/06, Greg Ewing <[EMAIL PROTECTED]> wrote: > If distributing the source doesn't violate the patent, > and distributing a binary doesn't violate the patent, > then what *would* constitute a violation of a software > patent? > Writing new code using the algorithm? Compiling > something which

[Python-Dev] Dict suppressing exceptions

2006-08-09 Thread Jim Jewett
> It wasn't my idea to stop ignoring exceptions in dict lookups; I would > gladly have put this off until Py3k, where the main problem > (str-unicode __eq__ raising UnicodeError) will go away. > But since people are adamant that they want this in sooner, Is this true for dictionaries specifically

[Python-Dev] Dict suppressing exceptions

2006-08-11 Thread Jim Jewett
Martin v. Löwis wrote: > Now I looked at it, and think that the recipe is broken. It should > add an __eq__ method which is > def __eq__(self, other): > return type(self) is type(other) \ > and self.EnumType is other.EnumType \ > and self.__value==other.__value) Absol

[Python-Dev] IDLE patches - bugfix or not?

2006-08-15 Thread Jim Jewett
I just uploaded a series of IDLE patches, but I'm not quite sure how to classify them on the feature/bugfix scale now that the last beta is out. >From most to least buggish: python.org/sf/1540892 -- honor the new quit() behavior. On the other hand, it was documented that this didn't work in IDLE

Re: [Python-Dev] IDLE patches - bugfix or not?

2006-08-16 Thread Jim Jewett
> > python.org/sf/1540874 -- broken shortcut keys. On windows, only one > > entry per menu can be reached with the same shortcut letter, so > > advertising others is just an attractive nuisance. I'm not sure that > > other systems wouldn't be able to use the hidden shortcuts. On 8/15/06, Anthony

[Python-Dev] How does this help? Re: [Python-checkins] r51366 - python/trunk/Lib/idlelib/NEWS.txt python/trunk/Lib/idlelib/idlever.py

2006-08-18 Thread Jim Jewett
This makes things more consistent for today, but does it really ease maintenance? Why not just change it to: from sys import version as IDLE_VERSION so that it can be ignored from now on? On 8/18/06, anthony.baxter <[EMAIL PROTECTED]> wrote: > Author: anthony.baxter > Date: Fri Aug 18 09:29:02

[Python-Dev] Questions on unittest behaviour

2006-08-21 Thread Jim Jewett
Collin Winter: > [ improvements to unittest] These would all have been (mostly) reasonable when the module was first added to the standard library. But it has been there as an ugly fragile unchanging beast for several years, and is ironically not well endowed with unit tests. I therefore think

[Python-Dev] Fwd: [Python-checkins] r51674 - python/trunk/Misc/Vim/vimrc

2006-09-01 Thread Jim Jewett
This 8 vs 4 is getting cruftier and cruftier. (And does it deal properly with existing code that already has four spaces because it was written recently?) "Tim" regularly fixes whitespace already, with little damage. Would it make sense to do a one-time cutover on the 2.6 trunk? How about the bu

[Python-Dev] Fwd: Problem withthe API for str.rpartition()

2006-09-05 Thread Jim Jewett
Reversing the order of the return tuple will break the alignment with split/rsplit. Why not just change which of the three strings holds the remainder in the not-found case? In rc1, "d".rpartition(".") --> ('d', '', '') If that changes to "d".rpartition(".") --> ('', '', 'd') then (1)

Re: [Python-Dev] Fwd: Problem withthe API for str.rpartition()

2006-09-05 Thread Jim Jewett
> Jim Jewett wrote: > >Why not just change which of the three strings holds the remainder in > >the not-found case? On 9/5/06, Raymond Hettinger <[EMAIL PROTECTED]> wrote: > That was the only change submitted. > Are you happy with what was checked-in? This change

Re: [Python-Dev] Fwd: Problem withthe API for str.rpartition()

2006-09-05 Thread Jim Jewett
On 9/5/06, Fred L. Drake, Jr. <[EMAIL PROTECTED]> wrote: > S.partition(sep) -> (head, sep, rest) > S.rpartition(sep) -> (tail, sep, rest) > Here, "rest" is always used for "what remains"; head/tail are somewhat more > clear here I think. Then shouldn't rpartition be S.rpartition(sep) ->

Re: [Python-Dev] Fwd: Problem withthe API for str.rpartition()

2006-09-05 Thread Jim Jewett
I think I finally figured out where Raymond is coming from. For Raymond, "head" is where he started processing -- for rpartition, this is the .endswith part. For me, "head" is the start of the data structure -- always the .startswith part. We won't resolve that with anything suggesting a sequent

[Python-Dev] openssl - was: 2.4.4c1 October 11, 2.4.4 final October 18

2006-09-27 Thread Jim Jewett
OpenSSL should probably be upgraded to 0.9.8.c (or possibly 0.9.7.k) because of the security patch. http://www.openssl.org/ http://www.openssl.org/news/secadv_20060905.txt I'm not sure which version shipped with the 2.4 windows binaries, but externals (for 2.5) still points to 0.9.8.a, wh

[Python-Dev] PEP: Adding data-type objects to Python

2006-10-30 Thread Jim Jewett
Travis E. Oliphant wrote: > Two packages need to share a chunk of memory (the package authors do not > know each other and only have and Python as a common reference). They > both want to describe that the memory they are sharing has some > underlying binary structure. As a quick sanity check, p

[Python-Dev] PEP: Adding data-type objects to Python

2006-11-01 Thread Jim Jewett
I'm still not sure exactly what is missing from ctypes. To make this concrete: You have an array of 500 elements meeting struct { int simple; struct nested { char name[30]; char addr[45]; int amount; } ctypes can describe this as class n

[Python-Dev] Path object design

2006-11-01 Thread Jim Jewett
On 10:06 am, g.brandl at gmx.net wrote: >> What a successor to os.path needs is not security, it's a better (more pythonic, >> if you like) interface to the old functionality. Glyph: > Why? > Rushing ... could exacerbate a very real problem, e.g. > the security and data-integrity implications of

Re: [Python-Dev] [Python-checkins] MSI being downloaded 10x more than all other files?!

2006-12-11 Thread Jim Jewett
On 12/8/06, Guido van Rossum <[EMAIL PROTECTED]> wrote: > /ftp/python/2.5/python-2.5.msi is by far the top download -- 271,971 > hits, more than 5x the next one, /ftp/python/2.5/Python-2.5.tgz > (47,898 hits). Are these numbers real? Why wouldn't it be? Most computers are running windows. Most p

[Python-Dev] Code working in both 2.x and 3.X

2007-01-11 Thread Jim Jewett
Raymond Hettinger wrote: > Also, I'm wondering if the desire for 2.6 warnings is based on the notion that > it will be possible to get large tools to work under both Py2.x and Py3.x. I had certainly assumed it would be possible. In fact, I had assumed that the 2->3 translator would have a mode w

Re: [Python-Dev] [Python-3000] dict.items as attributes [Was: The bytes type]

2007-01-16 Thread Jim Jewett
Other than dict.items (and .keys and .values) returning a non-list, are there any other cases where the Py3K idiom can't already be used in (or at least backported to) Py 2.x? Is there a chance that this special case could be handled by an import hook in py 2.6? For example 2.6 could have an addi

Re: [Python-Dev] [Python-3000] dict.items as attributes [Was: The bytes type]

2007-01-17 Thread Jim Jewett
On 1/17/07, Thomas Wouters <[EMAIL PROTECTED]> wrote: > On 1/16/07, Jim Jewett <[EMAIL PROTECTED]> wrote: > > Other than dict.items (and .keys and .values) returning a non-list, > > are there any other cases where the Py3K idiom can't already be used > >

[Python-Dev] Floor division

2007-01-23 Thread Jim Jewett
Nick Maclaren wrote: >... I can work with and teach almost any model, > and have done so with some pretty weird ones. I think python's model is "Whatever your other tools use. Ask them." And I think that is a reasonable choice. For sensible input, the various models all work the same. For dubio

[Python-Dev] compex numbers (was Floor Division)

2007-01-23 Thread Jim Jewett
Tim Peters wrote: > complex_new() ends with: > cr.real -= ci.imag; > cr.imag += ci.real; > and I have no idea what that thinks it's doing. Surely this isn't intended?!: I think it is. python.org/sf/1642844 adds comments to make it less unclear. > >>> complex(complex(1.0, 2.0),

[Python-Dev] Python's C interface for types

2007-01-31 Thread Jim Jewett
Nick Maclaren wrote: > Martin v. Löwis wrote: >> It may be a bit problematic to implement, but I think a clean >> specification is possible. If a and b are numbers, and a==b, >> then hash(a)==hash(b). You don't even need that much complication. If a==b, then hash(a) == hash(b) If you have

[Python-Dev] dict(keys, values)

2007-02-01 Thread Jim Jewett
George Sakkis wrote: > far too often I use the idiom dict(zip(keys,values)), or > the same with izip. How does letting dict take two positional > arguments sound ? I think the dict constructor is already a bit too complicated, and would prefer that it be a separate classmethod, such as dict.

[Python-Dev] Python's C interface for types

2007-02-01 Thread Jim Jewett
Nick Maclaren wrote: >>> I really do mean that quite a lot of floating-point bells and whistles >>> are non-transitive. Martin v. Löwis wrote: >> If so, they just shouldn't use the equal operator (==). == ought to >> be transitive. It should be consistent with has(). Nick Maclaren wrote: > Fine.

[Python-Dev] Why is nb_inplace_power ternary?

2007-02-09 Thread Jim Jewett
Greg Ewing schrieb: > Might we want to add an in-place version of the 3-arg > pow() function one day? If so, leaving the third argument > there could be useful. "Martin v. Löwis" martin at v.loewis.de replied: > What could the syntax for that be? > Instead of writing > x = pow(x, n, 10) Either

[Python-Dev] NamedTuple (was: Py2.6 ideas)

2007-02-20 Thread Jim Jewett
Raymond Hettinger explained: > The constructor signature ... Point(*fetchall(s)), > and it allows for direct construction with Point(2,3) without the > slower and weirder form: Point((2,3)). If you were starting from scratch, I would agree whole-heartedly; this is one of my most frequent mistakes

Re: [Python-Dev] [Python-checkins] r53860 - peps/trunk/pep-0000.txt peps/trunk/pep-0358.txt

2007-02-23 Thread Jim Jewett
On 2/22/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: > [-python-checkins, +python-dev] > > On 2/22/07, Jim Jewett <[EMAIL PROTECTED]> wrote: > > > __setitem__ > > > __setslice__ > > > append > > >

[Python-Dev] except Exception as err, tb [was: with_traceback]

2007-03-02 Thread Jim Jewett
Guido van Rossum wrote: > Since this can conceivably be going on in parallel in multiple > threads, we really don't ever want to be sharing whatever object > contains the head of the chain of tracebacks since it mutates at every > frame bubble-up. So (full) exceptions can't be unitary objects. I

[Python-Dev] except Exception as err with tb [was: with_traceback]

2007-03-02 Thread Jim Jewett
Proposal changed from "err, tb" to "err with tb" at Brett's good suggestion. The rest of this message is a bit of a sidetrack; skimmers can stop now. Nick Maclaren wrote: >"Jim Jewett" wrote: >> Guido van Rossum wrote: >> > [multiple thre

[Python-Dev] how can I review? [was: Encouraging developers]

2007-03-06 Thread Jim Jewett
The 5:1 patch review is a good idea -- but what is the procedure for reviewing a patch? I often comment on patches. Does this count as a review? Would anyone know if it did? If I were going through five at the same time, and I had a sixth to push, I could post here. Normally, I just make a com

Re: [Python-Dev] how can I review? [was: Encouraging developers]

2007-03-06 Thread Jim Jewett
I guess I should have been less specific. :D It has been quite a while since I worried about my own patches going stale; I just want to know how my review time can be more useful. Once a committer has already decided to look at a patch, comments may make the next step easier. But is there anywa

Re: [Python-Dev] [Python-checkins] r54539 - in python/trunk: Lib/string.py Misc/NEWS Objects/typeobject.c

2007-03-23 Thread Jim Jewett
(Please note that most replies should trim at least one list from the Cc) On 3/23/07, guido.van.rossum <[EMAIL PROTECTED]> wrote: > Note: without the change to string.py, lots of spurious warnings happen. > What's going on there? I assume it was a defensive measure for subclasses of both Template

[Python-Dev] A simplified extended buffer PEP

2007-03-29 Thread Jim Jewett
Greg Ewing wrote: > Carl Banks wrote: > > /* don't define releasebuffer or lockbuffer */ > > /* only objects that manage buffers themselves would define these */ > That's an advantage, but it's a pretty small one ... > the releaser field makes the protocol asymmetrical > and thus harder to reaso

[Python-Dev] PEP 3118: Extended buffer protocol (new version)

2007-04-16 Thread Jim Jewett
Reading this message without the entire PEP in front of me showed some confusing usage. (Details below) Most (but not all) I could resolve from the PEP itself, but they could be clarified with different constant names. Counter Proposal at bottom, and specific questions in between. Travis Olipha

[Python-Dev] PEP 30xx: Access to Module/Class/Function Currently Being Defined (this)

2007-04-22 Thread Jim Jewett
(Please note that several groups were Cc'd. For now, please limit followups to python-3000. This would *probably* be backported to 2.6, but that wouldn't be decided until the implementation strategy was settled.) PEP: 30XX Title: Access to Module/Class/Function Currently Being Defined (this) Ver

[Python-Dev] New Super PEP

2007-04-29 Thread Jim Jewett
Phillip J. Eby wrote: > a __call__ method, it will still be > called, even if you override __getattribute__ to return something else >>> dc = DoubleCall() >>> dc() 'called!' >>> dc.__call__() 'attribute' That is sufficiently fragile that I would be uncomfortable with a feature that could

[Python-Dev] New Super PEP - draft 2

2007-04-29 Thread Jim Jewett
(Adding python-3000 to the Cc, since that is where much of the recent discussion occurred) Calvin's full proposal is archived at: http://mail.python.org/pipermail/python-dev/2007-April/072835.html > Abstract > > The PEP defines the proposal to enhance the super builtin to work implicit

Re: [Python-Dev] [Python-3000] Pre-pre PEP for 'super' keyword

2007-04-29 Thread Jim Jewett
On 4/29/07, Tim Delaney <[EMAIL PROTECTED]> wrote: > I've been intending to write up a PEP for fixing super, but I haven't had > time to get to it. Calvin Spealman has the most recent draft. I hope he will incorporate this into his draft. > 1. 'super' becomes a keyword, that returns a super objec

[Python-Dev] PEP 30XZ: Simplified Parsing

2007-04-29 Thread Jim Jewett
PEP: 30xz Title: Simplified Parsing Version: $Revision$ Last-Modified: $Date$ Author: Jim J. Jewett <[EMAIL PROTECTED]> Status: Draft Type: Standards Track Content-Type: text/plain Created: 29-Apr-2007 Post-History: 29-Apr-2007 Abstract Python initially inherited its parsing from C. While t

[Python-Dev] updated PEP3125, Remove Backslash Continuation

2007-05-04 Thread Jim Jewett
Major rewrite. The inside-a-string continuation is separated from the general continuation. The alternatives section is expaned to als list Andrew Koenig's improved inside-expressions variant, since that is a real contender. If anyone feels I haven't acknowledged their concerns, please tell me.

Re: [Python-Dev] [Python-checkins] r87523 - python/branches/py3k/Doc/tutorial/interpreter.rst

2010-12-28 Thread Jim Jewett
It might still be worth saying something like: Note that this "python wrote: > Author: georg.brandl > Date: Tue Dec 28 10:18:24 2010 > New Revision: 87523 > > Log: > Remove confusing paragraph -- this is relevant only to advanced users anyway > and does not belong into the tutorial. > > Modified

Re: [Python-Dev] [Python-checkins] r87980 - in python/branches/py3k/Lib/importlib: _bootstrap.py abc.py

2011-01-13 Thread Jim Jewett
Why? Are annotations being deprecated in general? Or are these particular annotations no longer accurate? -jJ On Wed, Jan 12, 2011 at 9:31 PM, raymond.hettinger wrote: > Author: raymond.hettinger > Date: Thu Jan 13 03:31:25 2011 > New Revision: 87980 > > Log: > Issue 10899: Remove function typ

[Python-Dev] clarification: subset vs equality Re: [Python-checkins] peps: Draft of PEP 399: Pure Python/C Accelerator Module Compatibiilty Requirements

2011-04-05 Thread Jim Jewett
On 4/4/11, brett.cannon wrote: > Draft of PEP 399: Pure Python/C Accelerator Module Compatibiilty > Requirements > +Abstract > + > + > +The Python standard library under CPython contains various instances > +of modules implemented in both pure Python and C. This PEP requires > +that in

Re: [Python-Dev] [Python-checkins] cpython (3.2): Issue #11919: try to fix test_imp failure on some buildbots.

2011-04-26 Thread Jim Jewett
This seems to be changing what is tested -- are you saying that filenames with an included directory name are not intended to be supported? On 4/25/11, antoine.pitrou wrote: > http://hg.python.org/cpython/rev/2f2c7eb27437 > changeset: 69556:2f2c7eb27437 > branch: 3.2 > parent: 69554:7

Re: [Python-Dev] [Python-checkins] cpython: PyGILState_Ensure(), PyGILState_Release(), PyGILState_GetThisThreadState() are

2011-04-27 Thread Jim Jewett
Would it be a problem to make them available a no-ops? On 4/26/11, victor.stinner wrote: > http://hg.python.org/cpython/rev/75503c26a17f > changeset: 69584:75503c26a17f > user:Victor Stinner > date:Tue Apr 26 23:34:58 2011 +0200 > summary: > PyGILState_Ensure(), PyGILState_Re

Re: [Python-Dev] [Python-checkins] cpython: Userlist.copy() wasn't returning a UserList.

2011-05-06 Thread Jim Jewett
Do you also want to assert that u is not v, or would that sort of "copy" be acceptable by some subclasses? On 5/5/11, raymond.hettinger wrote: > http://hg.python.org/cpython/rev/f20373fcdde5 > changeset: 69865:f20373fcdde5 > user:Raymond Hettinger > date:Thu May 05 14:34:35 201

Re: [Python-Dev] [Python-checkins] cpython (2.7): Issue #11277: Remove useless test from test_zlib.

2011-05-09 Thread Jim Jewett
Can you clarify (preferably in the commit message as well) exactly *why* these largefile tests are useless? For example, is there another test that covers this already? -jJ On 5/7/11, nadeem.vawda wrote: > http://hg.python.org/cpython/rev/201dcfc56e86 > changeset: 69886:201dcfc56e86 > branch:

Re: [Python-Dev] [Python-checkins] cpython: _PyImport_LoadDynamicModule() encodes the module name explicitly to ASCII

2011-05-09 Thread Jim Jewett
Are you asserting that all foreign modules (or at least all handled by this) are in C, as opposed to C++ or even Java or Fortran? (And the C won't change?) Is this ASCII restriction (as opposed to even UTF8) really needed? Or are you just saying that we need to create an ASCII name for passing t

Re: [Python-Dev] [Python-checkins] cpython: #6771: Move wrapper function into __init__ and eliminate wrapper module

2011-06-19 Thread Jim Jewett
Does this really need to be a bare except? On Sat, Jun 18, 2011 at 8:21 PM, r.david.murray wrote: > http://hg.python.org/cpython/rev/9c96c3adbcd1 > changeset:   70867:9c96c3adbcd1 > user:        R David Murray > date:        Sat Jun 18 20:21:09 2011 -0400 > summary: >  #6771: Move wrapper functi

Re: [Python-Dev] [Python-checkins] cpython: Remove mention of medical condition from the test suite.

2011-07-04 Thread Jim Jewett
If you're going to get rid of the pun, you might as well change the whole sentence... On Sun, Jul 3, 2011 at 1:22 PM, georg.brandl wrote: > http://hg.python.org/cpython/rev/76452b892838 > changeset:   71146:76452b892838 > parent:      71144:ce52310f61a0 > user:        Georg Brandl > date:      

[Python-Dev] The docs, reloaded

2007-05-22 Thread Jim Jewett
Martin v. Löwis schrieb: > That docutils happens to be written in Python should make little > difference - it's *not* part of the Python language project, > and is just a tool for us, very much like latex and latex2html. Not entirely. When I first started looking at python, I read a lot of docum

[Python-Dev] Wither PEP 335 (Overloadable Boolean Operators)?

2007-05-25 Thread Jim Jewett
Greg, If you do update this PEP, please update the __not__ portion as well, at least regarding possible return values. It currently says that __not__ can return NotImplemented, which falls back to the current semantics. (Why? to override an explicit __not__? Then why not just put the current

[Python-Dev] svn viewer confused

2007-06-04 Thread Jim Jewett
Choosing a revision, such as http://svn.python.org/view/python/trunk/Objects/?rev=55606&sortby=date&view=log does not lead to the correct generated page; it either times out or generates a much older changelog. ___ Python-Dev mailing list Python-Dev@pyt

[Python-Dev] [RFC] urlparse - parse query facility

2007-06-13 Thread Jim Jewett
> a) import cgi and call cgi module's query_ps. [circular imports] or > b) Implement a stand alone query parsing facility in urlparse *AS IN* > cgi module. Assuming (b), please remove the (code for the) parsing from the cgi module, and just import it back from urlparse (or urllib). Since cgi a

[Python-Dev] Add a -z interpreter flag to execute a zip file

2007-07-13 Thread Jim Jewett
Andy C wrote: >... a .zip file with a __zipmain__.py module at its root? Why not just an __init__.py, which you would normally execute if you tried to import/run a directory? > * Magically looking at the first argument to see if it's a zip file > seems problematic to me. I'd rather be explicit w

Re: [Python-Dev] Add a -z interpreter flag to execute a zip file

2007-07-14 Thread Jim Jewett
On 7/14/07, Andy C <[EMAIL PROTECTED]> wrote: > On 7/13/07, Jim Jewett <[EMAIL PROTECTED]> wrote: > > > while I think it would be a bad practice to > > > import __main__, > > I have seen it recommended as the right place to store global > > (cross-mod

[Python-Dev] PEP 362: Signature objects

2007-09-07 Thread Jim Jewett
Brett Cannon wrote: > A Signature object has the following structure attributes: > * name : str > Name of the function. This is not fully qualified because > function objects for methods do not know the class they are > contained within. This makes functions and methods > indist

[Python-Dev] urllib exception compatibility

2007-09-26 Thread Jim Jewett
urllib goes to goes to some trouble to ensure that it raises IOError, even when the underlying exception comes from another module.[*] I'm wondering if it would make sense to just have those modules' exceptions inherit from IOError. In particular, should socket.error, ftp.Error and httplib.HTTPEx

[Python-Dev] SSL 1.7

2007-10-17 Thread Jim Jewett
Bill Janssen wrote: > One thing to watch out for: ssl.SSLError can't > inherit from socket.error, as it does in 2.6+, Why not? -jJ ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http:/

[Python-Dev] SSL 1.7

2007-10-17 Thread Jim Jewett
Bill Janssen wrote: > One thing to watch out for: ssl.SSLError can't > inherit from socket.error, as it does in 2.6+, Why not? -jJ ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http:/

Re: [Python-Dev] Non-string keys in namespace dicts

2007-12-04 Thread Jim Jewett
PJE wrote: > Isn't the simplest way to cache attribute > lookups to just have a cache dictionary in the type, > and update that dictionary whenever a change is > made to a superclass? That's essentially how > __slotted__ attribute changes on base classes > work now, isn't it? Neil Toronto wrote

[Python-Dev] Coverity Scan, Python upgraded to rung 2

2008-01-11 Thread Jim Jewett
Neal Norwitz wrote: >> For codeobject.c, line 327 should not be reachable. ... Christian Heimes wrote: > Please suppress the warning. I removed the last > two lines and GCC complained ... Either way, it would be worth adding a comment to the source code so this doesn't come up again. -jJ ___

Re: [Python-Dev] [Python-3000] Rounding Decimals

2008-01-14 Thread Jim Jewett
On 1/12/08, Guido van Rossum <[EMAIL PROTECTED]> wrote: > On Jan 12, 2008 5:09 PM, Jeffrey Yasskin <[EMAIL PROTECTED]> wrote: > > During the discussion about the new Rational implementation > > (http://bugs.python.org/issue1682), Guido and Raymond decided that > > Decimal should not implement the n

[Python-Dev] Py_CLEAR to avoid crashes

2008-02-18 Thread Jim Jewett
> A simple way to do this would be to push objects whose > refcounts had reached 0 onto a list instead of finalizing them > immediately, and have PyEval_EvalFrameEx periodically swap > in a new to-delete list and delete the objects on the old one. Some of the memory management threads discussed so

[Python-Dev] logging shutdown (was: Re: [Python-checkins] r61431 - python/trunk/Doc/library/logging.rst)

2008-03-18 Thread Jim Jewett
I think (repeatedly) testing an app through IDLE is a reasonable use case. Would it be reasonable for shutdown to remove logging from sys.modules, so that a rerun has some chance of succeeding via its own import? -jJ On 3/16/08, vinay.sajip <[EMAIL PROTECTED]> wrote: > Author: vinay.sajip > Dat

Re: [Python-Dev] [Python-checkins] logging shutdown (was: Re: r61431 - python/trunk/Doc/library/logging.rst)

2008-03-19 Thread Jim Jewett
On 3/19/08, Vinay Sajip <[EMAIL PROTECTED]> wrote: > > I think (repeatedly) testing an app through IDLE is a reasonable use case. > [other threads may still have references to loggers or handlers] > > Would it be reasonable for shutdown to remove logging from > > sys.modules, so that a rerun ha

Re: [Python-Dev] [Python-checkins] r61709 - python/trunk/Doc/library/functions.rst python/trunk/Doc/library/future_builtins.rst python/trunk/Doc/library/python.rst

2008-03-23 Thread Jim Jewett
What is the precise specification of the builtin "print" function. Does it call "str", or does it just behave as if the builtin str had been called? In 2.5, the print statement ignores any overrides of the str builtin, but I'm not sure whether a _function_ should -- and I do think it should be spe

[Python-Dev] windows standard [was: PEP 365 (Adding the pkg_resources module)]

2008-03-23 Thread Jim Jewett
Terry Reedy > The standard (and to me, preferable) way of dealing > with such things is to have an 'installation manager' > that can reinstall as well as delete and that has a > check box for various things to delete. This is what > Python needs. Paul Moore: > I'd dispute strongly that this i

[Python-Dev] Proposal: from __future__ import unicode_string_literals

2008-03-24 Thread Jim Jewett
> Maybe it's not apparent to people that hasn't > developed in that kind of environment, and > I'm sorry I'm not able to make this clearer. I think I understand the issue. Some contributors will be running under 2.6, others will be running under 3.0. Either the code forks, or one of them is work

[Python-Dev] windows (was: how to easily consume just the parts of eggs that are good for you)

2008-04-09 Thread Jim Jewett
> Are the Linux users happy with having a Python > package manager that ignores RPM/apt? Why > should Windows users be any happier? Because, as you noted, the add/remove programs application is severely limited. > I've read one too many "Windows is so broken > that people who use it obviously don

  1   2   3   >