[issue16443] Add docstrings to regular expression match objects

2012-12-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: `MatchObject` term is not defined anywhere in the documentation. It will be better to use `match object` instead. -- nosy: +serhiy.storchaka ___ Python tracker _

[issue6538] MatchObject is not a hyperlink in the 're' module documentation

2012-12-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I have opened a new issue16760 for regex HOWTO. -- nosy: +serhiy.storchaka ___ Python tracker ___ _

[issue16760] Get rid of MatchObject in regex HOWTO

2012-12-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +akuchling ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue16760] Get rid of MatchObject in regex HOWTO

2012-12-24 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: MatchObject is not defined anywhere and is not used except HOWTO (see issue6538). -- assignee: docs@python components: Documentation, Regular Expressions messages: 178036 nosy: asvetlov, docs@python, ezio.melotti, mrabarnett, pitrou, serhiy.storchak

[issue16751] Using modern unittest asserts in the documentation

2012-12-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: Sorry, I'm going to reject this one. FWIW, I'm working on revising the example anyway (to not use the random module and instead test something more straight-forward). -- resolution: -> rejected status: open -> closed __

[issue16751] Using modern unittest asserts in the documentation

2012-12-24 Thread Ezio Melotti
Ezio Melotti added the comment: Raymond, the changes in the "mock" documentation look good to me, and I think they can be applied. Regarding the basic example in the "unittest" doc, I think the patch attached to #11468 (or something similar) should be applied instead. That patch uses straigh

[issue11468] Improve unittest basic example in the doc

2012-12-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think `self.assertRaises(TypeError, s.split, 2)` looks simpler. In any case two examples for assertRaises needed, simple inlined and more complicated use as context manager. -- nosy: +serhiy.storchaka ___ Python

[issue11468] Improve unittest basic example in the doc

2012-12-24 Thread Ezio Melotti
Ezio Melotti added the comment: Given that this is a basic example, it's not necessary to introduce both the forms of assertRaises. I personally find the context manager form more readable, and I prefer it to the regular one even if it takes two lines instead of one. -- __

[issue13555] cPickle MemoryError when loading large file (while pickle works)

2012-12-24 Thread Charles-François Natali
Charles-François Natali added the comment: Could someone with a 64-bit box take over this one? I won't go anywhere with my 32-bit box... -- ___ Python tracker ___ ___

[issue15523] Block on close TCP socket in SocketServer.py

2012-12-24 Thread Charles-François Natali
Changes by Charles-François Natali : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue879399] socket line buffering

2012-12-24 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- assignee: -> kristjan.jonsson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16761] Fix int(base=X)

2012-12-24 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Currently int() ignores base keyword argument if first string argument omitted. Such usage is no other than bug. The proposed patch raises TypeError in such case. See also discussion at Python-Dev: http://comments.gmane.org/gmane.comp.python.cvs/92290 .

[issue16761] Fix int(base=X)

2012-12-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +asvetlov, chris.jerdonek, terry.reedy Added file: http://bugs.python.org/file28415/int_without_x-3.2.patch ___ Python tracker ___

[issue16761] Fix int(base=X)

2012-12-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In additional some int creation tests backported to old Python versions. -- Added file: http://bugs.python.org/file28416/int_without_x-2.7.patch ___ Python tracker __

[issue16762] test_subprocess failure on OpenBSD/NetBSD buildbots

2012-12-24 Thread Charles-François Natali
New submission from Charles-François Natali: test_subprocess fails on OpenBSD/NetBSD buildbots: http://buildbot.python.org/all/builders/AMD64 NetBSD 5.1.2 [SB] 2.7/builds/158/steps/test/logs/stdio """ == ERROR: test_kill_dead (

[issue16761] Fix int(base=X)

2012-12-24 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue16762] test_subprocess failure on OpenBSD/NetBSD buildbots

2012-12-24 Thread Charles-François Natali
Changes by Charles-François Natali : Added file: http://bugs.python.org/file28417/kill_esrch.diff ___ Python tracker ___ ___ Python-bugs-list

