Matplotlib and optimization tutorials at PyCon US

2012-01-25 Thread Mike Müller
Hi, I will be giving a matplotlib and a optimization tutorial at PyCon in March. The first tutorial is a compact introduction to matplotlib. The optimization tutorial gives an overview over this topic. BTW, the early bird deadline is today. Mike Plotting with matplotlib

Re: Distributing methods of a class across multiple files

2012-01-25 Thread Frank Millman
lh lhughe...@gmail.com wrote: Is this possible please? I have done some searching but it is hard to narrow down Google searches to this question. What I would like to do is, for example: 1) define a class Foo in file test.py... give it some methods 2) define a file test2.py which contains a

Jobs for developers

2012-01-25 Thread Rima Al-Sheikh
Hi There, We are looking to hire talented developers to join different teams.. The candidate should be willing to move to Dubai, United Arab Emirates. The developer must have: 1. Experience in OOP. 2. Strong algorithm thinking. 3. average SQL database design skills. 4. Experience dealing

Re: unittest and threading

2012-01-25 Thread Ross Boylan
On Tue, 2012-01-24 at 13:54 -0800, Ross Boylan wrote: Is it safe to use unittest with threads? In particular, if a unit test fails in some thread other than the one that launched the test, will that information be captured properly? A search of the net shows a suggestion that all failures

search google with python

2012-01-25 Thread Tracubik
Hi all, i'ld like to make a simple program for searching images from python. All it have to do is make a search in google images and return the link of the images (20 images is enough i think) Is there any API or modules i can use? Thanks a lot Nico --

Algorithms in Python

2012-01-25 Thread Chetan Harjani
Is there any book or site on python algorithms which asks more and teaches less, I don't want to get bored, and at the same time I want to learn and act more. I use ubuntu. (just in case if its needed). #ALGORITHMS -- Chetan H Harjani IIT Delhi --

Re: search google with python

2012-01-25 Thread Chris Rebert
On Wed, Jan 25, 2012 at 1:55 AM, Tracubik affdfsdfds...@b.com wrote: Hi all, i'ld like to make a simple program for searching images from python. All it have to do is make a search in google images and return the link of the images (20 images is enough i think) Is there any API or modules i

Re: search google with python

2012-01-25 Thread Tracubik
Il Wed, 25 Jan 2012 02:27:18 -0800, Chris Rebert ha scritto: On Wed, Jan 25, 2012 at 1:55 AM, Tracubik affdfsdfds...@b.com wrote: Hi all, i'ld like to make a simple program for searching images from python. All it have to do is make a search in google images and return the link of the images

Re: Distributing methods of a class across multiple files

2012-01-25 Thread Steven D'Aprano
On Tue, 24 Jan 2012 19:54:24 -0800, lh wrote: Is this possible please? I have done some searching but it is hard to narrow down Google searches to this question. What I would like to do is, for example: 1) define a class Foo in file test.py... give it some methods 2) define a file test2.py

Re: unittest and threading

2012-01-25 Thread Mark Hammond
Let me have a guess :) On 25/01/2012 7:42 PM, Ross Boylan wrote: On Tue, 2012-01-24 at 13:54 -0800, Ross Boylan wrote: ... The code I want to test uses threads, but that is not entirely internal from the standpoint of the unit test framework. The unit test will be executing in one thread,

Re: Distributing methods of a class across multiple files

2012-01-25 Thread Jean-Michel Pichavant
lh wrote: Is this possible please? I have done some searching but it is hard to narrow down Google searches to this question. What I would like to do is, for example: 1) define a class Foo in file test.py... give it some methods 2) define a file test2.py which contains a set of methods that are

Re: Algorithms in Python

2012-01-25 Thread Alec Taylor
The thing about algorithms is they are applicable to many programming languages (in general). Read http://en.wikipedia.org/wiki/Turing_machine On Wed, Jan 25, 2012 at 9:06 PM, Chetan Harjani chetan.harj...@gmail.com wrote: Is there any book or site on python algorithms which asks more and

Re: Algorithms in Python

2012-01-25 Thread Nizamov Shawkat
2012/1/25 Chetan Harjani chetan.harj...@gmail.com: Is there any book or site on python algorithms which asks more and teaches less, I don't want to get bored, and at the same time I want to learn and act more. I use ubuntu. (just in case if its needed). #ALGORITHMS There is a Stanford online

CONCEPT OF GOD IN ISLAM !!!!!!!!!!!!!!!

2012-01-25 Thread BV
CONCEPT OF GOD IN ISLAM Sorry for not sending anything related to this group but it might be something new to you. CONCEPT OF GOD IN ISLAM It is a known fact that every language has one or more terms that are used in reference to God and sometimes to lesser deities. This is not the case with

