Re: Problem with pickle and restarting a program

2014-03-22 Thread dieter
peace abhishek1...@gmail.com writes: On Thursday, March 20, 2014 1:20:03 AM UTC-7, dieter wrote: ... You may want to use debugging to determine what goes on in detail. ... I tried doing that. I still could not figure out what was wrong. Thank you. Debugging is often not easy. An essential

which async framework? - a summary

2014-03-22 Thread Chris Withers
On 14/03/2014 00:36, Tim Chase wrote: On 2014-03-14 00:25, Chris Withers wrote: I've been pleasantly surprised by the succinct, well reasoned and respectful replies from each of the communities! As one who doesn't lurk on the other lists, is there a nice executive summary of their responses?

Re: Python MSI not installing, log file showing name of a Viatnemese communist revolutionary

2014-03-22 Thread wxjmfauth
Le samedi 22 mars 2014 05:59:34 UTC+1, Mark H. Harris a écrit : On 3/21/14 11:46 PM, Chris Angelico wrote: (Side point: You have your 0d and your 0a backwards; the Unix line ending is U+000A, and the Windows default is U+000D U+000A.) Yeah, I know... smart apple. How

Re: Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list)

2014-03-22 Thread Ian Kelly
On Fri, Mar 21, 2014 at 8:06 PM, Rustom Mody rustompm...@gmail.com wrote: Two: A comprehension variable is not bound but reassigned across the comprehension. This problem remains in python3 and causes weird behavior when lambdas are put in a comprehension Because Python as a language only has

Re: Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list)

2014-03-22 Thread Steven D'Aprano
On Fri, 21 Mar 2014 23:51:38 -0500, Mark H Harris wrote: Lambda is a problem, if only because it causes confusion. What's the problem? Glad you asked. The constructs DO NOT work the way most people would expect them to, having limited knowledge of python! Why is that a problem? Would you

Re: Python MSI not installing, log file showing name of a Viatnemese communist revolutionary

2014-03-22 Thread Steven D'Aprano
On Sat, 22 Mar 2014 01:24:33 -0400, Terry Reedy wrote: On 3/22/2014 12:30 AM, Mark H Harris wrote: On 3/21/14 11:15 PM, Chris Angelico wrote: It compounds. One reply makes for double spacing... two makes quadruple, three means we have seven wasted lines between every pair of real lines. That

Re: Python MSI not installing, log file showing name of a Viatnemese communist revolutionary

2014-03-22 Thread Terry Reedy
On 3/22/2014 5:50 AM, Steven D'Aprano wrote: On Sat, 22 Mar 2014 01:24:33 -0400, Terry Reedy wrote: If I were in charge of the software used for this list, I would replace Mark with a custom addition to return mis-formated posts (more blank lines than not) with instructions on how to fix

Re: Github down?

2014-03-22 Thread Gregory Ewing
Dan Sommers wrote: On Fri, 21 Mar 2014 14:51:54 +0100, Chris “Kwpolska” Warrick wrote: (though GitHub could qualify as social media for some…) +1 QOTW https://xkcd.com/624/ -- https://mail.python.org/mailman/listinfo/python-list

Re: Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list)

2014-03-22 Thread Marko Rauhamaa
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info: This makes perfect sense: by the time you call the functions, the name x has been rebound to the value 3. [...] Now I'm not sure precisely how Haskell implements this trick, but it suggests to me that it creates a different closure

Re: Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list)

2014-03-22 Thread Marko Rauhamaa
Ian Kelly ian.g.ke...@gmail.com: You can get the desired effect by adding a layer of indirection: fl = [(lambda x: lambda y: x+y)(x) for x in [1,2,3]] A trick to remember! Variable lifetime reduction by function invocation. Marko -- https://mail.python.org/mailman/listinfo/python-list

Re: Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list)

2014-03-22 Thread Mark Lawrence
On 22/03/2014 02:06, Rustom Mody wrote: The same in haskell: Prelude let fl = [\ y - x + y | x - [1,2,3]] Prelude [(fl!!i) 0 | i- [0,1,2]] [1,2,3] My really big complaint about Python is that it's nothing like CORAL 66. I think I'll raise this on python ideas in an attempt to get this

