[issue10349] Error in Module/python.c when building on OpenBSD 4.8

2010-11-08 Thread Prabhu Gurumurthy
Prabhu Gurumurthy added the comment: I ran the build "without" cxx_main, I did _not_ see the same error. -- ___ Python tracker ___ __

[issue10319] SocketServer.TCPServer truncates responses on close (in some situations)

2010-11-08 Thread jrodman2
jrodman2 added the comment: shutdown isn't the same as close. I'm not sure that's correct behavior in BaseHTTPServer depending upon whether it wants to keep the door open to weird pipeline behaviors. Honestly, I'm having to read through tcp/ip illustrated because of this, so I'm not really th

[issue10319] SocketServer.TCPServer truncates responses on close (in some situations)

2010-11-08 Thread Senthil Kumaran
Senthil Kumaran added the comment: jrodman2, in the socketserver TCPServer code you will find that shutdown_request does a socket.SHUT_WR before calling close_request. If the application or code in your description used shutdown_request, instead of close_request would you still require the kin

[issue10318] "make altinstall" installs many files with incorrect shebangs

2010-11-08 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue2001] Pydoc interactive browsing enhancement

2010-11-08 Thread Nick Coghlan
Nick Coghlan added the comment: As per python-dev discussion, we'll keep the old server and GUI implementations intact (but deprecated). The -g command line option will start the old implementation, -p and -b will start the new one. The APIs to activate the new implementation will start with

[issue10342] trace module cannot produce coverage reports for zipped modules

2010-11-08 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- dependencies: +Deprecate trace module undocumented API ___ Python tracker ___ ___ Python-bugs-lis

[issue7061] Improve turtle module documentation

2010-11-08 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- title: Improve 24.5. turtle doc -> Improve turtle module documentation ___ Python tracker ___ ___

[issue3620] test_smtplib is flaky

2010-11-08 Thread R. David Murray
R. David Murray added the comment: Looking back over the logs (via bbreport) I don't see any failures of test_smtplib that match the report in this issue. There were three in the last while, two of which look like network issues on the same machine (and thus probably not a test problem per s

[issue10205] Can't have two tags with the same QName

2010-11-08 Thread Senthil Kumaran
Senthil Kumaran added the comment: Fixed in r86348 for py3k and r86349 for release27-maint. In release31-maint, I see that there are missing features, like support for xml_declaration and default_namespace, which are however available in release27-maint. This is not a desirable scenario and I

[issue7061] Improve 24.5. turtle doc

2010-11-08 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: >From IRC (raymondh): in the turtle docs, can you add a quick start guide (like we have in the unittest docs) the turtle docs have grown into a small book and is intimidating to get started with. -- nosy: +rhettinger __

[issue10142] Support for SEEK_HOLE/SEEK_DATA

2010-11-08 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: This is far more complicated that expected, because I would like to modify "file.seek()" to be able to support these flags too. Analizing "Modules/_io/bufferedio.c:buffered_seek()", the logic is pretty convoluted and the ramifications are extensible. Should

[issue10354] tempfile.template is broken

2010-11-08 Thread Raymond Hettinger
Raymond Hettinger added the comment: +1 for just deleting it. nothing is lost by deleting code that never worked in the first place ;-) -- nosy: +rhettinger ___ Python tracker __

[issue10354] tempfile.template is broken

2010-11-08 Thread R. David Murray
R. David Murray added the comment: It has been documented as deprecated since 2.0. I'm sure the intent was for all mention of it to have been deleted from the 3.x docs already, but that first paragraph was overlooked. -- ___ Python tracker

[issue10371] Deprecate trace module undocumented API

2010-11-08 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : Following python-dev discussion on the issue, I would like to propose trace-deprecations.diff patch for review. I would like to make these changes before turning to issue10342 which will require changing many of these APIs that take a source path to t

[issue10370] py3 readlines() reports wrong offset for UnicodeDecodeError

2010-11-08 Thread STINNER Victor
STINNER Victor added the comment: The error occurs in .readline(): .readline() fills a buffer by reading the file chunk by chunk. Each time a chunk is read, it is decoded by the stateful decoder. The problem is that the decoder doesn't know the file offset. Even if it knew, start and end attr

