[issue11739] Python doesn't have a 2011 april fools joke

2011-04-01 Thread Benjamin Peterson
Benjamin Peterson added the comment: Perhaps 2012 will be extra special. -- nosy: +benjamin.peterson resolution: -> postponed status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue11756] bytes.hex()

2011-04-03 Thread Benjamin Peterson
Benjamin Peterson added the comment: binascci.(un)hexlify -- nosy: +benjamin.peterson resolution: -> invalid status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue11754] Changed test to check calculated constants in test_string.py

2011-04-04 Thread Benjamin Peterson
Benjamin Peterson added the comment: Being rather circular, that doesn't seem to be a particularly useful test. (Not that the original is either.) It'd be more "correct" if you actually tested that hex numbers are contained within string.hexdigits, for examp

[issue10977] Concrete object C API needs abstract path for subclasses of builtin types

2011-04-05 Thread Benjamin Peterson
Benjamin Peterson added the comment: I find this extremely ugly. The correct way to handle this is to use the generic methods themselves. Really, the type-specific names should only be used when you have just created the type or done PyXXX_CheckExact() yourself on it. -- nosy

[issue10977] Concrete object C API needs abstract path for subclasses of builtin types

2011-04-06 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2011/4/6 Nick Coghlan : > > Nick Coghlan added the comment: > > "should" is a wonderful word when it comes to external APIs. > > We currently have a couple of problems: > > 1. The concrete APIs will fail noisily if g

[issue11788] Decorator class with optional arguments and a __call__ method gets not called when there are no arguments

2011-04-06 Thread Benjamin Peterson
Benjamin Peterson added the comment: This is expected; it's the same with functions. Just do @deco(). -- nosy: +benjamin.peterson resolution: -> invalid status: open -> closed ___ Python tracker <http://bugs.python.

[issue11788] Decorator class with optional arguments and a __call__ method gets not called when there are no arguments

2011-04-06 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2011/4/6 Carsten Klein : > > Carsten Klein added the comment: > > Ok, looks like a valid work around to me. It's not a workaround. It's the way decorators work. -- ___ Python tracker &

[issue11798] Test cases not garbage collected after run

2011-04-07 Thread Benjamin Peterson
Benjamin Peterson added the comment: You don't have to clear them; you just have to finalize them. Anyway, this is essentially impossible to do in a backward compatible way given that TestCases are expected to stay around. -- nosy: +benjamin.pet

[issue11798] Test cases not garbage collected after run

2011-04-07 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2011/4/7 Jean-Paul Calderone : > > Jean-Paul Calderone added the comment: > > Trial lets test cases get garbaged collected.  When we noticed this wasn't > happening, we treated it as a bug and fixed it.  No one ever complained about &g

[issue11778] __subclasscheck__ : class P(M): __metaclass__=M causes maximum recursion depth exceeded.

2011-04-07 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> out of date status: open -> closed ___ Python tracker <http://bugs.python.org/issue11778> ___ ___ Pyth

[issue11803] Memory leak in sub-interpreters

2011-04-08 Thread Benjamin Peterson
Benjamin Peterson added the comment: Please don't add everyone in existence to the nosy list. -- ___ Python tracker <http://bugs.python.org/issue11803> ___ ___

[issue11803] Memory leak in sub-interpreters

2011-04-08 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- nosy: -benjamin.peterson ___ Python tracker <http://bugs.python.org/issue11803> ___ ___ Python-bugs-list mailing list Unsub

[issue11740] difflib html diff takes extremely long

2011-04-08 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> duplicate status: open -> closed superseder: -> dreadful performance in difflib: ndiff and HtmlDiff ___ Python tracker <http://bugs.python.or

[issue11806] Missing 2 hyphens in the docs

2011-04-12 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2011/4/12 Boštjan Mejak : > > BoÅ¡tjan Mejak added the comment: > > There are more of this typos in the same chapter. Just a little below the > one of the reported sentence. Check this out... > > "Assuming the Python code above i

