Re: Compiling extensions on Python 2.7, Windows 10 64 bit

2016-04-30 Thread Andrea Gavana
Hi, On Friday, 29 April 2016, Igor Korot wrote: > Andrea, > > On Fri, Apr 29, 2016 at 4:27 PM, Andrea Gavana > wrote: > > Hi, > > > > > > On Friday, 29 April 2016, Igor Korot > > wrote: > >> > >> Andrea, > >> > >> On Fri, Apr 29, 2016 at 3:45 PM, > wrote: > >> > Dear list, > >> > > >> > I

Re: manpage writing [rst, asciidoc, pod] was [Re: What should Python apps do when asked to show help?]

2016-04-30 Thread Paul Rubin
Rustom Mody writes: > At that point what I gleaned was that original makeinfo was in C > New one was rewritten in perl. The previous one was definitely written in C and I've looked at the code some. I hadn't known there was a new one. The C one was actually the second one. The first one was wr

Re: web facing static text db

2016-04-30 Thread Gordon Levi
"Fetchinson ." wrote: >Hi folks, > >I have a very specific set of requirements for a task and was >wondering if anyone had good suggestions for the best set of tools: > >* store text documents (about 10 pages) >* the data set is static (i.e. only lookups are performed, no delete, >no edit, no

EuroPython 2016: Extra Hot Topics - Call for Proposals

2016-04-30 Thread M.-A. Lemburg
The Program work group is happy to announce that there will be an extra Call for Proposals early in June. This call is limited to hot topics and most recent developments in software and technology. Why is there a second call ? Planning a big conference is a challenge:

Re: How to download a flash video from this site?

2016-04-30 Thread zljubisic
On Friday, 29 April 2016 22:40:10 UTC+2, Chris Angelico wrote: > Since you're asking on this list, I'll assume you're using Beautiful > Soup and/or youtube-dl. You'll need to go into more detail about what > you're trying to do, and where the Python problem is. > > ChrisA The situation is very s

Re: Not x.islower() has different output than x.isupper() in list output...

2016-04-30 Thread Christopher Reimer
On 4/29/2016 11:43 PM, Stephen Hansen wrote: The official documentation is accurate. That may be true on a technical level. But the identically worded text in the documentation implies otherwise. Maybe I'm nitpicking this. Even if I submitted a bug to request a clearer explanation in the doc

Re: Not x.islower() has different output than x.isupper() in list output...

2016-04-30 Thread Chris Angelico
On Sun, May 1, 2016 at 2:48 AM, Christopher Reimer wrote: > On 4/29/2016 11:43 PM, Stephen Hansen wrote: >> >> The official documentation is accurate. > > > That may be true on a technical level. But the identically worded text in > the documentation implies otherwise. Maybe I'm nitpicking this. E

Re: Not x.islower() has different output than x.isupper() in list output...

2016-04-30 Thread Stephen Hansen
On Sat, Apr 30, 2016, at 09:48 AM, Christopher Reimer wrote: > On 4/29/2016 11:43 PM, Stephen Hansen wrote: > > The official documentation is accurate. > > That may be true on a technical level. But the identically worded text > in the documentation implies otherwise. That's the thing -- no it

Re: web facing static text db

2016-04-30 Thread Fetchinson . via Python-list
On 4/30/16, Gordon Levi wrote: > "Fetchinson ." wrote: > >>Hi folks, >> >>I have a very specific set of requirements for a task and was >>wondering if anyone had good suggestions for the best set of tools: >> >>* store text documents (about 10 pages) >>* the data set is static (i.e. only look

Re: Not x.islower() has different output than x.isupper() in list output...

2016-04-30 Thread Christopher Reimer
On 4/30/2016 10:11 AM, Stephen Hansen wrote: You're thinking of the whole "string", but you're operating on single-character substrings, and when " ".islower() is run, its false. Because the two-pronged test, a) if all cased characters are lowercase and b) there is at least one cased character.

Re: about special characters

2016-04-30 Thread Jianling Fan
Hello everyone, Thanks very much for all your replies and sorry for the inconvience. This is my first time to post question in this list. I am using python 2.7 in Windows 7 Enterprise version. Here is the the filename that cause the problem: "Decock-2013-On the potential of δ18O and δ15N.pdf" Wh

Re: about special characters