[issue13582] IDLE and pythonw.exe stderr problem

2012-12-24 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue16511] IDLE configuration file: blank height and width fields trip up IDLE

2012-12-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset ffe091ebd5de by Andrew Svetlov in branch '3.2': Issue #16511: Use default IDLE width and height if config param is not valid. http://hg.python.org/cpython/rev/ffe091ebd5de New changeset 10656b0975b3 by Andrew Svetlov in branch '3.3': Issue #16511: U

[issue16511] IDLE configuration file: blank height and width fields trip up IDLE

2012-12-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 133f87a7dbf5 by Andrew Svetlov in branch '2.7': Issue #16511: Use default IDLE width and height if config param is not valid. http://hg.python.org/cpython/rev/133f87a7dbf5 -- ___ Python tracker

[issue16511] IDLE configuration file: blank height and width fields trip up IDLE

2012-12-24 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed. Trung, I think installation procedure is not subject of this issue. If needed please create new one. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracke

[issue16511] IDLE configuration file: blank height and width fields trip up IDLE

2012-12-24 Thread Trung Doan
Trung Doan added the comment: I think I will leave it at that, because in the general case probably some things should be re-initialised during a new/re-install while others should be left as is, but as a beginner I am far from knowing which ones are which. Trung == On Mon, Dec 24,

[issue16511] IDLE configuration file: blank height and width fields trip up IDLE

2012-12-24 Thread Andrew Svetlov
Andrew Svetlov added the comment: Ok. Agree with you. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue16763] test_ssl with connect_ex don't handle unreachable server correctly

2012-12-24 Thread Charles-François Natali
New submission from Charles-François Natali: test_ssl tests calling connect_ex don't handle unreachable servers properly: """ test_ssl Resource 'svn.python.org' is not available Resource 'svn.python.org' is not available test test_ssl failed -- Traceback (most recent call last): File "/srv/buil

[issue15302] Use argparse instead of getopt in test.regrtest

2012-12-24 Thread Andrew Svetlov
Andrew Svetlov added the comment: Well. Do you like to apply Chris patch and wait for next step appear? On Mon, Dec 24, 2012 at 2:33 AM, R. David Murray wrote: > > R. David Murray added the comment: > > I am -1 on doing this as one big refactoring, unless tests are written for > regrtest first

[issue16764] Make zlib accept keyword-arguments

2012-12-24 Thread Lukas Lueg
New submission from Lukas Lueg: The patch "zlib_keywords.patch" makes zlib's classes and functions accept keyword arguments as documented. It also fixes two cases in which the docstring differ from the documentation (decompress(data) vs. decompress(string) and compressobj(memlevel) vs. compres

[issue16764] Make zlib accept keyword-arguments

2012-12-24 Thread Lukas Lueg
Lukas Lueg added the comment: Attaching a patch to fix all pep8/pyflakes warnings and errors in test_zlib.py -- Added file: http://bugs.python.org/file28419/zlib_tests_pep8.patch ___ Python tracker

[issue16765] Superfluous import in cgi module

2012-12-24 Thread Michiel Holtkamp
New submission from Michiel Holtkamp: The standard module cgi.py from Python 2.x imports urllib, but urllib is not used. This causes a little bit of extra memory usage and a small increase in load time. It's not much, but it was enough for me to notice when I was profiling my program. I think

[issue16764] Make zlib accept keyword-arguments

2012-12-24 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue16765] Superfluous import in cgi module

2012-12-24 Thread Ezio Melotti
Ezio Melotti added the comment: Python 2.6/3.1 only get security fixes, and 2.7/3.2/3.3 only get bug fixes. This is technically a performance issue, so I'm not sure it can go in 2.7, but if the change is as simple as it seems it could be considered. -- keywords: +easy nosy: +ezio.melott

[issue16765] Superfluous import in cgi module

