[issue23310] Mock constructor configuration fails for magic methods

2015-04-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8e5592a43d65 by Łukasz Langa in branch '3.4': Issue #23310: Fix MagicMock's initializer to work with __methods__. https://hg.python.org/cpython/rev/8e5592a43d65 New changeset dd8f48ff9480 by Łukasz Langa in branch 'default': Merge 3.4 (#23310) https

[issue23310] MagicMock initializer fails for magic methods

2015-04-14 Thread Łukasz Langa
Łukasz Langa added the comment: Awesome! Thank you for your patch, Kasia. For the record, I left the non-magic Mock behavior untouched since Kasia rightfully points out that in this case m.configure_mock() also does not work. -- keywords: -needs review resolution: -> fixed status: op

[issue23310] MagicMock initializer fails for magic methods

2015-04-14 Thread Łukasz Langa
Changes by Łukasz Langa : -- stage: needs patch -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue23008] pydoc enum.{,Int}Enum fails

2015-04-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think we can ignore this flaw. 'pydoc None' works, and any solution for None aliases could break existing code that use private pydoc functions. Here is a patch with a test. -- stage: test needed -> patch review Added file: http://bugs.python.org/f

[issue23900] Add a default docstring to Enum subclasses

2015-04-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: May be don't add __doc__ if sys.flags.optimize >= 2? -- ___ Python tracker ___ ___ Python-bugs-lis

[issue23908] Check path arguments of os functions for null character

2015-04-14 Thread STINNER Victor
STINNER Victor added the comment: > I can't test the patch on UNIX, this branch of the code is executed only on > Windows. If you write a test which ensures that a path with a null character raises a TypeError, it should pass on UNIX on your PC. Then builbots will ensure that it also pass on

[issue21148] avoid memset in small tuple creation

2015-04-14 Thread STINNER Victor
STINNER Victor added the comment: > avoid memset in small tuple creation I don't understand this title because there is no call to memset() in the patch. Can you try to modify PyTuple_New() to use memset() instead of a dummy loop? Adding a _PyTuple_New() which doesn't initialize the memory doe

[issue23193] Please support "numeric_owner" in tarfile

2015-04-14 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: -haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue9951] introduce bytes.hex method (also for bytearray and memoryview)

2015-04-14 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: -haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue22980] C extension naming doesn't take bitness into account

2015-04-14 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: -haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue19050] [Python 2, Windows] fflush called on pointer to potentially closed file

2015-04-14 Thread STINNER Victor
STINNER Victor added the comment: > The default (and standards-violating) behavior of the Windows CRT is to kill > the process for a bad file descriptor, instead of just setting errno to EBADF. Ah, if the issue is the behaviour of the MSVCRT on EBADF, Steve Dower can help you. He wrote the _Py

[issue23863] Fix EINTR Socket Module issues in 2.7

2015-04-14 Thread STINNER Victor
STINNER Victor added the comment: @Benjamin: since you are the maintainer of Python 2.7, I would like your opinion on this issue. Python older than 3.5 does not handle EINTR for you: if you register a signal handler for a signal, the signal handler does not raise an exception, and a syscall i

[issue23935] Clean up Clinic's type expressions of buffers

2015-04-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Added few comments on Rietveld. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue23507] Tuple creation is too slow

2015-04-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: map doesn't use PyObject_CallFunctionObjArgs(). If compare results for map with results for filter and list.sort, seems that PyTuple_New() is responsible for 24% and PyObject_CallFunctionObjArgs() adds other 14%. -- priority: normal -> low _

[issue23945] webbrowser.open opens twice on Windows if BROWSER is set

2015-04-14 Thread andig2
New submission from andig2: Setup: IE default browser, FF37 preferred browser and configured in BROWSER env variable Test: import webbrowser url = "http://localhost"; webbrowser.open(url + '?XDEBUG_SESSION_START=sublime.xdebug') Behaviour: 1st run: FF opens -> ok 2nd run: FF opens new tab ->

[issue21400] Code coverage documentation is out-of-date.

2015-04-14 Thread Heather McCartney
Heather McCartney added the comment: You're welcome! Thanks for the feedback, I've signed the PSF Contributor Form. -- ___ Python tracker ___

