[issue13439] turtle: Errors in docstrings of onkey and onkeypress

2011-12-03 Thread Christopher Smith
Christopher Smith added the comment: > resolution:  -> fixed > stage: needs patch -> committed/rejected > status: open -> closed > Nice to see a good thing get even better. Thanks for you work. Chris Smith -- ___ Python tracker

[issue13127] xml.dom.Attr.name is not labeled as read-only

2011-12-03 Thread Urjit Bhatia
Urjit Bhatia added the comment: Using the same code example as above, I added a simple print statement in the set method being defined in the defproperty and it fired correctly for - a.childNodes[0].attributes='something' **My print statement:**in defproperty set for name: attributes Traceback

[issue13522] Document error return values for PyFloat_* and PyComplex_*

2011-12-03 Thread Stefan Krah
New submission from Stefan Krah : A couple of -1.0 error return codes aren't documented, see for example PyFloat_AsDouble() and PyComplex_AsCComplex(). -- assignee: docs@python components: Documentation keywords: easy messages: 148789 nosy: docs@python, mark.dickinson, skrah priority: lo

[issue13522] Document error return values for PyFloat_* and PyComplex_*

2011-12-03 Thread Mark Dickinson
Mark Dickinson added the comment: Well, it's sort of documented implicitly: from http://docs.python.org/c-api/intro.html#exceptions "In general, when a function encounters an error, it sets an exception, discards any object references that it owns, and returns an error indicator. If not do

[issue13523] Python does not warn in module .py files does not exist if there is still a .pyc file

2011-12-03 Thread lennartyseboodt
New submission from lennartyseboodt : Python does not warn/error when importing a module where the module.py file no longer exists, but there is still a .pyc file present. It also does not warn when the imported file.py is a symlink pointing nowhere. As long as there is still a .pyc file with

[issue13524] critical error with import tempfile

2011-12-03 Thread Andrey Morozov
New submission from Andrey Morozov : run_me.py: import subprocess, sys e = {'PATH_TO_MY_APPS' : "path/to/my/apps"} p = subprocess.Popen(sys.executable + " test1.py 123", env=e, shell=True, stdout=subprocess.PIPE) print(p.stdout.readlines()) p.wait() test1.py: 1: import sys, os 2: #import temp

[issue13524] critical error with import tempfile

2011-12-03 Thread Andrey Morozov
Andrey Morozov added the comment: WIDW ? -- Added file: http://bugs.python.org/file23839/test1.py ___ Python tracker ___ ___ Python-b

[issue13523] Python does not warn in module .py files does not exist if there is still a .pyc file

2011-12-03 Thread Ezio Melotti
Ezio Melotti added the comment: Python doesn't require the .py to run the code if there's a .pyc. This is expected so there's no need to give a warning. If the .py is present but it's a symlink pointing nowhere, it might make sense to give a warning before falling back silently on the .pyc.

[issue13524] critical error with import tempfile

