Re: process.popen with Japanese args = UTF8 JAVA

2014-03-09 Thread Ben Finney
Jun Tanaka tna...@gmail.com writes: I have tried to process.popen to run java program with Japanese language. test.java is compiled with utf8 '日本語' below means Japanese in Japanese. but it does not work. What are you expecting to happen, and what happens instead? What error (if any) is

Re: How is unicode implemented behind the scenes?

2014-03-09 Thread wxjmfauth
Le dimanche 9 mars 2014 03:40:28 UTC+1, MRAB a écrit : On 2014-03-09 02:08, Dan Stromberg wrote: OK, I know that Unicode data is stored in an encoding on disk. But how is it stored in RAM? I realize I shouldn't write code that depends on any relevant implementation

Re: process.popen with Japanese args = UTF8 JAVA

2014-03-09 Thread Cameron Simpson
On 09Mar2014 16:52, Jun Tanaka tna...@gmail.com wrote: I have tried to process.popen to run java program with Japanese language. test.java is compiled with utf8 '日本語' below means Japanese in Japanese. but it does not work. Anyone who knows this matter well. Please help. Jun python code

Re: Balanced trees

2014-03-09 Thread Marko Rauhamaa
Roy Smith r...@panix.com: Marko Rauhamaa ma...@pacujo.net wrote: If I had to choose between a hash table and AVL (or RB) tree in the standard library, it would definitely have to be the latter. It is more generally usable, has fewer corner cases and probably has an equal performance even

Re: Balanced trees

2014-03-09 Thread Marko Rauhamaa
Dan Stromberg drsali...@gmail.com: On Sat, Mar 8, 2014 at 1:21 PM, Marko Rauhamaa ma...@pacujo.net wrote: If I had to choose between a hash table and AVL (or RB) tree in the standard library, it would definitely have to be the latter. It is more generally usable, has fewer corner cases and

Re: Tuples and immutability

2014-03-09 Thread Marko Rauhamaa
Ian Kelly ian.g.ke...@gmail.com: In my view the second one is wrong. a += b should be understood as being equivalent to a = a + b, but with the *possible* and by no means guaranteed optimization that the operation may be performed in-place. Some call it an optimization, others call it a side

Re: How is unicode implemented behind the scenes?

2014-03-09 Thread Rustom Mody
On Sunday, March 9, 2014 2:09:32 PM UTC+5:30, wxjm...@gmail.com wrote: Le dimanche 9 mars 2014 03:40:28 UTC+1, MRAB a écrit : On 2014-03-09 02:08, Dan Stromberg wrote: OK, I know that Unicode data is stored in an encoding on disk. But how is it stored in RAM? I realize I shouldn't

[RELEASED] Python 3.3.5

2014-03-09 Thread Georg Brandl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On behalf of the Python development team, I'm very happy to announce the release of Python 3.3.5. Python 3.3.5 includes fixes for these important issues: * a 3.3.4 regression in zipimport (see http://bugs.python.org/issue20621) * a 3.3.4 regression

Re: Problem using py-bt, py-locals, etc. during GDB debugging [solved]

2014-03-09 Thread Wesley
I hit a problem alike yours. Cannot fix according your method. Here is snippet: root@localhost python]# gdb python 40290 GNU gdb (GDB) 7.7 Copyright (C) 2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are

Re: How is unicode implemented behind the scenes?

2014-03-09 Thread Mark Lawrence
On 09/03/2014 10:32, Rustom Mody wrote: On Sunday, March 9, 2014 2:09:32 PM UTC+5:30, wxjm...@gmail.com wrote: Le dimanche 9 mars 2014 03:40:28 UTC+1, MRAB a écrit : On 2014-03-09 02:08, Dan Stromberg wrote: OK, I know that Unicode data is stored in an encoding on disk. But how is it stored

Re: gdb unable to read python frame information

2014-03-09 Thread Mark Lawrence
On 09/03/2014 03:49, Wesley wrote: Anybody has suggestions? This really makes me crazy... What makes you crazy? You keep sending messages with no context. We might be smart, but we're not (yet :) mind readers. -- My fellow Pythonistas, ask not what our language can do for you, ask what

image processing in python and opencv

