[issue7015] Getting call trace while executing "modules spam" at help prompt

2011-10-07 Thread Ned Deily
Ned Deily added the comment: The problem of pydoc apropos failing due to exceptions raised by pkgutil walk_packages is fixed in 2.7.3 by the changes for Issue7425; they were already fixed in 3.x. -- nosy: +ned.deily resolution: invalid -> duplicate superseder: -> Improve the robustne

[issue1164953] logging.basicConfig creates phantom handler

2011-10-07 Thread anatoly techtonik
anatoly techtonik added the comment: Can basicConfig() report its failure with DEBUG level when called twice? -- nosy: +techtonik ___ Python tracker ___ __

[issue13112] backreferences in comprehensions

2011-10-07 Thread Mark Dickinson
Mark Dickinson added the comment: Hi, You're proposing a change to the core language and syntax; the bug-tracker's not really appropriate for this---it's better suited for small, focused changes (preferably with patches!). I suggest that you start a thread on the python-ideas mailing list

[issue13112] backreferences in comprehensions

2011-10-07 Thread Mark Dickinson
Mark Dickinson added the comment: I meant to include a link to the mailing list: http://mail.python.org/mailman/listinfo/python-ideas -- ___ Python tracker ___

[issue13121] collections.Counter's += copies the entire object

2011-10-07 Thread Lars Buitinck
New submission from Lars Buitinck : I've found some counterintuitive behavior in collections.Counter while hacking on the scikit-learn project [1]. I wanted to use a bunch of Counters to do some simple term counting in a set of documents, roughly as follows: count_total = Counter() for d

[issue13119] Newline for print() is \n on Windows, and not \r\n as expected

2011-10-07 Thread STINNER Victor
STINNER Victor added the comment: I changed how newlines are handled on Windows to fix an issue with CGI: see the issue #10841. changeset: 67431:0933c3753a71 user:Victor Stinner date:Fri Jan 07 18:47:22 2011 + files: Misc/NEWS Modules/_io/fileio.c Modules/main.c Pa

[issue13121] collections.Counter's += copies the entire object

2011-10-07 Thread Petri Lehtinen
Petri Lehtinen added the comment: This is slightly backwards incompatible, as some people may depend on the old behavior. Otherwise sounds like a good idea to me. -- nosy: +petri.lehtinen, rhettinger stage: -> patch review versions: +Python 3.3 -Python 3.4 ___

[issue13119] Newline for print() is \n on Windows, and not \r\n as expected

2011-10-07 Thread STINNER Victor
STINNER Victor added the comment: print() uses PyFile_WriteString("\n", file) by default (if the end argument is not set) to write the newline. TextIOWrapper.write("\n") replaces "\n" by TextIOWrapper._writenl. On Windows, stdin, stdout and stderr are creates using TextIOWrapper(..., newline

[issue13121] collections.Counter's += copies the entire object

2011-10-07 Thread Mark Dickinson
Changes by Mark Dickinson : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue13121] collections.Counter's += copies the entire object

2011-10-07 Thread Mark Dickinson
Changes by Mark Dickinson : -- type: behavior -> feature request ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13121] collections.Counter's += copies the entire object

2011-10-07 Thread Lars Buitinck
Lars Buitinck added the comment: If this is not implemented because it is backwards incompat, then it might be useful to add a note to update's docstring explaining that it is much more efficient than +=. I was very surprised that it took *minutes* to add a few thousand moderate-sized Counter

[issue13119] Newline for print() is \n on Windows, and not \r\n as expected

2011-10-07 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: > If the output is redirected (e.g. into a file), > TextIOWrapper is created with line_buffering=False. How does this affect the \r\n translation? -- ___ Python tracker

[issue1164953] logging.basicConfig creates phantom handler

2011-10-07 Thread Vinay Sajip
Vinay Sajip added the comment: @anatoly: What failure do you mean? The behaviour that logistix described is not a failure, it's by design. See my closing comment. -- ___ Python tracker _

[issue13114] check -r fails with non-ASCII unicode long_description

2011-10-07 Thread Кирилл Кузьминых
Changes by Кирилл Кузьминых : -- type: crash -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue10141] SocketCan support