[issue10335] tokenize.open(): open a file with encoding detected from a coding cookie

2010-11-08 Thread STINNER Victor
STINNER Victor added the comment: Commited to Python 3.2 (r86346 + r86347). Thanks for your reviews. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue10370] py3 readlines() reports wrong offset for UnicodeDecodeError

2010-11-08 Thread R. David Murray
Changes by R. David Murray : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue10370] py3 readlines() reports wrong offset for UnicodeDecodeError

2010-11-08 Thread Brian Warner
New submission from Brian Warner : I noticed that the UnicodeDecodeError exception produced by trying to do open(fn).readlines() (i.e. using the default ASCII encoding) on a file that's actually UTF-8 reports the wrong offset for the first undecodeable character. From what I can tell, it repor

[issue6011] python doesn't build if prefix contains non-ascii characters

2010-11-08 Thread STINNER Victor
STINNER Victor added the comment: Now I get an error in copy_scripts() function of Lib/distutils/command/build_scripts.py: this function adjusts Python shebang of installed Python scripts. The problem is that the shebang contains a non-ASCII character whereas the script is written into the lo

[issue10369] tarfile requires an actual file on disc; a file-like object is insufficient

2010-11-08 Thread R. David Murray
Changes by R. David Murray : -- type: -> feature request versions: +Python 3.2 -Python 2.7, Python 3.1 ___ Python tracker ___ ___ Pyt

[issue10354] tempfile.template is broken

2010-11-08 Thread Eric Smith
Eric Smith added the comment: I sort of agree with David. The global "template" is a bad name and a bad design. And since it doesn't work I don't think anything would be lost by modifying the code to ignore it; document that it's unused and deprecated; and remove it in a future version.

[issue6011] python doesn't build if prefix contains non-ascii characters

2010-11-08 Thread STINNER Victor
STINNER Victor added the comment: > The real problem is that PREFIX is not decoded using _Py_charw2char() ... Fixed by r86345. -- ___ Python tracker ___

[issue2927] expose html.parser.unescape

2010-11-08 Thread Tom Pinckney
Tom Pinckney added the comment: New patch attached, tested against Python 3.2. This is my first Python patch so apologies if I've done something wrong here. Feedback appreciated! Changes: * fit everything to 80 cols * just made changes to the HTMLParser.unescape function instead of providing

[issue9199] distutils upload command crashes when displaying server response

2010-11-08 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: This fix doesn't solve issue10367. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue10367] "python setup.py sdist upload --show-response" can fail with "UnboundLocalError: local variable 'result' referenced before assignment"

2010-11-08 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: This is not issue9199, even covering the same line code. In this case the problem is an exception leaving a local variable undefined, crashing later. -- ___ Python tracker

[issue9199] distutils upload command crashes when displaying server response

2010-11-08 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Éric, I see this in Python 2.7, standard release. Your fix in SVN seems OK, but I am not sure that using "\n" be very platform agnostic. -- ___ Python tracker __

[issue10369] tarfile requires an actual file on disc; a file-like object is insufficient

2010-11-08 Thread Dan Stromberg
New submission from Dan Stromberg : The tarfile module's gettarinfo callable insists on stat'ing the file in question, preventing one from dynamically generating file content by passing a file-like object for addfile's fileobj argument. I believe the attached patch fixes this issue. I generat

[issue6011] python doesn't build if prefix contains non-ascii characters

2010-11-08 Thread Éric Araujo
Changes by Éric Araujo : -- Removed message: http://bugs.python.org/msg120820 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue6011] python doesn't build if prefix contains non-ascii characters

2010-11-08 Thread Éric Araujo
Éric Araujo added the comment: I should have worn my Stupid Hat today, because I’ve made stupid commits and emails. I hadn’t updated my checkout when I made my test. The bad news is that I still have a bug after svn up: gcc -pthread -Xlinker -export-dynamic -o python Modules/python.o lib

[issue6011] python doesn't build if prefix contains non-ascii characters

2010-11-08 Thread Éric Araujo
Éric Araujo added the comment: Sorry: gcc -pthread -Xlinker -export-dynamic -o python Modules/python.o libpython3.2dmu.a -lpthread -ldl -lutil -lm Fatal Python error: Py_Initialize: Unable to get the locale encoding SystemError: NULL result without error in PyObject_Call Aborted make: *