Re: Algorithms in Python

2012-01-25 Thread Thijs Engels
I assume you have seen this book? http://www.apress.com/9781430232377 Thijs On Wed, Jan 25, 2012, at 15:36, Chetan Harjani wrote: Is there any book or site on python algorithms which asks more and teaches less, I don't want to get bored, and at the same time I want to learn and act more. I

looking for good tutorials/books for advanced beginners

2012-01-25 Thread Dobi
Hi, a few month ago I began to learn Python. I have read and understood the following tutorials so far: http://docs.python.org/py3k/tutorial/index.html http://docs.python.org/release/3.2/howto/functional.html http://docs.python.org/release/3.2/howto/doanddont.html

Re: Algorithms in Python

2012-01-25 Thread Visgean Skeloru
There is this book (it´s free ebook) http://www.brpreiss.com/books/opus7/html/book.html , you can also check this list: http://programming-motherfucker.com/become.html#Python or if you want something more official then there is official wiki page: http://wiki.python.org/moin/PythonBooks ...

Re: Distributing methods of a class across multiple files

2012-01-25 Thread lh
First, thanks for all the thoughtful replies. I am grateful. Second, I figured I'd get a lot of judgement about how I really shouldn't be doing this. Should have pre-empted it :-) oh well. There is a place IMHO for filename as another structuring element to help humans in search. Also it can be

Re: Distributing methods of a class across multiple files

2012-01-25 Thread Neil Cerutti
On 2012-01-25, lh lhughe...@gmail.com wrote: First, thanks for all the thoughtful replies. I am grateful. Second, I figured I'd get a lot of judgement about how I really shouldn't be doing this. Should have pre-empted it :-) oh well. There is a place IMHO for filename as another structuring

Re: Determining version of OpenSSL linked against python?

2012-01-25 Thread Adam Mercer
Hi Is this possible at all? Cheers Adam On Mon, Jan 23, 2012 at 14:01, Adam Mercer ramer...@gmail.com wrote: Hi I'm trying to write a script that determines the version of OpenSSL that python is linked against, using python-2.7 this is easy as I can use:    import ssl    

Re: search google with python

2012-01-25 Thread Jerry Hill
On Wed, Jan 25, 2012 at 5:36 AM, Tracubik affdfsdfds...@b.com wrote: thanks a lot but it say it's deprecated, is there a replacement? Anyway it'll useful for me to study json, thanks :) I don't believe Google is particularly supportive of allowing third-parties (like us) to use their search

Re: Algorithms in Python

2012-01-25 Thread Chetan Harjani
Thanks Alec for the link. U know I wanted to read this book by Simon Singh - The Code Book, I hear its good. Thanks Nizamov for the link, I am really looking forward to join the class, and since its free, it is totally an asset. Yes Thijs I have seen this book, and since its such a big book, I

Find the mime type of a file.

2012-01-25 Thread Olive
I want to have a list of all the images in a directory. To do so I want to have a function that find the mime type of a file. I have found mimetypes.guess_type but it only works by examining the extension. In GNU/Linux the file utility do much better by actually looking at the file. Is there an

Re: Is a with on open always necessary?

2012-01-25 Thread K Richard Pixley
On 1/20/12 07:44 , Andrea Crotti wrote: I normally didn't bother too much when reading from files, and for example I always did a content = open(filename).readlines() But now I have the doubt that it's not a good idea, does the file handler stays open until the interpreter quits? So maybe

Re: Is a with on open always necessary?

2012-01-25 Thread K Richard Pixley
On 1/21/12 03:38 , Lie Ryan wrote: It is only strictly necessary for programs that opens thousands of files in a short while, since the operating system may limit of the number of active file handlers you can have. The number you're looking for is 20 on many unix systems. That's all. 20

PyWart: Python regular expression syntax is not intuitive.

2012-01-25 Thread Rick Johnson
In particular i find the extension notation syntax to be woefully inadequate. You should be able to infer the action of the extension syntax intuitively, simply from looking at its signature. I find myself continually needing to consult the docs because of the lacking or misleading style of the

Where to put data

2012-01-25 Thread bvdp
I'm having a disagreement with a buddy on the packaging of a program we're doing in Python. It's got a number of modules and large number of library files. The library stuff is data, not code. I'd like to put the modules in /usr/lib/pythonX.Y/mymodules or wherever setup.py decides. And the

Re: The devolution of English language and slothful c.l.p behaviors exposed!

