[issue21922] PyLong: use GMP

2014-07-07 Thread Mark Dickinson
Mark Dickinson added the comment: > IMO you must discuss the GMP license on the python-dev mailing list I think the maintenance implications of having another external dependency would also need discussion on python-dev. -- ___ Python tracker

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

2014-07-07 Thread Kushal Das
Kushal Das added the comment: To start with I am overriding count and index method. Do you think this is enough? -- ___ Python tracker ___ __

[issue21879] str.format() gives poor diagnostic on placeholder mismatch

2014-07-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: After reading Eric's comments and checking the signature of .format and rereading the Format String Syntax section, I have changed my mind. The signature of .format is "S.format(*args, **kwargs) -> str" and args is a tuple. So the user asks for creation of a t

[issue18592] Idle: test SearchDialogBase.py

2014-07-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: Ah, Debian must not be using 8.6. Thanks for both the clarification and how to fix. -- ___ Python tracker ___ _

[issue21929] Rounding properly

2014-07-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, the FAQ in the decimal docs shows how to round Decimal objects using the quantize() method: https://docs.python.org/2.7/library/decimal.html#decimal-faq Unfortunately, only it Python 3 does the one-obvious-way-to-do-it work. -- nosy: +rhettin

[issue21937] IDLE interactive window doesn't display unsaved-indicator

2014-07-07 Thread Raymond Hettinger
New submission from Raymond Hettinger: * Open a Python Shell * Save as session_log.txt * Type a line of code * Notice that the asterisk for "unsaved" does not appear -- components: IDLE messages: 222542 nosy: rhettinger priority: normal severity: normal status: open title: IDLE interacti

[issue21646] Add tests for turtle.ScrolledCanvas

2014-07-07 Thread ingrid
ingrid added the comment: Duplicate of http://bugs.python.org/issue21914 -- resolution: -> duplicate status: open -> closed ___ Python tracker ___ __

[issue21754] Add tests for turtle.TurtleScreenBase

2014-07-07 Thread ingrid
New submission from ingrid: Duplicate of http://bugs.python.org/issue21914 -- resolution: -> duplicate status: open -> closed ___ Python tracker ___

[issue21806] Add tests for turtle.TPen class

2014-07-07 Thread ingrid
New submission from ingrid: Duplicate of http://bugs.python.org/issue21916 -- resolution: -> duplicate status: open -> closed ___ Python tracker ___

[issue21803] Remove macro indirections in complexobject

2014-07-07 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue21930] new assert raises syntax proposal

2014-07-07 Thread Ezio Melotti
Ezio Melotti added the comment: See also https://mail.python.org/pipermail/python-ideas/2014-June/028206.html for a list of things to keep in mind while adding new features (especially keywords). -- ___ Python tracker

[issue21803] Remove macro indirections in complexobject

2014-07-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4609e31092b2 by Antoine Pitrou in branch 'default': Fix compilation failure (followup to #21803) http://hg.python.org/cpython/rev/4609e31092b2 -- ___ Python tracker __

[issue21803] Remove macro indirections in complexobject

2014-07-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ha, I hadn't noticed the compilation failures when rebuilding... -- ___ Python tracker ___ ___ Pytho

[issue21803] Remove macro indirections in complexobject

2014-07-07 Thread STINNER Victor
STINNER Victor added the comment: Failure on buildbot. http://buildbot.python.org/all/builders/AMD64%20Ubuntu%20LTS%203.x/builds/4599/steps/test/logs/stdio running build_ext building 'cmath' extension gcc -pthread -fPIC -Wno-unused-result -Werror=declaration-after-statement -g -O0 -Wall -Wstri

[issue21901] test_selectors.PollSelectorTestCase.test_above_fd_setsize reported killed by shell

2014-07-07 Thread STINNER Victor
STINNER Victor added the comment: ping? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue21803] Remove macro indirections in complexobject