[issue9544] xdrlib.Packer().pack_fstring throws a TypeError when called with a str()

2011-04-13 Thread Benjamin Peterson
Benjamin Peterson added the comment: This doesn't really make sense, since XDR doesn't seem to say anything about unicode strings, just bytes. -- nosy: +benjamin.peterson ___ Python tracker <http://bugs.python.

[issue9544] xdrlib.Packer().pack_fstring throws a TypeError when called with a str()

2011-04-14 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2011/4/14 Filip Gruszczyński : > > Filip Gruszczyński added the comment: > > Actually documentation doesn't say that it supports only bytes, but: > > "The following methods support packing strings, bytes, and opaque data:&quo

[issue9544] xdrlib.Packer().pack_fstring throws a TypeError when called with a str()

2011-04-14 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2011/4/14 Filip Gruszczyński : > > Filip Gruszczyński added the comment: > > I am well aware of this, Benjamin. I am not trying to force any solution, but > rather trying to point out, that current documentation is misleading. There > mi

[issue11975] Fix referencing of built-in types (list, int, ...)

2011-05-02 Thread Benjamin Peterson
Benjamin Peterson added the comment: FWIW, :func:`int/float` work IIRC. -- nosy: +benjamin.peterson ___ Python tracker <http://bugs.python.org/issue11

[issue11975] Fix referencing of built-in types (list, int, ...)

2011-05-02 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2011/5/2 Jonas H. : > > Jonas H. added the comment: > > Indeed they do; but documentation writers need to know that `int()` and > `float()` are functions, which is counterintuitive. (and a CPython > implementation detail) They're n

[issue11993] Is it desired to distinguish new files from old with sub-second resolution?

2011-05-03 Thread Benjamin Peterson
Benjamin Peterson added the comment: Is this proposing some sort of change or problem? -- nosy: +benjamin.peterson ___ Python tracker <http://bugs.python.org/issue11

[issue9971] Optimize BufferedReader.readinto

2011-05-04 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2011/5/4 John O'Connor : > > John O'Connor added the comment: > > I am new to the community but hoping to start contributing or at least > following issues and learning :) > > I'm looking at bufferediobase_readinto(

[issue9971] Optimize BufferedReader.readinto

2011-05-04 Thread Benjamin Peterson
Benjamin Peterson added the comment: I don't see the problem. You're free to override readinto() and read() in subclasses. readinto() is just implemented in BufferedIOBase as a convenience. -- ___ Python tracker <http://bugs.python.

[issue6116] frame.f_locals keeps references to things for too long

2011-05-05 Thread Benjamin Peterson
Benjamin Peterson added the comment: I vote for option 1. We already eschew hacks with locals(). -- nosy: +benjamin.peterson ___ Python tracker <http://bugs.python.org/issue6

[issue12022] 'transaction' module-as-context-manager thwarted by Python 2.7.1

2011-05-06 Thread Benjamin Peterson
Benjamin Peterson added the comment: Yes, that's why. I suggest you appeal to python-ideas about the new exception. -- nosy: +benjamin.peterson resolution: -> invalid status: open -> closed ___ Python tracker <http://bugs.python.

[issue6116] frame.f_locals keeps references to things for too long

2011-05-06 Thread Benjamin Peterson
Benjamin Peterson added the comment: I tried making f_locals always a copy but it wreaks havoc with some code which expects changing it to "work", namely pdb. I resign myself to using weakrefs. -- ___ Python tracker <http://bu

[issue12027] Optimize import this (patch to make it 10x faster)

2011-05-07 Thread Benjamin Peterson
Benjamin Peterson added the comment: I suggest rejecting. See 8ae88db7843c -- ___ Python tracker <http://bugs.python.org/issue12027> ___ ___ Python-bugs-list m

[issue12027] Optimize import this (patch to make it 10x faster)

2011-05-07 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- nosy: +rhettinger ___ Python tracker <http://bugs.python.org/issue12027> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12022] improve special method lookup error message