2012-01-25 Thread K Richard Pixley
On 1/23/12 21:57 , Rick Johnson wrote: Here is a grep from the month of September 2011 showing the rampantly egregious misuse of the following words and phrases: * pretty * hard * right * used to * supposed to Pretty is the most ludicrous of them all! As you will see, pretty is used

Re: PyWart: Python regular expression syntax is not intuitive.

2012-01-25 Thread Rick Johnson
On Jan 25, 11:16 am, Rick Johnson rantingrickjohn...@gmail.com wrote: {!()...} or (!...) # Non Capturing. Yuck: on second thought, i don't like {!()...}, mainly because non- capturing groups should use the parenthesis delimiters to keep the API consistent. Try this instead -- (!:...)

Re: Find the mime type of a file.

2012-01-25 Thread Chris Rebert
On Wed, Jan 25, 2012 at 9:04 AM, Olive di...@bigfoot.com wrote: I want to have a list of all the images in a directory. To do so I want to have a function that find the mime type of a file. I have found mimetypes.guess_type but it only works by examining the extension. In GNU/Linux the file

Re: What happened tp scipy.stsci?

2012-01-25 Thread Wanderer
I found it it is in the stsci package. On Jan 24, 11:36 am, Eelco hoogendoorn.ee...@gmail.com wrote: Either way, if I understand correctly, what you are trying to do could be done with numpy.median(imagestack, axis=stackaxis), no? Yes, I guess so. I didn't realize numpy.median had an axis

Re: Is a with on open always necessary?

2012-01-25 Thread Lie Ryan
On 01/26/2012 04:17 AM, K Richard Pixley wrote: On 1/21/12 03:38 , Lie Ryan wrote: It is only strictly necessary for programs that opens thousands of files in a short while, since the operating system may limit of the number of active file handlers you can have. The number you're looking for

Re: Where to put data

2012-01-25 Thread Rick Johnson
On Jan 25, 11:26 am, bvdp b...@mellowood.ca wrote: I've got 2 issues with this:    1. I don't know if putting data in the python tree is legit.    2. I'd have to do a lot of rewritting. My modules currently use: I would not put anything in the toplevel Python folder. You need to place

Getting an embedded Python runtime to use the current active virtualenv

2012-01-25 Thread Brian Rossa
Hi all, I've had this question up on Stackoverflow for a while but no one has yet come along with an authoritative answer. I've written some C code that interfaces with a Python package through an embedded Python runtime. All of it works pretty well except that now I want the embedded runtime to

Re: Where to put data

2012-01-25 Thread Evan Driscoll
I would just like to make a strong plea that you make it possible to install in places other than /usr. Bascially, 'python setup.py install --prefix /some/alternative/place' should work. Evan On 01/25/2012 11:26 AM, bvdp wrote: I'm having a disagreement with a buddy on the packaging of a

Re: PyWart: Python regular expression syntax is not intuitive.

2012-01-25 Thread Duncan Booth
Rick Johnson rantingrickjohn...@gmail.com wrote: (?...) # Base Extension Syntax All extensions are wrapped in parenthesis and start with a question mark, but i believe the question mark was a very bad choice, since the question mark is already specific to zero or one repetitions of

Re: Jobs for developers

2012-01-25 Thread Chris Withers
On 24/01/2012 19:02, Rima Al-Sheikh wrote: Hi There, We are looking to hire talented developers to join different teams.. Please use the job board rather than spamming the mailing list: http://www.python.org/community/jobs/ cheers, Chris -- Simplistix - Content Management, Batch

Re: The devolution of English language and slothful c.l.p behaviors exposed!

2012-01-25 Thread MRAB
On 25/01/2012 05:55, Michael Torrie wrote: On 01/24/2012 10:49 PM, Michael Torrie wrote: On 01/24/2012 05:43 PM, Rick Johnson wrote: Actually my custom script had a small flaw which kept it from capturing ALL the atrocities. Here is a run with the bugfixes: Wow. I had to trim 80% of your

Current Web URL

2012-01-25 Thread William Abdo
Hi All, I have been breaking my brains to find a solution to determining what the current URL is in a web browser navigation bar. It cannot be a prefixed values since I will not know what platform it is running from at the time it is opened by the users. Can this URL be extracted from the

Re: Determining version of OpenSSL linked against python?

2012-01-25 Thread Terry Reedy
On 1/25/2012 11:02 AM, Adam Mercer wrote: Is this possible at all? If you are not willing to tell Debian Squeeze users to install 2.7, or that they cannot run your program, ask the bug reporter to tell you what version of OpenSSL the system comes with and code it into your program. Or

ANN: pyftpdlib 0.7.0 released

