[issue11816] Refactor the dis module to provide better building blocks for bytecode analysis

2011-11-26 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: Removed file: http://bugs.python.org/file23773/9512712044a6.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11816 ___

[issue11816] Refactor the dis module to provide better building blocks for bytecode analysis

2011-11-26 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: Added file: http://bugs.python.org/file23773/9512712044a6.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11816 ___

[issue11816] Refactor the dis module to provide better building blocks for bytecode analysis

2011-11-26 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: I have updated my BitBucket repo with the following changes: - the main API is now dis.get_instructions() - the info class is now dis.Instruction - get_instructions() accepts a 'line_offset' argument that is added to any source code line

[issue13482] _tkinter.TclError: invalid command name tixDirSelectBox

2011-11-26 Thread Martin Unzner
New submission from Martin Unzner abmelde...@gmx.de: Hi all, while executing the following piece of code: import tkinter import tkinter.tix if __name__=='__main__': root = tkinter.Tk() dirlist = tkinter.tix.DirSelectBox(root) dirlist.pack() root.mainloop() the following error

[issue13433] String format documentation contains error regarding %g

2011-11-26 Thread Christian Iversen
Christian Iversen c...@sikkerhed.org added the comment: Terry, the %g format always trims trailing zeroes, so you'd have to try with a number that doesn't end in zero. I had to make a re-implementation of format for javascript: http://paste.pocoo.org/show/513078/ If you look at the %g case,

[issue13481] Use an accurate clock in timeit

2011-11-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Well, you only call the clock at the begining and end of a timing run, not at each iteration. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13481

[issue13415] del os.environ[key] ignores errors

2011-11-26 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 23ed66484ff2 by Charles-François Natali in branch 'default': Issue #13415: Skip test_os.test_unset_error on FreeBSD 7 and OS X 10.6 http://hg.python.org/cpython/rev/23ed66484ff2 --

[issue13482] _tkinter.TclError: invalid command name tixDirSelectBox

2011-11-26 Thread Martin Unzner
Martin Unzner abmelde...@gmx.de added the comment: Sorry, I just found the programming example in the documentary. Works now. -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13482

[issue13477] tarfile module should have a command line

2011-11-26 Thread Lars Gustäbel
Lars Gustäbel l...@gustaebel.de added the comment: This is no bad idea. I recommend keeping it as simple as possible. I would definitely not be supportive of a full tar clone. List, extract, create - that should be enough. There are two possible command line choices: do what the zipfile

[issue13481] Use an accurate clock in timeit

2011-11-26 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: _clocks = ['CLOCK_PROCESS_CPUTIME_ID', 'CLOCK_MONOTONIC_RAW', 'CLOCK_MONOTONIC', 'CLOCK_REALTIME'] Beware, we're mixing CPU time and wall-clock time: $ ./python -c from time import *; id = CLOCK_REALTIME; t =

[issue13481] Use an accurate clock in timeit

2011-11-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: With CLOCK_PROCESS_CPUTIME_ID: - depending on the platform, we'll measure either wall-clock time or CPU time Indeed. I thought CPU time would be more useful (and that's the point of the patch) but perhaps it breaks the spec. - preemtion,

[issue13481] Use an accurate clock in timeit

2011-11-26 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Indeed. I thought CPU time would be more useful (and that's the point of the patch) Ah, OK. Then you should probably rename the issue make timeit measure CPU time, or something like that, because I really thought this issue was

[issue13481] Use an accurate clock in timeit

2011-11-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: But does it include kernel CPU time for the given process? Yes. But it won't be reliable, for example, to measure the performance of a new readinto() implentation, since time spent by the process in 'S' or 'D' state won't be accounted for.

[issue13475] Add '-p'/'--path0' command line option to override sys.path[0] initialisation

2011-11-26 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Eric: Actually I posted my comments after reading only Nick’s message, not yours, so no worry :) Nick: the just do the right thing aspect is covered by PEP 395. This is great. Thanks for clarifying. This is an orthogonal proposal that allows

[issue13450] add assertions to implement the intent in ''.format_map test

2011-11-26 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: When someone puts thought into a report or patch, they deserve to be in Misc/ACKS. Just noticing one typo doesn’t qualify, but pretty much anything above does. :) -- nosy: +eric.araujo versions: -Python 3.4