2012-12-24 Thread Michiel Holtkamp
Michiel Holtkamp added the comment: Fair enough, I think I'm using 2.7 only. I wasn't sure about the patch format, so I added a unified diff. If you require a different format, please let me know. -- keywords: +patch Added file: http://bugs.python.org/file28420/patch-python2.7-cgi.py.d

[issue16764] Make zlib accept keyword-arguments

2012-12-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I don't think it worth to add support of keyword for the first mandatory argument. This can freeze the poor and inconsistent () names. For example compress()/decompress() methods of bz2 and lzma objects doesn't support keyword arguments. And why you use "str

[issue16764] Make zlib accept keyword-arguments

2012-12-24 Thread Lukas Lueg
Lukas Lueg added the comment: Nothing of what you mention is a problem of this patch. The memLevel-keyword was not supported as of now, only the docstring ("memLevel") and the documentation ("memlevel") mentioned it. There is no third-party code that could have used it. The current docstring

[issue16766] small disadvantage of htmlentitydefs

2012-12-24 Thread Al Korgun
New submission from Al Korgun: >>> import htmlentitydefs >>> htmlentitydefs.name2codepoint.get("quot") # ok 34 >>> htmlentitydefs.name2codepoint.get("apos", "null") # ' -> chr(39) 'null' -- components: Library (Lib) messages: 178060 nosy: WitcherGeralt priority: normal severity: normal

[issue16766] small disadvantage of htmlentitydefs

2012-12-24 Thread Al Korgun
Changes by Al Korgun : -- versions: +Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue16767] Cannot install Python 2.7 in Wine 1.4.1

2012-12-24 Thread Joe Borg
New submission from Joe Borg: Trying to install Python 2.7 (in particular) under Wine 1.4.1, but keep getting the "Installer has ended prematurely" error. I've also tried with 2.6 and 3.2 and different versions of wine; same error. Also tried with winetricks; again, same error. I've used th

[issue15302] Use argparse instead of getopt in test.regrtest

2012-12-24 Thread Chris Jerdonek
Chris Jerdonek added the comment: > Do you like to apply Chris patch and wait for next step appear? Just to clarify, I think this should read "apply Chris patch after updating/reviewing." A couple file renames are needed, and I noticed a typo in a docstring. Other changes may be needed since

[issue16764] Make zlib accept keyword-arguments

2012-12-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Sorry, I missed, not decompress(), but compress(). Except this small error all of what I said *is* a problem of this patch. -- components: +Extension Modules -Library (Lib) type: -> enhancement ___ Python tracker

[issue16766] small disadvantage of htmlentitydefs

2012-12-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +ezio.melotti versions: +Python 3.2, Python 3.3, Python 3.4 -Python 2.6 ___ Python tracker ___

[issue15302] Use argparse instead of getopt in test.regrtest

2012-12-24 Thread R. David Murray
R. David Murray added the comment: Yes, I apologize for not getting around to a review previously. Chris: why regrlib.py at all? Why isn't the code in regrtest.py? And I'm not clear on why there is a desire to have regrtest be a package. Did I miss that discussion? --

[issue16768] CTRL-Y, yank, behaves as CTRL-Z with curses on OS X

2012-12-24 Thread Ziga
New submission from Ziga: `getch()` interprets CTRL-Y as CTRL-Z on OS X 10.7.3. Tested with python 2.5, 2.6, 2.7 32-bit and 64-bit. How to recreate behavior: >>> import curses >>> stdscr = curses.initscr() # CTRL-Y works as expected until now. >>> stdscr.getch() # press $ [1] + 407 suspended

[issue16757] Faster _PyUnicode_FindMaxChar()

2012-12-24 Thread STINNER Victor
STINNER Victor added the comment: See issues #14687 and #14716 for benchmarks and information about the changes introducing and using _PyUnicodeWriter for str%args and str.format(args). -- ___ Python tracker _

[issue16757] Faster _PyUnicode_FindMaxChar()