2012-01-25 Thread Giampaolo Rodolà
Hi, I'm pleased to announce release 0.7.0 of Python FTP Server library (pyftpdlib). http://code.google.com/p/pyftpdlib/ === About === Python FTP server library provides an high-level portable interface to easily write asynchronous FTP/S servers with Python. pyftpdlib is currently the most

Re: PyWart: Python regular expression syntax is not intuitive.

2012-01-25 Thread Ian Kelly
On Wed, Jan 25, 2012 at 10:16 AM, Rick Johnson rantingrickjohn...@gmail.com wrote: (?...)  # Base Extension Syntax All extensions are wrapped in parenthesis and start with a question mark, but i believe the question mark was a very bad choice, since the question mark is already specific to

Re: search google with python

2012-01-25 Thread John Nagle
On 1/25/2012 8:38 AM, Jerry Hill wrote: On Wed, Jan 25, 2012 at 5:36 AM, Tracubikaffdfsdfds...@b.com wrote: thanks a lot but it say it's deprecated, is there a replacement? Anyway it'll useful for me to study json, thanks :) I don't believe Google is particularly supportive of allowing

Re: The devolution of English language and slothful c.l.p behaviors exposed!

2012-01-25 Thread Rick Johnson
On Jan 25, 11:26 am, K Richard Pixley r...@noir.com wrote: I disagree on all points. Pretty means mostly.  The difference in meaning is significant. I'm sure is definitive.  I'm pretty sure leaves room for variation. But pretty does not translate well as a quantifier, even though that's

Re: PyWart: Python regular expression syntax is not intuitive.

2012-01-25 Thread Terry Reedy
On 1/25/2012 12:16 PM, Rick Johnson wrote: (?...) # Base Extension Syntax All extensions are wrapped in parenthesis and start with a question mark, but i believe the question mark was a very bad choice, since the I think that syntax came either from Perl or the pcre library used by several

Re: The devolution of English language and slothful c.l.p behaviors exposed!

2012-01-25 Thread Neil Cerutti
On 2012-01-25, Rick Johnson rantingrickjohn...@gmail.com wrote: Wow, why i am not surprised! Let's pick one usage at random and try to understand it. I think XYZ is pretty easy. You don't even need pretty to get your point across. You could simply say I think XYZ is easy. Furthermore, if you

Re: Determining version of OpenSSL linked against python?

2012-01-25 Thread Adam Mercer
On Wed, Jan 25, 2012 at 14:04, Terry Reedy tjre...@udel.edu wrote: If you are not willing to tell Debian Squeeze users to install 2.7, or that they cannot run your program, ask the bug reporter to tell you what version of OpenSSL the system comes with and code it into your program. I would

Re: Algorithms in Python

2012-01-25 Thread Martin Schöön
On 2012-01-25, Chetan Harjani chetan.harj...@gmail.com wrote: Thanks Alec for the link. U know I wanted to read this book by Simon Singh - The Code Book, I hear its good. It indeed is. I only remember one error, an error every Scandinavian would have spotted. His book on Fermat's theorem is

Re: Determining version of OpenSSL linked against python?

2012-01-25 Thread Nick Dokos
Adam Mercer ramer...@gmail.com wrote: On Wed, Jan 25, 2012 at 14:04, Terry Reedy tjre...@udel.edu wrote: If you are not willing to tell Debian Squeeze users to install 2.7, or that they cannot run your program, ask the bug reporter to tell you what version of OpenSSL the system comes

Re: Current Web URL

2012-01-25 Thread Chris Rebert
On Wed, Jan 25, 2012 at 11:38 AM, William Abdo william.a...@verio.net wrote: Hi All, I have been breaking my brains to find a solution to determining what the current URL is in a web browser navigation bar. It cannot be a prefixed values since I will not know what platform it is running

Re: Determining version of OpenSSL linked against python?

2012-01-25 Thread Adam Mercer
On Wed, Jan 25, 2012 at 14:56, Nick Dokos nicholas.do...@hp.com wrote: One other possibility is to parse the output of ssh -V: , | $ ssh -V | OpenSSH_5.8p1 Debian-1ubuntu3, OpenSSL 0.9.8o 01 Jun 2010 | $ python | Python 2.7.1+ (r271:86832, Apr 11 2011, 18:13:53) | [GCC 4.5.2] on

Re: PyWart: Python regular expression syntax is not intuitive.

2012-01-25 Thread Rick Johnson
On Jan 25, 2:17 pm, Ian Kelly ian.g.ke...@gmail.com wrote: On Wed, Jan 25, 2012 at 10:16 AM, Rick Johnson Did you read the very first sentence of the re module documentation? This module provides regular expression matching operations *similar to those found in Perl* (my emphasis).  The goal

