Re: Looking for UNICODE to ASCII Conversioni Example Code

2013-10-19 Thread Steven D'Aprano
On Fri, 18 Oct 2013 13:45:53 -0700, caldwellinva wrote: Hi! I am looking for an example of a UNICODE to ASCII conversion example that will remove diacritics from characters (and leave the characters, i.e., Klüft to Kluft) as well as handle the conversion of other characters, like große to

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-19 Thread Steven D'Aprano
On Wed, 16 Oct 2013 23:49:02 -0700, Peter Cacioppi wrote: I don't know if I want to step into the flames here, Go on, be bold! You learn a lot by making bold claims and having them shot down. Or at least, I did. Now I know everything, so I can afford to be humble. *wink* but my

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-19 Thread Chris Angelico
On Sat, Oct 19, 2013 at 8:57 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Wed, 16 Oct 2013 23:49:02 -0700, Peter Cacioppi wrote: I don't know if I want to step into the flames here, Go on, be bold! You learn a lot by making bold claims and having them shot down. Yes,

Error Testing

2013-10-19 Thread Scott Novinger
Hello. I've written a program for my kids to calculate arc length. I want to include some error testing for value types entered that are something other than integer values. My goal is to make sure that the value entered for the radius is an integer value. How could I rewrite this code to

Re: Looking for UNICODE to ASCII Conversioni Example Code

2013-10-19 Thread Roy Smith
In article e7c0c225-bfd0-43a7-adfc-1b7639014...@googlegroups.com, caldwelli...@gmail.com wrote: I am looking for an example of a UNICODE to ASCII conversion example that will remove diacritics from characters (and leave the characters, i.e., Klüft to Kluft) as well as handle the conversion

Re: Error Testing

2013-10-19 Thread Mark Lawrence
On 19/10/2013 13:23, Scott Novinger wrote: Hello. I've written a program for my kids to calculate arc length. I want to include some error testing for value types entered that are something other than integer values. My goal is to make sure that the value entered for the radius is an

Re: Error Testing

2013-10-19 Thread Ned Batchelder
On 10/19/13 8:23 AM, Scott Novinger wrote: Hello. I've written a program for my kids to calculate arc length. I want to include some error testing for value types entered that are something other than integer values. My goal is to make sure that the value entered for the radius is an

Re: Looking for UNICODE to ASCII Conversioni Example Code

2013-10-19 Thread caldwellinva
Zero/Stephen ... thank you for your replies ... they were both very helpful, both in addressing the immediate issue and for getting a better understanding of the context of the conversion. Greatly appreciate your taking the time for such good solutions. --

Re: Error Testing

2013-10-19 Thread Roy Smith
On 10/19/13 8:23 AM, Scott Novinger wrote: My goal is to make sure that the value entered for the radius is an integer value. In article mailman.1254.1382186691.18130.python-l...@python.org, Ned Batchelder n...@nedbatchelder.com wrote: First, radius is the result of input(), so it is

Re: Error Testing

2013-10-19 Thread Chris Angelico
On Sat, Oct 19, 2013 at 11:23 PM, Scott Novinger scnovin...@gmail.com wrote: # Create the variable for radius, radius. print('Please enter the circle radius and press ENTER:') radius = input() # Check to make sure the entered value is an integer. if type(radius) !=

Re: Error Testing

2013-10-19 Thread Chris Angelico
On Sat, Oct 19, 2013 at 11:57 PM, Roy Smith r...@panix.com wrote: On 10/19/13 8:23 AM, Scott Novinger wrote: My goal is to make sure that the value entered for the radius is an integer value. In article mailman.1254.1382186691.18130.python-l...@python.org, Ned Batchelder

Re: Error Testing

2013-10-19 Thread Ned Batchelder
On 10/19/13 8:57 AM, Roy Smith wrote: On 10/19/13 8:23 AM, Scott Novinger wrote: My goal is to make sure that the value entered for the radius is an integer value. In article mailman.1254.1382186691.18130.python-l...@python.org, Ned Batchelder n...@nedbatchelder.com wrote: First, radius is

Re: Error Testing

