Re: Is print thread safe?

2014-08-12 Thread Cameron Simpson
On 12Aug2014 08:01, Marko Rauhamaa ma...@pacujo.net wrote: Steven D'Aprano steve+comp.lang.pyt...@pearwood.info: Personally, I believe that print ought to do its own locking. And print is a statement, although in this case there's no need to support anything older than 2.6, so something like

Re: Is print thread safe?

2014-08-12 Thread Cameron Simpson
On 12Aug2014 09:56, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Cameron Simpson wrote: On 12Aug2014 02:07, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Is this documented somewhere? In python/2.7.6/reference/simple_stmts.html#index-22, print is described in

Captcha identify

2014-08-12 Thread Wesley
Hi guys, These days I got a small task to identify Captcha characters. I googled a lot and find some way to do verification code identify. However, most are for general captcha. And, for simple captcha, I can use Pytesser. However, what about those advanced pictures. I mean: 1.including number

Re: Linux distros w/o Python in base installation

2014-08-12 Thread Ned Deily
In article captjjmpfyoxnp-1w2-_8riaoz30w2lsz5q7ky4fbpc-bpmv...@mail.gmail.com, Chris Angelico ros...@gmail.com wrote: Well, it only *became* contrary to recommended practice in response to Arch doing it and everyone seeing the issues it caused :) Personally, I'm glad they did. Lets those of

Python in financial services

2014-08-12 Thread Rustom Mody
Ive been asked to formulate a python course for financial services folk. If I actually knew about the subject, I'd have fatter pockets! Anyway heres some thoughts. What I am missing out? [Apart from basic python -- contents typically needs tailoring to the audience] the following: - Libraries

Re: Linux distros w/o Python in base installation

2014-08-12 Thread David Palao
2014-08-11 23:36 GMT+02:00 Ned Deily n...@acm.org: In article lsb84u$21c$1...@reader1.panix.com, Grant Edwards invalid@invalid.invalid wrote: Apparently. Perhaps theres an enable LSB compliance option somewhere in the Arch install docs, but I didn't see it... Also beware that, unlike most

Re: Linux distros w/o Python in base installation

2014-08-12 Thread Fabien
On 12.08.2014 09:59, David Palao wrote: Also Gentoo uses Python3 by default for some months now. The positive side effect for me has been that I started seriously to switch to python3. it's a matter of months for debian/ubuntu to rely only on python3 code too, while still respecting PEP 394:

Re: Linux distros w/o Python in base installation

2014-08-12 Thread Chris “Kwpolska” Warrick
On Mon, Aug 11, 2014 at 8:53 PM, Grant Edwards invalid@invalid.invalid wrote: I just installed Arch Linux for the first time, and was surprosed to find that Python isn't installed as part of a base system. It's also not included in the 'base-devel' package group. It's trivial to install, but

Re: how to get the ordinal number in list

2014-08-12 Thread alister
On Tue, 12 Aug 2014 00:21:28 -0700, wxjmfauth wrote: Math: Try to formalize with mathematics the Flexible String Representation. You should quickly realize, it is a logical mathematical absurdity. Unbelievable. jmf Mathematicians work with numbers (Algebra is a abstraction of numerical

Re: how to write file into my android phone?

2014-08-12 Thread Anssi Saari
Chris “Kwpolska” Warrick kwpol...@gmail.com writes: 2) the phone isn't necessarily visible on a pc as a drive at all. For example the Samsung gs4. This is actually true for ALL android devices, starting with Android 3.0. There was just a guy on comp.mobile.android saying his Android 4.2

Re: how to get the ordinal number in list