2011-12-03 Thread Tim Golden
Tim Golden added the comment: The environment passed to a Windows process must contain certain things. (I don't at this moment remember exactly what). You can't just pass the one thing you're adding. Change your "e = ..." line to something like: e = os.environ e['PATH_TO_MY_CODE'] = '/x/y/z' a

[issue13524] critical error with import tempfile

2011-12-03 Thread Andrey Morozov
Andrey Morozov added the comment: it fix my problem: e = os.environ.copy() e['PATH_TO_MY_APPS'] = "path/to/my/apps" p = subprocess.Popen(sys.executable + " test1.py 123", env=e, shell=True, stdout=subprocess.PIPE) answer: need have copy of environments -- status: open -> closed ___

[issue12965] longobject: documentation improvements

2011-12-03 Thread Stefan Krah
Stefan Krah added the comment: > Ultimately, I think it would make sense to remove all __int__ > conversions from Objects/longobject.c; +1 I think this API cleanup is worth some (probably very limited) breakage in third party modules. -- ___ Python

[issue13525] Tutorial: Example of Source Code Encoding triggers error

2011-12-03 Thread Nicolas Goutte
New submission from Nicolas Goutte : Current Behaviour The tutorial of Python 3.2.x has an example to set an encoding in a source file: http://docs.python.org/py3k/tutorial/interpreter.html#source-code-encoding It explains to set the following line at the start of the source code: # -*- coding

[issue13525] Tutorial: Example of Source Code Encoding triggers error

2011-12-03 Thread Nicolas Goutte
Changes by Nicolas Goutte : Added file: http://bugs.python.org/file23841/windows_1252ok.py ___ Python tracker ___ ___ Python-bugs-list mailing

[issue13525] Tutorial: Example of Source Code Encoding triggers error

2011-12-03 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti stage: -> needs patch versions: +Python 2.7, Python 3.3 ___ Python tracker ___ ___ P

[issue13522] Document error return values for PyFloat_* and PyComplex_*

2011-12-03 Thread Stefan Krah
Stefan Krah added the comment: Good point. - I just had to figure out if the pattern Py_complex c = PyComplex_AsCComplex(w); if (c.real == -1.0 && PyErr_Occurred()) { ... will always be reliable in the future. The source of PyComplex_AsCComplex() suggests that it will, on the o

[issue12612] Valgrind suppressions

2011-12-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3eb73f45a614 by Charles-François Natali in branch 'default': Issue #12612: Add some Valgrind suppressions for 64-bit machines. Patch by Paul http://hg.python.org/cpython/rev/3eb73f45a614 -- nosy: +python-dev ___

[issue12612] Valgrind suppressions

2011-12-03 Thread Charles-François Natali
Charles-François Natali added the comment: Committed, thanks for the patch! -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___

[issue12666] map semantic change not documented in What's New

2011-12-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3b505df38fd8 by Jason R. Coombs in branch '3.2': Issue #12666: Clarifying changes in map for Python 3 http://hg.python.org/cpython/rev/3b505df38fd8 New changeset 0e2812b16f5f by Jason R. Coombs in branch '3.2': Issue #12666: Added section about map

[issue12666] map semantic change not documented in What's New

2011-12-03 Thread Jason R. Coombs
Changes by Jason R. Coombs : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue13211] urllib2.HTTPError does not have 'reason' attribute.

2011-12-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset ee94b89f65ab by Jason R. Coombs in branch '2.7': Issue #13211: Add .reason attribute to HTTPError to implement parent class (URLError) interface. http://hg.python.org/cpython/rev/ee94b89f65ab New changeset abfe76a19f63 by Jason R. Coombs in branch

[issue13211] urllib2.HTTPError does not have 'reason' attribute.

2011-12-03 Thread Jason R. Coombs
Changes by Jason R. Coombs : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

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

2011-12-03 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +Arfrever, belopolsky, draghuram, eric.araujo, gagenellina, georg.brandl, giampaolo.rodola, ijmorlan, terry.reedy, ysj.ray, zooko ___ Python tracker __

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

2011-12-03 Thread Éric Araujo
Éric Araujo added the comment: ISTM --with-readline=yes should just be --with-readline, and the =no forms should just be --without-readline. That would be more in line with other options and less confusing (--without-readline=no ?!). There is no trunk anymore now that we’ve switched away fro

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

2011-12-03 Thread Éric Araujo
Éric Araujo added the comment: And if this is really two different requests (port readline module to FreeBSD i.e. change if __APPLE__ to if HAVE_EDITLINE and give more control about readline vs. editline in the configure script), then two reports should be opened. -- ___

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

2011-12-03 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo, haypo versions: +Python 2.7, Python 3.2 ___ Python tracker ___ ___ Python-bugs-list ma

[issue13518] configparser can’t read file objects from urlopen

2011-12-03 Thread Éric Araujo
Changes by Éric Araujo : -- title: configparser -> configparser can’t read file objects from urlopen ___ Python tracker ___ ___ Python

[issue13511] ./configure --includedir, --libdir accept multiple

2011-12-03 Thread Éric Araujo
Éric Araujo added the comment: > For ./configure, --includedir and --libdir both cannot handle multiple > packages. I see “packages” means “directories” here. Is it a standard configure feature to support multiple --includedir and --libdir? Does it work if you pass --includedir one:two inst

[issue12208] Glitches in email.policy docs

2011-12-03 Thread Éric Araujo
Éric Araujo added the comment: Thank you sir. I fixed the directive markup in 4f860536efa3, I’m committing the rest now. -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker

[issue12208] Glitches in email.policy docs

2011-12-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9ffb00748a47 by Éric Araujo in branch 'default': Fix glitches in email.policy docs (#12208) http://hg.python.org/cpython/rev/9ffb00748a47 -- nosy: +python-dev ___ Python tracker

[issue12612] Valgrind suppressions

2011-12-03 Thread Paul Price
Paul Price added the comment: Welcome. Thank you! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue13522] Document error return values for PyFloat_* and PyComplex_*

2011-12-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: I think it's still a good idea to spell it out explicitly in each function description. The document pointed by Mark is long enough that it's easy to overlook or forget that single important statement. -- nosy: +pitrou ___

[issue13515] Consistent documentation practices for security concerns and considerations

2011-12-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: For the record, the SSL module has a separate security considerations section: http://docs.python.org/dev/library/ssl.html#security-considerations -- ___ Python tracker __

[issue13521] Make dict.setdefault() atomic

2011-12-03 Thread Meador Inge
Changes by Meador Inge : -- nosy: +meador.inge stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

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

2011-12-03 Thread Ned Deily
Ned Deily added the comment: Without having yet done a detailed review of the patch and the configure options, I don't see a need to open a second issue. The scope of this one is fine: generalizing the support of libedit to other platforms. -- ___

[issue13515] Consistent documentation practices for security concerns and considerations

2011-12-03 Thread Ezio Melotti
Ezio Melotti added the comment: Attached a patch to make the CSS used for warnings and notes less evident by removing the red/gray background color. -- keywords: +patch Added file: http://bugs.python.org/file23842/issue13515.diff ___ Python tracker

[issue13515] Consistent documentation practices for security concerns and considerations

2011-12-03 Thread Ezio Melotti
Changes by Ezio Melotti : Added file: http://bugs.python.org/file23843/warnnew.png ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue13515] Consistent documentation practices for security concerns and considerations

2011-12-03 Thread Ezio Melotti
Changes by Ezio Melotti : Added file: http://bugs.python.org/file23844/warnold.png ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue13515] Consistent documentation practices for security concerns and considerations

2011-12-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Attached a patch to make the CSS used for warnings and notes less > evident by removing the red/gray background color. This really years for an icon, IMO. A bit more indenting would be good, too, so that it stands out clearly from the rest of the text. -

[issue13521] Make dict.setdefault() atomic

2011-12-03 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Atomic and faster... +1. -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue13513] IOBase docs incorrectly link to the readline module