2013-10-19 Thread Roy Smith
In article mailman.1257.1382188058.18130.python-l...@python.org, Ned Batchelder n...@nedbatchelder.com wrote: On 10/19/13 8:57 AM, Roy Smith wrote: On 10/19/13 8:23 AM, Scott Novinger wrote: My goal is to make sure that the value entered for the radius is an integer value. In article

Re: Error Testing

2013-10-19 Thread Mark Lawrence
On 19/10/2013 13:57, Roy Smith wrote: On 10/19/13 8:23 AM, Scott Novinger wrote: My goal is to make sure that the value entered for the radius is an integer value. In article mailman.1254.1382186691.18130.python-l...@python.org, Ned Batchelder n...@nedbatchelder.com wrote: First, radius

Re: Error Testing

2013-10-19 Thread Scott Novinger
On Saturday, October 19, 2013 8:37:01 AM UTC-4, Mark Lawrence wrote: On 19/10/2013 13:23, Scott Novinger wrote: Hello. I've written a program for my kids to calculate arc length. I want to include some error testing for value types entered that are something other than integer

Re: Error Testing

2013-10-19 Thread Chris Angelico
On Sun, Oct 20, 2013 at 12:34 AM, Scott Novinger scnovin...@gmail.com wrote: I read the link on Handling Exceptions. The first bit of code worked for my purposes. I was able to reduce my number of lines of code significantly and my program works! Thank you all for your help solving this

Re: Looking for UNICODE to ASCII Conversioni Example Code

2013-10-19 Thread Zero Piraeus
: On Sat, Oct 19, 2013 at 09:19:12AM +, Steven D'Aprano wrote: Make no mistake, this sort of simple-minded stripping of accents and diacritics is an extremely ham-fisted thing to do. I used to live on a street called Calle Colón, so I'm aware of the dangers of stripping diacritics:

Re: Looking for UNICODE to ASCII Conversioni Example Code

2013-10-19 Thread Roy Smith
In article mailman.1260.1382192092.18130.python-l...@python.org, Zero Piraeus z...@etiol.net wrote: For example, a miscreant may create the username 'míguel' in order to pose as another user 'miguel', relying on other users inattentiveness. Asciifying is one way of reducing the risk of that.

Re: ANN: matplotlib 1.3.1

2013-10-19 Thread Piet van Oostrum
Ned Deily n...@acm.org writes: In article m2zjq6mugp@cochabamba.vanoostrum.org, Piet van Oostrum p...@vanoostrum.org wrote: I tried to install it from source, on Mac OS X 10.6.8, with Python 3.3.2, and Tck/Tk 8.5 installed as Frameworks, but I get an error during compilation. It seems

Re: Weird problem with UDP and gevent

2013-10-19 Thread Grant Edwards
On 2013-10-18, James Harris james.harri...@gmail.com wrote: Roy Smith r...@panix.com wrote in message news:l3riea$82$1...@panix2.panix.com... I'm running: Ubuntu Precise Python 2.7.3 django 1.4.5 gunicorn 0.17.4 gevent 1.0dev (rc3) I haven't been able to pin this down exactly, but it

Re: Looking for UNICODE to ASCII Conversioni Example Code

2013-10-19 Thread rusi
On Saturday, October 19, 2013 8:40:37 PM UTC+5:30, Roy Smith wrote: Zero Piraeus wrote: For example, a miscreant may create the username 'míguel' in order to pose as another user 'miguel', relying on other users inattentiveness. Asciifying is one way of reducing the risk of that.

Re: Looking for UNICODE to ASCII Conversioni Example Code

2013-10-19 Thread Steven D'Aprano
On Sat, 19 Oct 2013 11:14:30 -0300, Zero Piraeus wrote: : On Sat, Oct 19, 2013 at 09:19:12AM +, Steven D'Aprano wrote: Make no mistake, this sort of simple-minded stripping of accents and diacritics is an extremely ham-fisted thing to do. [...] Joking aside, there is a legitimate use

Re: Error Testing

2013-10-19 Thread rusi
On Saturday, October 19, 2013 7:04:30 PM UTC+5:30, Scott Novinger wrote: My plan is to create several different programs that perform specific Algebraic operations. My boys are learning Algebra 2 and I thought it might be a fun way to help us all learn Algebra and programming together.

Re: Looking for UNICODE to ASCII Conversioni Example Code