Re: Determining version of OpenSSL linked against python?

2012-01-25 Thread Anssi Saari
Adam Mercer ramer...@gmail.com writes: Can anyone offer any suggestions as to what is going wrong with the above code or offer an alternative way of determining the OpenSSl version using python-2.6? I suppose you could use ctypes to load the library and call SSLeay() which returns the OpenSSL

Re: Determining version of OpenSSL linked against python?

2012-01-25 Thread Adam Mercer
On Wed, Jan 25, 2012 at 15:21, Anssi Saari a...@sci.fi wrote: I suppose you could use ctypes to load the library and call SSLeay() which returns the OpenSSL version number as a C long. Like this: from ctypes import * libssl = cdll.LoadLibrary(libssl.so) openssl_version = libssl.SSLeay()

Re: PyWart: Python regular expression syntax is not intuitive.

2012-01-25 Thread Duncan Booth
Rick Johnson rantingrickjohn...@gmail.com wrote: On Jan 25, 2:17ÿpm, Ian Kelly ian.g.ke...@gmail.com wrote: On Wed, Jan 25, 2012 at 10:16 AM, Rick Johnson Did you read the very first sentence of the re module documentation? This module provides regular expression matching operations

Re: The devolution of English language and slothful c.l.p behaviors exposed!

2012-01-25 Thread Ian Kelly
On Wed, Jan 25, 2012 at 1:14 PM, Rick Johnson rantingrickjohn...@gmail.com wrote: Wow, why i am not surprised! Let's pick one usage at random and try to understand it. I think XYZ is pretty easy. You don't even need pretty to get your point across. You could simply say I think XYZ is easy.

Re: Where to put data

2012-01-25 Thread bvdp
Right now my program does a search for modules in all the normal places, which seems to work for windows, mac and linux. Once the modules are found I just insert that location into sys.path[0]. Which permits the modules to reside anywhere on the HDD. However, I have feeling that this isn't

Re: Where to put data

2012-01-25 Thread bvdp
I would not put anything in the toplevel Python folder. You need to place everything under site-packages -- Python27\Lib\site-packages \PackageName\blah. Of course client created files should be saved to a more accessible place. Oh. Just looking at my setup (Ubunutu 11.10) and I see that

Re: PyWart: Python regular expression syntax is not intuitive.

2012-01-25 Thread Rick Johnson
On Jan 25, 3:41 pm, Duncan Booth duncan.bo...@invalid.invalid wrote: Rick Johnson rantingrickjohn...@gmail.com wrote: On Jan 25, 2:17ÿpm, Ian Kelly ian.g.ke...@gmail.com wrote: On Wed, Jan 25, 2012 at 10:16 AM, Rick Johnson Did you read the very first sentence of the re module

Re: PyWart: Python regular expression syntax is not intuitive.

2012-01-25 Thread Devin Jeanpierre
On Wed, Jan 25, 2012 at 2:32 PM, Duncan Booth duncan.booth@invalid.invalid wrote: The problem with your idea is that it breaks compatability with other non- Python regular expression engines. Python didn't invent the (?...) syntax, it originated with Perl. Try complaining to a Perl group

Re: The devolution of English language and slothful c.l.p behaviors exposed!

2012-01-25 Thread Rick Johnson
On Jan 25, 3:45 pm, Ian Kelly ian.g.ke...@gmail.com wrote: On Wed, Jan 25, 2012 at 1:14 PM, Rick Johnson rantingrickjohn...@gmail.com wrote: Wow, why i am not surprised! Let's pick one usage at random and try to understand it. I think XYZ is pretty easy. You don't even need pretty to get

Re: PyWart: Python regular expression syntax is not intuitive.

2012-01-25 Thread Devin Jeanpierre
On Wed, Jan 25, 2012 at 12:16 PM, Rick Johnson rantingrickjohn...@gmail.com wrote: In particular i find the extension notation syntax to be woefully inadequate. You should be able to infer the action of the extension syntax intuitively, simply from looking at its signature. This is nice in

Re: The devolution of English language and slothful c.l.p behaviors exposed!

2012-01-25 Thread Chris Kaynor
On Wed, Jan 25, 2012 at 3:23 PM, Rick Johnson rantingrickjohn...@gmail.comwrote: On Jan 25, 3:45 pm, Ian Kelly ian.g.ke...@gmail.com wrote: On Wed, Jan 25, 2012 at 1:14 PM, Rick Johnson In all seriousness, the idea that very and somewhat are somehow better in this context than pretty just

