[issue1191964] asynchronous Subprocess

2014-04-16 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue16484] pydoc generates invalid docs.python.org link for xml.etree.ElementTree and other modules

2014-04-16 Thread Martin Panter
Martin Panter added the comment: I don’t think these ones could be so easily fixed, but on my computer “pydoc” references: * library/importlib.machinery.html (ideally should be library/importlib.html#module-importlib.machinery) * library/tkinter.font.html (not in Python documentation at all th

[issue21106] Updated Mac folder icon

2014-04-16 Thread Vivek Jain
Vivek Jain added the comment: No reply from Apple yet, so I'm guessing at this stage they won't be responding. Does anyone have any contacts at Apple they could nudge to have a look at this? :) The other option is to recreate something that looks like Apple's folder icon but isn't. There is a

[issue5904] strftime docs do not explain locale effect on result string

2014-04-16 Thread David Wolever
David Wolever added the comment: It may also be worth noting that the strftime formatters table now includes examples from different locales: https://docs.python.org/2/library/datetime.html#strftime-strptime-behavior This change was introduced about a year ago. -- ___

[issue21240] Add an abstactmethod directive to the Python ReST domain

2014-04-16 Thread Georg Brandl
Georg Brandl added the comment: LGTM without having tested it. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue5904] strftime docs do not explain locale effect on result string

2014-04-16 Thread Éric Araujo
Éric Araujo added the comment: This may help: http://blog.codekills.net/2013/04/13/strftime--table-of-locale-aware-formatters-in-different-locales/ -- nosy: +wolever ___ Python tracker _

[issue18879] tempfile.NamedTemporaryFile can close the file too early, if not assigning to a variable

2014-04-16 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- title: tempfile.NamedTemporaryFile can close the file too early, if not assigning to a variablwe -> tempfile.NamedTemporaryFile can close the file too early, if not assigning to a variable ___ Pyth

[issue21272] use _sysconfigdata.py in distutils.sysconfig to initialize distutils.sysconfig

2014-04-16 Thread Éric Araujo
Éric Araujo added the comment: Because removing distutils.sysconfig would break things. -- ___ Python tracker ___ ___ Python-bugs-list

[issue1062] nice to have a way to tell if a socket is bound

2014-04-16 Thread Martin Panter
Martin Panter added the comment: The suggested subclass might have to call the default bind(("", 0)) before running certain other operations, including connect(), send[to](), recv[from](), since these operations are meant to automatically bind if necessary. -- nosy: +vadmium

[issue16349] Document whether it's safe to use bytes for struct format string

2014-04-16 Thread Martin Panter
Martin Panter added the comment: The issue of Struct.format being a byte string has been raised separately in Issue 21071. -- ___ Python tracker ___

[issue21071] struct.Struct.format is bytes, but should be str

2014-04-16 Thread Martin Panter
Martin Panter added the comment: This is closely related to Issue 16349. If format strings were explicitly allowed to be byte strings there would be less conflict, but documenting the data type of the “format” attribute is better than nothing. -- nosy: +vadmium ___

[issue16286] Use hash if available to optimize a==b and a!=b for bytes and str

2014-04-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Serhiy, Gregory, Raymond, Antoine: so what is your feeling on > this issue? Is it worth it? I don't think it is worth it. There may be some cases that benefit, but it adds extra branching code to the common cases (sets and dicts) that already have the i

[issue21279] str.translate documentation incomplete

2014-04-16 Thread Martin Panter
Martin Panter added the comment: I suspect “iterable” is the wrong term. >>> isinstance(set(), Iterable) True >>> "abc".translate(set()) TypeError: 'set' object does not support indexing >>> "abc".translate(object()) TypeError: 'object' object is not subscriptable Maybe “indexable” or “subscrip

[issue21259] replace "except: pass" by "except Exception: pass"

2014-04-16 Thread Martin Panter
Martin Panter added the comment: If you do go ahead and add “except Exception” clauses, maybe look around at what other exceptions are being handled. The other day I stumbled across this in “tkinter.font” module: try: ... except (KeyboardInterrupt, SystemExit): raise except Exception:

