[issue17496] OS X test for Tk availability in runtktests.py doesn't work

2013-03-20 Thread Ronald Oussoren
Ronald Oussoren added the comment: Wouldn't it be better to check for the actual problem, that is use subprocess to start a small Tcl script that creates a window and check if that crashes? That way the code for disabling the test doesn't have to try to guess whether or not Tk will crash in th

[issue17496] OS X test for Tk availability in runtktests.py doesn't work

2013-03-20 Thread Ronald Oussoren
Ronald Oussoren added the comment: A small helper program that does the equavalent of this should also work: import Cocoa Cocoa.NSWindow.alloc().initWithContentRect_styleMask_backing_defer_(((10, 10), (100, 100)), 0, 0, 0) If this code raises an exception you cannot create windows, if it doesn

[issue17504] Dropping duplicated docstring explanation of what Mocks' side_effect does.

2013-03-20 Thread Radu Voicilas
New submission from Radu Voicilas: Seems like there's a duplicated explanation in unittest.mock.Mock's docstring of what side_effect does. The attached patch should take care of that, if I'm not interpreting it wrong and it's actually on purpose there. -- components: Library (Lib) file

[issue17503] replace mode is always on in console

2013-03-20 Thread anatoly techtonik
New submission from anatoly techtonik: It is very annoying behavior of Python 3.3.0 that when you type in the console, replace mode is always on, and even after you press insert to go insert mode, it resets after every executed line. Windows Vista 32. Python 3.3.0 (v3.3.0:bd8afb90ebf2, Sep 29

[issue17494] References to stack bottom are confusing

2013-03-20 Thread Georg Brandl
Georg Brandl added the comment: Sorry, I find your suggested termini more confusing. * first/last: the first that was put onto the stack (i.e. bottom) or the first to be popped off (i.e. top)? * root/terminal: that makes you think of trees, but a stack is not a tree. top/bottom is the establi

[issue17496] OS X test for Tk availability in runtktests.py doesn't work

2013-03-20 Thread Ned Deily
Ned Deily added the comment: Granted, the current test is a kludge. We could make it a bigger kludge by trying launchctl first and if it fails move on to the current ctypes-based tests. Any better options? -- ___ Python tracker

[issue17496] OS X test for Tk availability in runtktests.py doesn't work

2013-03-20 Thread Ned Deily
Ned Deily added the comment: Um, yes, my tired eyes did skip over those added lines. Thanks, Glyph, and sorry, Alex. While the suggested change solves the issue for the non-framework build case, it appears to introduce new problems. For one, with the current skip test, it is possible to run

[issue17496] OS X test for Tk availability in runtktests.py doesn't work

2013-03-20 Thread Glyph Lefkowitz
Glyph Lefkowitz added the comment: Hi Ned, It seems from your comment that you didn't read the patch. Alex added a simpler check via launchctl, rather than by framework symbol groveling :). He didn't remove the check. It should be functionally identical to what's there now, but much shorter

[issue17496] OS X test for Tk availability in runtktests.py doesn't work

2013-03-20 Thread Ned Deily
Ned Deily added the comment: The test for the condition was added to solve the problem reported in Issue8716. The Tk crash for test_ttk_guionly reported there still occurs on a current 10.8 system with the Apple-supplied Cocoa Tk under the same conditions, that is, when running the tests from

[issue17490] Use converter functions to implement ast.literal_eval

2013-03-20 Thread Larry Hastings
Larry Hastings added the comment: For what it's worth, here's what we're doing. The new Argument Clinic "parameter" line looks a great deal like the middle bit of a Python function declaration. So much so that we can do this: ast_string = "def x({}): pass".format(parameter_line) root

[issue5713] smtplib gets out of sync if server returns a 421 status

2013-03-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset d068fcbe5009 by R David Murray in branch '3.3': #5713: One more test_smtplib timing fix. http://hg.python.org/cpython/rev/d068fcbe5009 New changeset fcef6a33de17 by R David Murray in branch 'default': Merge: #5713: One more test_smtplib timing fix.

[issue17338] Add length_hint parameter to list, dict, set constructors to allow efficient presizing

2013-03-20 Thread Trent Nelson
Changes by Trent Nelson : -- nosy: +trent ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue16809] Tk 8.6.0 introduces TypeError. (Tk 8.5.13 works)

