[issue14220] "yield from" kills generator on re-entry

2012-03-07 Thread Stefan Behnel
Stefan Behnel added the comment: Ah, yes, that should work in both implementations. I'll give it a try. Thanks! -- resolution: fixed -> status: closed -> open ___ Python tracker __

[issue14216] ImportError: No module named binascii

2012-03-07 Thread Qian Liu
Qian Liu added the comment: Hi, Eric Araujo, Thanks for your help. I run "make -s" and found the following message. It seems that binascii cannot be built correctly. What should I do? Many thanks. libpython2.7.a(posixmodule.o)(.text+0x47e1): In function `posix_tmpnam': ./Modules/posixmodule.c:

[issue14227] console w/ cp65001 displays extra characters for non-ascii strings.

2012-03-07 Thread Mark Tolonen
New submission from Mark Tolonen : This is on Windows 7 SP1. Run 'chcp 65001' then Python from a console. Note the extra characters when non-ASCII characters are in the string. At a guess it appears to be using the UTF-8 byte length of the internal representation instead of the character co

[issue13370] test_ctypes fails when building python with clang

2012-03-07 Thread Meador Inge
Meador Inge added the comment: LLVM/clang bug report here: http://llvm.org/bugs/show_bug.cgi?id=12207. -- ___ Python tracker ___ ___

[issue14205] Raise an error if a dict is modified during a lookup

2012-03-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0255bafbccf2 by Victor Stinner in branch 'default': Issue #14205: document the change of dict[key] behaviour if dict is modified http://hg.python.org/cpython/rev/0255bafbccf2 -- ___ Python tracker

[issue6755] Patch: new method get_wch for ncurses bindings: accept wide characters (unicode)

2012-03-07 Thread STINNER Victor
Changes by STINNER Victor : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue6755] Patch: new method get_wch for ncurses bindings: accept wide characters (unicode)

2012-03-07 Thread STINNER Victor
STINNER Victor added the comment: Antoine's issue has been fixed: "Modules/_cursesmodule.c:919:9: attention : implicit declaration of function ‘wget_wch’" It looks like Jesús's issue is specific to Solaris (or is already fixed?), and so I added a comment to the issue #13552: "Modules/_cursesm

[issue13552] Compilation issues of the curses module on OpenIndiana

2012-03-07 Thread STINNER Victor
STINNER Victor added the comment: Jesús Cea Avión also noticed in msg143798 from the issue #6755: I have compiled ncurses myself, supporting wide characters. I get this warnings in the buildbots: """ /export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Modules/_cursesmodule.c:920: warning:

[issue1469629] __dict__ = self in subclass of dict causes a memory leak

2012-03-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset c7623da4e2af by Benjamin Peterson in branch '2.7': allow cycles throught the __dict__ slot to be cleared (closes #1469629) http://hg.python.org/cpython/rev/c7623da4e2af -- ___ Python tracker

[issue14223] curses addch broken on Python3.3a1

2012-03-07 Thread STINNER Victor
STINNER Victor added the comment: I introduced the arbitrary limit when I added support of the curses Unicode API (libncursesw). The limit is useless if libncursesw is used, whereas it blocks legal "characters" like KEY_xxx constants. So I just removed the check and it should not be ok. The

[issue3787] Make PyInstanceMethod_Type available or remove it

2012-03-07 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- Removed message: http://bugs.python.org/msg155140 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue14223] curses addch broken on Python3.3a1

2012-03-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 861a5f3e7453 by Victor Stinner in branch 'default': Close #14223: curses.addch() is no more limited to the range 0-255 when the http://hg.python.org/cpython/rev/861a5f3e7453 -- resolution: -> fixed stage: needs patch -> committed/rejected

[issue1469629] __dict__ = self in subclass of dict causes a memory leak

2012-03-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3787e896dbe9 by Benjamin Peterson in branch '3.2': allow cycles throught the __dict__ slot to be cleared (closes #1469629) http://hg.python.org/cpython/rev/3787e896dbe9 -- nosy: +python-dev resolution: -> fixed stage: patch review -> commi

[issue3787] Make PyInstanceMethod_Type available or remove it

2012-03-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset b595e1ad5722 by Benjamin Peterson in branch 'default': merge 3.2 (#3787e896dbe9) http://hg.python.org/cpython/rev/b595e1ad5722 -- nosy: +python-dev ___ Python tracker

[issue14222] Using time.time() in Queue.get breaks when system time is changed

2012-03-07 Thread STINNER Victor
STINNER Victor added the comment: > Well, in 3.3 we could use clock_gettime(CLOCK_MONOTONIC) where available. It's better to use time.monotonic(). > That said, this is not specific to Queue.get() and will probably happen with > many similar functions taking a timeout parameter. Yep, it may b

[issue14127] os.stat and os.utime: allow preserving exact metadata

2012-03-07 Thread Nick Coghlan
Nick Coghlan added the comment: FWIW, +1 on using the *name* of the keyword arg to define the format/resolution of the argument. It's simple and clear right now, and is easily updated to handle higher resolutions in the future. -- nosy: +ncoghlan _

[issue14209] pkgutil.iter_zipimport_modules ignores the prefix parameter for packages

2012-03-07 Thread Nick Coghlan
Nick Coghlan added the comment: Adding Brett, since the plan is to clear out a lot of the redundant code in pkgutil once importlib is fully bootstrapped as the standard import implementation. (although this will still affect the older versions directly) -- nosy: +brett.cannon __

[issue13964] os.utimensat() and os.futimes() should accept (sec, nsec), drop os.futimens()

2012-03-07 Thread Larry Hastings
Larry Hastings added the comment: I just asked Guido in person, and he says he never intended to suggest accepting a (sec, nsec) tuple. os.*utime* may accept atime and mtime as either float seconds-since-the-epoch, or int nanoseconds-since-the-epoch when passed in using the ns= named paramet

[issue7652] Merge C version of decimal into py3k.

2012-03-07 Thread Stefan Krah
Stefan Krah added the comment: Jim Jewett wrote: > > OK, as a basis for discussion I've added: > > http://hg.python.org/features/cdecimal/file/8b75c2825508/Modules/_decimal/FILEMAP.txt > > Starting from that URL, I don't actually find setup.py. It's the setup.py from the Python top level dire

[issue14220] "yield from" kills generator on re-entry

2012-03-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3357eac1ba62 by Benjamin Peterson in branch 'default': make delegating generators say they running (closes #14220) http://hg.python.org/cpython/rev/3357eac1ba62 -- nosy: +python-dev resolution: -> fixed stage: -> committed/rejected status

[issue14220] "yield from" kills generator on re-entry

2012-03-07 Thread Benjamin Peterson
Benjamin Peterson added the comment: Don't worry! I'll be fixing it in a moment... -- nosy: +benjamin.peterson ___ Python tracker ___ ___

[issue14220] "yield from" kills generator on re-entry

2012-03-07 Thread Nick Coghlan
Nick Coghlan added the comment: Added Mark Shannon to the nosy list - he's been tinkering with this area of the interpreter lately. This definitely needs to be fixed though (even if that does mean major surgery on the implementation, up to and including the introduction of an __iter_from__ m

[issue14226] Expose dict_proxy type from descrobject.c

2012-03-07 Thread André Malo
New submission from André Malo : As discussed in the dev-thread about frozendicts, it would be helpful for providing advisory read-only-dicts, to just expose the dict_proxy type. I suppose, the collections module would be a good place (it just needs to provide the interface to the type, not th

[issue1469629] __dict__ = self in subclass of dict causes a memory leak

2012-03-07 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue14225] _cursesmodule compile error in OS X 32-bit-only installer build

2012-03-07 Thread Ned Deily
New submission from Ned Deily : ./Modules/_cursesmodule.c:279: error: syntax error before 'cchar_t' /Users/sysadmin/build/v3.3.0a1/Modules/_cursesmodule.c: In function 'PyCurses_ConvertToCchar_t': ./Modules/_cursesmodule.c:289: error: 'obj' undeclared (first use in this function)/Users/sysadmin

[issue14222] Using time.time() in Queue.get breaks when system time is changed

2012-03-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, in 3.3 we could use clock_gettime(CLOCK_MONOTONIC) where available. That said, this is not specific to Queue.get() and will probably happen with many similar functions taking a timeout parameter. -- nosy: +haypo, neologix, pitrou ___

[issue14220] "yield from" kills generator on re-entry

2012-03-07 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue14217] text output pretends to be code

2012-03-07 Thread Éric Araujo
Éric Araujo added the comment: Use this: .. code-block:: none output etc. -- nosy: +eric.araujo versions: +Python 2.7 -Python 3.1 ___ Python tracker ___ ___

[issue14218] include rendered output in addition to markup

2012-03-07 Thread Éric Araujo
Éric Araujo added the comment: > For devguide/documenting, If you show me markup, also show me what output it > gives me. Would this really be useful? If you’re looking at that page, you want to know what markup to use for what situation; why do you care about output? > It's kinda tedious to

[issue14215] http://www.python.org/dev/peps/ title is python.org

2012-03-07 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue14216] ImportError: No module named binascii

2012-03-07 Thread Éric Araujo
Éric Araujo added the comment: I suggest you do two things: - first, run “make -s” to reduce messages and see if the binascii module is compiled correctly or skipped - second, avoid possible misleading issues with PATH entirely by starting your Python with an absolute path, like ~/path/to/pyth

[issue14223] curses addch broken on Python3.3a1

2012-03-07 Thread R. David Murray
R. David Murray added the comment: Marking as release blocker since this is a regression. Added people from the other curses issue as being likely to be interested in this one. -- nosy: +cben, gpolo, haypo, inigoserna, jcea, phep, pitrou, python-dev, r.david.murray, schodet, zeha pri

[issue14209] pkgutil.iter_zipimport_modules ignores the prefix parameter for packages

2012-03-07 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +ncoghlan, pje stage: -> test needed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue14224] packaging: path description of resources is mixed up

2012-03-07 Thread Éric Araujo
Éric Araujo added the comment: Thanks, will apply. -- assignee: docs@python -> eric.araujo nosy: +eric.araujo ___ Python tracker ___

[issue14224] packaging: path description of resources is mixed up

2012-03-07 Thread Johannes Kolb
New submission from Johannes Kolb : The documentation for "files" section of the setup.cfg file causes confusion: The examples don't match the description. Obviously the order of "destination" and "source" part in the generated filenames was mixed up in some places. -- assignee: docs@p

[issue14212] Segfault when using re.finditer over mmap

2012-03-07 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue14212] Segfault when using re.finditer over mmap

2012-03-07 Thread Benjamin Peterson
Benjamin Peterson added the comment: I think 2.7 might be hopeless. -- nosy: +benjamin.peterson resolution: fixed -> stage: committed/rejected -> status: closed -> open ___ Python tracker ___

[issue14212] Segfault when using re.finditer over mmap

2012-03-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 10a79a33d09b by Benjamin Peterson in branch '3.2': keep the buffer object around while we're using it (closes #14212) http://hg.python.org/cpython/rev/10a79a33d09b New changeset 17dfe24e5107 by Benjamin Peterson in branch 'default': merge 3.2 (#142

[issue11122] bdist_rpm should use rpmbuild, not rpm

2012-03-07 Thread Éric Araujo
Changes by Éric Araujo : -- title: bdist_rpm fails -> bdist_rpm should use rpmbuild, not rpm ___ Python tracker ___ ___ Python-bugs-li

[issue11122] bdist_rpm fails

2012-03-07 Thread Éric Araujo
Éric Araujo added the comment: More info on rpm vs. rpmbuild: http://bugs.python.org/issue1533164#msg82592 -- keywords: +easy stage: -> needs patch ___ Python tracker ___ _

[issue6755] Patch: new method get_wch for ncurses bindings: accept wide characters (unicode)

2012-03-07 Thread Nicholas Cole
Nicholas Cole added the comment: On Wed, Mar 7, 2012 at 7:40 AM, R. David Murray wrote: > > R. David Murray added the comment: > > Since this bug is about adding a new feature, it is unlikely to be the > correct bug for this to be against. > > Given that you've identified a regression, I sugg

[issue5926] bdist_msi: add support for minimum Python version for pure Python projects

2012-03-07 Thread Éric Araujo
Changes by Éric Araujo : -- assignee: tarek -> eric.araujo title: bdist_msi - add support for minimum Python version for pure Python packages -> bdist_msi: add support for minimum Python version for pure Python projects versions: +Python 3.3 ___ Pyt

[issue14223] curses addch broken on Python3.3a1

2012-03-07 Thread Nicholas Cole
New submission from Nicholas Cole : The following code works on Python versions prior to 3.3a1: import curses def test_screen(screen): screen.addch(5,5, curses.ACS_HLINE) screen.refresh() curses.wrapper(test_screen) On python3.3, the program produces the following traceback: Traceba

[issue13719] bdist_msi upload fails

2012-03-07 Thread Éric Araujo
Éric Araujo added the comment: I forgot to mention two other problems in my test: - need to pass name and version keyword arguments to self.create_dist or to change the expected filename to UNKNOWN-UNKNOWN - need to embed the result of distutils.util.get_platform() into the expected filename

[issue13719] bdist_msi upload fails

2012-03-07 Thread Éric Araujo
Éric Araujo added the comment: I finally got a virtual machine up and running and was able to diagnose the problem. There are two things. First, the dist directory (where the msi file will be created) is created relative to the current working directory, which explains why listdir in the te

[issue13785] Make concurrent.futures.Future state public

2012-03-07 Thread Brian Quinlan
Brian Quinlan added the comment: I guess the question is: why do you need to know the state in that form? -- ___ Python tracker ___ _

[issue14148] Option to kill "stuck" workers in a multiprocessing pool

2012-03-07 Thread Brian Quinlan
Changes by Brian Quinlan : -- nosy: +bquinlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue11271] concurrent.futures.ProcessPoolExecutor.map() doesn't batch function arguments by chunks

2012-03-07 Thread Brian Quinlan
Brian Quinlan added the comment: I'm closing this since tbrink didn't respond to pitrou's comments. -- resolution: -> out of date ___ Python tracker ___ ___

[issue14119] Ability to adjust queue size in Executors

2012-03-07 Thread Brian Quinlan
Changes by Brian Quinlan : -- assignee: -> bquinlan nosy: +bquinlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue13719] bdist_msi upload fails

2012-03-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7e629bacec87 by Éric Araujo in branch '3.2': Backout buggy patch committed for #13719 http://hg.python.org/cpython/rev/7e629bacec87 New changeset 17106d7d34b4 by Éric Araujo in branch 'default': Remove buggy change for #13719 in packaging http://hg

[issue14220] "yield from" kills generator on re-entry

2012-03-07 Thread Stefan Behnel
Stefan Behnel added the comment: Here is an analysis of this (less verbose) code: def g1(): yield "y1" yield from g2() yield "y4" def g2(): yield "y2" try: yield from gi except ValueError: pass # catch "already ru

[issue1531415] parsetok.c emits warnings by writing to stderr

2012-03-07 Thread Brett Cannon
Brett Cannon added the comment: It's quite possible you are right, Michele. I don't know if anyone has looked at what exactly is required for _warnings.c compared to pgen. -- ___ Python tracker

[issue13719] bdist_msi upload fails

2012-03-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 077b42a54803 by Éric Araujo in branch '2.7': Backout buggy patch for #13719 http://hg.python.org/cpython/rev/077b42a54803 -- ___ Python tracker __

[issue8754] quote bad module name in ImportError-like messages

2012-03-07 Thread Brett Cannon
Brett Cannon added the comment: It technically doesn't depend, but it potentially would make this moot. But stuff is going on at the language summit which is going to shift stuff around. -- dependencies: -ImportError needs attributes for module and file name _

[issue2377] Replace __import__ w/ importlib.__import__

2012-03-07 Thread Brett Cannon
Brett Cannon added the comment: The finding/loading code in import.c is purely because of the imp module's public API (e.g. imp.find_module()). I have been waiting to find out if importlib would get bootstrapped before making the current module _imp and then creating an imp.py which handles m

[issue7652] Merge C version of decimal into py3k.

2012-03-07 Thread Jim Jewett
Jim Jewett added the comment: On Wed, Mar 7, 2012 at 5:28 AM, Stefan Krah added the comment: > OK, as a basis for discussion I've added: > http://hg.python.org/features/cdecimal/file/8b75c2825508/Modules/_decimal/FILEMAP.txt That is indeed very helpful. So helpful that now I understand well

[issue14222] Using time.time() in Queue.get breaks when system time is changed

2012-03-07 Thread Tasslehoff Kjappfot
New submission from Tasslehoff Kjappfot : Queue.get([block[, timeout]]) uses time.time() for calculations of the timeout. If someone changes the system time this breaks. If a timeout of 1 second is set and someone (on a unix system) uses date to set the time 1 hour back, Queue.get will use 1 h

[issue14212] Segfault when using re.finditer over mmap

2012-03-07 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: +skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue14212] Segfault when using re.finditer over mmap

2012-03-07 Thread Alex Gaynor
Changes by Alex Gaynor : -- nosy: +alex ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue14212] Segfault when using re.finditer over mmap

2012-03-07 Thread Matthew Barnett
Matthew Barnett added the comment: In the function "getstring" in _sre.c, the code obtains a pointer to the characters of the buffer and then releases the buffer. There's a comment before the release: /* Release the buffer immediately --- possibly dangerous but doing something else

[issue14221] re.sub backreferences to numbered groups produce garbage

2012-03-07 Thread Ezio Melotti
Ezio Melotti added the comment: You forgot to use raw strings: >>> text = "The cat ate the rat." >>> print("before: %s" % text) before: The cat ate the rat. >>> text = re.sub("(\w+) ate the (\w+)", r"\2 ate the \1", text) >>> print("after : %s" % text) after : The rat ate the cat. >>> (Maybe y

[issue14191] argparse: nargs='*' doesn't get out-of-order positional parameters

2012-03-07 Thread Glenn Linderman
Glenn Linderman added the comment: Improved documentation would certainly help the situation. And yes, I understand that optparse simply returned the set of positional parameters without giving them names, types, or groups. So does getopt, and pretty much all previous art in the arena of com

[issue14187] add "annotation" entry to Glossary

2012-03-07 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue14208] No way to recover original argv with python -m

2012-03-07 Thread Georg Brandl
Georg Brandl added the comment: I agree. Maybe I may throw "full_argv" or "executable_argv" (i.e. to be used with exec([sys.executable] + sys.executable_arg)) in the air? -- ___ Python tracker __

[issue14187] add "annotation" entry to Glossary

2012-03-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'm not sure this would be a worthwhile addition. This language feature is not widely referenced outside the docs for the feature itself. -- nosy: +rhettinger ___ Python tracker

[issue14221] re.sub backreferences to numbered groups produce garbage

2012-03-07 Thread Phillip Feldman
New submission from Phillip Feldman : The first example below works; the second one produces output containing garbage characters. (This came up while I was creating a set of examples for a tutorial on regular expressions). import re text= "The cat ate the rat." print("before: %s" % text) m=

[issue10951] gcc 4.6 warnings

2012-03-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2f10c1ad4b21 by Ross Lagerwall in branch 'default': Issue #10951: Fix warnings in the socket module. http://hg.python.org/cpython/rev/2f10c1ad4b21 New changeset 1dd43e939c07 by Ross Lagerwall in branch 'default': Issue #10951: Fix compiler warnings

[issue14214] test_concurrent_futures hangs

2012-03-07 Thread Brian Quinlan
Brian Quinlan added the comment: Could you run just the test_concurrent_futures test, hit ctrl-C at the point where it hangs, and send the traceback here? -- ___ Python tracker ___

[issue9592] Limitations in objects returned by multiprocessing Pool

2012-03-07 Thread Max Franks
Max Franks added the comment: Issue 3 is not related to the other 2. See this post http://bugs.python.org/issue5370. As haypo said, it has to do with unpickling objects. The post above gives a solution by using the __setstate__ function. -- nosy: +eliquious __

[issue14214] test_concurrent_futures hangs

2012-03-07 Thread Nadeem Vawda
Nadeem Vawda added the comment: > I happended several times. Hmm. If you hit another failure, can you post the random seed and any other interesting info that might help figure this out? The test_dbm failures look like issue 14120. You might want to follow up there. -- nosy: +bquinlan

[issue7652] Merge C version of decimal into py3k.

2012-03-07 Thread Stefan Krah
Stefan Krah added the comment: This issue was raised by Jim on Rietveld: Currently, the order of arguments in Context.__init__() differs from repr(Context): >>> Context() Context(prec=28, rounding=ROUND_HALF_EVEN, Emin=-9, Emax=9, capitals=1, flags=[], traps=[DivisionByZero, O

[issue14201] Documented caching for shared library's __getattr__ and __getitem__ is incorrect

2012-03-07 Thread Erik Johansson
Erik Johansson added the comment: Ah, I see. I modified the title to reflect this. Perhaps adding this simple example as well can help people (e.g. me) see it? >>> libc.time == libc.time True >>> libc['time'] == libc['time'] False -- title: libc.time != libc['time'] -> Documented cach

[issue7652] Merge C version of decimal into py3k.

2012-03-07 Thread Stefan Krah
Stefan Krah added the comment: Marc-Andre Lemburg wrote: > Does the C version have a C API importable as capsule ? Not yet. I'll try to make a list with proposed function names and post it here. > If not, could you add one and a decimal.h to go with it ? Yes, sure. -- _

[issue14201] libc.time != libc['time']

2012-03-07 Thread Éric Araujo
Éric Araujo added the comment: Item access is documented in this section: http://docs.python.org/library/ctypes#loading-shared-libraries (scroll a bit down looking for __getitem__); the wording about caching is ambiguous with respect to the current behavior. -- assignee: -> docs@pyt

[issue14205] Raise an error if a dict is modified during a lookup

2012-03-07 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: rhettinger -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue14201] libc.time != libc['time']

2012-03-07 Thread Erik Johansson
Erik Johansson added the comment: Perhaps this behaviour should be documented somewhere (unless it already is)? -- ___ Python tracker ___ ___

[issue14214] test_concurrent_futures hangs

2012-03-07 Thread Miki Tebeka
Miki Tebeka added the comment: I happended several times. Ran it this morning an got passed it, however other tests failed though: == ERROR: test_anydbm_creation (test.test_dbm.TestCase-dbm.ndbm) ---

[issue14201] libc.time != libc['time']

2012-03-07 Thread Thomas Heller
Thomas Heller added the comment: The rationale was to allow different packages (for example) in the same process to have their own private instance of a foreign function, with possibly different definitions of restype, argtypes and/or errcheck. --

[issue7652] Merge C version of decimal into py3k.

2012-03-07 Thread Stefan Krah
Stefan Krah added the comment: Jim Jewett wrote: > implementation details. Are there are clear distinctions (type > info/python bindings/basic arithmetic/advanced > algorithms/internal-use-only/???) I failed to mention that libmpdec also has complete documentation. Perhaps that can answer som

[issue7652] Merge C version of decimal into py3k.

2012-03-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: > _ctypes does not compile with icc and suncc. Unlike _ctypes, _decimal > has a fallback in the form of decimal.py. So, perhaps as an alternative > we could leave the inlines and wait for build failure reports? Sounds good to me. -- __

[issue7652] Merge C version of decimal into py3k.

2012-03-07 Thread Stefan Krah
Stefan Krah added the comment: Antoine Pitrou wrote: > You could use Py_LOCAL_INLINE, but most compilers should inline small > functions automatically, AFAIK. At the time I wrote it I benchmarked everything. I'm pretty sure that gcc did not inline larger functions like mpd_qresize_zero() and m

[issue7652] Merge C version of decimal into py3k.

2012-03-07 Thread Stefan Krah
Stefan Krah added the comment: Case Van Horsen wrote: > cdecimal 2.3 does not support the __ceil__ and __floor__ Thanks. I'll look into that. > cdecimal.Decimal instances do not emulate the various single-underscore > methods of a decimal.Decimal instance. In gmpy2, I use _int, _exp, _sign,

[issue1469629] __dict__ = self in subclass of dict causes a memory leak

2012-03-07 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +flox title: __dict__ = self in subclass of dict causes a memory leak? -> __dict__ = self in subclass of dict causes a memory leak ___ Python tracker ___

[issue1469629] __dict__ = self in subclass of dict causes a memory leak?

2012-03-07 Thread Hrvoje Nikšić
Hrvoje Nikšić added the comment: Could this patch please be committed to Python? We have just run into this problem in production, where our own variant of AttrDict was shown to be leaking. It is possible to work around the problem by implementing explicit __getattr__ and __setattr__, but th

[issue7652] Merge C version of decimal into py3k.

2012-03-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Do you happen to know a free compiler that builds Python but does not > understand "inline"? I'm asking because without testing you can never > really be sure: You could use Py_LOCAL_INLINE, but most compilers should inline small functions automatically, AFAI

[issue7652] Merge C version of decimal into py3k.

2012-03-07 Thread Stefan Krah
Stefan Krah added the comment: Benjamin Peterson wrote: > Speaking of inline, the "inline" keyword will have to go because it's not C89. Do you happen to know a free compiler that builds Python but does not understand "inline"? I'm asking because without testing you can never really be sure:

[issue11379] Remove "lightweight" from minidom description

2012-03-07 Thread Stefan Behnel
Stefan Behnel added the comment: Oh, right, I missed that part. I also think that a visible note is better. And +1 for "W3C DOM interface". -- ___ Python tracker ___ __

[issue14214] test_concurrent_futures hangs

2012-03-07 Thread Nadeem Vawda
Nadeem Vawda added the comment: Is this a single failure that you encountered, or have you been able to reproduce it on subsequent runs? I haven't seen a failure in test_concurrent_futures in 10-15 runs of "make test" (also on Ubuntu 11.10 64-bit). -- nosy: +nadeem.vawda stage: -> need

[issue7652] Merge C version of decimal into py3k.

2012-03-07 Thread Stefan Krah
Stefan Krah added the comment: Benjamin Peterson wrote: > The scripts for generating code would preferably go in a Tools/decimal > directory. Hmm, do you mean the gen*.py scripts? The output is generated by decimal.py and used for testing libmpdec. While the syntax resembles that of the *.dec

[issue11379] Remove "lightweight" from minidom description

2012-03-07 Thread Eli Bendersky
Eli Bendersky added the comment: Éric, I'm ok with replacing "lightweight" by "minimal", unless others have objections. Regarding the specifics of the minidom-desc-2.diff patch: "proficient with the DOM" I'm not sure "the DOM" is semantically correct. "the W3C-DOM interface" is more prec

[issue11379] Remove "lightweight" from minidom description

2012-03-07 Thread Martin v . Löwis
Martin v. Löwis added the comment: > FYI, note that http://wiki.python.org/moin/MiniDom says this about > minidom: “slow and very memory hungry DOM implementation”. Thanks for the notice; I have now fixed that wording. -- ___ Python tracker

[issue14218] include rendered output in addition to markup

2012-03-07 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe added the comment: > Sandro Tosi added the comment: > > 3.1 and 2.6 as in security fix only: please don't add those versions for > non-sec issue Sorry, I thought there was an exception for documentation issues. -- ___ Python t

[issue14202] The docs of xml.dom.pulldom are almost nonexistent

2012-03-07 Thread Éric Araujo
Éric Araujo added the comment: Merged Florian’s version with the original file to create a patch. -- Added file: http://bugs.python.org/file24752/pulldom-documentation.rst ___ Python tracker __

[issue11379] Remove "lightweight" from minidom description

2012-03-07 Thread Éric Araujo
Éric Araujo added the comment: FYI, note that http://wiki.python.org/moin/MiniDom says this about minidom: “slow and very memory hungry DOM implementation”. As you have seen, I have applied my ToC order change. Now in order to commit my s/lightweight/minimal/ change and close this report, ca

[issue14208] No way to recover original argv with python -m

2012-03-07 Thread Nick Coghlan
Nick Coghlan added the comment: In framing a question for Raymond regarding his preference for avoiding the __argv__ name, I realised I agreed with him. My reasoning is that, when a Python process starts, sys.stdin is sys.__stdin__, sys.stdout is sys.__stdout__ and sys.stderr is sys.__stderr_

[issue14220] "yield from" kills generator on re-entry

2012-03-07 Thread Stefan Behnel
New submission from Stefan Behnel : Based on the existing "test_attempted_yield_from_loop" in Lib/test/test_pep380.py, I wrote this test and I wonder why it does not work: """ def test_attempted_reentry(): """ >>> for line in test_attempted_reentry(): print(line) g1: starting Yi

[issue7652] Merge C version of decimal into py3k.

2012-03-07 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Does the C version have a C API importable as capsule ? If not, could you add one and a decimal.h to go with it ? This makes integration in 3rd party modules a lot easier. Thanks, -- Marc-Andre Lemburg eGenix.com _

[issue7652] Merge C version of decimal into py3k.

2012-03-07 Thread Stefan Krah
Stefan Krah added the comment: Jim Jewett wrote: > Whether you need *additional* subdirectories within _cdecimal to > subcategorize the .c and .h files, I'm not sure -- because I didn't > get in deep enough to know what they should be. If the categorization > let people focus on the core, that

[issue14219] start the Class tutorial in a more gentle manner

2012-03-07 Thread Sandro Tosi
Sandro Tosi added the comment: see msg155067 -- nosy: +sandro.tosi versions: -Python 2.6, Python 3.1 ___ Python tracker ___ ___ Pyth

[issue14218] include rendered output in addition to markup

2012-03-07 Thread Sandro Tosi
Sandro Tosi added the comment: additionally, devguide has no version associated with it. -- versions: -Python 2.7, Python 3.2, Python 3.3 ___ Python tracker ___ ___

  1   2   >