[issue14591] Value returned by random.random() out of valid range

2012-04-18 Thread Mark Dickinson
Mark Dickinson added the comment: Here's a modification of Serhiy's patch that assures that the new state is nonzero. (Just to clarify the nonzero requirement: the MT state is formed from bit 31 of mt[0] together with all the bits of mt[i], 1 <= i < 624. At least one of these 19937 bits mu

[issue14591] Value returned by random.random() out of valid range

2012-04-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: This needs a patch. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue14619] Enhanced variable substitution for databases

2012-04-18 Thread Raymond Hettinger
New submission from Raymond Hettinger : I suggest adding a ?? placeholder for variable length substitutions in SQL statements: vars = 'Knight', ('Gwain', 'Gallahad', 'Lancelot'), 30 c.execute('''SELECT * FROM loyalsubjects WHERE rank = ? AND name IN (??)

[issue14308] '_DummyThread' object has no attribute '_Thread__block'

2012-04-18 Thread cooyeah
cooyeah added the comment: I saw the similar problem on Ubuntu 12.04 with django development server with mediageneartor. As Dustin suggested, I don't think this is related to the "del _Thread__block" statement. I hacked the __getattribute__ of DummyThread class def __getattribute__(self,

[issue14538] HTMLParser: parsing error

2012-04-18 Thread Ezio Melotti
Ezio Melotti added the comment: This is now fixed, thanks for the report! Regarding the documentation feel free to open another issue, but at some point I'll probably update it anyway and/or write down somewhere what the future plans for HTMLParser and its goals. -- resolution: -> f

[issue14538] HTMLParser: parsing error

2012-04-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 36c901fcfcda by Ezio Melotti in branch '2.7': #14538: HTMLParser can now parse correctly start tags that contain a bare /. http://hg.python.org/cpython/rev/36c901fcfcda New changeset ba4baaddac8d by Ezio Melotti in branch '3.2': #14538: HTMLParser

[issue14618] remove modules_reloading from the interpreter state

2012-04-18 Thread Eric Snow
Eric Snow added the comment: see issue14615 for the broader picture -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue14615] pull some import state out of the interpreter state

2012-04-18 Thread Eric Snow
Eric Snow added the comment: Thanks for your feedback, Martin. I'll go ahead and make a new issue for modules_reloading (and one for interp->modules when appropriate). -- resolution: -> rejected status: open -> closed ___ Python tracker

[issue14615] pull some import state out of the interpreter state

2012-04-18 Thread Eric Snow
Eric Snow added the comment: for modules_reloading, issue14618 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue14618] remove modules_reloading from the interpreter state

2012-04-18 Thread Eric Snow
New submission from Eric Snow : Once imp.reload() is moved to imp.py, and the code is stripped from Python/import.c, we can see where modules_reloading stands. I expect that it will have become entirely superfluous at that point. -- components: Interpreter Core messages: 158691 nosy:

[issue14381] Intern certain integral floats for memory savings and performance

2012-04-18 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue14615] pull some import state out of the interpreter state

2012-04-18 Thread Brett Cannon
Brett Cannon added the comment: Eric put this in the bug tracker because I asked him to; I'm getting more emails about stuff about importlib that it's a little hard to keep track of everything. But originally this was about exposing what is left of the C-level APIs so it no longer was hidden

[issue14331] Python/import.c uses a lot of stack space due to MAXPATHLEN

2012-04-18 Thread Gregory P. Smith
Gregory P. Smith added the comment: already fixed, I just manually returned NULL. :) I suppose we could change PyErr_NoMemory's definition in 3.3 to return a "void *" instead of "PyObject *" but I'd rather not. In this case the warning caused me to examine the code and determine if it was in

[issue14331] Python/import.c uses a lot of stack space due to MAXPATHLEN

2012-04-18 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Gregory patching was faster than my writing :-). Thanks for taking the effort :-). -- ___ Python tracker ___

[issue14331] Python/import.c uses a lot of stack space due to MAXPATHLEN

2012-04-18 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: "PyErr_NoMemory()" returns always NULL, but it is declared as returning "PyObject *". Could we change "return PyErr_NoMemory();" to "PyErr_NoMemory(); return NULL;"?. Maybe with some comment... A cast would silence the compiler but could be unclear. What do

[issue14331] Python/import.c uses a lot of stack space due to MAXPATHLEN

2012-04-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset b82a471d2c5e by Gregory P. Smith in branch '2.7': Fix compiler warning related to issue #14331. harmless. http://hg.python.org/cpython/rev/b82a471d2c5e -- ___ Python tracker

[issue14331] Python/import.c uses a lot of stack space due to MAXPATHLEN

2012-04-18 Thread Gregory P. Smith
Gregory P. Smith added the comment: That warning is correct, there's a bug in the code. but given this is only a bug when PyMem_MALLOC returns NULL I do not expect this to be an issue for anyone who does not already have issues. Regardless, I'm fixing it. -- ___

[issue14331] Python/import.c uses a lot of stack space due to MAXPATHLEN

2012-04-18 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: In fact, the compilation warning seems to expose a far more serious issue. -- ___ Python tracker ___ _

[issue14331] Python/import.c uses a lot of stack space due to MAXPATHLEN

2012-04-18 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Patch ad030571e6c0 introduces a compilation warning in Python 2.7. See -- nosy: +jcea versions: +Python 2.7, Python 3.2 ___

[issue4892] Sending Connection-objects over multiprocessing connections fails

2012-04-18 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4892] Sending Connection-objects over multiprocessing connections fails

2012-04-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Could you regenerate your patch now that the win32 -> _winapi changes have been applied? -- ___ Python tracker ___

[issue14385] Support other types than dict for __builtins__

2012-04-18 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue14385] Support other types than dict for __builtins__

2012-04-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset e3ab8aa0216c by Victor Stinner in branch 'default': Issue #14385: Support other types than dict for __builtins__ http://hg.python.org/cpython/rev/e3ab8aa0216c -- nosy: +python-dev ___ Python tracker

[issue3561] Windows installer should add Python and Scripts directories to the PATH environment variable

2012-04-18 Thread Brian Curtin
Brian Curtin added the comment: The attached patch changes the feature text to "Add python.exe to Path". I'm not sure the word "search" adds much there anyway. An additional change here that I think would be beneficial is a better description text, immediately covering the benefit of this fea

[issue14385] Support other types than dict for __builtins__

2012-04-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: This looks fine. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue14601] PEP sources not available as documented

2012-04-18 Thread Éric Araujo
Éric Araujo added the comment: How so? Links still point to the old Subversion server. -- ___ Python tracker ___ ___ Python-bugs-lis

[issue14601] PEP sources not available as documented

2012-04-18 Thread Benjamin Peterson
Benjamin Peterson added the comment: It's fine now, anyway. -- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue13476] Simple exclusion filter for unittest autodiscovery

2012-04-18 Thread Éric Araujo
Éric Araujo added the comment: > A -x flag would be more useful if I could specify it on the "python setup.py > tests" command line The most common distutils test command is part of setuptools, not the standard library. Other people have also written other test, tests or nosetests commands.

[issue14601] PEP sources not available as documented

2012-04-18 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the report. www.python.org is not in a python-dev repository, so there is nothing the developers following bugs.python.org can do. Could you repost the problem to the pydotorg mailing list? -- nosy: +eric.araujo

[issue14590] ConfigParser doesn't strip inline comment when delimiter occurs earlier without preceding space.

2012-04-18 Thread Éric Araujo
Éric Araujo added the comment: I don’t remember if the doc is precise or not about this behavior, but I’m convince people used trial-and-error to see what exactly configparser would do, and rely on that knowledge know. I think I had to do that once. Thus it is not clear to me that changing

[issue14588] PEP 3115 compliant dynamic class creation

2012-04-18 Thread Nick Coghlan
Nick Coghlan added the comment: I thought about that, and I'd prefer a dedicated dictionary to avoid questions of name conflicts. Wrapping the keyword args in a dict() call is still pretty clean: C = operator.build_class('C', (A, B), dict(metaclass=MyMeta)) -- __

[issue3561] Windows installer should add Python and Scripts directories to the PATH environment variable

2012-04-18 Thread Éric Araujo
Éric Araujo added the comment: A minor thing: The capitalization of the feature names is inconsistent. -- ___ Python tracker ___ ___ P

[issue14615] pull some import state out of the interpreter state

2012-04-18 Thread Martin v . Löwis
Martin v. Löwis added the comment: > Rather than being arbitrary, the motivation here is to limit amount > of the import state that is specific to CPython. What is gained by doing that? > Finally, modules (the biggie) is accessible as sys.modules. > importlib uses sys.modules. The C import im

[issue1615] descriptor protocol bug

2012-04-18 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo versions: +Python 3.2, Python 3.3 -Python 2.6 ___ Python tracker ___ ___ Python-bugs-lis

[issue12598] Move sys variable initialization from import.c to sysmodule.c

2012-04-18 Thread Nick Coghlan
Nick Coghlan added the comment: It's about navigability/discovery of the source - to find out how the sys module gets initialised, you currently have to look in multiple places. The idea of the patch is to simplify that to the one logical place: sysmodule.c However, I'm not sure it's right to

[issue14600] Change ImportError reference handling, naming

2012-04-18 Thread Éric Araujo
Éric Araujo added the comment: As was pointed on python-dev for the first commit: args = PyTuple_New(1); if (args == NULL) return NULL; kwargs = PyDict_New(); if (args == NULL) return NULL; It looks like the second block has a copy-paste typo and should check k

[issue14428] Implementation of the PEP 418

2012-04-18 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file25210/pep418-9.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue14428] Implementation of the PEP 418

2012-04-18 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file25202/perf_counter_process_time.patch ___ Python tracker ___ ___ Python-b

[issue14428] Implementation of the PEP 418

2012-04-18 Thread STINNER Victor
STINNER Victor added the comment: > Please leave the pybench default timers unchanged in case the > new APIs are not available. Ok, done in the new patch: perf_counter_process_time-2.patch. -- Added file: http://bugs.python.org/file25265/perf_counter_process_time-2.patch _

[issue12081] Remove distributed copy of libffi

2012-04-18 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +amaury.forgeotdarc, belopolsky, eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue14617] confusing docs with regard to __hash__

2012-04-18 Thread Ethan Furman
Ethan Furman added the comment: More re-writing... -- Added file: http://bugs.python.org/file25264/__hash__2.diff ___ Python tracker ___

[issue14615] pull some import state out of the interpreter state

2012-04-18 Thread Eric Snow
Eric Snow added the comment: Rather than being arbitrary, the motivation here is to limit amount of the import state that is specific to CPython. I apologize that that wasn't clear. The three import-related members of PyInterpreterState (modules, modules_reloading, and modules_by_index), ar

[issue10941] imaplib: Internaldate2tuple produces wrong result if date is near a DST change

2012-04-18 Thread Joe Peterson
Joe Peterson added the comment: David, I understand - thanks for the details. Hopefully I can return the favor and review one in the future. -- ___ Python tracker ___

[issue10941] imaplib: Internaldate2tuple produces wrong result if date is near a DST change

2012-04-18 Thread Joe Peterson
Joe Peterson added the comment: Thanks!! :) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue10941] imaplib: Internaldate2tuple produces wrong result if date is near a DST change

2012-04-18 Thread R. David Murray
R. David Murray added the comment: I see Alexander is going to take care of this. But to clarify what I suggested for your information: In an ideal world it would be a committer doing the patch review, followed by a checkin. But in the real world there aren't enough of us with enough time t

[issue14617] confusing docs with regard to __hash__

2012-04-18 Thread Éric Araujo
Changes by Éric Araujo : -- versions: -Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue10941] imaplib: Internaldate2tuple produces wrong result if date is near a DST change

2012-04-18 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I'll review your patch. On Apr 18, 2012, at 4:53 PM, Joe Peterson wrote: > > Joe Peterson added the comment: > > Ah. I figured that one of the Python devs would be who would review it. Is > this the normal path for bugs? Not to question the proc

[issue10941] imaplib: Internaldate2tuple produces wrong result if date is near a DST change

2012-04-18 Thread Joe Peterson
Joe Peterson added the comment: Ah. I figured that one of the Python devs would be who would review it. Is this the normal path for bugs? Not to question the process, but I find it surprising, since I would think that it would cause a lot of bugs to stall out. Also, I had no idea it was t

[issue14588] PEP 3115 compliant dynamic class creation

2012-04-18 Thread Daniel Urban
Daniel Urban added the comment: I've attached a patch with more tests. I simply copied and modified the tests about metaclass calculation and __prepare__ in test_descr.py, to create the tested classes with operator.build_class (and not the class statement). Although, there is one thing I'm no

[issue14615] pull some import state out of the interpreter state

2012-04-18 Thread Eric Snow
Eric Snow added the comment: Sorry, Martin, for not looking at PEP 3121 before. I was thinking modules_by_index was a lot older. -- ___ Python tracker ___

[issue14617] confusing docs with regard to __hash__

2012-04-18 Thread Ethan Furman
Ethan Furman added the comment: Éric Araujo wrote: > Changes by Éric Araujo : > > > -- > versions: +Python 2.7 -Python 3.1 The docs for 2.7 are correct, as __hash__ is not automatically suppressed in that version. -- ~Ethan~ -- ___ Python

[issue14310] Socket duplication for windows

2012-04-18 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue14310] Socket duplication for windows

2012-04-18 Thread sbt
sbt added the comment: Can this issue be reclosed now? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue14532] multiprocessing module performs a time-dependent hmac comparison

2012-04-18 Thread Jon Oberheide
Jon Oberheide added the comment: v3 patch, based on feedback from the review here: http://bugs.python.org/review/14532/show -- Added file: http://bugs.python.org/file25262/hmac-time-independent-v3.patch ___ Python tracker

[issue9030] ctypes variable limits

2012-04-18 Thread Pauli Rikula
Pauli Rikula added the comment: This enchantment overlaps with sys -module's sys.float_info (new in 2.6) and sys.long_info (new in 2.7). -- ___ Python tracker ___ __

[issue14601] PEP sources not available as documented

2012-04-18 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue8536] Support new features of ZLIB 1.2.6

2012-04-18 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- title: Support new features of ZLIB 1.2.4 -> Support new features of ZLIB 1.2.6 ___ Python tracker ___

[issue8536] Support new features of ZLIB 1.2.4

2012-04-18 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Nadeem Vawda: > Jesús, did you have any particular idea about exactly where these new > features would be useful? Or was your idea that someone needs to read > through the code and check whether the features can be used at all? Yes, my idea was for somebody t

[issue14596] struct.unpack memory leak

2012-04-18 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue14518] Add bcrypt $2a$ to crypt.py

2012-04-18 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue12598] Move sys variable initialization from import.c to sysmodule.c

2012-04-18 Thread Benjamin Peterson
Benjamin Peterson added the comment: I don't see the point. -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list m

[issue14615] pull some import state out of the interpreter state

2012-04-18 Thread Martin v . Löwis
Martin v. Löwis added the comment: > Another candidate that could probably go away, regardless of the > import work, is 'modules_by_index'. As far as I can see, there is > only one use ofinterp->modules_by_index in the cpython code-base: > PyState_FindModule() in Python/pystate.c. Likewise

[issue14617] confusing docs with regard to __hash__

2012-04-18 Thread Éric Araujo
Éric Araujo added the comment: Some of the sentence phrasing still sounds a bit awkward to me (“[...], means that not only will instances” for example, and I would also remove the parens at the end), but globally I think this is an improvement. -- nosy: +eric.araujo _

[issue12598] Move sys variable initialization from import.c to sysmodule.c

2012-04-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: This looks sensible. -- components: +Interpreter Core nosy: +pitrou ___ Python tracker ___ ___ Pyth

[issue14617] confusing docs with regard to __hash__

2012-04-18 Thread Éric Araujo
Changes by Éric Araujo : -- versions: +Python 2.7 -Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue14615] pull some import state out of the interpreter state

2012-04-18 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue11750] Mutualize win32 functions

2012-04-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks a lot for doing this! Patch now committed to 3.3 (after testing under Windows 7 64 bits). -- assignee: brian.curtin -> components: -Windows resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___

[issue11750] Mutualize win32 functions

2012-04-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset f3a27d11101a by Antoine Pitrou in branch 'default': Issue #11750: The Windows API functions scattered in the _subprocess and http://hg.python.org/cpython/rev/f3a27d11101a -- nosy: +python-dev ___ Python

[issue11750] Mutualize win32 functions

2012-04-18 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- components: +Windows ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue14615] pull some import state out of the interpreter state

2012-04-18 Thread Brett Cannon
Brett Cannon added the comment: Right, so the question is why wasn't that done in the first place? Who decided this modules_by_index concept was even worth it? -- ___ Python tracker __

[issue10941] imaplib: Internaldate2tuple produces wrong result if date is near a DST change

2012-04-18 Thread R. David Murray
R. David Murray added the comment: Someone needs to find time to review it. You could try recruiting reviewers on python-list. Anyone can do a review. Obviously the more knowledge they have in this area the better, but any good review is likely to move the issue along. -- nosy: +r.

[issue10941] imaplib: Internaldate2tuple produces wrong result if date is near a DST change

2012-04-18 Thread Joe Peterson
Joe Peterson added the comment: It's been over a year since any activity on this bug, and it is still in the "patch review" stage. Any news? Anything else I can provide to help to get this moved to the next stage? Thanks! -- ___ Python tracker

[issue14617] confusing docs with regard to __hash__

2012-04-18 Thread Ethan Furman
New submission from Ethan Furman : >From http://docs.python.org/py3k/reference/datamodel.html#object.__hash__ --- Classes which inherit a __hash__() method from a parent class but change the meaning of __eq__() such that the has

[issue14615] pull some import state out of the interpreter state

2012-04-18 Thread Eric Snow
Eric Snow added the comment: Curse you, undocumented API that we have to support! It could still wrap a simple get() on sys.modules, roughly like this: PyObject* PyState_FindModule(struct PyModuleDef* m) { PyObject* modules, module; modules = PyImport_GetModuleDict(); if (modules

[issue9723] Add shlex.quote

2012-04-18 Thread Éric Araujo
Éric Araujo added the comment: See #14616 for a doc edition related to this. -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue14616] subprocess docs should mention pipes.quote/shlex.quote

2012-04-18 Thread Éric Araujo
New submission from Éric Araujo : The warning at http://docs.python.org/library/subprocess#frequently-used-arguments should IMO recommend using shlex.quote. Even if it strongly advises against using shell=True, there are people who need or want to use it, so let’s give them a pointer to the

[issue14615] pull some import state out of the interpreter state

2012-04-18 Thread Brett Cannon
Brett Cannon added the comment: So PyState_FindModule() is an (undocumented) part of the public API, which means that it has to somehow be supported to keep ABI compatibility (unless I am reading PEP 384 incorrectly). -- ___ Python tracker

[issue12633] sys.modules doc entry should reflect restrictions

2012-04-18 Thread Eric Snow
Eric Snow added the comment: also, issue 14615 is related to making sys.modules authoritative. -- ___ Python tracker ___ ___ Python-b

[issue14615] pull some import state out of the interpreter state

2012-04-18 Thread Eric Snow
New submission from Eric Snow : Once the dust clears from the issue 2377 and issue 13959, we should consider what import-state-related members of PyInterpreterState (Include/pystate.h) can be removed. This is in the interest of simplifying the interpreter state. The most straightforward candi

[issue12598] Move sys variable initialization from import.c to sysmodule.c

2012-04-18 Thread Eric Snow
Eric Snow added the comment: The patch is out of date, but the question is still somewhat applicable. -- versions: +Python 3.3 ___ Python tracker ___ ___

[issue12633] sys.modules doc entry should reflect restrictions

2012-04-18 Thread Eric Snow
Eric Snow added the comment: The original motivator: http://mail.python.org/pipermail/python-dev/2011-July/112497.html -- ___ Python tracker ___ __

[issue14575] IDLE crashes after file open in OS X

2012-04-18 Thread Hugh Gibbons
Hugh Gibbons added the comment: Thanks. I will try that and see if everything is OK with the updated Tcl/Tk. -- ___ Python tracker ___ _

[issue14612] Crash after modifying f_lineno

2012-04-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6a0a073e8461 by Benjamin Peterson in branch '3.2': SETUP_WITH acts like SETUP_FINALLY for the purposes of setting f_lineno (closes #14612) http://hg.python.org/cpython/rev/6a0a073e8461 New changeset 0695f5d028a7 by Benjamin Peterson in branch 'def

[issue14614] PyTuple_SET_ITEM could check bounds in debug mode

2012-04-18 Thread Benjamin Peterson
Benjamin Peterson added the comment: Also, PyList_SET_ITEM and friends. -- ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue14614] PyTuple_SET_ITEM could check bounds in debug mode

2012-04-18 Thread Antoine Pitrou
New submission from Antoine Pitrou : Which it doesn't, as exemplified in e8c87226bcb3 :-) -- components: Interpreter Core messages: 158632 nosy: benjamin.peterson, ncoghlan, pitrou priority: low severity: normal status: open title: PyTuple_SET_ITEM could check bounds in debug mode type:

[issue10142] Support for SEEK_HOLE/SEEK_DATA

2012-04-18 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Victor, internally Python uses 0, 1 and 2 as wired values independently of the platform values. This is probably an historic accident. Please, review. -- stage: needs patch -> patch review ___ Python tracker

[issue10142] Support for SEEK_HOLE/SEEK_DATA

2012-04-18 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : Added file: http://bugs.python.org/file25260/3f967e00e267.diff ___ Python tracker ___ ___ Python-bugs-list mailin

[issue10142] Support for SEEK_HOLE/SEEK_DATA

2012-04-18 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : Removed file: http://bugs.python.org/file25259/d6aeff63fa5e.diff ___ Python tracker ___ ___ Python-bugs-list mail

[issue14582] Have importlib use return value from a loader's load_module()

2012-04-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset db5e3431ee4c by Benjamin Peterson in branch 'default': rollback 005fd1fe31ab (see #14609 and #14582) http://hg.python.org/cpython/rev/db5e3431ee4c -- ___ Python tracker

[issue10142] Support for SEEK_HOLE/SEEK_DATA

2012-04-18 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : Removed file: http://bugs.python.org/file19566/z.patch ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue10142] Support for SEEK_HOLE/SEEK_DATA

2012-04-18 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- hgrepos: +119 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue14609] can't modify sys.modules during import with importlib

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

[issue14609] can't modify sys.modules during import with importlib

2012-04-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset db5e3431ee4c by Benjamin Peterson in branch 'default': rollback 005fd1fe31ab (see #14609 and #14582) http://hg.python.org/cpython/rev/db5e3431ee4c -- nosy: +python-dev ___ Python tracker

[issue10142] Support for SEEK_HOLE/SEEK_DATA

2012-04-18 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : Added file: http://bugs.python.org/file25259/d6aeff63fa5e.diff ___ Python tracker ___ ___ Python-bugs-list mailin

[issue13959] Re-implement parts of imp in pure Python

2012-04-18 Thread Eric Snow
Eric Snow added the comment: On the _frozen_importlib point, I'm fine with that. It was just counter-intuitive that the importlib._bootstrap functions were returning loaders whose classes weren't also defined there. I'll have another look at that test tonight and run the patch through the fu

[issue14609] can't modify sys.modules during import with importlib

2012-04-18 Thread Eric Snow
Eric Snow added the comment: > I would advocate breaking any compatability. Did you mean "against breaking any compatability"? The problem is that it's just one more sticky little detail that adds to the complexity of understanding the import system. It's things like this that turn people o

[issue14585] Have test_import run more importlib tests

2012-04-18 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +berker.peksag ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue14609] can't modify sys.modules during import with importlib

2012-04-18 Thread Benjamin Peterson
Benjamin Peterson added the comment: I would advocate breaking any compatability. In fact, I think it can be documented. This is a useful feature, and not hard to maintain. -- ___ Python tracker _

[issue13959] Re-implement parts of imp in pure Python

2012-04-18 Thread Brett Cannon
Brett Cannon added the comment: You could change Lib/imp.py to have ``import _frozen_importlib as _bootstrap`` if you want the same modules coming from imp, but I would argue against changing importlib itself being changed as that complicates development since if you screw up importlib._boots

[issue14609] can't modify sys.modules during import with importlib

2012-04-18 Thread Brett Cannon
Brett Cannon added the comment: I honestly don't care enough to argue over this one (I was trying to save a dict lookup but unfortunately too many people have codified the behaviour already). Just revert http://hg.python.org/cpython/rev/005fd1fe31ab to get back the original behaviour. --

  1   2   >