Re: Python MSI not installing, log file showing name of a Viatnemese communist revolutionary

2014-03-22 Thread Mark Lawrence
On 22/03/2014 03:58, Mark H Harris wrote: On 3/21/14 5:44 PM, Mark Lawrence wrote: I'm pleased to see that you have answers. In return would you either use the mailing list https://mail.python.org/mailman/listinfo/python-list or read and action this

Re: Python MSI not installing, log file showing name of a Viatnemese communist revolutionary

2014-03-22 Thread Mark Lawrence
On 22/03/2014 08:54, wxjmfa...@gmail.com wrote: Le samedi 22 mars 2014 05:59:34 UTC+1, Mark H. Harris a écrit : On 3/21/14 11:46 PM, Chris Angelico wrote: (Side point: You have your 0d and your 0a backwards; the Unix line ending is U+000A, and the Windows default is U+000D U+000A.)

Re: Python MSI not installing, log file showing name of a Viatnemese communist revolutionary

2014-03-22 Thread cool-RR
On Saturday, March 22, 2014 3:39:21 AM UTC+2, Terry Reedy wrote: Does your .b2 install work? Can you delete it thru the programs list? I uninstalled it before this entire adventure. -- https://mail.python.org/mailman/listinfo/python-list

help with for loop----python 2.7.2

2014-03-22 Thread teddybubu
I am trying to get all the element data from the rss below. The only thing I am pulling is the first element. I don't understand why the for loop does not go through the entire rss. Here is my code try: from urllib2 import urlopen except ImportError: from urllib.request import

Re: Installing ssdeep on Portable Python /advice

2014-03-22 Thread laguna-mc
http://ssdeep.sourceforge.net/usage.html the installation described in aboved document is for Linux only. Well, I need experiment and see errors. Regards, - Original Message - From: Mark H Harris Sent: 03/22/14 05:32 AM To: python-list@python.org Subject: Re: Installing ssdeep on

Re: help with for loop----python 2.7.2

2014-03-22 Thread Ian Kelly
On Sat, Mar 22, 2014 at 5:21 AM, teddyb...@gmail.com wrote: I am trying to get all the element data from the rss below. The only thing I am pulling is the first element. I don't understand why the for loop does not go through the entire rss. Here is my code [SNIP] for item in

terminate a program gracefully from a thread

2014-03-22 Thread Jabba Laci
Hi, I have a script (see below) that I want to terminate after X seconds. The main loop of the program is waiting for user input. The program enters the main loop and I try to shut down the program after X seconds from a thread but I can't figure out how to do it. The program should also do some

Re:terminate a program gracefully from a thread

2014-03-22 Thread Dave Angel
Jabba Laci jabba.l...@gmail.com Wrote in message: Hi, I have a script (see below) that I want to terminate after X seconds. The main loop of the program is waiting for user input. The program enters the main loop and I try to shut down the program after X seconds from a thread but I can't

Re: terminate a program gracefully from a thread

2014-03-22 Thread Jabba Laci
You need a flag to indicate that a particular invocation is the dummy one (background). So use that same flag either to suppress starting the thread, or to avoid the unwanted raw_input. Alternatively, rethink the need to preload at boot time. Any caching the OS does is likely to only

Re: terminate a program gracefully from a thread

2014-03-22 Thread Chris Angelico
On Sun, Mar 23, 2014 at 12:18 AM, Dave Angel da...@davea.name wrote: Alternatively, rethink the need to preload at boot time. Any caching the OS does is likely to only last a few minutes, depending on load. So maybe you can make the real load seem to be quicker by displaying the gui right

Re: newbie - Does IDLE care about sitecustomize.py?

2014-03-22 Thread vikram . denizen
Could you figure this out? On Wednesday, November 16, 2005 10:37:09 PM UTC+8, bobu...@yahoo.com wrote: I have the following test script in the file customize.py # C:\Python24\Lib\site-packages\sitecustomize.py print test text from sitecustomize If start Python from command prompt I get

