[issue11604] Have type(n,b,d) check for type(b[i]) is module

2011-03-18 Thread Ray.Allen
Ray.Allen added the comment: > I am only suggesting a check for module because the is the only mistake > I > remember anyone reporting. Passing a number as a base class gives a > > > similar message, but no one does that. And as far as I know, there is > no > way in general to detect whether

[issue11549] Rewrite peephole to work on AST

2011-03-18 Thread Eugene Toder
Eugene Toder added the comment: AFAICT my patch has everything that #1346238 has, except BoolOps, which can be easily added (there's a TODO). I don't want to add any new code, though, until the current patch will get reviewed -- adding code will only make reviewing harder. #10399 looks inter

[issue11465] Set documentation: Link to wikipedia

2011-03-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: There is no end of helpful articles at Wikipedia and elsewhere. Wikipedia articles are especially easy to find with a special search in some browsers and on the site. In my experience on python-list, for instance, people have much more problem with floats, fo

[issue11463] IncompleteRead: IncompleteRead(168 bytes read)

2011-03-18 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue11463] IncompleteRead: IncompleteRead(168 bytes read)

2011-03-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: 2.6 is only open for security issues, so any verification should use later version. -- nosy: +terry.reedy status: pending -> open versions: -Python 2.6 ___ Python tracker __

[issue1346238] A constant folding optimization pass for the AST

2011-03-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: #11549 Rewrite peephole to work on AST includes constant folding. I have not compared. -- nosy: +terry.reedy versions: +Python 3.3 -Python 3.2 ___ Python tracker ___

[issue11549] Rewrite peephole to work on AST

2011-03-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: A couple of somewhat related issues: #10399 AST Optimization: inlining of function calls #1346238 A constant folding optimization pass for the AST Obviously, ast optimizers should work together and not duplicate. Nice to see increased attention. -- nosy

[issue11462] Peephole creates duplicate and unused constants

2011-03-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: Eugene has started work on AST optimizer in #11549 -- nosy: +terry.reedy superseder: -> Rewrite peephole to work on AST ___ Python tracker ___

[issue11432] webbrowser.open on unix fails.

2011-03-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: With fix, test, and news in 3.2 and 3.3, is anything left to do? -- nosy: +terry.reedy ___ Python tracker ___ _

[issue11418] Method's global scope is module containing function definition, not class.

2011-03-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: "Methods defined within a class may reference..." would make the tutorial correct without introducing the complication of methods defined outside a class, let alone in another module. -- nosy: +terry.reedy ___ Pytho

[issue11415] ZipFile don't overwrite compresed files at create

2011-03-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: 2.6 is only open for security fixes. -- nosy: +terry.reedy resolution: -> invalid status: open -> closed superseder: -> remove/delete method for zipfile/tarfile objects versions: -Python 2.6 ___ Python tracker

[issue11412] Section numbers in the Library Reference have a trailing period

2011-03-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: My haphazard sample gave 8 without, 5 with. I suspect trailing dot is analogy with lists: 1. something. 2. something else. 2.1. detail of else 2.2. more detail Books without generally have extra space instead of '.'. -- nosy: +terry.reedy ___

[issue11397] os.path.realpath() may produce incorrect results

2011-03-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: 2.5 and 2.6 are only open for security issues. I am guessing that 2.7, 3.1, and 3.3 are affected. I cannot test as I only have Windows currently. -- nosy: +terry.reedy stage: -> test needed versions: +Python 2.7, Python 3.1, Python 3.3 -Python 2.5, Pyt

[issue10042] total_ordering stack overflow

2011-03-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 94c158199277 by Éric Araujo in branch '2.7': Fix the total_ordering decorator to handle cross-type comparisons http://hg.python.org/cpython/rev/94c158199277 -- nosy: +python-dev stage: -> committed/rejected status: open -> closed

[issue3873] Unpickling is really slow

2011-03-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.o

[issue9410] Add Unladen Swallow's optimizations to Python 3's pickle.

2011-03-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.o

[issue11370] Fix distutils to carry configure's LIBS through to extension modules.

