[issue17503] replace mode is always on in console

2013-03-21 Thread anatoly techtonik
anatoly techtonik added the comment: In Python 2 replace mode is always off. -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue17503] replace mode is always on in console

2013-03-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Python has absolutely no code to control the Windows console. It has always used fgets(). On the other hand, Windows keeps independent settings per shortcut or executable, so if you started Python directly from the start menu (or by opening the python.e

[issue17503] replace mode is always on in console

2013-03-21 Thread anatoly techtonik
anatoly techtonik added the comment: Ok. From cmd.exe both work the same in insert mode, but when I execute them from different shell (http://www.farmanager.com/opensource.php?l=en), the Python 3 starts to misbehave. And Python 2 works ok, because there is pyreadline installed. With -s -S keys

[issue17206] Py_XDECREF() expands its argument multiple times

2013-03-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: - The patch contains a "#ifdef OLD_17206" that should be removed. - I know that these macros are already used everywhere, but a test for the new feature would be nice (in _testcapimodule.c) For example, Py_DECREF(PyLong_FromLong(0)) does not fail or leak

[issue17505] email.header.Header.__unicode__ does not decode header

2013-03-21 Thread Hrvoje Nikšić
New submission from Hrvoje Nikšić: The __unicode__ method is documented to "return the header as a Unicode string". For this to be useful, I would expect it to decode a string such as "=?gb2312?b?1eLKx9bQzsSy4srUo6E=?=" into a Unicode string that can be displayed to the user, in this case u'\u

[issue17505] email.header.Header.__unicode__ does not decode header

2013-03-21 Thread Hrvoje Nikšić
Changes by Hrvoje Nikšić : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue17503] replace mode is always on in console

2013-03-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: I don't know Far Manager. Maybe it starts everything in overwrite mode (and check its console settings) pyreadline completely overrides Python's input methods and bypasses the console, so behavior is completely independent. -- _

[issue17506] Improve IDLE news handling

2013-03-21 Thread Terry J. Reedy
New submission from Terry J. Reedy: Idle news items should be collected together in one place and released both in an IDLE section of each Misc/NEWS and in each idlelib/NEWS.txt. Once a decision is made where to collect them originally, a script should be written to make appropriate copies. If

[issue17506] Improve IDLE news handling

2013-03-21 Thread Ezio Melotti
Ezio Melotti added the comment: I think it would be better to keep everything in an IDLE section in Misc/NEWS, and have something/someone extract the section(s) before the release. In Lib/idlelib/NEWS.txt we probably don't need to have separate sections for alphas/betas/rcs like we do in Misc

[issue5845] rlcompleter should be enabled automatically

2013-03-21 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue17507] To add history time format in readline

2013-03-21 Thread Zulu
New submission from Zulu: I'm using readline library, and would like to add date information in "readline.write_history_file" method without override it. I think the best way is to add a argument for a strftime string. By default it should be simply ''. -- components: Build messages:

[issue17507] To add history time format in readline

2013-03-21 Thread Ezio Melotti
Ezio Melotti added the comment: Would you like to propose a patch? You can find information about how to do it in the devguide. -- components: +Library (Lib) -Build nosy: +ezio.melotti stage: -> needs patch versions: -Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python

[issue17496] OS X test for Tk availability in runtktests.py doesn't work

2013-03-21 Thread Glyph Lefkowitz
Glyph Lefkowitz added the comment: > Wouldn't it be better to check for the actual problem, that is use subprocess > to start a small Tcl script that creates a window and check if that crashes? Yes, this sounds great. Doing it with Tcl means that we're not invoking any of the problematic code

[issue17507] To add history time format in readline

2013-03-21 Thread Zulu
Zulu added the comment: I unfortunatly can't write in C. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue6931] dreadful performance in difflib: ndiff and HtmlDiff

2013-03-21 Thread Matt Wheeler
Changes by Matt Wheeler : -- nosy: +funkyhat ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue17209] get_wch() doesn't handle KeyboardInterrupt

2013-03-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset d98a515489db by Victor Stinner in branch '3.3': Issue #17209: curses.window.get_wch() now handles correctly KeyboardInterrupt (CTRL+c) http://hg.python.org/cpython/rev/d98a515489db New changeset b9d9bba9dfe5 by Victor Stinner in branch 'default': (

