[issue13493] Import error with embedded python on AIX 6.1

2011-11-29 Thread python_hu
python_hu added the comment: Sorry,it just a common behave of xlC_r,we can ignore it. So i sucess build libpython2.7.so using --enable-shared: ./configure --enable-shared --with-gcc="xlc_r -q64" --with-cxx="xlC_r -q64" --disable-ipv6 AR="ar -X64" I make install python2.7.2,but when i run pyt

[issue11374] pkgutil.extend_path do not recognize py{c,o} file

2011-11-29 Thread Eric Snow
Changes by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue13481] Use an accurate clock in timeit

2011-11-29 Thread Charles-François Natali
Charles-François Natali added the comment: > Are CLOCK_MONOTONIC_RAW, CLOCK_MONOTONIC and CLOCK_REALTIME more accurate > than gettimeofday (time.time)? Actually, on Linux gettimeofday() returns CLOCK_REALTIME. As for CLOCK_MONOTONIC{_RAW}, they're guaranteed not to go backward (NTP and such).

[issue13493] Import error with embedded python on AIX 6.1

2011-11-29 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: I'm sorry I don't know much about AIX. How are shared libraries searched? is /usr/local/lib a standard place for them? After a couple of google search I suggest the following command: LIBPATH=/usr/local/lib:/usr/lib python2.7 --

[issue11113] html.entities mapping dicts need updating?

2011-11-29 Thread Ezio Melotti
Ezio Melotti added the comment: http://www.w3.org/TR/html5/named-character-references.html lists 2152 HTML 5 entities (see also attached file for a dict generated from that table). Currently html.entities only has 252 entities, organized in 3 dicts: 1) name -> intvalue (e.g. 'amp': 0x0026);

[issue13481] Use an accurate clock in timeit

2011-11-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, closing. -- resolution: -> rejected stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue5654] Add C hook in PyDict_SetItem for debuggers

2011-11-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: I see no reason to close until benchmark results prove it decreases real-life performance. Looking at the patch, the cost in the normal case is a single pointer comparison with NULL, something very cheap. -- nosy: +pitrou

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

2011-11-29 Thread Nick Coghlan
Nick Coghlan added the comment: I realised "-P" is available for use as the short form of the "suppress sys.path[0] initialisation" option. So "-p" would override the calculation of sys.path[0], while "-P" would switch it off completely (similar to the way "-S" and "-E" switch off other aspec

[issue12919] Control what module is imported first

2011-11-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: I don't think conflating two orthogonal needs in a single "feature" like that is a good idea. This will become one of these obscure implementation details which complicate the code for no real benefit. If there's a need to "customize the first import" then a

[issue13497] Fix for broken nice test on non-broken platforms with pedantic compilers

2011-11-29 Thread Garrett Cooper
New submission from Garrett Cooper : Was poking around config.log and I saw that gcc was complaining of some undefined built-in symbols for the broken nice test in configure. This patch fixes that. -- files: configure-fix-broken-broken-nice-test.patch keywords: patch messages: 148554 n

[issue13497] Fix for broken nice test on non-broken platforms with pedantic compilers

2011-11-29 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- stage: -> patch review versions: +Python 2.7, Python 3.2, Python 3.3 -Python 3.4 ___ Python tracker ___ __

[issue13497] Fix for broken nice test on non-broken platforms with pedantic compilers

2011-11-29 Thread Garrett Cooper
Garrett Cooper added the comment: Other potential issues are provided below: configure:9015: checking if PTHREAD_SCOPE_SYSTEM is supported configure:9038: gcc -pthread -o conftest -I/usr/include/edit conftest.c >&5 conftest.c: In function 'main': conftest.c:101: warning: incompatible implici

[issue11374] pkgutil.extend_path do not recognize py{c,o} file

2011-11-29 Thread Éric Araujo
Éric Araujo added the comment: .pyo files are used if sys.dont_write_bytecode is false and sys.flags.optimize is >= 1 (IOW, true). For Python 3.2 and 3.3, imp.cache_from_source should be used to get the right paths (see PEP 3147). Before you put more work into this, it would be nice to get c

[issue13462] Improve code and tests for Mixin2to3

2011-11-29 Thread Éric Araujo
Éric Araujo added the comment: Thanks, I’ll adapt the code for older Pythons. Bumped down, I won’t do this for d2 1.0a3. -- priority: release blocker -> ___ Python tracker ___

[issue11379] Remove "lightweight" from minidom description

2011-11-29 Thread Éric Araujo
Éric Araujo added the comment: Is memory footprint something important enough to put in the doc? Ease of use is IMO more important, but then it becomes subjective.. -- nosy: +eric.araujo ___ Python tracker _

[issue13223] pydoc removes 'self' in HTML for method docstrings with example code

2011-11-29 Thread Éric Araujo
Éric Araujo added the comment: Patch looks good to me. Ezio, do you have time to review too? (I had forgotten that there were tests checking the exact HTML output. This won’t be fun when we overhaul pydoc to make it generate sensible HTML.) -- nosy: +eric.araujo stage: test needed -

[issue6753] Python 3.1.1 test_cmd_line fails on Fedora 11

2011-11-29 Thread Éric Araujo
Changes by Éric Araujo : Removed file: http://bugs.python.org/file14760/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue6753] Python 3.1.1 test_cmd_line fails on Fedora 11

2011-11-29 Thread STINNER Victor
STINNER Victor added the comment: A lot of bugs related to encodings has been fixed. The bug was seen on Python 3.1, whereas the current development version is 3.3. We have a Fedora buildbot and many Fedora users, none reported such error recently. I consider this issue as fixed. --

[issue6899] Base.replace breaks tree

2011-11-29 Thread Éric Araujo
Changes by Éric Araujo : -- versions: +Python 2.7, Python 3.2, Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue11427] ctypes from_buffer no longer accepts bytes