2011-03-18 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the report and patch. Has this bug been a problem for existing projects? Would you have links? > Looks like this should've been done against the py3k branch instead. Yes, patches should apply to the py3k branch, or to distutils2. More guidelines at

[issue9313] distutils error on MSVC older than 8

2011-03-18 Thread Éric Araujo
Éric Araujo added the comment: Martin: Just applying the same changes to distutils2. -- ___ Python tracker ___ ___ Python-bugs-list ma

[issue11376] Solaris/GCC/shared lib problem

2011-03-18 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the report. What’s the exact command-line you run? In your message, it looks like you run the pycc command which then outputs the gcc error. -- ___ Python tracker

[issue9516] sysconfig: $MACOSX_DEPLOYMENT_TARGET mismatch: now "10.3" but "10.5" during configure

2011-03-18 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo title: sysconfig: $MACOSX_DEPLOYMENT_TARGET mismatch: now "10.3"but "10.5" during configure -> sysconfig: $MACOSX_DEPLOYMENT_TARGET mismatch: now "10.3" but "10.5" during configure ___ Python tr

[issue11604] Have type(n,b,d) check for type(b[i]) is module

2011-03-18 Thread Terry J. Reedy
New submission from Terry J. Reedy : People occasionally ask on python-list about the following error message when trying to create a class: > TypeError: Error when calling the metaclass bases > module.__init__() takes at most 2 arguments (3 given) It is a bit cryptic. It is also accidental: i

[issue10050] urllib.request still has old 2.x urllib primitives

2011-03-18 Thread Jeff McNeil
Jeff McNeil added the comment: Made requested change to Synopsis/Description. -- Added file: http://bugs.python.org/file21287/issue10050.patch ___ Python tracker ___ ___

[issue10042] total_ordering stack overflow

2011-03-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: Éric, would you like to apply this to 2.7? -- assignee: rhettinger -> eric.araujo ___ Python tracker ___ ___

[issue11071] What's New review comments

2011-03-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: It seems no new issues have arisen. If something new comes-up, feel free to re-open. -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue7391] Re-title the "Using Backslash to Continue Statements" anti-idiom

2011-03-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 80ff78425419 by Raymond Hettinger in branch '3.2': Issue 7391: Remove questionable and outdated HOWTO document with permission from its author. http://hg.python.org/cpython/rev/80ff78425419 -- ___ Pytho

[issue10050] urllib.request still has old 2.x urllib primitives

2011-03-18 Thread Senthil Kumaran
Senthil Kumaran added the comment: Changing the description is a minor update. The term 'URL access module' seems fine. -- ___ Python tracker ___ __

[issue10050] urllib.request still has old 2.x urllib primitives

2011-03-18 Thread Jeff McNeil
Jeff McNeil added the comment: Made recommended changes. Moved to NamedTemporaryFile. I don't think the spooled file makes sense here as the existing protocol provides a filename in the returned tuple, not a f.l.o. As far as the description? Here are a couple suggestions: 1. URL Retrieval

[issue11603] Python crashes or hangs when rebinding __repr__ as __str__

2011-03-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: With 3.2 on WinXP, I get no error report in interactive mode, with either IDLE or plain interpreter, nor from 'python file' in Command Prompt window. But now with the print added to what I ran before, I see no print output, and I see that IDLE is restarting af

[issue10050] urllib.request still has old 2.x urllib primitives

2011-03-18 Thread Senthil Kumaran
Senthil Kumaran added the comment: Significant patch. Thanks. I looked at the review too. For the Context Manager part, don't club it along with this one. We need to test this thoroughly, after this is in shape, that can be addressed. -- ___ Python t

[issue11594] 2to3 tool does not preserve line-endings

2011-03-18 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- assignee: -> benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue11476] StreamHandler code broken by change of parameter name

2011-03-18 Thread follower
follower added the comment: I don't think it would be unreasonable to add the old name back in temporarily and use whichever parameter is supplied--this change has obviously broken code in the process. But for future situations I think changes like this shouldn't happen without a deprecation

[issue10050] urllib.request still has old 2.x urllib primitives