[issue10357] ** and "mapping" are poorly defined in python docs

2010-11-08 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Even if the glossary pointed to collections.html, > there are far more methods specified there than > are needed to be **able. That is an implementation detail and is subject to change. If someone supplies an argument satisfying collections.Mapping, tha

[issue6011] python doesn't build if prefix contains non-ascii characters

2010-11-08 Thread STINNER Victor
STINNER Victor added the comment: > Fatal Python error: Py_Initialize: Unable to get the locale encoding > SystemError: NULL result without error in PyObject_Call Gotcha! r86341 fixes PyUnicode_EncodeFS(): raise an error if _Py_char2wchar_() fails. The real problem is that PREFIX is not decod

[issue10357] ** and "mapping" are poorly defined in python docs

2010-11-08 Thread Fergal Daly
Fergal Daly added the comment: Even if the glossary pointed to collections.html, there are far more methods specified there than are needed to be **able. The code just calls into the same code as dict.update(dict) (although .update can also work on a sequence of twouples). dict.update's doc s

[issue10349] Error in Module/python.c when building on OpenBSD 4.8

2010-11-08 Thread Prabhu Gurumurthy
Prabhu Gurumurthy added the comment: I understand, Ill run it without cxx_main option tonight. -- ___ Python tracker ___ ___ Python-b

[issue5131] pprint doesn't know how to print a defaultdict

2010-11-08 Thread Rodrigo Bernardo Pimentel
Changes by Rodrigo Bernardo Pimentel : -- nosy: +rbp ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue10349] Error in Module/python.c when building on OpenBSD 4.8

2010-11-08 Thread Martin v . Löwis
Martin v. Löwis added the comment: I wasn't really discussing (yet) whether this is a bug. I was just trying to find out what specifically made you use this configure option. The need for it should have gone away ten years ago or so. -- ___ Python

[issue10196] distutils.get_python_lib() returns /usr/local/python3/dist-packages on Ubuntu 10.10

2010-11-08 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: This makes some sense (I think ;). Include files are going to be tied specifically to the Python version but Python 3 packages are (with the addition of PEPs 3147 and 3149) sharable between Python 3 versions. The plan IIUC is to backport those PEPs to Pyth

[issue10349] Error in Module/python.c when building on OpenBSD 4.8

2010-11-08 Thread Prabhu Gurumurthy
Prabhu Gurumurthy added the comment: You may be correct, (since I have not tested it), but isn't the error that gcc complains about, an issue? a minor one I am sure. I have gotten around it by just updating the file. Correct me if I am wrong here please, --with-cxx_main is not a supported op

[issue10368] "python setup.py sdist upload --show-response" fails

2010-11-08 Thread Éric Araujo
Changes by Éric Araujo : -- resolution: -> duplicate stage: needs patch -> committed/rejected status: open -> closed superseder: -> "python setup.py sdist upload --show-response" can fail with "UnboundLocalError: local variable 'result' referenced before assignment" type: crash -> beh

[issue10349] Error in Module/python.c when building on OpenBSD 4.8

2010-11-08 Thread Martin v . Löwis
Martin v. Löwis added the comment: It should certainly work around the problem you are reporting. -- ___ Python tracker ___ ___ Pytho

[issue10363] Embedded python, handle (memory) leak

2010-11-08 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- versions: -Python 2.5, Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue10364] Color coding fails after running program.

2010-11-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: I take that as a yes, IDLE edit window. 2.5 is beyond fixing at this point, but that is useful data. I will look out for this problem when I load Python on Win7. -- components: +IDLE versions: +Python 2.7, Python 3.2 _

[issue9199] distutils upload command crashes when displaying server response

2010-11-08 Thread Éric Araujo
Éric Araujo added the comment: Reopening because of #10367. -- nosy: +jcea resolution: fixed -> stage: committed/rejected -> commit review status: closed -> open ___ Python tracker

[issue10367] "python setup.py sdist upload --show-response" can fail with "UnboundLocalError: local variable 'result' referenced before assignment"

2010-11-08 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the report. Can you paste your message and exact Python version on #9199? -- nosy: +eric.araujo resolution: -> duplicate stage: needs patch -> committed/rejected status: open -> closed superseder: -> distutils upload command crashes when dis