2011-12-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset fb8b6d310fb8 by Meador Inge in branch '2.7': Issue #13513: IOBase docs incorrectly link to the readline module http://hg.python.org/cpython/rev/fb8b6d310fb8 New changeset 9792e812198f by Meador Inge in branch '3.2': Issue #13513: IOBase docs incorr

[issue13513] IOBase docs incorrectly link to the readline module

2011-12-03 Thread Meador Inge
Meador Inge added the comment: Fixed. Thanks for the review y'all. -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue13526] Deprecate the old Unicode API

2011-12-03 Thread STINNER Victor
New submission from STINNER Victor : Attached patch modifies the following function to emit a DeprecationWarning: * PyUnicode_GET_SIZE() (and so PyUnicode_GET_DATA_SIZE()) * PyUnicode_AS_UNICODE() * PyUnicode_AsUnicodeAndSize() (and so PyUnicode_AsUnicode()) * PyUnicode_FromUnicode() PyUnico

[issue13526] Deprecate the old Unicode API

2011-12-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: I'm not sure it is customary for C APIs to emit deprecation warnings. -- nosy: +pitrou ___ Python tracker ___ _

[issue13523] Python does not warn in module .py files does not exist if there is still a .pyc file

2011-12-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Indeed, this is a feature, not a bug. Lone pyc files are used by some people to provide "binary only" distributions of Python software (I'm not really saying it's a good idea, but some people rely on it). As for symlinks, well... This would complicate the cod

[issue13527] Remove obsolete mentions in the GUIs page

2011-12-03 Thread Antoine Pitrou
New submission from Antoine Pitrou : The "Other Graphical User Interface Packages" page (library/othergui.html) lists "Python megawidgets" and "Tkinter3000 Widget Construction Kit (WCK)". These two projects look pretty much dead to me, so I'm proposing to remove them. -- assignee: docs