[issue13465] A Jython section in the dev guide would be great

2011-11-26 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: python.org is not specific to CPython, but I agree with Antoine that docs.python.org/devguide is. So I went and found the blog post that Frank alludes to in the OP is here: http://fwierzbicki.blogspot.com/2011/11/contributing-to-jython.html

[issue13467] Typo in doc for library/sysconfig

2011-11-26 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks, I’ll fix this. -- assignee: docs@python - eric.araujo nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13467 ___

[issue13474] Mention of -m Flag Missing From Doc on Execution Model

2011-11-26 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I guess you’re suggesting adding a mention of -m in the section near the top that says that a script file and code passed to -c are blocks? Makes sense. The same commit could also improve the markup to link to the description of script, -c

[issue13483] Use VirtualAlloc to allocate memory arenas

2011-11-26 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: Similar to issue #11849, this patch proposes to use VirtualAlloc/VirtualFree to allocate the Python allocator's memory arenas (rather than malloc() / free()). It might help release more memory if there is some fragmentation, although I don't

[issue13477] tarfile module should have a command line

2011-11-26 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13477 ___ ___ Python-bugs-list

[issue12618] py_compile cannot create files in current directory

2011-11-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The tests break on the Windows buildbots: == ERROR: test_relative_path (test.test_py_compile.PyCompileTests)

[issue13457] Use repr(module name) ImportErrors

2011-11-26 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: __import__ and importlib in Python 3.3 already use repr (see c4361bab6914 and 9f9b7b656761): Traceback (most recent call last): File string, line 1, in module ImportError: No module named 'string\n' For other stdlib modules, see #8754.

[issue12307] Inconsistent formatting of section titles in PEP 0