[issue10196] distutils.get_python_lib() returns /usr/local/python3/dist-packages on Ubuntu 10.10

2010-11-08 Thread Éric Araujo
Changes by Éric Araujo : -- assignee: tarek -> nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue10299] Add index with links section for built-in functions

2010-11-08 Thread Éric Araujo
Éric Araujo added the comment: Using cell spanning breaks “make latex” (and thus PDF), you may want to rework the reST table markup. -- ___ Python tracker ___ _

[issue10331] test_gdb failure when warnings printed out

2010-11-08 Thread Dave Malcolm
Dave Malcolm added the comment: Closing "won't fix", since this was misconfiguration; filtering out such warnings might mask a security issue. -- resolution: -> wont fix status: open -> closed ___ Python tracker

[issue10368] "python setup.py sdist upload --show-response" fails

2010-11-08 Thread Jesús Cea Avión
New submission from Jesús Cea Avión : Uploading a new module/update to PYPI, when requesting "--show_response" in the command line, will fail: """ Traceback (most recent call last): File "setup.py", line 5, in import setup2 File "/home/pybsddb/setup2.py", line 415, in 'Programming

[issue10364] Color coding fails after running program.

2010-11-08 Thread Typo
Typo added the comment: Ah I see. I didn't know that the editor window was part of Idle. Sorry for the confusion. I am also receiving this problem in Python 2.5.1. -- ___ Python tracker _

[issue10367] "python setup.py sdist upload --show-response" can fail with "UnboundLocalError: local variable 'result' referenced before assignment"

2010-11-08 Thread Jesús Cea Avión
New submission from Jesús Cea Avión : Uploading a new release of one of my libraries to PYPI I got this error: """ Submitting dist/bsddb3-5.1.1.tar.gz to http://pypi.python.org/pypi Upload failed (400): A file named "bsddb3-5.1.1.tar.gz" already exists for bsddb3-5.1.1. To fix problems with th

[issue1466065] base64 module ignores non-alphabet characters

2010-11-08 Thread R. David Murray
R. David Murray added the comment: Here is an updated patch that addresses the concerns I noted. I modified the tests: given that I've changed the code to raise binascii.Error as discussed, we don't really care from an API point of view what the error text is, just that the error is raised i

[issue8033] sqlite: broken long integer handling for arguments to user-defined functions

2010-11-08 Thread Philippe Devalkeneer
Philippe Devalkeneer added the comment: No, I made a mistake in my build, test_sqlite runs actually fine before and after the patch. -- ___ Python tracker ___ __

[issue8033] sqlite: broken long integer handling for arguments to user-defined functions

2010-11-08 Thread Philippe Devalkeneer
Philippe Devalkeneer added the comment: The regression tests do not work anymore in test_sqlite with the patch, I will check more in details why... sorry. -- ___ Python tracker

[issue9995] "setup.py register sdist upload" requires pass to be saved

2010-11-08 Thread Éric Araujo
Éric Araujo added the comment: Security issues are for example buffer overflows that can be used to cause rights escalation or system corruption. They’re typically discovered by third parties who publish notices like CVE or DSA. What your patch is addressing is a behavior bug, not a securit

[issue10349] Error in Module/python.c when building on OpenBSD 4.8

2010-11-08 Thread Prabhu Gurumurthy
Prabhu Gurumurthy added the comment: I was building it just the way python2.x is being built, should I try it without cxx-main? But, does it solve the actual problem? -- ___ Python tracker ___

[issue10366] Remove unneeded '(object)' from 3.x class examples

2010-11-08 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue10366] Remove unneeded '(object)' from 3.x class examples

2010-11-08 Thread Éric Araujo
Éric Araujo added the comment: Other unneeded uses of object, courtesy of grep: library/sqlite3.rst:713: class Point(object): library/multiprocessing.rst:1335: class MathsClass(object): library/functions.rst:281: >>> class Foo(object): library/functions.rst:897: class C(object): l

[issue10364] Color coding fails after running program.

2010-11-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: If it is an editor window that you launch from IDLE, with a red script Tk in the upper left corner, with 'About IDLE' on the help menu, then it is an IDLE editor window and part of IDLE -- and appropriate for bug reports here ;-). This could be something spec