[issue13524] critical error with import tempfile

2011-12-03 Thread Tim Golden
Tim Golden added the comment: Re-opening because there's a real problem here which can crash Python hard. Simplest reproduction: import sys import subprocess subprocess.Popen (sys.executable, env={}) Affects 2.x and 3.x tip (haven't tried others yet but I don't imagine it's different)

[issue13524] critical error with import tempfile

2011-12-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Re-opening because there's a real problem here which can crash Python > hard. Works under Linux. Is it Windows-specific? -- nosy: +pitrou stage: test needed -> versions: -Python 3.1 ___ Python tracker

[issue13524] critical error with import tempfile

2011-12-03 Thread Tim Golden
Tim Golden added the comment: Yes. I've added the "Windows" component on the tracker. (At least I think I have). It's to do with CreateProcess needing at least certain items in the environment passed. I'm trying to track down some docs on MSDN which specify which must be there. --

[issue13506] IDLE sys.path does not contain Current Working Directory

2011-12-03 Thread Roger Serwy
Roger Serwy added the comment: I have given this issue some further consideration, and realized that my "+1" recommendation was not correct. Starting the interactive python interpreter will automatically include [''] in sys.path. A fresh restart of IDLE's shell does NOT include ''. However,

[issue13523] Python does not warn in module .py files does not exist if there is still a .pyc file

2011-12-03 Thread Julian Berman
Julian Berman added the comment: I know this is a feature, and on occasion as pointed out a useful one. But in some cases it can be a tad annoying as the OP probably considered it. I had a recent example where a lingering .pyc made my test suite pass (and me nearly push broken code) despite t

[issue13527] Remove obsolete mentions in the GUIs page

2011-12-03 Thread Eli Bendersky
Eli Bendersky added the comment: +1 -- keywords: +easy nosy: +eli.bendersky ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue13211] urllib2.HTTPError does not have 'reason' attribute.

2011-12-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: The 3.x buildbots are all broken: http://www.python.org/dev/buildbot/all/waterfall?category=3.x.stable&category=3.x.unstable -- nosy: +pitrou ___ Python tracker _

[issue12555] PEP 3151 implementation