Re: newbie - Does IDLE care about sitecustomize.py?

2014-03-22 Thread Chris Angelico
On Sun, Mar 23, 2014 at 12:41 AM, vikram.deni...@gmail.com wrote: Could you figure this out? On Wednesday, November 16, 2005 10:37:09 PM UTC+8, bobu...@yahoo.com wrote: [ chomp ] You're responding to a decade-old post, you're posting from Google Groups, and you haven't added any information

User prompt as file to read

2014-03-22 Thread kjakupak
I'm trying to create a program that will prompt the user for a list of text files to read from, then read those text files and build a dictionary of all the unique words found. Then finally put those unique words into another file and make it alphabetical order. What I've got: import string

Re: Python - Caeser Cipher Not Giving Right Output

2014-03-22 Thread Ian Kelly
On Mar 20, 2014 9:59 PM, Dave Angel da...@davea.name wrote: dtran...@gmail.com Wrote in message: And I was wondering how I would add the partenthesis because I tried: return numtochar(c1 + c2 (%26)) and it gave me an error. Please help us to help you by actually showing the traceback.

Re:User prompt as file to read

2014-03-22 Thread Dave Angel
kjaku...@gmail.com Wrote in message: I'm trying to create a program that will prompt the user for a list of text files to read from, then read those text files and build a dictionary of all the unique words found. Then finally put those unique words into another file and make it

Re: Python MSI not installing, log file showing name of a Viatnemese communist revolutionary

2014-03-22 Thread Steven D'Aprano
On Fri, 21 Mar 2014 22:58:37 -0500, Mark H Harris wrote: I notice (since moving my stuff to Thunderbird two weeks back) the double spacing you keep squawking about, but I don't find it the big nuisance you're talking about; ok, so we have to scroll a bit further. It's not the scrolling that

Re: Python MSI not installing, log file showing name of a Viatnemese communist revolutionary

2014-03-22 Thread Chris Angelico
On Sun, Mar 23, 2014 at 1:50 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Line endings are terminators: they end the line. Whether you consider the terminator part of the line or not is a matter of opinion (is the cover of a book part of the book?) but consider this: If

Re: Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list)

2014-03-22 Thread Rustom Mody
On Saturday, March 22, 2014 2:39:56 PM UTC+5:30, Ian wrote: On Fri, Mar 21, 2014 at 8:06 PM, Rustom Mody wrote: Two: A comprehension variable is not bound but reassigned across the comprehension. This problem remains in python3 and causes weird behavior when lambdas are put in a

Re: Python - Caeser Cipher Not Giving Right Output

2014-03-22 Thread Rustom Mody
On Saturday, March 22, 2014 7:52:28 PM UTC+5:30, Ian wrote: On Mar 20, 2014 9:59 PM, Dave Angel da...@davea.name wrote:  dtra...@gmail.com Wrote in message: And I was wondering how I would add the partenthesis because I tried: return numtochar(c1 + c2 (%26)) and it gave me an error.

Re: Question about Source Control

2014-03-22 Thread Albert van der Horst
In article mailman.8270.1395195147.18130.python-l...@python.org, Tim Chase python.l...@tim.thechases.com wrote: On 2014-03-18 21:38, Terry Reedy wrote: At least with hg, one should best test the code in the working directory *before* committing to the local repository. I don't know if this is

Re: Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list)

2014-03-22 Thread Mark Lawrence
On 22/03/2014 09:09, Ian Kelly wrote: On Fri, Mar 21, 2014 at 8:06 PM, Rustom Mody rustompm...@gmail.com wrote: Two: A comprehension variable is not bound but reassigned across the comprehension. This problem remains in python3 and causes weird behavior when lambdas are put in a comprehension

Re: Question about Source Control

2014-03-22 Thread Albert van der Horst
In article bp17s6fbs1...@mid.individual.net, Gregory Ewing greg.ew...@canterbury.ac.nz wrote: Chris Angelico wrote: You can then offer a non-source-control means of downloading that specific revision. Just keep in mind the downside that you can't then push or pull your changes directly back