2014-03-09 Thread Varsha Holla
i have no idea how to retrieve indexed images stored in ordered dictionary, using its values like : blue,green,red mean along with contrast, energy, homogeneity and correlation. as i have calculated the euclidean distance and i don't know how to display the images which are similar. thanks in

Re: Tuples and immutability

2014-03-09 Thread Joshua Landau
On 28 February 2014 14:43, Chris Angelico ros...@gmail.com wrote: On Sat, Mar 1, 2014 at 1:41 AM, Joshua Landau jos...@landau.ws wrote: Would it be better to add a check here, such that if this gets raised to the top-level it includes a warning (Addition was inplace; variable probably mutated

Re: Tuples and immutability

2014-03-09 Thread Chris Angelico
On Mon, Mar 10, 2014 at 4:54 AM, Joshua Landau jos...@landau.ws wrote: On 28 February 2014 14:43, Chris Angelico ros...@gmail.com wrote: On Sat, Mar 1, 2014 at 1:41 AM, Joshua Landau jos...@landau.ws wrote: Would it be better to add a check here, such that if this gets raised to the top-level

Re: gdb unable to read python frame information

2014-03-09 Thread Terry Reedy
On 3/9/2014 10:57 AM, Mark Lawrence wrote: On 09/03/2014 03:49, Wesley wrote: Anybody has suggestions? Don't expect crazy things. Send suggestions to the right place (a gdb list for a gdb enhancement). This really makes me crazy... What makes you crazy? The supposed fact that GnuDeBug

Re: Problem using py-bt, py-locals, etc. during GDB debugging [solved]

2014-03-09 Thread Terry Reedy
On 3/9/2014 10:46 AM, Wesley wrote: I hit a problem alike yours. Cannot fix according your method. Here is snippet: root@localhost python]# gdb python 40290 GNU gdb (GDB) 7.7 Copyright (C) 2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later

Re: image processing in python and opencv

2014-03-09 Thread Gary Herron
On 03/09/2014 10:56 AM, Varsha Holla wrote: i have no idea how to retrieve indexed images stored in ordered dictionary, using its values like : blue,green,red mean along with contrast, energy, homogeneity and correlation. as i have calculated the euclidean distance and i don't know how to

Re: Tuples and immutability

2014-03-09 Thread Joshua Landau
On 9 March 2014 18:13, Chris Angelico ros...@gmail.com wrote: I think I see what you're saying here. But ignore top-level; this should just be a part of the exception message, no matter what. I don't think I was clear, but yes. That. What you're saying is that this should notice that it's

Re: Tuples and immutability

2014-03-09 Thread Chris Angelico
On Mon, Mar 10, 2014 at 6:57 AM, Joshua Landau jos...@landau.ws wrote: I would probably implement it closer to home. Inside tuple.__getitem__, there would be something like if context_is_augmented_assignment(): raise TypeError(message+warning) else: raise

Re: Balanced trees

2014-03-09 Thread Dan Stromberg
On Sun, Mar 9, 2014 at 1:27 AM, Marko Rauhamaa ma...@pacujo.net wrote: Dan Stromberg drsali...@gmail.com: On Sat, Mar 8, 2014 at 1:21 PM, Marko Rauhamaa ma...@pacujo.net wrote: If I had to choose between a hash table and AVL (or RB) tree in the standard library, it would definitely have to be

Re: Balanced trees

2014-03-09 Thread Marko Rauhamaa
Dan Stromberg drsali...@gmail.com: This is not just a detail: O(1) tends to be beat O(logn) pretty easily for large n. There is no O(1) hash table. Marko -- https://mail.python.org/mailman/listinfo/python-list

Making Labels from python

2014-03-09 Thread Ulrich Goebel
Hallo, has anybody an idea how to make small formated documents redy to print with python? I would like to print address labels as firstname lastname street and number cip and city The best should be to form a PDF and send it to the label printer. So the PDF could be given the

Re: Balanced trees

2014-03-09 Thread Dan Stromberg
On Sun, Mar 9, 2014 at 2:32 PM, Marko Rauhamaa ma...@pacujo.net wrote: Dan Stromberg drsali...@gmail.com: This is not just a detail: O(1) tends to be beat O(logn) pretty easily for large n. There is no O(1) hash table. http://stackoverflow.com/questions/2771368/can-hash-tables-really-be-o1