2012-12-24 Thread STINNER Victor
STINNER Victor added the comment: Avoid scanning a substring to compute the maximum character is a good thing, so +1 for the idea. Instead of modifying an existing function, it might be safer to rename it. Even if it is private, a third party module *can* use it outside Python. It is also surp

[issue16767] Cannot install Python 2.7 in Wine 1.4.1

2012-12-24 Thread R. David Murray
R. David Murray added the comment: Thanks for the report, however WINE is not an environment we support. A quick google indicates people have occasionally succeeded in getting it to install and run (for some definition of run), but it sounds like you've read about those. If you want to work

[issue16637] py-bt, py-locals, etc. GDB commands fail with output-radix 16

2012-12-24 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue16768] CTRL-Y, yank, behaves as CTRL-Z with curses on OS X

2012-12-24 Thread Ziga
Ziga added the comment: Same behavior with: >>> import sys >>> sys.stdin.read(1) # press [1] + 1024 suspended python -- ___ Python tracker ___ ___

[issue16672] improve tracing performances when f_trace is NULL

2012-12-24 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue15302] Use argparse instead of getopt in test.regrtest

2012-12-24 Thread Chris Jerdonek
Chris Jerdonek added the comment: > why regrlib.py at all? Why isn't the code in regrtest.py? It was for a few related reasons. It was primarily to make it easier to reason about testing regrtest, and to avoid at the outset any pitfalls that might arise from the circularity of regrtest testi

[issue812369] module shutdown procedure based on GC

2012-12-24 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue13863] import.c sometimes generates incorrect timestamps on Windows + NTFS

2012-12-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 002d5f3b240d by Mark Dickinson in branch '2.7': Issue #13863: fix incorrect .pyc timestamps on Windows / NTFS (apparently due to buggy fstat) http://hg.python.org/cpython/rev/002d5f3b240d -- nosy: +python-dev __

[issue13863] import.c sometimes generates incorrect timestamps on Windows + NTFS

2012-12-24 Thread Mark Dickinson
Mark Dickinson added the comment: Fixed for 2.7. I don't think this is worth fixing to 3.2, given that it's not an issue for 3.3. Thanks Brian and Serhiy for reviewing! -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue15302] Use argparse instead of getopt in test.regrtest

2012-12-24 Thread Chris Jerdonek
Chris Jerdonek added the comment: By the way, I am in the process of cleaning up the patch a bit. -- ___ Python tracker ___ ___ Python

[issue14470] Remove using of w9xopen in subprocess module

2012-12-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset deee9f0a4b98 by Brian Curtin in branch 'default': Fix #14470. Remove mentions of w9xpopen on old versions of Visual Studio. http://hg.python.org/cpython/rev/deee9f0a4b98 -- ___ Python tracker

[issue14470] Remove using of w9xopen in subprocess module

2012-12-24 Thread Andrew Svetlov
Andrew Svetlov added the comment: Thanks On Mon, Dec 24, 2012 at 6:44 PM, Roundup Robot wrote: > > Roundup Robot added the comment: > > New changeset deee9f0a4b98 by Brian Curtin in branch 'default': > Fix #14470. Remove mentions of w9xpopen on old versions of Visual Studio. > http://hg.python.

[issue16757] Faster _PyUnicode_FindMaxChar()

2012-12-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is not more surprising that specify a "start" argument for sum(). I don't think we should worry about third party module which violate the API. It will crash in any case when the exported function will disappear and will be replaced by macros. --

[issue16769] Remove some old Visual Studio versions from PC/ directory

2012-12-24 Thread Brian Curtin
New submission from Brian Curtin: While fixing #14470 to remove w9xpopen support, removing it from old Visual Studio projects came up. 1. I can't imagine anyone is attempting to use most of these. 2. Since we don't backport build changes to these older versions, some of them are very out of da

[issue16769] Remove some old Visual Studio versions from PC/ directory

2012-12-24 Thread Jeremy Kloth
Changes by Jeremy Kloth : -- nosy: +jkloth ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue16769] Remove some old Visual Studio versions from PC/ directory

