[issue19067] Built-in range docstrings are not PEP-8 compatible

2013-09-22 Thread Marco Buttu
New submission from Marco Buttu: The range documentation is not PEP-8 compatible: range.__doc__.splitlines()[-1] 'Returns a virtual sequence of numbers from start to stop by step.' range.__reversed__.__doc__ 'Returns a reverse iterator.' range.index.__doc__.splitlines()[-1] 'Raises

[issue19068] Some built-in complex docstrings are not PEP-8 compatible

2013-09-22 Thread Marco Buttu
New submission from Marco Buttu: As reported in the title: complex.conjugate.__doc__.splitlines()[-1] 'Returns the complex conjugate of its argument. (3-4j).conjugate() == 3+4j.' complex.__format__.__doc__.splitlines()[-1] 'Converts to a string according to format_spec.' They should have

[issue19068] Some built-in complex docstrings are not PEP-8 compatible

2013-09-22 Thread Marco Buttu
Changes by Marco Buttu marco.bu...@gmail.com: -- type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19068 ___ ___ Python-bugs-list

[issue19069] Built-in float docstrings are not PEP-8 compatible

2013-09-22 Thread Marco Buttu
New submission from Marco Buttu: As reported in the title: float.as_integer_ratio.__doc__.splitlines()[2] 'Returns a pair of integers, whose ratio is exactly equal to the original' float.as_integer_ratio.__doc__.splitlines()[4] 'Raises OverflowError on infinities and a ValueError on NaNs.'

[issue19021] AttributeError in Popen.__del__

2013-09-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: When the patch to #12085 is changed, as has been agreed, I think, this issue should go away. Moving the deletion of builtins to later in the shutdown process has be discussed and maybe implemented. -- ___ Python

[issue19001] test_gdb fails on Fedora buildbot

2013-09-22 Thread Nick Coghlan
Nick Coghlan added the comment: My F19 system (which works) shows gdb-7.6-34, while the new debugging output Antoine added shows 7.3.50.20110722-16.fc16 on F16 Maybe the new gdb version check needs to be looking for 7.4+ rather than 7.3+? -- ___

[issue19001] test_gdb fails on Fedora buildbot

2013-09-22 Thread Nick Coghlan
Nick Coghlan added the comment: Hmm, I also noticed some issues with 2.7/3.2 on the RHEL 6 buildbot (similar to those previously reported in issue 15043). I'll keep tinkering with it. -- keywords: +buildbot ___ Python tracker rep...@bugs.python.org

[issue19061] Shelve documentation security warning is not visible

2013-09-22 Thread Georg Brandl
Georg Brandl added the comment: Using the warning directive can be backported from the 3.x docs. For 3.x, it's already prominent enough. Your screen border is not everyone's screen border. -- nosy: +georg.brandl versions: -Python 2.6, Python 3.1, Python 3.2, Python 3.3, Python 3.4,

[issue19061] Shelve documentation security warning is not visible

2013-09-22 Thread anatoly techtonik
anatoly techtonik added the comment: The scope of warning is wrong. It is not a warning for open() call, and that's why it is easy to miss. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19061

[issue19061] Shelve documentation security warning is not visible

2013-09-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1d850260a356 by Georg Brandl in branch '2.7': Closes #19061: make shelve security warning consistent between 2.x and 3.x. http://hg.python.org/cpython/rev/1d850260a356 -- nosy: +python-dev resolution: - fixed stage: - committed/rejected

[issue19061] Shelve documentation security warning is not visible

2013-09-22 Thread Georg Brandl
Georg Brandl added the comment: Oh, please. It's big and red and directly below the open() description, how could you miss it? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19061 ___

[issue19001] test_gdb fails on Fedora buildbot

2013-09-22 Thread Nick Coghlan
Nick Coghlan added the comment: Looks like the RHEL 6 failures may have just been a change on the OS side that reintroduced the need for this old workaround: http://docs.python.org/devguide/faq.html#how-do-i-update-my-auto-load-safe-path-to-allow-test-gdb-to-run I restored that FAQ, applied