2011-03-18 Thread Éric Araujo
Éric Araujo added the comment: Follow the “review” link next to the patch for an initial review. -- ___ Python tracker ___ ___ Python

[issue11476] StreamHandler code broken by change of parameter name

2011-03-18 Thread Vinay Sajip
Vinay Sajip added the comment: It's a formal parameter name, in general passed by position rather than keyword. Anyway, it seems a bit late to change it back now. -- ___ Python tracker ___

[issue9874] Message.attach() loses empty attachments

2011-03-18 Thread R. David Murray
Changes by R. David Murray : -- assignee: -> r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue10050] urllib.request still has old 2.x urllib primitives

2011-03-18 Thread Jeff McNeil
Jeff McNeil added the comment: Alright, attaching a patch that reworks urlretrieve to use urlopen internal to urllib.request. 1. I dropped the local caching as it isn't turned on by default anyway (and isn't really documented). 2. Updated documentation to reflect caching changes & make url

[issue1559549] ImportError needs attributes for module and file name

2011-03-18 Thread Filip Gruszczyński
Filip Gruszczyński added the comment: Ok, here is a patch created using mq. I have a problem, however. I managed to solve following situation: try: raise ImportError('failed import' module_name='somemodule') except ImportError as e: print(e.module_name) that would print somemodule. H

[issue1559549] ImportError needs attributes for module and file name

2011-03-18 Thread Filip Gruszczyński
Changes by Filip Gruszczyński : Removed file: http://bugs.python.org/file21031/1559549_2.patch ___ Python tracker ___ ___ Python-bugs-list m

[issue1559549] ImportError needs attributes for module and file name

2011-03-18 Thread Filip Gruszczyński
Changes by Filip Gruszczyński : Removed file: http://bugs.python.org/file21020/1559549_1.patch ___ Python tracker ___ ___ Python-bugs-list m

[issue11598] missing afxres.h error when building bdist_wininst in Visual Studio 2008 Express

2011-03-18 Thread Lorenz
Lorenz added the comment: replace the "afxres.h" by the following lines and then it builds: #include #ifndef IDC_STATIC #define IDC_STATIC (-1) #endif but the problem is, that the 'install.rc' file is generated. Unfortunately I do not know how to solve the root cause. -- nosy: +DaM

[issue11603] Python crashes or hangs when rebinding __repr__ as __str__

2011-03-18 Thread Andreas Stührk
Andreas Stührk added the comment: Confirmed under 3.2 and 2.7. The attached patch should fix the issue. -- keywords: +patch nosy: +Trundle Added file: http://bugs.python.org/file21283/issue_11603.patch ___ Python tracker

[issue11476] StreamHandler code broken by change of parameter name

2011-03-18 Thread Éric Araujo
Éric Araujo added the comment: Is it okay to change a public parameter name without deprecation process? -- nosy: +eric.araujo ___ Python tracker ___ ___

[issue11603] Python crashes or hangs when rebinding __repr__ as __str__

2011-03-18 Thread Carl Banks
New submission from Carl Banks : The issue was raised by J Peyret on the following c.l.python thread: http://groups.google.com/group/comp.lang.python/browse_frm/thread/459e5ec433e7dcab?hl=en# Several posters reported that the following code either hangs or crashes Python (versions 2.7, 2.6, an

[issue11597] Can't get ConfigParser.write to write unicode strings

2011-03-18 Thread Georg Brandl
Georg Brandl added the comment: My vote would be that this is a new feature and therefore uneligible for 2.x. -- nosy: +georg.brandl ___ Python tracker ___ _

[issue11597] Can't get ConfigParser.write to write unicode strings

2011-03-18 Thread R. David Murray
R. David Murray added the comment: I understand what you are saying, and I thought about that, too; but you could say the same thing about any bug fix that makes code work that didn't work before, yet we don't. So I guess you are right that it should be discussed on python-dev. --

[issue11579] python 2.5 does not build from hg - looks for subversion keywords

2011-03-18 Thread R. David Murray
Changes by R. David Murray : -- Removed message: http://bugs.python.org/msg131361 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue11579] python 2.5 does not build from hg - looks for subversion keywords

