Re: Connecting Google News

2017-07-16 Thread Javier Bezos
Peter, http.request("GET","/news/headlines?ned=es_mx&hl=es" , Thank you. It works, too. Javier -- https://mail.python.org/mailman/listinfo/python-list

Re: Connecting Google News

2017-07-16 Thread Javier Bezos
Chris, (Also, please upgrade your Windows box to run Python 2.7.) It's not /my/ Windows box. I'm allowed to run my script, that's all. My Windows box is actually that with 3.6. http = httplib.HTTPSConnection('news.google.com') http.request("GET","/news?ned=es_MX" , ('Loc

Connecting Google News

2017-07-16 Thread Javier Bezos
Google News used to fail with the high level functions provided by httplib and the like. However, I found this piece of code somewhere: def gopen(): http = httplib.HTTPSConnection('news.google.com') http.request("GET","/news?ned=es_MX" , headers =

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-18 Thread Javier Bezos
<@yahoo.com> escribió: >> > Perhaps, but the treatment by your mail/news software plus the >> > delightful Google Groups of the original text (which seemed intact in >> > the original, although I don't have the fonts for the content) would >> > suggest that not just social or cultural issues would

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-18 Thread Javier Bezos
>> This question is more or less what a Korean who doesn't >> speak English would ask if he had to debug a program >> written in English. > > Perhaps, but the treatment by your mail/news software plus the > delightful Google Groups of the original text (which seemed intact in > the original, altho

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-18 Thread Javier Bezos
"Istvan Albert" <[EMAIL PROTECTED]> escribió: > How about debugging this (I wonder will it even make it through?) : > > class 6??? > 6?? = 0 > 6? ?? ?=10 This question is more or less what a Korean who doesn't speak English would ask if he had to debug a program written in English.

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-16 Thread Javier Bezos
"Eric Brunel" <[EMAIL PROTECTED]> escribió en el mensaje > Funny you talk about Japanese, a language I'm a bit familiar with and for > which I actually know some input methods. The thing is, these only work if > you know the transcription to the latin alphabet of the word you want to > type, which

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread Javier Bezos
"René Fleschenberg" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] > This is a very weak argument, IMHO. How do you want to use Python > without learning at least enough English to grasp a somewhat decent > understanding of the standard library? By heart. I know a few _very goo

Re: Python Feature Request: Allow changing base of member indices to 1

2007-04-16 Thread Javier Bezos
Paddy, >> Dijkstra's argument is obsolete, as it is based on >> how array length was computed many years ago -- if >> we have an array a = b..e, then the lenght of a >> is e-b (half open range). Good at low level >> programming. >> >> But a quarter of a century after we know concepts >> are much b

Re: Python Feature Request: Allow changing base of member indices to 1

2007-04-15 Thread Javier Bezos
> Here is a document giving good reasons for indexing to start at > zero, as in Python. > http://www.cs.utexas.edu/users/EWD/transcriptions/EWD08xx/EWD831.html > The author has done a bit: > http://en.wikipedia.org/wiki/Dijkstra Dijkstra's argument is obsolete, as it is based on how array length

Re: Why Python does *SLICING* the way it does??

2005-04-20 Thread Javier Bezos
d. When people say that half-open slices work for every i, they are tinking in the case i=0. Javier ___ Javier Bezos| TeX y tipografía jbezos at wanadoo dot es| http://perso.wanadoo.es/jbezos |... Cerv

Re: Why Python does *SLICING* the way it does??

2005-04-20 Thread Javier Bezos
t.) Recently there was a short (sub)thread about that. One of my messages (against half-open slices) is, for example http://groups-beta.google.com/group/comp.lang.python/msg/5532dd50b57853b1 Javier ___ Javier Bezos| TeX y ti

Re: Grouping code by indentation - feature or ******?

2005-04-01 Thread Javier Bezos
ssage. This thread began when some people thought that I had to be convinced about how wonderful slices are, after I said _incidentally_ I didn't like Python slices (and then I had to explain in turn why I don't like them). Perhaps you should ask those people, not me. Javier ____

Re: Grouping code by indentation - feature or ******?

2005-03-30 Thread Javier Bezos
le mathematical terms (in other words, it's an integral part of the algorithms), I cannot find a way to explain the e+1 in cases 2 and 3 (and the inconsistency with e-t+1 in case 2 vs. s+t in case 1) except the Python syntax. Javier _

Re: Grouping code by indentation - feature or ******?

2005-03-28 Thread Javier Bezos
"Dennis Lee Bieber" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] > > I don't think l[:5] + l[5:] = l is a handy property > > and to me is clearly counterintuitive. Further, [snipped in the reply] Please, don't remove parts of my post which are relevant to the discussion. I s

Re: Grouping code by indentation - feature or ******?

2005-03-27 Thread Javier Bezos
Tutorial tells us exactly the same... Ah! I've just forgotten that... Javier _______ Javier Bezos | Mem. A multilingual system for LaTeX jbezos at wanadoo dot es | http://mem-latex.sourceforge.net .

Re: Grouping code by indentation - feature or ******?

2005-03-27 Thread Javier Bezos
syntax. MetaFont explains this by saying that the index doesn't refer to a character but to a position between characters, which when traslated to Python would mean: s t r i n g ^ ^ ^ ^ ^ ^ ^ 0 1 2 3 4 5 6 so that [1:2] is "t". Javier

Re: Grouping code by indentation - feature or ******?

2005-03-26 Thread Javier Bezos
pting language (as formerly was Tcl). Javier _______ Javier Bezos| TeX y tipografía jbezos at wanadoo dot es| http://perso.wanadoo.es/jbezos |... CervanTeX (Spanish TUG) | http://www.cervantex.org -- h