[issue17487] wave.Wave_read.getparams should be more user friendly

2013-03-20 Thread Popa Claudiu
Popa Claudiu added the comment: Updated the patch with test for .getparams. -- Added file: http://bugs.python.org/file29499/wave_17487.patch ___ Python tracker ___ __

[issue17484] add tests for getpass

2013-03-20 Thread Thomas Fenzl
Changes by Thomas Fenzl : Added file: http://bugs.python.org/file29500/getpass_tests-3.diff ___ Python tracker ___ ___ Python-bugs-list mailin

[issue16692] Support TLS 1.1 and TLS 1.2

2013-03-20 Thread Michele Orrù
Michele Orrù added the comment: synced with tip > This decorator looks like it would be impressed in a simpler way, > using unittest.skipIf (or unittest.skipUnless). > It would be nice to check that connecting succeeds from a > TLSv1_1 client on a SSLv23 server. yep, thanks. > Not sure why y

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

2013-03-20 Thread Ramchandra Apte
Ramchandra Apte added the comment: __getstate__ is for pickling instances [0], __reduce__ is for pickling the object itself [1] ^0 http://docs.python.org/2/library/pickle.html#object.__getstate__ ^1 http://docs.python.org/2/library/pickle.html#object.__reduce__ -- nosy: +Ramchandra Apt

[issue17053] pydoc should use inspect.signature instead of inspect.getfullargspec

2013-03-20 Thread Ronald Oussoren
Ronald Oussoren added the comment: * renamed "render" method of inspect.Parameter and inspect.Signature to "_render" to avoid changing the public API * updated patch for current tip (I got a merge conflict when pulling in the tip due to a patch for Lib/test/test_pydoc.py) -- Added f

[issue12768] docstrings for the threading module

2013-03-20 Thread moijes12
moijes12 added the comment: Hi Since this is a duplicate of #17375, is the patch not going to make to the review stage at all? -- ___ Python tracker ___ ___

[issue17317] Benchmark driver should calculate actual benchmark count in -h

2013-03-20 Thread Anuj Gupta
Anuj Gupta added the comment: The asterisk is visible now, Brett :) Please commit the patch at your convenience. -- ___ Python tracker ___ __

[issue17323] Disable [X refs, Y blocks] ouput in debug builds

2013-03-20 Thread Ezio Melotti
Ezio Melotti added the comment: Attached updated patch with docs and tests. I changed the function to do the equivalent of "if sys._xoptions.get('showrefcount', False):" as proposed in msg183608. Adding -X showrefcount to non-debug builds could be covered in a separate issue. Cleaning up the tes

Re: [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
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 cross-platform niceness, and removes the

[issue2052] Allow changing difflib._file_template character encoding.

2013-03-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: After thinking about it more, the real problem is that the charset setting must match the chars used and how they re encoded, so no one setting is right for all uses. An alternative to changing the default in existing versions is to at least document what it i

[issue17374] Remove restriction against Semaphore having a negative value

2013-03-20 Thread Charles-François Natali
Charles-François Natali added the comment: >> POSIX semaphore don't support negative initial value. > > It was an early design decision to go with the Java threading model rather > than the POSIX model. The Java API supports negative initial values -- the > same Dijkstra's original P() and V()

[issue13477] tarfile module should have a command line

2013-03-20 Thread STINNER Victor
STINNER Victor added the comment: I don't think that we need to support compressing/decompressing using the standard input/output. 2013/3/20 Brandon Craig Rhodes : > > Brandon Craig Rhodes added the comment: > > Larry Hastings writes: > >> Huh. tar *can* infer it from the data itself. On the

[issue16475] Support object instancing and recursion in marshal

2013-03-20 Thread Ezio Melotti
Ezio Melotti added the comment: I'm getting two failures after this: == ERROR: testRaising (test.test_exceptions.ExceptionTests) -- Traceback (most recent call l

[issue2052] Allow changing difflib._file_template character encoding.

2013-03-20 Thread Ezio Melotti
Ezio Melotti added the comment: I haven't looked at the code, but if an HTML page is generated it should probably be updated to use HTML5 and . -- ___ Python tracker ___

[issue12768] docstrings for the threading module

2013-03-20 Thread Eli Bendersky
Eli Bendersky added the comment: moijes12, since Raymond went ahead and committed a patch to 2.7 in #17375, I think patches to other versions should also be based on his patch. The most constructive thing you can do at this point is review his changes in 2.7 and help porting them to 3.x. Also,

[issue17374] Remove restriction against Semaphore having a negative value

2013-03-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: I also don't think "Java does it" is a good design justification anymore. Python's threading model is the Python threading model, even though it may have been inspired by Java at the start :-) -- title: Remove restriction against Semaphore having a negat

[issue13477] tarfile module should have a command line

2013-03-20 Thread Lars Gustäbel
Lars Gustäbel added the comment: I'd like to re-emphasize that it is best to keep the whole thing as simple and straight-forward as possible. Offer some basic operations and that's it. Although I am pretty accustomed to the original tar command line, I think we should copy zipfile's interface.

[issue17374] Remove restriction against Semaphore having a negative value

2013-03-20 Thread Ezio Melotti
Ezio Melotti added the comment: You might want to rephrase the module docstring of Lib/threading.py then :) -- nosy: +ezio.melotti ___ Python tracker ___

[issue17465] Gut devinabox

2013-03-20 Thread Brett Cannon
Brett Cannon added the comment: OK, so I think supporting builds, runs, and reports is fine to start, but trying to get the setup step for Distribute working would be a bonus feature if we wanted to make this something we ask people to use on their own w/o guidance. -- ___

[issue17374] Remove restriction against Semaphore having a negative value

2013-03-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: > You might want to rephrase the module docstring of Lib/threading.py > then :) I think I already suggested rephrasing it but apparently it was lost somewhere. -- ___ Python tracker

[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 ___ ___

[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://

[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

[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

[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-

[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

[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

[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

[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 __

[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

[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

[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
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 _

[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

[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

[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

[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 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 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

[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

[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

[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 _

[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 __

[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:

[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 ___

[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

[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

[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

[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 ___

[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

[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

[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

[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

[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

[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

[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

[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

[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 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

[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

[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

[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

[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

[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

[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 __

[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 ___ ___

[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

[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

[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

[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 ___ _

[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

[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

[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

[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

[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

[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

[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

[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

[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
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 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 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

[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.

[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

[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

[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

[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

[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

[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

[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: 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

[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

[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

[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

[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

[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

[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

[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

[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 -

  1   2   >