2011-11-29 Thread STINNER Victor
STINNER Victor added the comment: .from_buffer() expects a modifiable buffer, bytes type is immutable. If .from_buffer() accepted an immutable buffer, it was a bug and the bug was fixed. If you want to use bytes, use .from_buffer_copy() instead of .from_buffer(). -- resolution: -> in

[issue11379] Remove "lightweight" from minidom description

2011-11-29 Thread Stefan Behnel
Stefan Behnel added the comment: I find a factor of an order of magnitude worth mentioning, because it prevents certain kinds of usages. -- ___ Python tracker ___ _

[issue9196] Improve docs for string interpolation "%s" re Unicode strings

2011-11-29 Thread Éric Araujo
Éric Araujo added the comment: More info on this thread: http://mail.python.org/pipermail/python-dev/2006-December/070237.html -- ___ Python tracker ___

[issue13498] os.makedirs exist_ok documentation is incorrect, as is some of the behavior

2011-11-29 Thread R. David Murray
New submission from R. David Murray : The documentation for os.makedirs says: If the target directory with the same mode as specified already exists, raises an OSError exception if exist_ok is False, otherwise no exception is raised. This is not correct. If the file exists but the mode is

[issue11379] Remove "lightweight" from minidom description

2011-11-29 Thread Ezio Melotti
Ezio Melotti added the comment: Usually we don't talk about performance in the doc, and in my personal experience I didn't notice any major difference between the different implementations (but than again I haven't used them much). Talking about the other implementations and their advantages/d

[issue11379] Remove "lightweight" from minidom description

2011-11-29 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. added the comment: Removing "Lightweight" and changing the first paragraph to (something like) :mod:`xml.dom.minidom` is an implementation of the Document Object Model interface. The API is slightly simpler than the full W3C DOM, but the implementation has a significantly hi

[issue13496] bisect module: Overflow at index computation

2011-11-29 Thread Mark Dickinson
Mark Dickinson added the comment: Given that we typically need at least 4 bytes just for the PyObject * pointer for each item in a list, I guess real lists are safe. But how about list-like objects, implementing __len__ and __getitem__? The following appears to run forever on my machine:

[issue1040439] Missing documentation on how to link with libpython

2011-11-29 Thread Éric Araujo
Éric Araujo added the comment: I did not found all these Google hist. Most of the links on the first page for “link libpython” are bug reports which are rejected by maintainers. Related: http://mail.python.org/pipermail/python-dev/2006-February/060549.html So, what do people link with libpy

[issue13496] bisect module: Overflow at index computation

2011-11-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: Very good point, Mark. -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue11379] Remove "lightweight" from minidom description

