[issue15113] IDLE Shell: delattr(__builtins__, getattr) causes shell to stop working

2012-06-20 Thread Ramchandra Apte
New submission from Ramchandra Apte maniandra...@gmail.com: delattr(__builtins__,getattr) causes shell to stop working if you type some code in nothing gets printed back if you press enter without typing any code you get a traceback Exception in thread SockThread: Traceback (most recent call

[issue15113] IDLE Shell: delattr(__builtins__, getattr) causes shell to stop working

2012-06-20 Thread Ramchandra Apte
Ramchandra Apte maniandra...@gmail.com added the comment: Running the delattr(__builtins__,getattr) in Python from the cmd line doesn't create any problems though. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15113

[issue15113] IDLE Shell: delattr(__builtins__, getattr) causes shell to stop working

2012-06-20 Thread Ramchandra Apte
Ramchandra Apte maniandra...@gmail.com added the comment: Another note: this bug is reproducable in the IDLE Shell with the python subprocess feature enabled (the python process that runs your commands and the python process that manages IDLE's windows are different). --

[issue15113] IDLE Shell: delattr(__builtins__, getattr) causes shell to stop working

2012-06-20 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Why do you think this is a bug? It is expected behavior. -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15113 ___

[issue15110] strange Tracebacks with importlib

2012-06-20 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I agree that this is not helpful at all in the usual case, i.e. when you *don't* want to debug importlib. The one frame in actual user code (distutils in this case) in the middle is kind of hard to spot, but it is what you want to know. Note

[issue15110] strange Tracebacks with importlib

2012-06-20 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- nosy: +gvanrossum ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15110 ___ ___ Python-bugs-list

[issue15076] Sometimes couldn't import os, shown 'import site' failed, use -v for trackback

2012-06-20 Thread Leon Zhang
Changes by Leon Zhang leozh...@cisco.com: Removed file: http://bugs.python.org/file26015/pygen.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15076 ___

[issue15076] Sometimes couldn't import os, shown 'import site' failed, use -v for trackback

2012-06-20 Thread Leon Zhang
Leon Zhang leozh...@cisco.com added the comment: No people help me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15076 ___ ___

[issue14769] Add test to automatically detect missing format units in skipitem()

2012-06-20 Thread Larry Hastings
Larry Hastings la...@hastings.org added the comment: Changes incorporated from Benjamin's feedback. Thanks, Benjamin! Is this ready to go? -- Added file: http://bugs.python.org/file26060/larry.test_skipitem_parity.3.diff ___ Python tracker

[issue14225] _cursesmodule compile error in OS X 32-bit-only installer build

2012-06-20 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: And will you fix it for beta1, or do you think it can be done later? BTW, what is the syntax error here? I don't really see it... -- ___ Python tracker rep...@bugs.python.org

[issue15038] Optimize python Locks on Windows

2012-06-20 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Thanks. The comments remain as the last bit of the original Condition Variable emulation code that was put in place for the new GIL. -- ___ Python tracker rep...@bugs.python.org

[issue15096] Drop support for the ur string prefix

2012-06-20 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 8e47e9af826e by Christian Heimes in branch 'default': Issue #15096: Drop support for the ur string prefix http://hg.python.org/cpython/rev/8e47e9af826e -- nosy: +python-dev

[issue15096] Drop support for the ur string prefix

2012-06-20 Thread Christian Heimes
Christian Heimes li...@cheimes.de added the comment: Thanks for you review, Serhiy. I removed the last remains from test_tokenize and even found another missing sentence in the docs. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed

[issue15114] Deprecate strict mode of HTMLParser

2012-06-20 Thread Ezio Melotti
New submission from Ezio Melotti ezio.melo...@gmail.com: The deprecation plan for the strict mode of HTMLParser might be as follow: 3.3 (before the beta) strict=False default strict arg deprecated in the doc strict=True deprecated (raises a warning) HTMLParseError deprecated HTMLParser.error

[issue15114] Deprecate strict mode of HTMLParser

2012-06-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15114 ___ ___ Python-bugs-list

[issue15115] Duplicated Content-Transfer-Encoding header when applying email.encoders

2012-06-20 Thread Sergei Stolyarov
New submission from Sergei Stolyarov ser...@regolit.com: Here is the test script: -- from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipart from email import encoders msg = MIMEMultipart() msg['Subject'] = 'Bug test' text_part = MIMEText('actual

[issue15113] IDLE Shell: delattr(__builtins__, getattr) causes shell to stop working

2012-06-20 Thread Ramchandra Apte
Ramchandra Apte maniandra...@gmail.com added the comment: IDLE should try to mimic Python as much as feasible. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15113 ___

[issue15113] IDLE Shell: delattr(__builtins__, getattr) causes shell to stop working

2012-06-20 Thread Ramchandra Apte
Ramchandra Apte maniandra...@gmail.com added the comment: s/Python/Python in cmd -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15113 ___ ___

[issue15076] Sometimes couldn't import os, shown 'import site' failed, use -v for trackback

2012-06-20 Thread Ramchandra Apte
Ramchandra Apte maniandra...@gmail.com added the comment: Well, Python is not able import the linecache module because the file is missing. Check if a file called linecache.py is there in /usr/lib/python2.6 or /usr/local/lib/python2.6 By the way, the python bug tracker doesn't have much

[issue15076] Sometimes couldn't import os, shown 'import site' failed, use -v for trackback

2012-06-20 Thread Ramchandra Apte
Ramchandra Apte maniandra...@gmail.com added the comment: Try reinstalling Python and see if it works. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15076 ___

[issue15112] argparse: nargs='*' positional argument doesn't accept any items if preceded by an option and another positional

2012-06-20 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +bethard ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15112 ___ ___ Python-bugs-list

[issue14803] Add feature to allow code execution prior to __main__ invocation

2012-06-20 Thread Bohuslav Slavek Kabrda
Changes by Bohuslav Slavek Kabrda bkab...@redhat.com: -- nosy: +bkabrda ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14803 ___ ___

[issue15113] IDLE Shell: delattr(__builtins__, getattr) causes shell to stop working

2012-06-20 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Well, I don't think that imitating the command line needs to extend to supporting doing unusual things to builtins, so unless someone like Terry disagrees I think we should close this as won't fix. -- nosy: +r.david.murray,

[issue15113] IDLE Shell: delattr(__builtins__, getattr) causes shell to stop working

2012-06-20 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: I'm afraid it's not feasible. Python (or IDLE) is allowed to rely on Python working correctly, and if commonly used functions are modified there will be unexpected errors. Likewise in 3.3, after a del __builtins__.hasattr, even

[issue15114] Deprecate strict mode of HTMLParser

2012-06-20 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Your plan sounds fine to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15114 ___

[issue10053] Don’t close fd when FileIO.__init__ fails

2012-06-20 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: In the test, assertNone is superfluous. Just call os.close(). However, you should probably use assertRaises to check that MyException is raised. -- ___ Python tracker rep...@bugs.python.org

[issue15115] Duplicated Content-Transfer-Encoding header when applying email.encoders

2012-06-20 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: First of all, I presume you are running this in python2.7, since it doesn't work in python3. In Python3 MIMEText takes a string as input, not a bytes object, unless you pass it a _charset parameter. If you do that, the encoding is

[issue15115] Duplicated Content-Transfer-Encoding header when applying email.encoders

2012-06-20 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Barry: I think we should documentationally deprecate the encoders module. I can't see any utility in a new program calling those functions explicitly, especially if the program ever wants to port to Python3. Or maybe the Python2 docs

[issue15113] IDLE Shell: delattr(__builtins__, getattr) causes shell to stop working

2012-06-20 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15113 ___ ___

[issue15107] Potential Bug in mpdecimal.c

2012-06-20 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Mark has already said it all. -- Ken, I want to add that in the case of _decimal it's pretty easy to test any suspected misbehavior against decimal.py. This would have shown very quickly that there is no bug. --

[issue15115] Duplicated Content-Transfer-Encoding header when applying email.encoders

2012-06-20 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: On Jun 20, 2012, at 01:58 PM, R. David Murray wrote: Barry: I think we should documentationally deprecate the encoders module. I can't see any utility in a new program calling those functions explicitly, especially if the program ever wants

[issue15115] Duplicated Content-Transfer-Encoding header when applying email.encoders

2012-06-20 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: On Jun 20, 2012, at 01:51 PM, R. David Murray wrote: Note that I don't *like* that the current API is that calling set_charset does the body encode if and only if there are no existing headers, but that is the way it has always worked, and

[issue6727] ImportError when package is symlinked on Windows

2012-06-20 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 24369f6c4a22 by Jason R. Coombs in branch 'default': Prefer assertEqual to simply assert per recommendation in issue6727. http://hg.python.org/cpython/rev/24369f6c4a22 --

[issue15093] ntpath.isdir returns False for directory symlinks

2012-06-20 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 24369f6c4a22 by Jason R. Coombs in branch 'default': Prefer assertEqual to simply assert per recommendation in issue6727. http://hg.python.org/cpython/rev/24369f6c4a22 -- nosy: +python-dev

[issue15116] remove out-of-date Mac application scripting documentation

2012-06-20 Thread hhas
New submission from hhas h...@users.sourceforge.net: 1. The entire '4.6. Application Scripting' section should be deleted from the following Python 2 3 pages as appscript (and PyOSA) is no longer developed or supported and its use is not recommended for new projects

[issue15102] Fix 64-bit building for buildbot scripts

2012-06-20 Thread Jeremy Kloth
Jeremy Kloth jeremy.kloth+python-trac...@gmail.com added the comment: Now that my buildbot is up and building (and failing at that) could these changes be committed? It would get the buildbot to at least start testing changes to Python proper. --

[issue15115] Duplicated Content-Transfer-Encoding header when applying email.encoders

2012-06-20 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I think so, yes. When we have the mimeregistry equivalent of the headerregistry, the new mime Message classes can have a set_charset with a different implementation. I'll want to talk about the API details on email-sig before I do

[issue15102] Fix 64-bit building for buildbot scripts

2012-06-20 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: -- nosy: +brian.curtin, loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15102 ___ ___

[issue15117] Please document top-level sqlite3 module variables

2012-06-20 Thread wchlm
New submission from wchlm shen...@gmail.com: sqlite3 top-level variables, such as version, sqlite_version, version_info, and sqlite_version_info are all useful for Python users of the module -- even essential at times. Yet there is no mention of them in the Py 2.7.3 documentation.

[issue14973] restore python2 unicode literals in ur strings

2012-06-20 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Given the resolution of #15096, ISTM this will be a wontfix, though I'll stop short of marking it as such myself. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14973

[issue14973] restore python2 unicode literals in ur strings

2012-06-20 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Given the resolution of #15096, ISTM this will be a wontfix, though I'll stop short of marking it as such myself. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14973

[issue14973] restore python2 unicode literals in ur strings

2012-06-20 Thread Vinay Sajip
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk: -- Removed message: http://bugs.python.org/msg163288 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14973 ___

[issue14393] Incorporate Guide to Magic Methods?

2012-06-20 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/issue14393 ___ ___ Python-bugs-list mailing list

[issue15056] Have imp.cache_from_source() raise NotImplementedError when cache tag not available

2012-06-20 Thread Pranav Ravichandran
Pranav Ravichandran prp.1...@gmail.com added the comment: First-time contributor here, so just to make sure, let me just clarify this - the trunk builds fine, but one of the tests, test_urllib2_localnet, fails, I'm not sure why. Also, the patch is kind of messed up because of changes to

[issue15113] IDLE Shell: delattr(__builtins__, getattr) causes shell to stop working

2012-06-20 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: To put it another way, IDLE is written for standard Python. A standard Python interpreter has a getattr builtin that works as documented in the library manual. Deleting that or any other builtin makes the interpreter non-standard. So would

[issue13648] xml.sax.saxutils.escape does not escapes \x00

2012-06-20 Thread Alexey
Alexey ani...@wayround.org added the comment: This is correct behavior. \x00 is not supported in XML: not in raw form, and not in escaped form last sentence in forth paragraph of section 1.3 in XML 1.1 specification says following: == Due to potential problems with APIs, #x0 is still

[issue8885] markupbase declaration errors aren't recoverable

2012-06-20 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- resolution: - out of date stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8885

[issue13648] xml.sax.saxutils.escape does not escapes \x00

2012-06-20 Thread Alexey
Alexey ani...@wayround.org added the comment: What am I trying to say is: if those characters are forbidden, then maybe they need to be escaped rather than ignored? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13648

[issue15116] remove out-of-date Mac application scripting documentation

2012-06-20 Thread Ned Deily
Ned Deily n...@acm.org added the comment: The entire Using Macintosh section of the documentation set is in need of an update. I plan to have that done for 3.3 release and the next releases of 3.2.x and 2.7.x. The 2.6 and 3.1 releases are in security fix mode only, prior to their

[issue13648] xml.sax.saxutils.escape does not escapes \x00

2012-06-20 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: The characters are forbidden both in raw form *and* in escaped form. So even if they get escaped, they *still* will lead to errors. So there is no point in escaping them. -- resolution: - wont fix status: open - closed

[issue15118] uname c should return a struct sequence instead of a tuple

2012-06-20 Thread Larry Hastings
New submission from Larry Hastings la...@hastings.org: The trend in the standard library is to get rid of awkward Python-1-style tuple return values and switch to struct sequences. (And perhaps, in the fullness of time, to deprecate the iterability of such objects. But that's for the

[issue15118] uname c should return a struct sequence instead of a tuple

2012-06-20 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/issue15118 ___

[issue14653] Improve mktime_tz to use calendar.timegm instead of time.mktime

2012-06-20 Thread Alexander Belopolsky
Alexander Belopolsky alexander.belopol...@gmail.com added the comment: That said, this might be a worthwhile as a bug fix. I think this is a reasonable bug fix. Note that apart from OS-dependent date range, some mktime implementations reportedly don't support tm_isdst values other than -1.

[issue9527] Add aware local time support to datetime module

2012-06-20 Thread Alexander Belopolsky
Alexander Belopolsky alexander.belopol...@gmail.com added the comment: Attached patch implements astimezone() default in both Python and C. -- stage: - patch review Added file: http://bugs.python.org/file26062/issue9527.diff ___ Python tracker

[issue14684] zlib set dictionary support inflateSetDictionary

2012-06-20 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset dd4f7d5c51c7 by Nadeem Vawda in branch 'default': Issue #14684: Add support for predefined compression dictionaries to the zlib module. http://hg.python.org/cpython/rev/dd4f7d5c51c7 -- nosy: +python-dev

[issue15076] Sometimes couldn't import os, shown 'import site' failed, use -v for trackback

2012-06-20 Thread Leon Zhang
Leon Zhang leozh...@cisco.com added the comment: Thank ramchandra.apte for the help. I checked linecache.py, and the file exists. Unfortunately I don't have root perssion to re-install Python. I also checked another bug http://bugs.python.org/issue10496;, I think that may be the truth.

[issue14684] zlib set dictionary support inflateSetDictionary

2012-06-20 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: Committed. Once again, thanks for the patch! -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue15118] uname c should return a struct sequence instead of a tuple

2012-06-20 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: +1. -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15118 ___ ___ Python-bugs-list

[issue13463] Fix parsing of package_data

2012-06-20 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13463 ___ ___

[issue12779] Update packaging documentation

2012-06-20 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12779 ___ ___

[issue5302] Allow package_data specs/globs to match directories

2012-06-20 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5302 ___ ___

[issue14790] use packaging in setup.py

2012-06-20 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14790 ___ ___

[issue15118] uname and other os functions should return a struct sequence instead of a tuple

2012-06-20 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: os._getdiskusage is an internal helper for shutil.getdiskusage on Windows, which does return a named tuple. The private C function can continue returning a tuple IMO. +1 on changing uname for 3.3! No opinion on times; I don’t use it and don’t

[issue9530] integer undefined behaviors

2012-06-20 Thread John Regehr
John Regehr reg...@cs.utah.edu added the comment: I the tests for today's cpython using IOC and got only the issues below. The on-purpose divide by zero should be OK but the shift by -2 probably wants to be fixed. ARITHMETIC UNDEFINED at /home/regehr/tmp/cpython/Modules/_ctypes/cfield.c,

[issue15118] uname and other os functions should return a struct sequence instead of a tuple

2012-06-20 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: Agree for changing times() and uname(). But functions that return a 2- or 3-element tuple, which immediately will be unpacked, no need to change. Keep it simple. -- nosy: +storchaka ___ Python