2012-12-24 Thread Andrew Svetlov
Andrew Svetlov added the comment: Do you want to keep VS9.0 only? Sounds good to me. -- nosy: +asvetlov ___ Python tracker ___ ___ Pyt

[issue16769] Remove some old Visual Studio versions from PC/ directory

2012-12-24 Thread Brian Curtin
Brian Curtin added the comment: Definitely keeping PC/VS9.0 as it's still fairly common and VS2008 is still used by us for 2.7. I would like to remove PC/VS8.0 but if anyone speaks towards keeping it then I think it's fine. -- nosy: +ocean-city ___

[issue15302] Use argparse instead of getopt in test.regrtest

2012-12-24 Thread Anton Kasyanov
Anton Kasyanov added the comment: So I see that there is no need in full refactoring now. BTW, maybe someone should create an issue for full tests coverage of regrtest? Then it would be much easier to make a full refactoring. -- ___ Python tracker

[issue16757] Faster _PyUnicode_FindMaxChar()

2012-12-24 Thread STINNER Victor
STINNER Victor added the comment: > It is not more surprising that specify a "start" argument for sum(). Un pythin, the start attribute of sum is optional. > I don't think we should worry about third party module which violate the API. It will crash in any case when the exported function will d

[issue16672] improve tracing performances when f_trace is NULL

2012-12-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1fb26db7d719 by Benjamin Peterson in branch 'default': improve tracing performance when f_trace is NULL (closes #16672) http://hg.python.org/cpython/rev/1fb26db7d719 -- nosy: +python-dev resolution: -> fixed stage: -> committed/rejected st

[issue16720] Get rid of os.error. Use OSError instead

2012-12-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6cfe2982de42 by Andrew Svetlov in branch 'default': Use OESeeror instead of os.error (#16720) http://hg.python.org/cpython/rev/6cfe2982de42 -- nosy: +python-dev ___ Python tracker

[issue16720] Get rid of os.error. Use OSError instead

2012-12-24 Thread Andrew Svetlov
Andrew Svetlov added the comment: Thanks! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue16650] Popen._internal_poll() references errno.ECHILD outside of the local scope

2012-12-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0cc4fe5634cf by Andrew Svetlov in branch '3.2': Keep ref to ECHILD in local scope (#16650) http://hg.python.org/cpython/rev/0cc4fe5634cf New changeset 0b1a49f99169 by Andrew Svetlov in branch '3.3': Keep ref to ECHILD in local scope (#16650) http://

[issue16650] Popen._internal_poll() references errno.ECHILD outside of the local scope

2012-12-24 Thread Andrew Svetlov
Andrew Svetlov added the comment: Close the issue. For future improvements (like ChildProcessError using) please open new one. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue15302] Use argparse instead of getopt in test.regrtest

2012-12-24 Thread Chris Jerdonek
Chris Jerdonek added the comment: Here is an updated, improved patch. -- Added file: http://bugs.python.org/file28422/issue-15302-3.patch ___ Python tracker ___ _

[issue16770] Selection in IDLE often skips first character

2012-12-24 Thread Irwin Jungreis
New submission from Irwin Jungreis: Often, when selecting text in IDLE, the first character of the selected region does not get selected. The problem occurs because sometimes, not always, when clicking on the left half of a character the insertion point gets put after the character, while othe

[issue16665] doc for builtin hex() is poor

2012-12-24 Thread rurpy
rurpy added the comment: I would like to submit the following post made to c.l.p in support of my claim that a cross-reference to the string formatting "x" format specifier would be desireable in the documentation for the hex() builtin: Newsgroups: comp.lang.python Subject: Re: Integer as

[issue11939] Implement stat.st_dev and os.path.samefile on windows

2012-12-24 Thread Brian Curtin
Brian Curtin added the comment: Here's a patch that fills st_dev, and while we're at it st_rdev (which is the same value). I've moved the implementation of samefile/sameopenfile/samestat from Lib/posixpath.py over to Lib/genericpath.py and then removed the implementation from Lib/ntpath.py, s

[issue13000] unhandled exception at install

2012-12-24 Thread Brian Curtin
Changes by Brian Curtin : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue16748] Ensure test discovery doesn't break for modules testing C and Python implementations