RE: Controlling buffer alignment in file.read()

2014-03-22 Thread Laurent Pointal
Haralanov, Mitko wrote: For control at that level you'd be better off using direct system calls, i.e. os.open() and os.read(), then you can read exacty the number of bytes you want. The problem is not controlling the number of bytes read. That part seems to be working. The issue is that

Re: Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list)

2014-03-22 Thread Marko Rauhamaa
Mark Lawrence breamore...@yahoo.co.uk: On 22/03/2014 09:09, Ian Kelly wrote: Because Python as a language only has the concept of assignment, not binding. I think it would be weird and confusing if variables worked this way in comprehensions and nowhere else. My understanding has always

Re: Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list)

2014-03-22 Thread Rustom Mody
The foll is fairly standard fare in denotational semantics -- please excuse the length! In order to understand (formally) the concept of 'variable' we need to have at the least a concept of name(or identifier) - value mapping. This mapping is called an 'environment' If we stop at that we get the

Re: Question about Source Control

2014-03-22 Thread Tim Chase
On 2014-03-22 17:32, Albert van der Horst wrote: I don't know if this is a hg-vs-git way of thinking, but I tend to frequently commit things on a private development branch regardless of brokenness, but once I get it working, I flatten clean up those changes (rebase in git terms, which I

Re: Question about Source Control

2014-03-22 Thread Albert-Jan Roskam
Hi, I can recommend the book Pragmatic Guide to Git. Very practical and to the point: http://www.amazon.com/Pragmatic-Guide-Git-Programmers/dp/1934356727/ref=sr_1_1/184-0142481-0484062?ie=UTF8qid=1395518159sr=8-1keywords=pragmatic+guide+to+git I addition, I read a big fat super-exhaustive

Re: newbie - Does IDLE care about sitecustomize.py?

2014-03-22 Thread Terry Reedy
On 3/22/2014 9:41 AM, vikram.deni...@gmail.com wrote: Could you figure this out? On Wednesday, November 16, 2005 10:37:09 PM UTC+8, bobu...@yahoo.com wrote: I have the following test script in the file customize.py # C:\Python24\Lib\site-packages\sitecustomize.py print test text from

Re: terminate a program gracefully from a thread

2014-03-22 Thread Terry Reedy
On 3/22/2014 8:40 AM, Jabba Laci wrote: I have a script (see below) that I want to terminate after X seconds. The main loop of the program is waiting for user input. The program enters the main loop and I try to shut down the program after X seconds from a thread but I can't figure out how to

Help needed to create a Python extension library for an existing shared memory hash table library

2014-03-22 Thread Simon Hardy-Francis
Hi Python fans, I just released my first open source project ever called SharedHashFile [1]. It's a shared memory hash table written in C. Some guy on Quora asked [2] whether there's an extension library for Python coming out. I would like to do one but I know little about Python. I was

Re: Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list)

2014-03-22 Thread vasudevram
Thanks to all those who answered. - Vasudev -- https://mail.python.org/mailman/listinfo/python-list

RICHARD LEAKEY RECENTLY ARRESTED -- THE THRINAXODON TIMES REPORTS YOU CRAP, YOU CALL OUT BULLSHIT!

2014-03-22 Thread SUPER THRINAXODON DUMBASS
LOOK, MOM! A BIRD, A PLANE, A THRINAXODON! RICHARD LEAKEY WAS RECENTLY ARRESTED IN CONNECTION TO EVOLUTIONARY SCANDALS. THRINAXODON CAUGHT THE WHOLE SCENE! ONLY ONE GUESS TO WHAT RICHARD LEAKEY WAS UP TO WILL SHUT YOUR MOUTHS! RICHARD LEAKEY WAS

Re: Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list)