2011-05-07 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: invalid -> status: closed -> open title: 'transaction' module-as-context-manager thwarted by Python 2.7.1 -> improve special method lookup error message ___ Python tracker <

[issue12030] Roundup Refused Update with No text/plain

2011-05-08 Thread Benjamin Peterson
Benjamin Peterson added the comment: This belongs on http://psf.upfronthosting.co.za/roundup/meta/. -- nosy: +benjamin.peterson resolution: -> invalid status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue12056] "…" (HORIZONTAL ELLIPSIS) should be an alternative syntax for "..." (FULL STOP FULL STOP FULL STOP)

2011-05-11 Thread Benjamin Peterson
Benjamin Peterson added the comment: Making such substitutions is a good way to introduce subtle bugs. -- nosy: +benjamin.peterson resolution: -> rejected status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue11610] Improving property to accept abstract methods

2011-05-14 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2011/5/14 Darren Dale : > > Darren Dale added the comment: > > Is there anything preventing this patch from being merged? I have to make time to think about the API a bit more. -- ___ Python tr

[issue11610] Improving property to accept abstract methods

2011-05-14 Thread Benjamin Peterson
Benjamin Peterson added the comment: I still dislike the reduntancy of having abstractmethod and abstractproperty on a method. I think a better idea is having abstractproperty.abstract(getter/setter/deleter). -- ___ Python tracker <h

[issue11610] Improving property to accept abstract methods

2011-05-14 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2011/5/14 Darren Dale : > > Darren Dale added the comment: > > On Sat, May 14, 2011 at 4:28 PM, Benjamin Peterson > wrote: >> >> Benjamin Peterson added the comment: >> >> I still dislike the reduntancy of having abs

[issue11610] Improving property to accept abstract methods

2011-05-14 Thread Benjamin Peterson
Benjamin Peterson added the comment: Okay: how about this. We retain the passing of @abstractmethod to abstractpropert(), but @abstractgetter decorates the method for you. 2011/5/14 Darren Dale : > > Darren Dale added the comment: > > On Sat, May 14, 2011 at 5:17 PM, Benja

[issue11610] Improving property to accept abstract methods

2011-05-14 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2011/5/14 Darren Dale : > > Darren Dale added the comment: > > On Sat, May 14, 2011 at 5:55 PM, Benjamin Peterson > wrote: >> >> Benjamin Peterson added the comment: >> >> Okay: how about this. We r

[issue12081] Remove distributed copy of libffi

2011-05-15 Thread Benjamin Peterson
New submission from Benjamin Peterson : I believe the bugs which the patched version of libffi used have been fixed in recent versions. We should stop distributing an old version. -- components: ctypes messages: 136034 nosy: benjamin.peterson priority: normal severity: normal status

[issue12106] reflect syntatic sugar in with ast

2011-05-18 Thread Benjamin Peterson
New submission from Benjamin Peterson : This patch causes multiple with statements with multiple with items to be represented in the AST instead of flattened as currently happens. -- components: Interpreter Core files: fixwith.patch keywords: patch messages: 136262 nosy

[issue10391] obj2ast's error handling can lead to python crashing with a C-level assertion failure

2010-11-19 Thread Benjamin Peterson
Benjamin Peterson added the comment: r86538 -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/issue10391> ___ ___

[issue10467] io.BytesIO.readinto() segfaults when used on BytesIO object seeked beyond end.

2010-11-20 Thread Benjamin Peterson
Benjamin Peterson added the comment: r86587 -- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue4925] Improve error message of subprocess when cannot open

2010-11-20 Thread Benjamin Peterson
Benjamin Peterson added the comment: r86593 -- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/

[issue10474] range.count returns boolean

2010-11-20 Thread Benjamin Peterson
Benjamin Peterson added the comment: r86618 -- nosy: +benjamin.peterson resolution: -> fixed ___ Python tracker <http://bugs.python.org/issue10474> ___ ___ Py

[issue10474] range.count returns boolean