Re: PyWart: Python regular expression syntax is not intuitive.

2012-01-25 Thread Ian Kelly
On Wed, Jan 25, 2012 at 2:19 PM, Rick Johnson rantingrickjohn...@gmail.com wrote: I disagree here. Whist some people may be die-hard fans of the un-intuitive perl regex syntax, i believe many, if not exponentially MORE people would like to have a better alternative. Do i want to remove the

Re: PyWart: Python regular expression syntax is not intuitive.

2012-01-25 Thread Rick Johnson
On Jan 25, 5:28 pm, Devin Jeanpierre jeanpierr...@gmail.com wrote: Perhaps you should perform some experiments to prove intuitiveness [of your syntax]? I've posted my thoughts and my initial syntax. You (and everyone else) are free to critic or offer suggestions of your own. Listen, none of

Re: Find the mime type of a file.

2012-01-25 Thread Jon Clements
On Jan 25, 5:04 pm, Olive di...@bigfoot.com wrote: I want to have a list of all the images in a directory. To do so I want to have a function that find the mime type of a file. I have found mimetypes.guess_type but it only works by examining the extension. In GNU/Linux the file utility do much

Re: PyWart: Python regular expression syntax is not intuitive.

2012-01-25 Thread Rick Johnson
On Jan 25, 5:36 pm, Ian Kelly ian.g.ke...@gmail.com wrote: On Wed, Jan 25, 2012 at 2:19 PM, Rick Johnson rantingrickjohn...@gmail.com wrote: I disagree here. Whist some people may be die-hard fans of the un-intuitive perl regex syntax, i believe many, if not exponentially MORE people

Re: The devolution of English language and slothful c.l.p behaviors exposed!

2012-01-25 Thread Ian Kelly
On Wed, Jan 25, 2012 at 4:23 PM, Rick Johnson rantingrickjohn...@gmail.com wrote: Only to you. In my world, the pleasurable aspects of a tangible object can have no effect on my opinion of the difficulty of a task. Then your world is not the real world, that being the one that is actually

Re: The devolution of English language and slothful c.l.p behaviors exposed!

2012-01-25 Thread Jugurtha Hadjar
I just came home. It is 01h19 AM here in Algiers (Algeria, North Africa.. Not New Orleans) and I find this funny thread. Thank you, by the way. I started communicating in English about two years ago, mostly on human sciences topics and was forced to articulate ideas and concepts in this

Re: The devolution of English language and slothful c.l.p behaviors exposed!

2012-01-25 Thread John O'Hagan
On Wed, 25 Jan 2012 15:38:12 -0800 Chris Kaynor ckay...@zindagigames.com wrote: [...] Would you prefer the Oxford or Merriam-Webster dictionaries. They are a bit more established than dictionary.com in terms of standardizing the languages. Definition 4 of the Merriam-Webster dictionary

Re: The devolution of English language and slothful c.l.p behaviors exposed!

2012-01-25 Thread Steven D'Aprano
On Wed, 25 Jan 2012 12:14:43 -0800, Rick Johnson wrote: PS: Just like i suspected; not one single use of pretty was wielded to describe the pleasurable attributes of a person, place, or thing. Mind boggling! Have you even bothered to look up pretty in the dictionary? Dictionary.com has this

Re: The devolution of English language and slothful c.l.p behaviors exposed!

2012-01-25 Thread K. Richard Pixley
On 1/25/12 12:14 , Rick Johnson wrote: You don't even need pretty to get your point across. If that's your argument, then we can drop the verb to be, most articles, most verb conjugations, and nearly all adjectives and adverbs. For that matter, the vast majority of posts here can be dropped

Re: The devolution of English language and slothful c.l.p behaviors exposed!

2012-01-25 Thread Rick Johnson
On Jan 25, 6:20 pm, Ian Kelly ian.g.ke...@gmail.com wrote: On Wed, Jan 25, 2012 at 4:23 PM, Rick Johnson I was frightened that the finals might be difficult this year, however to my surprise, they were not. In this case the writer does not *precisely* quantify the difficulty of his

Re: PyWart: Python regular expression syntax is not intuitive.

2012-01-25 Thread Steven D'Aprano
On Wed, 25 Jan 2012 09:16:01 -0800, Rick Johnson wrote: In particular i find the extension notation syntax to be woefully inadequate. You should be able to infer the action of the extension syntax intuitively, simply from looking at its signature. I find myself continually needing to consult

Re: PyWart: Python regular expression syntax is not intuitive.