2013-10-19 Thread Roy Smith
On Saturday, October 19, 2013 12:16:02 PM UTC-4, Steven D'Aprano wrote: Another reasonable use for accent-stripping is searches. If I'm searching for music by the Blue Öyster Cult, it would be good to see results for Blue Oyster Cult as well. Tell me about it (I work at Songza; music search

Re: Error Testing

2013-10-19 Thread David Robinow
On Sat, Oct 19, 2013 at 9:01 AM, Chris Angelico ros...@gmail.com wrote: You can try all these out in the interactive interpreter (you probably have IDLE installed, which on Windows is rather nicer to work with than the default interactive mode). IDLE is cross-platform. Could you explain why

Re: Error Testing

2013-10-19 Thread Tim Chase
On 2013-10-19 14:08, David Robinow wrote: On Sat, Oct 19, 2013 at 9:01 AM, Chris Angelico wrote: You can try all these out in the interactive interpreter (you probably have IDLE installed, which on Windows is rather nicer to work with than the default interactive mode). IDLE is

Re: Error Testing

2013-10-19 Thread Terry Reedy
On 10/19/2013 2:08 PM, David Robinow wrote: On Sat, Oct 19, 2013 at 9:01 AM, Chris Angelico ros...@gmail.com wrote: You can try all these out in the interactive interpreter (you probably have IDLE installed, which on Windows is rather nicer to work with than the default interactive mode).

What's wrong with Windows Command Prompt (was Re: Error Testing)

2013-10-19 Thread Terry Reedy
On 10/19/2013 2:31 PM, Tim Chase wrote: On 2013-10-19 14:08, David Robinow wrote: On Sat, Oct 19, 2013 at 9:01 AM, Chris Angelico wrote: You can try all these out in the interactive interpreter (you probably have IDLE installed, which on Windows is rather nicer to work with than the default

skipping __init__ and using exploiting a class member instead

2013-10-19 Thread Peter Cacioppi
Is the following considered poor Python form? class Foo (object) : _lazy = None def foo(self, x) : _lazy = _lazy or self.get_something(x) def get_something(self, x) : # doesn't really matter I like this idiom for certain situations, just wondering if it will raise the

Re: skipping __init__ and using exploiting a class member instead

2013-10-19 Thread Ned Batchelder
On 10/19/13 5:44 PM, Peter Cacioppi wrote: Is the following considered poor Python form? class Foo (object) : _lazy = None def foo(self, x) : _lazy = _lazy or self.get_something(x) def get_something(self, x) : # doesn't really matter I like this idiom for

Re: Looking for UNICODE to ASCII Conversioni Example Code

2013-10-19 Thread Chris Angelico
On Sun, Oct 20, 2013 at 3:49 AM, Roy Smith r...@panix.com wrote: So, yesterday, I tracked down an uncaught exception stack in our logs to a user whose username included the unicode character 'SMILING FACE WITH SUNGLASSES' (U+1F60E). It turns out, that's perfectly fine as a user name,

Re: skipping __init__ and using exploiting a class member instead

2013-10-19 Thread Peter Cacioppi
On Saturday, October 19, 2013 2:44:55 PM UTC-7, Peter Cacioppi wrote: Is the following considered poor Python form? class Foo (object) : _lazy = None def foo(self, x) : _lazy = _lazy or self.get_something(x) def get_something(self, x) : # doesn't

Screenshots in Mac OS X

2013-10-19 Thread Pratik Mehta
Hi Guys, Good Morning! How are you all doing? I am in need of your help. I am stuck in a problem. I want to write my own Screenshot Taking program in Python for Mac OS X. Example : Whenever Command + Shift + 3 is pressed == whatever is there on the screen, should be grabbed / captured, and

Re: What's wrong with Windows Command Prompt (was Re: Error Testing)

2013-10-19 Thread Chris Angelico
On Sun, Oct 20, 2013 at 7:35 AM, Terry Reedy tjre...@udel.edu wrote: Idle can recall previous input two different ways, by cursor or key. One can use the mouse to select where to edit. CP requires use of arrow keys to move the cursor around. Idle recall input *statements*. CP recalls input

Re: skipping __init__ and using exploiting a class member instead

2013-10-19 Thread Robert Kern
On 2013-10-19 22:55, Ned Batchelder wrote: On 10/19/13 5:44 PM, Peter Cacioppi wrote: Is the following considered poor Python form? class Foo (object) : _lazy = None def foo(self, x) : _lazy = _lazy or self.get_something(x) def get_something(self, x) : #

Re: Error Testing

2013-10-19 Thread Chris Angelico
On Sun, Oct 20, 2013 at 6:50 AM, Terry Reedy tjre...@udel.edu wrote: On 10/19/2013 2:08 PM, David Robinow wrote: On Sat, Oct 19, 2013 at 9:01 AM, Chris Angelico ros...@gmail.com wrote: You can try all these out in the interactive interpreter (you probably have IDLE installed, which on

Re: Error Testing

2013-10-19 Thread Chris Angelico
On Sun, Oct 20, 2013 at 3:22 AM, rusi rustompm...@gmail.com wrote: The problem is that python is an imperative language and uses the '=' sign for assignment. In math of course '=' stands for equality. Pascal tried to create a new operator, := to be read becomes, to deal with the whole

Re: skipping __init__ and using exploiting a class member instead

2013-10-19 Thread Steven D'Aprano
On Sat, 19 Oct 2013 14:44:55 -0700, Peter Cacioppi wrote: Is the following considered poor Python form? class Foo (object) : _lazy = None def foo(self, x) : _lazy = _lazy or self.get_something(x) def get_something(self, x) : # doesn't really matter I like

Re: Screenshots in Mac OS X

2013-10-19 Thread Chris Angelico
On Sun, Oct 20, 2013 at 9:12 AM, Pratik Mehta pratik.mehta13...@gmail.com wrote: Command + Shift + 5 == This one is a little bit tricky which I am looking for. This shortcut doesn't exist. I want to create one of my own, where it would grab the entire webpage's screenshot which I am currently

Re: Screenshots in Mac OS X

2013-10-19 Thread Ned Deily
In article 22861e2f-50f2-4d74-9024-53caec557...@googlegroups.com, Pratik Mehta pratik.mehta13...@gmail.com wrote: I want to write my own Screenshot Taking program in Python for Mac OS X. Example : Whenever Command + Shift + 3 is pressed == whatever is there on the screen, should be grabbed

Re: Error Testing

2013-10-19 Thread Ned Deily
In article captjjmqrrxsx0rhu0bshqhbawym6_nwb6ex3hketjwmdadq...@mail.gmail.com, Chris Angelico ros...@gmail.com wrote: Pascal tried to create a new operator, := to be read becomes, to deal with the whole equality-vs-assignment issue. Um, Pascal was just following the lead of ALGOL 60, roughly

Error running make install on CentOS 6.4 (64bit)

2013-10-19 Thread jh113355
changing mode of /usr/local/lib/python2.7/lib-dynload/ to 755 running install_scripts copying build/scripts-2.7/idle - /usr/local/bin copying build/scripts-2.7/2to3 - /usr/local/bin error: /usr/local/bin/2to3: No such file or directory make: *** [sharedinstall] Error 1 [root@afdice-pc0v1

Re: Error Testing

2013-10-19 Thread Chris Angelico
On Sun, Oct 20, 2013 at 9:46 AM, Ned Deily n...@acm.org wrote: In article captjjmqrrxsx0rhu0bshqhbawym6_nwb6ex3hketjwmdadq...@mail.gmail.com, Chris Angelico ros...@gmail.com wrote: Pascal tried to create a new operator, := to be read becomes, to deal with the whole equality-vs-assignment

Screenshots in Mac OS X

2013-10-19 Thread Pratik Mehta
Hi Guys, Good Morning! How are you all doing? I am in need of your help. I am stuck in a problem. I want to write my own Screenshot Taking program in Python for Mac OS X. Example : Whenever Command + Shift + 3 is pressed == whatever is there on the screen, should be grabbed / captured, and

Re: Screenshots in Mac OS X

2013-10-19 Thread Pratik Mehta
Hey Ned, Thanks for reverting. I am looking for the similar functionality. Thanks for sharing that link. Could you pls help me out with the Python Code? Thanks. :) -- https://mail.python.org/mailman/listinfo/python-list

Re: Changing the terminal title bar with Python

2013-10-19 Thread Tim Roberts
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: You might find this useful, or just for fun, but on POSIX systems (Linux, Unix, Apple Mac, but not Windows) you can change the title of the terminal window from Python. Just for completeness, this is also possible in Windows,

Re: converting letters to numbers

2013-10-19 Thread Tim Roberts
Steven D'Aprano st...@pearwood.info wrote: On Sun, 13 Oct 2013 20:13:32 -0700, Tim Roberts wrote: def add(c1, c2): % Decode ... Python uses # for comments, not %, as I'm sure you know. What language were you thinking off when you wrote the above? Psssht, I know better than that. I've

Re: skipping __init__ and using exploiting a class member instead

2013-10-19 Thread Peter Cacioppi
Yes, I see the light now. My idiom works, but Steven has shown me the droids I am looking for. Thanks! -- https://mail.python.org/mailman/listinfo/python-list

Re: skipping __init__ and using exploiting a class member instead

2013-10-19 Thread Peter Cacioppi
To be clear, my original post had a goof. So my original, de-goofed, idiom was class Foo (object) : _lazy = None def foo(self, x) : self._lazy = self._lazy or self.get_something(x) def get_something(self, x) : # doesn't really matter, so long as it returns truthy

Re: skipping __init__ and using exploiting a class member instead

2013-10-19 Thread Ned Batchelder
On 10/19/13 8:42 PM, Peter Cacioppi wrote: To be clear, my original post had a goof. So my original, de-goofed, idiom was class Foo (object) : _lazy = None def foo(self, x) : self._lazy = self._lazy or self.get_something(x) def get_something(self, x) : #

Re: Looking for UNICODE to ASCII Conversioni Example Code

2013-10-19 Thread Roy Smith
In article mailman.1267.1382220612.18130.python-l...@python.org, Chris Angelico ros...@gmail.com wrote: On Sun, Oct 20, 2013 at 3:49 AM, Roy Smith r...@panix.com wrote: So, yesterday, I tracked down an uncaught exception stack in our logs to a user whose username included the unicode

Re: Looking for UNICODE to ASCII Conversioni Example Code

2013-10-19 Thread Chris Angelico
On Sun, Oct 20, 2013 at 12:52 PM, Roy Smith r...@panix.com wrote: In article mailman.1267.1382220612.18130.python-l...@python.org, Chris Angelico ros...@gmail.com wrote: Or are you saying that that particular error code path did NOT handle non-ASCII characters? Exactly. The fundamental

Re: Looking for UNICODE to ASCII Conversioni Example Code

2013-10-19 Thread Roy Smith
In article mailman.1278.1382234998.18130.python-l...@python.org, Chris Angelico ros...@gmail.com wrote: Heck, I can't even really move off 2.6 because we use Amazon's EMR service, which is stuck on 2.6. Hrm. 2.6 is now in source-only security-only support, and that's about to end

Re: Looking for UNICODE to ASCII Conversioni Example Code

2013-10-19 Thread Ben Finney
Roy Smith r...@panix.com writes: In article mailman.1278.1382234998.18130.python-l...@python.org, Chris Angelico ros...@gmail.com wrote: Heck, I can't even really move off 2.6 because we use Amazon's EMR service, which is stuck on 2.6. Hrm. 2.6 is now in source-only security-only

Re: Looking for UNICODE to ASCII Conversioni Example Code

2013-10-19 Thread Chris Angelico
On Sun, Oct 20, 2013 at 1:26 PM, Ben Finney ben+pyt...@benfinney.id.au wrote: Roy Smith r...@panix.com writes: In article mailman.1278.1382234998.18130.python-l...@python.org, Chris Angelico ros...@gmail.com wrote: Heck, I can't even really move off 2.6 because we use Amazon's EMR

[issue19282] dbm.open should be a context manager

2013-10-19 Thread Claudiu.Popa
Claudiu.Popa added the comment: Attached patch checks that the db is actually closed after the `with`. Also, I noticed that dbm.dumb doesn't behave like the rest of the variants, as seen in the following: import dbm.dumb as d db = d.open('test.dat', 'c') db.close() db.keys() Traceback

[issue18709] SSL module fails to handle NULL bytes inside subjectAltNames general names (CVE-2013-4238)

2013-10-19 Thread Matěj Stuchlík
Matěj Stuchlík added the comment: There's no longer any suspicion, no, at least from my side. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18709 ___

[issue17087] Improve the repr for regular expression match objects

2013-10-19 Thread Claudiu.Popa
Claudiu.Popa added the comment: Added patch based on Serhiy's, which addresses your comments. It drops the group count and renames group0 to `match`. -- Added file: http://bugs.python.org/file32216/sre_repr6.patch ___ Python tracker

[issue969718] BASECFLAGS are not passed to module build line

2013-10-19 Thread Ned Deily
Ned Deily added the comment: Since I just noticed this and haven't seen it mentioned already: for the record, the Python Makefile for current versions is affected by this issue. The sharedmods target, which calls setup.py to build the standard library shared modules, explicitly passes into

[issue969718] BASECFLAGS are not passed to module build line

2013-10-19 Thread koobs
Changes by koobs koobs.free...@gmail.com: -- nosy: +koobs ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue969718 ___ ___ Python-bugs-list mailing

[issue16612] Integrate Argument Clinic into CPython trunk

2013-10-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8fde1a2c94dc by Larry Hastings in branch 'default': Issue #16612: Add Argument Clinic, a compile-time preprocessor http://hg.python.org/cpython/rev/8fde1a2c94dc -- nosy: +python-dev ___ Python tracker

[issue16612] Integrate Argument Clinic into CPython trunk

2013-10-19 Thread Larry Hastings
Larry Hastings added the comment: Checked in. Thanks everybody! -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16612

[issue16612] Integrate Argument Clinic into CPython trunk

2013-10-19 Thread koobs
koobs added the comment: _curses and _curses_panel fail to build after this commit on koobs-freebsd10 buildslave, with some lovely clang warnings too. Attaching full log here. -- nosy: +koobs Added file: http://bugs.python.org/file32217/koobs-freebsd10-py3x-build-610.log

[issue1222585] C++ compilation support for distutils

2013-10-19 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: Added file: http://bugs.python.org/file32218/python-2.7-distutils-C++.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1222585

[issue1222585] C++ compilation support for distutils

2013-10-19 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: Removed file: http://bugs.python.org/file28508/python-2.7-distutils-C++.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1222585

[issue1222585] C++ compilation support for distutils

2013-10-19 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: Added file: http://bugs.python.org/file32219/python-3.3-distutils-C++.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1222585

[issue1222585] C++ compilation support for distutils

2013-10-19 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: Added file: http://bugs.python.org/file32220/python-3.4-distutils-C++.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1222585

[issue1222585] C++ compilation support for distutils

2013-10-19 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: Removed file: http://bugs.python.org/file28509/python-3.2-distutils-C++.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1222585

[issue1222585] C++ compilation support for distutils

2013-10-19 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: Removed file: http://bugs.python.org/file28510/python-3.3-distutils-C++.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1222585

[issue1222585] C++ compilation support for distutils

2013-10-19 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: Removed file: http://bugs.python.org/file28511/python-3.4-distutils-C++.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1222585

[issue969718] BASECFLAGS are not passed to module build line

2013-10-19 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: OPT should not be used in Distutils at all. Lib/distutils/sysconfig.py should have: if 'CFLAGS' in os.environ: cflags = os.environ['CFLAGS'] Makefile.pre.in should have: $(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)'

[issue16612] Integrate Argument Clinic into CPython trunk

2013-10-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 47618b00405b by Serhiy Storchaka in branch 'default': Fix compilation of the curses module (broken by issue #16612). http://hg.python.org/cpython/rev/47618b00405b -- ___ Python tracker

[issue969718] BASECFLAGS are not passed to module build line

2013-10-19 Thread Ned Deily
Ned Deily added the comment: Arfrever, your proposal is certainly one of many possible solutions and one that would be appropriate if we were designing the Python configure, Makefile, and Distutils components from scratch or looking at major changes to Distutils. But we're not at this point.

[issue16038] ftplib: unlimited readline() from connection

2013-10-19 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: I think this is already fixed. Barry can we close this out? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16038 ___

[issue16612] Integrate Argument Clinic into CPython trunk

2013-10-19 Thread Stefan Behnel
Changes by Stefan Behnel sco...@users.sourceforge.net: -- nosy: -scoder ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16612 ___ ___

[issue16038] ftplib: unlimited readline() from connection

2013-10-19 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: It is fixed in Python 2.6, but not 2.7, 3.1, 3.2, 3.3, 3.4. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16038 ___

[issue8964] platform._sys_version does not parse correctly IronPython 2.x version

2013-10-19 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 19.10.2013 07:06, Martin Matusiak wrote: Martin Matusiak added the comment: It seems the versions of IronPython 1.0 mentioned in test cases do actually support the in keyword, so the first version of the patch is probably sufficient. Example

[issue19294] test_asyncio fails intermittently on OS X 10.4

2013-10-19 Thread Ned Deily
New submission from Ned Deily: Since asyncio was checked in, there have been a couple of similar buildbot failures on the OS X 10.4 (Tiger) buildbot sandwiched around a successful run. I also saw a similar failure on a 10.4 system I have. So far, the OS X 10.6 (Snow Leopard) buildbot has

[issue16742] PyOS_Readline drops GIL and calls PyOS_StdioReadline, which isn't thread safe

2013-10-19 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Perhaps in debug builds the memory apis should verify consistency and matching useage. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16742 ___

[issue19249] Enumeration.__eq__

2013-10-19 Thread CliffM
CliffM added the comment: It is appropriate to modify the pickle-module to trap (a potential) the singletonicity-breaking event and raise a warning ? (I'm guessing an exception would be far too rude) I like the idea of using identity-equality, but without the above trap one might get really

[issue19292] Make SSLContext.set_default_verify_paths() work on Windows

2013-10-19 Thread Christian Heimes
Christian Heimes added the comment: I've implemented most of the necessarily bindings in #17134. It's still missing trust setting checks and #16487 to load certs from memory or file object. -- ___ Python tracker rep...@bugs.python.org

[issue8964] platform._sys_version does not parse correctly IronPython 2.x version

2013-10-19 Thread Martin Matusiak
Martin Matusiak added the comment: Attaching a v3 which uses in and startswith. Just for good measure I ran this module on IronPython 1.0 and it fails on import: - bytes literal: b'(__libc_init)' - if as infix operator: line 177 - unexpected token open: use of with context manager on line

[issue19292] Make SSLContext.set_default_verify_paths() work on Windows

2013-10-19 Thread Christian Heimes
Christian Heimes added the comment: http://www.python.org/dev/peps/pep-0453/#bundling-ca-certificates-with-cpython proposes that ensurepip comes with a default CA cert bundle, too. I see two issues with the proposal: 1) We must have a way to update the cert bundle outside the release cycle,

[issue18709] SSL module fails to handle NULL bytes inside subjectAltNames general names (CVE-2013-4238)

2013-10-19 Thread Christian Heimes
Christian Heimes added the comment: I don't get it. Has somebody found a memory leak in my patch? Larry, I have removed 2.7, 3.3 and 3.4 from the affected versions. They fix has already landed. 3.1 and 3.2 are still open, though. Georg, the patch for 3.2 is still up to date. Are you going to

[issue19287] __contains__() of dbm.ndbm databases fails with str

2013-10-19 Thread Vajrasky Kok
Vajrasky Kok added the comment: What about dbm.gnu and dbm.dumb? Should we add string key support as well? -- nosy: +vajrasky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19287 ___

[issue8964] platform._sys_version does not parse correctly IronPython 2.x version

2013-10-19 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 19.10.2013 12:11, Martin Matusiak wrote: Attaching a v3 which uses in and startswith. Just for good measure I ran this module on IronPython 1.0 and it fails on import: - bytes literal: b'(__libc_init)' - if as infix operator: line 177 -

[issue19287] __contains__() of dbm.ndbm databases fails with str

2013-10-19 Thread Vajrasky Kok
Vajrasky Kok added the comment: Sorry, I just found out that you already created a separate ticket for dbm.gnu. http://bugs.python.org/issue19288 What about dbm.dumb? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19287

[issue19295] Make asyncio work without threads

2013-10-19 Thread Stefan Krah
New submission from Stefan Krah: I'm referring to msg200288. I guess this is low priority, since not many people will want to use asyncio on a build --without-threads. -- keywords: buildbot messages: 200399 nosy: gvanrossum, skrah priority: low severity: normal stage: needs patch

[issue19295] Make asyncio work without threads

2013-10-19 Thread Stefan Krah
Stefan Krah added the comment: Meanwhile, the patch addresses the buildbot failure. I currently don't have access to the machine with my ssh-key, so I can't commit the patch right now. -- keywords: +patch Added file: http://bugs.python.org/file3/issue19295.patch

[issue18777] Cannot compile _ssl.c using openssl 1.0

2013-10-19 Thread Christian Heimes
Changes by Christian Heimes li...@cheimes.de: -- resolution: fixed - status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18777 ___

[issue19251] bitwise ops for bytes of equal length

2013-10-19 Thread Christian Heimes
Christian Heimes added the comment: bytes(x ^ y for x, y in zip(a, b)) is super-slow if you have to do XOR inside a hot loop for a couple of ten thousand times. int.from_bytes + int.to_bytes is about ten times faster. I expect bitwise ops of bytes to be even faster and more readable. $

[issue19296] Compiler warning when compiling dbm module

2013-10-19 Thread Vajrasky Kok
New submission from Vajrasky Kok: I got this warning when compiling dbm module with Python 3.4. /home/sky/Code/python/programming_language/cpython/Modules/_dbmmodule.c: In function ‘newdbmobject’: /home/sky/Code/python/programming_language/cpython/Modules/_dbmmodule.c:55:5: warning: passing

[issue19287] __contains__() of dbm.ndbm databases fails with str

2013-10-19 Thread Berker Peksag
Berker Peksag added the comment: What about dbm.dumb? dbm.dumb works fine with str: $ python3.3 -c 'from dbm import dumb; db=dumb.open(/tmp/db2, c); db[key]=value; print(bkey in db); print(key in db)' True True $ ./python -c 'from dbm import dumb; db=dumb.open(/tmp/db2, c); db[key]=value;

[issue16742] PyOS_Readline drops GIL and calls PyOS_StdioReadline, which isn't thread safe

2013-10-19 Thread STINNER Victor
STINNER Victor added the comment: Kristján Valur Jónsson added the comment: Perhaps in debug builds the memory apis should verify consistency and matching useage. Python does check usage of apis in debug mode. Memory allocation failure are almost never checked. See my pyfailmalloc module for

[issue8964] platform._sys_version does not parse correctly IronPython 2.x version

2013-10-19 Thread Martin Matusiak
Martin Matusiak added the comment: Double checked that the test passes against both default and 2.7 branches. Is there anything else that needs to happen here or are you satisfied, Marc-Andre? -- ___ Python tracker rep...@bugs.python.org

[issue18777] Cannot compile _ssl.c using openssl 1.0

2013-10-19 Thread Christian Heimes
Christian Heimes added the comment: Trent, can you have a look? There seems to be a hickup with the linker and dynamic loader. Python picks up the ssl libraries from /usr/lib instead of /usr/local/lib ld -b build/temp.hp-ux-B.11.31-ia64-3.4/home/cpython/cpython/Modules/_ssl.o

[issue19292] Make SSLContext.set_default_verify_paths() work on Windows

2013-10-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: Why is this not a security patch? Because it's not a vulnerability in the narrow technical sense? I expect that it will greatly increase the actual practical security, by making it easier to do the right thing. IMO it's not a vulnerability. It's not a

[issue19254] Python implementation of PBKDF2_HMAC

2013-10-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset e73627483d2f by Christian Heimes in branch 'default': Issue #19254: Provide an optimized Python implementation of PBKDF2_HMAC http://hg.python.org/cpython/rev/e73627483d2f -- nosy: +python-dev ___ Python

[issue19254] Python implementation of PBKDF2_HMAC

2013-10-19 Thread Christian Heimes
Christian Heimes added the comment: Serhiy, I have taken your review into account. I still need to use memoryview() in order to handle all types that are supported by the format char y*. -- components: +Library (Lib) resolution: - fixed stage: patch review - committed/rejected status:

[issue18582] PBKDF2 support

2013-10-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0a26ef834a49 by Christian Heimes in branch 'default': Issue #18582: provide a faster C implementation of pbkdf2_hmac that works with OpenSSL 1.0 http://hg.python.org/cpython/rev/0a26ef834a49 -- ___

  1   2   3   >