Re: Printing a drop down menu for a specific field.

2013-10-27 Thread rurpy
On 10/27/2013 01:31 AM, Nick the Gr33k wrote: > Στις 27/10/2013 6:00 πμ, ο/η ru...@yahoo.com έγραψε: >[...] [following quote lightly edited for clarity] > I almost understand your code, but this part is not so clear to me: > key = host, city, useros, browser > if key not in seen: newdata

Re: Possibly better loop construct, also labels+goto important and on the fly compiler idea.

2013-10-27 Thread rurpy
On 10/26/2013 07:56 PM, Chris Angelico wrote: > On Sun, Oct 27, 2013 at 12:45 PM, rusi wrote: >> Yes... that page is longer and more confusing than necessary. >> 1. The double-posting bit is unnecessary -- not been happening after the >> 'new' GG. >> 2. The missing attributions problem is new and

Re: Possibly better loop construct, also labels+goto important and on the fly compiler idea.

2013-10-27 Thread rurpy
On Sunday, October 27, 2013 1:59:05 AM UTC-6, rusi wrote: > On Sunday, October 27, 2013 10:34:11 AM UTC+5:30, ru...@yahoo.com wrote: > > On 10/26/2013 07:45 PM, rusi wrote: > > > On Sunday, October 27, 2013 2:07:53 AM UTC+5:30, Peter Cacioppi wrote: > > First, thanks (both of you) very much for the

Re: Function for the path of the script?

2013-10-28 Thread rurpy
On 10/28/2013 08:49 AM, Grant Edwards wrote: > > On 2013-10-27, Chris Angelico wrote: >> >> On Sun, Oct 27, 2013 at 1:52 PM, Gary Herron >> >> It's very common to want to know what directory you're in - it's a >> >> good way to find data files. > > > > From a Unix point of view, that's also very

Re: Possibly better loop construct, also labels+goto important and on the fly compiler idea.

2013-10-28 Thread rurpy
On 10/28/2013 12:51 AM, rusi wrote: > > On Monday, October 28, 2013 11:26:21 AM UTC+5:30, rusi wrote: >> >> On Monday, October 28, 2013 11:10:21 AM UTC+5:30, ru...@yahoo.com >> >> wrote: >>> >>> I updated the page, hopefully it's an improvement? >> >> >> >> Otherwise ok I think > > > > Just looke

Re: Help with guessing game :D

2013-10-29 Thread rurpy
On 10/29/2013 05:45 AM, Robert Gonda wrote: > Hey guys, so I figured I will give python a shot. I got to exercise that has > asked me to create a number guessing game which weren't a problem, > guessesTaken = 0 #This is a "Guesses taken counter" > print("Hello, what's your name?") #Asking the use

Re: Help with guessing game :D

2013-10-29 Thread rurpy
On Tuesday, October 29, 2013 11:52:15 AM UTC-6, rusi wrote: > On Tuesday, October 29, 2013 10:54:08 PM UTC+5:30, ru...@yahoo.com wrote: > > Also, what Mark and Rusi were trying to say (not very clearly) > > is that when you post from Google Groups, Google Groups insert > > a lot of empty lines in

Re: Help with guessing game :D

2013-10-29 Thread rurpy
On Tuesday, October 29, 2013 11:45:56 AM UTC-6, Robert Gonda wrote: > Thank you very much for your reply, however it gives me an error, > something about the "end", do you know whats wrong with it? > (Still not sure if im posting this right so sorry) "...an error, something about the 'end'" is no

Re: Help with guessing game :D

2013-10-29 Thread rurpy
On Tuesday, October 29, 2013 1:03:00 PM UTC-6, Robert Gonda wrote: > never mind you was right, for some reason I had version 2.7 :/ , > and btw I was wondering, is it also possible to make it more > complex? such as if the computer will again show “Y” if a digit > is correct but if a digit is incor

Re: Possibly better loop construct, also labels+goto important and on the fly compiler idea.

2013-10-29 Thread rurpy
On Tuesday, October 29, 2013 8:08:16 AM UTC-6, Steven D'Aprano wrote: > On Tue, 29 Oct 2013 12:37:36 +0100, Skybuck Flying wrote: >[...] > Skybuck, please excuse my question, but have you ever done any > programming at all? You don't seem to have any experience with actual > programming languages

Re: Help with guessing game :D

2013-10-29 Thread rurpy
On Tuesday, October 29, 2013 2:21:08 PM UTC-6, Robert Gonda wrote: > Is it possible to further more specify it? H only shows if the > guess is at most 3 higher then the answer?. But L is only given > if the guess is at most 3 lower the answer? I'm starting to > like this ;D To do that, you'll need

Re: First day beginner to python, add to counter after nested loop