[issue17209] get_wch() doesn't handle KeyboardInterrupt

2013-03-21 Thread STINNER Victor
STINNER Victor added the comment: The issue should now be fixed, it will be part of Python 3.3.1 (not released yet) and Python 3.4. Thanks for the report! -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue5845] rlcompleter should be enabled automatically

2013-03-21 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +flox ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue17508] logging.config.ConvertingDict issue with MemoryHandler

2013-03-21 Thread Pierre Le Marre
New submission from Pierre Le Marre: Hi, I use Python 3.2.3 and Python 3.3.0 on Windows 7 64 bits. I have an issue with the short script enclosed. I use the module logging to get a log file with logging.FileHandler. There were some issues about the file access on Windows, so I added a buffer wit

[issue17489] random.Random implements __getstate__() and __reduce__()

2013-03-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: Possibly __getstate__ could be removed. That said, I would feel a sense of risk in taking it out -- that method has been present for a *very* long time who knows what might rely on it being there. -- priority: normal -> low ___

[issue16475] Support object instancing and recursion in marshal

2013-03-21 Thread Ezio Melotti
Ezio Melotti added the comment: FTR the two failures I saw earlier are now gone. -- ___ Python tracker ___ ___ Python-bugs-list mailin

[issue17509] Incorrect package version predicate parsing by distutils