Re: Balanced trees

2014-03-09 Thread Marko Rauhamaa
Dan Stromberg drsali...@gmail.com: On Sun, Mar 9, 2014 at 2:32 PM, Marko Rauhamaa ma...@pacujo.net wrote: There is no O(1) hash table. http://stackoverflow.com/questions/2771368/can-hash-tables-really-be-o1 Please elaborate. Marko -- https://mail.python.org/mailman/listinfo/python-list

Re: Tuples and immutability

2014-03-09 Thread Gregory Ewing
Ian Kelly wrote: In my view the second one is wrong. a += b should be understood as being equivalent to a = a + b, but with the *possible* and by no means guaranteed optimization that the operation may be performed in-place. This interpretation is at odds with the Language Reference, section

Re: Making Labels from python

2014-03-09 Thread Gary Herron
On 03/09/2014 02:29 PM, Ulrich Goebel wrote: Hallo, has anybody an idea how to make small formated documents redy to print with python? I would like to print address labels as firstname lastname street and number cip and city The best should be to form a PDF and send it to the

Re: Balanced trees

2014-03-09 Thread Dan Stromberg
On Sun, Mar 9, 2014 at 2:43 PM, Marko Rauhamaa ma...@pacujo.net wrote: Dan Stromberg drsali...@gmail.com: On Sun, Mar 9, 2014 at 2:32 PM, Marko Rauhamaa ma...@pacujo.net wrote: There is no O(1) hash table. http://stackoverflow.com/questions/2771368/can-hash-tables-really-be-o1 Please

Re: Making Labels from python

2014-03-09 Thread Ben Finney
Ulrich Goebel m...@fam-goebel.de writes: has anybody an idea how to make small formated documents redy to print with python? The most reliable “ready to print” document formats are: * plain text * PDF All others, AFAIK, are significantly less reliable for that purpose. The “ReportLab PDF

Re: Balanced trees

2014-03-09 Thread Marko Rauhamaa
Dan Stromberg drsali...@gmail.com: On Sun, Mar 9, 2014 at 2:43 PM, Marko Rauhamaa ma...@pacujo.net wrote: There is no O(1) hash table. [...] it's still amortized O(1). So we are in perfect agreement. Hash tables are a useful family of techniques but involve quite a bit of cost/benefit

Re: Making Labels from python

2014-03-09 Thread Irmen de Jong
On 9-3-2014 22:29, Ulrich Goebel wrote: Hallo, has anybody an idea how to make small formated documents redy to print with python? I would like to print address labels as firstname lastname street and number cip and city The best should be to form a PDF and send it to the

Re: Making Labels from python

2014-03-09 Thread Marko Rauhamaa
Ben Finney ben+pyt...@benfinney.id.au: The most reliable “ready to print” document formats are: * plain text * PDF You might also consider PostScript. It can be emitted from any programming language without any special support (and any special support would probably only get in the way). A

Re: Making Labels from python

2014-03-09 Thread Terry Reedy
On 3/9/2014 5:29 PM, Ulrich Goebel wrote: Hallo, has anybody an idea how to make small formated documents redy to print with python? I would like to print address labels as firstname lastname street and number cip and city The best should be to form a PDF and send it to the label

Re: Making Labels from python

2014-03-09 Thread Ulrich Goebel
Many thanks for the moment. I will try reportlab the next days. Am 09.03.2014 22:29, schrieb Ulrich Goebel: Hallo, has anybody an idea how to make small formated documents redy to print with python? I would like to print address labels as firstname lastname street and number cip

Re: Tuples and immutability

2014-03-09 Thread Terry Reedy
On 3/9/2014 6:03 PM, Gregory Ewing wrote: Ian Kelly wrote: In my view the second one is wrong. a += b should be understood as being equivalent to a = a + b, but with the *possible* and by no means guaranteed optimization that the operation may be performed in-place. This interpretation is at

Re: better and user friendly IDE recommended?