2010-11-20 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue10474> ___ ___ Python-bugs-list mailing list Unsubscri

[issue10474] range.count returns boolean

2010-11-20 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2010/11/20 SilentGhost : > > SilentGhost added the comment: > > Benjamin, the docs say that it's possible to have count more than 1, > depending on comparison rules. If that's the case, I'm afraid your solution > might nee

[issue10476] __iter__ on a byte file object using a method to return an iterator

2010-11-20 Thread Benjamin Peterson
Benjamin Peterson added the comment: BufferedIOBase readline and __iter__ has to stay for backwards compatibility (especially with python 2). As for by_bytes(), I suggest you post it to python-ideas. -- nosy: +benjamin.peterson resolution: -> rejected status: open ->

[issue10518] Bring back callable()

2010-11-24 Thread Benjamin Peterson
Benjamin Peterson added the comment: I think we should lift the py3k warning after 3.2 is released, but leave the 2to3 fixer in for the time being. -- ___ Python tracker <http://bugs.python.org/issue10

[issue10299] Add index with links section for built-in functions

2010-11-24 Thread Benjamin Peterson
Benjamin Peterson added the comment: Okay. 2010/11/24 Ezio Melotti : > > Ezio Melotti added the comment: > > Committed in r86732 on py3k, will backport on 3.1/2.7 if Benjamin is OK with > that. > > -- > nosy: +benjamin.peterson > > __

[issue10518] Bring back callable()

2010-11-27 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2010/11/27 SilentGhost : > > SilentGhost added the comment: > > I thought that moratorium meant Guido dis/approval is not applicable to the > 3.2 > > Another listed change was help ease adoption of py3k. How's that hel

[issue10268] Add --enable-loadable-sqlite-extensions option to `configure`

2010-11-27 Thread Benjamin Peterson
Benjamin Peterson added the comment: r86844 -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue10268> ___ ___ Python-bugs-list mai

[issue10544] yield expression inside generator expression does nothing

2010-11-28 Thread Benjamin Peterson
Benjamin Peterson added the comment: I think I can probably fix it, but it's debatable whether it should be done, since it'd make list comps more of "quasi" functions. -- nosy: +benjamin.peterson ___ Python tracker <

[issue10569] abc: `issubclass([], my_abstract_type)` raises exception

2010-11-28 Thread Benjamin Peterson
Benjamin Peterson added the comment: Tell python-ideas about it. -- nosy: +benjamin.peterson status: open -> closed ___ Python tracker <http://bugs.python.org/issu

[issue10618] regression in subprocess.call() command quoting

2010-12-03 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2010/12/3 Georg Brandl : > > Georg Brandl added the comment: > > In util.system(), Mercurial adds its own pair of quotes: > >    if os.name == 'nt': >        cmd = '"%s"' % cmd > > That will

[issue6101] SETUP_WITH

2010-12-04 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2010/12/4 Thomas Vander Stichele : > > Thomas Vander Stichele added the comment: > > Maybe I am missing something, but why was it ok for this patch to move > EXTENDED_ARGS from 143 to 145 ? I thought the numbers for opcodes were part >

[issue10630] dict_proxy.keys() / values() / items() are lists

2010-12-06 Thread Benjamin Peterson
Benjamin Peterson added the comment: r87107 -- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue10675] unittest should have an assertChanges context manager

2010-12-10 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- status: pending -> closed ___ Python tracker <http://bugs.python.org/issue10675> ___ ___ Python-bugs-list mailing list Un

[issue10674] Unused dictmaker symbol in 2.* grammar

2010-12-10 Thread Benjamin Peterson
Benjamin Peterson added the comment: r87167 -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/issue10674> ___ ___

[issue10750] "raw" attribute of buffered IO objects is assignable

2010-12-21 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2010/12/21 Antoine Pitrou : > > Antoine Pitrou added the comment: > > Here is a patch. I assume you can put test_readonly_attributes in CommonBufferTests? -- ___ Python tracker <http://