[issue19043] Remove detailed listing of all versions from LICENSE, Doc/license.rst

2013-09-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7a8616f21f26 by Georg Brandl in branch '2.7': Closes #19043: remove detailed listing of versions from license files http://hg.python.org/cpython/rev/7a8616f21f26 -- nosy: +python-dev resolution: - fixed stage: patch review -

[issue19043] Remove detailed listing of all versions from LICENSE, Doc/license.rst

2013-09-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 59b6c3280827 by Georg Brandl in branch '3.3': Closes #19043: remove detailed listing of versions from license files http://hg.python.org/cpython/rev/59b6c3280827 -- ___ Python tracker

[issue19070] In place operators of weakref.proxy() not returning self.

2013-09-22 Thread Graham Dumpleton
New submission from Graham Dumpleton: When a weakref.proxy() is used to wrap a class instance which implements in place operators, when one applies the in place operator to the proxy, one could argue the variable holding the proxy should still be a reference to the proxy after the in place

[issue19070] In place operators of weakref.proxy() not returning self.

2013-09-22 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +ncoghlan, tim.peters ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19070 ___ ___

[issue19061] Shelve documentation security warning is not visible

2013-09-22 Thread anatoly techtonik
anatoly techtonik added the comment: On Sun, Sep 22, 2013 at 12:42 PM, Georg Brandl rep...@bugs.python.orgwrote: Oh, please. It's big and red and directly below the open() description, how could you miss it? I believe that it is pretty easy with mobile browser due to screen constraints. Can

[issue19061] Shelve documentation security warning is not visible

2013-09-22 Thread Georg Brandl
Georg Brandl added the comment: I believe that it is pretty easy with mobile browser due to screen constraints. Can you test this on your mobile devices? Sorry, but we don't adapt the docs *content* to any specific device. You should never only read just a screenful in any case. This is

[issue19024] Document asterisk (*), splat or star operator

2013-09-22 Thread anatoly techtonik
anatoly techtonik added the comment: 223 people + me out of 1422 disagree with you both. http://stackoverflow.com/questions/101268/hidden-features-of-python -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19024

[issue19024] Document asterisk (*), splat or star operator

2013-09-22 Thread anatoly techtonik
anatoly techtonik added the comment: To narrow the point of conflict, I say that argument unpacking *operators* should have a prominent place in Python documentation that people can link to. Current page http://docs.python.org/3/tutorial/controlflow.html#unpacking-argument-lists is about

[issue19070] In place operators of weakref.proxy() not returning self.

2013-09-22 Thread Nick Coghlan
Nick Coghlan added the comment: Ouch :P Perhaps the least-incompatible fix would be to switch to returning the proxy if the object returned is the proxied object (which would do the right thing for proxies to mutable objects), while preserving the current behaviour when the in-place

[issue19047] Assorted weakref docs improvements

2013-09-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset caa16423b324 by Nick Coghlan in branch 'default': Close #19047: weakref doc cleanups http://hg.python.org/cpython/rev/caa16423b324 -- nosy: +python-dev resolution: - fixed stage: needs patch - committed/rejected status: open - closed

[issue19021] AttributeError in Popen.__del__

2013-09-22 Thread Oleg Oshmyan
Oleg Oshmyan added the comment: But the thing is, builtins are already supposed to be the very last thing destroyed at shutdown. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19021 ___

[issue19071] Documentation on what self is for module-level functions is misleading/wrong.

2013-09-22 Thread Graham Dumpleton
New submission from Graham Dumpleton: In the documentation for Python 2.X at: http://docs.python.org/2/extending/extending.html#a-simple-example it says: The self argument points to the module object for module-level functions; for a method it would point to the object instance. In

[issue19061] Shelve documentation security warning is not visible

2013-09-22 Thread anatoly techtonik
anatoly techtonik added the comment: On Sun, Sep 22, 2013 at 2:11 PM, Georg Brandl rep...@bugs.python.orgwrote: Georg Brandl added the comment: I believe that it is pretty easy with mobile browser due to screen constraints. Can you test this on your mobile devices? Sorry, but we don't