2011-11-29 Thread Stefan Behnel
Stefan Behnel added the comment: I don't think "FUD" is a suitable term for the rather minidom-friendly wording in my last proposal. Seriously, minidom is widely known for being extremely slow and extremely memory hungry. And that is backed by basically any benchmark that has ever been done o

[issue13499] uuid documentation example uses invalid REPL/doctest syntax

2011-11-29 Thread Petri Lehtinen
New submission from Petri Lehtinen : See http://docs.python.org/library/uuid.html#example. Comments are output lines, i.e. not prefixed with >>>, which breaks the ">>>" button that makes the example copy-pasteable. -- assignee: docs@python components: Documentation keywords: easy messa

[issue11379] Remove "lightweight" from minidom description

2011-11-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I don't think "FUD" is a suitable term for the rather minidom-friendly > wording in my last proposal. Seriously, minidom is widely known for > being extremely slow and extremely memory hungry. And that is backed > by basically any benchmark that has ever been

[issue1040439] Missing documentation on how to link with libpython

2011-11-29 Thread Eli Bendersky
Eli Bendersky added the comment: Éric, this is for embedding a Python interpreter in a C/C++ application. I tend to agree that the official doc page (http://docs.python.org/extending/embedding.html) on this topic is somewhat lacking in the area of the configuration/compilation procedure. Ther

[issue13496] bisect module: Overflow at index computation

2011-11-29 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: [x]range is enough to trigger the bug:: bisect.bisect(range(sys.maxsize), sys.maxsize-3) -- nosy: +amaury.forgeotdarc ___ Python tracker _

[issue13500] Hitting EOF gets cmd.py into a infinite EOF on return loop

2011-11-29 Thread Garrett Cooper
New submission from Garrett Cooper : Pressing produces no output with cmd.py whenever ^D has been entered in; after I enter in ^D it gets into an infinite loop spewing out messages via cmd.Cmd.default() about EOF because self.lastcmd isn't being reset properly. The attached patch fixes that u

[issue11374] pkgutil.extend_path do not recognize py{c,o} file

2011-11-29 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Nov 29, 2011, at 12:50 PM, Éric Araujo wrote: >Before you put more work into this, it would be nice to get confirmation from >one import expert that the bug is valid: I know the import system only >superficially, and I’m not sure that package/__init__.pyc /

[issue13501] Make libedit support more generic; port readline / libedit to FreeBSD

2011-11-29 Thread Garrett Cooper
New submission from Garrett Cooper : The attached patch enables libedit support in a generic way via configure.in, so I can pass in --with-readline=editline, --with-readline=readline, --with-readline=yes, or --with[out]-readline[=no] and it will do one of the following: 1. Enable editline sup

[issue13501] Make libedit support more generic; port readline / libedit to FreeBSD

2011-11-29 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- components: +Build nosy: +ned.deily, ronaldoussoren stage: -> patch review versions: +Python 3.3 -Python 2.7, Python 3.4 ___ Python tracker ___ __

[issue12759] "(?P=)" input for Tools/scripts/redemo.py raises unnhandled exception

2011-11-29 Thread Éric Araujo
Changes by Éric Araujo : -- assignee: -> ezio.melotti stage: test needed -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue11379] Remove "lightweight" from minidom description

2011-11-29 Thread Ezio Melotti
Ezio Melotti added the comment: > Seriously, minidom is widely known for being extremely slow and > extremely memory hungry. And that is backed by basically any benchmark > that has ever been done on the subject. Do you have any link? My point is that if you say thing like "significantly/seve

[issue11379] Remove "lightweight" from minidom description

2011-11-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: > My point is that if you say thing like "significantly/several times > higher memory footprint than X" you are basically scaring the users > away from the module. Only those users who know they'll be processing significantly large documents. I don't think "sca

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

2011-11-29 Thread Éric Araujo
Changes by Éric Araujo : -- assignee: -> eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue13467] Typo in doc for library/sysconfig