[issue23945] webbrowser.open opens twice on Windows if BROWSER is set

2015-04-14 Thread andig2
andig2 added the comment: Here is a matrix of the test results depending on which browser is open upon starting the test script: No browser open: FF opens tab (ok) IE open: new tab in FF (ok), nothing in IE (ok) FF open: new tab in FF (ok), new tab in in IE (NOT ok) Both open: new tab in FF (ok

[issue21400] Code coverage documentation is out-of-date.

2015-04-14 Thread Carol Willing
Carol Willing added the comment: Thanks Heather for filing the PSF contribution form as well as the patch. I hope you will continue improving Python's documentation in the future :) -- ___ Python tracker _

[issue23945] webbrowser.open opens twice on Windows if BROWSER is set

2015-04-14 Thread andig2
andig2 added the comment: Looking further in webbrowser.py, FF uses GenericBrowser: class GenericBrowser(BaseBrowser): """Class for all browsers started with a command and without remote functionality.""" ... def open(self, url, new=0, autoraise=True): cmdline = [self

[issue12652] Keep test.support docs out of the global docs index

2015-04-14 Thread Carol Willing
Carol Willing added the comment: Reviewed the issue history during the PyCon sprints. Thanks to all for the thoughts on this issue. I am closing this issue since any additional actions on this subject would be best filed as a new issue. -- nosy: +willingc resolution: -> out of date st

[issue16222] some terms not found by devguide's search box

2015-04-14 Thread Carol Willing
Carol Willing added the comment: Reviewed this issue's history at PyCon sprint. The devguide now provides results if searched for 'server side' or 'clone'. This issue is resolved. If additional search terms are required in the index, it is recommended that a new issue with specific terms be fi

[issue5438] test_bigmem.test_from_2G_generator uses more memory than expected

2015-04-14 Thread Joe Jevnik
Joe Jevnik added the comment: I am not sure yet; I don't have access to a machine that can run the test. -- ___ Python tracker ___ ___

[issue23945] webbrowser.open opens twice on Windows if BROWSER is set

2015-04-14 Thread andig2
andig2 added the comment: It boils down to Popen.wait() returning 1 if FF is already open resulting in GenericBrowser.open() returning False. That part was last touched here https://github.com/python/cpython/commit/a456db5e058f955f235fe7a51e8c111d0a8ecf4e -- _

[issue23908] Check path arguments of os functions for null character

2015-04-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I afraid not that builbots will fail, but that that test could pass without the fix. Tests should be tested without applying the fix. Writing right tests can require several iterations with running tests on patched and unpatched the os module. Here is a pat

[issue23945] webbrowser.open opens twice on Windows if BROWSER is set

2015-04-14 Thread andig2
andig2 added the comment: And finally: FF returns exit code 1 when its started and already running. That situation is not handled by the GenericBrowser Popen logic. -- ___ Python tracker __

[issue21116] Failure to create multiprocessing shared arrays larger than 50% of memory size under linux

2015-04-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Instead of the loop you can use writelines(): f.writelines([b'\0' * bs] * (size // bs)) It would be nice to add a comment that estimate why os.ftruncate() or seek+write can't be used here. At least a link to this issue with short estimation. --

[issue23946] Invalid timestamps reported by os.stat() when Windows FILETIME structures are mistakenly reset.

2015-04-14 Thread Cristi Fati
New submission from Cristi Fati: In WinPE environment (at least this is where I found it, but there might be cases where this issue could be spotted in normal Windows), some folders might have some of the FILETIME structures reset (because of RAMDrive?). When the conversion between WIN style (

[issue14117] Turtledemo: exception and minor glitches.

2015-04-14 Thread Chris Abiad
Chris Abiad added the comment: Running through each of the demos, it seems as though only 'penrose' and 'tree' have console/shell output. 'penrose' output is a list of information about the current rendering and has a format like: Calculation:0.0009 s Drawing: 0.0074 s Together: 0.0083

[issue6733] curses line wrap broken when mixing full- and half-width unicode characters

2015-04-14 Thread Chris Abiad
Chris Abiad added the comment: The original problem was described as: "the character is printed at the start of the current line rather than the start of the next line." I haven't gotten too far investigating the cause, but adding a single line to the sample code makes this test code a bit eas

[issue23883] __all__ lists are incomplete

2015-04-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 86fbe140e395 by Andrew Kuchling in branch '2.7': #23883: add names missing from __all__ (l*gettext, bind_textdomain_codeset) https://hg.python.org/cpython/rev/86fbe140e395 -- ___ Python tracker

[issue23863] Fix EINTR Socket Module issues in 2.7

2015-04-14 Thread Jeff McNeil
Jeff McNeil added the comment: I'm not a big fan of the settimeout approach myself (and only did it because it was mentioned as a possible approach). I think the existing implementations of EINTR retry also suffer from the same issue in which the timeout isn't adjusted per iteration (but that

[issue23883] __all__ lists are incomplete

2015-04-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 717d87c13f0d by Andrew Kuchling in branch '3.4': #23883: add names missing from __all__ (l*gettext, bind_textdomain_codeset) https://hg.python.org/cpython/rev/717d87c13f0d -- ___ Python tracker

[issue23917] please fall back to sequential compilation when concurrent doesn't exist

2015-04-14 Thread Claudiu Popa
Claudiu Popa added the comment: Will do, thanks. -- assignee: -> Claudiu.Popa stage: -> needs patch type: -> behavior ___ Python tracker ___ __

[issue5438] test_bigmem.test_from_2G_generator uses more memory than expected

2015-04-14 Thread Steve Dower
Steve Dower added the comment: I'll soon have Windows and Ubuntu machines with 448GB RAM each - anything special I should test here? -- ___ Python tracker ___ ___

[issue23921] Standardize documentation whitespace, formatting

2015-04-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The patch mostly LGTM. Most changes are trivial, but the patch also fixes few bugs. It is nice that the patch adds empty lines after blocks, this makes copying the code to interactive interpreter easier. I left comments on Rietveld. The most questionable cha

[issue22848] Subparser help does not respect SUPPRESS argument

2015-04-14 Thread R. David Murray
R. David Murray added the comment: I believe BJ is saying the same thing that Paul is, that SUPPRESS could omit the subparser from the list of subparsers. I haven't checked, but I believe this means that the proposed patch doesn't do anything other than what omitting the help would do, so a d

[issue3353] make built-in tokenizer available via Python C API

2015-04-14 Thread Dustin J. Mitchell
Dustin J. Mitchell added the comment: >From my read of this bug, there are two distinct tasks mentioned: 1. make PyTokenizer_* part of the Python-level API 2. re-implement 'tokenize' in terms of that Python-level API #1 is largely complete in Andrew's latest patch, but that will likely need:

[issue12652] Keep test.support docs out of the global docs index

2015-04-14 Thread Berker Peksag
Changes by Berker Peksag : -- stage: patch review -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue19121] Documentation guidelines enhancements

2015-04-14 Thread Carol Willing
Carol Willing added the comment: Thanks to all for the feedback. Since this issue covers a sufficiently broad set of thoughts, it would be better suited for a PEP. Closing this issue with the recommendation to submit a PEP if interested. -- nosy: +willingc resolution: -> not a bug sta

[issue5438] test_bigmem.test_from_2G_generator uses more memory than expected

2015-04-14 Thread Joe Jevnik
Joe Jevnik added the comment: The tests need to be run with higher memory caps, this can be set with the -M flag, like "python -m test -M 64G test_bigmem". I am under the impression that these tests don't get run all the time so we might want to run that suite. --

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

2015-04-14 Thread Kushal Das
Kushal Das added the comment: A patch without NEWS and whatsnew update. I will fill them before commit. The reset_mock function now has two parameters, return_value, and side_effect. Passing True value to any of these will reset that attribute. -- keywords: +patch Added file: http://bu

[issue19121] Documentation guidelines enhancements

2015-04-14 Thread Carol Willing
Changes by Carol Willing : -- stage: -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue16405] Explain how to set up the whitespace commit hook locally

2015-04-14 Thread Carol Willing
Changes by Carol Willing : -- assignee: -> willingc nosy: +willingc ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue23943] Misspellings in a few files

2015-04-14 Thread Piotr Kasprzyk
Piotr Kasprzyk added the comment: Thank you for accepting the patch! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue23809] RFE: emit a warning when a module in a traceback shadows a stdlib module

2015-04-14 Thread Steve Dower
Changes by Steve Dower : -- nosy: +steve.dower ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

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

2015-04-14 Thread Berker Peksag
Berker Peksag added the comment: I left a couple of comments of Rietveld. -- nosy: +berker.peksag stage: needs patch -> patch review type: behavior -> enhancement ___ Python tracker

[issue17898] gettext bug while parsing plural-forms metadata

2015-04-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset c3d269c01671 by Andrew Kuchling in branch '2.7': #17898: reset k and v so that the loop doesn't use an old value https://hg.python.org/cpython/rev/c3d269c01671 -- nosy: +python-dev ___ Python tracker

[issue22812] Documentation of unittest -p usage wrong on windows.

2015-04-14 Thread Zachary Ware
Zachary Ware added the comment: Looking deeper at this, I think the best solution is to use '"*.py"' instead of "'*.py'" without changing the code at all. Quoting on the Windows shell is somewhat of a nightmare (see my example on Rietveld), but using double quotes works on both Windows and Li

[issue17898] gettext bug while parsing plural-forms metadata

2015-04-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 54df02192bfc by Andrew Kuchling in branch '3.4': #17898: reset k and v so that the loop doesn't use an old value https://hg.python.org/cpython/rev/54df02192bfc -- ___ Python tracker

[issue20309] Not all method descriptors are callable

2015-04-14 Thread Christian Hudon
Christian Hudon added the comment: As a newbie to the CPython source code (and as someone who started working on this bug because it was on the lists of easy bugs for PyCon 2014), I don't have a strong attachment either way, as long as some kind of decision is reached, and I can check this off

[issue17898] gettext bug while parsing plural-forms metadata

2015-04-14 Thread A.M. Kuchling
Changes by A.M. Kuchling : -- assignee: -> akuchling resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue1475523] gettext breaks on plural-forms header

2015-04-14 Thread A.M. Kuchling
A.M. Kuchling added the comment: #17898 has been closed with basically the same fix as Mark's patch, so I'll close this issue. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue23947] Add mechanism to import stdlib package bypassing user packages

2015-04-14 Thread Steve Dower
New submission from Steve Dower: There are some situations where the stdlib imports modules that could be absent, notably "import readline" in site.py. This import is expected to fail in some situations, but because sys.path is fully configured it can be importing arbitrary code. To limit the

[issue23945] webbrowser.open opens twice on Windows if BROWSER is set

2015-04-14 Thread andig2
andig2 added the comment: Last but not least: this is due to using BROWSER for defining the executable path. Workaround: set BROWSER=firefox and add firefox to path. -- resolution: -> not a bug status: open -> closed ___ Python tracker

[issue20309] Not all method descriptors are callable

2015-04-14 Thread Nick Coghlan
Nick Coghlan added the comment: I agree with Raymond's recommendation - actually supporting this would mean adding code that would need to be maintained indefinitely without providing a compensating practical benefit, so I'm flagging this as "not a bug". Thanks Christian for nudging us to make

[issue23947] Add mechanism to import stdlib package bypassing user packages

2015-04-14 Thread Brett Cannon
Brett Cannon added the comment: Just so I don't forget, we also discussed introducing something like importlib.import_stdlib_module() which does what Steve mentions. That would handle aliasing in sys.modules cleanly. In the situation where the module is already in sys.modules and not the same

[issue16405] Explain how to set up the whitespace commit hook locally

2015-04-14 Thread Carol Willing
Carol Willing added the comment: Adds whitespace checking hook setup information to Minimal Configuration section of devguide [1]. Patch is ready for review. [1] https://docs.python.org/devguide/committing.html#minimal-configuration -- keywords: +patch stage: needs patch -> patch revi

[issue9741] msgfmt.py generates invalid mo because msgfmt.make() does not clear dictionary

2015-04-14 Thread A.M. Kuchling
A.M. Kuchling added the comment: Éric: do you still want to apply this patch? (I don't think any of the 'global MESSAGES' statements in msgfmt.py are necessary; none of those functions is doing 'MESSAGES = ', just calling methods or setting keys in the dictionary.) -- nosy: +akuchling

[issue23936] Wrong references to deprecated find_module instead of find_spec

2015-04-14 Thread Brett Cannon
Brett Cannon added the comment: You're right, it should be find_spec. -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list m

[issue23941] Google Login not working

2015-04-14 Thread Brett Cannon
Brett Cannon added the comment: FYI logging in using Google works for me. -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bug

[issue23078] unittest.mock patch autospec doesn't work on staticmethods

2015-04-14 Thread Kasia Jachim
Changes by Kasia Jachim : -- nosy: +lukasz.langa ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue17284] create mercurial section in devguide's committing.rst

2015-04-14 Thread Carol Willing
Carol Willing added the comment: I've reviewed this issue at the PyCon sprint. While I agree that there are sections that new contributors might wish to skip over, I believe that there is content that would benefit contributors that are not yet core developers. Going forward we can try to keep

[issue23948] Deprecate os.kill() on Windows

2015-04-14 Thread John Ehresman
New submission from John Ehresman: os.kill() on Windows cannot act like it does on non-windows platforms because of differences in the underlying platforms. I think only kill() with a signal number of 9 (terminate process unconditionally) and a signal number of 0 (test to see if process exist

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

2015-04-14 Thread Kushal Das
Kushal Das added the comment: Updated patch with the suggestions from Berker. -- Added file: http://bugs.python.org/file38989/issue21271v2.patch ___ Python tracker ___ __

[issue16501] deprecate RISCOS "support"

2015-04-14 Thread A.M. Kuchling
A.M. Kuchling added the comment: Nothing left to do for this ticket; closing. -- nosy: +akuchling resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue23888] Fixing fractional expiry time bug in cookiejar

2015-04-14 Thread Demian Brecht
Demian Brecht added the comment: Although it's likely not going to be a high frequency issue (but would be painful to track down when it does become an issue), by doing an int(float(expires)), you're losing the sub-second portion of the expiry. Why not something like this: try: expires =

[issue23888] Fixing fractional expiry time bug in cookiejar

2015-04-14 Thread Demian Brecht
Demian Brecht added the comment: Changing to "behavior" type as crash is generally used to indicate an interpreter issue. -- nosy: +orsenthil stage: -> patch review type: crash -> behavior ___ Python tracker

[issue21327] socket.type value changes after using settimeout()

2015-04-14 Thread Raúl Cumplido
Raúl Cumplido added the comment: @haypo Would you expect the new function to return a tuple? i.e: >>> socket.get_socket_type(sock) (socket.SOCK_STREAM, socket.SOCK_NONBLOCK) >>> socket.get_socket_type(sock2) (socket.SOCK_STREAM,) -- nosy: +raulcd ___

[issue2771] Test issue

2015-04-14 Thread Ezio Melotti
Ezio Melotti added the comment: ping -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/

[issue14484] missing return in win32_kill?

2015-04-14 Thread John Ehresman
John Ehresman added the comment: I've created issue #23948 for the idea of deprecating os.kill(). Is a patch needed for adding a return in the error case? It's that way in 2.7 and I'm struggling to come up with a reason why it shouldn't be added other than strict backward compatibility.

[issue5438] test_bigmem.test_from_2G_generator uses more memory than expected

2015-04-14 Thread Steve Dower
Steve Dower added the comment: It's running fine, but not really exercising the limit. I ran with -M 440G and we haven't gone past 38GB usage yet. I'll post a timeline plot when it finishes (on Windows - not sure how to collect the data but I'm also running on Ubuntu), but it looks like we may