2014-03-09 Thread Martin Schöön
Den 2014-02-14 skrev Martin Schöön martin.sch...@gmail.com: Den 2014-02-14 skrev Rustom Mody rustompm...@gmail.com: On Friday, February 14, 2014 2:57:13 AM UTC+5:30, Martin Schöön wrote: Den 2013-09-17 skrev rusi On Wednesday, September 11, 2013 7:44:04 PM UTC+5:30, mnishpsyched wrote:

Re: Tuples and immutability

2014-03-09 Thread Ian Kelly
On Sun, Mar 9, 2014 at 4:03 PM, Gregory Ewing greg.ew...@canterbury.ac.nz wrote: Ian Kelly wrote: In my view the second one is wrong. a += b should be understood as being equivalent to a = a + b, but with the *possible* and by no means guaranteed optimization that the operation may be

Re: better and user friendly IDE recommended?

2014-03-09 Thread Michael Weylandt
On Mar 9, 2014, at 19:58, Michael Weylandt michael.weyla...@gmail.com wrote: On Mar 9, 2014, at 19:22, Martin Schöön martin.sch...@gmail.com wrote: What you don't get as far as I can see is code completion, syntax highlighting etc since Emacs is doing this with respect to Orgmode and not

Re: better and user friendly IDE recommended?

2014-03-09 Thread Michael Weylandt
On Mar 9, 2014, at 19:22, Martin Schöön martin.sch...@gmail.com wrote: What you don't get as far as I can see is code completion, syntax highlighting etc since Emacs is doing this with respect to Orgmode and not the programming language you use. Put (setq org-src-fontify-natively t) In

Re: Balanced trees

2014-03-09 Thread Ian Kelly
On Sun, Mar 9, 2014 at 4:08 PM, Dan Stromberg drsali...@gmail.com wrote: On Sun, Mar 9, 2014 at 2:43 PM, Marko Rauhamaa ma...@pacujo.net wrote: Dan Stromberg drsali...@gmail.com: On Sun, Mar 9, 2014 at 2:32 PM, Marko Rauhamaa ma...@pacujo.net wrote: There is no O(1) hash table.

Re: gdb unable to read python frame information

2014-03-09 Thread Wesley
What's information do you want? I told the OS, gdb and python version. And my operation steps. What do you want more, then, I can type here. Wesley -- https://mail.python.org/mailman/listinfo/python-list

Re: gdb unable to read python frame information

2014-03-09 Thread Mark Lawrence
On 10/03/2014 01:06, Wesley wrote: What's information do you want? I told the OS, gdb and python version. And my operation steps. What do you want more, then, I can type here. Wesley Context, you just keep sending messages like the above which on its own is meaningless. Why should

Re: Tuples and immutability

2014-03-09 Thread Steven D'Aprano
On Sun, 09 Mar 2014 17:42:42 -0600, Ian Kelly wrote: On Sun, Mar 9, 2014 at 4:03 PM, Gregory Ewing greg.ew...@canterbury.ac.nz wrote: Note that it says when possible, not if the implementation feels like it. That's quite vague, and not much stronger a guarantee than maybe. It's

Re: gdb unable to read python frame information

2014-03-09 Thread Wesley
If you don't read the loop from the top, and don't tell me exactly what you want by just keep saying context, please ingore this post. Thanks. Wesley 在 2014年3月10日星期一UTC+8上午9时48分41秒,Mark Lawrence写道: On 10/03/2014 01:06, Wesley wrote: What's information do you want? I told the OS,

Re: gdb unable to read python frame information

2014-03-09 Thread Mark Lawrence
On 10/03/2014 02:54, Wesley wrote: If you don't read the loop from the top, and don't tell me exactly what you want by just keep saying context, please ingore this post. Thanks. Wesley 在 2014年3月10日星期一UTC+8上午9时48分41秒,Mark Lawrence写道: On 10/03/2014 01:06, Wesley wrote: What's information do

Windows installation problem with 3.3.5

2014-03-09 Thread Mark Lawrence
It looks as if the upgrade from 3.3.4 to 3.3.5 has stolen my copies of py.exe and pyw.exe from c:\windows. Before I raise an issue on the bug tracker could someone please confirm this, as it wouldn't be the first time I've managed to screw something up. -- My fellow Pythonistas, ask not what