2011-11-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset a7d38a969132 by Éric Araujo in branch '3.2': Fix typo (#13467) http://hg.python.org/cpython/rev/a7d38a969132 -- nosy: +python-dev ___ Python tracker _

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

2011-11-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2ef359d7a2e9 by Éric Araujo in branch '3.2': Fix inspect.getmodule to use a copy of sys.modules for iteration (#13487). http://hg.python.org/cpython/rev/2ef359d7a2e9 -- nosy: +python-dev ___ Python track

[issue13467] Typo in doc for library/sysconfig

2011-11-29 Thread Éric Araujo
Éric Araujo added the comment: Done for 3.2 and 3.3, will backport to 2.7 later. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___

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

2011-11-29 Thread Éric Araujo
Éric Araujo added the comment: Committed, thanks. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue11379] Remove "lightweight" from minidom description

2011-11-29 Thread Stefan Behnel
Stefan Behnel added the comment: Ezio Melotti, 29.11.2011 16:26: >> Seriously, minidom is widely known for being extremely slow and >> extremely memory hungry. And that is backed by basically any benchmark >> that has ever been done on the subject. > > Do you have any link? I just did a quick G

[issue11379] Remove "lightweight" from minidom description

2011-11-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I just did a quick Google search for "python minidom benchmark" and found > these: > > http://www.opensourcetutorials.com/tutorials/Server-Side-Coding/Python/xml-matters/page2.html > > http://effbot.org/zone/celementtree.htm#benchmarks > > http://blog.ianb

[issue11427] ctypes from_buffer no longer accepts bytes

2011-11-29 Thread benrg
benrg added the comment: I am still interested in this for the same reason I was interested in this in the first place; nothing has changed. I guess I will reiterate, and try to expand. The problem is that ctypes tries to enforce const correctness (inconsistently), but it has no way to decla

[issue1040439] Missing documentation on how to link with libpython

2011-11-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: There is (outdated, incomplete and clumsy) documentation about using distutils.sysconfig from the command-line. I'll try to work on a small patch. It will probably be Unix-only, though. -- nosy: +pitrou ___ Python

[issue11427] ctypes from_buffer no longer accepts bytes

2011-11-29 Thread STINNER Victor
STINNER Victor added the comment: > I just want to call my C function. You can use something else than ctypes_array.from_buffer(buffer). ctypes_array.from_buffer() creates a read-write object which can be used to modify the buffer. You cannot pass a read-only object to ctypes_array.from_buff

[issue1040439] Missing documentation on how to link with libpython

2011-11-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: Attached patch rewrites the offending paragraphs. -- keywords: +patch stage: needs patch -> patch review Added file: http://bugs.python.org/file23807/docembed.patch ___ Python tracker

[issue1040439] Missing documentation on how to link with libpython

2011-11-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: Updated markup. -- Added file: http://bugs.python.org/file23808/docembed.patch ___ Python tracker ___ ___

[issue1040439] Missing documentation on how to link with libpython

2011-11-29 Thread Antoine Pitrou
Changes by Antoine Pitrou : Removed file: http://bugs.python.org/file23807/docembed.patch ___ Python tracker ___ ___ Python-bugs-list mailin

[issue1040439] Missing documentation on how to link with libpython

2011-11-29 Thread Eli Bendersky
Eli Bendersky added the comment: Antoine, this is a big improvement - LGTM. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue13501] Make libedit support more generic; port readline / libedit to FreeBSD

2011-11-29 Thread Ned Deily
Changes by Ned Deily : -- assignee: -> ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue13471] setting access time beyond Jan. 2038 on remote share failes on Win7 x64

2011-11-29 Thread STINNER Victor
STINNER Victor added the comment: > I thought that time_t was 64 bits on Windows On Windows 64 bits, sizeof(time_t) is 64 bits and time.ctime(910692730085) works (return a string with year 2128). It looks like Thorsten Simons is running Windows 32 bits. -- __

[issue13501] Make libedit support more generic; port readline / libedit to FreeBSD

2011-11-29 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue3573] IDLE hangs when passing invalid command line args (directory(ies) instead of file(s))

2011-11-29 Thread Roger Serwy
Roger Serwy added the comment: I can confirm that using "idle -e " still causes a hang on Windows using 3.2.2 and on Ubuntu using 2.7.1 and 3.2 The given patch fixes the problem on those platforms. -- nosy: +serwy ___ Python tracker

[issue11379] Remove "lightweight" from minidom description