[issue21327] socket.type value changes after using settimeout()

2015-04-14 Thread Raúl Cumplido
Raúl Cumplido added the comment: after conversation with @r.david.murray I understand that we only want to return the type, not all the flags, so the function will return just the socket.SOCK_STREAM or socket.SOCK_DGRAM ... -- ___ Python tracker

[issue21146] update gzip usage examples in docs

2015-04-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset ae1528beae67 by Andrew Kuchling in branch 'default': #21146: give a more efficient recipe in gzip docs https://hg.python.org/cpython/rev/ae1528beae67 -- nosy: +python-dev ___ Python tracker

[issue21146] update gzip usage examples in docs

2015-04-14 Thread A.M. Kuchling
Changes by A.M. Kuchling : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-

[issue21146] update gzip usage examples in docs

2015-04-14 Thread A.M. Kuchling
A.M. Kuchling added the comment: Applied to trunk. Wolfgang Maier: thanks for your patch! -- nosy: +akuchling ___ Python tracker ___

[issue23350] Content-length is incorrect when request body is a list or tuple

2015-04-14 Thread Vincent Alquier
Vincent Alquier added the comment: Martin: You're right, it's the same issue, and only related to python2's old style classes. Sorry for the useless noise. Demian: My problem is `len(obj)` raises an Using AttributeError in python2 (with obj being old style class instance). It's python 2.X spec