Re: Balanced trees

2014-03-09 Thread Steven D'Aprano
On Sun, 09 Mar 2014 18:04:46 -0600, Ian Kelly wrote: On Sun, Mar 9, 2014 at 4:08 PM, Dan Stromberg drsali...@gmail.com wrote: On Sun, Mar 9, 2014 at 2:43 PM, Marko Rauhamaa ma...@pacujo.net wrote: Dan Stromberg drsali...@gmail.com: On Sun, Mar 9, 2014 at 2:32 PM, Marko Rauhamaa

Re: Balanced trees

2014-03-09 Thread Steven D'Aprano
On Sun, 09 Mar 2014 23:32:54 +0200, Marko Rauhamaa wrote: Dan Stromberg drsali...@gmail.com: This is not just a detail: O(1) tends to be beat O(logn) pretty easily for large n. There is no O(1) hash table. Of course there are. While it is true that hash tables *in general* are not

golang OO removal, benefits. over python?

2014-03-09 Thread flebber
I was wondering if a better programmer than I could explain if the removal of OO features in golang really does offer an great benefit over python. An article I was reading ran through a brief overview of golang in respect of OO features

Re: golang OO removal, benefits. over python?

2014-03-09 Thread Rustom Mody
On Monday, March 10, 2014 10:19:20 AM UTC+5:30, flebber wrote: I was wondering if a better programmer than I could explain if the removal of OO features in golang really does offer an great benefit over python. That's a strange locution: You are suggesting that go had OOP and it was removed --

[issue20735] Documentation: remove stringprep deprecation mark in docs

2014-03-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset fadde95c134e by Georg Brandl in branch '2.7': Closes #20735: remove erroneous deprecated marker from stringprep docs http://hg.python.org/cpython/rev/fadde95c134e -- ___ Python tracker

[issue20854] multiprocessing.managers.Server: problem with returning proxy of registered object

2014-03-09 Thread Allis Tauri
Allis Tauri added the comment: Thanks for the suggestion. method_to_typeid and create_method are documented features, so I don't see why not. It does the trick in a cleaner way than my workaround: a metaclass for MyClass that just checks the arguments before creating a new instance. It just

[issue11259] asynchat does not check if terminator is negative integer

2014-03-09 Thread Devin Cook
Changes by Devin Cook devin.c.c...@gmail.com: Removed file: http://bugs.python.org/file29202/asynchat_tip.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11259 ___

[issue11259] asynchat does not check if terminator is negative integer

2014-03-09 Thread Devin Cook
Devin Cook added the comment: updating the patch to the current tip -- Added file: http://bugs.python.org/file34310/asynchat_tip.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11259 ___

[issue20145] unittest.assert*Regex functions should verify that expected_regex has a valid type

2014-03-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: A simple way of checking is to actually re.compile(regex), I think. It should automatically raise TypeError on invalid input. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org

[issue20874] Tutorial section on starting python is out of date

2014-03-09 Thread R. David Murray
New submission from R. David Murray: http://docs.python.org/dev/tutorial/interpreter.html does not talk about the fact that completion and history are now enabled by default on systems that support readline, and instead says that the command line editing features are usually not very

[issue20145] unittest.assert*Regex functions should verify that expected_regex has a valid type

2014-03-09 Thread R. David Murray
R. David Murray added the comment: Heh. If unittest had used duck typing instead of isinstance for its string-to-regex conversion check in the first place, this issue wouldn't even have come up. -- nosy: +r.david.murray ___ Python tracker

[issue17846] Building Python on Windows - Supplementary info

2014-03-09 Thread Kathleen Weaver
Kathleen Weaver added the comment: Since I am new to Python, I'll take a look at the documentation and see if I can help. -- nosy: +kathweaver ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17846

[issue20266] Bring Doc/faq/windows up to date

2014-03-09 Thread Kathleen Weaver
Kathleen Weaver added the comment: Kathleen Weaver -- am beginning to Python but comfortable with Windows so will look at this. -- nosy: +kathweaver ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20266

[issue19873] There is a duplicate function in Lib/test/test_pathlib.py