2014-03-22 Thread Rhodri James
On Sat, 22 Mar 2014 05:26:26 -, Rustom Mody rustompm...@gmail.com wrote: Well almost... Except that the 'loop' I am talking of is one of def loop(): return [yield (lambda: x) for x in [1,2,3]] or return (yield (lambda: x) for x in [1,2,3]) or just plain ol (lambda x: for x

Re: Python MSI not installing, log file showing name of a Viatnemese communist revolutionary

2014-03-22 Thread Steven D'Aprano
On Sun, 23 Mar 2014 02:09:20 +1100, Chris Angelico wrote: On Sun, Mar 23, 2014 at 1:50 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Line endings are terminators: they end the line. Whether you consider the terminator part of the line or not is a matter of opinion (is the

Reading in cooked mode (was Re: Python MSI not installing, log file showing name of a Viatnemese communist revolutionary)

2014-03-22 Thread Chris Angelico
On Sun, Mar 23, 2014 at 12:07 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Sun, 23 Mar 2014 02:09:20 +1100, Chris Angelico wrote: On Sun, Mar 23, 2014 at 1:50 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Line endings are terminators: they end the line.

Re: Question about Source Control

2014-03-22 Thread Dave Angel
Albert-Jan Roskam fo...@yahoo.com Wrote in message: In addition to posting in html format, you have also set the font size too small for me to easily read. Reason number 12 for posting in text mode in a text newsgroup. -- DaveA -- https://mail.python.org/mailman/listinfo/python-list

Re: Reading in cooked mode (was Re: Python MSI not installing, log file showing name of a Viatnemese communist revolutionary)

2014-03-22 Thread Cameron Simpson
On 23Mar2014 12:37, Chris Angelico ros...@gmail.com wrote: On Sun, Mar 23, 2014 at 12:07 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Sun, 23 Mar 2014 02:09:20 +1100, Chris Angelico wrote: On Sun, Mar 23, 2014 at 1:50 AM, Steven D'Aprano

Re: Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list)

2014-03-22 Thread Ian Kelly
On Sat, Mar 22, 2014 at 6:32 PM, Rhodri James rho...@wildebst.org.uk wrote: On Sat, 22 Mar 2014 05:26:26 -, Rustom Mody rustompm...@gmail.com wrote: Well almost... Except that the 'loop' I am talking of is one of def loop(): return [yield (lambda: x) for x in [1,2,3]] or

Re: Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list)

2014-03-22 Thread Rustom Mody
On Sunday, March 23, 2014 8:16:28 AM UTC+5:30, Ian wrote: On Sat, Mar 22, 2014 at 6:32 PM, Rhodri James wrote: wrote: Well almost... Except that the 'loop' I am talking of is one of def loop(): return [yield (lambda: x) for x in [1,2,3]] or return (yield (lambda: x) for x

Re: Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list)

2014-03-22 Thread Ian Kelly
On Sat, Mar 22, 2014 at 9:16 PM, Rustom Mody rustompm...@gmail.com wrote: [I am not completely sure whether the following can be proved/is true] 1. One can change lambda's closure rules which would amount to significant complexity for relatively little gain 2. One can change comprehension

[issue21015] support SSL_CTX_set_ecdh_auto on newer OpenSSLs

2014-03-22 Thread Nick Coghlan
Nick Coghlan added the comment: Marking this as buildbot, as Donald suspects it's the culprit for the current SSL related buildbot failures after merging issue 20995. Also Donald, welcome to the I broke (some of) the buildbots club, although you did come up with something more exotic than the

[issue21015] support SSL_CTX_set_ecdh_auto on newer OpenSSLs

2014-03-22 Thread Donald Stufft
Donald Stufft added the comment: I always have to do things the hard way ;) Note that my patch changes the set_ecdh_curve() method to no longer require a name. If that is too big of a change for Python 3.4 we can just hardcode the same name inside of ssl.py for 3.4 --

[issue20035] Suppress 'os.environ was modified' warning on Tcl/Tk tests

2014-03-22 Thread Zachary Ware
Zachary Ware added the comment: Here's a slightly less ugly version of the patch. I would really appreciate some review on this; this should solve a test_idle issue that was exacerbated by issue #15968 (for unknown reasons). -- priority: low - normal Added file:

[issue20035] Suppress 'os.environ was modified' warning on Tcl/Tk tests

