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

2012-06-20 Thread Georg Brandl
Georg Brandl 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 ___

[issue15038] Optimize python Locks on Windows

2012-06-20 Thread Kristján Valur Jónsson
Kristján Valur Jónsson 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 ___

[issue15096] Drop support for the "ur" string prefix

2012-06-20 Thread Roundup Robot
Roundup Robot 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 ___ Python tracker

[issue15096] Drop support for the "ur" string prefix

2012-06-20 Thread Christian Heimes
Christian Heimes 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 : 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 deprecated (raises a warn

[issue15114] Deprecate strict mode of HTMLParser

2012-06-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

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

2012-06-20 Thread Sergei Stolyarov
New submission from Sergei Stolyarov : 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 content doesnt matter') t

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

2012-06-20 Thread Ramchandra Apte
Ramchandra Apte added the comment: IDLE should try to mimic Python as much as feasible. -- ___ Python tracker ___ ___ Python-bugs-lis

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

2012-06-20 Thread Ramchandra Apte
Ramchandra Apte added the comment: s/Python/Python in cmd -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

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

2012-06-20 Thread Ramchandra Apte
Ramchandra Apte 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 experts. :-) -- nosy

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

2012-06-20 Thread Ramchandra Apte
Ramchandra Apte added the comment: Try reinstalling Python and see if it works. -- ___ Python tracker ___ ___ Python-bugs-list mailin

[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 : -- nosy: +bethard ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

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

2012-06-20 Thread Bohuslav "Slavek" Kabrda
Changes by Bohuslav "Slavek" Kabrda : -- nosy: +bkabrda ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

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

2012-06-20 Thread R. David Murray
R. David Murray 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, terry.reedy resolution: -

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

2012-06-20 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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 import statements wil

[issue15114] Deprecate strict mode of HTMLParser

2012-06-20 Thread R. David Murray
R. David Murray added the comment: Your plan sounds fine to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

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

2012-06-20 Thread Antoine Pitrou
Antoine Pitrou 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 ___

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

2012-06-20 Thread R. David Murray
R. David Murray 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 done when the object is c

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

2012-06-20 Thread R. David Murray
R. David Murray 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 would say deprecated i

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

2012-06-20 Thread R. David Murray
Changes by R. David Murray : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue15107] Potential Bug in mpdecimal.c

2012-06-20 Thread Stefan Krah
Stefan Krah 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. -- ___ Pyt

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

2012-06-20 Thread Barry A. Warsaw
Barry A. Warsaw 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 to port to Pyth

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

2012-06-20 Thread Barry A. Warsaw
Barry A. Warsaw 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 there are program

[issue6727] ImportError when package is symlinked on Windows

2012-06-20 Thread Roundup Robot
Roundup Robot 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 -- ___ Python tracker

[issue15093] ntpath.isdir returns False for directory symlinks

2012-06-20 Thread Roundup Robot
Roundup Robot 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 ___ Python tra

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

2012-06-20 Thread hhas
New submission from hhas : 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 (http://appscript.sourceforge.net/status.html): ht

[issue15102] Fix 64-bit building for buildbot scripts

2012-06-20 Thread Jeremy Kloth
Jeremy Kloth 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. -- ___ Python tracker

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

2012-06-20 Thread R. David Murray
R. David Murray 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 anything, though. --

[issue15102] Fix 64-bit building for buildbot scripts

2012-06-20 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: +brian.curtin, loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue15117] Please document top-level sqlite3 module variables

2012-06-20 Thread wchlm
New submission from wchlm : 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. dir(sqlite3) reveals a long

[issue14973] restore python2 unicode literals in "ur" strings

2012-06-20 Thread Vinay Sajip
Vinay Sajip 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 ___ ___

[issue14973] restore python2 unicode literals in "ur" strings

2012-06-20 Thread Vinay Sajip
Vinay Sajip 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 ___ ___

[issue14973] restore python2 unicode literals in "ur" strings

2012-06-20 Thread Vinay Sajip
Changes by Vinay Sajip : -- Removed message: http://bugs.python.org/msg163288 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue14393] Incorporate Guide to Magic Methods?

2012-06-20 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.

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

2012-06-20 Thread Pranav Ravichandran
Pranav Ravichandran 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 Python/importlib.h. I lo

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

2012-06-20 Thread Terry J. Reedy
Terry J. Reedy 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 replacing or wrappi

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

2012-06-20 Thread Alexey
Alexey 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 forbidden both directl

[issue8885] markupbase declaration errors aren't recoverable

2012-06-20 Thread Ezio Melotti
Changes by Ezio Melotti : -- resolution: -> out of date stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___ ___

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

2012-06-20 Thread Alexey
Alexey 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 ___ _

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

2012-06-20 Thread Ned Deily
Ned Deily 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 retirement, and no lo

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

2012-06-20 Thread Martin v . Löwis
Martin v. Löwis 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 : 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 future.) os.stat is a goo

[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 : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

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

2012-06-20 Thread Alexander Belopolsky
Alexander Belopolsky 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. -- assignee: -> belo

[issue9527] Add aware local time support to datetime module

2012-06-20 Thread Alexander Belopolsky
Alexander Belopolsky 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 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 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. Finally I found anothe

[issue14684] zlib set dictionary support inflateSetDictionary

2012-06-20 Thread Nadeem Vawda
Nadeem Vawda added the comment: Committed. Once again, thanks for the patch! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

[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 added the comment: +1. -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue13463] Fix parsing of package_data

2012-06-20 Thread Éric Araujo
Changes by Éric Araujo : -- versions: +Python 3.4 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue12779] Update packaging documentation

2012-06-20 Thread Éric Araujo
Changes by Éric Araujo : -- versions: +Python 3.4 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue5302] Allow package_data specs/globs to match directories

2012-06-20 Thread Éric Araujo
Changes by Éric Araujo : -- versions: +Python 3.4 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue14790] use packaging in setup.py

2012-06-20 Thread Éric Araujo
Changes by Éric Araujo : -- versions: +Python 3.4 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

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

2012-06-20 Thread Éric Araujo
Éric Araujo 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 understand the m

[issue9530] integer undefined behaviors

2012-06-20 Thread John Regehr
John Regehr 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 : Op: <<=, Reason : Signed Left Shift: Right operand is negative or is g

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

2012-06-20 Thread Serhiy Storchaka
Serhiy Storchaka 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 tracker

[issue12567] curses implementation of Unicode is wrong in Python 3

2012-06-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2035c5ad4239 by Ned Deily in branch 'default': Issue #14225: Fix Unicode support for curses (#12567) on OS X: http://hg.python.org/cpython/rev/2035c5ad4239 -- ___ Python tracker

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

2012-06-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2035c5ad4239 by Ned Deily in branch 'default': Issue #14225: Fix Unicode support for curses (#12567) on OS X: http://hg.python.org/cpython/rev/2035c5ad4239 -- nosy: +python-dev ___ Python tracker