2012-12-24 Thread Éric Araujo
Éric Araujo added the comment: I won’t be online for the next two weeks. I think there is a bug with Michael Foord, RDM and I where we talk about this very issue. -- ___ Python tracker ___

[issue16754] Incorrect shared library extension on linux

2012-12-24 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +barry versions: +Python 3.2, Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue16755] Distutils2 incorrectly works with unicode package names

2012-12-24 Thread Éric Araujo
Éric Araujo added the comment: Thanks, will check this when I come back online after the holidays. -- versions: +3rd party -Python 3.3 ___ Python tracker ___

[issue16771] issuse

2012-12-24 Thread Nurhusien Hasen
New submission from Nurhusien Hasen: No find bug python any issuse masseg Please not find you masseg or I am out bug python Account -- messages: 178093 nosy: Nurhusien2 priority: normal severity: normal status: open title: issuse ___ Python tracker

[issue16771] issuse

2012-12-24 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue16720] Get rid of os.error. Use OSError instead

2012-12-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset e2e5181b10f8 by Andrew Svetlov in branch 'default': fix typo (#16720) http://hg.python.org/cpython/rev/e2e5181b10f8 -- ___ Python tracker _

[issue16772] int() accepts float number base

2012-12-24 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: I'm not sure this is a bug. In 2.7 int() and long() with float number base raises TypeError. But in 3.x int() accepts float number base and truncate it to int. -- components: Interpreter Core messages: 178095 nosy: serhiy.storchaka priority: normal

[issue16772] int() accepts float number base

2012-12-24 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti stage: -> needs patch type: -> behavior ___ Python tracker ___ ___ Python-bugs-list

[issue16773] int() half-accepts UserString

2012-12-24 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: In Python 3 int() accepts UserString argument without explicit base and reject it with explicit base. >>> from collections import UserString >>> int(UserString('100')) 100 >>> int(UserString('100'), 2) Traceback (most recent call last): File "", line 1, i

[issue16773] int() half-accepts UserString

2012-12-24 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue16761] Fix int(base=X)

2012-12-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Patches updated to address Cris's comments on Rietveld (thank you, Cris, for review). In additional new tests added. I think merging test_int and test_long is hard task and should be done in separated issue. Instead I have merged and simplified some test to

[issue16772] int() accepts float number base

2012-12-24 Thread Chris Jerdonek
Changes by Chris Jerdonek : -- nosy: +chris.jerdonek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue16773] int() half-accepts UserString

2012-12-24 Thread Chris Jerdonek
Changes by Chris Jerdonek : -- nosy: +chris.jerdonek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue16774] Additional recipes for itertools docs

2012-12-24 Thread Alexey Kachayev
New submission from Alexey Kachayev: Additional recipes for itertools documentation (widespread functions in other programming languages): * drop * split-at * split-by -- assignee: docs@python components: Documentation files: itertools.doc.diff keywords: patch messages: 178098 nosy: asv

[issue16774] Additional recipes for itertools docs

2012-12-24 Thread Ezio Melotti
Changes by Ezio Melotti : -- assignee: docs@python -> rhettinger nosy: +ezio.melotti, rhettinger stage: -> patch review type: -> enhancement versions: +Python 2.7, Python 3.2, Python 3.3 ___ Python tracker __

[issue16757] Faster _PyUnicode_FindMaxChar()

2012-12-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think it is redundant and useless, but do as you want. -- Added file: http://bugs.python.org/file28428/unicode_findmaxchar_2.patch ___ Python tracker __

[issue16761] Fix int(base=X)