2013-03-21 Thread ILja Orlovs
New submission from ILja Orlovs: When `requires` list is present in the `distutils.core.setup` object, each element of that list is being parsed by `VersionPredicate` object (located in the `distutils/versionpredicate.py` file). In its `__init__` method, the VersionPredicate uses `re_validPack

[issue17500] move PC/icons/source.xar to http://www.python.org/community/logos/

2013-03-21 Thread Martin v . Löwis
Martin v. Löwis added the comment: IIUC, Xara for Linux is still available at http://www.xaraxtreme.org/download.html -- ___ Python tracker ___ _

[issue17025] reduce multiprocessing.Queue contention

2013-03-21 Thread Charles-François Natali
Changes by Charles-François Natali : -- stage: -> commit review versions: +Python 3.4 Added file: http://bugs.python.org/file29528/queues_contention-1.diff ___ Python tracker __

[issue17025] reduce multiprocessing.Queue contention

2013-03-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: By the way, I forgot to mention it previously, but multiprocessing.connection uses a custom pickler (ForkingPickler). By replacing it with plain pickle.dumps() calls, you may produce regressions since some types won't be sendable anymore (although the test sui

[issue10224] Build 3.x documentation using python3.x

2013-03-21 Thread Ezio Melotti
Ezio Melotti added the comment: > Should I write a Makefile patch using the venv/install from pypi approach? > Or could somebody upload new versions to > http://svn.python.org/projects/external/? I looked at this issue over the past few days and discussed briefly with Georg about it. The 3 ma

[issue17490] Improve ast.literal_eval test suite coverage

2013-03-21 Thread Nick Coghlan
Nick Coghlan added the comment: I don't think we should change the implementation, but I also discovered several holes in the test suite coverage while refactoring it. We should pursue some of the test suite changes, including switching them over to be data driven and take advantage of the new

[issue10224] Build 3.x documentation using python3.x

2013-03-21 Thread Georg Brandl
Georg Brandl added the comment: A problem with using automatic tarballs from hg.python.org is that they take server load to generate, every time someone builds the docs from a new checkout. -- ___ Python tracker _

[issue17025] reduce multiprocessing.Queue contention

2013-03-21 Thread Charles-François Natali
Charles-François Natali added the comment: > By the way, I forgot to mention it previously, but > multiprocessing.connection uses a custom pickler (ForkingPickler). Thanks, I didn't know. Here's a patch using ForkingPickler. I did a bit of refactoring to move the pickling code from connection.p

[issue16475] Support object instancing and recursion in marshal

2013-03-21 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Yes, they were fixed with #42bf74b90626 which also added unittests in test_marshal.py to make sure invalid EOFs are always caught. -- ___ Python tracker __

[issue17409] resource.setrlimit doesn't respect -1

2013-03-21 Thread Paul Price
Paul Price added the comment: Not sure how you want patches formatted, so I went for 'git format-patch'. Also, this is my first attempt at writing ReST and my first attempt at writing docs for Python, so you may want to double-check I didn't screw up the syntax or style. Hopefully this doesn'

[issue17409] resource.setrlimit doesn't respect -1

2013-03-21 Thread Paul Price
Paul Price added the comment: P.S. This is relative to the 'default' branch in the public cpython. -- ___ Python tracker ___ ___ Pytho

[issue17500] move PC/icons/source.xar to http://www.python.org/community/logos/

2013-03-21 Thread Matthias Klose
Matthias Klose added the comment: ohh, I didn't see. however these are binaries only, and they still promise to open the sources, however the latest information on this page is for Ubuntu dapper drake (6.06), now almost seven years old. -- ___ Pytho

[issue17494] References to stack bottom are confusing

2013-03-21 Thread anatoly techtonik
anatoly techtonik added the comment: stack = [] stack.append(item) stack.append(item) stack.append(item) This is an appropriate explanation of the stack in Python, the first frame is the frame that was put in first. root/terminal - if you know what a stack is, you won't confuse it with a tree

[issue13564] ftplib and sendfile()

2013-03-21 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: After digging a bit further it seems EAGAIN occurs in case a timeout was previously set against the socket as in ftplib.FTP(..., timeout=2) (at least on Linux, FWICT). As such, we can debate whether avoid using select/poll if timeout was not set. I'll that

[issue13564] ftplib and sendfile()

2013-03-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: > After digging a bit further it seems EAGAIN occurs in case a timeout was > previously > set against the socket as in ftplib.FTP(..., timeout=2) (at least on Linux, > FWICT). Ah, indeed. That's because socket timeout makes the underlying fd non-blocking. Whi

[issue17494] References to stack bottom are confusing

2013-03-21 Thread Ezio Melotti
Ezio Melotti added the comment: Using "first" makes some sense, since it's talking about "previous", but I agree it might be confused with the top frame too. What about this wording then: -f_back is to the previous stack frame (towards the caller), -or None if this is the bottom stack frame; +

[issue10224] Build 3.x documentation using python3.x

2013-03-21 Thread Ezio Melotti
Ezio Melotti added the comment: Apparently they are cached, and unless the cache expires often, the server doesn't need to regenerate the tarball too often. However I don't know the details of the caching, and if they can be tweaked. -- ___ Python

[issue17494] References to stack bottom are confusing

2013-03-21 Thread anatoly techtonik
anatoly techtonik added the comment: +or None if this is the first frame (at the bottom of the stack); I'd avoid top/bottom altogether, but if it is what is needed to reach the consensus then I am fine with that. -- ___ Python tracker

[issue10224] Build 3.x documentation using python3.x

2013-03-21 Thread R. David Murray
Changes by R. David Murray : -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue17503] replace mode is always on in console

2013-03-21 Thread anatoly techtonik
anatoly techtonik added the comment: I've messed with some settings, upgraded Far, restarted it during yet another test and suddenly everything worked. I hate such stuff. Thanks for support. -- resolution: -> invalid status: open -> closed ___ Pytho

[issue17494] References to stack bottom are confusing

2013-03-21 Thread Eli Bendersky
Eli Bendersky added the comment: Top/bottom is accepted and understood nomenclature when talking about stacks. Think about a stack of plates in the kitchen. You put a new plate on top, you take it out from top. That's it. Now, lists are just one way to implement stacks, and printing them is al

[issue17136] ctypes tests fail with clang on non-OS X

2013-03-21 Thread Benjamin Peterson
Benjamin Peterson added the comment: Fixed by libffi-3.0.13 import. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue17494] References to stack bottom are confusing

2013-03-21 Thread anatoly techtonik
anatoly techtonik added the comment: It appeared that I always thought that stacks grow down towards the end of memory, but it appears that they are growing down towards the beginning (x86 and friends). Spent some years with assembly to miss that. A shame on me. =) Even if title of the issue i

[issue16310] zipfile: allow surrogates in filenames

2013-03-21 Thread Toshio Kuratomi
Toshio Kuratomi added the comment: Version 2 of the patch * fixes for the style problems noted by ezio.melotti -- Added file: http://bugs.python.org/file29531/python3-zipfile-surrogate.patch ___ Python tracker ___

[issue17494] References to stack bottom are confusing

2013-03-21 Thread Eli Bendersky
Eli Bendersky added the comment: I actually find the growth direction confusing sometimes for the same reasons (too much x86 assembly). This is why I wrote this blog post a while back - mainly so I can always look at it and de-confuse myself: http://eli.thegreenplace.net/2011/02/04/where-the-t

[issue10224] Build 3.x documentation using python3.x

2013-03-21 Thread Georg Brandl
Georg Brandl added the comment: Ok, that sounds good then. BTW, for 3.3+ would it make sense instead to create a virtualenv and directly install the required versions from pypi? -- ___ Python tracker

[issue10224] Build 3.x documentation using python3.x

2013-03-21 Thread Brett Cannon
Brett Cannon added the comment: I guess if we are willing to write a mini-pip to download the latest release directly from PyPI we could. Since there are no C extensions we don't have to care about the lack of header files in Include if we are going to build from the repo build directly. Or ar

[issue17505] email.header.Header.__unicode__ does not decode header

2013-03-21 Thread Hrvoje Nikšić
Hrvoje Nikšić added the comment: An example of the confusion that lack of a clear "convert to unicode" method creates is illustrated by this StackOverflow question: http://stackoverflow.com/q/15516958/1600898 -- ___ Python tracker

[issue17344] checking size of size_t... configure: error:

2013-03-21 Thread Joe Hsiao
Joe Hsiao added the comment: I was brought here by google searching for the same issue. My system is MAC OSX 10.6.8 with gcc version 4.2.1. I downloaded Python-2.7.3 and used the following configure command: /configure --enable-framework --enable-universalsdk --with-universal-archs=intel and r

[issue17505] email.header.Header.__unicode__ does not decode header

2013-03-21 Thread R. David Murray
R. David Murray added the comment: I agree that this is not the worlds best API. However, it is the API that we have in 2.7/3.2, and we can't change how Header.__unicode__ behaves without breaking backward compatibility. What we could do is add an example of how to use this API to get unico

[issue17505] email.header.Header.__unicode__ does not decode header

2013-03-21 Thread R. David Murray
R. David Murray added the comment: Erg, somehow I failed to read the second half of your message before writing mine...clearly you *didn't* know about that idiom, so the doc patch is obviously an important thing to do. To clarify about the 3.3 example: the policy=default is key, it tells the e

[issue17508] logging.config.ConvertingDict issue with MemoryHandler

2013-03-21 Thread R. David Murray
Changes by R. David Murray : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue17494] References to stack bottom are confusing

2013-03-21 Thread anatoly techtonik
anatoly techtonik added the comment: @eli.bendersky: The article is awesome. One of the cases when I regret that many interesting Python posts don't have a +1 button. One more chapter about C stack overflow and it will get all top hits. ;) -- ___ Py

[issue17487] wave.Wave_read.getparams should be more user friendly

2013-03-21 Thread R. David Murray
R. David Murray added the comment: Looks good. Claudio, could you please submit a contributor agreement? (http:://www.python.org/psf/contrib). -- stage: -> commit review ___ Python tracker __

[issue17383] Possibly ambiguous phrasing in tutorial/modules#more-on-modules

2013-03-21 Thread Éric Araujo
Éric Araujo added the comment: I was not disagreeing that there was an ambiguity, just trying to explain why some people would understand the text in a different way that what it meant. -- stage: -> needs patch ___ Python tracker

[issue17509] Incorrect package version predicate parsing by distutils

2013-03-21 Thread Éric Araujo
Éric Araujo added the comment: requires is supposed to take a Python module name (e.g. 'xml'), not a distribution name (e.g. 'PyXML') or a system package name ('rpm-build'). The hyphen is rejected because it’s not a valid character for a Python module name. That said, requires should not be u

[issue17409] resource.setrlimit doesn't respect -1

2013-03-21 Thread R. David Murray
R. David Murray added the comment: Thanks for the patch. You got the patch mechanics correct. I did a little experimenting, and at least on my linux box, the exception is raised for any(*) resource whose hard limit is not unlimited. I'm attaching a revised patch that expresses this. Do you

[issue17409] resource.setrlimit doesn't respect -1

2013-03-21 Thread Paul Price
Paul Price added the comment: That's good; it doesn't have what I added to the description of RLIMIT_NOFILE, but perhaps you chose to leave that out on purpose. Since both "unlimited" and "infinite" are both used in different contexts, perhaps we should use both, e.g., "infinite/unlimited"? -

[issue14965] super() and property inheritance behavior

2013-03-21 Thread florian-rathgeber
Changes by florian-rathgeber : -- nosy: +florian-rathgeber ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue17409] resource.setrlimit doesn't respect -1

2013-03-21 Thread R. David Murray
R. David Murray added the comment: infinite/unlimited sounds like a good compromise :) Yes, I left NOFILE out on purpose, because the issue applies to any resource that is not unlimited for whatever reason. -- ___ Python tracker

[issue16754] Incorrect shared library extension on linux

2013-03-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8f91014c8f00 by doko in branch '3.2': - Issue #16754: Fix the incorrect shared library extension on linux. Introduce http://hg.python.org/cpython/rev/8f91014c8f00 New changeset 14f0c9e595a5 by doko in branch '3.3': - Issue #16754: Fix the incorrect

[issue17510] assertEquals deprecated in test_program.py (unittest)

2013-03-21 Thread Daniel Black
New submission from Daniel Black: Following #9424 here's a patch that changes assertEquals -> assertEqual for Lib/unittest/test/test_program.py against hg tip as of now -- components: Tests files: unittest.patch keywords: patch messages: 184906 nosy: grooverdan priority: normal severit

[issue17500] move PC/icons/source.xar to http://www.python.org/community/logos/

2013-03-21 Thread Matthias Klose
Matthias Klose added the comment: besides the availability of the graphics program, would there be any objection to move the source.xar file to the python.org web site? -- ___ Python tracker __

[issue17409] resource.setrlimit doesn't respect -1

2013-03-21 Thread R. David Murray
R. David Murray added the comment: Here's another attempt, using infinite/unlimited . I noticed that the following paragraph talks specifically about the error raised, so I moved the explanation to that paragraph. -- Added file: http://bugs.python.org/file29534/setrlimit_doc.patch __

[issue16754] Incorrect shared library extension on linux

2013-03-21 Thread Matthias Klose
Matthias Klose added the comment: fixed, pep update is pending -- assignee: eric.araujo -> barry resolution: -> fixed stage: -> committed/rejected status: open -> pending ___ Python tracker __

[issue17409] resource.setrlimit doesn't respect -1

2013-03-21 Thread Paul Price
Paul Price added the comment: You missed out an "is": Raises :exc:`ValueError` if an invalid resource is specified, if the new soft limit exceeds the hard limit, or if a process tries to raise its hard limit (unless the process has an effective UID of super-user). Specifying an infi

[issue17409] resource.setrlimit doesn't respect -1

2013-03-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: in-finite literally means un-limited or un-bounded. However, 'infinte' has also taken on the meaning of 'actual infinity'. So in my algorithms book, when 'actual infinities' are not in play. I describe the set of counts as unbounded. I suggest you go with just

[issue17409] resource.setrlimit doesn't respect -1

2013-03-21 Thread R. David Murray
R. David Murray added the comment: Terry: well, we're trying to deal with the fact that the setrlimit man page says: The value RLIM_INFINITY denotes no limit on a resource (both in the structure returned by getrlimit() and in the structure passed to setr- limit()). Oh

[issue17344] checking size of size_t... configure: error:

2013-03-21 Thread Ned Deily
Ned Deily added the comment: Joe, there are many reasons for seeing configure errors like that and they are almost always platform-specific. Ones seen on OS X are unlikely to be related to ones seen on Solaris so they should be covered in separate issues. In your case, --enable-universalsdk

[issue17409] resource.setrlimit doesn't respect -1

2013-03-21 Thread R. David Murray
R. David Murray added the comment: Here's a patch that adds RLIMIT_INFINITY and uses it. This constant exists in 2.7 and Python3, but has not been previously documented. -- Added file: http://bugs.python.org/file29535/setrlimit_doc.patch ___ Python

[issue17511] Idle find function closes after each find operation

2013-03-21 Thread Sarah
New submission from Sarah: When I use the 'find' function in Idle, the dialogue closes after the first instance is found. To find the next instance, one must then use the 'find again' function, rather than the 'find' function. One can also use Ctrl+G, but that may not be intuitive for new use

[issue13150] Most of Python's startup time is sysconfig

2013-03-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 66e30c4870bb by doko in branch '2.7': - Issue #13150: sysconfig no longer parses the Makefile and config.h files http://hg.python.org/cpython/rev/66e30c4870bb -- ___ Python tracker

[issue17409] resource.setrlimit doesn't respect -1

2013-03-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: Both old and new have this sentence: "Raises :exc:`ValueError` if an invalid resource is specified, if the new soft limit exceeds the hard limit, or if a process tries to raise its hard limit (unless the process has an effective UID of super-user)." This strik

[issue17429] platform.platform() can throw Unicode error

2013-03-21 Thread R. David Murray
R. David Murray added the comment: Review comments added. -- nosy: +r.david.murray stage: -> patch review type: -> behavior versions: +Python 3.4 ___ Python tracker ___ ___

[issue17512] backport of the _sysconfigdata.py module (issue 13150) breaks the build on darwin

2013-03-21 Thread Matthias Klose
New submission from Matthias Klose: The backport of #13150 to the 2.7 branch breaks the build on darwin. There is a special case for providing the _sysconfigdata module in _generate_posix_vars before get_platform is called (darwin only) and before the module is actually written. However get_p

[issue17425] Update OpenSSL versions in Windows builds

2013-03-21 Thread Benjamin Peterson
Benjamin Peterson added the comment: Martin, is something that needs to be worked on before the rc this weekend? -- ___ Python tracker ___ ___

[issue17513] astrike(*) in argv

2013-03-21 Thread Amin
New submission from Amin: suppose the the following simple program argvtest.py: import sys print sys.argv[1] in my Python 2.6.6. if I run it with the following parameters: $ python argvtest.py tc* it returns: tc2 (or the first result of ls tc*) but it should return tc* -- components:

[issue17513] astrike(*) in argv

2013-03-21 Thread Alex Gaynor
Alex Gaynor added the comment: This is a result of your shell automatically expeanding that, depending on what shell you use there'll be a way to escape the *. -- nosy: +alex resolution: -> invalid ___ Python tracker

[issue17512] backport of the _sysconfigdata.py module (issue 13150) breaks the build on darwin

2013-03-21 Thread Matthias Klose
Matthias Klose added the comment: untested work-around. we don't need the builddir to generate the _sysconfigdata.py. -- keywords: +patch Added file: http://bugs.python.org/file29537/workaround.diff ___ Python tracker

[issue17512] backport of the _sysconfigdata.py module (issue 13150) breaks the build on darwin

2013-03-21 Thread Matthias Klose
Changes by Matthias Klose : -- nosy: +pitrou, twouters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue17465] Gut devinabox

2013-03-21 Thread Brett Cannon
Brett Cannon added the comment: OK, rewrite is finished in changeset 2c20681befa8 . -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker __

[issue17513] astrike(*) in argv

2013-03-21 Thread R. David Murray
Changes by R. David Murray : -- stage: -> committed/rejected status: open -> closed ___ Python tracker ___ ___ Python-bugs-list maili

[issue13248] deprecated in 3.2/3.3, should be removed in 3.4

2013-03-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 62a988b3bf2e by Terry Jan Reedy in branch 'default': Issue #13248: NEWS and What's New items http://hg.python.org/cpython/rev/62a988b3bf2e -- ___ Python tracker __

[issue17409] resource.setrlimit doesn't respect -1

2013-03-21 Thread R. David Murray
R. David Murray added the comment: How about this. -- Added file: http://bugs.python.org/file29538/setrlimit_doc.patch ___ Python tracker ___

[issue15392] Create a unittest framework for IDLE

2013-03-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: Since writing this, I ran test_ttk_guionly by itself, so it would run, and saw the flickering windows. I have thought about using unitest.mock and Nick has offered to help particlarly with that. -- nosy: +ncoghlan versions: +Python 3.4 -Python 3.2 ___

[issue5845] rlcompleter should be enabled automatically

2013-03-21 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- nosy: +tshepang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue5845] rlcompleter should be enabled automatically

2013-03-21 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- versions: +Python 3.4 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue17512] backport of the _sysconfigdata.py module (issue 13150) breaks the build on darwin

2013-03-21 Thread Benjamin Peterson
Benjamin Peterson added the comment: Backporting 4742e7aea2f5 would seem to be the simplest and most "correct" solution. -- ___ Python tracker ___ __

[issue17514] Add the license to argparse.py

2013-03-21 Thread David James
New submission from David James: Lib/argparse.py [1] doesn't mention a license in it. Could you please add a license to it? According to the argparse project [2], argparse is licensed under the Python license. Chromium OS uses argparse. If you would add information about the license to argpar

[issue17508] logging.config.ConvertingDict issue with MemoryHandler

2013-03-21 Thread Vinay Sajip
Vinay Sajip added the comment: Yes, this fails because it tries to construct the MemoryHandler first. Because the constructing is done in order of the keys, you can get it to work by renaming the 'fileGlobal' to 'afileGlobal' - this gets constructed before 'bufferGlobal'. I agree this is a wor

[issue17508] logging.config.ConvertingDict issue with MemoryHandler

2013-03-21 Thread Vinay Sajip
Changes by Vinay Sajip : -- type: crash -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue17472] Patch for Additional Test Coverage in urllib.parse

2013-03-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 472b72a61b0a by R David Murray in branch 'default': #17472: add tests for a couple of untested methods in urllib.urlparse. http://hg.python.org/cpython/rev/472b72a61b0a -- nosy: +python-dev ___ Python tra

[issue17515] Add sys.setasthook() to allow to use a custom AST optimizer

2013-03-21 Thread STINNER Victor
New submission from STINNER Victor: I wrote an optimizer rewriting the AST to implement various optimizatoions: https://bitbucket.org/haypo/astoptimizer To be able to use it, or use any other kind of AST transformation, I propose to add a new sys.setasthook() function to set a custom AST hook.

[issue17472] Patch for Additional Test Coverage in urllib.parse

2013-03-21 Thread R. David Murray
R. David Murray added the comment: Thanks Daniel. I changed the Quoter test to look for the class name, since the purpose of that method is to differentiate itself from the base defaultdict repr. -- nosy: +r.david.murray resolution: -> fixed stage: -> committed/rejected status: open

[issue17516] Dead code should be removed

2013-03-21 Thread STINNER Victor
New submission from STINNER Victor: Using my astoptimizer project and the hook proposed in the issue #17515, I found the following dead code. https://bitbucket.org/haypo/astoptimizer Some code is not dead or unreachable in the general case, but only on a specific platform. I ran astoptimizer w

[issue17516] Dead code should be removed

2013-03-21 Thread STINNER Victor
STINNER Victor added the comment: "Almost Dead code" is code generally considered as useless, but many Python unit tests use such code. Dummy example: try: obj.attr except AttributeError: pass I don't think that we should touch this code, it's just for information. -- _

[issue17515] Add sys.setasthook() to allow to use a custom AST optimizer

2013-03-21 Thread STINNER Victor
STINNER Victor added the comment: enable_astoptimizer.patch: example of usage of the new function, you can use it to try astoptimizer. -- Added file: http://bugs.python.org/file29540/enable_astoptimizer.patch ___ Python tracker

[issue17516] Dead code should be removed

2013-03-21 Thread R. David Murray
R. David Murray added the comment: Your "dead code" looks like multiline comments (at least it is in the email case). I thought those were optimized away when the pyc is written. What is "almost dead code"? If it is the stuff that is only applicable to a given platform, then presumably it is

[issue17516] Dead code should be removed

2013-03-21 Thread STINNER Victor
STINNER Victor added the comment: Here is a concrete patch. > Your "dead code" looks like multiline comments (at least it is > in the email case). I thought those were optimized away when > the pyc is written. Oh, it looks like you are right: useless strings are already removed during compila

  1   2   >