2014-07-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, pushed. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue21803] Remove macro indirections in complexobject

2014-07-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9f75a29c9577 by Antoine Pitrou in branch 'default': Issue #21803: remove macro indirections in complexobject.h http://hg.python.org/cpython/rev/9f75a29c9577 -- nosy: +python-dev ___ Python tracker

[issue6916] Remove deprecated items from asynchat

2014-07-07 Thread STINNER Victor
STINNER Victor added the comment: asynchat.fifo is now explicitly marked as deprecated and scheduled for removal in Python 3.6. I consider that the issue is done and so I'm closing it. Reopen a more specific issue if you consider that there is still something to do. @Berker: You may apply use-

[issue11259] asynchat does not check if terminator is negative integer

2014-07-07 Thread STINNER Victor
STINNER Victor added the comment: This issue is now fixed, thanks for the report. Sorry for the delay :-( Asy Mark wrote, asynchat is now deprecated: it's time to switch to the new shiny asyncio module! -- nosy: +haypo resolution: -> fixed status: open -> closed _

[issue2466] os.path.ismount doesn't work for mounts the user doesn't have permission to see

2014-07-07 Thread Pablo Sole
Pablo Sole added the comment: I found another case where the result of ismount() is misleading. I'm using a FUSE-based filesystem controlled by a python supervisor daemon. When the fuse daemon dies and you try to access the filesystem with os.stat() it returns: OSError: [Errno 107] Transport

[issue11259] asynchat does not check if terminator is negative integer

2014-07-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset f67df13dd512 by Victor Stinner in branch '3.4': Issue #11259: asynchat.async_chat().set_terminator() now raises a ValueError if http://hg.python.org/cpython/rev/f67df13dd512 New changeset d164fda9063a by Victor Stinner in branch 'default': (Merge 3.

[issue14841] os.get_terminal_size() should check stdin as a fallback

2014-07-07 Thread Denilson Figueiredo de Sá
Denilson Figueiredo de Sá added the comment: FYI, "tput" tool can find out the dimensions even when both stdin and stdout are redirected. It can't, however, if all stdin, stdout and stderr are redirected. Python should probably implement a similar logic. $ echo | stty size stty: standard input

[issue12523] 'str' object has no attribute 'more' [/usr/lib/python3.2/asynchat.py|initiate_send|245]

2014-07-07 Thread STINNER Victor
STINNER Victor added the comment: I fixed the issue. I copied the check from asyncio, _SelectorSocketTransport.write() of asyncio.selector_events for example. -- nosy: +haypo resolution: -> fixed status: open -> closed ___ Python tracker

[issue12523] 'str' object has no attribute 'more' [/usr/lib/python3.2/asynchat.py|initiate_send|245]

2014-07-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset f8c9dd2626aa by Victor Stinner in branch '3.4': Issue #12523: asynchat.async_chat.push() now raises a TypeError if it doesn't http://hg.python.org/cpython/rev/f8c9dd2626aa New changeset 4b29d338cc41 by Victor Stinner in branch 'default': (Merge 3.4)

[issue21879] str.format() gives poor diagnostic on placeholder mismatch

2014-07-07 Thread Eric V. Smith
Eric V. Smith added the comment: I don't think we can change the exception type in a bugfix release, if ever. I don't see much point in changing the exception type: it's just churn. I'm +1 for a better error message. I'm -0 on changing the error message in a bugfix release. -- __

[issue21936] test_future_exception_never_retrieved() of test_asyncio fails on AMD64 Debian root 3.x

2014-07-07 Thread STINNER Victor
STINNER Victor added the comment: > The issue #21163 has a pending patch which is waiting for a review ;-) Oops, wrong: I already commited the part of the patch which was correct, but wait() and gather() have no updated patch yet. -- ___ Python trac

[issue21936] test_future_exception_never_retrieved() of test_asyncio fails on AMD64 Debian root 3.x

2014-07-07 Thread STINNER Victor
STINNER Victor added the comment: Oh, this failure is probably a side effect of new logs emited by test_asyncio because of #21163. The issue #21163 has a pending patch which is waiting for a review ;-) -- ___ Python tracker

[issue21936] test_future_exception_never_retrieved() of test_asyncio fails on AMD64 Debian root 3.x

2014-07-07 Thread STINNER Victor
New submission from STINNER Victor: http://buildbot.python.org/all/builders/AMD64%20Debian%20root%203.x/builds/915/steps/test/logs/stdio == FAIL: test_future_exception_never_retrieved (test.test_asyncio.test_futures.FutureTests

[issue15133] tkinter.BooleanVar.get() behavior and docstring disagree

2014-07-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I have no strong opinion. Definitely getboolean() (and other getXXX) is not consistent. The question is what should getboolean (and BooleanVar.get) always return, bool or int? Note that since 8.6 Tcl doesn't use special boolean type internally and use intege

[issue21925] ResouceWarning sometimes doesn't display

2014-07-07 Thread STINNER Victor
STINNER Victor added the comment: I don't know if it's the best trick, but here is a patch to unload the __main__ module first in PyImport_Cleanup(). -- keywords: +patch Added file: http://bugs.python.org/file35896/unload_main_first.patch ___ Python

[issue21925] ResouceWarning sometimes doesn't display

2014-07-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 047da19efdab by Victor Stinner in branch '3.4': Issue #21925: PyImport_Cleanup(): Remove unused parameter in http://hg.python.org/cpython/rev/047da19efdab New changeset b255ecb175c4 by Victor Stinner in branch 'default': (Merge 3.4) Issue #21925: Py

[issue21925] ResouceWarning sometimes doesn't display

2014-07-07 Thread STINNER Victor
STINNER Victor added the comment: The problem is tricky. The modules are deleted in a random order at exit. The problem is that showing the warning requires to import the linecache module. But during Python finalization, we may or may not be able to import modules. Py_Finalize() calls PyImpor

[issue21935] Implement AUTH command in smtpd.

2014-07-07 Thread Milan Oberkirch
New submission from Milan Oberkirch: I implemented message processing for LOGIN and PLAIN authentication in smtpd. I also patched test_smtplib to make use of this functionality. The goal for the API is to provide decryption and message processing in the smtpd library and call a externally prov

[issue20858] Enhancements/fixes to pure-python datetime module

2014-07-07 Thread Brian Kearns
Brian Kearns added the comment: Updated patch, now it also caches the result of __hash__ like the C accelerator. -- Added file: http://bugs.python.org/file35894/datetime-py35.patch ___ Python tracker __

[issue21879] str.format() gives poor diagnostic on placeholder mismatch

2014-07-07 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe added the comment: @terry would a change like this be accepted in 2.7 and 3.4? -- ___ Python tracker ___ ___ Pyth

[issue21879] str.format() gives poor diagnostic on placeholder mismatch

2014-07-07 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- nosy: +tshepang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue18592] Idle: test SearchDialogBase.py