[issue20904] HAVE_PY_SET_53BIT_PRECISION for m68k

2014-04-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset c2f6551c9eaf by Benjamin Peterson in branch 'default': support setting fpu precision on m68k (closes #20904) http://hg.python.org/cpython/rev/c2f6551c9eaf -- nosy: +python-dev resolution: -> fixed stage: patch review -> committed/rejected s

[issue21248] BROWSER env var described inaccurately in webbrowser docs

2014-04-16 Thread Senthil Kumaran
Senthil Kumaran added the comment: Thanks for the bug report. The documentation has been fixed in the active versions. -- versions: +Python 3.4, Python 3.5 -Python 2.7 ___ Python tracker __

[issue21248] BROWSER env var described inaccurately in webbrowser docs

2014-04-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 503bf9dee28e by Senthil Kumaran in branch '3.4': Clarify BROWSER envar behavior in webbrowser.py. Noted by David Turner. Closes #21248 http://hg.python.org/cpython/rev/503bf9dee28e -- nosy: +python-dev resolution: -> fixed stage: -> commi

[issue21229] Path used for HTTP PUT request doesn't match the description

2014-04-16 Thread Senthil Kumaran
Senthil Kumaran added the comment: Yes. And thanks for the patch. I applied a slight variation of it. -- ___ Python tracker ___ ___ Py

[issue21171] Outdated usage str.encode('rot-13') in rot13 codec

2014-04-16 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue21229] Path used for HTTP PUT request doesn't match the description

2014-04-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 57c66f85942d by Senthil Kumaran in branch '3.4': Correct the URL in the http.client example. Noted by Evens Fortuné. Closes #21229 http://hg.python.org/cpython/rev/57c66f85942d -- nosy: +python-dev resolution: -> fixed stage: -> committed

[issue21259] replace "except: pass" by "except Exception: pass"

2014-04-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: Several areas for attention: * Changes to the test suite probably should not be made The user doesn't benefit in any way and you risk unintentionally breaking the test suite in a way that isn't obvious (we have no tests for the tests themselves so chan

[issue21272] use _sysconfigdata.py in distutils.sysconfig to initialize distutils.sysconfig

2014-04-16 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Apr 16, 2014, at 10:12 PM, Matthias Klose wrote: > >distutils/sysconfig still parses the Makefile and config header; it should >use the same approach now as the toplevel sysconfig module. Why do we still have two sysconfig modules? -- nosy: +barry

[issue18628] Better index entry for encoding declarations

2014-04-16 Thread R. David Murray
R. David Murray added the comment: Thanks, Sam. -- nosy: +r.david.murray resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue21259] replace "except: pass" by "except Exception: pass"

2014-04-16 Thread STINNER Victor
STINNER Victor added the comment: > If you (Victor) want to individually study each one to make sure it is the > right thing to do, I would place more faith in the patch. But as it stands > now, reviewing the patch for correctness will take substantially more care > and thought than it took to

[issue21259] replace "except: pass" by "except Exception: pass"

2014-04-16 Thread STINNER Victor
STINNER Victor added the comment: @Raymond: To give you more context, Stéphane is sprinting at Pycon on Pycon. I suggested him to fix all bare "except: pass". His first patch is wrong, but ignoring any exception is even worse. -- ___ Python tracker

[issue21259] replace "except: pass" by "except Exception: pass"

2014-04-16 Thread STINNER Victor
STINNER Victor added the comment: > 3) replace "except: pass" with more precise exceptions like "except OSError:" > => please write multiple small patches for this part You may even open a new issue just for "except: pass" => "except OSError: pass" -- _

[issue21259] replace "except: pass" by "except Exception: pass"

2014-04-16 Thread STINNER Victor
STINNER Victor added the comment: I reviewed issue21259-replace_except_pass-2.patch. Please split this huge patch into smaller patches: 1) remove dummy "except: raise" 2) use os.unlink() 3) replace "except: pass" with more precise exceptions like "except OSError:" => please write multiple sma

[issue18628] Better index entry for encoding declarations