2011-11-29 Thread Stefan Behnel
Stefan Behnel added the comment: Given that the links were generally somewhat dated and used Py2.x instead of the post-PEP393 Py3.3, here is another little benchmark, comparing the parser performance of minidom to lxml.etree (latest), ElementTree and cElementTree (stdlib) in a recent Py3.3 bu

[issue5654] Add C hook in PyDict_SetItem for debuggers

2011-11-29 Thread STINNER Victor
STINNER Victor added the comment: > the cost in the normal case is a single pointer comparison with NULL, > something very cheap. The Linux kernel patchs dynamically the code: disabling a probe writes NOP instruction in memory to avoid the cost of the test. Probes are completly disabled by de

[issue11379] Remove "lightweight" from minidom description

2011-11-29 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +flox type: -> performance ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue11379] Remove "lightweight" from minidom description

2011-11-29 Thread Florent Xicluna
Changes by Florent Xicluna : -- components: +XML ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue10278] add time.wallclock() method

2011-11-29 Thread STINNER Victor
STINNER Victor added the comment: Version 3 of the patch: check for clock_gettime() failure. Try CLOCK_MONOTONIC_RAW, or try CLOCK_MONOTONIC, or use time.time(). -- Added file: http://bugs.python.org/file23809/wallclock-3.patch ___ Python tracker <

[issue13500] Hitting EOF gets cmd.py into a infinite EOF on return loop

2011-11-29 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Could you provide an step-by-step procedure to try this?. -- nosy: +jcea versions: +Python 3.3 -Python 3.4 ___ Python tracker ___

[issue11379] Remove "lightweight" from minidom description

2011-11-29 Thread Stefan Behnel
Stefan Behnel added the comment: Hmm, looks like I messed up the last example. I accidentally left in the formatting whitespace, thus growing the file to 6.2 MB. Removing that, I get this for the (now really) 4.5 MB XML file with lots of structure and very little data: Memory usage: 11600 xm

[issue13471] setting access time beyond Jan. 2038 on remote share failes on Win7 x64

2011-11-29 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: > > I thought that time_t was 64 bits on Windows time_t *is* 64bit by default since Visual Studio 8, even with the 32bit compiler: http://msdn.microsoft.com/en-us/library/1f4c8f33(v=vs.80).aspx -- nosy: +amaury.forgeotdarc __

[issue13500] Hitting EOF gets cmd.py into a infinite EOF on return loop