2013-10-30 Thread rurpy
On 10/30/2013 08:22 AM, Alister wrote: > On Wed, 30 Oct 2013 13:42:37 +0100, Antoon Pardon wrote: >> Op 30-10-13 13:17, Chris Angelico schreef: >>> On Wed, Oct 30, 2013 at 11:01 PM, Antoon Pardon >>> wrote: >>> I broadly agree with your post (I'm of the school of thought that >>> braces are better

Re: Possibly better loop construct, also labels+goto important and on the fly compiler idea.

2013-10-30 Thread rurpy
On 10/30/2013 04:22 AM, Steven D'Aprano wrote: > On Tue, 29 Oct 2013 13:00:07 -0700, rurpy wrote: >> On Tuesday, October 29, 2013 8:08:16 AM UTC-6, Steven D'Aprano wrote: >>> On Tue, 29 Oct 2013 12:37:36 +0100, Skybuck Flying wrote: >>>[...] >>> Sk

Re: Possibly better loop construct, also labels+goto important and on the fly compiler idea.

2013-10-30 Thread rurpy
On 10/29/2013 12:22 AM, Chris Angelico wrote: > On Tue, Oct 29, 2013 at 3:03 PM, wrote: >> Regarding esr's "smart-questions", although I acknowledge >> it has useful advice, I have always found it elitist and >> abrasive. I wish someone would rewrite it without the >> "we are gods" attitude. >

Re: Retrieving possible list for use in a subsequent INSERT

2013-10-31 Thread rurpy
On 10/31/2013 03:24 AM, Nick the Gr33k wrote: >[...] > # find out if visitor has downloaded torrents in the past > cur.execute('''SELECT torrent FROM files WHERE host = %s''', host ) > data = cur.fetchall() > > downloads = [] > if data: > for torrent in data:

Re: Possibly better loop construct, also labels+goto important and on the fly compiler idea.

2013-10-31 Thread rurpy
On 10/31/2013 02:41 AM, Steven D'Aprano wrote: > On Wed, 30 Oct 2013 19:48:55 -0700, rurpy wrote: >> On 10/30/2013 04:22 AM, Steven D'Aprano wrote: >>> Skybuck's experience at programming *is relevant* to the question of >>> whether or not he underst

Re: Possibly better loop construct, also labels+goto important and on the fly compiler idea.

2013-11-01 Thread rurpy
On 10/31/2013 11:41 PM, Steven D'Aprano wrote: > On Thu, 31 Oct 2013 21:41:32 -0700, rurpy wrote: >[...] >> Yes, on rereading you are correct, you did not say his proposition made >> no sense, you disagreed with him that "putting this exit condition on >> the top

Re: Possibly better loop construct, also labels+goto important and on the fly compiler idea.

2013-11-01 Thread rurpy
On 11/01/2013 06:50 AM, Antoon Pardon wrote: > Op 01-11-13 05:41, ru...@yahoo.com schreef: >> On 10/31/2013 02:41 AM, Steven D'Aprano wrote: >> >>> I don't know whether you are deliberately lying, or whether you're just >>> such a careless reader that you have attributed words actually written by

Re: Retrieving possible list for use in a subsequent INSERT

2013-11-01 Thread rurpy
On Friday, November 1, 2013 9:04:08 AM UTC-6, Ferrous Cranus wrote: > Rurpy can you help me please solve this? > is enum or set column types what needed here as proper columns to store > 'download' list? I'd help if I could but I don't use MySql and don't kn

Re: Possibly better loop construct, also labels+goto important and on the fly compiler idea.

2013-11-03 Thread rurpy
On 11/01/2013 09:52 PM, Steven D'Aprano wrote: >[...] > I did not declare as a > fact that he had no experience, as you claim, but posed it as a question > and expressed it explicitly as a subjective observation. This is a key point. Several of your other denials are true only if you are right

Re: Possibly better loop construct, also labels+goto important and on the fly compiler idea.

2013-11-03 Thread rurpy
On 11/02/2013 11:17 PM, Steven D'Aprano wrote: > On Sat, 02 Nov 2013 18:22:38 +, Joshua Landau wrote: > [...] >> Sure, you in all probability didn't mean it like that but rurpy isn't >> uncalled for in raising the concern. Really I just want to remind you >

Re: To whoever hacked into my Database

2013-11-08 Thread rurpy
On 11/08/2013 03:05 AM, Νίκος Αλεξόπουλος wrote: > I never ignore advices. > I read all answers as carefully as i can. > But nevertheless sometimes i feel things should have been better > implemented using my way. > > Not of course that i know better, but thats better suited for me in the > leve

Re: To whoever hacked into my Database

2013-11-11 Thread rurpy
On 11/08/2013 11:08 AM, Chris Angelico wrote: > On Sat, Nov 9, 2013 at 4:11 AM, wrote: >> On 11/08/2013 03:05 AM, Νίκος Αλεξόπουλος wrote: >>> I never ignore advices. >>> I read all answers as carefully as i can. >>> But nevertheless sometimes i feel things should have been better >>> implemented

Re: datetime question

2013-11-11 Thread rurpy
On Friday, November 8, 2013 3:06:33 PM UTC-7, Joel Goldstick wrote: > rurpy? can you help? No, sorry. For your future reference, if there is a question I can help with (have the technical knowledge, haven't seen a good answer yet, have time, etc) I will post my attempt at an answe

Re: Python 3.2 has some deadly infection

2014-06-07 Thread rurpy
On 06/05/2014 05:02 PM, Steven D'Aprano wrote: >[...] > But Linux Unicode support is much better than Windows. Unicode support in > Windows is crippled by continued reliance on legacy code pages, and by > the assumption deep inside the Windows APIs that Unicode means "16 bit > characters". See,

Re: news.gmane.org (was Re: Awsome Python - chained exceptions

2013-02-18 Thread rurpy
On 02/17/2013 11:10 PM, Terry Reedy wrote: > On 2/18/2013 12:51 AM, Rick Johnson wrote: > > if you (or anyone else) would be kind enough to recommend an > > alternative to this gawd awful software [google groups], > ? i'm all ears. My expectations at minimum are: > > For at least the 10th time,

Re: Awsome Python - chained exceptions

2013-02-19 Thread rurpy
On 02/18/2013 07:18 PM, alex23 wrote: >[...] > Weird, I'm using GG too and not seeing any doubling of my messages. I > have reverted to using the old interface, though, so it might be a > side-effect of the new version they're hyping, which does seem to have > been designed by Satan himself (the wa

Re: Awsome Python - chained exceptions

2013-02-20 Thread rurpy
On 02/20/2013 04:50 AM, Steven D'Aprano wrote: >[...] > Or if your ISP provides Usenet access, you can use a News client to read it > via comp.lang.python, or gmane.comp.python.general. If you don't have a > News client, there are various free ones available, starting with > Thunderbird. I think v

Re: Python Newbie

2013-02-22 Thread rurpy
On Friday, February 22, 2013 6:04:21 PM UTC-7, Terry Reedy wrote: >[...] the first 'killer app' for Python was nuclear weapon calculations... Gives a whole new meaning to the phrase "killer app", doesn't it? -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Newbie

2013-02-26 Thread rurpy
On 02/26/2013 01:32 AM, Larry Hudson wrote: > On 02/24/2013 02:43 PM, piterrr.dolin...@gmail.com wrote: > >> ... But for the moment I am trying to imitate familiar ground. > > This is EXACTLY why you're having trouble grasping Python. Python is a > different language and > requires a differen

Re: Python Newbie

2013-02-26 Thread rurpy
On Tuesday, February 26, 2013 11:59:51 AM UTC-7, Ethan Furman wrote: > On 02/26/2013 10:23 AM, ru...@yahoo.com wrote: > > On 02/26/2013 01:32 AM, Larry Hudson wrote: > >> Python variables do NOT have any data type. > > I have no problem interpreting the OP's statement > > as meaning that he wanted

Re: Do you feel bad because of the Python docs?

2013-02-27 Thread rurpy
On 02/26/2013 05:54 AM, Steven D'Aprano wrote: > One week ago, "JoePie91" wrote a blog post challenging the Python > community and the state of Python documentation, titled: > > "The Python documentation is bad, and you should feel bad". > > http://joepie91.wordpress.com/2013/02/19/the-python-do

Re: Do you feel bad because of the Python docs?

2013-02-27 Thread rurpy
On 02/26/2013 11:43 AM, Terry Reedy wrote: > On 2/26/2013 7:54 AM, Steven D'Aprano wrote: >> One week ago, "JoePie91" wrote a blog post challenging the Python >> community and the state of Python documentation, titled: >> >> "The Python documentation is bad, and you should feel bad". >> >> http://j

Re: Do you feel bad because of the Python docs?

2013-02-27 Thread rurpy
On 02/27/2013 06:05 PM, Steven D'Aprano wrote: > On Wed, 27 Feb 2013 15:20:04 -0800, rurpy wrote: > >> As JoePie91 pointed out, reference material should describe its subject >> matter completely and accurately. Once documentation has archived that >> minimum bar

Re: Required arguments in argparse: at least one of a group

2013-03-24 Thread rurpy
On 03/23/2013 10:04 AM, Marco wrote: > Is there the possibility using the argparse module to group two or more > arguments in order to have at least one of them required? For instance, > I would like to have not an error only in the following cases: > >python finder.py --file myfile --dir my

Re: MySQLdbd error. Perhpas it isn't installed?

2013-03-26 Thread rurpy
On 03/26/2013 03:24 PM, Νίκος Γκρ33κ wrote:> Hello today i deiced to go form python 2.6 to python 3.2.3 > > although in 2.6 my script runs in the ht enewest python i ge this error: > > > Traceback (most recent call last): > File > "/opt/python3/lib/python3.2/site-packages/MySQL_python-1.2.3-

Re: Performance of int/long in Python 3

2013-03-26 Thread rurpy
On Tuesday, March 26, 2013 6:00:43 PM UTC-6, Ned Deily wrote: > In article , > Mark Lawrence wrote: > > But you are an idiot. > > I repeat the friendly reminder I posted a few weeks ago and I'll be a > little less oblique: please avoid gratuitous personal attacks here. It > reflects badly on

Re: flaming vs accuracy [was Re: Performance of int/long in Python 3]

2013-03-28 Thread rurpy
On 03/28/2013 01:48 AM, Steven D'Aprano wrote: > On Wed, 27 Mar 2013 22:42:18 -0700, rusi wrote: >> More seriously Ive never seen anyone -- cause or person -- aided by >> the use of excessively strong language. > > Of course not. By definition, if it helps, it wasn't *excessively* strong > langua

Re: flaming vs accuracy [was Re: Performance of int/long in Python 3]

2013-03-29 Thread rurpy
On 03/28/2013 02:31 PM, Ethan Furman wrote: > On 03/28/2013 12:54 PM, ru...@yahoo.com wrote: >> On 03/28/2013 01:48 AM, Steven D'Aprano wrote: >> For someone who delights in pointing out the logical errors of >> others you are often remarkably sloppy in your own logic. >> >> Of course language can

Re: round off to two decimal & return float

2013-03-30 Thread rurpy
On 03/30/2013 10:41 AM, Dennis Lee Bieber wrote: > On Sat, 30 Mar 2013 13:22:59 +0530, ??? declaimed > the following in gmane.comp.python.general: > >> Consider the scenario, >> >> >> a = 10 >> >> "{0:.2f}".format(a) >> '10.00' >> >> This returns a string 10.00. But what is the preferred me

Re: Python 3.2.3 and my blank page

2013-03-31 Thread rurpy
On 03/31/2013 08:03 AM, Νίκος Γκρ33κ wrote: > Hello all, > > i need some help > i recently changes pythoon 2.6 code => python 3.2.3 but my script although > not producing any errors now doesnt display anything else but a blank page at > htp://superhost.gr > can you help? > > I tried MySQLdb, py

Re: Python 3.2.3 and my blank page

2013-03-31 Thread rurpy
On 03/31/2013 01:12 PM, Νίκος Γκρ33κ wrote: > Firsly, thank you for your willing to help me. i wrote, uploaded an > chmoded test.py and you can see the cgi enviromental table here: > http://superhost.gr/cgi-bin/test.py All values seem okey, so it > really isnt somehting wrong with the cgi enviromen

Re: Python 3.2.3 and my blank page

2013-03-31 Thread rurpy
On 03/31/2013 01:19 PM, Νίκος Γκρ33κ wrote: > I just tried the testmysql.py script: >[...snip code...] I hope no one who reads this list also has access to your database and that you don't use that username/password anyplace else. > it works, as you can see at: > http://superhost.gr/cgi-bin/test

Re: Python 3.2.3 and my blank page

2013-03-31 Thread rurpy
On 03/31/2013 02:08 PM, Νίκος Γκρ33κ wrote: > But i look the code and run python via interactive prompt and it says > it has no error. Does it produce any output? Is that output the right html? That is, if you save the html to a file and open that file in a browser, does it look right? > So i

Re: Help with python code!

2013-03-31 Thread rurpy
On Sunday, March 31, 2013 3:27:06 PM UTC-6, Roy Smith wrote: > If this is for an interview, you really should be doing this on your > own. I assume the point of the interview is to see how well you know > Python. Please don't expect people here to take your interview for you. Maybe the interv

itertools.izip brokeness

2006-01-03 Thread rurpy
The code below should be pretty self-explanatory. I want to read two files in parallel, so that I can print corresponding lines from each, side by side. itertools.izip() seems the obvious way to do this. izip() will stop interating when it reaches the end of the shortest file. I don't know how t

Re: itertools.izip brokeness

2006-01-03 Thread rurpy
<[EMAIL PROTECTED]> wrote: > But that is exactly the behaviour of python iterator, I don't see what > is broken. > > izip/zip just read from the respectives streams and give back a tuple, > if it can get one from each, otherwise stop. And because python > iterator can only go in one direction, tho

Re: itertools.izip brokeness

2006-01-03 Thread rurpy
"Duncan Booth" <[EMAIL PROTECTED]> wrote: > Peter Otten wrote: > > > from itertools import izip, chain, repeat > > > > def prt_files (file1, file2): > > file1 = chain(file1, repeat("")) > > file2 = chain(file2, repeat("")) > > for line1, line2 in iter(izip(file1, file2).next, ("", "")):

Re: itertools.izip brokeness

2006-01-03 Thread rurpy
is basically a pretty good language but there are these big time holes in it. I spend WAY too much time trying to figure out how to do something that should be easy, but isn't because someone thought that it might hurt the "purity" of the language or violate some "principle". pissed-offedly-yr's, rurpy -- http://mail.python.org/mailman/listinfo/python-list

Re: itertools.izip brokeness

2006-01-04 Thread rurpy
"Raymond Hettinger" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > [EMAIL PROTECTED] wrote: > > izip's uses can be partitioned two ways: > > 1. All iterables have equal lengths > > 2. Iterables have different lengths. > > > > Case 1 is no problem obviously. > > In Case 2 there are t

Re: itertools.izip brokeness

2006-01-04 Thread rurpy
> I don't understand this. Why do you need look ahead? Just before I posted, I got it (I think) but didn't want to rewrite everything. The need for unget() (or peek(), etc) is to fix the thrown-away-data problem in izip(), right? As an easier alternative, what about leaving izip() alone and si

Re: itertools.izip brokeness

2006-01-05 Thread rurpy
Bengt Richter wrote: > On 5 Jan 2006 15:48:26 GMT, Antoon Pardon <[EMAIL PROTECTED]> wrote: > > >On 2006-01-04, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > >><[EMAIL PROTECTED]> wrote: > >>> But here is my real question... > >>> Why isn't something like this in itertools, or why shouldn't > >>>

Re: pdb.py - why is this debugger different from all other debuggers?

2006-01-05 Thread rurpy
"R. Bernstein" <[EMAIL PROTECTED]> wrote: > Okay, a bit of an exaggeration. > > Recently, I've been using Python more seriously, and in using the > debugger I think one of the first things I noticed was that there is > no "restart" ("R" in perldb) or "run" (gdb) command. > > I was pleasantly pleas

Re: Microsoft IronPython?

2006-01-05 Thread rurpy
EP wrote: > Luis M. González wrote: > > >Will Microsoft hurt Python? > > > > > I think it is naive to ignore the fact that Microsoft could hurt Python, > though there may be nothing anyone can do. > > >How? > > > - create a more prevalent version of "Python" that is less Pythonic or > undermines s

Re: pdb.py - why is this debugger different from all other debuggers?

2006-01-05 Thread rurpy
[EMAIL PROTECTED] wrote: > Mike> I don't use pdb a lot either - and I write a *lot* of Python. > > Ditto. I frequently just insert prints or enable cgitb. Sometimes I enable > line tracing for a specific function and the functions it calls using a > tracing decorator. There are lots of things t

Re: itertools.izip brokeness

2006-01-05 Thread rurpy
"Michael Spencer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > > Bengt Richter wrote: > ... > >> >>> from itertools import repeat, chain, izip > >> >>> it = iter(lambda z=izip(chain([3,5,8],repeat("Bye")), > >> chain([11,22],repeat("Bye"))):z.next(), ("Bye","Bye")) > >> >>>

Re: Xah's Edu Corner: the bug-reporting attitude

2006-01-06 Thread rurpy
"Tim Roberts" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Xah Lee (1) is a write-only poster who pontificates but never reads > replies, and (2) cares not a whit that the rest of us believe him to be a > moron. I find him offensive, and a pontificator as you said, but I don't

Re: Xah's Edu Corner: the bug-reporting attitude

2006-01-06 Thread rurpy
"Tim Roberts" <[EMAIL PROTECTED]> wrote: > > Xah Lee (1) is a write-only poster who pontificates but never reads > replies, and (2) cares not a whit that the rest of us believe him to be a > moron. I find him offensive, and a pontificator as you said, but I don't think he is a moron. He has comp

Re: Microsoft IronPython?

2006-01-06 Thread rurpy
"EP" <[EMAIL PROTECTED]> wrote: > Luis M. González wrote: > > >Will Microsoft hurt Python? > > > > > I think it is naive to ignore the fact that Microsoft could hurt Python, > though there may be nothing anyone can do. > > >How? > > > - create a more prevalent version of "Python" that is less Pyth

Re: Xah's Edu Corner: the bug-reporting attitude

2006-01-06 Thread rurpy
"Tim Roberts" <[EMAIL PROTECTED]> wrote: > > Xah Lee (1) is a write-only poster who pontificates but never reads > replies, and (2) cares not a whit that the rest of us believe him to be a > moron. I find him offensive, and a pontificator as you said, but I don't think he is a moron. He has comp

Re: Converting milliseconds to human time

2006-01-07 Thread rurpy
"Max Erickson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > the hard way(in that you have to do it yourself): > > def prntime(ms): > s=ms/1000 > m,s=divmod(s,60) > h,m=divmod(m,60) > d,h=divmod(h,24) > return d,h,m,s Or abstracted... def decd (n, base): """ Decom

Re: Xah's Edu Corner: the bug-reporting attitude

2006-01-07 Thread rurpy
Apoologies for the multiple posts -- please blame Google. -- http://mail.python.org/mailman/listinfo/python-list

Re: Is 'everything' a refrence or isn't it?

2006-01-08 Thread rurpy
Fredrik Lundh wrote: ...snip... > afaik, the Python Language Reference never defines the word "reference". > It carefully defines words like "object" and "value", though, and terms like > "call by object" or "call by object reference" are perfectly understandable > if you use the words as they are

Re: Real-world use cases for map's None fill-in feature?

2006-01-09 Thread rurpy
"Raymond Hettinger" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Proposal > > I am gathering data to evaluate a request for an alternate version of > itertools.izip() with a None fill-in feature like that for the built-in > map() function: > > >>> map(None, 'abc', '12345'

Re: - E04 - Leadership! Google, Guido van Rossum, PSF

2006-01-09 Thread rurpy
"Anton Vredegoor" <[EMAIL PROTECTED]> wrote: ... > I already sent some reply via google, got a server error, resent, got a > confirmation that my message was posted, but it doesn't show up and also > there's no way to retrieve my message except fishing in the cache? > > Yesterday I had a post not

Re: Is 'everything' a refrence or isn't it?

2006-01-09 Thread rurpy
"Fredrik Lundh" <[EMAIL PROTECTED]> wrote: ...snip... > afaik, the Python Language Reference never defines the word "reference". > > It carefully defines words like "object" and "value", though, and terms like > "call by object" or "call by object reference" are perfectly understandable > if you u

Re: Real-world use cases for map's None fill-in feature?

2006-01-09 Thread rurpy
"Raymond Hettinger" <[EMAIL PROTECTED]> wrote: > Duncan Booth wrote: > > One example of padding out iterators (although I didn't use map's fill-in > > to implement it) is turning a single column of items into a multi-column > > table with the items laid out across the rows first. The last row may

Re: Is 'everything' a refrence or isn't it?

2006-01-09 Thread rurpy
"Donn Cave" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Quoth [EMAIL PROTECTED]: > | Fredrik Lundh wrote: > | ...snip... > | > afaik, the Python Language Reference never defines the word "reference". > | > It carefully defines words like "object" and "value", though, and terms >

another docs problem - imp

2006-01-09 Thread rurpy
Another Python docs problem... I was trying to use imp.find_module(). >>> imp.find_module("mymod", "./subdir") ImportError: No frozen submodule named ./subdir.mymod subdir/mymod.py definately exists, has reasonable permissions, etc. After a lot of reading and re-reading the docs, trying various

Re: another docs problem - imp

2006-01-09 Thread rurpy
Tony Meyer wrote: > [EMAIL PROTECTED] > > > Another Python docs problem... > > > > I was trying to use imp.find_module(). > > [...] > > I saw not a hint of this in the docs. In fact > > they seem to say that the first (unworking) > > form *should* work. Bye bye about two > > hours altogether...

Re: Real-world use cases for map's None fill-in feature?

2006-01-10 Thread rurpy
Raymond Hettinger <[EMAIL PROTECTED]> wrote: > > > > History of zip() > > > > > > PEP 201 (lock-step iteration) documents that a fill-in feature was > > > contemplated and rejected for the zip() built-in introduced in Py2.0. > > > In the years before and after, SourceForge logs sho

Re: another docs problem - imp

2006-01-10 Thread rurpy
"Fredrik Lundh" <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > > Turns out that you have to do > > >>> imp.find_module("mymod", ["./subdir"]) > > > > I saw not a hint of this in the docs. In fact > > they seem to say that the first (unworking) > > form *should* work. > > from the find_

Re: Is 'everything' a refrence or isn't it?

2006-01-12 Thread rurpy
"Fredrik Lundh" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > [EMAIL PROTECTED] wrote: > > > > afaik, the Python Language Reference never defines the word "reference". > > > It carefully defines words like "object" and "value", though, and terms > > > like > > > "call by object" o

Re: another docs problem - imp

2006-01-13 Thread rurpy
"Fredrik Lundh" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > [EMAIL PROTECTED] wrote: > > > > from the find_module documentation: > > > > > > find_module( name[, path]) > > > > > > Try to find the module _name_ on the search path _path_. > > > If _path_ is a list

Re: Real-world use cases for map's None fill-in feature?

2006-01-13 Thread rurpy
"Raymond Hettinger" <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] > > > > How well correlated in the use of map()-with-fill with the > > > > (need for) the use of zip/izip-with-fill? > > [raymond] > > > Close to 100%. A non-iterator version of izip_longest() is exactly > > > equivalent to map(Non

Re: Is 'everything' a refrence or isn't it?

2006-01-13 Thread rurpy
"Donn Cave" <[EMAIL PROTECTED]> wrote: > In article <[EMAIL PROTECTED]>, > [EMAIL PROTECTED] wrote: > > "Donn Cave" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > ... > > > So you've had time to think about how you would define value, in a > > > few words. Any ideas? > > > > N

Re: Coding style

2006-07-17 Thread rurpy
PTY wrote: > Which is better? > > lst = [1,2,3,4,5] > > while lst: > lst.pop() > > OR > > while len(lst) > 0: > lst.pop() A dozen posts, but nobody has posted the right answer yet, so I will :-) It doesn't matter -- use whichever you prefer (*) This is an angels on the head of a pin issue. (

Re: OT: What's up with the starship?

2006-10-15 Thread rurpy
T. Bryan wrote: > Thomas Heller wrote: > > > I cannot connect to starship.python.net: neither http, nor can I login > > interactively with ssl (and the host key seems to have changed as well). > > > > Does anyone know more? > > starship.python.net was compromised. It looked like a rootkit may hav

Re: OT: What's up with the starship?

2006-10-15 Thread rurpy
Robert Hicks wrote: > [EMAIL PROTECTED] wrote: > > T. Bryan wrote: > > > Thomas Heller wrote: > > > > > > > I cannot connect to starship.python.net: neither http, nor can I login > > > > interactively with ssl (and the host key seems to have changed as well). > > > > > > > > Does anyone know more?

Re: OT: What's up with the starship?

2006-10-16 Thread rurpy
George Sakkis wrote: > [EMAIL PROTECTED] wrote: > > Robert Hicks wrote: > > > [EMAIL PROTECTED] wrote: > > > > T. Bryan wrote: > > > > > starship.python.net was compromised. It looked like a rootkit may > > > > > have been > > > > > installed. The volunteer admins are in the process of reinstal

Re: OT: What's up with the starship?

2006-10-16 Thread rurpy
[EMAIL PROTECTED] wrote: > [EMAIL PROTECTED] wrote: --snip-- > As far as I can tell, the machine was compromised on 2006-09-02. So it was compromised for over a month. > Irritatingly we didn't find out until just after logrotate had deleted > the logs for around the time of the attack. Murphy

Re: OT: What's up with the starship?

2006-10-16 Thread rurpy
[EMAIL PROTECTED] wrote: > [EMAIL PROTECTED] wrote: > > > I don't think that would help in the case of Pywin32 since the > > Sourceforge dates for build 210 are 9/22. > > I emailed Mark Hammond but have not heard anything back yet. > > In the case of pywin32, are you at all sure that you actually

Re: OT: What's up with the starship?

2006-10-16 Thread rurpy
Fredrik Lundh wrote: > [EMAIL PROTECTED] wrote: > > > But, I am still completely at a loss why you, he, or anyone, > > based on the information presented so far,.would conclude > > that the python security problem is unrelated. > > Because he's read the security advisory, perhaps, and understands

Re: OT: What's up with the starship?

2006-10-16 Thread rurpy
Fredrik Lundh wrote: > [EMAIL PROTECTED] wrote: > > > Then perhaps you or he could explain it to us less intelligent > > people in very simple terms? > > the security advisory explains that the cause of the problem is a bug > in the source code used to implement repr() for 32-bit Unicode strings,

Re: OT: What's up with the starship?

2006-10-17 Thread rurpy
[EMAIL PROTECTED] wrote: > [EMAIL PROTECTED] wrote: > > [EMAIL PROTECTED] wrote: > > > > > I don't think that would help in the case of Pywin32 since the > > > Sourceforge dates for build 210 are 9/22. > > > I emailed Mark Hammond but have not heard anything back yet. > > > > In the case of pywin3

Re: OT: What's up with the starship?

2006-10-17 Thread rurpy
Fredrik Lundh wrote: > [EMAIL PROTECTED] wrote: > > > I admit I am totally flmmexed by your answer. > > What does when the bug was introduced have to do with > > anything? > > oh, I thought your main concern was whether the packages available had > been compromised, Yes. > and that you asked if

Re: Why not just show the out-of-range index?

2006-12-04 Thread rurpy
Carsten Haese wrote: > On Mon, 2006-12-04 at 01:04 -0800, Russ wrote: > > Robert Kern wrote: > > > > > Nothing is going to happen until you do one of these two things. Being > > > more rude > > > (and yes, you are being incredibly rude and insulting) won't move things > > > along. > > > > I re-r

Re: Why not just show the out-of-range index?

2006-12-04 Thread rurpy
Martin v. Löwis wrote: > [EMAIL PROTECTED] schrieb: > > Thanks for explaining why the OP was rude. Having been > > reading and listening to english for only a few decades > > probably, I am sure the OP (and me too!) appreciates your > > explanation of rudeness > > You mean, you don't feel insulte

Re: Why not just show the out-of-range index?

2006-12-04 Thread rurpy
Terry Reedy wrote: > "Russ" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > > > Fredrik Lundh wrote: > > > >> > Sorry I haven't thought this through 100% > >> > >> obviously not. > > > > And you didn't like the "tone" of some of my earlier posts? > > While Fredrik's reply is a bi

Re: Why not just show the out-of-range index?

2006-12-04 Thread rurpy
Martin v. Löwis wrote: > [EMAIL PROTECTED] schrieb: > >>> Rather, they (like I) will encourage to OP to submit > >>> a patch that fixes the problem. > >> Now, that would be rather silly. I would have to familiarize > >> myself with the code for the Python interpreter, > > > > Seems to me he called

Re: Why not just show the out-of-range index?

2006-12-04 Thread rurpy
Robert Kern wrote: > [EMAIL PROTECTED] wrote: > > I saw no posts where there OP insulted anybody without being > > insulted first. It is ironic the Mr. Kern was the most consistent > > insulter while at the same time accusing the OP of rudeness. > > As I said, insult is in the ear of the listener

Re: Why not just show the out-of-range index?

2006-12-05 Thread rurpy
Russ wrote: > Folks, > > I'm truly sorry that so many feathers got ruffled in this thread. Let's > see if I can put this thing to rest gracefully. I too am tired of this and I apologize to you (Russ) for jumping into it and for this (hopefullly last) followup. But the same thing happened here a

Re: More than you ever wanted to know about objects [was: Is everything a refrence or isn't it]

2006-01-22 Thread rurpy
Steve Holden wrote: [...snipped a long and very helpful post addressing some questions I had regarding the nature of an object's value in python...] Sorry for the belated reply Steve (I had some access problems) but did want to let you know I found that post very informative, and wanted to thank

Re: another docs problem - imp

2006-01-22 Thread rurpy
Steve Holden wrote: > [EMAIL PROTECTED] wrote: [...snip...] > Well, perhaps if you'd read the intro to the documentation (more > carefully), or if you were more used to reading programming manuals, > you'd quickly have recognised > > [, path] > > as meaning precisely that the path argument is

Re: Real-world use cases for map's None fill-in feature?

2006-01-23 Thread rurpy
"Andrae Muys" <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > I am still left with a difficult to express feeling of > > dissatifaction at this process. > > > > Plese try to see it from the point of view of > > someone who it not a expert at Python: > > > > Here is izip(). > > My concepti

Re: Real-world use cases for map's None fill-in feature?

2006-01-23 Thread rurpy
Andrae Muys wrote: > [EMAIL PROTECTED] wrote: > > Thank you for the posting Andrae, it has increased my > > knowledge. > No problem, happy to help. > > But my original point was there are cases (often involving > > file iterators) where the problem's complexity seems to be > > on the same order as

Re: ANN: eGenix mxODBC Distribution 3.0.0 (mxODBC Database Interface)

2007-05-10 Thread rurpy
On May 10, 9:34 am, "eGenix Team: M.-A. Lemburg" <[EMAIL PROTECTED]> wrote: > ANNOUNCING >eGenix.com mxODBC Database Interface I gather this is no longer free for non-commercial use (as the previous version was) and is now a totally for-pay product? -- http://mail.python.org/mail

Re: docs patch: dicts and sets

2007-05-13 Thread rurpy
On May 11, 7:41 pm, Raymond Hettinger <[EMAIL PROTECTED]> wrote: > On May 11, 5:59 pm, "Alan Isaac" <[EMAIL PROTECTED]> wrote: > > > This is an attempt to synthesize Bill and Carsten's proposals. > > (I'm changing the subject line to better match the topic.) > > >http://docs.python.org/lib/typesmap

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-14 Thread rurpy
On May 14, 9:53 am, Michel Claveau <[EMAIL PROTECTED]> wrote: > > - should non-ASCII identifiers be supported? why? > > - would you use them if it was possible to do so? in what cases? > > Yes. > And, more: yes yes yes > > Because: > > 1) when I connect Python to j(ava)Script, if the pages "connect

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread rurpy
"Hendrik van Rooyen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > <[EMAIL PROTECTED]> wrote: [I fixed the broken attribution in your quote] > >(2) Several posters have claimed non-native english speaker > >status to bolster their position, but since they are clearly at > >or ne

<    1   2   3   4   5   6   >