2014-03-22 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: Removed file: http://bugs.python.org/file33233/suppress_environ_warning.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20035 ___

[issue20035] Suppress 'os.environ was modified' warning on Tcl/Tk tests

2014-03-22 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: Removed file: http://bugs.python.org/file33235/suppress_environ_warning.v2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20035 ___

[issue16104] Use multiprocessing in compileall script

2014-03-22 Thread Claudiu.Popa
Claudiu.Popa added the comment: What can I do to move this forward? I believe all concerns have been addressed and it seems ready to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16104

[issue21019] PyMethodDef ml_name is char* instead of const char*

2014-03-22 Thread Hristo Venev
New submission from Hristo Venev: It would be better if string literals could be used there. -- messages: 214451 nosy: h.venev priority: normal severity: normal status: open title: PyMethodDef ml_name is char* instead of const char* ___ Python

[issue21021] PyMemberDef name is char* instead of const char*

2014-03-22 Thread Hristo Venev
New submission from Hristo Venev: It would be better if string literals could be used there. -- messages: 214453 nosy: h.venev priority: normal severity: normal status: open title: PyMemberDef name is char* instead of const char* ___ Python tracker

[issue21020] PyMethodDef ml_doc is char* instead of const char*

2014-03-22 Thread Hristo Venev
New submission from Hristo Venev: It would be better if string literals could be used there. -- messages: 214452 nosy: h.venev priority: normal severity: normal status: open title: PyMethodDef ml_doc is char* instead of const char* ___ Python tracker

[issue21022] PyMemberDef doc is char* instead of const char*

2014-03-22 Thread Hristo Venev
New submission from Hristo Venev: It would be better if string literals could be used there. -- messages: 214454 nosy: h.venev priority: normal severity: normal status: open title: PyMemberDef doc is char* instead of const char* ___ Python tracker

[issue21023] PyTypeObject tp_name is char* instead of const char*

2014-03-22 Thread Hristo Venev
New submission from Hristo Venev: It would be better if string literals could be used there. -- components: Extension Modules messages: 214455 nosy: h.venev priority: normal severity: normal status: open title: PyTypeObject tp_name is char* instead of const char* versions: Python 3.4

[issue21024] PyTypeObject tp_doc is char* instead of const char*

2014-03-22 Thread Hristo Venev
New submission from Hristo Venev: It would be better if string literals could be used there. -- components: Extension Modules messages: 214456 nosy: h.venev priority: normal severity: normal status: open title: PyTypeObject tp_doc is char* instead of const char* versions: Python 3.4

[issue21021] PyMemberDef name is char* instead of const char*

2014-03-22 Thread Hristo Venev
Changes by Hristo Venev hri...@venev.name: -- components: +Extension Modules versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21021 ___

[issue21022] PyMemberDef doc is char* instead of const char*

2014-03-22 Thread Hristo Venev
Changes by Hristo Venev hri...@venev.name: -- components: +Extension Modules versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21022 ___

[issue21019] PyMethodDef ml_name is char* instead of const char*

2014-03-22 Thread Hristo Venev
Changes by Hristo Venev hri...@venev.name: -- components: +Extension Modules versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21019 ___

[issue21020] PyMethodDef ml_doc is char* instead of const char*

2014-03-22 Thread Hristo Venev
Changes by Hristo Venev hri...@venev.name: -- components: +Extension Modules versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21020 ___

[issue21015] support SSL_CTX_set_ecdh_auto on newer OpenSSLs

2014-03-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: I don't think it makes much sense to have a default argument to set_ecdh_curve(). It's probably better to just copy mod_ssl's initialization (which selects prime256v1 on not-so-new OpenSSLs). -- ___ Python tracker

[issue20975] Python 3.4 build info wrong in code snippet

2014-03-22 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20975 ___ ___

[issue20906] Issues in Unicode HOWTO

2014-03-22 Thread Graham Wideman
Graham Wideman added the comment: @Andre: _I_ know more or less the explanations behind all this. I am just putting it forward as an example which touches several concepts which are needed to explain it, and that a programmer might reason with to change a program (or the environment) to