[issue10750] "raw" attribute of buffered IO objects is assignable

2010-12-21 Thread Benjamin Peterson
Benjamin Peterson added the comment: Ah, I see. LGTM then. -- ___ Python tracker <http://bugs.python.org/issue10750> ___ ___ Python-bugs-list mailing list Unsub

[issue4761] create Python wrappers for openat() and others

2010-12-21 Thread Benjamin Peterson
Benjamin Peterson added the comment: The docs shouldn't use "[" to denote optional args. Rather, optional arguments can just be shown by their defaults. -- nosy: +benjamin.peterson ___ Python tracker <http://bugs.py

[issue10769] ast: provide more useful range information

2010-12-24 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2010/12/24 Raymond Hettinger : > > Raymond Hettinger added the comment: > > ISTM the whole point of an Abstract Syntax Tree is to express semantics while > throwing away the syntax details.  The only reason any position information > is

[issue10769] ast: provide more useful range information

2010-12-24 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2010/12/24 Sven Brauch : > > Sven Brauch added the comment: > > Hi, > > I found the reason for this behavior in the code now, it's in Python/ast.c, > lines 1745 and 1746 in ast_for_power(): > >        tmp->lineno = e-&g

[issue10769] ast: provide more useful range information

2010-12-25 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2010/12/25 Sven Brauch : > > Sven Brauch added the comment: > > Hi, > > I agree that the current behavior is not wrong or such. It's just entirely > useless. > For all the other types of subscripts, such as a[b][c][d] or a(b

[issue10769] ast: provide more useful range information

2010-12-25 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2010/12/25 Sven Brauch : > > Sven Brauch added the comment: > > Well, weather it's supposed to or not, it *does* contain the line number > information: > > For your example, the AST for "foo" tells you the offset for fo

[issue10769] ast: provide more useful range information

2010-12-26 Thread Benjamin Peterson
Benjamin Peterson added the comment: I suggest you mail python-dev or python-ideas. I find it more consistent as it stands now. -- ___ Python tracker <http://bugs.python.org/issue10

[issue4662] posix module lacks several DeprecationWarning's

2011-01-01 Thread Benjamin Peterson
Benjamin Peterson added the comment: Some of these warnings are incorrect, too; os.popen() and fdopen() remain in Python 3. -- ___ Python tracker <http://bugs.python.org/issue4

[issue4346] PyObject_CallMethod changes the exception message already set by PyObject_GetAttr

2011-01-06 Thread Benjamin Peterson
Benjamin Peterson added the comment: We should probably just kill the LBYL. -- ___ Python tracker <http://bugs.python.org/issue4346> ___ ___ Python-bugs-list m

[issue10849] Backport test/__main__

2011-01-07 Thread Benjamin Peterson
Benjamin Peterson added the comment: +0. -- ___ Python tracker <http://bugs.python.org/issue10849> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10849] Backport test/__main__

2011-01-07 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2011/1/7 Raymond Hettinger : > > Raymond Hettinger added the comment: > > His +0 isn't a decision.  I would like Martin, the longest term active > developer, to make the call about waiving the policy of not backporting > features (e

[issue10858] Make source code links less prominent

2011-01-08 Thread Benjamin Peterson
Benjamin Peterson added the comment: I'm curious as to how the experiment is being carried out and how conclusions will be drawn. -- nosy: +benjamin.peterson ___ Python tracker <http://bugs.python.org/is

[issue10892] segfault with "del X.__abstractmethods__"

2011-01-12 Thread Benjamin Peterson
Benjamin Peterson added the comment: r87954 -- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue10894] Making stdlib APIs private

2011-01-12 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- dependencies: +Private stdlib API: getopt, getpass, glob, gzip, genericpath, gettext ___ Python tracker <http://bugs.python.org/issue10

[issue10917] PEP 333 link to CGI specification is broken

2011-01-16 Thread Benjamin Peterson
Benjamin Peterson added the comment: Well, that really grates on the eyes. -- nosy: +benjamin.peterson ___ Python tracker <http://bugs.python.org/issue10