2012-01-25 Thread Steven D'Aprano
On Wed, 25 Jan 2012 16:14:09 -0800, Rick Johnson wrote: It is germane in the fact that i believe PyParsing, re, and my new regex module can co-exist in harmony. You don't have a new regex module. When you have written it, then you will have a new regex module. Until then, you're all talk.

Re: The devolution of English language and slothful c.l.p behaviors exposed!

2012-01-25 Thread Ian Kelly
On Wed, Jan 25, 2012 at 6:00 PM, Rick Johnson rantingrickjohn...@gmail.com wrote: On Jan 25, 6:20 pm, Ian Kelly ian.g.ke...@gmail.com wrote: On Wed, Jan 25, 2012 at 4:23 PM, Rick Johnson I was frightened that the finals might be difficult this year, however to my surprise, they were not.

Re: PyWart: Python regular expression syntax is not intuitive.

2012-01-25 Thread Michael Torrie
On 01/25/2012 06:54 PM, Steven D'Aprano wrote: The only intuitive interface is the nipple. Everything else is learned. I think young mothers would even disagree with that. It's learned just like everything else in life. Albeit very rapidly. --

Re: PyWart: Python regular expression syntax is not intuitive.

2012-01-25 Thread Devin Jeanpierre
On Wed, Jan 25, 2012 at 7:14 PM, Rick Johnson rantingrickjohn...@gmail.com wrote: It is germane in the fact that i believe PyParsing, re, and my new regex module can co-exist in harmony. If all you're going to change is the parser, maybe it'd be easier to get things to coexist if parsers were

Re: The devolution of English language and slothful c.l.p behaviors exposed!

2012-01-25 Thread Rick Johnson
On Jan 25, 6:28 pm, Jugurtha Hadjar jugurtha.had...@gmail.com wrote: I am sincerely sorry if my English offends some purists, but I am making efforts to write correctly, and making mistakes to learn. To learn this and many other things... Hello Jugurtha, You English does not offend me. i

import fails in non-interactive interpreter

2012-01-25 Thread Brian
I've been banging my head against this for the past hour, and I'm hoping someone here can set me straight. I have a virtualenv setup for a Pyramid app and I'm having trouble importing the paste.deploy module in a standalone, non-Pyramid script within the virtualenv. For testing purposes I have a

Re: The devolution of English language and slothful c.l.p behaviors exposed!

2012-01-25 Thread Rick Johnson
On Jan 25, 8:02 pm, Ian Kelly ian.g.ke...@gmail.com wrote: On Wed, Jan 25, 2012 at 6:00 PM, Rick Johnson rantingrickjohn...@gmail.com wrote: On Jan 25, 6:20 pm, Ian Kelly ian.g.ke...@gmail.com wrote: On Wed, Jan 25, 2012 at 4:23 PM, Rick Johnson My writing skills are not in question here,

Re: import fails in non-interactive interpreter

2012-01-25 Thread Devin Jeanpierre
On Wed, Jan 25, 2012 at 9:25 PM, Brian brian.brine...@gmail.com wrote: Under what situations would a module be available to through the interactive interpreter but not the non-interactive? I don't know if it matches your situation, but one such case is this: The interactive interpreter (and

Re: Where to put data

2012-01-25 Thread Michael Torrie
On 01/25/2012 03:29 PM, bvdp wrote: Right now my program does a search for modules in all the normal places, which seems to work for windows, mac and linux. Once the modules are found I just insert that location into sys.path[0]. Which permits the modules to reside anywhere on the HDD.

Re: The devolution of English language and slothful c.l.p behaviors exposed!

2012-01-25 Thread Chris Angelico
On Thu, Jan 26, 2012 at 2:01 PM, Rick Johnson rantingrickjohn...@gmail.com wrote: I believe we'll just have to agree to disagree on the issue of pretty. However, let's take a step back and view this issue from a global perspective. Ask yourself: Q: Am i choosing my words carefully, or just

Re: PyWart: Python regular expression syntax is not intuitive.

2012-01-25 Thread Rick Johnson
On Jan 25, 8:24 pm, Devin Jeanpierre jeanpierr...@gmail.com wrote: On Wed, Jan 25, 2012 at 7:14 PM, Rick Johnson rantingrickjohn...@gmail.com wrote: It is germane in the fact that i believe PyParsing, re, and my new regex module can co-exist in harmony. If all you're going to change is

Re: The devolution of English language and slothful c.l.p behaviors exposed!

2012-01-25 Thread Steven D'Aprano
On Wed, 25 Jan 2012 15:23:10 -0800, Rick Johnson wrote: Let's see what intelligent words we can find here... doohickey a name for something one doesn't know the name of, 1914, Amer.Eng., arbitrary formation. thing·a·ma·jig a gadget or other thing for which the speaker does not know or