[issue21015] support SSL_CTX_set_ecdh_auto on newer OpenSSLs

2014-03-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a patch working with both 1.0.2 (set_ecdh_auto) and 1.0.1 (fallback on prime256v1). -- Added file: http://bugs.python.org/file34565/ssl_ecdh_auto.patch ___ Python tracker rep...@bugs.python.org

[issue20961] Fix usages of the note directive in the documentation

2014-03-22 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20961 ___ ___

[issue21015] support SSL_CTX_set_ecdh_auto on newer OpenSSLs

2014-03-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: Perhaps we should add a test for this. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21015 ___ ___

[issue21015] support SSL_CTX_set_ecdh_auto on newer OpenSSLs

2014-03-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: New patch with a test. -- Added file: http://bugs.python.org/file34566/ssl_ecdh_auto2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21015 ___

[issue21025] if check_hostname is true, context can't be used for server purposes

2014-03-22 Thread Antoine Pitrou
New submission from Antoine Pitrou: On a SSLContext with check_hostname = True, calling wrap_socket(..., server_side=True) will complain that no server hostname has been passed. This should only be done for client sockets. -- components: Library (Lib) messages: 214462 nosy:

[issue21014] `1` = `True`; for tutorial docs

2014-03-22 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21014 ___ ___

[issue21019] PyMethodDef ml_name is char* instead of const char*

2014-03-22 Thread Martin v . Löwis
Martin v. Löwis added the comment: Why are you suggesting that string literals cannot be used? Works fine for me. -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21019 ___

[issue21021] PyMemberDef name is char* instead of const char*

2014-03-22 Thread Martin v . Löwis
Martin v. Löwis added the comment: I propose any resolution to issue21019 be applied here as well. -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21021 ___

[issue21020] PyMethodDef ml_doc is char* instead of const char*

2014-03-22 Thread Martin v . Löwis
Martin v. Löwis added the comment: I propose any resolution to issue21019 be applied here as well. -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21020 ___

[issue21022] PyMemberDef doc is char* instead of const char*

2014-03-22 Thread Martin v . Löwis
Martin v. Löwis added the comment: I propose any resolution to issue21019 be applied here as well. -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21022 ___

[issue21023] PyTypeObject tp_name is char* instead of const char*

2014-03-22 Thread Martin v . Löwis
Martin v. Löwis added the comment: I propose any resolution to issue21019 be applied here as well. -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21023 ___

[issue21024] PyTypeObject tp_doc is char* instead of const char*

2014-03-22 Thread Martin v . Löwis
Martin v. Löwis added the comment: I propose any resolution to issue21019 be applied here as well. -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21024 ___

[issue21017] Enable Debug Tix build on Windows

2014-03-22 Thread Martin v . Löwis
Martin v. Löwis added the comment: Tagged in http://svn.python.org/view?view=revisionrevision=89017 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21017 ___

[issue20906] Issues in Unicode HOWTO