2014-04-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0413e0b1f76d by R David Murray in branch '3.4': #18628: clarify index entry for source file encoding declaration. http://hg.python.org/cpython/rev/0413e0b1f76d New changeset 7c2dcb18146c by R David Murray in branch 'default': Merge: #18628: clarify

[issue21259] replace "except: pass" by "except Exception: pass"

2014-04-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Please don't close the issue, Stéphane is fixing real bug. He appears to be doing a blanket search and replace without adding tests, without evaluating each change to see if makes sense, and without consulting the original author of each affected piece of

[issue21151] winreg.SetValueEx causes crash if value = None

2014-04-16 Thread Dave Odell
Dave Odell added the comment: Patch works on my end. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue21259] replace "except: pass" by "except Exception: pass"

2014-04-16 Thread STINNER Victor
STINNER Victor added the comment: > FYI, the two are not equivalent. I don't get your point, the purpose of the change is to get ride of "except: pass" which is *bad*. > Even then, the new code would be slower than the original, I don't understand why you are talking about performances here.

[issue21101] Extend the PyDict C API to handle cases where the hash value is known

2014-04-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: I think we can start with making them private. Do you know of any third-party code bases which may be interested in the speedup? -- ___ Python tracker

[issue21028] ElementTree objects should support all the same methods as Element objects

2014-04-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: Given Stephan's concerned, I withdraw this feature request. -- resolution: -> not a bug status: open -> closed ___ Python tracker ___ __

[issue21101] Extend the PyDict C API to handle cases where the hash value is known

2014-04-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: Antoine, do you support adding these as part of the public API? If not, I can make them private. I think the functions are broadly useful, but no one has ever asked for this functionality either. -- ___ Python

[issue21259] replace "except: pass" by "except Exception: pass"

2014-04-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: After more consideration, I'm going to reject the patch because it doesn't really make the code better and may make it worse (changing semantics, slower, etc). Any such changes should be done holistically as part of a deeper refactoring on an individual m

[issue21279] str.translate documentation incomplete

2014-04-16 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- keywords: +easy stage: -> patch review versions: +Python 3.4, Python 3.5 -Python 3.3 ___ Python tracker ___ ___

[issue21234] __contains__ and friends should check "is" for all elements first

2014-04-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: > when doing an operation that does linear search through a container, > the interpreter checks all items one by one, first checking identity > and then equality. This is the guaranteed behavior. Changing it would result in subtle change in semantics (i.e.

[issue21279] str.translate documentation incomplete

2014-04-16 Thread bob gailer
New submission from bob gailer: Documentation for str.translate only mentions a dictionary for the translation table. Actually any iterable can be used, as long as its elements are integer, None or str. Recommend wording: str.translate(translation_table) Return a copy of the s where all char

[issue12148] Clarify "or-ing together" doctest option flags

2014-04-16 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.4, Python 3.5 -Python 3.1, Python 3.2, Python 3.3 ___ Python tracker ___ ___ Python

[issue21272] use _sysconfigdata.py in distutils.sysconfig to initialize distutils.sysconfig

2014-04-16 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +dstufft, eric.araujo stage: -> patch review type: -> enhancement ___ Python tracker ___ ___ Py

[issue21230] imghdr does not accept adobe photoshop mime type

2014-04-16 Thread Faiz Abbasi
Faiz Abbasi added the comment: Hey, just checking in on this? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5904] strftime docs do not explain locale effect on result string

2014-04-16 Thread Caelyn McAulay
Caelyn McAulay added the comment: Added to Docs that strftime will return a locale dependent byte string. -- keywords: +patch nosy: +math_foo Added file: http://bugs.python.org/file34940/issue5904.patch ___ Python tracker

[issue21277] don't try to link _ctypes with a ffi_convenience library

2014-04-16 Thread Matthias Klose
Matthias Klose added the comment: the list of libs should be just: ('ffi', 'ffi_pic') -- ___ Python tracker ___ ___ Python-bugs-list m

[issue21207] urandom persistent fd - not re-openned after fd close

2014-04-16 Thread Daniel Black
Changes by Daniel Black : -- nosy: +grooverdan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue21088] curses addch() argument position reverses in Python3.4.0