Re: The devolution of English language and slothful c.l.p behaviors exposed!

2012-01-25 Thread Chris Angelico
On Thu, Jan 26, 2012 at 4:14 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: In the same way that a native English speaker would never make the mistake of using organ to refer to an unnamed mechanical device, so she would never use gadget to refer to an unnamed body part. I

Re: PyWart: Python regular expression syntax is not intuitive.

2012-01-25 Thread Steven D'Aprano
On Wed, 25 Jan 2012 15:44:35 -0800, Rick Johnson wrote: I've posted my thoughts and my initial syntax. You (and everyone else) are free to critic or offer suggestions of your own. Listen, none of these issues that plague Python are going to be resolved until people around here set aside the

Re: The devolution of English language and slothful c.l.p behaviors exposed!

2012-01-25 Thread rusi
The contents of this thread ostensibly argues about the word 'pretty' Actually it seems to be arguing about the word 'troll' Every other post calls the OP a troll and then outdoes his post in length. This does not match any meaning I can make of trolling. Can someone please explain what 'troll'

Re: PyWart: Python regular expression syntax is not intuitive.

2012-01-25 Thread Steven D'Aprano
On Wed, 25 Jan 2012 13:17:11 -0700, Ian Kelly wrote: 2) Permitting flags in the regular expression allows different combinations of flags to be in effect for different parts of complex regular expressions. You can't do that just by passing in the flags as an argument. I don't believe

Re: PyWart: Python regular expression syntax is not intuitive.

2012-01-25 Thread Evan Driscoll
On 1/25/2012 20:24, Devin Jeanpierre wrote: If all you're going to change is the parser, maybe it'd be easier to get things to coexist if parsers were pluggable in the re module. It's more generally useful, too. Would let re gain a PyParsing/SNOBOL like expression syntax, for example. Or a

Re: The devolution of English language and slothful c.l.p behaviors exposed!

2012-01-25 Thread Joshua Landau
On 26 January 2012 05:25, rusi rustompm...@gmail.com wrote: The contents of this thread ostensibly argues about the word 'pretty' Actually it seems to be arguing about the word 'troll' Every other post calls the OP a troll and then outdoes his post in length. This does not match any meaning

Re: The devolution of English language and slothful c.l.p behaviors exposed!

2012-01-25 Thread Ian Kelly
On Wed, Jan 25, 2012 at 10:25 PM, rusi rustompm...@gmail.com wrote: The contents of this thread ostensibly argues about the word 'pretty' Actually it seems to be arguing about the word 'troll' Every other post calls the OP a troll and then outdoes his post in length. I just grepped, and it's

[issue13858] readline fails on nonblocking, unbuffered io.FileIO objects

2012-01-25 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Can this be handled some other way? Yeah, that's an hairy issue. See #13322 for the details. -- nosy: +neologix resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - buffered read() and

[issue13841] multiprocessing should use sys.exit() where possible

2012-01-25 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: * atexit callbacks are NOT run (although multiprocessing.util._exit_function IS run), It may be a good thing after a fork() (e.g. you don't want to remove the same file twice), but it most definitely looks wrong for a new

[issue13322] buffered read() and write() does not raise BlockingIOError

2012-01-25 Thread Matt Joiner
Matt Joiner anacro...@gmail.com added the comment: The patches only fix write? What about read? http://bugs.python.org/issue13858 -- nosy: +anacrolix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13322

[issue13852] Doc fixes with patch

2012-01-25 Thread Boštjan Mejak
Changes by Boštjan Mejak bostjan.me...@gmail.com: -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13852 ___ ___

[issue9285] Add a profile decorator to profile and cProfile

2012-01-25 Thread Yuval Greenfield
Changes by Yuval Greenfield ubershme...@gmail.com: -- nosy: +ubershmekel ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9285 ___ ___

[issue13857] Add textwrap.indent() as counterpart to textwrap.dedent()

2012-01-25 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: David Miller pointed out a shorter spelling: s.replace('\n', '\n' + (4 * ' ')) Still not particularly obvious to the reader (or writer), though. -- ___ Python tracker rep...@bugs.python.org

[issue13703] Hash collision security issue

2012-01-25 Thread Dave Malcolm
Dave Malcolm dmalc...@redhat.com added the comment: I'm attaching a patch which implements a hybrid approach: hybrid-approach-dmalcolm-2012-01-25-001.patch This is a blend of various approaches from the discussion, taking aspects of both hash randomization *and* collision-counting. It

  1   2   >