[issue20669] OpenBSD: socket.recvmsg tests fail with OSError: [Errno 40] Message too long

2015-04-14 Thread William Orr
William Orr added the comment: In the case of EINVAL, OpenBSD returns this if multiple cmsghdrs are attached to a message with sendmsg(2). In this case, those tests should probably be skipped. I've attached the patch that combines haypo's patch with skips referencing this issue wrt. multiple

[issue1745108] 2.5.1 curses panel segfault in new_panel on aix 5.3

2015-04-14 Thread A.M. Kuchling
A.M. Kuchling added the comment: Closing this ticket as outdated; AIX 5.3 is from 2004. -- nosy: +akuchling resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker _

[issue6006] ffi.c compile failures on AIX 5.3 with xlc

2015-04-14 Thread A.M. Kuchling
A.M. Kuchling added the comment: Closing as obsolete. -- nosy: +akuchling resolution: -> wont fix stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue23811] Python py_compile error message inconsistent and missing newline

2015-04-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1e139b3c489e by Berker Peksag in branch '3.4': Issue #23811: Add missing newline to the PyCompileError error message. https://hg.python.org/cpython/rev/1e139b3c489e New changeset d39fe1e112a3 by Berker Peksag in branch 'default': Issue #23811: Add m

[issue5438] test_bigmem.test_from_2G_generator uses more memory than expected