2014-04-16 Thread Larry Hastings
Larry Hastings added the comment: Here's my version of the patch, which is like Victor's patch but adds a test. For what it's worth, I'll make sure this issue is fixed before I release 3.4.1. -- Added file: http://bugs.python.org/file34939/larry.curses.window.addch.y.x.1.diff

[issue12148] Clarify "or-ing together" doctest option flags

2014-04-16 Thread Caelyn McAulay
Caelyn McAulay added the comment: I grepped for 's together' and found two instances of "or's together" in the docs which I reworded to use bitwise-or instead, in the attached patch. -- keywords: +patch nosy: +math_foo Added file: http://bugs.python.org/file34938/issue12148.patch _

[issue20904] HAVE_PY_SET_53BIT_PRECISION for m68k

2014-04-16 Thread Stefan Krah
Stefan Krah added the comment: Larry Hastings wrote: > Andreas, is there someone who would normally check this in for you, or should > I do it? Traditionally Mark commits the floating point stuff. :) -- ___ Python tracker

[issue20904] HAVE_PY_SET_53BIT_PRECISION for m68k

2014-04-16 Thread Larry Hastings
Larry Hastings added the comment: Okay, I say let's check this in. If mirabilos can cite problems it causes we can revert it. Andreas, is there someone who would normally check this in for you, or should I do it? -- ___ Python tracker

[issue20438] inspect: Deprecate getfullargspec?

2014-04-16 Thread Larry Hastings
Larry Hastings added the comment: +1 to doc deprecation and adding a DeprecationWarning for 3.5. -- ___ Python tracker ___ ___ Python-

[issue21227] Decimal class error messages for integer division aren't good

2014-04-16 Thread Stefan Krah
Stefan Krah added the comment: The idea behind the list as the exception message is this: If multiple conditions would have raised the signal they are all listed, while the "highest ranking" signal is the one that is ultimately raised. >>> from decimal import * >>> c = getcontext() >>> for v in

[issue17861] put opcode information in one place

2014-04-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2b187c9e3e92 by Thomas Wouters in branch 'default': Fix Tools/scripts/generate_opcode_h.py from issue #17861 to work correctly http://hg.python.org/cpython/rev/2b187c9e3e92 -- ___ Python tracker

[issue21202] Naming a file` io.py` causes cryptic error message

2014-04-16 Thread Christian Theune
Changes by Christian Theune : -- keywords: +patch Added file: http://bugs.python.org/file34937/4ae151db1bd9.diff ___ Python tracker ___ __

[issue21202] Naming a file` io.py` causes cryptic error message

2014-04-16 Thread Christian Theune
Christian Theune added the comment: I managed to create a patch that relies (in hopefully reasonably safe manner) on embedding an object repr for identification in this and similar cases. This is basically what implements what Martin suggested. Caveat emptor: my C knowledge is only good enough

[issue17752] many distutils tests fail when run from the installed location

2014-04-16 Thread Éric Araujo
Éric Araujo added the comment: The xx module is built by the unit tests IIRC. -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-

[issue21235] importlib's spec module create algorithm is not exposed

2014-04-16 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue21240] Add an abstactmethod directive to the Python ReST domain

2014-04-16 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue21199] Python on 64-bit Windows uses signed 32-bit type for read length

2014-04-16 Thread Larry Hastings
Larry Hastings added the comment: Here's my version of the patch. It does the same thing Victor's patch does, but removes a now-completely-irrelevant stanza of code, and adds a test. I'm on 64-bit Linux, so the test was always going to work anyway. So I tested the test by changing file_read

[issue21278] Running the test suite with -v makes the test_ctypes and the test_zipimport erroneously reported as failed

2014-04-16 Thread ddve...@ucar.edu
New submission from ddve...@ucar.edu: Running EXTRATESTOPTS='-x test_gdb -uall -v' make testall Produces: test_csv test_ctypes test test_ctypes produced unexpected output: ** Trying: from ctypes import * Expecting no

[issue21202] Naming a file` io.py` causes cryptic error message

2014-04-16 Thread Christian Theune
Changes by Christian Theune : -- hgrepos: +238 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue21227] Decimal class error messages for integer division aren't good