2014-03-09 Thread Jessica McKellar
Jessica McKellar added the comment: Thanks for the patch, NAVNEET.SUMAN! The patch implements ezio.melotti's proposal and applies cleanly without test regressions for me locally. = patch review -- nosy: +jesstess stage: needs patch - patch review

[issue20596] Support for alternate wcstok syntax for Windows compilers

2014-03-09 Thread Jeffrey Armstrong
Jeffrey Armstrong added the comment: I didn't receive any feedback on the last patch from 2014-02-12. Is this issue effectively dead? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20596

[issue19363] Python 2.7's future_builtins.map is not compatible with Python 3's map

2014-03-09 Thread Jessica McKellar
Jessica McKellar added the comment: Thanks for the patch, Gareth.Rees! The patch applies cleanly and the docs build cleanly with it. I visually inspected the addition in the built HTML docs and it looks good. = patch review -- keywords: +needs review -patch nosy: +jesstess stage:

[issue19363] Python 2.7's future_builtins.map is not compatible with Python 3's map

2014-03-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 16c5d7c289c6 by Benjamin Peterson in branch '2.7': note that future_builtin's map is not quite like python 3's (closes #19363) http://hg.python.org/cpython/rev/16c5d7c289c6 -- nosy: +python-dev resolution: - fixed stage: patch review -

[issue18775] name attribute for HMAC

2014-03-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset dde3fb877b07 by R David Murray in branch 'default': whatsnew: hmac conforms to pep 247. (#18775) http://hg.python.org/cpython/rev/dde3fb877b07 -- ___ Python tracker rep...@bugs.python.org

[issue14455] plistlib unable to read json and binary plist files

2014-03-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 728f626ee337 by R David Murray in branch 'default': whatsnew: plistlib new api and deprecations (#14455) http://hg.python.org/cpython/rev/728f626ee337 -- ___ Python tracker rep...@bugs.python.org

[issue18138] ctx.load_verify_locations(cadata)

2014-03-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8e3b3b4a90fb by R David Murray in branch 'default': whatsnew: SSLcontext.load_verify_locations cadata argument (#18138) http://hg.python.org/cpython/rev/8e3b3b4a90fb -- status: pending - open ___ Python

[issue5845] rlcompleter should be enabled automatically

2014-03-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 69c451851c71 by R David Murray in branch 'default': whatsnew: sys.__interactivehook__. (#5845) http://hg.python.org/cpython/rev/69c451851c71 -- ___ Python tracker rep...@bugs.python.org

[issue17276] HMAC: deprecate default hash

2014-03-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset c10ec51a2ce4 by R David Murray in branch 'default': whatsnew: hmac *digestmod* accepts strings, and default is deprecated. (#17276) http://hg.python.org/cpython/rev/c10ec51a2ce4 -- ___ Python tracker

[issue18379] SSLSocket.getpeercert(): OCSP and CRL DP URIs

2014-03-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7885876b6503 by R David Murray in branch 'default': whatsnew: SSLSocket.getpeercert new values returned. (#18379) http://hg.python.org/cpython/rev/7885876b6503 -- ___ Python tracker

[issue19953] __iadd__() doc not strictly correct

2014-03-09 Thread priya
Changes by priya priyapappachan...@gmail.com: Added file: http://bugs.python.org/file34311/my.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19953 ___

[issue20871] Testing: Push email/policy.py line coverage to 100%.

2014-03-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8f7486263212 by R David Murray in branch 'default': #20871: improve email policy test coverage. http://hg.python.org/cpython/rev/8f7486263212 -- nosy: +python-dev ___ Python tracker

[issue20871] Testing: Push email/policy.py line coverage to 100%.

2014-03-09 Thread R. David Murray
R. David Murray added the comment: Thanks, Milan. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20871

[issue20875] Typo in gzip._PaddedFile

2014-03-09 Thread Claudiu.Popa
New submission from Claudiu.Popa: There's a typo in gzip._PaddedFile.prepend. Here's a snippet to reproduce it. import gzip x=gzip.open(a.gz) x.fileobj.prepend() Traceback (most recent call last): File stdin, line 1, in module File /tank/libs/cpython/Lib/gzip.py, line 99, in prepend

[issue20875] Typo in gzip._PaddedFile

2014-03-09 Thread Claudiu.Popa
Claudiu.Popa added the comment: Patch attached. -- keywords: +patch Added file: http://bugs.python.org/file34312/gzip_typo.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20875 ___

[issue19953] __iadd__() doc not strictly correct

2014-03-09 Thread R. David Murray
R. David Murray added the comment: I wonder if it would be worth adding a sentence that says, In certain situations, augmented assignment can result in unexpected errors (see http://docs.python.org/3/faq/programming.html#id44). -- nosy: +r.david.murray

[issue20627] Add context manager support to xmlrpc.client.ServerProxy

2014-03-09 Thread Jessica McKellar
Jessica McKellar added the comment: Thanks for the patch, Claudiu.Popa! I noticed one tiny thing, which is that it introduced some trailing whitespace. I've uploaded a trivial change to your patch that removes the whitespace. * The patch applies cleanly. * The docs build cleanly with the

[issue20876] python -m test test_pathlib fails

2014-03-09 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- type: crash - behavior versions: +Python 3.4 -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20876 ___

[issue20627] Add context manager support to xmlrpc.client.ServerProxy

2014-03-09 Thread Claudiu.Popa
Claudiu.Popa added the comment: Cool, thanks, Jessica! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20627 ___ ___ Python-bugs-list mailing

[issue19953] __iadd__() doc not strictly correct

2014-03-09 Thread priya
Changes by priya priyapappachan...@gmail.com: Added file: http://bugs.python.org/file34314/my.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19953 ___

[issue20782] base64 module docs do not use the terms 'bytes' and 'string' consistently.

2014-03-09 Thread Milan Oberkirch
Milan Oberkirch added the comment: changed 'bytes' and 'byte string' to `bytes-like object` and reviewed usage of 'byte' and 'string' (the letter made sense to me at some points, e.g. something like ... altchar is a string with two or less letters ...). -- keywords: +patch nosy:

[issue4142] smtplib doesn't clear helo/ehlo flags on quit

2014-03-09 Thread Varun Sharma
Varun Sharma added the comment: I have added a patch and it's test case as per martin's suggestions. Now function close() resets the attributes :sock, default_port, ehlo_msg, ehlo_resp, helo_resp, source_address But it does *not* reset : debuglevel, does_esmtp,esmtp_features, file,

[issue18456] Documentation for PyDict_Update is incorrect

2014-03-09 Thread Jill M
Changes by Jill M jillian.mun...@gmail.com: -- nosy: +Jill.M ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18456 ___ ___ Python-bugs-list mailing

[issue4849] instantiating and populating xml.dom.minidom.Element is cumbersome

2014-03-09 Thread Jessica McKellar
Jessica McKellar added the comment: Thanks for the patch, Alexandre.Zani! -- keywords: +needs review nosy: +jesstess versions: +Python 3.5 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4849

[issue4849] instantiating and populating xml.dom.minidom.Element is cumbersome

2014-03-09 Thread Jessica McKellar
Jessica McKellar added the comment: Sorry, stray submit, one more time: Thanks for the patch, Alexandre.Zani! Your patch had some whitespace issues according to `make patchcheck` (see http://docs.python.org/devguide/patch.html#generation for details). I've uploaded a trivial update to your

[issue4322] function with modified __name__ uses original name when there's an arg error

2014-03-09 Thread Michele dos Santos da Silva
Michele dos Santos da Silva added the comment: func_name was not available on the places where the error strings are set (PyErr_Format), so I added it and passed it around as needed. This is the simplest approach, but I am not sure it is the best (newbie here). Thus, I am waiting for your

[issue20875] Typo in gzip._PaddedFile

2014-03-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset c3836de644e0 by Ned Deily in branch '3.3': Issue #20875: Prevent possible gzip 'read' is not defined NameError. http://hg.python.org/cpython/rev/c3836de644e0 New changeset 42599de6a4de by Ned Deily in branch 'default': Issue #20875: Merge from 3.3

[issue20875] Typo in gzip._PaddedFile

2014-03-09 Thread Ned Deily
Ned Deily added the comment: Thanks for the patch! Committed for release with 3.3.6 and 3.4.1. -- nosy: +ned.deily resolution: - fixed stage: - committed/rejected status: open - closed versions: +Python 3.3 ___ Python tracker

[issue20876] python -m test test_pathlib fails

2014-03-09 Thread Ned Deily
Ned Deily added the comment: Looks like the tests were being run on an NFS-based file system. It's not surprising that the some of the pathlib tests might fail when using NFS due to subtle differences in semantics and timing. Is it possible for you to run the tests again using a local file

[issue19953] __iadd__() doc not strictly correct

2014-03-09 Thread priya
Changes by priya priyapappachan...@gmail.com: Added file: http://bugs.python.org/file34319/my.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19953 ___

[issue20098] email policy needs a mangle_from setting

2014-03-09 Thread Milan Oberkirch
Milan Oberkirch added the comment: Added documentation for mangle_from. since the name mangle_from_ is not supported by the markup, changed it to mangle_from everywhere, which looks better anyway (I understand why it was the other way so). If it was a bad idea, I can undo it but am unable to

[issue20869] IDLE lib error in IOBinding.py

2014-03-09 Thread Domenico Mustara
Domenico Mustara added the comment: Is idle-python2.7_2.7.5-8ubuntu3.1_all.deb the latest package? I downloaded it from saucy and saucy-updates repository via packages.ubuntu.com. In both cases the error is still there. I don't want to be annoying but I would like you to decompress the

[issue18410] IDLE Improvements: Unit test for SearchDialog.py

2014-03-09 Thread Westley Martínez
Changes by Westley Martínez aniko...@gmail.com: -- nosy: +westley.martinez ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18410 ___ ___

[issue20869] IDLE lib error in IOBinding.py

2014-03-09 Thread R. David Murray
R. David Murray added the comment: That's an Ubuntu packaging issue, not a Python issue. You should check with Ubuntu about it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20869 ___

[issue20098] email policy needs a mangle_from setting

2014-03-09 Thread Milan Oberkirch
Milan Oberkirch added the comment: Rollback to mangle_from_, sorry for the noise. -- Added file: http://bugs.python.org/file34321/mangle_from_with_doc.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20098

[issue20098] email policy needs a mangle_from setting

2014-03-09 Thread Milan Oberkirch
Changes by Milan Oberkirch milan...@oberkirch.org: Removed file: http://bugs.python.org/file34320/mangle_from_with_doc.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20098 ___

[issue20098] email policy needs a mangle_from setting

2014-03-09 Thread Milan Oberkirch
Changes by Milan Oberkirch milan...@oberkirch.org: Added file: http://bugs.python.org/file34322/mangle_from_with_doc.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20098 ___

[issue20098] email policy needs a mangle_from setting

2014-03-09 Thread Milan Oberkirch
Changes by Milan Oberkirch milan...@oberkirch.org: Removed file: http://bugs.python.org/file34321/mangle_from_with_doc.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20098 ___

[issue19552] PEP 453: venv module and pyvenv integration

2014-03-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset a140caad76bc by R David Murray in branch 'default': whatsnew: venv with_pip, pyvenv --without-pip (#19552) http://hg.python.org/cpython/rev/a140caad76bc -- ___ Python tracker rep...@bugs.python.org

[issue8813] SSLContext doesn't support loading a CRL

2014-03-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1508c4c9e747 by R David Murray in branch 'default': whatsnew: SSLContext.verify_flags and constants. (#8813) http://hg.python.org/cpython/rev/1508c4c9e747 -- status: pending - open ___ Python tracker

[issue19555] SO config var not getting set

2014-03-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset ac2ee9fc353a by R David Murray in branch 'default': whatsnew: deprecation of sysconfig SO key (#19555). http://hg.python.org/cpython/rev/ac2ee9fc353a -- ___ Python tracker rep...@bugs.python.org

[issue19953] __iadd__() doc not strictly correct

2014-03-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset f9cb5a44879c by R David Murray in branch '3.3': #19953: Clarify the wording of the augmented assignment discussion. http://hg.python.org/cpython/rev/f9cb5a44879c New changeset 61ceb299a255 by R David Murray in branch 'default': Merge #19953:

  1   2   >