[issue5819] Add PYTHONPREFIXES environment variable

2010-11-08 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I'll look at this in more detail, but I can at least answer one question right now: "The bona-fide known bug: the Debian package mantainer for Python decided to change "site-packages" to "dist-packages" in 2.6, for reasons I still don't quite understand."

[issue10366] Remove unneeded '(object)' from 3.x class examples

2010-11-08 Thread Terry J. Reedy
New submission from Terry J. Reedy : In 3.x, "(object)" is now superfluous in class statements. Reference manual 7.7. Class definitions has simply class Foo: pass In library manual 2. Built-in Functions, class examples for classmethod and staticmethod are the same. Class examples for dir,

[issue10365] IDLE Crashes on File Open Dialog when code window closed before other file opened

2010-11-08 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Reproduced in a console window: C:\>c:\python31\python.exe -m idlelib.idle Exception in Tkinter callback Traceback (most recent call last): File "c:\python31\lib\tkinter\__init__.py", line 1399, in __call__ return self.func(*args) File "c:\python31

[issue10327] Abnormal SSL timeouts when using socket timeouts - once again

2010-11-08 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> invalid stage: -> committed/rejected ___ Python tracker ___ ___ Python-bugs-list mail

[issue10365] IDLE Crashes on File Open Dialog when code window closed before other file opened

2010-11-08 Thread William Barr
New submission from William Barr : Steps for reproduction: 1. Open IDLE (Python 3.1.2) 2. Open a .py file 3. With the code window (not the shell window) in focus, Ctrl + O to bring up the open file dialog. Do not select a file or press open. 4. Close the code window. 5. Select a file a

[issue10364] Color coding fails after running program.

2010-11-08 Thread Typo
Typo added the comment: I am using Windows Vista. The problem is not within Idle but within the screen where you create and save coding to use in Idle. -- ___ Python tracker __

[issue10361] Fix issue 9995 - distutils forces developers to store password in cleartext (issue2874041)

2010-11-08 Thread Éric Araujo
Éric Araujo added the comment: Further replies. There’s still one comment in test_register you haven’t addressed yet. Tarek, I’d like to have your decision about one line in the upload command. (Don’t read the diff in this mail, it’s incomplete, go to Rietveld.) Thanks in advance. http://co

[issue9995] "setup.py register sdist upload" requires pass to be saved

2010-11-08 Thread anatoly techtonik
anatoly techtonik added the comment: This fix is needed for 2.6 releases also to be able to upload packages from Linux. -- ___ Python tracker ___ ___

[issue10364] Color coding fails after running program.

2010-11-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is an editor rather than Python problem. Are you using the IDLE editor or something else. Which version of Windows? Orange and purple are IDLE's default for keywords and built-in names. But running 3.1.2 under XP, I have no problem as you describe, eithe

[issue10361] Fix issue 9995 - distutils forces developers to store password in cleartext (issue2874041)

2010-11-08 Thread anatoly techtonik
anatoly techtonik added the comment: Reviewers: merwok, Message: I don't know when where will be time to redo the patch, but it would be nice to get some answers in meanwhile. http://codereview.appspot.com/2874041/diff/2001/cmd.py File cmd.py (right): http://codereview.appspot.com/2874041/dif

[issue10362] AttributeError: addinfourl instance has no attribute 'tell'

2010-11-08 Thread ProgVal
ProgVal added the comment: Here is the new traceback: Traceback (most recent call last): ... File "/home/progval/workspace/Supybot/Supybot-plugins/Packages/plugin.py", line 123, in extractData file = tarfile.open(fileobj=file_, mode='r:') File "/usr/lib/python2.6/tarfile.py", line 1671,

[issue10362] AttributeError: addinfourl instance has no attribute 'tell'

2010-11-08 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: I'm sure the traceback changed then? mode='r:' uses a different code path. -- ___ Python tracker ___

[issue10364] Color coding fails after running program.

2010-11-08 Thread Typo
New submission from Typo : Whenever I run a program in Python 3.1.2 (windows), the color coding disappears. print() is no longer purple, def is no longer orange, etc. It all turns black, and there doesn't seem to be a way to repair this. I've installed and uninstalled Python 3.1.2 several time