2013-03-20 Thread Roger Serwy
Roger Serwy added the comment: Serhiy, I applied your patch but I still get the same error. >From what I have found so far, the FromObj function in Modules/_tkinter.c >relies on cached values for different Tcl_ObjType, as given in the TkappObject >struct. From the comment: /* We cannot i

[issue17489] random.Random implements __getstate__() and __reduce__()

2013-03-20 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue17492] Increase test coverage for random (up to 99%)

2013-03-20 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue17490] Use converter functions to implement ast.literal_eval

2013-03-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, I like the current version of the code and find it easily to understand what it does and how it does it. The new code is longer and full of indirections. I question whether it is a real improvement. -- nosy: +rhettinger __

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

2013-03-20 Thread Cherniavsky Beni
Cherniavsky Beni added the comment: After a lot of experimentation, this worked for me to build AND doctest using the local python: cd Doc/ ../python -m venv toolsenv curl http://python-distribute.org/distribute_setup.py | toolsenv/bin/python toolsenv/bin/easy_install pip toolsenv/bin/pip insta

[issue9506] sqlite3 mogrify - return query string

2013-03-20 Thread R. David Murray
R. David Murray added the comment: Given what you have determined, I don't think there would be any benefit to such a method. Furthermore, I have now remembered that as of Python 3.3 the sqlite3 module/sqlite3 has a set_trace_callback function that allows you to capture the commands that are

[issue17502] unittest.mock: side_effect iterators ignore DEFAULT

2013-03-20 Thread Michael Foord
New submission from Michael Foord: An iterator set as a mock side_effect should be able to include mock.DEFAULT to use the standard return value. def test_side_effect_iterator_default(self): mock = Mock(return_value=2) mock.side_effect = [1, DEFAULT] result = mock()

[issue16991] Add OrderedDict written in C

2013-03-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: I just looked at the test-collections patch and don't want it committed. It is full of trivial edits that make it hard to review and doesn't make the test suite better. It is okay to add some new tests, but I don't want to rearrange the existing code with

[issue17206] Py_XDECREF() expands its argument multiple times

2013-03-20 Thread Illia Polosukhin
Illia Polosukhin added the comment: Additionally, disassembled ceval.o and compared baseline with experiment (with applied patch): no actual differences found. Attached archive contains ceval from both baseline and experiment builds: - cevalb.cc - processed file of baseline build - ceval.cc -

[issue17206] Py_XDECREF() expands its argument multiple times

2013-03-20 Thread Illia Polosukhin
Illia Polosukhin added the comment: Compiled baseline and patched version with GCC in Ubuntu 12.10 (running in VMWare). Benchmarking results are attached: ./perf.py -b 2n3 -f ../cpython/baseline/python ../cpython/experiment/python | tee perf-linux.log -- Added file: http://bugs.python

[issue5713] smtplib gets out of sync if server returns a 421 status

2013-03-20 Thread R. David Murray
R. David Murray added the comment: Thanks Mark and Kushal. -- assignee: barry -> resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed versions: -Python 2.7 ___ Python tracker

[issue5712] tkinter - askopenfilenames returns string instead of tuple in windows 2.6.1 release

2013-03-20 Thread R. David Murray
Changes by R. David Murray : -- Removed message: http://bugs.python.org/msg184831 ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue5712] tkinter - askopenfilenames returns string instead of tuple in windows 2.6.1 release

2013-03-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2ce557101136 by R David Murray in branch '3.2': #5712: Preemptively fix some other possible timing issues. http://hg.python.org/cpython/rev/2ce557101136 New changeset c412ca9aa915 by R David Murray in branch '3.3': Merge: #5712: Preemptively fix som

[issue1154351] add get_current_dir_name() to os module

2013-03-20 Thread Marc Adam Anderson
Marc Adam Anderson added the comment: This enhancement has been implemented. The code is based on hoffman's code. Tests for this enhancement, as well as tests for os.getcwd() have also been added. The docs have been updated and tested locally. -- keywords: +patch nosy: +marcadam Added

[issue17498] error responses from server are masked in smtplib when server closes connection

2013-03-20 Thread Kushal Das
Kushal Das added the comment: The following patch adds a _rset method which catches any SMTPServerDisconnected exception, also includes the corresponding test and test_421_from_mail_cmd assert statement typo fix. -- keywords: +patch Added file: http://bugs.python.org/file29521/issue174

[issue5713] smtplib gets out of sync if server returns a 421 status

2013-03-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset fbf54209de75 by R David Murray in branch '3.2': #5713: fix timing issue in smtplib tests. http://hg.python.org/cpython/rev/fbf54209de75 New changeset 0de74602692f by R David Murray in branch '3.3': Merge: #5713: fix timing issue in smtplib tests. ht

[issue17490] Use converter functions to implement ast.literal_eval

2013-03-20 Thread Nick Coghlan
Nick Coghlan added the comment: Now that I've actually implemented it, I'm fairly sure it's not a good idea. It might be better if we remove the recursive behaviour. As it is, Larry's fairly happy with what he is already doing (calling ast.parse and walking the tree) and I think that's actuall

[issue17490] Use converter functions to implement ast.literal_eval

2013-03-20 Thread Nick Coghlan
Changes by Nick Coghlan : Removed file: http://bugs.python.org/file29496/ast_literal_eval_converter_functions.diff ___ Python tracker ___ ___

[issue17490] Use converter functions to implement ast.literal_eval

2013-03-20 Thread Nick Coghlan
Nick Coghlan added the comment: Updated patch attached. The complexity grew a bit, as it turned out to be useful for the converter functions to be able to tell the difference between top level conversions and recursive invocations. I also realised that: - the complex number conversion currentl

[issue1747670] Limiting data copy in xmlrpclib

2013-03-20 Thread Thomas Fenzl
Thomas Fenzl added the comment: Adapted the patch to python3.3 It may be useful with large amounts of transfered data avoiding a copy and freeing memory earlier. The functionality is tested with the existing unit tests. -- nosy: +Thomas Fenzl versions: +Python 3.4 -Python 2.7 Added file

[issue2786] Names in traceback should have class names, if they're methods

2013-03-20 Thread Illia Polosukhin
Illia Polosukhin added the comment: The issue is not that easy to address - because PyFunctionObject is not available from PyEval_EvalCodeEx. Another note, is that the issue of reporting only function name without class name is observed in many places, not just for example above. Still, will

[issue5713] smtplib gets out of sync if server returns a 421 status

2013-03-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset bc538bc8e65d by R David Murray in branch '3.2': #5713: Handle 421 error codes during sendmail by closing the socket. http://hg.python.org/cpython/rev/bc538bc8e65d New changeset cf5c40025af2 by R David Murray in branch '3.3': Merge: #5713: Handle 421

[issue5713] smtplib gets out of sync if server returns a 421 status

2013-03-20 Thread R. David Murray
R. David Murray added the comment: I had to rewrite the tests for 3.2, and I added tests to test all three cases where 421 is returned. I'm in the process of merging this, but I'll upload the patch so that Kushal can see the test structure for the followon patch. -- Added file: http:/

[issue13234] os.listdir breaks with literal paths

2013-03-20 Thread Santoso Wijaya
Santoso Wijaya added the comment: Done. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue16310] zipfile: allow surrogates in filenames

2013-03-20 Thread Toshio Kuratomi
Toshio Kuratomi added the comment: Okay, here's the first version of a patch to add surrogate support to a zipfile. I think it's the minimum required to fix this bug. When archiving, if a filename contains surrogateescape'd bytes, it switches to cp437 when it saves the filename into the zipfi

[issue5609] Create Unit Tests for nturl2path module

2013-03-20 Thread Thomas Fenzl
Thomas Fenzl added the comment: The tests work on linux, so I removed the check for nt. Also I adapted them to the latest implementation using ':' instead of '|' as drive letter separator. -- keywords: +patch nosy: +Thomas Fenzl Added file: http://bugs.python.org/file29516/test_urllib.

[issue17501] cannot create a raw string ending in backslash

2013-03-20 Thread STINNER Victor
STINNER Victor added the comment: This is part of the Python language (syntax). If the workaround is documented, we cannot do anything else, so I'm closing the issue. -- ___ Python tracker

[issue17501] cannot create a raw string ending in backslash

2013-03-20 Thread Thomas Fenzl
Changes by Thomas Fenzl : -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue17501] cannot create a raw string ending in backslash

2013-03-20 Thread Thomas Fenzl
Thomas Fenzl added the comment: right, and I only just saw it's documented -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue17501] cannot create a raw string ending in backslash

2013-03-20 Thread STINNER Victor
STINNER Victor added the comment: Correct, but it's easy to work around this issue. For example: >>> print(r"a" "\\") a\ -- nosy: +haypo ___ Python tracker ___ _

[issue17501] cannot create a raw string ending in backslash

2013-03-20 Thread Thomas Fenzl
New submission from Thomas Fenzl: r'\' and r"\" cannot be parsed, because the backslash escapes the quotation ending the string, leading to a syntax error -- messages: 184815 nosy: Thomas Fenzl priority: normal severity: normal status: open title: cannot create a raw string ending in ba

[issue17499] inspect.Signature and inspect.Parameter objects are mutable

2013-03-20 Thread Larry Hastings
Larry Hastings added the comment: Yes, it seems I've been living in a fool's paradise, happy and ignorant. I thought that the behavior of garden-variety "immutable" objects was like tuple, where the implementor shored up the interface and the saboteur had to work *really* hard to modify the c

[issue9506] sqlite3 mogrify - return query string

2013-03-20 Thread Sanjeev Paskaradevan
Sanjeev Paskaradevan added the comment: An implementation of mogrify for pysqlite will necessarily be different from the Psycopg2 implementation because of the way queries are executed in Psycopg2 vs. pysqlite. In Pyscopg2 the arguments are bound into the query using mogrify and then executed

[issue14916] PyRun_InteractiveLoop fails to run interactively when using a Linux pty that's not tied to stdin/stdout

2013-03-20 Thread emmanuel
emmanuel added the comment: Kevin, I've read more carefully your messages and investigated some more. It seems that there are several issues: 1/ To take input from a defined tty without interfering with standard file descriptors 2/ To have the result (object) of evaluation printed to a defined t

[issue17500] move PC/icons/source.xar to http://www.python.org/community/logos/

2013-03-20 Thread Matthias Klose
New submission from Matthias Klose: This is a proposal to move the PC/icons/source.xar from the core distribution to the python website. Afaics currently the derived file PC/icons/baselogo is only used, and http://www.python.org/community/logos/ has even other recommended svg files for the log

[issue17498] error responses from server are masked in smtplib when server closes connection

2013-03-20 Thread Kushal Das
Kushal Das added the comment: Working on a patch for this. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue16754] Incorrect shared library extension on linux

2013-03-20 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue16475] Support object instancing and recursion in marshal

2013-03-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset f4c21179690b by Kristján Valur Jónsson in branch 'default': Issue #16475: Simplify the interface to r_ref_allocate and improve comments. http://hg.python.org/cpython/rev/f4c21179690b New changeset 42bf74b90626 by Kristján Valur Jónsson in branch 'de

[issue17150] pprint could use line continuation for long string literals

2013-03-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a new patch with more tests and updated docs. -- Added file: http://bugs.python.org/file29515/str_pprint2.patch ___ Python tracker ___ _

[issue12455] urllib2 forces title() on header names, breaking some requests

2013-03-20 Thread karl
karl added the comment: terry.reedy: You said: "and that has_header and get_header *require* the .capitalize() form and reject the .title() form." I made a patch for these two. See http://bugs.python.org/issue5550 -- ___ Python tracker

[issue15013] smtplib: add low-level APIs to doc?

2013-03-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: By current standards, we normally document all public methods. .rset() and .noop() are trivial, "same as .docmd('funcname')" .help() is almost trivial, just removing the first field of the reply (I assume a return code). 'returns message part of .putcmd('help

[issue16754] Incorrect shared library extension on linux

2013-03-20 Thread Matthias Klose
Changes by Matthias Klose : Added file: http://bugs.python.org/file29514/pep.diff ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue16754] Incorrect shared library extension on linux

2013-03-20 Thread Matthias Klose
Matthias Klose added the comment: proposed PEP change. Or should the change itself be documented in the PEP? -- ___ Python tracker ___ ___

[issue17499] inspect.Signature and inspect.Parameter objects are mutable

2013-03-20 Thread R. David Murray
R. David Murray added the comment: "BUT THE INTERNAL MEMBER IS EXTERNALLY MUTABLE." Your point being? This is Python, the consenting adults language :). -- nosy: +r.david.murray resolution: -> invalid stage: test needed -> committed/rejected status: open -> pending __

[issue17497] Unicode support for HTTP headers in http.client

2013-03-20 Thread R. David Murray
R. David Murray added the comment: My understanding is that iso-8859-1 is the standard, and really means "binary". Turning it into unicode happens later. See the WSGI PEPs for more information. -- nosy: +r.david.murray resolution: -> invalid stage: -> committed/rejected status: open

[issue5713] smtplib gets out of sync if server returns a 421 status

2013-03-20 Thread R. David Murray
R. David Murray added the comment: Sure, a new issue for making sure smtplib conforms to 5321 would be good (we already did it for smptd; hopefully we didn't miss anything). For the moment 5321 is the standard. There's a new one coming, where utf-8 will be allowed, but we're not quite ready t

[issue16991] Add OrderedDict written in C

2013-03-20 Thread Eric Snow
Eric Snow added the comment: My current patch ends up with O(n) deletion, which won't fly, so I'm refactoring. While I'm at it I'm also planning on using the BSD queue.h doubly-linked list rather than the one that I rolled. I'm also going to pull the ordered dict implementation into it's own

[issue17489] random.Random implements __getstate__() and __reduce__()

2013-03-20 Thread Víctor Terrón
Víctor Terrón added the comment: Ramchandra, that is not the behavior that I am able to reproduce. Please see the attached example: in the presence of __reduce__(), __getstate__() is not being called whether the class or an instance its pickled. This is also in consonance with what is stated i

[issue5550] [urllib.request]: Comparison of HTTP headers should be insensitive to the case

2013-03-20 Thread Senthil Kumaran
Senthil Kumaran added the comment: Karl - a patch is welcome. BTW, I wanted to search for an already existing and I think open issue with a patch ( probably written by me) somewhere. We have to see what's the diff of that issue with new one. I will share that issue in this id. But yeah, this i

[issue17499] inspect.Signature and inspect.Parameter objects are mutable

2013-03-20 Thread Brett Cannon
Brett Cannon added the comment: So what do you propose as a solution? Do you want to subclass tuple and then override __getitem__() so they can't index into the underlying tuple? Use __mangled names? I mean if people are going to break the API to muck with stuff we can't stop them (nor can th

[issue1003195] segfault when running smtplib example

2013-03-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: The original poster's links are dead. Without a reproducible problem with a current release, there is nothing we can do. Anyone who can provide such and will respond to requests for more information can reopen. Note: On Win 7 with 3.2, 3.3, current example exi

[issue17499] inspect.Signature and inspect.Parameter objects are mutable

2013-03-20 Thread Larry Hastings
New submission from Larry Hastings: The documentation for Inspect.Signature and Inspect.Parameter states that the objects are immutable. And they go to great lengths to provide a convenient interface allowing you to "replace" members. However, the objects make only a pathetic effort at being

[issue2623] Patch: xmlrpclib client ignores datetime tzinfo when creating iso8601 dates

2013-03-20 Thread Thomas Fenzl
Thomas Fenzl added the comment: Is this still relevant? The new xmlrcp.client still dumps both naive and aware datetimes as ISO 8601 strings without timezone information. xmlrpc.client.DateTime does not handle ISO 8601 with timezone information. So if it is, it could be updated to using strin

[issue5713] smtplib gets out of sync if server returns a 421 status

2013-03-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: Given that David is usually more conservative about calling things bugs than I am, knows more about this subject than me, and has explained that the change will make smptlib act more sanely in the face of external errors, I am reversing myself and agreeing wit

[issue17498] error responses from server are masked in smtplib when server closes connection

2013-03-20 Thread R. David Murray
Changes by R. David Murray : -- nosy: +kushaldas ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue17498] error responses from server are masked in smtplib when server closes connection

2013-03-20 Thread R. David Murray
New submission from R. David Murray: If an SMTP server returns an error code and then closes the connection, smtplib will attempt to send an RSET command, which will then raise a socket error, which smtplib turns into a ServerDisconnectedError, thereby loosing the information about what error

[issue17497] Unicode support for HTTP headers in http.client

2013-03-20 Thread Matt Tierney
New submission from Matt Tierney: Changed the headers string charset to utf-8 since a header field may contain non-iso-8859-1 characters. For instance, a Location header field may contain Cyrillic characters. -- components: Library (Lib) files: tierney.patch keywords: patch messages: 1

[issue16754] Incorrect shared library extension on linux

2013-03-20 Thread Sean Reifschneider
Sean Reifschneider added the comment: Toshio and Matthias: This approach seems sane to me, Nick asked me to review this ticket. I'm not coming up with any objections. +1 for retiring SO at some point after 3.2, and EXT_SUFFIX and SHLIB_SUFFIX. What documentation needs to be changed? PEP 314

[issue5550] [urllib.request]: Comparison of HTTP headers should be insensitive to the case

2013-03-20 Thread karl
karl added the comment: First, Sanity check for myself to be sure to understand. == → python3.3 Python 3.3.0 (v3.3.0:bd8afb90ebf2, Sep 29 2012, 01:25:11) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type "help", "copyright", "credits" or "lice

[issue17272] request.full_url: unexpected results on assignment

2013-03-20 Thread R. David Murray
R. David Murray added the comment: Oh, data being a property is 3.4 only. So if consistency is the goal, this should definately be a 3.4 only change. -- ___ Python tracker ___

[issue17272] request.full_url: unexpected results on assignment

2013-03-20 Thread R. David Murray
R. David Murray added the comment: Having looked at the current handling of the data attribute in the context of another issue, I am now inclined to agree with you that full_url should be updated in order to have the API have a consistent behavior. Although it isn't backward incompatible API

[issue5051] test_update2 in test_os.py invalid due to os.environ.clear() followed by reliance on environ COMSPEC

2013-03-20 Thread Roumen Petrov
Roumen Petrov added the comment: Hi Ned, > Ned Jackson Lovely added the comment: [SNIP] > In both cases, the currently running python executable, fetched via > sys.executable and run using os.popen, is used to print the value, instead of > the shell's echo. This moves things closer towards cro

[issue5713] smtplib gets out of sync if server returns a 421 status

2013-03-20 Thread R. David Murray
R. David Murray added the comment: I think this should be considered a bug fix. While it is true that we are handling something that is a "more advanced" feature of the smpt protocl than what we are (currently) formally supporting in the module, the reality is that if one uses smtplib to comm

[issue16475] Support object instancing and recursion in marshal

2013-03-20 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: This should not have happened and it was indeed all tested. I'll investigate why these errors are happening. -- ___ Python tracker ___

[issue17496] OS X test for Tk availability in runtktests.py doesn't work

2013-03-20 Thread Alex Gaynor
New submission from Alex Gaynor: If I run: $ python -mtest.test_tk I get a skip, after speaking with people familiar with OS X, it appears that the condition for the skip uses old Carbon APIs, which are totally deprecated under 64-bit. Attached is a patch which should work. -- files:

[issue17429] platform.platform() can throw Unicode error

2013-03-20 Thread Toshio Kuratomi
Toshio Kuratomi added the comment: Added NEWS file. Rebased against hg default. Ready for review. -- Added file: http://bugs.python.org/file29509/00175-platform-unicode.patch ___ Python tracker __

[issue16997] subtests

2013-03-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Finally committed :) Thanks everyone for the reviews and suggestions. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker _

[issue16997] subtests

2013-03-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5c09e1c57200 by Antoine Pitrou in branch 'default': Issue #16997: unittest.TestCase now provides a subTest() context manager to procedurally generate, in an easy way, small test instances. http://hg.python.org/cpython/rev/5c09e1c57200 -- no

[issue16475] Support object instancing and recursion in marshal

2013-03-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Indeed, would be nice to fix the test failures. Besides, it would be extra nice if you could run the test suite *before* pushing your changes. Otherwise you're wasting everyone else's time. -- ___ Python tracker

[issue17495] email.quoprimime.body_encode can't handle characters that encodings.quopri_codec can

2013-03-20 Thread R. David Murray
R. David Murray added the comment: OK, if you find it is a bug on 2.7 you can reopen. -- stage: -> committed/rejected superseder: -> email.mime.text.MIMEText: QP encoding broken with charset!=ISO-8859-1 ___ Python tracker

[issue17495] email.quoprimime.body_encode can't handle characters that encodings.quopri_codec can

2013-03-20 Thread Ross Patterson
Changes by Ross Patterson : -- resolution: -> duplicate status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue17495] email.quoprimime.body_encode can't handle characters that encodings.quopri_codec can

2013-03-20 Thread Ross Patterson
Ross Patterson added the comment: I thought I had tested it under 2.7, but I'm not entirely sure. -- versions: -Python 2.6, Python 2.7, Python 3.1, Python 3.2 ___ Python tracker ___

[issue17495] email.quoprimime.body_encode can't handle characters that encodings.quopri_codec can

2013-03-20 Thread R. David Murray
R. David Murray added the comment: There is a long history behind quoprime in the email package, and I don't know all of it. It is on my list of things to sort out (there is also potential duplication with the binascii module), but I haven't gotten to it yet. The issue you report, though is a

[issue17429] platform.platform() can throw Unicode error

2013-03-20 Thread Toshio Kuratomi
Toshio Kuratomi added the comment: Okay, new version of the patch with a unittest. Re: os-release; I don't believe the current code can handle that file. i\It changes format from a simple string (in most Linux distros) to key value pairs. We'll probably need an update to the code to deal wit

[issue5713] smtplib gets out of sync if server returns a 421 status

2013-03-20 Thread Kushal Das
Kushal Das added the comment: Here is a patch along with test case update which can be cleanly applied into default. -- nosy: +kushaldas Added file: http://bugs.python.org/file29507/issue5713.patch ___ Python tracker

[issue17495] email.quoprimime.body_encode can't handle characters that encodings.quopri_codec can

2013-03-20 Thread Ross Patterson
Ross Patterson added the comment: What is the reason that email.quoprimime doesn't use codecs.getencoder('quopri_codec') to do the actual character encoding? -- ___ Python tracker _

[issue9372] pulldom.DOMEventStream.__getitem__ is broken

2013-03-20 Thread Thomas Fenzl
Thomas Fenzl added the comment: I added a depreciation warning to __getitem__. Also added a testcase checking for it. As item access to DOMEventStream was never documented, no changes were made to the documentation. -- keywords: +patch nosy: +Thomas Fenzl Added file: http://bugs.python.

[issue17495] email.quoprimime.body_encode can't handle characters that encodings.quopri_codec can

2013-03-20 Thread Ross Patterson
New submission from Ross Patterson: When using email.charset.Charset to encode MIME bodie as quoted-printable, some characters that are encodable with the quopri_codec cause a KeyError in email.quoprimime: Python 3.3.0 (default, Oct 7 2012, 14:43:21) [GCC 4.6.3] on linux Type "help", "copyri

[issue17494] References to stack bottom are confusing

2013-03-20 Thread anatoly techtonik
New submission from anatoly techtonik: If stack is saved in list and printed to the screen, it will be printed as: [ root, second, last ] And the last elements is the bottom element. The documentation at http://docs.python.org/3/reference/datamodel.html#frame-objects refers "bottom eleme

[issue17493] Unskip SysModuleTest.test_recursionlimit_fatalerror on Windows

2013-03-20 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the report and the patch! -- assignee: -> ezio.melotti resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker __

[issue17493] Unskip SysModuleTest.test_recursionlimit_fatalerror on Windows

2013-03-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 54ee934400b3 by Ezio Melotti in branch '3.2': #17493: re-enable a test on Windows. Patch by Zachary Ware. http://hg.python.org/cpython/rev/54ee934400b3 New changeset 8d22b6ed44e6 by Ezio Melotti in branch '3.3': #17493: merge with 3.2. http://hg.py

[issue5550] [urllib.request]: Comparison of HTTP headers should be insensitive to the case

2013-03-20 Thread karl
karl added the comment: orsenthil, Added test for python 3.3 for testing the case insensitivity for has_header and get_header. The tests fail as it should. See issue-5550-test-1.patch I will make a patch to urllib/request.py to make it work. OK with you? -- keywords: +patch Added file

[issue17374] Remove restriction against Semaphore having a negative value

2013-03-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: > msg183614 in #12768? Exactly. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue17460] Remove the strict and related params completely removing the 0.9 support

2013-03-20 Thread Senthil Kumaran
Senthil Kumaran added the comment: Serhiy - the bad thing IMO would be 'enforcing a new feature in order to save people from using deprecated feature'. I am not against the addition of keyword only args for HTTPConnection in 3.4. A concrete need should be ascertained. Should we ask for python-

[issue17493] Unskip SysModuleTest.test_recursionlimit_fatalerror on Windows

2013-03-20 Thread Zachary Ware
New submission from Zachary Ware: With support.suppress_crash_popup(), we can stop skipping test_sys.SysModuleTest.test_recursionlimit_fatalerror on Windows. -- components: Tests files: test_sys_unskip.diff keywords: patch messages: 184765 nosy: ezio.melotti, zach.ware priority: normal

[issue17329] Document unittest.SkipTest

2013-03-20 Thread Ezio Melotti
Ezio Melotti added the comment: Now I get what you were trying to do. What I don't like is that now the patch splits the section about skipping in two separate parts, while it would be better to keep it together IMHO. You argument about having the "theory" first and the actual API later makes s

[issue17374] Remove restriction against Semaphore having a negative value

2013-03-20 Thread Ezio Melotti
Ezio Melotti added the comment: msg183614 in #12768? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue17435] threading.Timer.__init__() should use immutable argument defaults for args and kwargs

2013-03-20 Thread Denver Coneybeare
Denver Coneybeare added the comment: Thanks r.david.murray. I appreciate you taking the time to look at this issue! -- ___ Python tracker ___ ___

  1   2   >