python SUDS library

2010-03-03 Thread yamamoto
://torrage.com/api/torrage.wsdl' client = Client(url, cache=None) print client hash = client.service.cacheTorrent(encoded_doc) print hash [result] Suds ( https://fedorahosted.org/suds/ ) version: 0.4 (beta) build: R663-20100303 Service ( CacheService ) tns=urn:Torrage Prefixes (0) Ports (1

Re: SOAP 1.2 Python client ?

2010-03-03 Thread Waldemar Osuch
On Mar 3, 9:32 am, BlueBird p...@freehackers.org wrote: Hi, I am looking for a SOAP 1.2 python client. To my surprise, it seems that this does not exist. Does anybody know about this ? The following clients seem to be both unmaintained and still supporting only SOAP 1.1 : - SUDS suds

[issue8048] doctest assumes sys.displayhook hasn't been touched

2010-03-03 Thread Noam Raphael
New submission from Noam Raphael noamr...@gmail.com: Hello, This bug is the cause of a bug reported about DreamPie: https://bugs.launchpad.net/bugs/530969 DreamPie (http://dreampie.sourceforge.net) changes sys.displayhook so that values will be sent to the parent process instead of being

[issue8049] Wrong calculation result

2010-03-03 Thread dawton
New submission from dawton daw...@centrum.cz: I'm using Python 2.3 and today I found out, that Python gives following result: 2.05*60 122.99 while 2.05*10*6 123.0 Is there some explanation or is it a bug? Thanks for answer! -- messages: 100335 nosy: dawton severity:

[issue8049] Wrong calculation result

2010-03-03 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: Please read http://docs.python.org/tutorial/floatingpoint.html -- nosy: +eric.smith resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org

[issue8049] Wrong calculation result

2010-03-03 Thread dawton
dawton daw...@centrum.cz added the comment: thanks a lot! *d. __ Od: Eric Smith rep...@bugs.python.org Komu: daw...@centrum.cz Datum: 03.03.2010 10:32 Předmět: [issue8049] Wrong calculation result Eric Smith e...@trueblade.com

[issue7143] get_payload(decode=True) eats last newline

2010-03-03 Thread Joaquin Cuenca Abela
Joaquin Cuenca Abela e98cu...@gmail.com added the comment: Hi, RFC 2046, 5.1.1 refers to the CRLF that happens just before the boundary. It says nothing about an encoded CRLF. From Andreas example, if you have: Content-Type: text/plain; name=test.txt Content-Transfer-Encoding: base64

[issue8048] doctest assumes sys.displayhook hasn't been touched

2010-03-03 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox priority: - normal stage: - test needed versions: +Python 2.7, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8048

[issue7232] Support of 'with' statement fo TarFile class

2010-03-03 Thread Lars Gustäbel
Lars Gustäbel l...@gustaebel.de added the comment: Okay, it is done, see r78623 (trunk) and r78626 (py3k). Thanks to all for your work and support! -- resolution: - accepted status: open - closed ___ Python tracker rep...@bugs.python.org

[issue7232] Support of 'with' statement fo TarFile class

2010-03-03 Thread Lars Gustäbel
Changes by Lars Gustäbel l...@gustaebel.de: -- stage: patch review - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7232 ___ ___

[issue2973] _ssl compiler warnings

2010-03-03 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: Because we're in release candidate mode, I reverted the change to the release26-maint branch. It doesn't seem critical enough to sneak in between rc and final. Please do re-apply after 2.6.5 final is released though! -- nosy:

[issue8039] precedence rules for ternary operator

2010-03-03 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: For what it's worth, these are properly called Conditional Expressions. See PEP 308 for the gory details, including figuring out what the precedence is. It was news to me that the allowed syntax is slightly different in 2.x and 3.x. --

[issue8047] Serialiser in ElementTree returns unicode strings in Py3k

2010-03-03 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I'm not an ElementTree user, but that spelling (etree.tostring(encode=str), or even etree.tostring(encode=unicode)) strikes me as horrible. You don't encode to unicode, you *decode* to unicode. Thus the current Python3 interface works

[issue7143] get_payload(decode=True) eats last newline in base64 encoded payload