2014-04-16 Thread Stefan Krah
Stefan Krah added the comment: leewz wrote: > - Error message for `DivisionImpossible` is > [] > instead of an actual error message. No, the error message for the *signal* that is raised (InvalidOperation) lists the *condition* that triggered the signal (DivisionImpossible). I followe

[issue21277] don't try to link _ctypes with a ffi_convenience library

2014-04-16 Thread Matthias Klose
New submission from Matthias Klose: the ffi_convenience library was once built and installed with oldish GCC versions. Either remove it completely from the search path, or search for the standard libffi system library. --- a/setup.py +++ b/setup.py @@ -1939,7 +1939,7 @@

[issue21276] don't define USE_XATTRS on kfreebsd and the Hurd

2014-04-16 Thread Matthias Klose
New submission from Matthias Klose: don't define USE_XATTRS on kfreebsd and the Hurd, not available there. -- files: kfreebsd-xattrs.diff keywords: patch messages: 216613 nosy: doko priority: normal severity: normal status: open title: don't define USE_XATTRS on kfreebsd and the Hurd ver

[issue21275] fix a socket test on KFreeBSD

2014-04-16 Thread Matthias Klose
New submission from Matthias Klose: Fix a socket test on KFreeBSD -- components: Tests files: kfreebsd-testsuite.diff keywords: patch messages: 216612 nosy: doko priority: normal severity: normal status: open title: fix a socket test on KFreeBSD versions: Python 3.4, Python 3.5 Added fil

[issue21274] define PATH_MAX for GNU/Hurd in Python/pythonrun.c

2014-04-16 Thread Matthias Klose
New submission from Matthias Klose: PATH_MAX is not defined on GNU/Hurd. Take the same approach as taken for Windows in the very same file and define it in terms of MAXPATHLEN. -- components: Interpreter Core files: hurd-path_max.diff keywords: patch messages: 216611 nosy: doko priority

[issue21273] don't defined socket constants which are not implemented for GNU/Hurd

2014-04-16 Thread Matthias Klose
New submission from Matthias Klose: Comment out constant exposed on the API which are not implemented on GNU/Hurd. They would not work at runtime anyway. -- components: Extension Modules files: hurd-disable-nonworking-constants.diff keywords: patch messages: 216610 nosy: doko priority: n

[issue21272] use _sysconfigdata.py in distutils.sysconfig to initialize distutils.sysconfig

2014-04-16 Thread Matthias Klose
New submission from Matthias Klose: distutils/sysconfig still parses the Makefile and config header; it should use the same approach now as the toplevel sysconfig module. -- components: Library (Lib) files: distutils-init.diff keywords: patch messages: 216609 nosy: doko priority: normal

[issue15887] urlencode should accept iterables of pairs

2014-04-16 Thread Thomas Fenzl
Changes by Thomas Fenzl : -- nosy: +Thomas Fenzl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue12916] Add inspect.splitdoc

2014-04-16 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: And it takes a string or an object? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue12916] Add inspect.splitdoc

2014-04-16 Thread Éric Araujo
Éric Araujo added the comment: > I'd keep the name ("splitdoc"), and let it receive a string. Yes please. -- ___ Python tracker ___ _

[issue12916] Add inspect.splitdoc

2014-04-16 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Ok, I will work on this bug after the feedback of Eric and David. Thanks for your time. -- Stéphane Wirtel - http://wirtel.be - @matrixise -- ___ Python tracker _

[issue12916] Add inspect.splitdoc

2014-04-16 Thread Yury Selivanov
Yury Selivanov added the comment: I'd keep the name ("splitdoc"), and let it receive a string. But let's hear what Eric & David think about it. -- ___ Python tracker ___ __

[issue12916] Add inspect.splitdoc

2014-04-16 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Totally agree with you, I want to learn how to contribute to cpython and there is a learning curve and it's normal. So, if you think we need to change the names or the signature of the function, I can work on this issue. --

[issue21255] Attaching a PropertyMock records calls