[issue19024] Document asterisk (*), splat or star operator

2013-09-22 Thread Nick Coghlan
Nick Coghlan added the comment: Unfortunately, there's currently no good place for this kind of detailed syntax reference documentation to go. The library reference doesn't cover syntax, the tutorial doesn't go into detailed semantics, and the language reference is written more for language

[issue19071] Documentation on what self is for module-level functions is misleading/wrong.

2013-09-22 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- nosy: +loewis, ncoghlan, pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19071 ___ ___

[issue19061] Shelve documentation security warning is not visible

2013-09-22 Thread Georg Brandl
Georg Brandl added the comment: me[1] open() function description is a wrong place for warning that is related to a whole module you[2] common, it is visible, that's the point anyway me[3] it is not visible on mobile you[4] we do not support mobile Your complaint was that it is located

[issue19065] sqlite3 timestamp adapter chokes on timezones

2013-09-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: This would be an useful improvement. Do you want to post a patch? See guidelines at http://docs.python.org/devguide/ -- nosy: +belopolsky, ghaering, lemburg, pitrou stage: - needs patch type: - enhancement versions: +Python 3.4 -Python 3.3

[issue19061] Shelve documentation security warning is not visible

2013-09-22 Thread anatoly techtonik
anatoly techtonik added the comment: On Sun, Sep 22, 2013 at 2:57 PM, Georg Brandl rep...@bugs.python.orgwrote: Georg Brandl added the comment: me[1] open() function description is a wrong place for warning that is related to a whole module you[2] common, it is visible, that's the point

[issue18553] os.isatty() is not Unix only

2013-09-22 Thread anatoly techtonik
anatoly techtonik added the comment: I having a snippet to fix that, should I open a new issue for patch? Please open a new issue. Reference is welcome. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18553

[issue18626] Make python -m inspect name meaningful

2013-09-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2e1335245f8f by Nick Coghlan in branch 'default': Close #18626: add a basic CLI for the inspect module http://hg.python.org/cpython/rev/2e1335245f8f -- nosy: +python-dev resolution: - fixed stage: needs patch - committed/rejected status:

[issue18626] Make python -m inspect name meaningful