2010-03-03 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Ah, I misunderstood, and did not see that the newline in question was inside the base64 string. Thank you for pointing out my mistake. Would either of you like to propose a patch, including a test case? (I've removed 2.5 because it is

[issue7143] get_payload(decode=True) eats last newline in base64 encoded payload

2010-03-03 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- versions: -Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7143 ___ ___

[issue2973] _ssl compiler warnings

2010-03-03 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: barry Because we're in release candidate mode, barry I reverted the change to the release26-maint branch. Yeah, sorry. I realized that after backporting the fix to 2.6. barry Please do re-apply after 2.6.5 final is released

[issue8047] Serialiser in ElementTree returns unicode strings in Py3k

2010-03-03 Thread Stefan Behnel
Stefan Behnel sco...@users.sourceforge.net added the comment: I agree that the lxml API is somewhat clumsy here. I just mentioned it to show that there are already ways to do it in a backwards compatible way, so this change does two things: it breaks existing code, and it does so in a way that

[issue8050] smtplib SMTP.sendmail (TypeError: expected string or buffer)

2010-03-03 Thread Allison Vollmann
New submission from Allison Vollmann allisonv...@gmail.com: When call SMTP.sendmail (with simple sendmail local sent and with smtp auth), the follow exception be raised (with debug output): send: 'mail FROM:xxx size=5\r\n' reply: '250 2.1.0 Ok\r\n' reply: retcode (250); Msg: 2.1.0 Ok send:

[issue7808] test_bsddb3 leaks references

2010-03-03 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: Florent, Could you explain the changes to the unittest?. I don't understand them. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7808 ___

[issue8050] smtplib SMTP.sendmail (TypeError: expected string or buffer)

2010-03-03 Thread Eric Smith
Changes by Eric Smith e...@trueblade.com: -- components: +Library (Lib) -Regular Expressions type: crash - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8050 ___

[issue7808] test_bsddb3 leaks references

2010-03-03 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: Could you explain the changes to the unittest? The reference to self in the hooks were preventing the GC of the test case, as far as I understand, because it creates a cycle. When using weak references, there's no more dead cycles.

[issue8047] Serialiser in ElementTree returns unicode strings in Py3k

2010-03-03 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: My understanding is that backward compatibility, while nice to retain, was not considered a stopper for cleaning up interfaces in py3. Exactly how considered this change was, I have no idea, but as I said it does make sense to me. As

[issue8047] Serialiser in ElementTree returns unicode strings in Py3k

2010-03-03 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: With ET 1.3, the serializer ElementTree.write() should output bytes only. And the default encoding is still US-ASCII. The new behaviour is specific to the 3.x branch (since 3.0, r56841). Even if it is not fully backward compatible, I

[issue6560] socket sendmsg(), recvmsg() methods

2010-03-03 Thread David Watson
David Watson bai...@users.sourceforge.net added the comment: I just found that the IPv6 tests don't get skipped when IPv6 is available but disabled in the build - you can create IPv6 sockets, but not use them :/ This version fixes the problem. -- Added file:

[issue7540] urllib2 request does not update content length after new add_data

2010-03-03 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: This change breaks existing uses of Python 2.6.4. The mechanize library frequently re-initializes the data in the request without re-using the request. Applications (including tests) that use mechanize now break with this TypeError. The

[issue7540] urllib2 request does not update content length after new add_data

2010-03-03 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: To clarify: Multiple calls to add_data on a urllib2 request, when the request isn't being reused, are in no way invalidated by the problem initially reported. -- ___ Python tracker

[issue4036] Support bytes for subprocess.Popen()

2010-03-03 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: os.exec*() now accept bytes thanks to the PEP 383: see issue #4035. I updated my patch: it now includes tests \o/ It works on Linux. Can someone test it on Windows and/or Mac OS X? -- resolution: - fixed status: open -

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-03-03 Thread Vlastimil Brom
Vlastimil Brom vlastimil.b...@gmail.com added the comment: I just noticed a cornercase with the newly introduced grapheme matcher \X, if this is used in the character set: regex.findall(\X, abc) ['a', 'b', 'c'] regex.findall([\X], abc) Traceback (most recent call last): File input, line 1,

[issue7494] _lsprof (cProfile): Profiler.clear() keeps references to detroyed nodes

2010-03-03 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Sorry, but I'm unable to write a reliable unit test. You have to trust me: the patch fixes the issue and the issue does exist :-) Fixed by r78641 (trunk), r78642 (py3k), r78643 (3.1). Leave this issue open until the fix can be

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-03-03 Thread Matthew Barnett
Matthew Barnett pyt...@mrabarnett.plus.com added the comment: \X shouldn't be allowed in a character class because it's equivalent to \P{M}\p{M}*. It's a bug, now fixed in issue2636-20100304.zip. I'm not convinced about the set intersection and difference stuff. Isn't that overdoing it a

[issue4036] Support bytes for subprocess.Popen()

2010-03-03 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Oops, I realized that the second test is just useless. The argument is str, not bytes. I wanted to test Popen(bytes, shell=True). What is the right encoding to convert a string to bytes for the file system? --

[issue4036] Support bytes for subprocess.Popen()

2010-03-03 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: The list2cmdline function checks spaces, tabs, etc in line 521 of subprocess.py. In your first test case, it ends up checking if a string is contained in a bytes object, which is a TypeError for the str not supporting the buffer API. Would it

[issue8051] Python 2.7 alpha 4 show wrong version number on osx

2010-03-03 Thread Shashwat Anand
New submission from Shashwat Anand anand.shash...@gmail.com: Python 2.7 alpha 4 (trunk 78643) upon being invoked on terminal shows wrong version number.Since it is no longer alpha 3, it should show 'Python 2.7a4+' as version Shashwat-Anands-MacBook-Pro:Misc l0nwlf$ python2.7 Python 2.7a3+

[issue8051] Python 2.7 alpha 4 show wrong version number on osx

2010-03-03 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: We haven't released 2.7 alpha 4, so I wouldn't expect anything to have that version. The + indicates it's after the release. -- nosy: +benjamin.peterson resolution: - invalid status: open - closed

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-03-03 Thread Vlastimil Brom
Vlastimil Brom vlastimil.b...@gmail.com added the comment: Actually I had that impression too, but I was mainly surprised with these requirements being on the lowest level of the unicode support. Anyway, maybe the relevance of these guidelines for the real libraries is is lower, than I

[issue8051] Python 2.7 alpha 4 show wrong version number on osx

2010-03-03 Thread Shashwat Anand
Shashwat Anand anand.shash...@gmail.com added the comment: Python 2.7 alpha 4 will be released on 2010-03-06 according to PEP 0373. The Misc/NEWS (http://svn.python.org/projects/python/trunk/Misc/NEWS) mentions : What's New in Python 2.7 alpha 4? Since this is almost _the python 2.7 alpha 4_,

[issue7540] urllib2 request does not update content length after new add_data

2010-03-03 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: I'd like to hear at least one other say-so (which can be yours if you agree this is the right thing), so there's more recognized consensus on the matter. We also need an explicit go-ahead from Barry as the release manager. At this point, the

[issue4036] Support bytes for subprocess.Popen()

2010-03-03 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: On Windows, command lines shouldn't need to be encoded in any encoding. Instead, the unicode string should be passed to the system call as-is. -- ___ Python tracker rep...@bugs.python.org

[issue5277] email message.get_params() and related methods sometimes fail.

2010-03-03 Thread Ryan Coyner
Ryan Coyner rcoy...@gmail.com added the comment: Okay, bug confirmed: m = email.message_from_string('Content-Disposition: inline; filename*0=foo \\test; filename*1=\\bar') m.get_filename() 'foo test; filename*1=bar' And here is the result with the patch applied: m =

[issue8053] test_thread fails on Windows

2010-03-03 Thread Martin v . Löwis
New submission from Martin v. Löwis mar...@v.loewis.de: test_thread currently fails, then hangs on Windows with this output: test_thread Unhandled exception in thread started by function thread1 at 0x0182E4F0 Traceback (most recent call last): File C:\Python26\lib\test\test_thread.py, line

<    1   2   3