2015-04-14 Thread Steve Dower
Steve Dower added the comment: I'm up to test_from_2G_generator. It says the peak will be 36GB. Memory grew in chunks up to about 40GB and has been stuck there for 10 minutes. -- ___ Python tracker

[issue23811] Python py_compile error message inconsistent and missing newline

2015-04-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 22790c4f3b16 by Berker Peksag in branch '2.7': Issue #23811: Add missing newline to the PyCompileError error message. https://hg.python.org/cpython/rev/22790c4f3b16 -- ___ Python tracker

[issue8882] socketmodule.c`getsockaddrarg() should not check the length of sun_path

2015-04-14 Thread A.M. Kuchling
A.M. Kuchling added the comment: No changes seems to be necessary, per MvL's comment. -- nosy: +akuchling resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker __

[issue9014] Incorrect documentation of the PyObject_HEAD macro

2015-04-14 Thread Arnon Yaari
Arnon Yaari added the comment: PEP 3123 is the one that describes this change. I'm submitting a file with the proposed changes to the docs. -- keywords: +patch nosy: +wiggin15 Added file: http://bugs.python.org/file38991/issue9014.diff ___ Python tra

[issue3353] make built-in tokenizer available via Python C API

2015-04-14 Thread Dustin J. Mitchell
Dustin J. Mitchell added the comment: Here's an updated patch for #1: Existing Patch: - move tokenizer.h from Parser/ to Include/ - Add PyAPI_Func to export tokenizer functions New: - Removed unused, undefined PyTokenizer_RestoreEncoding - Include PyTokenizer_State with limited ABI compatib

[issue23811] Python py_compile error message inconsistent and missing newline

2015-04-14 Thread Berker Peksag
Berker Peksag added the comment: Thank you Alex. -- nosy: +berker.peksag resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker ___ __

[issue6983] Add specific get_platform() for freebsd

2015-04-14 Thread A.M. Kuchling
A.M. Kuchling added the comment: Closing this issue; judging by the comments, the fix should be pushed off to setuptools/distribute/whatever. -- nosy: +akuchling resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker

[issue23852] Wrong computation of max_fd on OpenBSD

2015-04-14 Thread William Orr
William Orr added the comment: Given that OpenBSD returns *bad* data via sysconf(3), I'm not sure that there's a good way to validate other than *only* calling getrlimit(3) on OpenBSD. Is that an acceptable approach? -- ___ Python tracker

[issue21039] pathlib strips trailing slash

2015-04-14 Thread A.M. Kuchling
A.M. Kuchling added the comment: The general mood on python-dev seemed to be that the trailing slash shouldn't be normalized. Can this still be fixed, or is it too late since pathlib was shipped in 3.4? The python-dev discussion was at https://mail.python.org/pipermail/python-dev/2014-August

[issue21148] avoid needless pointers initialization in small tuple creation

2015-04-14 Thread Gregory P. Smith
Gregory P. Smith added the comment: Running the https://hg.python.org/benchmarks suite against this change (edited to not have the warning about PyTupleObject* vs PyObject* types) I see no repeatably significant benefits and one that is consistently a few percent slower no matter how many time

[issue9859] Add tests to verify API match of modules with 2 implementations

2015-04-14 Thread Laura Rupprecht
Laura Rupprecht added the comment: Created a patch to check whether classes define the same attributes. This adds a test for RawIOBase, where Python and and C implementations are out of sync, but skips one of the tests as the issue (issue9858) is still outstanding. -- keywords: +patch

[issue21327] socket.type value changes after using settimeout()

2015-04-14 Thread Raúl Cumplido
Raúl Cumplido added the comment: While reproducing it I've seen that this has been already solved: >>> sock = socket.socket(type=socket.SOCK_STREAM) >>> sock.type >>> sock.settimeout(2) >>> sock.type But the next is still not correct: >>> sock = socket.socket(type=socket.SOCK_STREAM | socket.SO

[issue23910] C implementation of namedtuple (WIP)

2015-04-14 Thread Joe Jevnik
Joe Jevnik added the comment: I am updating the patch to include an entry in Misc/NEWS. -- Added file: http://bugs.python.org/file38994/namedtuple-indexer-with-news.patch ___ Python tracker

[issue23949] Number of elements display in error message is wrong while unpacking in traceback

2015-04-14 Thread Ulaga Nathan Mahadevan
New submission from Ulaga Nathan Mahadevan: data = ['David',50,91.1,(2012,12,21)] print ("Data = ",data) name,shares,price,date,value = data print("Name = ",name, ", no of shares = ",shares,", unit price = ",price,", date of purchase = ",date) After running the script Data = ['David', 50, 91.

[issue1648890] HP-UX: ld -Wl,+b...

2015-04-14 Thread A.M. Kuchling
A.M. Kuchling added the comment: No activity on this issue since 2007; HP-UX 11.23 was released in 2003. Closing as outdated. -- nosy: +akuchling resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue5438] test_bigmem.test_from_2G_generator uses more memory than expected

2015-04-14 Thread Joe Jevnik
Joe Jevnik added the comment: Has the test passed or is it still hung? Also, I guess this means that the tuple is over-allocating, maybe I need to revise the memory assumptions to account for the growth algorithm. -- ___ Python tracker

[issue9859] Add tests to verify API match of modules with 2 implementations

2015-04-14 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: With regret, I have not had time to work on patches and am unlikely to have time in the near future. -- ___ Python tracker ___ ___

[issue21327] socket.type value changes after using settimeout()

2015-04-14 Thread Raúl Cumplido
Raúl Cumplido added the comment: Forget my previous comment. Done with Linux and had the initial behavior again: >>> s = socket.socket() >>> s.type >>> s.settimeout(2) >>> s.type 2049 -- ___ Python tracker ___

[issue14374] Compiling Python 2.7.2 on HP11i PA-RISC ends with segmentation fault in Python executable

2015-04-14 Thread A.M. Kuchling
A.M. Kuchling added the comment: No further information from poster; please comment if you still wish to pursue this. Closing this issue as obsolete. If I'm interpreting the uname -a output correctly, this is HP-UX 11.11, released in 2000 according to http://en.wikipedia.org/wiki/HP-UX#Relea

[issue9859] Add tests to verify API match of modules with 2 implementations

2015-04-14 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- assignee: -> gregory.p.smith nosy: +gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list maili

  1   2   3   >