2012-12-24 Thread Chris Jerdonek
Chris Jerdonek added the comment: This is good work. Thanks. > I think merging test_int and test_long is hard task and should be done in > separated issue. I meant "share" rather than "merge." For the tests you're adding, isn't it simply a matter of putting the test cases into a separate mi

[issue11939] Implement stat.st_dev and os.path.samefile on windows

2012-12-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What about macpath? I think test_macpath will fail. -- nosy: +serhiy.storchaka versions: +Python 3.4 -Python 3.3 ___ Python tracker ___ __

[issue11939] Implement stat.st_dev and os.path.samefile on windows

2012-12-24 Thread Brian Curtin
Brian Curtin added the comment: Why do you think that? I don't have a mac so I can't test it. -- ___ Python tracker ___ ___ Python-bug

[issue11939] Implement stat.st_dev and os.path.samefile on windows

2012-12-24 Thread Brian Curtin
Brian Curtin added the comment: Here is an updated patch addressing the sameopenfile that remained in Lib/ntpath.py, thanks to Sehriy's comment on the review. -- Added file: http://bugs.python.org/file28429/issue11939_v2.diff ___ Python tracker

[issue11939] Implement stat.st_dev and os.path.samefile on windows

2012-12-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Hmm. test_macpath will now run the tests for samefile etc. macpath doesn't contain os.path.samefile. But in Modules/posixmodule.c I don't see any special cases for classic MacOS. Actually, I don't know how tests behave on classic MacOS. Please update the do

[issue11939] Implement stat.st_dev and os.path.samefile on windows

2012-12-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: On other hand, you should add "samefile", "sameopenfile" and "samestat" back to __all__ in posixpath and ntpath. __all__ is a list of exported names, not a list of defined names. -- ___ Python tracker

[issue16713] "tel" URIs should support params

2012-12-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset d002a2e46383 by Senthil Kumaran in branch '3.2': Fix issue16713 - tel url parsing with params http://hg.python.org/cpython/rev/d002a2e46383 New changeset 727f26d1806f by Senthil Kumaran in branch '3.3': Fix issue16713 - tel url parsing with params h

[issue16713] "tel" URIs should support params

2012-12-24 Thread Senthil Kumaran
Senthil Kumaran added the comment: Fixed in all codelines. Thank you! -- assignee: -> orsenthil resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue11939] Implement stat.st_dev and os.path.samefile on windows

2012-12-24 Thread Brian Curtin
Brian Curtin added the comment: Docs and the __all__ changes in V3 patch. -- Added file: http://bugs.python.org/file28430/issue11939_v3.diff ___ Python tracker ___ __

[issue16743] mmap accepts files > 1 GB, but processes only 1 GB

2012-12-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Windows memory-maps multi-gigabyte files just fine as long as one uses the proper build (64-bit), which we provide. Given that mmap produces a finite-length sequence object, as documented, slicing is working as it should. Slicing beyond the length returns an

[issue16743] mmap accepts files > 1 GB, but processes only 1 GB

2012-12-24 Thread Richard Oudkerk
Richard Oudkerk added the comment: I suspect that the size of the 5GB file is originally a 64 bit quantity, but gets cast unsafely to a 32 bit size_t to give 1GB. This is causing the miscalculations. There is no way to map all of a 5GB file in a 32 bit process -- 4GB is the maximum -- so any

[issue16743] mmap accepts files > 1 GB, but processes only 1 GB

2012-12-24 Thread Richard Oudkerk
Richard Oudkerk added the comment: This bit looks wrong to me: if (offset - size > PY_SSIZE_T_MAX) /* Map area too large to fit in memory */ m_obj->size = (Py_ssize_t) -1; Should it not be "size - offset" instead of "offset - size"? (offset and size

[issue16768] CTRL-Y, yank, behaves as CTRL-Z with curses on OS X

2012-12-24 Thread Ned Deily
Ned Deily added the comment: What you are seeing is platform-specific behavior, a difference between BSD-based systems including OS X and other systems including Linux. The difference is that the former systems support the DSUSP (suspend on reading input) terminal character in addition to the

  1   2   >