2011-03-18 Thread R. David Murray
R. David Murray added the comment: I understand what you are saying, and I thought about that, too; but you could say the same thing about any bug fix that makes code work that didn't work before, yet we don't. So I guess you are right that it should be discussed on python-dev. -- _

[issue10914] Python sub-interpreter test

2011-03-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, this is what I came up with to build an exe using distutils. At this point, the complication is downright silly and it doesn't even work under Windows, so we may prefer to go down the Makefile route instead. -- Added file: http://bugs.python.org/f

[issue11589] Additional tests for email module

2011-03-18 Thread R. David Murray
R. David Murray added the comment: Until unittest learns to do parameterized tests, it's nice to have each test be separate so that you can easily see which test cases are failing. (A number of the existing email tests have a lot of tests in each "unit" test, and this can make debugging more

[issue11602] python-config code should be in sysconfig

2011-03-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: +1 -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue11602] python-config code should be in sysconfig

2011-03-18 Thread Antoine Pitrou
New submission from Antoine Pitrou : python-config has the following non-trivial code for discovery of cflags/ldflags, which should be callable as a sysconfig API instead: elif opt in ('--includes', '--cflags'): flags = ['-I' + sysconfig.get_path('include'), '-I' +

[issue4114] struct returns incorrect 4 byte float

2011-03-18 Thread Robert Withrow
Robert Withrow added the comment: For completeness: msg131234 states that the issue of 64 bit -> 32 bit precision truncation is covered in the floating point tutorial. I believe that is incorrect; at least I can't find it explicitly mentioned. Ref: http://docs.python.org/tutorial/floatingpoi

[issue11601] UnixCCompiler always uses compiler_so, not compiler

2011-03-18 Thread Antoine Pitrou
New submission from Antoine Pitrou : UnixCCompiler always uses "compiler_so", not "compiler", even when creating a .o file. It is misleading and begs the question why compiler even exists. -- assignee: tarek components: Distutils messages: 131355 nosy: eric.araujo, pitrou, tarek priorit

[issue11600] PY_CFLAGS and PY_CPPFLAGS inconsistent

2011-03-18 Thread Antoine Pitrou
New submission from Antoine Pitrou : One contains the include dirs for Python, not the other: >>> distutils.sysconfig.get_config_var('PY_CFLAGS') '-g -O0 -Wall -Wstrict-prototypes' >>> distutils.sysconfig.get_config_var('PY_CPPFLAGS') '-I. -IInclude -I./Include' In Python 2.7 and 3.1, PY_CFLAGS

[issue11597] Can't get ConfigParser.write to write unicode strings

2011-03-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: It's also a question of adding a feature to a point release. If dev's relied on the new feature, they would also have to test for version > 2.7.1. We usually try to avoid that (after a minor fiasco with booleans many years ago). -- _

[issue11599] Useless error message when distutils fails compiling

2011-03-18 Thread Antoine Pitrou
New submission from Antoine Pitrou : Really, can't distutils at least display the command-line that failed to execute? Traceback (most recent call last): File "/home/antoine/cpython/default/Lib/distutils/unixccompiler.py", line 176, in _compile extra_postargs) File "/home/antoine/cpyt

[issue11598] missing afxres.h error when building bdist_wininst in Visual Studio 2008 Express

2011-03-18 Thread Carl Meyer
New submission from Carl Meyer : By opening up pcbuild.sln in VS2008 Express, I was able to successfully build python and pythonw, but when I tried to build bdist_wininst it failed with "Fatal Error RC1015: cannot open include file afxres.h" Googling turned up a number of comments about how th

[issue11485] Default SDK value on MacOSX needs changing

2011-03-18 Thread Éric Araujo
Éric Araujo added the comment: >Setting it to the version of the current OS is probably the least surprising. Agreed. -- nosy: +eric.araujo ___ Python tracker ___ _

[issue11594] 2to3 tool does not preserve line-endings

2011-03-18 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the report. Can you run “python -m test.test_lib2to3”, if possible with a Python 3.x version? I’ve seen that the tests use binary mode to compare file contents, so maybe you will get an error message that can get us started. -- nosy: +eric.a

[issue11589] Additional tests for email module

2011-03-18 Thread Santoso Wijaya
Santoso Wijaya added the comment: Do we need each sample--(input -> expected output)--to be its own unittest function? Why not something like (pseudo-code): expected = { 'input1': 'output1', 'input2': 'output2', } def test_encode(self):# collapse all for input, output in expected

[issue11595] Miscellaneous bugs in cfg_to_args() utility function

2011-03-18 Thread Éric Araujo
Éric Araujo added the comment: Looks good to me (note: didn’t test). -- versions: +3rd party ___ Python tracker ___ ___ Python-bugs-l

[issue11597] Can't get ConfigParser.write to write unicode strings

2011-03-18 Thread R. David Murray
R. David Murray added the comment: Well, python3 is probably pushing some people to try to add better unicode support to their python2 versions. I think it is more a question of "is this an easy fix?" or would it require extensive changes to support unicode properly. If it is easy (ie: it i

[issue11494] Confusing error message from warnings.warn

2011-03-18 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +brett.cannon versions: +Python 3.1, Python 3.2, Python 3.3 ___ Python tracker ___ ___ Python-bugs-l

[issue11596] import error in test_fileinput.py when bz2 not installed (windows)

2011-03-18 Thread Brian Curtin
Brian Curtin added the comment: Thanks for the patch! -- assignee: -> brian.curtin nosy: +brian.curtin resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___

[issue11596] import error in test_fileinput.py when bz2 not installed (windows)

2011-03-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset bb645cc39e60 by briancurtin in branch 'default': Fix #11596. When bz2 isn't available, skip test_bz2_ext_fake. http://hg.python.org/cpython/rev/bb645cc39e60 -- nosy: +python-dev ___ Python tracker

[issue11480] Cannot copy a class with a metaclass other than type

2011-03-18 Thread Éric Araujo
Éric Araujo added the comment: Looks good to me. -- nosy: +eric.araujo, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue11597] Can't get ConfigParser.write to write unicode strings

2011-03-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Now the question is, is this a bug > or would adding support be a feature? That may be a good question for python-dev. Since ConfigParser is a very old module, if there were a pressing need, we probably would have heard about it before now. -- n

[issue11597] Can't get ConfigParser.write to write unicode strings

2011-03-18 Thread R. David Murray
R. David Murray added the comment: >>> str(u"\u0411") Traceback (most recent call last): File "", line 1, in UnicodeEncodeError: 'ascii' codec can't encode character u'\u0411' in position 0: ordinal not in range(128) So, clearly configparser in 2.x doesn't support unicode. Now the question

[issue11256] inspect.getcallargs raises TypeError on valid arguments

2011-03-18 Thread Daniel Urban
Daniel Urban added the comment: Updated the patch for mercurial. -- Added file: http://bugs.python.org/file21281/issue11256_4.patch ___ Python tracker ___ __

[issue11594] 2to3 tool does not preserve line-endings

2011-03-18 Thread R. David Murray
Changes by R. David Murray : -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue11597] Can't get ConfigParser.write to write unicode strings