[issue10917] PEP 333 link to CGI specification is broken

2011-01-16 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2011/1/16 anatoly techtonik : > > anatoly techtonik added the comment: > > Nevermind. It's just another word for gr8. Well, it really grates on the eyes. -- ___ Python tracker <ht

[issue10914] Python sub-interpreter test

2011-01-16 Thread Benjamin Peterson
Benjamin Peterson added the comment: There's already precedent for test modules in Modules/ what with xxmodule.c and _testcapimodule.c. -- nosy: +benjamin.peterson ___ Python tracker <http://bugs.python.org/is

[issue10986] traceback's rendering behavior while throwing custom exception

2011-01-22 Thread Benjamin Peterson
Benjamin Peterson added the comment: Please see python-ideas list. -- nosy: +benjamin.peterson resolution: -> rejected status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue11032] _string: formatter_field_name_split() and formatter_parser() don't check input type

2011-01-28 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2011/1/28 Eric Smith : > > Eric Smith added the comment: > > Release manager: You can decide if this fix should go in before 3.2. It's a > trivial fix to a crasher, but it's extremely unlikely anyone would trip over > it. I

[issue11086] add lib2to3/__main__.py

2011-01-31 Thread Benjamin Peterson
Benjamin Peterson added the comment: Uh, I must say I find typing "lib2to3" quite ugly. -- ___ Python tracker <http://bugs.python.org/issue11086> ___ ___

[issue11105] Compiling evil ast crashes interpreter

2011-02-02 Thread Benjamin Peterson
New submission from Benjamin Peterson : You don't want to know why I was thinking about this... $ ./python Python 3.2rc2+ (py3k:88302, Feb 1 2011, 19:02:10) [GCC 4.4.4] on linux2 Type "help", "copyright", "credits" or "license" for more infor

[issue11105] Compiling evil ast crashes interpreter

2011-02-03 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2011/2/3 Alexander Belopolsky : > > Alexander Belopolsky added the comment: > > Looks like a stack overflow caused by an infinite recursion.  I am not sure > if it is possible to add cycle detection code without sacrificing performance &g

[issue11105] Compiling evil ast crashes interpreter

2011-02-03 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2011/2/3 Alexander Belopolsky : > > Alexander Belopolsky added the comment: > > On Thu, Feb 3, 2011 at 12:08 PM, Benjamin Peterson > wrote: > .. >>> I wonder: Why ast nodes need to be mutable? >> >> So people can c

[issue11145] '%o' % user-defined instance

2011-02-09 Thread Benjamin Peterson
Benjamin Peterson added the comment: It's a magic method in 2.7 but not 3.x. -- ___ Python tracker <http://bugs.python.org/issue11145> ___ ___ Python-bugs-l

[issue11180] More efficient nlargest()/nsmallest()

2011-02-10 Thread Benjamin Peterson
Benjamin Peterson added the comment: I think you should implement and benchmark one of them. I'm dubious that the better asymptotic values will really translate into better performance. For example, the O(n) median selection algorithm has a large constant factor associated wi

[issue2820] Remove mac modules