[issue10362] AttributeError: addinfourl instance has no attribute 'tell'

2010-11-08 Thread ProgVal
ProgVal added the comment: Thanks for your answer. Sorry, no change... -- components: +Library (Lib) versions: +Python 2.6 ___ Python tracker ___ __

[issue10362] AttributeError: addinfourl instance has no attribute 'tell'

2010-11-08 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: With a socket file you cannot rely on autodetection of the format. I suggest to try tarfile.open(fileobj=file_, mode='r:') or tarfile.open(fileobj=file_, mode='r:gz') -- nosy: +amaury.forgeotdarc ___ Py

[issue10363] Embedded python, handle (memory) leak

2010-11-08 Thread Martin Dunschen
New submission from Martin Dunschen : I found a number of 'handle leaks' in the core code to embed python into a C/C++ application on windows. To reproduce: The simplest possible embedded application only calls: #include void entry() { Py_Initialize(); Py_Finalize(); } I found (but

[issue10362] AttributeError: addinfourl instance has no attribute 'tell'

2010-11-08 Thread ProgVal
New submission from ProgVal : Hello, I had this traceback: Traceback (most recent call last): ... File "/home/progval/workspace/Supybot/Supybot-plugins/Packages/plugin.py", line 123, in extractData file = tarfile.open(fileobj=file_) File "/usr/lib/python2.6/tarfile.py", line 1651, in o

[issue10361] Fix issue 9995 - distutils forces developers to store password in cleartext (issue2874041)

2010-11-08 Thread Éric Araujo
Éric Araujo added the comment: Yay for obscure email interfaces. Sorry for the noise. -- resolution: -> invalid stage: -> committed/rejected status: open -> closed ___ Python tracker ___

[issue10360] _weakrefset.WeakSet.__contains__ should not propagate TypeErrors

2010-11-08 Thread Tres Seaver
Tres Seaver added the comment: WeakKeyDictionary's __contains__: def __contains__(self, key): try: wr = ref(key) except TypeError: return 0 return wr in self.data -- ___ Python tracker

[issue10321] Add support for Message objects and binary data to smtplib.sendmail

2010-11-08 Thread R. David Murray
R. David Murray added the comment: Committed in r86327. -- resolution: -> accepted stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue9995] "setup.py register sdist upload" requires pass to be saved

2010-11-08 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the patch. Review on Rietveld. What are “other Python distributions”? -- components: +Distutils2 versions: +3rd party, Python 3.1, Python 3.2 -Python 2.6 ___ Python tracker

[issue10361] Fix issue 9995 - distutils forces developers to store password in cleartext (issue2874041)

2010-11-08 Thread Éric Araujo
New submission from Éric Araujo : Looks globally good to me. http://codereview.appspot.com/2874041/diff/2001/cmd.py File cmd.py (right): http://codereview.appspot.com/2874041/diff/2001/cmd.py#newcode55 cmd.py:55: :param distutils.dist.Distribution dist: distribution to work with Please don’t in

[issue10355] SpooledTemporaryFile's name property is broken

2010-11-08 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Also "encoding" and "mode" properties fail in the same manner. -- ___ Python tracker ___ ___ Pyt

[issue10360] _weakrefset.WeakSet.__contains__ should not propagate TypeErrors

2010-11-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: What is the behaviour of WeakKeyDictionary here? I don't really agree that TypeError should be silenced. -- nosy: +pitrou versions: +Python 3.2 ___ Python tracker ___

[issue10355] SpooledTemporaryFile's name property is broken

2010-11-08 Thread Éric Araujo
Éric Araujo added the comment: Wow, brain fail. What I actually wanted to say: SpooledTemporaryFile “operates exactly as TemporaryFile() does”, which is not guaranteed to have a name. The definition of file-like object (linked from tempfile docs) says nothing about a name either. Therefor

[issue10360] _weakrefset.WeakSet.__contains__ should not propagate TypeErrors

2010-11-08 Thread Tres Seaver
Changes by Tres Seaver : -- versions: +Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue10360] _weakrefset.WeakSet.__contains__ should not propagate TypeErrors