2014-03-22 Thread Martin v . Löwis
Martin v. Löwis added the comment: 4. Many Internet standards are defined in terms of textual data I believe the author was thinking of the old TCP-based protocols (ftp, smtp, RFC 822, HTTP), which have their commands/messages as ASCII-strings, with a variable-length records (often

[issue20975] Python 3.4 build info wrong in code snippet

2014-03-22 Thread Martin v . Löwis
Martin v. Löwis added the comment: Bostjan: please understand that this is not possible. The build date is the date when Python interpreter was actually built. If I build Python on my Linux machine today, I get today's date. So there isn't any single one right build date - on Unix, people

[issue20975] Python 3.4 build info wrong in code snippet

2014-03-22 Thread Martin v . Löwis
Martin v. Löwis added the comment: I don't mind changing the text now, but I observe that there is a chicken-and-egg problem with the hg changeset number. That changeset number is only set when the tag is made, which must happen after the documentation is updated (or else the updated

[issue20975] Python 3.4 build info wrong in code snippet

2014-03-22 Thread Geoffrey Spear
Geoffrey Spear added the comment: There is no correct date and time Python 3.4 was built. I'm sure even the Windows binary installers weren't built simultaneously, and on Linux systems it will differ based on distro. My Python 3.4 says it was built 5 minutes ago, because it was. I suppose

[issue21019] PyMethodDef ml_name is char* instead of const char*

2014-03-22 Thread Hristo Venev
Hristo Venev added the comment: error: deprecated conversion from string constant to ‘char*’ I like -Werror. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21019 ___

[issue20906] Issues in Unicode HOWTO

2014-03-22 Thread R. David Murray
R. David Murray added the comment: Although I agree that the Unicode Howto needs to provide enough information for someone to reason correctly about python3 unicode, I'd like to note that someone running into the encoding error on windows is *not* going to reach for the unicode howto to solve

[issue20906] Issues in Unicode HOWTO

2014-03-22 Thread R. David Murray
R. David Murray added the comment: On the other hand, I wonder if such problem/solution pairs should go in the FAQ list rather than the howto, perhaps with a pointer to the howto for those wanting more general information. Specifically the Python on Windows section in this case. I realize

[issue21015] support SSL_CTX_set_ecdh_auto on newer OpenSSLs

2014-03-22 Thread Donald Stufft
Donald Stufft added the comment: The reason I made a default argument to set_ecdh_curve is that I couldn't find any information about what happens if you set a ecdh curve _twice_ within a a OpenSSL SSL Context. So I played it safe and made it a default argument that only gets called if you

[issue21015] support SSL_CTX_set_ecdh_auto on newer OpenSSLs

2014-03-22 Thread Donald Stufft
Donald Stufft added the comment: I know it doesn't segfault or raise an error if you do that, but I don't know if it: 1) Replaces the already called ECDH Curve 2) Adds to the already called ECDH Curve 3) Silently Does Nothing. If it's 2 or 3 then your patch will make

[issue21017] Enable Debug Tix build on Windows

2014-03-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8cf384852680 by Zachary Ware in branch 'default': Issue #21017: Enable Tix debug build on Windows http://hg.python.org/cpython/rev/8cf384852680 -- nosy: +python-dev ___ Python tracker

[issue21017] Enable Debug Tix build on Windows

2014-03-22 Thread Zachary Ware
Zachary Ware added the comment: Thank you, Benjamin and Martin! Debug Tix build now enabled. -- assignee: - zach.ware resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue21015] support SSL_CTX_set_ecdh_auto on newer OpenSSLs

2014-03-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: I know it doesn't segfault or raise an error if you do that, but I don't know if it: 1) Replaces the already called ECDH Curve 2) Adds to the already called ECDH Curve 3) Silently Does Nothing. Judging by OpenSSL's code, it replaces the already called

[issue21015] support SSL_CTX_set_ecdh_auto on newer OpenSSLs

2014-03-22 Thread Donald Stufft
Donald Stufft added the comment: Works for me, that's what it appears like to me too. +1 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21015 ___

[issue21015] support SSL_CTX_set_ecdh_auto on newer OpenSSLs

2014-03-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is an updated patch with proper releasing the EC_KEY structure. (note that the patch has a slight performance implication: creating a SSLContext becomes more costly - around 100µs more here) -- Added file:

[issue5680] Command-line arguments when running in IDLE

2014-03-22 Thread Saimadhav Heblikar
Saimadhav Heblikar added the comment: Submitting a patch for 3.4. 1. Allows the user to set command line arguments via a dialog box 2. Parsing - Maps the string which user entered into a list i.e. the same results are produced as when run via terminal/command prompt. The parsing methods

[issue21015] support SSL_CTX_set_ecdh_auto on newer OpenSSLs

2014-03-22 Thread Donald Stufft
Donald Stufft added the comment: Looks good to me, do you want to commit it Antoine? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21015 ___

[issue21015] support SSL_CTX_set_ecdh_auto on newer OpenSSLs

2014-03-22 Thread Alex Gaynor
Changes by Alex Gaynor alex.gay...@gmail.com: -- nosy: +alex ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21015 ___ ___ Python-bugs-list mailing

  1   2   >