2011-11-26 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I read this report again a few days ago and saw you were right, so I fixed it. Thanks! (The peps repo is not hooked up to close bugs, because we don’t usually use the bug tracker to discuss PEPs (we use mailing lists). The PEPs pages (not

[issue13451] sched.py: speedup cancel() method

2011-11-26 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: New patch in attachment takes care of modifying empty() and queue property according with the new implementation. With this, the API behaves the same as before (this was my main concern). Also, it's smarter when it comes to cleaning up too

[issue13451] sched.py: speedup cancel() method

2011-11-26 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: Added file: http://bugs.python.org/file23786/bench.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13451 ___

[issue13400] packaging: build command should have options to control byte-compilation

2011-11-26 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Okay, I think it’s a valuable use case. (Out of curiosity, why don’t you want byte-compiled files on your system? It speeds up imports, and problems due to the presence of stray pyc files when the py is deleted are gone in 3.2+. Maybe you

[issue10752] build_ssl.py is relying on unreliable behaviour of os.popen

2011-11-26 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +brian.curtin, tim.golden stage: - patch review versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10752 ___

[issue1521950] shlex.split() does not tokenize like the shell

2011-11-26 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: Removed file: http://bugs.python.org/file23778/ref_shlex.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1521950 ___

[issue1521950] shlex.split() does not tokenize like the shell

2011-11-26 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: Removed file: http://bugs.python.org/file23779/test_shlex.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1521950 ___

[issue1521950] shlex.split() does not tokenize like the shell

2011-11-26 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for the diff and test. (I removed the older versions; there are “edit” links in the list of files leading to pages where it’s possible to remove them, if one has the required permissions.) Your script passes with dash, which is probably

[issue12424] distutils2: extension section uses bad environment marker separator

2011-11-26 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: if a line ends with ;;, _pop_values() will call interpret() with an empty string. [...] it just means interpret() would return False, causing the line to be ignored, which is probably fine for that border case Hm, I’d rather call that a

[issue13472] devguide doesn’t list all build dependencies

2011-11-26 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I have a few arguments in favor of my position: Hm, I said that people wanted a “feature-full library” but I was confused: We’re talking about a Python built for contributing, not to develop your app, so my argument does not apply. So, the

[issue12424] distutils2: extension section uses bad environment marker separator

2011-11-26 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Latest patch looks good. Looking at the examples with ';;' or even '--', I think that their role is non-obvious. Even though the PEP and docs explained them, there is value in using intuitive (“guessable”) markup. So if the constraints are

[issue8684] improvements to sched.py

2011-11-26 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Looking back at this patch, I think we can extract the thread-synchronization parts and the peek() method, as they're both valuable additions, especially the first one. The very sched doc says: In multi-threaded environments, the

[issue1521950] shlex.split() does not tokenize like the shell

2011-11-26 Thread Dan Christian
Dan Christian robo...@users.sourceforge.net added the comment: On Sat, Nov 26, 2011 at 7:12 AM, Éric Araujo rep...@bugs.python.org wrote: Your script passes with dash, which is probably the most POSIX-compliant shell we can find.  (bash has extensions, zsh/csh don’t use the POSIX shell

[issue12618] py_compile cannot create files in current directory

2011-11-26 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: On Sat, Nov 26, 2011 at 7:17 AM, Antoine Pitrou rep...@bugs.python.org wrote: The tests break on the Windows buildbots: I am investigating now. -- ___ Python tracker rep...@bugs.python.org

[issue6715] xz compressor support

2011-11-26 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: Victor: Thanks for the review; I've replied to your comments and updated the patch. Let me know what you think of the changes. -- ___ Python tracker rep...@bugs.python.org

[issue1521950] shlex.split() does not tokenize like the shell

2011-11-26 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I was just looking for a reference where I didn't have to sift through tons of documentation. Sure :) That’s why I suggest using dash for quick tests and rely on the work of other people who did read the POSIX spec. I’ll have to check it too

[issue13484] mail rejected: tu...@python.org

2011-11-26 Thread David W. Lambert
New submission from David W. Lambert b49p23t...@stny.rr.com: I sent this question to tu...@python.org as advertised at http://mail.python.org/mailman/listinfo/tutor The message was returned, and we still need an answer to the question. I'll post it as a separate bug. Thank you, Dave. From:

[issue13485] tcl question

2011-11-26 Thread David W. Lambert
New submission from David W. Lambert b49p23t...@stny.rr.com: I was unable to solve this question. http://forums.devshed.com/python-programming-11/setting-tkinter-checkbox-default-graphical-state-865148.html Summary: Trouble initiating button in checked state.

[issue13484] mail rejected: tu...@python.org

2011-11-26 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Please report troubles to the listmasters listed on the bottom of each mailing list’s description page. Thanks. -- components: -None nosy: +eric.araujo resolution: - invalid stage: - committed/rejected status: open - closed

[issue1521950] shlex.split() does not tokenize like the shell

2011-11-26 Thread Dan Christian
Dan Christian robo...@users.sourceforge.net added the comment: Sure :)  That’s why I suggest using dash for quick tests and rely on the work of other people who did read the POSIX spec.  I’ll have to check it too before committing a patch. The point of ref_shlex.py is that all shells act

[issue12618] py_compile cannot create files in current directory

2011-11-26 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset b23453530d5f by Meador Inge in branch '2.7': Issue #12618: fix py_compile unit tests to handle different drives on Windows http://hg.python.org/cpython/rev/b23453530d5f New changeset 7097d52cacee by Meador Inge in

[issue12618] py_compile cannot create files in current directory

2011-11-26 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: The tests are fixed now. A relative path was being computed, but on Windows the current working directory drive and the drive of the relative path we were computing was different (and so this test bug would *not* be seen if running on a

[issue13460] urllib methods should demand unicode, instead demand str

2011-11-26 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Well, most of the point of Python3 is that the string type *is* unicode, which is what I meant by saying that you probably wanted Python3 in order to solve your concern :) There are still a few bugs to work out in the

[issue13485] tcl question

2011-11-26 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Sorry, the issue tracker is not a place to ask for help. Please use the python-list mailing list or the comp.lang.python channel instead. -- nosy: +amaury.forgeotdarc resolution: - invalid status: open - closed

[issue13444] closed stdout causes error on stderr when the interpreter unconditionally flushes on shutdown

2011-11-26 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 150e096095e5 by Antoine Pitrou in branch '3.2': Issue #13444: When stdout has been closed explicitly, we should not attempt to flush it at shutdown and print an error. http://hg.python.org/cpython/rev/150e096095e5

[issue5319] stdout error at interpreter shutdown fails to return OS error status

2011-11-26 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 150e096095e5 by Antoine Pitrou in branch '3.2': Issue #13444: When stdout has been closed explicitly, we should not attempt to flush it at shutdown and print an error. http://hg.python.org/cpython/rev/150e096095e5

[issue13486] msvc9compiler.py doesn't properly generate manifest files.

2011-11-26 Thread Jahangir
New submission from Jahangir j4han...@yahoo.com: msvc9compiler.py aims to generate a manifestation file but it will always fail as MSVC (cl.exe) needs a second /MANIFEST parameter to do so. This makes the subsequent 'linking' processes fail with the following error: general error c1010070:

[issue7111] abort when stderr is closed

2011-11-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Attached patch allows Python to run even if no standard stream is available. I use dup() to detect whether a fd is valid. -- keywords: +patch nosy: +neologix stage: - patch review versions: +Python 3.3 -Python 3.1 Added file:

[issue13415] del os.environ[key] ignores errors

2011-11-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Oh, thanks Charles François for your two patches. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13415 ___

[issue6715] xz compressor support

2011-11-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: The last patch (9276fc685c05.diff) looks good to me. Go ahead for the commit! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6715

[issue13415] del os.environ[key] ignores errors

2011-11-26 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 919259054621 by Victor Stinner in branch 'default': Issue #13415: Help to locate curses.h when _curses module is linked to ncursesw http://hg.python.org/cpython/rev/919259054621 --

[issue13415] del os.environ[key] ignores errors

2011-11-26 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- Removed message: http://bugs.python.org/msg148428 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13415 ___

[issue12567] curses implementation of Unicode is wrong in Python 3

2011-11-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: New changeset 919259054621 by Victor Stinner in branch 'default': Issue #13415: Help to locate curses.h when _curses module is linked to ncursesw http://hg.python.org/cpython/rev/919259054621 (Oops, wrong issue number, again)

[issue12567] curses implementation of Unicode is wrong in Python 3

2011-11-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: This broke several Gentoo buildbots. setup.py is unable to locate correctly curses.h. I added a hack to always search in /usr/include/ncursesw/. The hack is needed on Ubuntu 11.10 if you only have libncursesw5-dev but not

[issue13475] Add '-p'/'--path0' command line option to override sys.path[0] initialisation

2011-11-26 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13475 ___

[issue6135] subprocess seems to use local 8-bit encoding and gives no choice

2011-11-26 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6135 ___

[issue13466] new timezones

2011-11-26 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13466 ___

[issue10318] make altinstall installs many files with incorrect shebangs

2011-11-26 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10318 ___

[issue13457] Use repr(module name) ImportErrors

2011-11-26 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +eric.snow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13457 ___ ___ Python-bugs-list

[issue12307] Inconsistent formatting of section titles in PEP 0

2011-11-26 Thread Eric Snow
Eric Snow ericsnowcurren...@gmail.com added the comment: Thanks, Éric. That's what I figured. I asked because the PEPs page doesn't appear to reflect the change: http://www.python.org/dev/peps/ I checked to be sure it fixed it before I submitted the patch. That's why I asked about

[issue13437] Provide links to the source code for every module in the documentation

2011-11-26 Thread Julian Berman
Julian Berman julian+python@grayvines.com added the comment: Well, if there's opposition I don't know how strongly I feel about this then, but I generally agree with you Ezio, if there's an occasion where 1) applies fixing the docs is certainly reasonable. If I'm checking the source

[issue5319] stdout error at interpreter shutdown fails to return OS error status

2011-11-26 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5319 ___

[issue13444] closed stdout causes error on stderr when the interpreter unconditionally flushes on shutdown

2011-11-26 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13444 ___

[issue13475] Add '-p'/'--path0' command line option to override sys.path[0] initialisation

2011-11-26 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Zbigniew posted a nice summary of some of the issues sys.path[0] autoinitialisation can cause to python-dev: http://mail.python.org/pipermail/python-dev/2011-November/114668.html -- ___ Python

[issue7111] abort when stderr is closed

2011-11-26 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7111 ___

[issue12618] py_compile cannot create files in current directory

2011-11-26 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: we don’t know what people do with symlinks and relative paths out there, so I’d prefer adding a safe special case* rather than always calling abspath. What do you think? Éric, I agree. I didn't know about the strange symlink + relative

[issue13405] Add DTrace probes

2011-11-26 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- hgrepos: +92 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13405 ___ ___ Python-bugs-list mailing list

[issue2771] Test issue

2011-11-26 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset fc1e01fe7f30 by Antoine Pitrou in branch 'default': test hook with issue #2771. http://hg.python.org/test/rev/fc1e01fe7f30 -- ___ Python tracker rep...@bugs.python.org

[issue13400] packaging: build command should have options to control byte-compilation

2011-11-26 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment: I suggest to not use pyc and pyo in options, because .pyc and .pyo filename extensions are specific to a subset of Python implementations. Jython uses $py.class filename extension (module$py.class for module.py).

[issue13473] Add tests for files byte-compiled by distutils[2]

2011-11-26 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment: What exactly do you consider to backport to distutils? -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13473

[issue13487] inspect.getmodule fails when module imports change sys.modules

2011-11-26 Thread Erik Tollerud
New submission from Erik Tollerud erik.tolle...@gmail.com: The inspect.getmodule function crashes if packages are installed that futz with sys.modules while they are being tested for module status or the like. I'm not actually sure which packages are doing this, but the symptom is the for

[issue13120] Default nosigint option to pdb.Pdb() prevents use in non-main thread

2011-11-26 Thread Ilya Sandler
Ilya Sandler ilya.sand...@gmail.com added the comment: I confirm the bug. But I don't think disabling Ctrl-C (SIGINT) handling by default is a good idea. Proper Ctrl-C support seems like a fundamental feature for a command line debugger. However, I think the bug is easily fixable w/o

[issue13487] inspect.getmodule fails when module imports change sys.modules

2011-11-26 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +eric.snow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13487 ___ ___ Python-bugs-list

[issue13488] Some old preprocessors have problem with #define not in the first colum

2011-11-26 Thread Jesús Cea Avión
New submission from Jesús Cea Avión j...@jcea.es: While working in dtrace probes, I have discovered that some old C preprocessors don't recognize #define if not in the first column. File Include/dynamic_annotations.h has quite a few indented #define. This is neither necessary neither regular

[issue13488] Some old preprocessors have problem with #define not in the first column

2011-11-26 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- title: Some old preprocessors have problem with #define not in the first colum - Some old preprocessors have problem with #define not in the first column ___ Python tracker rep...@bugs.python.org

[issue13488] Some old preprocessors have problem with #define not in the first column

2011-11-26 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 05979ae431fb by Jesus Cea in branch '3.2': Closes issue #13488: Some old preprocessors have problem with #define not in the first column http://hg.python.org/cpython/rev/05979ae431fb New changeset 3a44640682c3 by

[issue13488] Some old preprocessors have problem with #define not in the first column

2011-11-26 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13488 ___

[issue13405] Add DTrace probes

2011-11-26 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: Added file: http://bugs.python.org/file23792/d7c58422eada.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13405 ___

[issue13405] Add DTrace probes

2011-11-26 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: Preview of the 3.3 patch. Includes work from issue #13488. Work to do: - line probe. - jstack() helper. - Instance names work, but using internal undocumented API. Change that. Probably keeping an encoded version of the name for each type.

[issue13489] collections.Counter doc does not list added version

2011-11-26 Thread Shawn Ligocki
New submission from Shawn Ligocki sligo...@gmail.com: collections.Counter doc does not list added version: http://docs.python.org/library/collections.html It appears to only have been added in 2.7 (while the rest of the doc says it is valid since 2.4) -- assignee: docs@python

[issue13489] collections.Counter doc does not list added version

2011-11-26 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: I see the note just after the sausage example and in the table at the top of the page, from the link you provided. -- nosy: +ezio.melotti resolution: - invalid stage: - committed/rejected status: open - closed versions: -Python

[issue13489] collections.Counter doc does not list added version

2011-11-26 Thread Shawn Ligocki
Shawn Ligocki sligo...@gmail.com added the comment: Ah, I see, it seems like that would be better suited directly after the section title, don't you? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13489

[issue13489] collections.Counter doc does not list added version

2011-11-26 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: The convention is to put the note at the end of the section. For this specific case the section about Counter is immediately followed by the documentation of its methods, so it's indeed hard to notice. Maybe a different CSS would make