2008-05-12 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: Done! See r63187 and 63190. It sure was fun merging the Bazaar branch into Subversion, though. :( -- resolution: -> fixed status: open -> closed __ Tracker <[EMAIL PR

[issue2843] New methods for existing Tkinter widgets

2008-05-13 Thread Benjamin Peterson
Changes by Benjamin Peterson <[EMAIL PROTECTED]>: -- type: -> feature request __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2843> __ ___ Pyt

[issue2854] Add gestalt back into Python 3.0

2008-05-14 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: Does it have to be public? How about _gestalt? -- nosy: +benjamin.peterson __ Tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue2854] Add gestalt back into Python 3.0

2008-05-14 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: I feel kinda bad about removing the module without noting how it was used in platform.py, so I'll deal with this. -- assignee: -> benjamin.peterson __ Tracker <[EMAIL

[issue2865] syntax error in fix_imports.py

2008-05-15 Thread Benjamin Peterson
Changes by Benjamin Peterson <[EMAIL PROTECTED]>: -- resolution: -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2865> __ __

[issue2854] Add gestalt back into Python 3.0

2008-05-15 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: Here's a patch. I moved gestalt to Modules and renamed it _gestalt. I inlined the few lines of pymactoolbox that I needed, so that doesn't have to come back. -- keywords: +patch Added file: http://bugs.pyth

[issue2860] re module fails to handle digits in byte strings

2008-05-15 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: I think it's debatable whether re should byte strings since it is searching through text and not raw binary data. However, this may be a case of practicality over purity. -- nosy: +benjam

[issue2868] Problem with urllib and urllib2 in urlopen?

2008-05-15 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: This is what happens on the trunk: >>> import urllib >>> u = 'http://www.mercurynews.com/ci_9216417' >>> h = urllib.urlopen(u).read() Traceback (most recent call last): File "", lin

[issue2867] curses-howto link in curses module documentation gives a 404

2008-05-15 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: Usually, we don't bother fixing doc problems until the next major release. -- nosy: +benjamin.peterson __ Tracker <[EMAIL PROTECTED]> <http://bugs.

[issue2896] cmathmodule.c compilation error

2008-05-16 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: Christian, this was fixed right? -- assignee: -> christian.heimes nosy: +benjamin.peterson priority: -> high __ Tracker <[EMAIL PROTECTED]> <http://bugs

[issue1574217] isinstance swallows exceptions

2008-05-16 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: I'd like to clarify the approach to fixing these types of problems. I fixed a issue (#2196) like this by only propagating exceptions that didn't descend from Exception because of this sentence in the hasattr docs: This i

[issue2750] Add simplejson to Python 2.6/3.0 standard library

2008-05-16 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: Let's see: 1. Fix up and add to trunk. Check! 2. Convert docs to reST. Check! 3. Port to 3.0. Check! 4. Fix docs in 3.0. Check! Yes, we can close this. -- resolution: -> accepted status:

[issue2897] include structmember.h in Python.h

2008-05-16 Thread Benjamin Peterson
New submission from Benjamin Peterson <[EMAIL PROTECTED]>: As the comment in descrobject.c says: /* Why is this not included in Python.h? */ -- messages: 66972 nosy: benjamin.peterson severity: normal status: open title: include structmember.h in Python.h type: feature r

[issue2897] include structmember.h in Python.h

2008-05-16 Thread Benjamin Peterson
Changes by Benjamin Peterson <[EMAIL PROTECTED]>: -- components: +Interpreter Core versions: +Python 2.6 __ Tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue2848] Remove mimetools usage from the stdlib

2008-05-16 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: mimetools.Message is compatible with email.message.Message, right? -- nosy: +barry, benjamin.peterson __ Tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue2868] Problem with urllib and urllib2 in urlopen?

2008-05-17 Thread Benjamin Peterson
Changes by Benjamin Peterson <[EMAIL PROTECTED]>: -- resolution: -> invalid status: open -> closed __ Tracker <[EMAIL PROTECTED]> <http://bugs

[issue2899] Fixers find, rfind, etc in 'string' module

2008-05-17 Thread Benjamin Peterson
Changes by Benjamin Peterson <[EMAIL PROTECTED]>: -- title: Fixes find, rfind, etc in 'string' module -> Fixers find, rfind, etc in 'string' module __ Tracker <[EMAIL PROTECTED]>

[issue2337] Backport oct() and hex() to use __index__

2008-05-17 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: Done in r63425. -- resolution: -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]> <http://bugs

[issue2349] Py3K warn against assigning to True/False

2008-05-17 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: I'm attaching a new patch with changes made from the Georg's comments. Added file: http://bugs.python.org/file10359/bool_assign6.patch __ Tracker <[EMAIL PROTECTED]> <http://

<    1   2   3   4   5   6   7   8   9   10   >