2016-04-30 Thread Terry Reedy
On 4/30/2016 2:13 PM, Jianling Fan wrote: I am using python 2.7 in Windows 7 Enterprise version. Here is the the filename that cause the problem: "Decock-2013-On the potential of δ18O and δ15N.pdf" When I delete the "δ" in the filename, the script works good. You may be able to get "δ" (and o

Re: about special characters

2016-04-30 Thread MRAB
On 2016-04-30 19:13, Jianling Fan wrote: Hello everyone, Thanks very much for all your replies and sorry for the inconvience. This is my first time to post question in this list. I am using python 2.7 in Windows 7 Enterprise version. Here is the the filename that cause the problem: "Decock-201

Re: about special characters

2016-04-30 Thread Jianling Fan
Oh, it works! This is the simplest and best way! Thanks very much! On 30 April 2016 at 13:42, MRAB wrote: > On 2016-04-30 19:13, Jianling Fan wrote: >> >> Hello everyone, >> >> Thanks very much for all your replies and sorry for the inconvience. >> This is my first time to post question in th

How to fill in abbreviation in one column based on state name in another column?

2016-04-30 Thread David Shi via Python-list
I am trying to use apply to execute a lookup function, so that we can put abbreviation in a new column, in accordance to a state name in another column. Does anyone knows how to make this to work? Regards. David state_to_code = {"VERMONT": "VT", "GEORGIA": "GA", "IOWA": "IA", "Armed Forces Pacifi

Re: How to fill in abbreviation in one column based on state name in another column?

2016-04-30 Thread Joel Goldstick
could you post in plaintext as its really hard to figure out what your code is doing On Sat, Apr 30, 2016 at 4:40 PM, David Shi via Python-list wrote: > I am trying to use apply to execute a lookup function, so that we can put > abbreviation in a new column, in accordance to a state name in anot

Re: How to fill in abbreviation in one column based on state name in another column?

2016-04-30 Thread Bob Gailer
1) Your code seems to be missing a lot. 2) it's better to post a small sample of the dictionary rather than the whole thing. 3) remove the comments that don't seem to say anything useful. 4) tell us what problems you are having -- https://mail.python.org/mailman/listinfo/python-list

Re: What should Python apps do when asked to show help?

2016-04-30 Thread cs
On 30Apr2016 13:23, Steven D'Aprano wrote: On Sat, 30 Apr 2016 12:49 pm, Ben Finney wrote: Random832 writes: On Fri, Apr 29, 2016, at 22:27, Rustom Mody wrote: > Instead it does some ½-assed fall-between-the-stools of both That doesn't answer the question of why, if you (Well, Ethan, but you

Re: What should Python apps do when asked to show help?

2016-04-30 Thread cs
On 29Apr2016 11:40, Steven D'Aprano wrote: On Fri, 29 Apr 2016 07:08 am, Grant Edwards wrote: On 2016-04-28, Random832 wrote: On Thu, Apr 28, 2016, at 15:39, Grant Edwards wrote: That's fine. If you want two or three forms of documentation then you prepare two or three forms of documentatio

Re: What should Python apps do when asked to show help?

2016-04-30 Thread Random832
On Sat, Apr 30, 2016, at 19:51, c...@zip.com.au wrote: > _When_ they want a pager. Why would they need an environment variable at all in that case, rather than explicitly invoking the pager by name? To me, *not* having PAGER=cat signifies that someone *does* want a pager. That may be a crappy con

Re: What should Python apps do when asked to show help?

2016-04-30 Thread Grant Edwards
On 2016-05-01, Random832 wrote: > On Sat, Apr 30, 2016, at 19:51, c...@zip.com.au wrote: >> _When_ they want a pager. > > Why would they need an environment variable at all in that case, rather > than explicitly invoking the pager by name? We don't want to use a PAGER variable to specify when we

Re: What should Python apps do when asked to show help?

2016-04-30 Thread Random832
On Sat, Apr 30, 2016, at 22:30, Grant Edwards wrote: > We don't want to use a PAGER variable to specify when we want a pager > and when we don't want a pager. If we want a pager we append "| less" > to the command. If we don't want a pager, we don't append that to the > command. Setting PAGER=ca

Re: What should Python apps do when asked to show help?

2016-04-30 Thread Steven D'Aprano
On Sun, 1 May 2016 09:51 am, c...@zip.com.au wrote: > Let me recite one of my favourite rules of thumb: > > If it can't be turned off, it's not a feature. - Karl Heuer My microwave oven has a safety lock which prevents the mechanism from operating (generating microwaves) while the door is open.

Re: What should Python apps do when asked to show help?

2016-04-30 Thread cs
On 30Apr2016 23:46, Random832 wrote: On Sat, Apr 30, 2016, at 22:30, Grant Edwards wrote: We don't want to use a PAGER variable to specify when we want a pager and when we don't want a pager. If we want a pager we append "| less" to the command. If we don't want a pager, we don't append that

Re: What should Python apps do when asked to show help?

2016-04-30 Thread Chris Angelico
On Sun, May 1, 2016 at 3:24 PM, wrote: > Yes, PAGER=cat would make "man" also not page, and likely almost everything. > And yet I am unwilling to do so. Why? > > On reflection, my personal problems with this approach are twofold: > > - I want $PAGER to specify my preferred pager when I do want a