2011-03-18 Thread the_isz
New submission from the_isz : Hey everyone, I'm having issues writing unicode strings with ConfigParser.write. I don't know if this is python's fault or my own but I couldn't find help on this, neither by googling, nor by asking on the python irc channels. Attached to this description I'll add

[issue10050] urllib.request still has old 2.x urllib primitives

2011-03-18 Thread Nadeem Vawda
Changes by Nadeem Vawda : -- nosy: +nvawda ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue11549] Rewrite peephole to work on AST

2011-03-18 Thread Nadeem Vawda
Changes by Nadeem Vawda : -- nosy: +nvawda ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue11596] import error in test_fileinput.py when bz2 not installed (windows)

2011-03-18 Thread Lorenz
New submission from Lorenz : there is an ImportError when there is no bz2 lib and the test_fileinput is running. -- components: Tests files: check_bz2_lib_available.diff keywords: patch messages: 131338 nosy: DaMutz priority: normal severity: normal status: open title: import error in t

[issue11563] test_urllibnet is triggering a ResourceWarning

2011-03-18 Thread Nadeem Vawda
Nadeem Vawda added the comment: issue10883 is related; test_urllib2net also leaves sockets open in several places. -- nosy: +haypo, nvawda ___ Python tracker ___ __

[issue11595] Miscellaneous bugs in cfg_to_args() utility function