2010-11-08 Thread Tres Seaver
Tres Seaver added the comment: FTR, the patch applies cleanly to the py3k branch, too. (Michael pointed out that the original code was copied directly from there). -- ___ Python tracker ___

[issue10360] _weakrefset.WeakSet.__contains__ should not propagate TypeErrors

2010-11-08 Thread Tres Seaver
Tres Seaver added the comment: "One more time, with feeling." Sorry for the noise, the last patch was not against the 2.7 trunk. -- Added file: http://bugs.python.org/file19547/issue10360-redux.patch ___ Python tracker

[issue10360] _weakrefset.WeakSet.__contains__ should not propagate TypeErrors

2010-11-08 Thread Tres Seaver
Changes by Tres Seaver : Removed file: http://bugs.python.org/file19546/issue10360-redux.patch ___ Python tracker ___ ___ Python-bugs-list mai

[issue10360] _weakrefset.WeakSet.__contains__ should not propagate TypeErrors

2010-11-08 Thread Tres Seaver
Tres Seaver added the comment: A new version of the patch, which only traps TypeErrors raises by ref(item). The test now ensures that hashing errors are propagated, for compatibility with standard sets. -- Added file: http://bugs.python.org/file19546/issue10360-redux.patch ___

[issue10360] _weakrefset.WeakSet.__contains__ should not propagate TypeErrors

2010-11-08 Thread Tres Seaver
Changes by Tres Seaver : Removed file: http://bugs.python.org/file19545/issue10360.patch ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue5819] Add PYTHONPREFIXES environment variable

2010-11-08 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +barry, eric.araujo versions: +Python 3.2 -Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mai

[issue10356] decimal.py: hash of -1

2010-11-08 Thread Raymond Hettinger
Raymond Hettinger added the comment: Good catch Stefan. This is a regression from Py2.6. The behavior for decimal should match that for int. IDLE 2.6.2 >>> hash(-1) -2 >>> (-1).__hash__() -2 >>> from decimal import * >>> hash(Decimal(-1)) -2 >>> Decimal(-1).__hash__() -2 -- no

[issue10360] _weakrefset.WeakSet.__contains__ should not propagate TypeErrors

2010-11-08 Thread Georg Brandl
Georg Brandl added the comment: A result from IRC is that to be consistent with normal sets, only TypeErrors coming from ref() should be caught, but not those TypeErrors from the actual membership test (i.e. the hash functioon of the value). -- assignee: -> rhettinger nosy: +georg.br

[issue10357] ** and "mapping" are poorly defined in python docs

2010-11-08 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: d...@python -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue1236] subprocess is not thread-safe

2010-11-08 Thread Chris Gerhard
Changes by Chris Gerhard : -- nosy: +Chris.Gerhard ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue10355] SpooledTemporaryFile's name property is broken

2010-11-08 Thread R. David Murray
R. David Murray added the comment: Éric: right, but we're talking about *Spooled*Temprorary file, which doesn't say anything about a name, and in fact says that the data is kept in memory (which implies it has no name). -- ___ Python tracker

[issue10360] _weakrefset.WeakSet.__contains__ should not propagate TypeErrors

2010-11-08 Thread Michael Foord
Changes by Michael Foord : -- nosy: +michael.foord ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue10224] Build 3.x documentation using python3.x

2010-11-08 Thread Georg Brandl
Georg Brandl added the comment: I agree that 3.2 should eventually be independent of a 2.x Python. Since the "port to 3.x" part of Sphinx 1.1 is basically done, I might just do an early alpha release and use that for Doc/tools before 3.2 final. -- ___

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

2010-11-08 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue10224] Build 3.x documentation using python3.x

2010-11-08 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: As discussed on #python-dev, building 3.x documentation using python3.x will require Sphinx 1.1 which will not be released in time for 3.2. I am adding #10225 as a dependency because I feel that fixing actual errors in ReST doctests is more important t

[issue10355] SpooledTemporaryFile's name property is broken

2010-11-08 Thread Éric Araujo
Éric Araujo added the comment: >From the doc of tempfile.NamedTemporaryFile: “This function operates exactly >as TemporaryFile() does, except that the file is guaranteed to have a visible >name in the file system (on Unix, the directory entry is not unlinked). That >name can be retrieved from

  1   2   >