[issue14217] text output pretends to be code

2012-03-07 Thread Tshepang Lekhonkhobe
New submission from Tshepang Lekhonkhobe : The attached patch removes the highlighting. I hope there's a better way to do this, instead of this hack. I searched the Sphinx and docutils docs and failed to find something better. -- assignee: docs@python components: Documentation files: t

[issue14216] ImportError: No module named binascii

2012-03-07 Thread Martin v . Löwis
Martin v. Löwis added the comment: You probably did something wrong when installing Python. How exactly did you get it into ~/PythonInstall? -- nosy: +loewis ___ Python tracker ___

[issue13897] Move fields relevant to sys.exc_info out of frame into generator/threadstate

2012-03-07 Thread Mark Shannon
Mark Shannon added the comment: Jim Jewett wrote: > http://bugs.python.org/review/13897/diff/4186/14521 > File Python/sysmodule.c (right): > > http://bugs.python.org/review/13897/diff/4186/14521#newcode211 > Python/sysmodule.c:211: while ((exc_info->exc_type == NULL || > exc_info->exc_type

[issue7652] Merge C version of decimal into py3k.

2012-03-07 Thread Case Van Horsen
Case Van Horsen added the comment: I've found some differences between decimal and cdecimal. cdecimal 2.3 does not support the __ceil__ and __floor__ methods that exist in decimal. math.ceil converts a cdecimal.Decimal instance into a float before finding the ceiling. This can generate incor

[issue14216] ImportError: No module named binascii

2012-03-07 Thread Qian Liu
Qian Liu added the comment: Dear Martin, Thanks for your reply. I went to the folder of python after "tar -zxvf Python-2.7.2.tgz" and do the following operations: ./configure --prefix="~/PythonInstall" make make install where "~" represent the path in my computer and it is long in the report;

[issue992389] attribute error due to circular import

2012-03-07 Thread Eric Snow
Changes by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue14218] include rendered output in addition to markup

2012-03-07 Thread Tshepang Lekhonkhobe
New submission from Tshepang Lekhonkhobe : For devguide/documenting, If you show me markup, also show me what output it gives me. It's kinda tedious to keep building the markup just to verify how it's rendered. -- components: Devguide messages: 155061 nosy: ezio.melotti, tshepang prior

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

2012-03-07 Thread Steven Bethard
Steven Bethard added the comment: > optparse, which argparse attempts to replace, permitted positional > arguments to be intermixed with optional arguments Sure, but optparse didn't actually parse positional arguments - it just threw them into a bag, and then you had to group them and convert

[issue14216] ImportError: No module named binascii

2012-03-07 Thread Martin v . Löwis
Martin v. Löwis added the comment: There are some minor errors indeed: the syntax for PATH and PYTHONPATH is wrong (don't use quotes (") in the middle of the value). Also, putting site-packages into PYTHONPATH should not be necessary. I think the main cause might be the incorrect --prefix arg

[issue14216] ImportError: No module named binascii

2012-03-07 Thread Qian Liu
Qian Liu added the comment: Dear Martin, Many thanks for your help and your reply. I will correct the errors and let you know the result. best regards, Qian Liu On Wed, Mar 7, 2012 at 5:07 PM, Martin v. Löwis wrote: > > Martin v. Löwis added the comment: > > There are some minor errors inde

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

2012-03-07 Thread Tshepang Lekhonkhobe
New submission from Tshepang Lekhonkhobe : Looking at Doc/tutorial/classes, the section "Python Scopes and Namespaces" is full of heavy/deep information. I expect that people who would be able to properly digest that info are people who are already advanced at Python, and therefore maybe it sh

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

2012-03-07 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- versions: +Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3 ___ Python tracker ___ ___

[issue14216] ImportError: No module named binascii

2012-03-07 Thread Qian Liu
Qian Liu added the comment: Dear Martin, I did the following operations ./configure --prefix= "/img01/home/liuqian1/PLAprediction/software/PythonInstall" make make install and then MPYTHONHOME="/img01/home/liuqian1/PLAprediction/software/PythonInstall" PATH="$MPYTHONHOME/bin":$PATH However,

[issue14218] include rendered output in addition to markup

2012-03-07 Thread Sandro Tosi
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 -- nosy: +sandro.tosi versions: -Python 2.6, Python 3.1 ___ Python tracker __

[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 ___ ___

[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

[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

[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 _

[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

[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_

[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

[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 __

[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

[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

[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

[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

[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

[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 ___ __

[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:

[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

[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

[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 ___

[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,

[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 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: 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

[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. --

[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 Erik Johansson
Erik Johansson added the comment: Perhaps this behaviour should be documented somewhere (unless it already is)? -- ___ Python tracker ___ ___

[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 É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

[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] 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: 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

[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

[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 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 ___

[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

[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=

[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

[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 Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[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

[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

[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

[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 Stefan Krah
Changes by Stefan Krah : -- nosy: +skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[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

[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

[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

[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 _

[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 __

[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

[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

[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

[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

[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 ___ ___

[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

[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 ___ _

[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

[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

[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

[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

[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

[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 ___ _

[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

[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

[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 Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

[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

[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 ___

[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

[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

[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

[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

[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

[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 ___ ___

[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

[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 ___

[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

[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

[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

[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

[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 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

[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

[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

[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 __

[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 _

[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

  1   2   >