2011-12-03 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: Is the following change in behavior caused by the fix for this issue? $ python3.2 -c $'class A(IOError):\n def __init__(self, arg): pass\nA(arg=1)' $ python3.3 -c $'class A(IOError):\n def __init__(self, arg): pass\nA(arg=1)' Traceback (m

[issue13211] urllib2.HTTPError does not have 'reason' attribute.

2011-12-03 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: I suspect that this problem is caused by the fix for issue #12555. -- nosy: +Arfrever ___ Python tracker ___ _

[issue13523] Python does not warn in module .py files does not exist if there is still a .pyc file

2011-12-03 Thread Nick Coghlan
Nick Coghlan added the comment: In Python 3.2 and later, standalone .pyc files are no longer created as a side effect of import. Instead, cached files are stored in a __pycache__ subdirectory and ignored completely if the corresponding source file is no longer present. (Standalone .pyc files

[issue12555] PEP 3151 implementation

2011-12-03 Thread Nick Coghlan
Nick Coghlan added the comment: Indeed, this seems to be the most likely culprit for the current buildbot failures in the new urllib2 tests: http://www.python.org/dev/buildbot/all/builders/AMD64%20Gentoo%20Wide%203.x/builds/2868/steps/test/logs/stdio -- resolution: fixed -> stage: co

[issue11816] Refactor the dis module to provide better building blocks for bytecode analysis

2011-12-03 Thread Ron Adam
Ron Adam added the comment: Instead of a get_instructions() function, How about using a DisCode class that defines the API for accessing Opinfo tuples of a disassembled object. So instead of... for instr in dis.bytecode_instructions(thing): process(instr) You could use... fo

[issue13211] urllib2.HTTPError does not have 'reason' attribute.

2011-12-03 Thread Jason R. Coombs
Jason R. Coombs added the comment: Antoine, I think Arfrever is on to something here. It does appear the new test added to test_urllib2 is failing, but for reasons I don't exactly understand. I'm initializing the HTTPError instance according to its signature in urllib.error, but it fails to a

[issue13211] urllib2.HTTPError does not have 'reason' attribute.

2011-12-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset a3ddee916808 by Jason R. Coombs in branch 'default': Pass positional arguments - HTTPError is not accepting keyword arguments. Reference #13211 and #12555. http://hg.python.org/cpython/rev/a3ddee916808 -- _

[issue12555] PEP 3151 implementation

2011-12-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset a3ddee916808 by Jason R. Coombs in branch 'default': Pass positional arguments - HTTPError is not accepting keyword arguments. Reference #13211 and #12555. http://hg.python.org/cpython/rev/a3ddee916808 -- _

[issue13464] HTTPResponse is missing an implementation of readinto

2011-12-03 Thread Jon Kuhn
Jon Kuhn added the comment: This is my first contribution to a real open source project. Attached is my patch. Suggestions for improvements are welcome. -- keywords: +patch nosy: +Jon.Kuhn Added file: http://bugs.python.org/file23847/issue13464.patch _

[issue11816] Refactor the dis module to provide better building blocks for bytecode analysis

2011-12-03 Thread Nick Coghlan
Changes by Nick Coghlan : Removed file: http://bugs.python.org/file23569/issue11816_get_opinfo_branch_20111031.diff ___ Python tracker ___ __

[issue11816] Refactor the dis module to provide better building blocks for bytecode analysis

2011-12-03 Thread Nick Coghlan
Changes by Nick Coghlan : -- hgrepos: -17 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue11816] Refactor the dis module to provide better building blocks for bytecode analysis

2011-12-03 Thread Nick Coghlan
Changes by Nick Coghlan : Removed file: http://bugs.python.org/file23773/9512712044a6.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue11816] Refactor the dis module to provide better building blocks for bytecode analysis

2011-12-03 Thread Nick Coghlan
Changes by Nick Coghlan : -- hgrepos: +93 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue11816] Refactor the dis module to provide better building blocks for bytecode analysis

2011-12-03 Thread Nick Coghlan
Changes by Nick Coghlan : Added file: http://bugs.python.org/file23848/9512712044a6.diff ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue13526] Deprecate the old Unicode API

2011-12-03 Thread Benjamin Peterson
Benjamin Peterson added the comment: Quoting the PEP "While the Py_UNICODE representation and APIs are deprecated with this PEP, no removal of the respective APIs is scheduled. The APIs should remain available at least five years after the PEP is accepted" I don't think there should be warnin

[issue11816] Refactor the dis module to provide better building blocks for bytecode analysis

2011-12-03 Thread Nick Coghlan
Nick Coghlan added the comment: OK, there's something crazy going on with "Create Patch" failing to pick up the latest changes. I've removed all the obsolete patches, and am doing another merge from default to see if I can get it to pick things up correctly. -- __

[issue11816] Refactor the dis module to provide better building blocks for bytecode analysis

2011-12-03 Thread Nick Coghlan
Changes by Nick Coghlan : Removed file: http://bugs.python.org/file23848/9512712044a6.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue11816] Refactor the dis module to provide better building blocks for bytecode analysis

2011-12-03 Thread Nick Coghlan
Nick Coghlan added the comment: Grr, "Create Patch" insists on trying to produce a patch based on https://bitbucket.org/ncoghlan/cpython_sandbox/changesets/9512712044a6. That checkin is from *September* and ignores all my recent changes :P Relevant meta-tracker issue: http://psf.upfronthosti

[issue11816] Refactor the dis module to provide better building blocks for bytecode analysis

2011-12-03 Thread Nick Coghlan
Nick Coghlan added the comment: OK, manual up-to-date patch attached. -- Added file: http://bugs.python.org/file23849/issue11816_get_opinfo_branch_20111204.diff ___ Python tracker

[issue11816] Refactor the dis module to provide better building blocks for bytecode analysis

2011-12-03 Thread Nick Coghlan
Nick Coghlan added the comment: @Ron: Now that it has a reasonably clear signature, I could see my way clear to making the Instruction._disassemble() method public, which makes it easy for people to compose their own disassembly output. For all the other display methods, I prefer Ryan Kelly's