2014-08-12 Thread Chris Angelico
On Tue, Aug 12, 2014 at 8:40 PM, alister alister.nospam.w...@ntlworld.com wrote: On Tue, 12 Aug 2014 00:21:28 -0700, wxjmfauth wrote: [ chomp ] Mathematicians work with numbers (Algebra is a abstraction of numerical concepts) strings are concerned with characters (Arabic numerals are just

Re: Is print thread safe?

2014-08-12 Thread Chris Angelico
On Tue, Aug 12, 2014 at 2:31 PM, Cameron Simpson c...@zip.com.au wrote: I would expect file.write to be fast enough that the lock would usually be free. Until the day when it becomes really REALLY slow, because your program's piped into 'less' and the user's paging through it. But even apart

Re: Captcha identify

2014-08-12 Thread Denis McMahon
On Tue, 12 Aug 2014 00:04:33 -0700, Wesley wrote: These days I got a small task to identify Captcha characters. Several of us code websites. Some of our websites may even use captcha. We use captcha to stop software posting spam to websites. What makes you think we have any inclination to

Re: how to write file into my android phone?

2014-08-12 Thread Grant Edwards
On 2014-08-11, Grant Edwards invalid@invalid.invalid wrote: What MTP allows is parallel access between the MTP protocol server in the phone and the rest of the phone (OS and apps). In order to mount a partition as a USB mass storage device, it has to first be unmounted by the Android system.

Re: Linux distros w/o Python in base installation

2014-08-12 Thread Grant Edwards
On 2014-08-12, Chris “Kwpolska” Warrick kwpol...@gmail.com wrote: On Mon, Aug 11, 2014 at 8:53 PM, Grant Edwards invalid@invalid.invalid wrote: I just installed Arch Linux for the first time, and was surprosed to find that Python isn't installed as part of a base system. It's also not

Re: Captcha identify

2014-08-12 Thread Wesley
Here is captcha link: https://drive.google.com/folderview?id=0B33_p7UnVqoyd09mT3V0aWFxRmcusp=sharing 在 2014年8月12日星期二UTC+8下午8时59分11秒,Dennis Lee Bieber写道: On Tue, 12 Aug 2014 00:04:33 -0700 (PDT), Wesley nisp...@gmail.com declaimed the following: Hi guys, These days I got a small

Re: Captcha identify

2014-08-12 Thread Chris Angelico
On Wed, Aug 13, 2014 at 12:57 AM, Wesley nisp...@gmail.com wrote: Here is captcha link: https://drive.google.com/folderview?id=0B33_p7UnVqoyd09mT3V0aWFxRmcusp=sharing You seem to have misunderstood how grossly offensive your request is. I am now the third person to do you the courtesy of a

Re: Python in financial services

2014-08-12 Thread Johann Hibschman
Rustom Mody rustompm...@gmail.com writes: Ive been asked to formulate a python course for financial services folk. If I actually knew about the subject, I'd have fatter pockets! Anyway heres some thoughts. What I am missing out? Good luck! It's a pretty broad field, so everyone probably

Re: Captcha identify

2014-08-12 Thread Denis McMahon
On Wed, 13 Aug 2014 01:06:47 +1000, Chris Angelico wrote: Let me spell it out for you: NO WE WILL NOT do this for you. And if you do it yourself, we will not be happy. Just don't. Chris, I suspect he's a codemonkey in a chinese or similar asian spamhaus. We should probably be thankful that

Re: Linux distros w/o Python in base installation

2014-08-12 Thread Ian Kelly
On Tue, Aug 12, 2014 at 8:12 AM, Grant Edwards invalid@invalid.invalid wrote: On 2014-08-12, Chris “Kwpolska” Warrick kwpol...@gmail.com wrote: On Mon, Aug 11, 2014 at 8:53 PM, Grant Edwards invalid@invalid.invalid wrote: I just installed Arch Linux for the first time, and was surprosed to

Re: Captcha identify

2014-08-12 Thread Chris Angelico
On Wed, Aug 13, 2014 at 1:38 AM, Denis McMahon denismfmcma...@gmail.com wrote: On Wed, 13 Aug 2014 01:06:47 +1000, Chris Angelico wrote: Let me spell it out for you: NO WE WILL NOT do this for you. And if you do it yourself, we will not be happy. Just don't. Chris, I suspect he's a

Re: Python in financial services

2014-08-12 Thread Denis McMahon
On Tue, 12 Aug 2014 00:33:11 -0700, Rustom Mody wrote: Ive been asked to formulate a python course for financial services folk. I wouldn't worry too much about c or c++ interfacing paradigms. -- Denis McMahon, denismfmcma...@gmail.com -- https://mail.python.org/mailman/listinfo/python-list

Using asyncio workers in a `concurrent.futures` interface

2014-08-12 Thread cool-RR
Hello everybody! I have a question. I have a Django app running on Heroku. I need to run about 100 worker threads there to do uploads/downloads simultaneously. A Heroku Dyno has only 512MB of memory, so I'm reluctant to run 100 worker threads. (I've had Dynos crash from lack of memory when

Re: how to get the ordinal number in list

2014-08-12 Thread Neil D. Cerutti
On 8/10/2014 2:14 PM, Roy Smith wrote: In article 154cc342-7f85-4d16-b636-a1a953913...@googlegroups.com, Rustom Mody rustompm...@gmail.com wrote: l= [6,2,9,12,1,4] sorted(l,reverse=True)[:5] [12, 9, 6, 4, 2] No need to know how sorted works nor [:5] Now you (or Steven) can call it

Re: Python in financial services

2014-08-12 Thread Rustom Mody
On Tuesday, August 12, 2014 9:05:44 PM UTC+5:30, Johann Hibschman wrote: Rustom Mody writes: - Pandas - Numpy Scipy (which? how much?) For me, pandas is huge, numpy is a nice fundamental substrate, while only bits and pieces of scipy are used (mostly optimization). statsmodels may also

Re: Python in financial services

2014-08-12 Thread Rustom Mody
On Tuesday, August 12, 2014 9:20:16 PM UTC+5:30, Denis McMahon wrote: On Tue, 12 Aug 2014 00:33:11 -0700, Rustom Mody wrote: Ive been asked to formulate a python course for financial services folk. I wouldn't worry too much about c or c++ interfacing paradigms. And I dont like teaching that

Re: how to get the ordinal number in list

2014-08-12 Thread Rustom Mody
On Tuesday, August 12, 2014 11:10:48 PM UTC+5:30, Neil D. Cerutti wrote: On 8/10/2014 2:14 PM, Roy Smith wrote: Rustom Mody wrote: l= [6,2,9,12,1,4] sorted(l,reverse=True)[:5] [12, 9, 6, 4, 2] No need to know how sorted works nor [:5] Now you (or Steven) can call it abstract. And

Re: Using asyncio workers in a `concurrent.futures` interface

2014-08-12 Thread Marko Rauhamaa
cool-RR ram.rac...@gmail.com: If I understand correctly [asyncio] would let me run multiple uploads and downloads efficiently in one thread, which would conserve more resources than using threads. Asyncio does make it convenient to multiplex event on one or more threads. Threads have their

Begginer in python trying to load a .dll

2014-08-12 Thread c1223
Hi, Im working in the development of a program based in python that allow us to contrl a spectometer. The spectometer has an .dll file. The idea is to work through this dll and operate the spectometer. The name of the .dll is AS5216.dll. I've trying with ctype, but it doesn't work. I'm

Re: Using asyncio workers in a `concurrent.futures` interface

2014-08-12 Thread MRAB
On 2014-08-12 18:02, cool-RR wrote: Hello everybody! I have a question. I have a Django app running on Heroku. I need to run about 100 worker threads there to do uploads/downloads simultaneously. A Heroku Dyno has only 512MB of memory, so I'm reluctant to run 100 worker threads. (I've had Dynos

Re: Begginer in python trying to load a .dll

2014-08-12 Thread Chris Angelico
On Wed, Aug 13, 2014 at 4:36 AM, c1223 camiloce...@gmail.com wrote: Im working in the development of a program based in python that allow us to contrl a spectometer. The spectometer has an .dll file. The idea is to work through this dll and operate the spectometer. The name of the .dll is

Re: Begginer in python trying to load a .dll

2014-08-12 Thread Skip Montanaro
On Tue, Aug 12, 2014 at 1:36 PM, c1223 camiloce...@gmail.com wrote: I've trying with ctype, but it doesn't work. Can you post a small example of how you're trying to use cypes? I don't think a full example would be necessary, but knowing the API of one or two functions and how you're trying to

Re: how to get the ordinal number in list

2014-08-12 Thread alister
On Tue, 12 Aug 2014 23:39:42 +1000, Chris Angelico wrote: On Tue, Aug 12, 2014 at 8:40 PM, alister alister.nospam.w...@ntlworld.com wrote: On Tue, 12 Aug 2014 00:21:28 -0700, wxjmfauth wrote: [ chomp ] Mathematicians work with numbers (Algebra is a abstraction of numerical concepts)

Re: Begginer in python trying to load a .dll

2014-08-12 Thread Mark Lawrence
On 12/08/2014 19:36, c1223 wrote: Hi, Im working in the development of a program based in python that allow us to contrl a spectometer. The spectometer has an .dll file. The idea is to work through this dll and operate the spectometer. The name of the .dll is AS5216.dll. I've trying with

Re: Python in financial services

2014-08-12 Thread Denis McMahon
On Tue, 12 Aug 2014 10:48:14 -0700, Rustom Mody wrote: However those folks have thousands of lines of C/C++ which they are porting to python. That begs the question: Why? Seriously, I'd like to know what benefits they expect to achieve by doing so. -- Denis McMahon,

Re: Begginer in python trying to load a .dll

2014-08-12 Thread Chris Kaynor
On Tue, Aug 12, 2014 at 11:48 AM, Skip Montanaro s...@pobox.com wrote: Just as the off-chance your DLL was written in C++... I don't think you can interface with ctypes directly. I think you would have to write a little shim DLL which exposes a C-compatible API. You should be able to use

Re: Begginer in python trying to load a .dll

2014-08-12 Thread c1234 py
On Tuesday, August 12, 2014 3:36:17 PM UTC-3, c1234 py wrote: Hi, Im working in the development of a program based in python that allow us to contrl a spectometer. The spectometer has an .dll file. The idea is to work through this dll and operate the spectometer. The name of the .dll

Re: Begginer in python trying to load a .dll

2014-08-12 Thread Rob Gaddi
On Tue, 12 Aug 2014 11:56:37 -0700 (PDT) c1234 py camiloce...@gmail.com wrote: On Tuesday, August 12, 2014 3:36:17 PM UTC-3, c1234 py wrote: Hi, Im working in the development of a program based in python that allow us to contrl a spectometer. The spectometer has an .dll file. The idea

Re: Begginer in python trying to load a .dll

2014-08-12 Thread Chris Angelico
On Wed, Aug 13, 2014 at 4:58 AM, Rob Gaddi rgaddi@technologyhighland.invalid wrote: Great. And that fails in what way, on which line, with what error message? And, is that the entire program? Because if it is, then I can see at least one problem, a NameError. ChrisA --

Re: Python in financial services

2014-08-12 Thread Rustom Mody
On Wednesday, August 13, 2014 12:24:12 AM UTC+5:30, Denis McMahon wrote: On Tue, 12 Aug 2014 10:48:14 -0700, Rustom Mody wrote: However those folks have thousands of lines of C/C++ which they are porting to python. That begs the question: Why? Seriously, I'd like to know what benefits

Re: Begginer in python trying to load a .dll

2014-08-12 Thread c1234 py
On Tuesday, August 12, 2014 4:09:13 PM UTC-3, Chris Angelico wrote: On Wed, Aug 13, 2014 at 4:58 AM, Rob Gaddi rgaddi@technologyhighland.invalid wrote: Great. And that fails in what way, on which line, with what error message? And, is that the entire program? Because if it is, then

Re: how to get the ordinal number in list

2014-08-12 Thread Mark Lawrence
On 12/08/2014 19:45, alister wrote: On Tue, 12 Aug 2014 23:39:42 +1000, Chris Angelico wrote: On Tue, Aug 12, 2014 at 8:40 PM, alister alister.nospam.w...@ntlworld.com wrote: On Tue, 12 Aug 2014 00:21:28 -0700, wxjmfauth wrote: [ chomp ] Mathematicians work with numbers (Algebra is a

Re: Begginer in python trying to load a .dll

2014-08-12 Thread Christian Gollwitzer
Am 12.08.14 20:36, schrieb c1223: Hi, Im working in the development of a program based in python that allow us to contrl a spectometer. The spectometer has an .dll file. The idea is to work through this dll and operate the spectometer. The name of the .dll is AS5216.dll. I've trying with ctype,

Re: how to get the ordinal number in list

2014-08-12 Thread Neil D. Cerutti
On 8/12/2014 2:20 PM, Rustom Mody wrote: On Tuesday, August 12, 2014 11:10:48 PM UTC+5:30, Neil D. Cerutti wrote: Beginners are particularly poor, in relation to experts, at noticing the applicability of idea, and at combining ideas together. Breaking things into component parts has multiple

Re: Begginer in python trying to load a .dll

2014-08-12 Thread c1234 py
El martes, 12 de agosto de 2014 16:16:21 UTC-3, Christian Gollwitzer escribió: Am 12.08.14 20:36, schrieb c1223: Hi, Im working in the development of a program based in python that allow us to contrl a spectometer. The spectometer has an .dll file. The idea is to work through this

Suitable Python code to scrape specific details from web pages.

2014-08-12 Thread Simon Evans
Dear Programmers, I have been looking at the You tube 'Web Scraping Tutorials' of Chris Reeves. I have tried a few of his python programs in the Python27 command prompt, but altered them from accessing data using links say from the Dow Jones index, to accessing the details I would be interested

Re: Suitable Python code to scrape specific details from web pages.

2014-08-12 Thread Rob Gaddi
On Tue, 12 Aug 2014 13:00:30 -0700 (PDT) Simon Evans musicalhack...@yahoo.co.uk wrote: Dear Programmers, I have been looking at the You tube 'Web Scraping Tutorials' of Chris Reeves. I have tried a few of his python programs in the Python27 command prompt, but altered them from accessing

Re: Begginer in python trying to load a .dll

2014-08-12 Thread Mark Lawrence
On 12/08/2014 20:25, c1234 py wrote: El martes, 12 de agosto de 2014 16:16:21 UTC-3, Christian Gollwitzer escribió: Am 12.08.14 20:36, schrieb c1223: Hi, Im working in the development of a program based in python that allow us to contrl a spectometer. The spectometer has an .dll file.

Re: Python in financial services

2014-08-12 Thread Larry Martell
On Tue, Aug 12, 2014 at 3:33 AM, Rustom Mody rustompm...@gmail.com wrote: Ive been asked to formulate a python course for financial services folk. If I actually knew about the subject, I'd have fatter pockets! Anyway heres some thoughts. What I am missing out? [Apart from basic python --

Re: Suitable Python code to scrape specific details from web pages.

2014-08-12 Thread Roy Smith
In article a8f10c4f-d4a0-48ed-ae92-2a43e9a09...@googlegroups.com, Simon Evans musicalhack...@yahoo.co.uk wrote: Dear Programmers, I have been looking at the You tube 'Web Scraping Tutorials' of Chris Reeves. I have tried a few of his python programs in the Python27 command prompt, but

Re: Using asyncio workers in a `concurrent.futures` interface

2014-08-12 Thread Ian Kelly
On Tue, Aug 12, 2014 at 11:02 AM, cool-RR ram.rac...@gmail.com wrote: And that's it, no coroutines, no `yield from`. Since, if I understand correctly, asyncio requires a mainloop, it would make sense for the AsyncIOExecutor to have a thread of its own in which it could run its mainloop. I

Re: how to get the ordinal number in list

2014-08-12 Thread Terry Reedy
On 8/12/2014 1:40 PM, Neil D. Cerutti wrote: I disagree. For a beginner, you want to be able to break things down into individual steps and examine the result at each point. If you do: l= [6,2,9,12,1,4] l2 = sorted(l,reverse=True) you have the advantage that you can stop after creating l2

Re: Suitable Python code to scrape specific details from web pages.

2014-08-12 Thread Simon Evans
On Tuesday, August 12, 2014 9:00:30 PM UTC+1, Simon Evans wrote: Dear Programmers, I have been looking at the You tube 'Web Scraping Tutorials' of Chris Reeves. I have tried a few of his python programs in the Python27 command prompt, but altered them from accessing data using links say

Re: Suitable Python code to scrape specific details from web pages.

2014-08-12 Thread Steven D'Aprano
Simon Evans wrote: Dear Programmers, Thank you for your responses. I have installed 'Beautiful Soup' and I have the 'Getting Started in Beautiful Soup' book, but can't seem to make  any progress with it, I am too thick to make much use of it. I was hoping I could scrape specified stuff off

Re: Suitable Python code to scrape specific details from web pages.

2014-08-12 Thread Roy Smith
In article 53eaab7d$0$29979$c3e8da3$54964...@news.astraweb.com, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: By studying how other scraping programs work, and studying how your racing pages store data, you should be able to put the two together and see how to get the data you

Re: how to get the ordinal number in list

2014-08-12 Thread Steven D'Aprano
Chris Angelico wrote: On Mon, Aug 11, 2014 at 7:44 PM, Steven D'Aprano st...@pearwood.info wrote: I think this is why both declarative and functional programming idioms will remain niche (although important niches). Most tasks are inherently imperative to at least some degree, and often a

Re: Suitable Python code to scrape specific details from web pages.

2014-08-12 Thread Peter Pearson
On Tue, 12 Aug 2014 15:44:58 -0700 (PDT), Simon Evans wrote: [snip] Dear Programmers, Thank you for your responses. I have installed 'Beautiful Soup' and I have the 'Getting Started in Beautiful Soup' book, but can't seem to make any progress with it, I am too thick to make much use of it. I

Re: how to get the ordinal number in list

2014-08-12 Thread Chris Angelico
On Wed, Aug 13, 2014 at 10:47 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Chris Angelico wrote: On Mon, Aug 11, 2014 at 7:44 PM, Steven D'Aprano st...@pearwood.info wrote: I think this is why both declarative and functional programming idioms will remain niche (although

Re: Captcha identify

2014-08-12 Thread Wesley
If my questions make you guys not so happy, I am sorry and please just ignore. I just wanna a general suggestion here in the beginning. Why I need to write such program is just having such requirements, and has nothing to do with the coding work itself. Don't say something to prove you're so

Re: Captcha identify

2014-08-12 Thread Chris Angelico
On Wed, Aug 13, 2014 at 11:36 AM, Wesley nisp...@gmail.com wrote: If my questions make you guys not so happy, I am sorry and please just ignore. I just wanna a general suggestion here in the beginning. Why I need to write such program is just having such requirements, and has nothing to do

Re: how to get the ordinal number in list

2014-08-12 Thread Roy Smith
In article mailman.12903.1407893523.18130.python-l...@python.org, Chris Angelico ros...@gmail.com wrote: I like to look at SQL as a language that specifies an end result without specifying how to get there Well, sure, but sometimes the how to get there is a matter of 10x, or 100x, or 1000x

Re: Captcha identify

2014-08-12 Thread Ben Finney
Wesley nisp...@gmail.com writes: If my questions make you guys not so happy, I am sorry and please just ignore. You seek to dismiss the valid concerns by calling them “not so happy”. You assert it is questions we object to, when we are clearly objecting to your intentions. Don't be

Re: how to get the ordinal number in list

2014-08-12 Thread Chris Angelico
On Wed, Aug 13, 2014 at 11:45 AM, Roy Smith r...@panix.com wrote: In article mailman.12903.1407893523.18130.python-l...@python.org, Chris Angelico ros...@gmail.com wrote: I like to look at SQL as a language that specifies an end result without specifying how to get there Well, sure, but

Re: how to get the ordinal number in list

2014-08-12 Thread Steven D'Aprano
Rustom Mody wrote: I guess part of the problem is that evidently you and I use 'concrete' and 'abstract' in almost diametrically opposite ways. [...] But now you are turning the tables and saying that the FP types/constructs are more abstract than the conventional ones. [...] In my book, FP

Re: how to get the ordinal number in list

2014-08-12 Thread Chris Angelico
On Wed, Aug 13, 2014 at 12:11 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: both leak because the implementation of the abstraction spoils the abstraction. Can you name *any* nontrivial abstraction that doesn't leak? I can't. ChrisA --

Re: how to get the ordinal number in list

2014-08-12 Thread Steven D'Aprano
Steven D'Aprano wrote: [...] I am using abstract in the sense of an abstraction, as opposed to something concrete and real, not as a mechanism for specifying interfaces in Java or Python. Python's float is a leaky abstraction of mathematical Real numbers, and Python's softed() is a leaky

Re: how to get the ordinal number in list

2014-08-12 Thread Rustom Mody
On Wednesday, August 13, 2014 12:59:35 AM UTC+5:30, Neil D. Cerutti wrote: Some things follow from this: For the lego-game of playing with functions at the REPL to work and be pleasant and rewarding: 1. functions should be non side-effecting; else same trials giving different answers

Re: Using asyncio workers in a `concurrent.futures` interface

2014-08-12 Thread Marko Rauhamaa
Ian Kelly ian.g.ke...@gmail.com: On Tue, Aug 12, 2014 at 11:02 AM, cool-RR ram.rac...@gmail.com wrote: And that's it, no coroutines, no `yield from`. Since, if I understand correctly, asyncio requires a mainloop, it would make sense for the AsyncIOExecutor to have a thread of its own in which

[issue21166] Bus error in pybuilddir.txt 'python -m sysconfigure --generate-posix-vars' build step

2014-08-12 Thread koobs
koobs added the comment: :DDD This was an awesome experience working with you Ned, thanks for all the help. Attaching my debugging isolation steps for additional detail, posterity and reference. -- Added file: http://bugs.python.org/file36356/python-buildbot-broken-debugging.txt

[issue22184] lrucache should reject maxsize as a function

2014-08-12 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22184 ___ ___

[issue21725] RFC 6531 (SMTPUTF8) support in smtpd

2014-08-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Adding new parameter in the middle of positional argument list can break existing code. If you want change arguments order, make their keyword-only. -- nosy: +serhiy.storchaka ___ Python tracker

[issue12954] Multiprocessing logging under Windows

2014-08-12 Thread Ari Koivula
Ari Koivula added the comment: I encountered this problem on Python 3.2.5 on Windows and don't think a vague warning about initializing modules is a proper solution. A better solution would be to simply not add multiple handlers, even if log_to_stderr is called more than once. --

[issue17923] test glob with trailing slash fail on AIX 6.1

2014-08-12 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka nosy: +serhiy.storchaka stage: patch review - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17923

[issue21725] RFC 6531 (SMTPUTF8) support in smtpd

2014-08-12 Thread Milan Oberkirch
Milan Oberkirch added the comment: Thanks for your review comments, serhiy.storchaka! I may be blind right now, but where did I add a positional parameter? -- Added file: http://bugs.python.org/file36357/issue21725v5.4.patch ___ Python tracker

[issue17923] test glob with trailing slash fail on AIX 6.1

2014-08-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset e430973149ed by Serhiy Storchaka in branch '2.7': Issue #17923: glob() patterns ending with a slash no longer match non-dirs on http://hg.python.org/cpython/rev/e430973149ed New changeset 5033589a752d by Serhiy Storchaka in branch '3.4': Issue

[issue21795] smtpd.SMTPServer should announce 8BITMIME when supported and accept SMTPUTF8 without it

2014-08-12 Thread Milan Oberkirch
Milan Oberkirch added the comment: Also the server should accept the SMTPUTF8 mail argument completely independently of 8BITMIME if both are enabled. -- title: smtpd.SMTPServer should announce 8BITMIME when supported - smtpd.SMTPServer should announce 8BITMIME when supported and

[issue21725] RFC 6531 (SMTPUTF8) support in smtpd

2014-08-12 Thread Milan Oberkirch
Milan Oberkirch added the comment: Sorry, I was blind (switching between languages to much)! Anyway there should be no existing code using decode_data as it was introduced in this development circle. -- ___ Python tracker rep...@bugs.python.org

[issue19494] urllib2.HTTPBasicAuthHandler (or urllib.request.HTTPBasicAuthHandler) doesn't work with GitHub API v3 and similar

2014-08-12 Thread Matej Cepl
Matej Cepl added the comment: Which are all reasons why I believe more conservative approach (i.e., new separate handler) is better. It seems to be a little more silly to have 21 lines long module separately in PyPI for 2.7, but whatever. -- ___

[issue21448] Email Parser use 100% CPU

2014-08-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset ba90bd01c5f1 by Serhiy Storchaka in branch '2.7': Issue #21448: Fixed FeedParser feed() to avoid O(N**2) behavior when parsing long line. http://hg.python.org/cpython/rev/ba90bd01c5f1 New changeset 1b1f92e39462 by Serhiy Storchaka in branch '3.4':

[issue21448] Email Parser use 100% CPU

2014-08-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The test_parser.diff file catches the bug in fix_email_parse.diff I don't see this. But well, it does no harm. Please commit fix_prepending2.diff yourself. -- assignee: serhiy.storchaka - rhettinger versions: -Python 2.7, Python 3.4

[issue22148] frozen.c should #include importlib.h instead of importlib.h

2014-08-12 Thread Brett Cannon
Brett Cannon added the comment: The key point here is that importlib.h isn't installed with the other header files; it's purely for compilation since it doesn't expose any API. I'm not sure how you tweaked your build environment to break that assumption, but since importlib.h is not expected

[issue17923] test glob with trailing slash fail on AIX 6.1

2014-08-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Delhallt. Mark, yes, you are right, but the code can be simplified even more, to do less syscalls. -- resolution: - fixed stage: commit review - resolved status: open - closed ___ Python tracker

[issue11822] Improve disassembly to show embedded code objects

2014-08-12 Thread Josh Lee
Changes by Josh Lee jlee...@gmail.com: -- nosy: +jleedev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11822 ___ ___ Python-bugs-list mailing list

[issue22186] Typos in .py files

2014-08-12 Thread Févry Thibault
New submission from Févry Thibault: The patch removes several typos found in .py files. -- assignee: docs@python components: Documentation files: spelling.diff keywords: patch messages: 225232 nosy: docs@python, iwontbecreative priority: normal severity: normal status: open title: Typos

[issue21448] Email Parser use 100% CPU

2014-08-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 71cb8f605f77 by Serhiy Storchaka in branch '2.7': Decreased memory requirements of new tests added in issue21448. http://hg.python.org/cpython/rev/71cb8f605f77 New changeset c19d3465965f by Serhiy Storchaka in branch '3.4': Decreased memory

[issue22171] stack smash when using ctypes/libffi to access union

2014-08-12 Thread Sean McCully
Sean McCully added the comment: For what it is worth, I was not able to reproduce, on the current Python 2.7.8 branch and Mac OS X. ./python2 Python 2.7.8+ (2.7:ba90bd01c5f1, Aug 12 2014, 12:21:58) gcc --version Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr

[issue22187] commands.mkarg() buggy in East Asian locales

2014-08-12 Thread Jakub Wilk
New submission from Jakub Wilk: This is how shell quoting in commands.mkarg() is implemented: def mkarg(x): if '\'' not in x: return ' \'' + x + '\'' s = ' ' for c in x: if c in '\\$`': s = s + '\\' s = s + c s = s + '' return s This is

[issue21795] smtpd.SMTPServer should announce 8BITMIME when supported and accept SMTPUTF8 without it

2014-08-12 Thread Milan Oberkirch
Milan Oberkirch added the comment: The proposed patch extends process_message with an **kwargs catch-all which is filled with 'mail_options' and 'rcpt_options' if decode_data is False. I also removed process_smtputf8_message as one can detect the need for supporting SMTPUTF8 from

[issue22184] lrucache should reject maxsize as a function

2014-08-12 Thread Jakub Wilk
Changes by Jakub Wilk jw...@jwilk.net: -- nosy: +jwilk ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22184 ___ ___ Python-bugs-list mailing list

[issue22186] Typos in .py files

2014-08-12 Thread Georg Brandl
Georg Brandl added the comment: Looks good except for this one: -# Remove the 'Current' link, that way we don't accidentally mess +# Remove the 'Current' link, that way we don't accidentaly mess -- nosy: +georg.brandl ___ Python

[issue22186] Typos in .py files

2014-08-12 Thread Févry Thibault
Févry Thibault added the comment: Right, must have done something wrong at some point. Here is an updated diff. -- Added file: http://bugs.python.org/file36361/spelling.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22186

[issue22187] commands.mkarg() buggy in East Asian locales

2014-08-12 Thread R. David Murray
R. David Murray added the comment: For the record, neither this module nor this routine exist in python3, so this is a python2 only issue. I'm not sure I fully understand the problem, but perhaps a possible strategy is to apply the fixes to python2's pipes.quote that were applied in python3

[issue22177] Incorrect version reported after downgrade

2014-08-12 Thread Zachary Ware
Zachary Ware added the comment: 'python.exe' in the installation folder doesn't really matter -- it's just a tiny executable that embeds python27.dll, which contains the interpreter and is installed in C:\Windows\system32. I suspect the installer didn't downgrade python27.dll because the

[issue21308] PEP 466: backport ssl changes

2014-08-12 Thread Jakub Wilk
Changes by Jakub Wilk jw...@jwilk.net: -- nosy: +jwilk ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21308 ___ ___ Python-bugs-list mailing list

[issue22184] lrucache should reject maxsize as a function

2014-08-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 780693490c84 by Raymond Hettinger in branch '3.4': Issue 22184: Early detection and reporting of missing lru_cache parameters http://hg.python.org/cpython/rev/780693490c84 -- nosy: +python-dev ___ Python

[issue22184] lrucache should reject maxsize as a function

2014-08-12 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22184 ___

[issue11822] Improve disassembly to show embedded code objects

2014-08-12 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- stage: needs patch - patch review versions: +Python 3.5 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11822 ___

[issue20729] mailbox.Mailbox does odd hasattr() check

2014-08-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If there are no objections I'll commit this patch. -- assignee: - serhiy.storchaka versions: +Python 3.5 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20729

[issue22014] Add summary table for OS exception - errno mapping

2014-08-12 Thread Jon Poler
Jon Poler added the comment: I will give this a shot if it is just hard-coding a table with errno names. Dynamically scraping the errno names and inserting them with the exception hierarchy might be beyond me since I've never used Sphinx before. -- nosy: +jon.poler

[issue20729] mailbox.Mailbox does odd hasattr() check

2014-08-12 Thread R. David Murray
R. David Murray added the comment: Committing the patch seems like the right thing to do at this point in time. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20729 ___

  1   2   >