2011-10-07 Thread Charles-François Natali
Charles-François Natali added the comment: >From python-dev: """ I work on Ubuntu Jaunty for my cpython development work - an old version, I know, but still quite serviceable and has worked well for me over many months. With the latest default cpython repository, however, I can't run the regress

[issue13121] collections.Counter's += copies the entire object

2011-10-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'll add the in-place methods including __iadd__, __isub__, __iand__, and __ior__. If speed is your issue, you should continue to use the update() method which will always be faster because it doesn't have a step to strip zeros and negative values from th

[issue1164953] logging.basicConfig creates phantom handler

2011-10-07 Thread anatoly techtonik
anatoly techtonik added the comment: I know that it is by design, but from all logging users you may be the only one who keeps this behaviour in mind. The message why basicConfig() failed will be more user-friendly. -- ___ Python tracker

[issue12943] tokenize: add python -m tokenize support back

2011-10-07 Thread Meador Inge
Meador Inge added the comment: Éric, thanks. I fixed most of your points. And thanks to everyone that reviewed this. Much appreciated. -- ___ Python tracker ___

[issue12943] tokenize: add python -m tokenize support back

2011-10-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 85254bb6c1c6 by Meador Inge in branch 'default': Issue #12943: python -m tokenize support has been added to tokenize. http://hg.python.org/cpython/rev/85254bb6c1c6 -- nosy: +python-dev ___ Python tracker

[issue12943] tokenize: add python -m tokenize support back

2011-10-07 Thread Meador Inge
Changes by Meador Inge : -- assignee: docs@python -> meador.inge resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue12192] Doc that collection mutation methods return item or None

2011-10-07 Thread Mike Hoy
Changes by Mike Hoy : -- nosy: +mikehoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue12602] Missing using docs cross-references

2011-10-07 Thread Mike Hoy
Changes by Mike Hoy : -- nosy: +mikehoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue12602] Missing using docs cross-references

2011-10-07 Thread Nick Coghlan
Nick Coghlan added the comment: The 'using docs' are, oddly enough, the part of the docs called 'using' :) In particular, the part about the command line components (including the '

[issue13063] test_concurrent_futures failures on Windows: IOError('[Errno 232] The pipe is being closed') on _send_bytes()

2011-10-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset d8d8374ddbcc by Antoine Pitrou in branch '3.2': Issue #13063: the Windows error ERROR_NO_DATA (numbered 232 and described http://hg.python.org/cpython/rev/d8d8374ddbcc New changeset 3784b6000640 by Antoine Pitrou in branch 'default': Issue #13063:

[issue13063] test_concurrent_futures failures on Windows: IOError('[Errno 232] The pipe is being closed') on _send_bytes()

2011-10-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: Hopefully this will fix the random failures (EPIPE is caught somewhere down in multiprocessing.Queue._feed). -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> pending ___ Python trac

[issue1164953] logging.basicConfig creates phantom handler

2011-10-07 Thread Vinay Sajip
Vinay Sajip added the comment: > anatoly techtonik added the comment: > > I know that it is by design, but from all logging users you may be the only > one > who keeps this behaviour in mind. The message why basicConfig() failed will > be > more user-friendly. You're not likely to be awar

[issue1164953] logging.basicConfig creates phantom handler

2011-10-07 Thread anatoly techtonik
anatoly techtonik added the comment: There were no request to change the behaviour, because there is already this closed issue where it is clearly said that this won't be fixed. However, this doesn't cancel the fact that logging package needs enhancements to be more pythonic (i.e. intuitive a

[issue10141] SocketCan support

2011-10-07 Thread Vinay Sajip
Vinay Sajip added the comment: I added the line in the suggested place: #ifdef HAVE_LINUX_TIPC_H # include #endif #ifdef HAVE_LINUX_CAN_H #include /* the line I added - line 76 */ #include #endif #ifdef HAVE_LINUX_CAN_RAW_H #include #endif Strangely, it seems to make no difference! I co

[issue13118] Py_BuildValue format f incorrect description.

2011-10-07 Thread Félix-Antoine Fortin
Félix-Antoine Fortin added the comment: I stand corrected. -- resolution: -> rejected status: open -> closed ___ Python tracker ___

[issue12823] Broken link in "SSL wrapper for socket objects" document

2011-10-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 459f5e10cd4f by Antoine Pitrou in branch '3.2': Issue #12823: remove broken link and replace it with another resource. http://hg.python.org/cpython/rev/459f5e10cd4f New changeset e80121fd12ba by Antoine Pitrou in branch 'default': Issue #12823: rem

[issue13122] Out of date links in the sidebar of the documentation index of versions 3.1 and 3.2

2011-10-07 Thread Sven Marnach
New submission from Sven Marnach : The sidebar on http://docs.python.org/release/3.1.3/ names 3.2 as the development version of Python, while the link points to 3.3. The sidebar on http://docs.python.org/py3k/ links to 3.1 as the "stable version" -- obviously a relict from the time when 3.2 w

[issue12823] Broken link in "SSL wrapper for socket objects" document

2011-10-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 666e7e325795 by Antoine Pitrou in branch '2.7': Issue #12823: remove broken link and replace it with another resource. http://hg.python.org/cpython/rev/666e7e325795 -- ___ Python tracker

[issue12823] Broken link in "SSL wrapper for socket objects" document

2011-10-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: Fixed now. Hopefully the replacement resource is good enough. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker _

[issue10141] SocketCan support

2011-10-07 Thread Vinay Sajip
Vinay Sajip added the comment: Just to test, I added the full absolute path name in socketmodule.h: #ifdef HAVE_LINUX_CAN_H #include "/usr/include/linux/socket.h" #include #endif Now, the snippet from pre-processing is: # 182 "/usr/include/linux/tipc.h" 3 4 struct sockaddr_tipc { unsigned s

[issue10141] SocketCan support

2011-10-07 Thread Vinay Sajip
Vinay Sajip added the comment: Ok, I found that linux/socket.h *is* actually included earlier, from /usr/include/linux/netlink.h. However, the AF_CAN definition appears only under the condition #if defined(__KERNEL__) || !defined(__GLIBC__) || (__GLIBC__ < 2) ... #define AF_CAN 29

[issue1164953] logging.basicConfig creates phantom handler

2011-10-07 Thread Vinay Sajip
Vinay Sajip added the comment: > There were no request to change the behaviour, because there is already this > closed issue where it is clearly said that this won't be fixed. Sure, but this issue seldom comes up as a point of confusion on comp.lang.python. If you think the documentation is c

[issue13123] bdist_wininst uninstaller does not remove pycache directories

2011-10-07 Thread Paul Moore
New submission from Paul Moore : When uninstalling a package installed using a bdist_wininst installer, the uninstall reports "XXX files and directories could not be removed". The problem appears to be the __pycache__ directories introduced in Python 3.2, which are not removed properly. -

[issue13114] check -r fails with non-ASCII unicode long_description

2011-10-07 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the quick patch! I feared it would be something more complicated :) I will add a test and commit this. (I added 3.2 and 3.3 to the versions because I will add the test there too, to make sure the code behaves right.) Can you give me a Latin transl

[issue2945] bdist_rpm does not list dist files (should effect upload)

2011-10-07 Thread Éric Araujo
Éric Araujo added the comment: Great! Could you add a test for this? By the way, do you have a machine with rpm installed? I don’t, so I won’t be able to test the patch. -- ___ Python tracker __

[issue10141] SocketCan support

2011-10-07 Thread Charles-François Natali
Charles-François Natali added the comment: > which would imply that on this system at least, the AF_CAN definition is > supposed to come from elsewhere. Yes, from . Looks like a crappy libc version: is present, but AF_CAN is not defined. Just for fun, is PF_CAN defined? You might try the fo

[issue12436] Missing items in installation/setup instructions

2011-10-07 Thread Éric Araujo
Éric Araujo added the comment: Thanks Mike! So the first item is covered (at least for UNIX, can you check the Windows docs too?), but not the second. The item you linked to explains how to modify a script so that it’s possible to run ./script on Unix, but does not give an actual example of

[issue11250] 2to3 truncates files at formfeed character

2011-10-07 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- assignee: -> barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue12602] Missing cross-references in Doc/using

2011-10-07 Thread Éric Araujo
Éric Araujo added the comment: Terry, might that other issue be #12298? -- title: Missing using docs cross-references -> Missing cross-references in Doc/using ___ Python tracker __

[issue11250] 2to3 truncates files at formfeed character

2011-10-07 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I also noticed that test_parser.py isn't being run in either 3.2 or 3.3. I'll fix that at the same time I port this patch to 3.2. -- ___ Python tracker

[issue13123] bdist_wininst uninstaller does not remove pycache directories

2011-10-07 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the report. Are you familiar with the bdist_wininst code? I am not (yet), so if you could make a patch it would help a lot. See also #11254 (which I will commit shortly). -- ___ Python tracker

[issue11254] distutils doesn't byte-compile .py files to __pycache__ during installation

2011-10-07 Thread Éric Araujo
Éric Araujo added the comment: I will commit this today or tomorrow. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue10359] ISO C cleanup

2011-10-07 Thread Ezio Melotti
Ezio Melotti added the comment: According to the latest patch updated by Victor, there are only 3 files left: * Lib/distutils/tests/test_config_cmd.py * Python/Python-ast.c * Modules/_ctypes/libffi/src/x86/ffi.c The first is in a test and it's probably safe to fix (Éric, do you want to take

[issue10141] SocketCan support

2011-10-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Making the change in configure.in didn't lead to any change: no error > when I ran configure Did you run autoconf (or autoreconf) before? -- ___ Python tracker

[issue10141] SocketCan support

2011-10-07 Thread Vinay Sajip
Vinay Sajip added the comment: PF_CAN is defined by #define PF_CAN AF_CAN in linux/socket.h :-( Making the change in configure.in didn't lead to any change: no error when I ran configure (which is ./configure --with-py-debug in my case), and when I build, the same error (AF_CAN und

[issue13078] Python Crashes When Saving Or Opening

2011-10-07 Thread Ezio Melotti
Ezio Melotti added the comment: Maybe #12988 is related. -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue10141] SocketCan support

2011-10-07 Thread Vinay Sajip
Vinay Sajip added the comment: > Did you run autoconf (or autoreconf) before? D'oh! I didn't realise I had to, though in retrospect it should have been obvious ... autoconf isn't even installed on my system, and I can't install it at the moment because of some problem with the Ubuntu repos fo

[issue10359] ISO C cleanup

2011-10-07 Thread Éric Araujo
Éric Araujo added the comment: I will commit this fix and push this week-end or Monday. -- ___ Python tracker ___ ___ Python-bugs-lis

[issue9100] test_sysconfig fails (test_user_similar)

2011-10-07 Thread Éric Araujo
Éric Araujo added the comment: I will work on a patch. -- assignee: tarek -> eric.araujo versions: -Python 3.1 ___ Python tracker ___ ___

[issue12436] Missing items in installation/setup instructions

2011-10-07 Thread Mike Hoy
Mike Hoy added the comment: > Thanks Mike! So the first item is covered (at least for UNIX, can you > check the Windows docs too?), but not the second. http://docs.python.org/dev/using/windows.html Makes no reference to preparing a text editor. This I could help with but... > The item you

[issue10141] SocketCan support

2011-10-07 Thread Charles-François Natali
Charles-François Natali added the comment: Here's a better patch. It only touches socketmodule.c, so no need for autoconf, just use make. If it works on your box, I'll test it on the custom buildbots before pushing it for good (if I learned one thing, it's to never underestimate the potential f

[issue8087] Unupdated source file in traceback

2011-10-07 Thread Éric Araujo
Éric Araujo added the comment: I do not understand what the proposed feature is. I also think it should be discussed on the python-ideas mailing list first: http://mail.python.org/listinfo/python-ideas -- nosy: +eric.araujo ___ Python tracker

[issue10141] SocketCan support

2011-10-07 Thread Vinay Sajip
Vinay Sajip added the comment: That did the trick - I can now build the socket module. Thanks! I noticed that the module initialisation code uses #ifdef AF_CAN and #ifdef PF_CAN rather than #ifdef HAVE_LINUX_CAN_H :-) -- ___ Python tracker

[issue12314] regrtest checks (os.environ, sys.path, etc.) are hard to use

2011-10-07 Thread Éric Araujo
Éric Araujo added the comment: Idea: when a regrtest check fails, the test is run again but a WatchfulMixin is injected into the test case’s bases, so that setUp and tearDown call the right methods. This would be more efficient than always running with a watchful test runner. -- __

[issue13038] distutils windows installer STATUS_INVALID_CRUNTIME_PARAMETER (C0000417) exception when python dir is read only

2011-10-07 Thread Éric Araujo
Éric Araujo added the comment: Are these winsinst or MSI installers? -- components: +Distutils2 -Distutils nosy: +alexis versions: +3rd party, Python 3.3 -Python 2.7 ___ Python tracker

[issue13038] distutils windows installer STATUS_INVALID_CRUNTIME_PARAMETER (C0000417) exception when python dir is read only

2011-10-07 Thread Mitch Frazier
Mitch Frazier added the comment: On 10/7/2011 10:27 AM, Éric Araujo wrote: > > Éric Araujo added the comment: > > Are these winsinst or MSI installers? They are windows installers (winsinst). > > -- > components: +Distutils2 -Distutils > nosy: +alexis > versions: +3rd party, Python 3.

[issue4489] shutil.rmtree is vulnerable to a symlink attack

2011-10-07 Thread Éric Araujo
Éric Araujo added the comment: I made another review but my mail was rejected. http://bugs.python.org/review/4489/diff/3383/10563#newcode319 Lib/test/test_shutil.py:319: @unittest.skipIf(threading == None, 'requires threading') You can just say skipUnless(threading, 'msg') http://bugs.python.o

[issue12436] Missing items in installation/setup instructions

2011-10-07 Thread Éric Araujo
Éric Araujo added the comment: > http://docs.python.org/dev/using/windows.html Makes no reference to > preparing a text editor. This I could help with but... Cool, please follow the guidelines in the devguide to make a patch for 3.2. It should be something short, like the unix docs, mostly to

[issue13038] bdist_wininst installers should warn if target dir is read-only

2011-10-07 Thread Éric Araujo
Éric Araujo added the comment: All right. Reclassifying as a feature request for distutils2/packaging (in Python 3.3). -- stage: -> needs patch title: distutils windows installer STATUS_INVALID_CRUNTIME_PARAMETER (C417) exception when python dir is read only -> bdist_wininst ins

[issue7833] bdist_wininst installers fail to load extensions built with Issue4120 patch

2011-10-07 Thread Éric Araujo
Éric Araujo added the comment: There is a already a test for manifest things in Lib/distutils/tests/test_msvc9compiler.py, and higher-level tests for building extension modules in Lib/distutils/tests/test_build_ext.py and Lib/distutils/tests/test_install.py. -- _

[issue7833] bdist_wininst installers fail to load extensions built with Issue4120 patch

2011-10-07 Thread Éric Araujo
Éric Araujo added the comment: Let me add that I don’t know the MS toolchain at all, but if you tell me what a test should do (e.g. compile a C extension, open some compiled file and look for some bytes) I can write a test. -- ___ Python tracker <

[issue11250] 2to3 truncates files at formfeed character

2011-10-07 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Okay, re-enabling test_parser.py introduces a number of test failures in test_all_project_files(). Because I don't want to continue to shave the yak on this one, I'm going to wrap this test in @expectedFailure and open a separate bug for it. -- __

[issue12681] unittest expectedFailure could take a message argument like skip does

2011-10-07 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: It would be nice if expectedFailure took a bug number and printed a url to the tracker. -- nosy: +barry ___ Python tracker ___ __

[issue13124] Add "Running a Build Slave" page to the devguide

2011-10-07 Thread Eric Snow
New submission from Eric Snow : Here's a patch to add a page to the devguide on running a build slave. I copied pretty liberally from the wiki (http://wiki.python.org/moin/BuildBot). That page may or may not be up to date (I don't know), so the bulk of this new page may also be out of date..

[issue12436] Missing items in installation/setup instructions

2011-10-07 Thread Mike Hoy
Mike Hoy added the comment: > mostly to recommend Notepad++ I think. In addition to Notepad++ do you think it would be a good idea to at least mention Vim and Emacs with a disclaimer about the learning curve? > For Windows users, added a section about how to use a terminal and Do you think

[issue13125] test_all_project_files() expected failure

2011-10-07 Thread Barry A. Warsaw
New submission from Barry A. Warsaw : In working on issue 11250, I noticed that lib2to3's test_parser.py tests were not enabled. Fixing that was easy enough, but then test_all_project_files() in TestParserIdempotency began failing. I've shaved enough yaks for the day so I am going to leave t

[issue13114] check -r fails with non-ASCII unicode long_description

2011-10-07 Thread Kirill Kuzminykh
Kirill Kuzminykh added the comment: Latin transliteration of my name is Kirill Kuzminykh. -- ___ Python tracker ___ ___ Python-bugs-l

[issue13123] bdist_wininst uninstaller does not remove pycache directories

2011-10-07 Thread Paul Moore
Paul Moore added the comment: Not really (tbh, not at all). If I get some spare time, I can have a look at producing a patch, but I have little time available for coding at the moment (and I'm switching constantly between 3 PCs, so never have a working development environment when I need one :-(

[issue13063] test_concurrent_futures failures on Windows: IOError('[Errno 232] The pipe is being closed') on _send_bytes()

2011-10-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: Mmh, for some reason it seems it was not enough: http://www.python.org/dev/buildbot/all/builders/x86%20XP-4%203.x/builds/5328/steps/test/logs/stdio -- status: pending -> open ___ Python tracker

[issue7367] pkgutil.walk_packages fails on write-only directory in sys.path

2011-10-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 17b5afd321a8 by Ned Deily in branch '2.7': Issue #7367: Ensure test directory always gets removed. http://hg.python.org/cpython/rev/17b5afd321a8 New changeset ff72f76dcf43 by Ned Deily in branch '3.2': Issue #7367: Ensure test directory always gets

[issue13124] Add "Running a Build Slave" page to the devguide

2011-10-07 Thread Ezio Melotti
Ezio Melotti added the comment: A few comments: * are you following some convention about the spelling of buildbot/Buildbot/BuildBot? * "+3. the standard development toolchain." Which is? I think a compiler is the only missing bit. * "(in which case you'll have to install Python and T

[issue13122] Out of date links in the sidebar of the documentation index of versions 3.1 and 3.2

2011-10-07 Thread Ned Deily
Changes by Ned Deily : -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue13124] Add "Running a Build Slave" page to the devguide

2011-10-07 Thread Eric Snow
Eric Snow added the comment: Great feedback! Keep in mind that nearly all the content in my patch is pulled unedited from either the wiki page and the python-dev thread I mentioned. I'll work on cleaning it up when I get a chance (probably after Wednesday's PyCon CFP closes :). If anyone wa

[issue11250] 2to3 truncates files at formfeed character

2011-10-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6e0e9237d8e8 by Barry Warsaw in branch '3.2': - Issue #11250: Back port fix from 3.3 branch, so that 2to3 can handle files http://hg.python.org/cpython/rev/6e0e9237d8e8 -- nosy: +python-dev ___ Python tr

[issue13125] test_all_project_files() expected failure

2011-10-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 914d3f035887 by Barry Warsaw in branch 'default': - Re-enable lib2to3's test_parser.py tests, though with an expected failure http://hg.python.org/cpython/rev/914d3f035887 New changeset ed0315b9da72 by Barry Warsaw in branch 'default': - Re-enable

[issue12436] Missing items in installation/setup instructions

2011-10-07 Thread Ezio Melotti
Ezio Melotti added the comment: > In addition to Notepad++ do you think it would be a good idea to at > least mention Vim and Emacs with a disclaimer about the learning curve? I'm not sure how many windows user use Vim/Emacs. Maybe PyScripter could be mentioned too, but I'm not sure how popul

[issue13124] Add "Running a Build Slave" page to the devguide

2011-10-07 Thread Stefan Krah
Stefan Krah added the comment: I think the whole security paragraph should be deleted. The discussion on python-dev has overstated the risks. Anyone who is *that* security conscious and in effect does not trust the Python committers should also audit the thousands of lines of ./configure and an

[issue4489] shutil.rmtree is vulnerable to a symlink attack

2011-10-07 Thread Ross Lagerwall
Ross Lagerwall added the comment: http://bugs.python.org/review/4489/diff/3383/10563#newcode319 Lib/test/test_shutil.py:319: @unittest.skipIf(threading == None, 'requires threading') On 2011/10/07 19:29:47, eric.araujo wrote: > You can just say skipUnless(threading, 'msg') Right. http://bugs.p

[issue12436] Missing items in installation/setup instructions

2011-10-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: Oops. I just noticed this issue is not talking about the devguide, but the general docs. Please ignore the message above. -- ___ Python tracker __

[issue12436] Missing items in installation/setup instructions

2011-10-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: > In addition to Notepad++ do you think it would be a good idea to at > least mention Vim and Emacs with a disclaimer about the learning curve? I'm a bit surprised. I would think the devguide is aimed are people who are *already* programmers, and have chosen t

[issue11250] 2to3 truncates files at formfeed character

2011-10-07 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue13126] find() slower than rfind()

2011-10-07 Thread Antoine Pitrou
New submission from Antoine Pitrou : With some gcc versions, str.find() is slower than str.rfind(): - 11.22 0.0 s="ABC"*33; ((s+"D")*500+s+"E").find(s+"E") (*100) - 4.560.0 s="ABC"*33; ((s+"D")*500+"E"+s).find("E"+s) (*100) - 6.710.0 s="ABC"*33; (s+"E") in

[issue13063] test_concurrent_futures failures on Windows: IOError('[Errno 232] The pipe is being closed') on _send_bytes()

2011-10-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ah, this is because IOError is raised because of WindowsError, thus there's no errno translation. Ok, I'd like to wait for PEP 3151 to be merged, then, because it should solve this. -- ___ Python tracker

[issue11085] expose _abcoll as collections.abc

2011-10-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: > collections is one of those modules everyone will use in their code. Simply untrue, and definitely not in every program. It is also irrelevant for bringing up the interactive interpreter, where there initially is no user code and which should happen as fast

[issue11085] expose _abcoll as collections.abc

2011-10-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: > > collections is one of those modules everyone will use in their code. > > Simply untrue, and definitely not in every program. It is also > irrelevant for bringing up the interactive interpreter, where there > initially is no user code and which should happen

[issue13060] allow other rounding modes in round()

2011-10-07 Thread Aaron Robson
Aaron Robson added the comment: When i run into I have to bodge around it in ways like the below code. I've only ever used round half up, has anyone here even used Bankers Rounding by choice before? For reference here are the other options: http://en.wikipedia.org/wiki/Rounding#Tie-breaking

[issue8087] Unupdated source file in traceback

2011-10-07 Thread Ezio Melotti
Ezio Melotti added the comment: I'm not sure this is useful to have. If you changed your code you know that you have to reload, so why would you want a warning that tells you that you changed the code? For some reason I always had the opposite problem (i.e. after a reload the traceback was

[issue11085] expose _abcoll as collections.abc

2011-10-07 Thread Georg Brandl
Georg Brandl added the comment: You also have to think about command-line apps like Mercurial that need to be snappy. For those guys, a lot of added startup time is a big deal -- one of the reasons Matt Mackall hates thinking about a Python 3 port is that Python 3(.2) startup time is already

[issue10141] SocketCan support

2011-10-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset d4ce850b06b7 by Charles-François Natali in branch 'default': Issue #10141: fix socketmodule compilation on Linux systems with http://hg.python.org/cpython/rev/d4ce850b06b7 -- ___ Python tracker

[issue11682] PEP 380 reference implementation for 3.3

2011-10-07 Thread Armin Ronacher
Armin Ronacher added the comment: A little bit of input on this issue. Considering that exceptions are now getting keyword arguments for things like import errors and other things for attributes I would find it much better if StopIteration would follow that as well (StopIteration(value=42) i

[issue13107] Text width in optparse.py can become negative

2011-10-07 Thread Ezio Melotti
Ezio Melotti added the comment: argparse has some similar code in Lib/argparse.py:489. Can you reproduce the problem with argparse? If you can't and argparse solved the problem already, we might adopt the same solution; if you can, it should be fixed there too. -- nosy: +ezio.melotti

[issue3902] Packages containing only extension modules have to contain __init__.py

2011-10-07 Thread Mike Hoy
Mike Hoy added the comment: > We’re working on a patch on the core-mentorship list. Éric, I emailed the diff to the Core-Mentorship list, but since there was no reply I will just attach it here. Please review patch and let me know if you want any changes. -- keywords: +patch nosy: +m

[issue12681] unittest expectedFailure could take a message argument like skip does

2011-10-07 Thread Michael Foord
Michael Foord added the comment: Well, it would be nice for the Python test suite, maybe not so useful for external users of the api. Something for regrtest rather than unittest I think. -- ___ Python tracker ___

[issue13111] Error 2203 when installing Python/Perl?

2011-10-07 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +brian.curtin, tim.golden ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue13122] Out of date links in the sidebar of the documentation index of versions 3.1 and 3.2

2011-10-07 Thread Ezio Melotti
Ezio Melotti added the comment: AFAIK the doc for 3.1 is not rebuilt anymore, so even if it's fixed, the change won't have any visible effect -- unless someone manually triggers a rebuild. Regarding the 3.1 link on the py3k page: I think 'stable' still applies, even if it only receives securit

[issue12602] Missing cross-references in Doc/using

2011-10-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: As of 2.7/3.2, the doc is named "Python Setup and Usage" at http://docs.python.org/index.html http://docs.python.org/using/cmdline.html (and other chapters) and in the contents list of the Windows help version. For new doc editors, it would be nicer if the filen

  1   2   >