2011-03-18 Thread Erik Bray
New submission from Erik Bray : Attached is a patch that fixes a few miscellaneous bugs in cfg_to_args() that were holding me up. Namely: * A bad variable name (file -> path) * A few more fields needed to be in MULTI_FIELDS * Added support for packages_root -> package_dir conversion This als

[issue11572] bring Lib/copy.py to 100% coverage

2011-03-18 Thread Daniel Urban
Changes by Daniel Urban : -- nosy: +durban ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue11594] 2to3 tool does not preserve line-endings

2011-03-18 Thread Alexander Belchenko
New submission from Alexander Belchenko : I'm using LF-only line-endings for development of my IntelHex library. I'm working on Windows most of the time. After 2to3 tool has been ran on my library it has not only changed the Python syntax, but it also saved all files with CRLF line-endings. As

[issue11579] python 2.5 does not build from hg - looks for subversion keywords

2011-03-18 Thread R. David Murray
R. David Murray added the comment: I talked to Martin about this at the sprints. He wants the set of patches in the 2.5 hg repo to be exactly those that he should apply to svn to build the next release, no more no less. If someone wants to propose a patch that fixes the hg compile but does

[issue11513] chained exception/incorrect exception from tarfile.open on a non-existent file

2011-03-18 Thread Evan Dandrea
Changes by Evan Dandrea : Removed file: http://bugs.python.org/file21223/tarfile-fix-multiple-exception-on-enoent.patch ___ Python tracker ___ __

[issue11513] chained exception/incorrect exception from tarfile.open on a non-existent file

2011-03-18 Thread Evan Dandrea
Evan Dandrea added the comment: David, Thanks for the pointers. I've updated the patch hopefully adequately addressing your concerns. -- components: +Interpreter Core -Library (Lib) type: behavior -> Added file: http://bugs.python.org/file21277/tarfile-fix-multiple-exception-on-enoe

[issue11581] buildbot error when pushing to 2.5 branch?

2011-03-18 Thread R. David Murray
R. David Murray added the comment: Yes, although there may be another answer on the compile bug. -- resolution: -> wont fix stage: -> committed/rejected status: open -> closed type: -> behavior ___ Python tracker

[issue11581] buildbot error when pushing to 2.5 branch?

2011-03-18 Thread Senthil Kumaran
Senthil Kumaran added the comment: David, from you message I understand that Martin is planning to release 2.5 via svn. If that is the case, whatever was pushed for security fix to hg can remain as such and so that those can be exported to svn. The bugs related to buildbot and svn keyword for

[issue11581] buildbot error when pushing to 2.5 branch?

2011-03-18 Thread R. David Murray
R. David Murray added the comment: I talked to Martin. He wants the 2.5 mercurial branch to get *exactly* that set of changes that needs to be applied to the svn repository in order for him to build the security release, no more no less. Note that 2.5 goes out of security maintenance in Nov

[issue11574] Unicode Fallback Encoding on Python 3.3

2011-03-18 Thread STINNER Victor
STINNER Victor added the comment: TextIOWrapper is mostly based on locale.getpreferredencoding(), so msg131290 is still valid: if no env var is set, nl_langinfo() gives 'ASCII' (or something like that). But it is not easy to detect that env vars are not set. I would prefer a completly differe

[issue11572] bring Lib/copy.py to 100% coverage

2011-03-18 Thread Brandon Craig Rhodes
Brandon Craig Rhodes added the comment: Éric, after checking line 112 of the two patches and then of the new file, I figured out that you meant line 112 of the old file — and, yes, that test can go away too since in python3 "complex" always exists and "unicode" never exists. A further improve

[issue11574] Unicode Fallback Encoding on Python 3.3