2014-04-16 Thread Éric Araujo
Éric Araujo added the comment: >>> type(foo).prop = prop >>> foo.attach_mock(prop, 'prop') Are both of these lines needed? -- nosy: +eric.araujo ___ Python tracker ___ _

[issue12916] Add inspect.splitdoc

2014-04-16 Thread Yury Selivanov
Yury Selivanov added the comment: > Are you agree with that, or there is a good way for this kind of improvement? Having a unittest to check if a deprecated functionality is removed in the future versions was Brett's idea, and I like it. So I think it's good to do the same here. Your way of

[issue12916] Add inspect.splitdoc

2014-04-16 Thread Yury Selivanov
Yury Selivanov added the comment: > In the inspect module, I think all the functions take a object and not a string, it's the reason why I included the code of pydoc.getdoc() into inspect.splitdoc(). I understand. But you also do inspect.getdoc or inspect.getcomments, which I don't really lik

[issue12916] Add inspect.splitdoc

2014-04-16 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Yury, An other point, as you proposed, I will check the version of Python in an unit test. But is there a good practice? Here is my way to check that: Example from my patch for the issue with inspect.getfullargspec() +getfullargspec = getattr(inspec

[issue17861] put opcode information in one place

2014-04-16 Thread Thomas Wouters
Thomas Wouters added the comment: Here's a minimal patch to at least make the current mechanism work when using a separate build directory. I still don't like the fact that this is importing opcode.py in a different Python than the target Python. Nor do I like that the script hardcodes inform

[issue12916] Add inspect.splitdoc

2014-04-16 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: On 16 Apr 2014, at 17:24, Yury Selivanov wrote: > Yury Selivanov added the comment: > > The current patch proposes to add inspect.splitdoc(obj), instead of > pydoc.splitdoc(doc). The former takes an object, extracts > documentation out of it, and returns a t

[issue12916] Add inspect.splitdoc

2014-04-16 Thread Yury Selivanov
Yury Selivanov added the comment: The current patch proposes to add inspect.splitdoc(obj), instead of pydoc.splitdoc(doc). The former takes an object, extracts documentation out of it, and returns a tuple. The latter, just splits the passed doc string. If you want this function in inspect, w

[issue21190] Broken download link on README for CPython docs

2014-04-16 Thread Senthil Kumaran
Senthil Kumaran added the comment: Éric, no preference. I thought this was explicit and if you would like to change it back to /3/, fine, no problem with me. Just think of any redirection issue, if we may accidentally stumble upon, that's it. -- ___

[issue18243] mktime_tz documentation out-of-date

2014-04-16 Thread akira
akira added the comment: I've added the documentation patch with the outdated remark removed from mktime_tz docs. -- keywords: +patch nosy: +akira type: -> behavior versions: +Python 3.2, Python 3.5 Added file: http://bugs.python.org/file34929/mktime_tz-doc.patch _

[issue12916] Add inspect.splitdoc

2014-04-16 Thread Éric Araujo
Éric Araujo added the comment: Added some comments. -- stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue20309] Not all method descriptors are callable

2014-04-16 Thread Christian Hudon
Christian Hudon added the comment: Work in progress for fixing this bug. (See descr_v1.diff) I converted the "curious.py" file into additional testcases. I started writing the functions for the tp_call slots for class and static methods. To do: add tests to make sure that the code works for mo

[issue1684] CGIHTTPServer does not chdir prior to executing the CGI script

2014-04-16 Thread Thomas Fenzl
Changes by Thomas Fenzl : -- nosy: +Thomas Fenzl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue17861] put opcode information in one place

2014-04-16 Thread Thomas Wouters
Thomas Wouters added the comment: FYI, this broke building in a separate object directory (again!) for multiple reasons: it's running the script without specifying $(srcdir), and it's writing to $(srcdir)/Include/opcode.h (where $(srcdir) may be unwritable), and it's picking up the wrong opcod

[issue21190] Broken download link on README for CPython docs

2014-04-16 Thread Éric Araujo
Éric Araujo added the comment: For the record, there is a convention (and server config) to have “current version” links: http://legacy.python.org/dev/peps/pep-0430/ Senthil: What do you think about using /3/ instead of /3.4/ in the link so that it does not become another thing that needs to c