2014-07-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I pushed a patch which fixed Text.debug(). This is not related to this issue. grid_info() values are depend on Tcl/Tk version. When < 8.6 strings are always returned (except the 'in' key which is special case), when >= 8.6 values can be integers or even tupl

[issue21781] make _ssl module 64-bit clean

2014-07-07 Thread Zachary Ware
Zachary Ware added the comment: Looks good now, thanks for the quick fix, Victor! -- resolution: -> fixed stage: -> resolved status: open -> closed type: -> behavior versions: +Python 3.4 ___ Python tracker

[issue10583] Encoding issue with chm help in 2.7.1

2014-07-07 Thread Zachary Ware
Zachary Ware added the comment: I do in 2.7.8, though. This appears to have been a Sphinx issue (likely caused by HTML Help's lack of Unicode support), introduced sometime between Sphinx versions 0.6.5 and 0.6.7, and fixed sometime between versions 1.1.3 and 1.2.2. -- nosy: +zach.ware

[issue21907] Update Windows build batch scripts

2014-07-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset f0a5be139717 by Zachary Ware in branch 'default': Issue #21907: Exit with the correct return code http://hg.python.org/cpython/rev/f0a5be139717 -- ___ Python tracker _

[issue17652] Add skip_on_windows decorator to test.support

2014-07-07 Thread STINNER Victor
STINNER Victor added the comment: """It might be interesting to see a patch that converts current "@skipIf(sys.platform == 'win32' or os.name == 'nt')" instances to "@skip_on_windows" to see just what kind of difference it makes, but I'm honestly more interested in seeing how many different wa

[issue21922] PyLong: use GMP

2014-07-07 Thread STINNER Victor
STINNER Victor added the comment: IMO you must discuss the GMP license on the python-dev mailing list since we wrote that if the GMP patch is accepted, it will not be optional and so affect all platforms. -- ___ Python tracker

[issue21922] PyLong: use GMP

2014-07-07 Thread Hristo Venev
Hristo Venev added the comment: After optimization, tests on small ints (< 2**30) Currently only addition, subtraction, negation and ~ are a bit slower (< 5%). Most other operations are the same. Bitwise operators, //, %, ** and pow are faster. Converting to and from strings is a bit faster.

[issue21781] make _ssl module 64-bit clean

2014-07-07 Thread STINNER Victor
STINNER Victor added the comment: > This appears to have broken 64-bit Windows Correct, I missed a call to Py_BuildValue() which uses the s# format. It's now fixed. Thanks for the report! I keep the issue open until the buildbot turns green again. -- _

[issue21781] make _ssl module 64-bit clean

2014-07-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 34a0d98c51ea by Victor Stinner in branch '3.4': Issue #21781, _ssl: Fix asn1obj2py() on Windows 64-bit, "s#" format requires http://hg.python.org/cpython/rev/34a0d98c51ea New changeset 1dca2e7ad5ad by Victor Stinner in branch 'default': (Merge 3.4)

[issue17846] Building Python on Windows - Supplementary info

2014-07-07 Thread Zachary Ware
Zachary Ware added the comment: Issue #21907 changed how things are done somewhat, and has made PCbuild/build.bat the new obvious place to go for building Python from the command line; the devguide has been updated to reflect that (although I may have missed a place to update). What else stil

[issue17846] Building Python on Windows - Supplementary info

2014-07-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 369891476cf8 by Zachary Ware in branch 'default': Issue #17846: Add a note about solution folders with VS Express. http://hg.python.org/devguide/rev/369891476cf8 -- ___ Python tracker

[issue17846] Building Python on Windows - Supplementary info

2014-07-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset bb3f1afcd082 by Zachary Ware in branch '3.4': Issue #17846: Clarify note about Solution Folders. http://hg.python.org/cpython/rev/bb3f1afcd082 New changeset 39f9cd7ad19a by Zachary Ware in branch 'default': Issue #17846: Merge with 3.4 http://hg.pyt

[issue16040] nntplib: unlimited readline() from connection

2014-07-07 Thread Francis MB
Francis MB added the comment: Just a small detail on the patches, they seem to have a typo (lenght vs. length) on the line: >> reading arbitrary lenght lines. RFC 3977 limits NNTP line length to -- nosy: +francismb ___ Python tracker

[issue10583] Encoding issue with chm help in 2.7.1

2014-07-07 Thread Mark Lawrence
Mark Lawrence added the comment: I don't see this in 3.4.1. -- nosy: +BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing

[issue9822] windows batch files are dependent on cmd current directory

2014-07-07 Thread Zachary Ware
Zachary Ware added the comment: Fixed by #21907. -- assignee: -> zach.ware resolution: -> fixed stage: -> resolved status: open -> closed superseder: -> Update Windows build batch scripts versions: +Python 3.5 -Python 3.4 ___ Python tracker

[issue9973] Sometimes buildbot fails to cleanup working copy

2014-07-07 Thread Zachary Ware
Zachary Ware added the comment: This should be fixed by #21907 for 3.5, at least; other versions can either have #21907 backported (in whole or in part), or continue to live with it (like they have for the past 4 years). -- assignee: -> zach.ware resolution: -> fixed stage: -> resol

[issue21907] Update Windows build batch scripts

2014-07-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset ed3fa77804f8 by Zachary Ware in branch 'default': Issue #21907: Update the instructions for building on Windows http://hg.python.org/devguide/rev/ed3fa77804f8 -- ___ Python tracker

[issue21907] Update Windows build batch scripts

2014-07-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset c3022e2606df by Zachary Ware in branch 'default': Issue #21907: Improved the batch scripts provided for building Python. http://hg.python.org/cpython/rev/c3022e2606df -- nosy: +python-dev ___ Python track

[issue21707] modulefinder uses wrong CodeType signature in .replace_paths_in_code()

2014-07-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset f8deaac44ed4 by Berker Peksag in branch '3.4': Issue #21707: Fix tests on Windows. http://hg.python.org/cpython/rev/f8deaac44ed4 New changeset e66c387da81b by Berker Peksag in branch 'default': Issue #21707: Merge with 3.4. http://hg.python.org/cpyt

[issue20328] mailbox: add method to delete mailbox

2014-07-07 Thread Jonathan Dowland
Jonathan Dowland added the comment: another test -- Added file: http://bugs.python.org/file35893/0003-test-for-deletion-of-sub-folders.patch ___ Python tracker ___ _

[issue20328] mailbox: add method to delete mailbox

2014-07-07 Thread Jonathan Dowland
Jonathan Dowland added the comment: patch adding tests -- Added file: http://bugs.python.org/file35892/0002-add-tests-for-deleting-Maildir-and-singleFileMailbox.patch ___ Python tracker ___

[issue20328] mailbox: add method to delete mailbox

2014-07-07 Thread Jonathan Dowland
Jonathan Dowland added the comment: Hi, sorry for the long silence on this issue. I've had a few things going on. Anyway, I didn't want to forget all about this; I've been working on it in two phases. Phase 1 adds delete methods; Phase 2 handles non-existent mailboxes. Please find attached my

[issue21597] Allow turtledemo code pane to get wider.

2014-07-07 Thread Lita Cho
Lita Cho added the comment: I personally like the FLAT look because it matches with the rest of the GUI. -- ___ Python tracker ___ ___

[issue21597] Allow turtledemo code pane to get wider.

2014-07-07 Thread Lita Cho
Lita Cho added the comment: Hi Terry, So the shadow can easily be removed. I just went with the default sashrelief style. I am going to attach two patches with different sashrelief styles, both of which don't have the shadow. -- Added file: http://bugs.python.org/file35889/turtledemo_

[issue21597] Allow turtledemo code pane to get wider.

2014-07-07 Thread Lita Cho
Changes by Lita Cho : Added file: http://bugs.python.org/file35890/turtledemo_pane_scroll_SOLID.patch ___ Python tracker ___ ___ Python-bugs-l

[issue21866] zipfile.ZipFile.close() doesn't respect allowZip64

2014-07-07 Thread Benjamin Gilbert
Benjamin Gilbert added the comment: Here are the cases where close() will generate a ZIP64 archive and an exception will never be raised: 1. There are more than 65535 files in the archive. 2. The start of the central directory is at > 2 GB. 3. The central directory size is > 2 GB. #1 could b

[issue18592] Idle: test SearchDialogBase.py

2014-07-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: What micro tk version? as in >>> t = tk.Tk() >>> t.tk.call('info', 'patchlevel') '8.5.15' -- ___ Python tracker ___ ___

[issue10289] Document magic methods called by built-in functions

2014-07-07 Thread Mark Lawrence
Mark Lawrence added the comment: Could #15436 "__sizeof__ is not documented" also be covered by this? -- nosy: +BreamoreBoy ___ Python tracker ___ ___

[issue18592] Idle: test SearchDialogBase.py

2014-07-07 Thread Saimadhav Heblikar
Saimadhav Heblikar added the comment: >The interesting question is why the Debian 3.4 system is different? That is what caused me to notice the issue. I ran the IDLE test suite on my pc(debian 7) and it failed, while most buildbots were "green". >Why is it acting like 2.7? Serhiy, do you have

[issue18592] Idle: test SearchDialogBase.py

2014-07-07 Thread Saimadhav Heblikar
Changes by Saimadhav Heblikar : Removed file: http://bugs.python.org/file35883/issue18592-fix.diff ___ Python tracker ___ ___ Python-bugs-list

[issue10289] Document magic methods called by built-in functions

2014-07-07 Thread Mark Dickinson
Mark Dickinson added the comment: Should the Python 2.7 delegation of `round` to `__float__` for its input also be described as part of this issue? >>> class A(object): ... def __float__(self): return 1729.1 ... >>> round(A()) 1729.0 -- nosy: +mark.dickinson _

[issue18592] Idle: test SearchDialogBase.py

2014-07-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: Serhiy: we are having a problem with tkinter sometimes reporting boolean vars as '0' and '1' versus 0 and 1. As I remember, you pushed a patch about this in the last year, probably before 3.4 came out, but after last August. Am I correct? If so, do you rememb

[issue21888] plistlib.FMT_BINARY behavior doesn't send required dict parameter

2014-07-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch. -- stage: test needed -> patch review Added file: http://bugs.python.org/file35888/plistlib_explicit_fmt.path ___ Python tracker

[issue15133] tkinter.BooleanVar.get() behavior and docstring disagree

2014-07-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: Serhiy, what do you think is the proper disposition of this issue *now*? -- nosy: +serhiy.storchaka versions: -Python 3.2, Python 3.3 ___ Python tracker __

[issue2771] Test issue

2014-07-07 Thread Ezio Melotti
Ezio Melotti added the comment: test -- resolution: later -> not a bug Added file: http://bugs.python.org/file35887/issue18958-2.diff ___ Python tracker ___ __

[issue13922] argparse handling multiple "--" in args improperly

2014-07-07 Thread paul j3
paul j3 added the comment: http://bugs.python.org/issue9571 proposes a refinement to this patch - drop the '--' from PARSER and REMAINDER nargs if it is the 1st string. -- ___ Python tracker __

[issue10289] Document magic methods called by built-in functions

2014-07-07 Thread Andy Maier
Andy Maier added the comment: I reviewed the description of the built-in functions in Python 2.7, and found these issues: 1. The following built-in functions do not mention their underyling __special__ functions: - cmp() - delattr(), getattr(), hasattr(), setattr() - complex(), int(), long(),

[issue9571] argparse: Allow the use of -- to break out of nargs and into subparser

2014-07-07 Thread paul j3
paul j3 added the comment: This patch modifies that '--' handling from 13922, removing '--' from PARSER and REMAINDER if it is the first string: if action.nargs not in [PARSER, REMAINDER]: try: arg_strings.remove('--') except ValueError:

[issue9267] Update pickle opcode documentation in pickletools for 3.x

2014-07-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> docs@python nosy: +docs@python -serhiy.storchaka versions: +Python 3.4, Python 3.5 -Python 3.2 ___ Python tracker ___ __

[issue10289] Document magic methods called by built-in functions

2014-07-07 Thread Andy Maier
Andy Maier added the comment: Comments on the patch py34_v2: 1. On complex(): It delegates to object.__complex__(); that should also be described. 2. On hex(): The use of "__index__()" is text and should be changed to a hyperlink. Andy -- ___ Pyt

[issue21866] zipfile.ZipFile.close() doesn't respect allowZip64

2014-07-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: An offset is checked in write() and writestr() methods and an exception is raised if an offset is >= 2 GiB and ZIP64 extension is not allowed. I don't see a possibility for a bug. -- status: open -> pending ___ Py

[issue21781] make _ssl module 64-bit clean

2014-07-07 Thread Zachary Ware
Zachary Ware added the comment: This appears to have broken 64-bit Windows: http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%203.x/builds/4745 -- nosy: +zach.ware resolution: fixed -> status: closed -> open ___ Python tracker

[issue12808] Coverage of codecs.py

2014-07-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue20420. -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailin

[issue20420] BufferedIncrementalEncoder violates IncrementalEncoder interface

2014-07-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: IncrementalNewlineDecoder requires that decoder state is integer (C implementation requires at most 63-bit unsigned integer). TextIOWrapper requires that decoder state is at most 64-bit unsigned integer (only 63-bit if universal newlines is enabled). --

[issue21518] Expose RegUnloadKey in winreg

2014-07-07 Thread Claudiu Popa
Claudiu Popa added the comment: Sure, that sounds good. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue21518] Expose RegUnloadKey in winreg

2014-07-07 Thread Zachary Ware
Zachary Ware added the comment: I'd like to see the windows_helper.py part of the patch split into its own issue, and someone more qualified than I to review it (though I'll learn what I can and give it a shot if nobody else can). The new issue should also try to use the new windows_helper ut

[issue21680] asyncio: document event loops

2014-07-07 Thread STINNER Victor
STINNER Victor added the comment: Oh, it looks like the proactor event loop doesn't support datagram protocol. -- ___ Python tracker ___ _

[issue21907] Update Windows build batch scripts

2014-07-07 Thread Zachary Ware
Zachary Ware added the comment: With a vote and a half in favor, I'll go ahead with this probably later today. There is one change needed to the `clean` script; the `hg purge` call should ignore Lib/test/data to avoid downloading the codecmaps test files every time. I may backport to 3.4 and

[issue21934] OpenBSD has no /dev/full device

2014-07-07 Thread STINNER Victor
STINNER Victor added the comment: I would prefer a decorator checking if a device exists, something like: @requires_character_device('/dev/full') It would always skip on Windows. Implement it in test_support.py. -- nosy: +haypo ___ Python tracker <

[issue21934] OpenBSD has no /dev/full device

2014-07-07 Thread Daniel Dickman
Changes by Daniel Dickman : -- keywords: +patch Added file: http://bugs.python.org/file35885/python.dev.full.diff ___ Python tracker ___ _

[issue21934] OpenBSD has no /dev/full device

2014-07-07 Thread Daniel Dickman
New submission from Daniel Dickman: There is no /dev/full device on OpenBSD. If you run the 2.7 regress tests as root on OpenBSD, a /dev/full regular file will be created and the "test_write_full" test will fail. (because the subsequent write will succeed in writing to the /dev/full regular fi

[issue21933] Allow the user to change font sizes with the text pane of turtledemo

2014-07-07 Thread Lita Cho
New submission from Lita Cho: Currently, the turtledemo doesn't allow you to change font sizes of the demo code, and the default font size is really small. I can work on creating a patch to fix this. Best option be to have control-mousewheel change size, as is standard in browsers, as well as

[issue21932] os.read() must use Py_ssize_t for the size parameter

2014-07-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Patch LGTM. Here is a test for it. -- Added file: http://bugs.python.org/file35884/test_posix_read_py_ssize_t.patch ___ Python tracker ___ ___

[issue18592] Idle: test SearchDialogBase.py

2014-07-07 Thread Saimadhav Heblikar
Saimadhav Heblikar added the comment: Hi, test_make_entry seems to be failing (for eg: http://buildbot.python.org/all/builders/AMD64%20Debian%20root%203.4/builds/306/steps/test/logs/stdio and http://buildbot.python.org/all/builders/AMD64%20Debian%20root%203.x/builds/911/steps/test/logs/stdio)

[issue21930] new assert raises syntax proposal

2014-07-07 Thread Pavel Tyslyatsky
Pavel Tyslyatsky added the comment: Thanks for reply, I really missed many cases. I will try look deeper. -- ___ Python tracker ___ __

[issue21932] os.read() must use Py_ssize_t for the size parameter

2014-07-07 Thread STINNER Victor
New submission from STINNER Victor: os.read() currently uses the int type for the size parameter, whereas the C function uses a C size_t parameter: ssize_t read(int fd, void *buf, size_t count); The Python function must use the Py_ssize_t type, but truncate to INT_MAX on Windows, as do

[issue9861] subprocess module changed exposed attributes

2014-07-07 Thread Piotr Dobrogost
Piotr Dobrogost added the comment: The statement in comment http://bugs.python.org/issue9861#msg133051 seems to be wrong as changes between versions 2.5 and 2.6 are not security only fixes. Changing visibility of module's public attributes should at least be documented thus closing this bug wit

[issue21930] new assert raises syntax proposal

2014-07-07 Thread Ezio Melotti
Ezio Melotti added the comment: Agreed, but there are a few problems with the proposals: 1) it requires the addition of a new keyword (raises), and that will break any program that uses it as an identifier; 2) the use case is arguably limited; 3) assertRaises is consistent with the other assert*

[issue21930] new assert raises syntax proposal

2014-07-07 Thread Brett Cannon
Brett Cannon added the comment: The best way to get language changes made is to first propose them on the python-ideas mailing list (https://docs.python.org/devguide/faq.html#suggesting-changes). -- nosy: +brett.cannon ___ Python tracker

[issue21931] Nonsense errors reported by msilib.FCICreate for bad argument

2014-07-07 Thread Jeffrey Armstrong
New submission from Jeffrey Armstrong: The function fcicreate in PC/_msi.c can return nonsense if the list of files passed to msilib.FCICreate does not contains tuples as expected. To replicate, import msilib msilib.FCICreate("test.cab", ["entry.txt"]) The above code will return a ValueError

[issue21765] Idle: make 3.x HyperParser work with non-ascii identifiers.

2014-07-07 Thread Tal Einat
Tal Einat added the comment: @Martin: > 1. This issue is only about identifiers. So processing of > string literals is technically out of scope. I added a test with a non-ASCII string literal only for good measure, while I was already adding a test with a non-ASCII identifier. The patch doesn'

[issue21881] python cannot parse tcl value

2014-07-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: On some platforms NaN representation has a minus before "nan" (see http://buildbot.python.org/all/builders/x86%20OpenIndiana%202.7/builds/2384/steps/test/logs/stdio). So it is easier just omit tests for these platform-specific values. Regardless of the fact

[issue21881] python cannot parse tcl value

2014-07-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 01ec8bb7187f by Serhiy Storchaka in branch '2.7': Issue #21881: Just omit tests for platform-specific NaN representation in test_tcl. http://hg.python.org/cpython/rev/01ec8bb7187f New changeset 5ac811cbec87 by Serhiy Storchaka in branch '3.4': Issu

[issue21765] Idle: make 3.x HyperParser work with non-ascii identifiers.

2014-07-07 Thread Martin v . Löwis
Martin v. Löwis added the comment: Two observations: 1. This issue is only about identifiers. So processing of string literals is technically out of scope. 2. I'd suggest to replace .translate with regular expressions: py> re.sub('[^(){}\[\]]','','foo(b[a]{r}≠)') '([]{})' I'm sure people inter

  1   2   >