[issue14973] restore python2 unicode literals in ur strings

2012-07-18 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: Should it be closed? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14973 ___ ___

[issue15092] Using enum PyUnicode_Kind

2012-07-18 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: Please, can anyone do the review of this large but trivial patch? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15092 ___

[issue1767933] Badly formed XML using etree and utf-16

2012-07-18 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: Python 3.2 currently shipped in last Ubuntu LTS and will be in production at least next 5 years. I think it will be main Python version for many years. Here is a compound patch (changesets 6120cf695574, 64ff90e07d71, 51978f89e5ed and

[issue14513] IDLE icon switched and switches on Windows taskbar

2012-07-18 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: In the next alpha release, everything was fine and I though about closing this. When I first installed b1, the problem came back. But in a few days, 3.3.0b1 started working right. I did two things since to my installed idlelib, beside just

[issue15381] Optimize BytesIO to so less reallocations when written, similarly to StringIO

2012-07-18 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: I wonder if this is a fair comparison, Serhiy. Strings are unicode underneath, so they have a large overhead per string (more data to copy around). Increasing the length of the strings changes the game because due to PEP 393, the overhead for

[issue15171] Fix 64-bit building for buildbot scripts (3.2)

2012-07-18 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Thanks, David! I'll close this issue, perhaps the compile failures on the Windows 7 buildbot can be sorted out separately. -- status: open - closed ___ Python tracker rep...@bugs.python.org

[issue14458] Non-admin installation fails

2012-07-18 Thread Timothy Madden
Timothy Madden terminato...@gmail.com added the comment: The command also worked for me on Windows 7 Professional 64-bit, but pythonw does not start, and I could not check if everything in CLI python.exe works as expected. As you said, something is not right with it, and it also installs just

[issue13785] Make concurrent.futures.Future state public

2012-07-18 Thread Juan Javier
Changes by Juan Javier jjdomingu...@gmail.com: -- status: open - languishing ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13785 ___ ___

[issue15092] Using enum PyUnicode_Kind

2012-07-18 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: I'd strongly prefer not having enum everywhere. PyUnicode_Kind alone is certainly possible, maybe with a typedef? -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org

[issue15384] FileFinder.path_hook()() returns None on Windows

2012-07-18 Thread Nick Coghlan
New submission from Nick Coghlan ncogh...@gmail.com: As noted in #15314, one of the pkgutil tests was failing on Windows because pkgutil.get_importer() was returning None. On my Fedora system it returns FileFinder(.). I've now tweaked that particular test to use a bogus path string so that

[issue15384] FileFinder.path_hook()() returns None on Windows

2012-07-18 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- stage: - test needed type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15384 ___ ___

[issue15379] Charmap decoding of no-BMP characters

2012-07-18 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: In 3.2, narrow build is also broken when the charmap is a string: codecs.charmap_decode(b'\0', 'strict', '\U0002000B') returns (' ', 1) with a wide unicode build, but ('\ud840', 1) with a narrow build. 3.2 could be fixed to allow

[issue15385] Behaviour change in runpy for __file__ attributes between 3.2 and 3.3

2012-07-18 Thread Nick Coghlan
New submission from Nick Coghlan ncogh...@gmail.com: Directory setup: linkdir is a symlink to realdir $ python3 -c import sys; sys.path.insert(0, 'linkdir'); import runpy; print(runpy.run_module('foo')['__file__']) /home/ncoghlan/devel/play/realdir/foo.py $ ../py3k/python -c import sys;

[issue15385] Behaviour change in runpy for __file__ attributes between 3.2 and 3.3

2012-07-18 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- resolution: - works for me status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15385 ___

[issue15383] Autocompletion crashes Python if the __builtins__ module cannot be found.

2012-07-18 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: This is the same as issue 15113. If you delete __builtins__, don't expect Python to work. -- nosy: +r.david.murray resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - IDLE Shell:

[issue15314] Use importlib instead of pkgutil in runpy

2012-07-18 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Buildbots are green (at least as far as this issue goes), so closing again. I created #15384 for the surprising behaviour of FileFinder on Windows. #15385 records my investigation into the odd symlink behaviour on 3.2 (it was just a

[issue10399] AST Optimization: inlining of function calls

2012-07-18 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10399 ___ ___

[issue15386] Still getting two copies of importlib._boostrap

2012-07-18 Thread Nick Coghlan
New submission from Nick Coghlan ncogh...@gmail.com: I haven't worked out how yet, but importlib.machinery is managing to bypass the replacement of importlib._bootstrap with _frozen_importlib: Python 3.3.0b1 (default:8bf691d0b004+, Jul 15 2012, 23:20:06) [GCC 4.7.0 20120507 (Red Hat 4.7.0-5)]

[issue15386] Still getting two copies of importlib._bootstrap

2012-07-18 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- title: Still getting two copies of importlib._boostrap - Still getting two copies of importlib._bootstrap ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15386

[issue15384] pkgutil.get_importer() was returning None on Windows buildbots

2012-07-18 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Well, that's weird. A manual test on my Windows 7 gaming rig indicates that the old test *should* have worked on Windows as well. I have no idea how to investigate this further. David, are you able to check what pkgutil.get_importer() returns

[issue15387] pkgutil.walk_packages is using a deprecated API

2012-07-18 Thread Nick Coghlan
New submission from Nick Coghlan ncogh...@gmail.com: $ ./python -Wdefault Python 3.3.0b1 (default:8bf691d0b004+, Jul 15 2012, 23:20:06) [GCC 4.7.0 20120507 (Red Hat 4.7.0-5)] on linux Type help, copyright, credits or license for more information. import pkgutil list(pkgutil.walk_packages(.))

[issue15381] Optimize BytesIO to so less reallocations when written, similarly to StringIO

2012-07-18 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: I'd like to take a shot at this, if Antoine doesn't mind. I'll prepare a patch for bytesio.c Question: what set of benchmarks would it be good to run to make sure this doesn't degrade the performance of BytesIO in various cases? --

[issue15364] sysconfig confused by relative paths

2012-07-18 Thread Richard Oudkerk
Richard Oudkerk shibt...@gmail.com added the comment: Here is an updated patch which also modifies distutils.sysconfig. For installed pythons on posix systems it makes get_config_var('srcdir') == os.path.dirname(get_makefile_filename()) (The older patches would give the same result only

[issue15364] sysconfig confused by relative paths

2012-07-18 Thread Richard Oudkerk
Richard Oudkerk shibt...@gmail.com added the comment: Forgot to remove some unnecessary code in patch. -- Added file: http://bugs.python.org/file26427/sysconf.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15364

[issue15364] sysconfig confused by relative paths

2012-07-18 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: I'd make get_config_var('srcdir') to be None for installed systems, because the source tree is not available there. The advantage of making the value None is that this is easy to test for and would quickly break path manipulation code

[issue15307] Patch for --symlink support in pyvenv with framework python

2012-07-18 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: There is no NEWS entry, I'll commit one when I get home. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15307 ___

[issue15368] bytecode generation is not deterministic

2012-07-18 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: You ran the benchmarks correctly, but I was more worried about compilation time than execution time (changing which index is for what really shouldn't make a difference in performance, and the benchmarks show that). If you want to test using

[issue15387] pkgutil.walk_packages is using a deprecated API

2012-07-18 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: I think the imp functions do need to go away. They perpetuate an absolutely horrendous API that I'm trying to slowly kill (and the underlying imp code is already reusing importlib). They already are a burden for future API growth as people

[issue15184] Test failure in test_sysconfig_module

2012-07-18 Thread Richard Oudkerk
Richard Oudkerk shibt...@gmail.com added the comment: I suspect the problem is related to http://bugs.python.org/issue15298. Basically the global sysconfig module caches the results of parsing Makefile in Lib/_sysconfigdata.py. This can cause you to get the config vars from an old configure

[issue15386] Still getting two copies of importlib._bootstrap

2012-07-18 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: I would have said that it wasn't because it was just the class type not picking up on the __name__ re-assignment, but that global name failure states otherwise. -- nosy: +brett.cannon ___ Python

[issue15387] pkgutil.walk_packages is using a deprecated API

2012-07-18 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset af7961e1c362 by Nick Coghlan in branch 'default': Close #15387: inspect.getmodulename() now uses a new importlib.machinery.all_suffixes() API rather than the deprecated inspect.getmoduleinfo()

[issue15387] pkgutil.walk_packages is using a deprecated API

2012-07-18 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: The problem turned out to just be inspect.getmodulename() still relying on the deprecated inspect.getmoduleinfo(), so I changed it to be based on importlib.machinery instead. I did make an importlib API addition to do it though - the

[issue15386] Still getting two copies of importlib._bootstrap

2012-07-18 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Yup. A simpler demonstration: Python 3.3.0b1 (default:8bf691d0b004+, Jul 15 2012, 23:20:06) [GCC 4.7.0 20120507 (Red Hat 4.7.0-5)] on linux Type help, copyright, credits or license for more information. from importlib import _bootstrap,

[issue5364] documentation in epub format

2012-07-18 Thread Ilpo Nyyssönen
Changes by Ilpo Nyyssönen i...@iki.fi: -- nosy: +biny ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5364 ___ ___ Python-bugs-list mailing list

[issue15360] Behavior of assigning to __dict__ is not documented

2012-07-18 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: What kind of behavior are you referring to? Are there really differences between versions? -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org

[issue15368] bytecode generation is not deterministic

2012-07-18 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: Oh, cool -- I didn't know about the importlib benchmarks. Thanks Brett. Here are the results (OS X 10.7.4, Dual 1.7GHz Core i5, 4 GB RAM): $ ./python.exe -m importlib.test.benchmark Measuring imports/second over 1 second, best out of 3 Entire

[issue15386] Still getting two copies of importlib._bootstrap

2012-07-18 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Checking with importlib.abc and importlib.util (which turned out not to have the problem) put me on the right path: the problem is the import of imp in importlib.__init__ What appears to be happening is that the interpreter sees the partially

[issue15387] pkgutil.walk_packages is using a deprecated API

2012-07-18 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: RE: the API addition: fine by me if it makes your life easier. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15387 ___

[issue15368] bytecode generation is not deterministic

2012-07-18 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Yep, so I consider the performance worry dealt with. -- stage: needs patch - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15368

[issue15386] Still getting two copies of importlib._bootstrap

2012-07-18 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Nice catch! Obviously that needs a big comment to avoid that problem in the future. -- versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15386

[issue15368] bytecode generation is not deterministic

2012-07-18 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Agreed, so definite +1 from me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15368 ___ ___

[issue15388] SAX parse (ExpatParser) leaks file handle when given filename input

2012-07-18 Thread Matt Hillsdon
New submission from Matt Hillsdon m...@corefiling.com: The following example uses make_parser / parse to read a trivial XML document by filename and then attempts to delete the file. On Win32 I can't unlink the file because the parse does not seem to close the file handle. import os import

[issue15381] Optimize BytesIO to so less reallocations when written, similarly to StringIO

2012-07-18 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: I wonder if this is a fair comparison, Serhiy. I just used your examples. When re-running your tests with larger chunks, the results are quite interesting: Well, now I see, that BytesIO slower StringIO. --

[issue15368] bytecode generation is not deterministic

2012-07-18 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: So I think that just leaves one other person to verify the patch works as expected and then commit it. I can hopefully later this week, but no sooner than Friday, so if someone can get to it faster that would be great. --

[issue13785] Make concurrent.futures.Future state public

2012-07-18 Thread Brian Quinlan
Brian Quinlan br...@sweetapp.com added the comment: My current thinking is that adding a state property probably isn't worth it given the fact that you can construct this yourself and the requirement for a history property is too specialized. The callback idea seams reasonable and sufficient

[issue8713] multiprocessing needs option to eschew fork() under Linux

2012-07-18 Thread Catalin Iacob
Changes by Catalin Iacob iacobcata...@gmail.com: -- nosy: +catalin.iacob ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8713 ___ ___

[issue15368] bytecode generation is not deterministic

2012-07-18 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: I can commit today unless you think we need someone else to independently verify the patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15368

[issue15368] bytecode generation is not deterministic

2012-07-18 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: BTW, I think this should be committed on 2.7 and 3.2 as well since the same issue can happen when throwing -R. Any objections? -- ___ Python tracker rep...@bugs.python.org

[issue15082] [httplib] httplib.BadStatusLine on any HTTPS connection in certain unknown cases.

2012-07-18 Thread Michal Zimen
Michal Zimen michal.zi...@gmail.com added the comment: I can confirm similar behaviour in RHEL 6.3 with python 2.6.6. This exception with the same https request has random behaviour. -- nosy: +Michal.Zimen ___ Python tracker rep...@bugs.python.org

[issue15379] Charmap decoding of no-BMP characters

2012-07-18 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: Well, here is a patch for 3.2. -- versions: +Python 3.2 Added file: http://bugs.python.org/file26428/decode_charmap_maxchar-3.2.patch ___ Python tracker rep...@bugs.python.org

[issue15368] bytecode generation is not deterministic

2012-07-18 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Nah, you are a committer and thus qualify as the second review. =) As for backporting, it only affects regeneration of bytecode, so I don't see any major harm in it (might surprise some people, but there is a legitimate reason for fixing this).

[issue12834] PyBuffer_ToContiguous() incorrect for non-contiguous arrays

2012-07-18 Thread Christian Heimes
Christian Heimes li...@cheimes.de added the comment: I think that I run into the same bug today. I've developing a PEP 3118 buffer interface for my wrapper of FreeImage. It returns the data as non-contiguous 3d array with the dimension height, width, color. I've created a small test image

[issue12834] PyBuffer_ToContiguous() incorrect for non-contiguous arrays

2012-07-18 Thread Meador Inge
Changes by Meador Inge mead...@gmail.com: -- nosy: +meador.inge ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12834 ___ ___ Python-bugs-list

[issue15184] Test failure in test_sysconfig_module

2012-07-18 Thread Ned Deily
Ned Deily n...@acm.org added the comment: I don't see how this is related to Issue15298. In the failure here, sysconfig returns the expected value; the problem is with what distutils.sysconfig returns. -- ___ Python tracker rep...@bugs.python.org

[issue15386] Still getting two copies of importlib._bootstrap

2012-07-18 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15386 ___

[issue15360] Behavior of assigning to __dict__ is not documented

2012-07-18 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15360 ___

[issue10017] pprint.pprint raises TypeError on dictionaries with user-defined types as keys

2012-07-18 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: Confirmed on python 3.2 and 3.3. -- keywords: +easy nosy: +flox stage: - needs patch type: - behavior versions: +Python 3.2, Python 3.3 -Python 3.1 ___ Python tracker

[issue15368] bytecode generation is not deterministic

2012-07-18 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 7eb0180c1734 by Meador Inge in branch '2.7': Issue #15368: make bytecode generation deterministic. http://hg.python.org/cpython/rev/7eb0180c1734 New changeset 79d54fba49b3 by Meador Inge in branch '3.2': Issue

[issue15368] bytecode generation is not deterministic

2012-07-18 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: Committed. Thanks for the reviews y'all. -- resolution: - fixed stage: commit review - committed/rejected status: open - closed versions: +Python 2.7, Python 3.2 ___ Python tracker

[issue12510] IDLE: calltips mishandle raw strings and other examples

2012-07-18 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Are there any other aspects of the calltip handler that requires fixing? If not, then I can start back-porting the patches. -- ___ Python tracker rep...@bugs.python.org

[issue9998] ctypes find_library should search LD_LIBRARY_PATH on linux

2012-07-18 Thread Łukasz Langa
Łukasz Langa luk...@langa.pl added the comment: What changed since http://bugs.python.org/issue2936? -- nosy: +lukasz.langa ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9998 ___

[issue15381] Optimize BytesIO to so less reallocations when written, similarly to StringIO

2012-07-18 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: Here is a preliminary version of the patch. I am not sure that it is fully correct. Microbenchmark results: $ ./python -m timeit -s import io; n=100; d=['a'*n,'bb'*n,'ccc'*n]*1 s=io.StringIO(); w=s.write for x in d: w(x)

[issue15379] Charmap decoding of no-BMP characters

2012-07-18 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: About the patch for 3.2: needed = 6 - extrachars Where does this 6 come from? There is another part which uses this extrachars. Why is the allocation strategy different here? -- ___

[issue15384] pkgutil.get_importer() was returning None on Windows buildbots

2012-07-18 Thread David Bolen
David Bolen db3l@gmail.com added the comment: With a local build on my buildbot of the tip of the default branch, pkgutil.get_importer('') returns FileFilter('.'). The tests also passed. However, after checking here and realizing the offending code had been removed from the test, I put

[issue15379] Charmap decoding of no-BMP characters

2012-07-18 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: It's the same strategy. needed = (targetsize - extrachars) + (targetsize 2). targetsize == 2. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15379

[issue13785] Make concurrent.futures.Future state public

2012-07-18 Thread Juan Javier
Juan Javier jjdomingu...@gmail.com added the comment: I totally agree, I'm going to take a look at the code and I'll write back with some comments. That will be next week, work is currently very demanding. -- status: languishing - open versions: +Python 3.4 -Python 3.3

[issue15368] bytecode generation is not deterministic

2012-07-18 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: Meador, you have forgotten to fix the error PyList_GET_SIZE(src). src is not list, should be PyList_GET_SIZE(sorted_keys). -- nosy: +storchaka ___ Python tracker rep...@bugs.python.org

[issue15379] Charmap decoding of no-BMP characters

2012-07-18 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Ah, I was worried by the possible quadratic behavior. So the other (existing) case is quadratic as well (I was mislead by the , which made me think there is something clever there). That's good enough for 3.2, I guess. --

[issue9890] Visual C++ Runtime Library Error is there a fix?

2012-07-18 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Is this still a problem? My guess is that this issue is out of date. -- nosy: +serwy status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9890

[issue15368] bytecode generation is not deterministic

2012-07-18 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: D'oh! Thanks for catching that Serhiy! Fixing now. Sorry about that. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15368 ___

[issue15389] PEP 3121, 384 refactoring applied to curses module

2012-07-18 Thread Robin Schreiber
New submission from Robin Schreiber robin.schrei...@me.com: Changes proposed in PEP3121 and PEP384 applied to the curses module. As these Changes do not alter behaviour of the specific modules, I would encourage to see this enhancement as a bugfix and consequently include this into the coming

[issue15390] PEP 3121, 384 refactoring applied to datetime module

2012-07-18 Thread Robin Schreiber
New submission from Robin Schreiber robin.schrei...@me.com: Changes proposed in PEP3121 and PEP384 have now been applied to the datetime module! -- components: Extension Modules files: _datetimemodule_pep3121-384_v0.patch keywords: patch messages: 165805 nosy: Robin.Schreiber priority:

[issue9998] ctypes find_library should search LD_LIBRARY_PATH on linux

2012-07-18 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: What changed since http://bugs.python.org/issue2936? Well for one thing, #2936 was a bug report (behavior) but this is an enhancement request. It seems that if you don't know exactly what a library is called, you can't use find_library

[issue9998] ctypes find_library should search LD_LIBRARY_PATH on linux

2012-07-18 Thread Łukasz Langa
Łukasz Langa luk...@langa.pl added the comment: Fair enough. From what I've gathered though, it looks like the window for inclusion in 3.3 is already closed, right? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9998

[issue15389] PEP 3121, 384 refactoring applied to curses module

2012-07-18 Thread Łukasz Langa
Łukasz Langa luk...@langa.pl added the comment: If I understand correctly, it will be hard to justify this as a bugfix. But let's ask the Release Manager. -- nosy: +georg.brandl, lukasz.langa ___ Python tracker rep...@bugs.python.org

[issue6257] Idle terminates on source save while debugging

2012-07-18 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: The only was I get IDLE to crash is if the file has breakpoints enabled. Is this how IDLE is crashing? -- nosy: +serwy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6257

[issue9803] IDLE closes with save while breakpoint open

2012-07-18 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Reopening. I mistakenly closed this issue as a duplicate, but this issue involves breakpoints, unlike 6257. -- resolution: duplicate - status: closed - open superseder: Idle terminates on source save while debugging -

[issue15368] bytecode generation is not deterministic

2012-07-18 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 47e074f6ca26 by Meador Inge in branch '2.7': Issue #15368: fixing variable typo. http://hg.python.org/cpython/rev/47e074f6ca26 New changeset 1c46f2ede4cb by Meador Inge in branch '3.2': Issue #15368: fixing variable

[issue14596] struct.unpack memory leak

2012-07-18 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: Please, can anyone do the review? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14596 ___

[issue9803] IDLE closes with save while breakpoint open

2012-07-18 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Attached is a patch to fix the issue. The ranges_to_linenumbers function relies on the results of text.tag_ranges. The returned tuple contains Tk textindex objects. While these objects contain a string, they are not string objects. Its

[issue6257] Idle terminates on source save while debugging

2012-07-18 Thread Andy Harrington
Andy Harrington ahar...@luc.edu added the comment: yes I certainly used breakpoints On Wed, Jul 18, 2012 at 4:50 PM, Roger Serwy rep...@bugs.python.org wrote: Roger Serwy roger.se...@gmail.com added the comment: The only was I get IDLE to crash is if the file has breakpoints enabled. Is

[issue14596] struct.unpack memory leak

2012-07-18 Thread Meador Inge
Changes by Meador Inge mead...@gmail.com: -- nosy: +meador.inge ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14596 ___ ___ Python-bugs-list

[issue10017] pprint.pprint raises TypeError on dictionaries with user-defined types as keys

2012-07-18 Thread Anton Barkovsky
Changes by Anton Barkovsky swarmer...@gmail.com: -- nosy: +anton.barkovsky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10017 ___ ___

[issue14105] Breakpoints in debug lost if line is inserted; IDLE

2012-07-18 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: The ColorDelegator is responsible for providing the coloring for the BREAK tag which is used to mark breakpoints. When recoloring, the BREAK tag may be removed (find self.tag_remove in recolorize_main). This is precisely why the breakpoints

[issue6257] Idle terminates on source save while debugging

2012-07-18 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Thanks Andy for your prompt response. This issue is a duplicate with issue9803 which has a patch. I will close this issue in favor of that one. Feel free to add yourself to the nosy list if you wish. -- resolution: - duplicate

[issue10017] pprint.pprint raises TypeError on dictionaries with user-defined types as keys

2012-07-18 Thread Anton Barkovsky
Anton Barkovsky swarmer...@gmail.com added the comment: Here's a patch with fix and tests. Note that class objects are not comparable and have the same type so they fall back on sorting by id. Should we sort them by name as a special case instead? -- keywords: +patch Added file:

[issue15391] Add bitlength function to the math module

2012-07-18 Thread anon
New submission from anon unluckykit...@mailinator.com: Many numeric algorithms require knowing the number of bits an integer has (for instance integer squareroots). For example this simple algorithm using shifts is O(n^2): def bitl(x): x = abs(x) n = 0 while x 0: n = n+1 x = x1

[issue15391] Add bitlength function to the math module

2012-07-18 Thread Alex Gaynor
Alex Gaynor alex.gay...@gmail.com added the comment: I think what you're looking for already exists: http://docs.python.org/dev/library/stdtypes.html#int.bit_length -- nosy: +alex ___ Python tracker rep...@bugs.python.org

[issue9254] __import__ docstring should recommend importlib.import_module()

2012-07-18 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 751f28564a45 by R David Murray in branch '2.7': Closes #9254: backport __import__ docstring/doc mentions of importlib. http://hg.python.org/cpython/rev/751f28564a45 -- resolution: - fixed stage: commit

[issue15391] Add bitlength function to the math module

2012-07-18 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15391 ___ ___ Python-bugs-list mailing list

[issue15391] Add bitlength function to the math module

2012-07-18 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: Closing as Invalid. I think that Alex is right. Anon, if you think this is a mistake, please reopen and argument. -- resolution: - invalid status: open - closed ___ Python tracker

[issue12510] IDLE: calltips mishandle raw strings and other examples

2012-07-18 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: The original patches were to all 3 versions. The later patches were to both 3.x versions and mostly involved get_argspec and expanding the tests. Get_argspec is somewhat different from get_arg_text, the 2.x function it replaced. The main

[issue6068] ctypes is not correctly handling bitfields backed by 64 bit integers on Windows

2012-07-18 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: I am closing this issue in favor of issue6493. This patch attached to this issue is incorrect. The proposed definition of BIT_MASK allows for undefined behavior when the number of bits shifted is 64 for a uint64. The patch in issue6493

[issue6493] Can not set value for structure members larger than 32 bits

2012-07-18 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: The problem is with the 'BIT_MASK' macro, which is currently defined as the following for Windows: #define BIT_MASK(size) ((1 NUM_BITS(size))-1) The C standard says that any attempt to shift left by exactly the bit width is undefined

[issue15392] Create a unittest framework for IDLE

2012-07-18 Thread Terry J. Reedy
New submission from Terry J. Reedy tjre...@udel.edu: Idle needs a unittest framework for module test modules. This means a test directory with at least one test module, a runtest module that successfully runs that test module, any new support functions needed for that test module, and

[issue10399] AST Optimization: inlining of function calls

2012-07-18 Thread Gregory P. Smith
Changes by Gregory P. Smith g...@krypto.org: -- nosy: +gregory.p.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10399 ___ ___

[issue11549] Build-out an AST optimizer, moving some functionality out of the peephole optimizer

2012-07-18 Thread Gregory P. Smith
Changes by Gregory P. Smith g...@krypto.org: -- nosy: +gregory.p.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11549 ___ ___

[issue6493] Can not set value for structure members larger than 32 bits

2012-07-18 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 77401bd4f567 by Meador Inge in branch '2.7': Issue #6493: Fix handling of c_uint32 bitfields with width of 32 on Windows. http://hg.python.org/cpython/rev/77401bd4f567 New changeset 153ae76b963e by Meador Inge in

[issue6493] Can not set value for structure members larger than 32 bits

2012-07-18 Thread Meador Inge
Changes by Meador Inge mead...@gmail.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6493 ___