2011-03-18 Thread STINNER Victor
STINNER Victor added the comment: After reading the related mail thread on python-dev, I realized that you are talking about TextIOWrapper choice (file content, not file name). My previous message is about file names. -- ___ Python tracker

[issue11549] Rewrite peephole to work on AST

2011-03-18 Thread Mark Dickinson
Changes by Mark Dickinson : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue11575] addresses.txt file leaks into search engines

2011-03-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: The question is not "why", it is "how". This file is part of the scripts used to migrate from svn to hg. These files themselves were maintained in an hg repository (it could have been an svn repository), for obvious practical reasons. And that repository was

[issue11575] addresses.txt file leaks into search engines

2011-03-18 Thread Senthil Kumaran
Senthil Kumaran added the comment: Why should we have this file served on the web itself? Cannot it be on server outside of www ( or any directory which is getting served). I would vote for this. -- nosy: +orsenthil ___ Python tracker

[issue11320] Can't call Py_SetPath() on pointer returned by Py_GetPath()

2011-03-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: > As for this error: > Fatal Python error: Py_Initialize: Unable to get the locale encoding > LookupError: no codec search functions registered: can't find encoding > > It seems to me that this error appears if the path passed to > Py_SetPath does not point

[issue1195] Problems on Linux with Ctrl-D and Ctrl-C during raw_input

2011-03-18 Thread STINNER Victor
STINNER Victor added the comment: Instead of always calling clearerr(), we can only call it on EOF: diff -r 88fe1ac48460 Parser/myreadline.c --- a/Parser/myreadline.c Mon Mar 07 08:31:52 2011 +0100 +++ b/Parser/myreadline.c Fri Mar 18 10:57:23 2011 +0100 @@ -72,6 +72,7 @@ } #e

[issue11591] "python -S" should be robust against e.g. "from site import addsitedir"

2011-03-18 Thread Éric Araujo
Éric Araujo added the comment: Fair argument. Brett is the author of recent changes in site, let him decide. Brett: Would you agree to 1)? -- nosy: +brett.cannon ___ Python tracker __

[issue10914] Python sub-interpreter test

2011-03-18 Thread Éric Araujo
Éric Araujo added the comment: > Well, config._link() seems to do what is needed here. My point is that it’s easier to write a few lines of code directly using a compiler object (copying and simplifying code from try_run or _link) than go through the distutils command machinery. Both are doab

[issue11572] bring Lib/copy.py to 100% coverage

2011-03-18 Thread Éric Araujo
Éric Araujo added the comment: A little research has found that building without complex is not possible anymore, so you’re good: http://bugs.python.org/issue7147 Regarding “unicode”, see line 112. -- ___ Python tracker

[issue11593] Add encoding parameter to logging.basicConfig

2011-03-18 Thread Vinay Sajip
Vinay Sajip added the comment: I've been thinking about adding a handler= keyword argument to basicConfig(), and it seems to me that it would not only cover your use case, but also other cases which require different handlers. So I'm marking as wontfix for now, but I'll keep the issue open un

[issue11320] Can't call Py_SetPath() on pointer returned by Py_GetPath()

2011-03-18 Thread Palm Kevin
Palm Kevin added the comment: As for this error: Fatal Python error: Py_Initialize: Unable to get the locale encoding LookupError: no codec search functions registered: can't find encoding It seems to me that this error appears if the path passed to Py_SetPath does not point to a valid pyt

[issue11320] Can't call Py_SetPath() on pointer returned by Py_GetPath()

2011-03-18 Thread Palm Kevin
Palm Kevin added the comment: Furthermore I would propose to rename this issue: The problem is not that Py_SetPath cannot be called on pointer returned by Py_GetPath. I think that the problem is more general: Calling Py_SetPath NEVER works. --> I get the same exception as documented in my ini

[issue11320] Can't call Py_SetPath() on pointer returned by Py_GetPath()

2011-03-18 Thread Palm Kevin
Palm Kevin added the comment: Antoine, Your guess that my issue initially wasn't related to virtualenv is correct (I've never heard about that project before posting this issue...) As for passing the output of Py_GetPath directly to Py_SetPath: You are right, there is no point in doing this.