2013-09-22 Thread Nick Coghlan
Nick Coghlan added the comment: Thanks for the initial patch Claudiu - I tweaked it a bit before committing it. * as you suggested, displaying the source is the default, with a --details option to display the formatted info instead * changed the displayed details (e.g. only displaying the

[issue19072] classmethod doesn't honour descriptor protocol of wrapped callable

2013-09-22 Thread Graham Dumpleton
New submission from Graham Dumpleton: The classmethod decorator when applied to a function of a class, does not honour the descriptor binding protocol for whatever it wraps. This means it will fail when applied around a function which has a decorator already applied to it and where that

[issue19073] Inability to specific __qualname__ as a property on a class instance.

2013-09-22 Thread Graham Dumpleton
New submission from Graham Dumpleton: Python 3 introduced __qualname__. This attribute exists on class types and also instances of certain class types, such as functions. For example: def f(): pass print(f.__name__) print(f.__qualname__) class Class: pass print(Class.__name__)

[issue19073] Inability to specific __qualname__ as a property on a class instance.

2013-09-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: I guess this would be a harmless improvement in any case. -- nosy: +pitrou stage: - needs patch type: behavior - enhancement versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org

[issue4366] cannot find -lpythonX.X when building Python on FreeBSD with --enable-shared

2013-09-22 Thread koobs
koobs added the comment: Attaching an initial patch with the following changes: - Update comment - Add original (#1600860) and current issue ID references - Remove sys.platform conditional - Remove NOOP sysconfig.get_config_var call (Reported by: birkenfeld) This results in all platforms

[issue18978] Allow urllib.request.Request subclasses to override method

2013-09-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6d6d68c068ad by Jason R. Coombs in branch 'default': Issue #18978: Allow Request.method to be defined at the class level. http://hg.python.org/cpython/rev/6d6d68c068ad New changeset 2b2744cfb08f by Jason R. Coombs in branch 'default': Issue #18978:

[issue19074] Add PySide to GUI FAQ

2013-09-22 Thread anatoly techtonik
New submission from anatoly techtonik: http://docs.python.org/2/faq/gui.html - this page misses info about PySide. -- assignee: docs@python components: Documentation messages: 198279 nosy: docs@python, techtonik priority: normal severity: normal status: open title: Add PySide to GUI FAQ

[issue18978] Allow urllib.request.Request subclasses to override method

2013-09-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7f13d5ecf71f by Jason R. Coombs in branch 'default': Issue #18978: Update docs to reflect explicitly the ability to set the attribute at the class level. http://hg.python.org/cpython/rev/7f13d5ecf71f --

[issue18986] Add a case-insensitive case-preserving dict

2013-09-22 Thread Jason R. Coombs
Jason R. Coombs added the comment: I just want to say thanks for working on this. I also have needed this functionality for various needs in the past. To fulfill my needs, I wrote this implementation:

[issue19064] can't run py3 benchmarks

2013-09-22 Thread Brett Cannon
Brett Cannon added the comment: ``python3 perf.py -fb mako_v2 ../opt/python ../x32opt/python`` obviously assuming you are specifying Python 3 interpreters. =) Feel free to tweak any docs you think should be touched up to make that more obvious. -- assignee: brett.cannon - pitrou

[issue19064] can't run py3 benchmarks

2013-09-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well... It wasn't really obvious to me :-) Why shouldn't the child interpreter decide which lib to use, though? perf.py is just an executable script (and its shebang specifies python, not python3). -- ___ Python

[issue19074] Add PySide to GUI FAQ

2013-09-22 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- priority: normal - low stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19074 ___

[issue19074] Add PySide to GUI FAQ

2013-09-22 Thread Brett Cannon
Brett Cannon added the comment: I say we just delete that page. Trying to keep up with GUI toolkits is a losing battle (as shown by this bug report) and not worth our time and effort to try to maintain. Search engines are your friend in this instance. -- nosy: +brett.cannon

[issue19064] can't run py3 benchmarks

2013-09-22 Thread Brett Cannon
Brett Cannon added the comment: Originally that didn't work too well because the benchmark suite could run Python 2 and Python 3 benchmarks simultaneously, but I don't know if that still works after the 2/3 merge. As for having interpreter under test make the choice of what version to use is

[issue19074] Add PySide to GUI FAQ

2013-09-22 Thread Christian Heimes
Christian Heimes added the comment: The wiki is probably a better place for such information. -- nosy: +christian.heimes versions: -Python 2.6, Python 3.1, Python 3.2, Python 3.5 ___ Python tracker rep...@bugs.python.org

[issue15329] clarify which deque methods are thread-safe

2013-09-22 Thread anatoly techtonik
anatoly techtonik added the comment: So, is deque a faster replacement for Queue.Queue or not? -- nosy: +techtonik ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15329 ___

[issue19065] sqlite3 timestamp adapter chokes on timezones

2013-09-22 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Sounds like a reasonable request, but the proposed code does not seem to work for the Eastern hemisphere (negative tz offsets.) I am not very familiar with sqlite module. What timestamp format does it use? Isn't it some varian of ISO 3339? See issue

[issue19024] Document asterisk (*), splat or star operator

2013-09-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: The StackOverflow question and answer about function calls is 5 years old and therefore out of date with respect to #12531, which specifically added index entries for function calls. Perhaps my Python 3 symbol glossary Python3 Syntax Symbol Uses

[issue19022] Improve handling of type.__abstractmethods__ descriptor

2013-09-22 Thread Daniel Urban
Daniel Urban added the comment: I like the 3rd alternative the most. It seems to me, that __abstractmethods__ is currently an undocumented implementation detail of ABCs. The 1st alternative would cause every type to have an empty __abstractmethods__ (which is technically correct, but probably

[issue1820] Enhance Object/structseq.c to match namedtuple and tuple api

2013-09-22 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: See also #5907. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1820 ___ ___ Python-bugs-list mailing

[issue1185124] pydoc doesn't find all module doc strings

2013-09-22 Thread Sunny
Sunny added the comment: I've rewritten the source_synopsis function to use the tokenize module. It should now work with triple single quotes and hopefully all the other cases where __doc__ returns a string. Since tokenize.tokenize needs a file object that is opened in binary mode, in the

[issue19074] Add PySide to GUI FAQ

2013-09-22 Thread anatoly techtonik
anatoly techtonik added the comment: If only wiki had a theme like Sphinx docs.. But I agree that static FAQ look dead compared to wiki or stackoverflow. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19074

[issue19074] Add PySide to GUI FAQ

2013-09-22 Thread Eli Bendersky
Eli Bendersky added the comment: +1 to delete -- nosy: +eli.bendersky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19074 ___ ___ Python-bugs-list

[issue19075] Add sorting algorithm visualization to turtledemo

2013-09-22 Thread Jason Yeo
New submission from Jason Yeo: My university uses python to teach sorting algorithms. It will be great if the turtledemo comes with a visualization of some of the algorithms. I have attached a patch for it. -- components: Demos and Tools files: animation.diff keywords: patch messages:

[issue19075] Add sorting algorithm visualization to turtledemo

2013-09-22 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- nosy: +ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19075 ___ ___ Python-bugs-list

[issue19075] Add sorting algorithm visualization to turtledemo

2013-09-22 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +gregorlingl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19075 ___ ___

[issue19047] Assorted weakref docs improvements

2013-09-22 Thread Richard Oudkerk
Richard Oudkerk added the comment: Thanks for the doc cleanup -- I am rather busy right now. Note that stuff does still get replaced by None at shutdown, and this can still produce errors, even if they are much harder to trigger. If I run the following program import _weakref import

[issue18967] Find a less conflict prone approach to Misc/NEWS

2013-09-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: +lots on ending News Merge Hell. After too many bad experiences, I now avoid pushing non-Idle patches that require a News entry. Even for those who do not mind merge conflicts, there is still the waste of time. The premise of non-checkout code management is

[issue16038] ftplib: unlimited readline() from connection

2013-09-22 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Okay, this one is quite odd. It's definitely a timing issue. If I put a `import time; time.sleep(1)` at the beginning of test_retrlines_too_line() -- i.e. first line of the method -- then the test reliably passes. If I put a `print(len(line))` just before

[issue16039] imaplib: unlimited readline() from connection

2013-09-22 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Looks good for 2.6. The NEWS file hunk doesn't apply, but I'll fix that when I commit this to 2.6. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16039

[issue16039] imaplib: unlimited readline() from connection

2013-09-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4190568ceda0 by Barry Warsaw in branch '2.6': - Issue #16039: CVE-2013-1752: Change use of readline in imaplib module to http://hg.python.org/cpython/rev/4190568ceda0 -- nosy: +python-dev ___ Python

[issue16039] imaplib: unlimited readline() from connection

2013-09-22 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Since the merge 2.6 - 2.7 did not apply cleanly, and had other problems. I null merged the 2.6 changes. I'll leave it to Benjamin to work out whatever patches 2.7 needs. -- versions: -Python 2.6 ___ Python

[issue16042] smtplib: unlimited readline() from connection

2013-09-22 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Please don't add 2.6 back to the Versions, unless there's actually something to do for 2.6. AFAIK, this issue is resolved for 2.6. -- versions: -Python 2.6 ___ Python tracker rep...@bugs.python.org

[issue19074] Add PySide to GUI FAQ

2013-09-22 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- assignee: docs@python - brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19074 ___ ___

[issue18967] Find a less conflict prone approach to Misc/NEWS

2013-09-22 Thread Ezio Melotti
Ezio Melotti added the comment: Even for those who do not mind merge conflicts, there is still the waste of time. If you know what you are doing the waste is minimal. I sometimes import, check, commit, merge, and push a patch on 3 branches in less than a minute (it was a trivial patch that

[issue19074] Add PySide to GUI FAQ

2013-09-22 Thread Ezio Melotti
Ezio Melotti added the comment: Note that we have a somewhat similar HOWTO about using Python in the web: http://docs.python.org/dev/howto/webservers.html The HOWTO mentions at the top that it can't keep track of all the several web framework and links to the wiki for a more updated page. The

[issue19074] Add PySide to GUI FAQ

2013-09-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: Actually PySide is mentioned in the 3.x version of the docs. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19074 ___

[issue19030] inspect.getmembers and inspect.classify_class_attrs mishandle descriptors

2013-09-22 Thread Ethan Furman
Ethan Furman added the comment: Current patch has a little more code cleanup and a bunch more tests. I copied and adapted test_property to test_VirtualAttribute, and VirtualAttribute passes every test except the __slots__ test where __doc__ is not supposed to copy. I think the problem there

[issue19030] inspect.getmembers and inspect.classify_class_attrs mishandle descriptors

2013-09-22 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: Added file: http://bugs.python.org/file31846/issue19030.stoneleaf.04.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19030 ___

[issue19025] Deleting attribute of Enum gives misleading error message

2013-09-22 Thread Ethan Furman
Ethan Furman added the comment: Okay, I changed my mind about __delattr__. Having it say AttributeError: cannot delete Enum member is certainly nicer than AttributeError: MemberName -- ___ Python tracker rep...@bugs.python.org

[issue19025] Deleting attribute of Enum gives misleading error message

2013-09-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset ed011b0d7daf by Ethan Furman in branch 'default': Close #19025: Better error message when trying to delete an Enum member. http://hg.python.org/cpython/rev/ed011b0d7daf -- nosy: +python-dev resolution: - fixed stage: - committed/rejected

[issue19076] Pdb.do_break calls error with obsolete file kwarg

2013-09-22 Thread Michael Smith
New submission from Michael Smith: Pretty straightforward: File /usr/local/Cellar/python3/3.3.2/Frameworks/Python.framework/Versions/3.3/lib/python3.3/pdb.py, line 675, in do_break self.error(err, file=self.stdout) TypeError: error() got an unexpected keyword argument 'file' Sure enough,

[issue19011] Enum should have a __getattr__ that makes all the instances available from an instance

2013-09-22 Thread Ethan Furman
Ethan Furman added the comment: Posted a message on PyDev, but unless I get feedback saying it's a bad idea, or I find some implementation issue, I'll go ahead and make the change. So either a doc patch or an enum patch will be in alpha3. :) --

[issue19040] Problems with overriding Enum.__new__

2013-09-22 Thread Ethan Furman
Ethan Furman added the comment: How about this note after the AutoNumber example? .. note:: The :meth:`__new__` method, if defined, is used during creation of the Enum members; it is then replaced by Enum's :meth:`__new__` which is used after class creation for lookup of existing

[issue19040] Problems with overriding Enum.__new__

2013-09-22 Thread Eli Bendersky
Eli Bendersky added the comment: LGTM, Ethan. You know how I feel about customization in general ;-) We should give Enum a term or two in the stdlib to learn how it's being used and abused - we can always *add* customization in the future. -- ___

[issue19030] inspect.getmembers and inspect.classify_class_attrs mishandle descriptors

2013-09-22 Thread Nick Coghlan
Nick Coghlan added the comment: I suggest DynamicClassAttribute for the descriptor name. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19030 ___

[issue19040] Problems with overriding Enum.__new__

2013-09-22 Thread Ethan Furman
Ethan Furman added the comment: Yup, just trying to add some explanation on how it currently works. Drekin, I'm sure you've already figured this out, but for those who may read this in the future: what you need is a helper function: def OptionalEnum(value): could also be

[issue19076] Pdb.do_break calls error with obsolete file kwarg

2013-09-22 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- components: +Library (Lib) nosy: +berker.peksag, georg.brandl stage: - needs patch versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19076