2011-11-29 Thread Garrett Cooper
Garrett Cooper added the comment: Sure -- the repro steps are pretty easy: 1. Startup an interactive python shell. 2. Enter in the following code: {{{ import cmd class Foo(cmd.Cmd): def do_bar(self, arg): """bar""" Foo().cmdloop() }}} 3. You will be greeted with the standard `(Cm

[issue13405] Add DTrace probes

2011-11-29 Thread Martin v . Löwis
Martin v. Löwis added the comment: Please let us know when you consider your patch ready for review. -- ___ Python tracker ___ ___ Py

[issue13471] setting access time beyond Jan. 2038 on remote share failes on Win7 x64

2011-11-29 Thread STINNER Victor
STINNER Victor added the comment: > time_t *is* 64bit by default since Visual Studio 8 Ah? The issue was reported on a version compiled with Visual Studio 8. Notice "MSC v.1500" in: > Using Python '3.2.2 (default, Sep 4 2011, 09:07:29) > [MSC v.1500 64 bit (AMD64)]' on Windows 7 Professional

[issue13502] Documentation for Event.wait return value is either wrong or incomplete

2011-11-29 Thread R. David Murray
New submission from R. David Murray : The documentation for Event.wait says: This method returns the internal flag on exit, so it will always return True except if a timeout is given and the operation times out. In fact, however, if the thread that sets the flag immediately clears it, wait

[issue12892] UTF-16 and UTF-32 codecs should reject (lone) surrogates

2011-11-29 Thread STINNER Victor
STINNER Victor added the comment: Python 3.3 has a strange behaviour: >>> '\uDBFF\uDFFF'.encode('utf-16-le').decode('utf-16-le') '\U0010' >>> '\U0010'.encode('utf-16-le').decode('utf-16-le') '\U0010' I would expect text.decode(encoding).encode(encoding)==text or an encode or decod

[issue13483] Use VirtualAlloc to allocate memory arenas

2011-11-29 Thread Martin v . Löwis
Martin v. Löwis added the comment: The patch looks good to me. To study Microsoft's malloc, see VC\crt\src\malloc.c. Typically, it uses HeapAlloc from the CRT heap, unless it's in 32-bit mode, and __active_heap is either __V6_HEAP or __V5_HEAP. This is determined at startup by __heap_select,

[issue13502] Documentation for Event.wait return value is either wrong or incomplete

2011-11-29 Thread R. David Murray
R. David Murray added the comment: Thinking about it, if the flag's state if the wait does not expire is not guaranteed to be True, then what I really need is some way to know, when the wait call completes, whether or not it terminated because of a timeout or not. I can always query the valu

[issue3573] IDLE hangs when passing invalid command line args (directory(ies) instead of file(s))

2011-11-29 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- priority: normal -> high ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue13496] bisect module: Overflow at index computation

2011-11-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: The fix is trivial. I'll do it soonish. -- priority: low -> normal ___ Python tracker ___ ___ P

[issue13502] Documentation for Event.wait return value is either wrong or incomplete

2011-11-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, so digging a bit, the feature dates back to issue1674032. Interestingly, the OP in that issue had already envisioned that race condition and had precisely proposed the feature to avoid it: “Note that in the above case, the event could be cleared between t

[issue12919] Control what module is imported first

2011-11-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: I concur with Antoine. -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing

[issue13502] Event.wait sometimes returns False even when no timeout has occurred

2011-11-29 Thread R. David Murray
R. David Murray added the comment: Changing the title and component to reflect Antoine's new understanding :) -- components: +Library (Lib) -Documentation title: Documentation for Event.wait return value is either wrong or incomplete -> Event.wait sometimes returns False even when no t

[issue13483] Use VirtualAlloc to allocate memory arenas

2011-11-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: > The patch looks good to me. > > To study Microsoft's malloc, see VC\crt\src\malloc.c. Typically, it > uses HeapAlloc from the CRT heap, unless it's in 32-bit mode, and > __active_heap is either __V6_HEAP or __V5_HEAP. This is determined at > startup by __heap

[issue13483] Use VirtualAlloc to allocate memory arenas

2011-11-29 Thread Tim Golden
Tim Golden added the comment: 'fraid not. I've never had to dig into the allocation stuff at this level. -- ___ Python tracker ___ __

[issue12892] UTF-16 and UTF-32 codecs should reject (lone) surrogates

2011-11-29 Thread STINNER Victor
STINNER Victor added the comment: Patch rejecting surrogates in UTF-16 and UTF-32 encoders. I don't think that Python 2.7 and 3.2 should be changed in a minor version. -- dependencies: -Refactor code using unicode_encode_call_errorhandler() in unicodeobject.c keywords: +patch Added f

[issue12892] UTF-16 and UTF-32 codecs should reject (lone) surrogates

2011-11-29 Thread STINNER Victor
STINNER Victor added the comment: Hum, my patch doesn't call the error handler. -- ___ Python tracker ___ ___ Python-bugs-list mailin

[issue11113] html.entities mapping dicts need updating?

2011-11-29 Thread Martin v . Löwis
Martin v. Löwis added the comment: > 1) the current approach of having a dict with name -> intvalue doesn't work > anymore, and a name -> valuelist should be used instead; > 2) the reverse dict for this would have to use tuples as keys, but I'm not > sure how useful would that be (producin

[issue13471] setting access time beyond Jan. 2038 on remote share failes on Win7 x64

2011-11-29 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: It's probably SAMBA which does not support time_t above 32bit. st_atime=910692730085 corresponds to a FILE_TIME of 0x7fff -- ___ Python tracker _

[issue5654] Add C hook in PyDict_SetItem for debuggers

2011-11-29 Thread Martin v . Löwis
Martin v. Löwis added the comment: I think it's besides the point of this patch to ifdef it out. If John wants a version of Python with this enabled, he can well enough build one without our permission. So it would be useful only if it was always available, and perhaps properly integrated int

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

2011-11-29 Thread Shawn Ligocki
Shawn Ligocki added the comment: It doesn't seem like the styling is the issue, but the placement. You say that the standard style is to put this at the end of the section, is there somewhere it would be appropriate to bring this up for discussion? I think it would be much more intuitive if i

[issue13471] setting access time beyond Jan. 2038 on remote share failes on Win7 x64

2011-11-29 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: I found this samba bug: https://bugzilla.samba.org/show_bug.cgi?id=7785 It is fixed since Samba version 3.5.8. -- ___ Python tracker ___

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

2011-11-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, the version added is also prominently shown at the top of the page: http://docs.python.org/library/collections.html#module-collections I don't think the CSS should be changed or that versionadded should become more prominent -- this is usually one of

[issue6715] xz compressor support

2011-11-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 74d182cf0187 by Nadeem Vawda in branch 'default': Issue #6715: Add module for compression using the LZMA algorithm. http://hg.python.org/cpython/rev/74d182cf0187 -- nosy: +python-dev ___ Python tracker

[issue13483] Use VirtualAlloc to allocate memory arenas

2011-11-29 Thread Brian Curtin
Brian Curtin added the comment: > Tim, Brian, do you know anything about this? Unfortunately, no. It's on my todo list of things to understand but I don't see that happening in the near future. I'm willing to run tests or benchmarks for this issue, but that's likely the most I can provide.

[issue6715] xz compressor support

2011-11-29 Thread Nadeem Vawda
Nadeem Vawda added the comment: The patch has been committed. I'm leaving this issue open for a while longer, until more of the buildbots are building and testing the module. -- ___ Python tracker _

[issue13483] Use VirtualAlloc to allocate memory arenas

2011-11-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le mardi 29 novembre 2011 à 22:39 +, Brian Curtin a écrit : > Brian Curtin added the comment: > > > Tim, Brian, do you know anything about this? > > Unfortunately, no. It's on my todo list of things to understand but I > don't see that happening in the ne

[issue6715] xz compressor support

2011-11-29 Thread Per Øyvind Karlsen
Per Øyvind Karlsen added the comment: Not meaning to sound petty, but wouldn't it be common etiquette to retain some original copyright notice from original code intact..? -- ___ Python tracker ___

[issue13503] improved efficiency of bytearray pickling by using bytes type instead of str

2011-11-29 Thread Irmen de Jong
New submission from Irmen de Jong : Pickling of bytearrays is quite inefficient right now, because bytearray's __reduce__ encodes the bytes of the bytearray into a str. A pickle made from a bytearray is quite a bit larger than necessary because of this, and it also takes a lot more processing

[issue13503] improved efficiency of bytearray pickling by using bytes type instead of str

2011-11-29 Thread Irmen de Jong
Changes by Irmen de Jong : Added file: http://bugs.python.org/file23813/bytearray27.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue13503] improved efficiency of bytearray pickling by using bytes type instead of str

2011-11-29 Thread Irmen de Jong
Irmen de Jong added the comment: btw I'm aware of PEP-3154 but I don't think this particular patch requires a pickle protocol bump. -- ___ Python tracker ___ __

[issue13504] Meta-issue for "Invent with Python" IDLE feedback

2011-11-29 Thread Nick Coghlan
New submission from Nick Coghlan : This is a meta-issue for the following blog post: http://inventwithpython.com/blog/2011/11/29/the-things-i-hate-about-idle-that-i-wish-someone-would-fix/ There are a bunch of good ideas there that should be split out into a number of separate bug reports and

[issue13504] Meta-issue for "Invent with Python" IDLE feedback

2011-11-29 Thread Nick Coghlan
Nick Coghlan added the comment: If you decide to work on one of the problems or feature requests mentioned in that post: 1. Create a separate, appropriately titled, tracker issue 2. Add that issue to the Dependencies field on this one. 3. Add a comment here to map the point number from the blo

[issue13504] Meta-issue for "Invent with Python" IDLE feedback

2011-11-29 Thread Nick Coghlan
Nick Coghlan added the comment: Also add dependencies and links for any already known issues. For example: #10747 covers point 16) (re. version numbers in Windows shortcuts) -- dependencies: +Include version info in Windows shortcuts ___ Python trac

[issue6715] xz compressor support

2011-11-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Not meaning to sound petty, but wouldn't it be common etiquette to > retain some original copyright notice from original code intact..? It seemed to me that Nadeem had rewritten everything from scratch. Is there any code of yours in the current module? -

  1   2   >