[issue19316] devguide: compiler - wording

2014-04-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: I will try to take a look, but anyone else is welcome to also. -- ___ Python tracker ___ ___ Python-

[issue21271] reset_mock needs parameters to also reset return_value and side_effect

2014-04-16 Thread Michael Foord
New submission from Michael Foord: unittest.mock.Mock.reset_mock deliberately doesn't reset the return_value and side_effect. It would be nice if it gained parameters so that it *could*. -- assignee: michael.foord components: Library (Lib) messages: 216588 nosy: kushal.das, michael.foor

[issue21227] Decimal class error messages for integer division aren't good

2014-04-16 Thread leewz
leewz added the comment: Total list of issues now: - Error message for `DivisionImpossible` is [] instead of an actual error message. - `decimal.DivisionImpossible.__doc__` is empty. - Calling `help(decimal.DivisionImpossible)` turns up nothing useful. I checked all of these just now on

[issue18622] reset_mock on mock created by mock_open causes infinite recursion

2014-04-16 Thread Michael Foord
Changes by Michael Foord : -- nosy: +kushal.das versions: +Python 3.5 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue21270] unittest.mock.call object has inherited count method

2014-04-16 Thread Michael Foord
New submission from Michael Foord: The unittest.mock.call object inherits methods from tuple that prevent you using them as normal call attributes. They should be overridden. -- assignee: michael.foord messages: 216587 nosy: kushal.das, michael.foord priority: normal severity: normal st

[issue21227] Decimal class error messages for integer division aren't good

2014-04-16 Thread Mark Dickinson
Changes by Mark Dickinson : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue21269] Provide args and kwargs attributes on mock call objects

2014-04-16 Thread Michael Foord
Changes by Michael Foord : -- assignee: -> michael.foord components: +Library (Lib) nosy: +kushal.das stage: -> needs patch type: -> behavior versions: +Python 3.5 ___ Python tracker

[issue4744] asynchat documentation needs to be more precise

2014-04-16 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: In your issue4744_2.patch, the anchor contains 'asychat' and not 'asynchat'. -- ___ Python tracker ___ _

[issue21269] Provide args and kwargs attributes on mock call objects

2014-04-16 Thread Michael Foord
New submission from Michael Foord: The unittest.mock.call object could have args/kwargs attributes to easily access the arguments it was called with. -- messages: 216585 nosy: michael.foord priority: normal severity: normal status: open title: Provide args and kwargs attributes on mock

[issue21167] float('nan') returns 0.0 on Python compiled with icc

2014-04-16 Thread Stefan Krah
Stefan Krah added the comment: I quite agree, and it's hard to tell what users want. Basically I'm afraid of a bug report "C extension using unsafe math got slower in Python-3.5". I would find either decision reasonable. -- ___ Python tracker

[issue21265] ConfigParser allows "get(*, raw=True), but no corresponding "set(*, raw=True)"

2014-04-16 Thread Ned Deily
Changes by Ned Deily : -- nosy: +lukasz.langa ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue21167] float('nan') returns 0.0 on Python compiled with icc

2014-04-16 Thread Mark Dickinson
Mark Dickinson added the comment: Sure, if that's really the expectation. I'm not sure I'd want any of *my* extension modules being built with non-strict FP, but there's a bit of a personal bias there. -- ___ Python tracker

[issue21227] Decimal class error messages for integer division aren't good

2014-04-16 Thread Stefan Krah
Stefan Krah added the comment: Raymond Hettinger wrote: > > It is certainly possible to document DivisionImpossible etc. > > This should not be done. We've made strong efforts to not extend the Decimal > Arithmetic Specification. The exceptions are already there: Python 2.7.3 (default, Mar

[issue21268] Update pydoc module docstring

2014-04-16 Thread Éric Araujo
New submission from Éric Araujo: “In the Python interpreter, do "from pydoc import help" to provide online help.” “online” has changed meaning in the last decades, and help is a semi-builtin automatically added by the site module on startup. -- assignee: docs@python components: Documen

  1   2   3   >