Re: defining the behavior of zip(it, it) (WAS: Converting a flat list...)

2005-11-22 Thread rurpy
[EMAIL PROTECTED] wrote: > > > ii. The other problem is easier to explain by example. > > > Let it=iter([1,2,3,4]). > > > What is the result of zip(*[it]*2)? > > > The current answer is: [(1,2),(3,4)], > > > but it is impossible to determine this from the docs, > > > which would allow [(1,3)

Re: about sort and dictionary

2005-11-22 Thread rurpy
Mike Meyer wrote: > [EMAIL PROTECTED] writes: > > I think this is just another (admittedly minor) case of Python's > > designers using Python to enforce some idea of programming > > style purity. > > You say that as if it were a bad thing. Well, there are many languages that promote a specific sty

Re: defining the behavior of zip(it, it) (WAS: Converting a flat list...)

2005-11-22 Thread rurpy
[EMAIL PROTECTED] wrote: > [EMAIL PROTECTED] wrote: > > > * It is bug-prone -- zip(x,x) behaves differently when x is a sequence > > > and when x is an iterator (because of restartability). Don't leave > > > landmines for your code maintainers. > > > > Err thanks for the advice, but they are *my*

Re: about sort and dictionary

2005-11-22 Thread rurpy
Alex Martelli wrote: > <[EMAIL PROTECTED]> wrote: >... > > language, yea, I guess I think it's bad. A general > > purpose language should strive to support as wide a > > varity of styles as possible. > > Definitely NOT Python's core design principle, indeed the reverse of it. Priciples are f

Re: defining the behavior of zip(it, it) (WAS: Converting a flat list...)

2005-11-22 Thread rurpy
[EMAIL PROTECTED] wrote: > [EMAIL PROTECTED] wrote: > > Well, I do too mostly. On rereading my post, it seems I overreacted > > a bit. But the attitude I complained about I think is real, and has > > led to more serious flaws like the missing if-then-else expression, > > something I use in virtu

Re: about sort and dictionary

2005-11-22 Thread rurpy
Alex Martelli wrote: > <[EMAIL PROTECTED]> wrote: >... > > language, yea, I guess I think it's bad. A general > > purpose language should strive to support as wide a > > varity of styles as possible. > > Definitely NOT Python's core design principle, indeed the reverse of it. Priciples are f

Re: the PHP ternary operator equivalent on Python

2005-11-23 Thread rurpy
Fredrik Lundh wrote: > Daniel Crespo wrote: > > > Let me tell you something: I'm not a one-liner coder, but sometimes It > > is necesary. > > For example: > > I need to translate data from a DataField to Another. > > > > def Evaluate(condition,truepart,falsepart): > >if condition: > >r

Re: defining the behavior of zip(it, it) (WAS: Converting a flat list...)

2005-11-23 Thread rurpy
Fredrik Lundh wrote: > [EMAIL PROTECTED] wrote: > > > led to more serious flaws like the missing if-then-else expression, > > something I use in virtually every piece of code I write, and which > > increases readability. > > you obviously need to learn more Python idioms. Python works better > i

Re: Python as Guido Intended

2005-11-23 Thread rurpy
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > [EMAIL PROTECTED] wrote: > > it seems that quite some people > > don't see the language as the creator or wants them to see it. > > Here's my two cents on this recurring theme. > > While nothing forces a particular programming style, the

Re: about sort and dictionary

2005-11-23 Thread rurpy
Magnus Lycka wrote: > [EMAIL PROTECTED] wrote: > > a reminder" that the change is inplace. How arrogant! While > > I'm sure the designers had kindly intentions. my memory, though > > bad, is not that bad, and I object to being forced to write code > > that is more clunky than need be, because th

Re: the PHP ternary operator equivalent on Python

2005-11-24 Thread rurpy
Steven D'Aprano wrote: > [EMAIL PROTECTED] wrote: > > > Fredrik Lundh wrote: > > > >>def convert(old): > >> > >>new = dict( > >>CODE=old['CODEDATA'], > >>DATE=old['DATE'] > >>) > >> > >>if old['CONTACTTYPE'] == 2: > >>new['CONTACT'] = old['FIRSTCONTACT'] > >

Re: the PHP ternary operator equivalent on Python

2005-11-24 Thread rurpy
Fredrik Lundh wrote: > [EMAIL PROTECTED] wrote: > > > I don't find your code any more readable than the OP's > > equivalent code: > > the OP's question was > > How you do this in a practic way without > the use of one-line code ? I know. But you compared the readability of code with one-

Re: defining the behavior of zip(it, it) (WAS: Converting a flat list...)

2005-11-24 Thread rurpy
"Fredrik Lundh" <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > > > the thing that's in favour is "then-if-else", not "if-then-else". > > > > Sorry if I confused you, I though it was clear that I meant the > > concept, not a specific syntactical implementation. > > yup, but if you care r

Re: Python as Guido Intended

2005-11-24 Thread rurpy
"Mike Meyer" <[EMAIL PROTECTED]> writes: > [EMAIL PROTECTED] writes: > > Different programming styles are appropriate for different > > tasks, different times and different places, different people. > > And like morality, government, or economics, I do not believe > > that one style of programming

Re: defining the behavior of zip(it, it)

2005-11-24 Thread rurpy
Alex Martelli wrote: > <[EMAIL PROTECTED]> wrote: >... > > cookbook recipies of which there are already several good > > collections, but shorter things like, copy(sequence) is spelled > > "sequence[:]". > > No way: > > >>> from collections import deque > >>> d=deque([1,2,3]) > >>> d[:] > Trac

Re: Dr. Dobb's Python-URL! - weekly Python news and links (Dec 2)

2005-12-04 Thread rurpy
"Cameron Laird" <[EMAIL PROTECTED]> wrote: snip > Among the treasures available in The Wiki is the current > copy of "the Sorting min-howto": > http://www.amk.ca/python/howto/sorting/sorting.html snip Why is this a "treasure" when it is way out of date? 1. There is no mention of

Re: Dr. Dobb's Python-URL! - weekly Python news and links (Dec 2)

2005-12-04 Thread rurpy
Tony Meyer wrote: > >> Among the treasures available in The Wiki is the current > >> copy of "the Sorting min-howto": > >> http://www.amk.ca/python/howto/sorting/sorting.html > > > > Why is this a "treasure" when it is way out of date? > > Note that the updated version of this is a

timeit's environment

2005-12-04 Thread rurpy
Why doesn't the following work? It generates a "NameError: global name 'data' is not defined" error. import timeit global data data = [3,8,4,8,6,0,5,7,2,1] env = "global data; x = data" print timeit.Timer('x.sort()', env).timeit() print timeit.Timer('x.sort(cmp=cmp', env).timeit()

Re: Bitching about the documentation...

2005-12-04 Thread rurpy
[EMAIL PROTECTED] wrote: > Gee, I wonder if I typed "sort" into the search box on the wiki it might > turn up something useful? Well, what do you know? > > 2 results of about 4571 pages. (0.19 seconds) > > 1. HowTo/Sorting > 2. SortingListsOfDictionaries Are we talking about the sam

Re: Dr. Dobb's Python-URL! - weekly Python news and links (Dec 2)

2005-12-04 Thread rurpy
Tony Meyer wrote: > Among the treasures available in The Wiki is the current > copy of "the Sorting min-howto": > http://www.amk.ca/python/howto/sorting/sorting.html > >>> > >>> Why is this a "treasure" when it is way out of date? > >> > >> Note that the updated vers

Re: timeit's environment

2005-12-04 Thread rurpy
Alex Martelli wrote: > <[EMAIL PROTECTED]> wrote: > > > Why doesn't the following work? It generates a "NameError: global > > name 'data' is not defined" error. > > > > import timeit > > > > global data > > data = [3,8,4,8,6,0,5,7,2,1] > > > > env = "global data; x = data" > > > > print

Re: Creating referenceable objects from XML

2005-12-04 Thread rurpy
Michael Williams wrote: > Hi All, > > I'm looking for a quality Python XML implementation. All of the DOM > and SAX implementations I've come across so far are rather > convoluted. Are there any quality implementations that will (after > parsing the XML) return an object that is accessible by na

Re: Bitching about the documentation...

2005-12-04 Thread rurpy
Peter Hansen wrote: > [EMAIL PROTECTED] wrote: > > [EMAIL PROTECTED] wrote: snip > > Are we talking about the same Search box (at the top right of the > > wiki page, and labeled "search"? Well, yes I did enter "sort" and > > got (as I said) a long list of archived maillist postings. > > No, he's

Re: Dr. Dobb's Python-URL! - weekly Python news and links (Dec 2)

2005-12-05 Thread rurpy
"Tony Meyer" <[EMAIL PROTECTED]> wrote: > >> It's "site:", but even if you just left that out and used > >> 'wiki.python.org sorting "how to"', the first link is the one you're > >> after. Laziness is no excuse. > > > > You miss my point. Having outdated documentaion distributed > > with Python i

Re: Bitching about the documentation...

2005-12-05 Thread rurpy
"Tony Meyer" <[EMAIL PROTECTED]> wrote: > > But, the standard responce of "don't complain, fix it yourself" is > > bogus too. There are plenty of people on this list willing to sing > > python's > > praises, for balance, there should be people willing to openly > > point out > > python's flaws. >

Re: Bitching about the documentation...

2005-12-05 Thread rurpy
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] --snip-- > rurpy> Well, I'm not totally sure but I think I would be willing to a > rurpy> least try contributing something. A large amount of the time I > rurpy> waste when writing Python program

Re: what's wrong with "lambda x : print x/60,x%60"

2005-12-05 Thread rurpy
"Gary Herron" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > --snip-- > So just use a def. It is constantly pointed out on > this list that the lambda provides no extra expressive power, it is > merely a shortcut No, it is not merely a shortcut. It often allows one to avoid pollu

Re: timeit's environment

2005-12-05 Thread rurpy
Scott David Daniels wrote: > [EMAIL PROTECTED] wrote: > > > Since I've been bitching about documentation in another > > thread, I'm curious... Would it be obvious to anyone of > > low to intermediate python skills that using global would > > not work in this case? Would it be obvious that using

Re: Bitching about the documentation...

2005-12-05 Thread rurpy
Fredrik Lundh wrote: > [EMAIL PROTECTED] wrote: > > > I don't believe my name, etnic heritage, gender, age, employer or > > school, or part of the world I live in, have any bearing on the > > contents of my postings. > > perhaps not, but it's not what you think that's important here. and I sure >

Re: Bitching about the documentation...

2005-12-05 Thread rurpy
"Paul Rubin" wrote: > Steve Holden <[EMAIL PROTECTED]> writes: > > Or, better still, by an accomplished writer who has access to the > > code's author. This was indeed my experience in writing the docs for > > previously undocumented modules. The author was happy to help

Re: Bitching about the documentation...

2005-12-05 Thread rurpy
<[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > [EMAIL PROTECTED] wrote: --snip-- > > > If you prefer the latest documentation, bookmark this page: > > > > > > http://www.python.org/dev/doc/devel/index.html > > > > Thanks I will keep that in mind. But the obvious risk is that it > >

Re: what's wrong with "lambda x : print x/60,x%60"

2005-12-05 Thread rurpy
[EMAIL PROTECTED] wrote: > [EMAIL PROTECTED] wrote: > > > and, as you just found out, a rather restrictive one > > > at that. > > > > In part because Python's designers failed to make "print" a function > > or provide an if-then-else expression. > > > Why would one need print in lambda ? I like t

Re: Documentation suggestions

2005-12-06 Thread rurpy
[EMAIL PROTECTED] wrote: > Ian> I think it would be very useful if there was reference (not just > Ian> tutorial) documentation for all the syntax, special semantics like > Ian> magic methods, and all the functions and objects in builtins. > > It's pretty common to have a User's Guide as w

Re: Documentation suggestions

2005-12-07 Thread rurpy
"Michael Spencer" <[EMAIL PROTECTED]> wrote: > A.M. Kuchling wrote: > > On Tue, 06 Dec 2005 10:29:33 -0800, > > Michael Spencer <[EMAIL PROTECTED]> wrote: > >> not that helpful. "Miscellaneous Services", in particular, gives no clue > >> to > >> treasures it contains. I would prefer, for exampl

Re: Documentation suggestions

2005-12-07 Thread rurpy
Adam Olsen wrote: > On 12/7/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > Adam> I don't expect everything to make the transition. Are discussions > > Adam> of "atoms" and fragments of BNF really better than calling them > > Adam> expressions and linking to CPython's Grammar

Re: Documentation suggestions

2005-12-07 Thread rurpy
[EMAIL PROTECTED] wrote: > >> The library reference has so many modules that the table of contents > >> is very large. Again, not really a problem that we can fix; > >> splitting it up into separate manuals doesn't seem like it would > >> help. > > Iain> I like the Global Module I

Re: Documentation suggestions

2005-12-07 Thread rurpy
Fredrik Lundh wrote: > [EMAIL PROTECTED] wrote: > > > The builtins section should be moved to the language > > reference manual. The material it documents is part > > of the language definition, not part of an add-on library. > > the standard library is not an add-on. you're confused. > > Your

Re: ElementTree - Why not part of the core?

2005-12-07 Thread rurpy
Steven Bethard wrote: --snip-- > I think some people were hoping that instead of adding these things to > the standard library, we would come up with a better package manager > that would make adding these things to your local library much simpler. > > STeVe > > [1]http://www.python.org/dev/summar

Re: Documentation suggestions

2005-12-07 Thread rurpy
[EMAIL PROTECTED] wrote: > Ian> I think the point is that there is the core language, and from a > Ian> user's perspective builtins and statements and syntax are all the > Ian> same thing. When you import a module, it's more-or-less obvious > Ian> where you find information about the

Re: Documentation suggestions

2005-12-07 Thread rurpy
Fredrik Lundh wrote: > Ian Bicking wrote: > > > > the standard library is not an add-on. you're confused. > > > > I think the point is that there is the core language, and from a user's > > perspective builtins and statements and syntax are all the same thing. > > When you import a module, it's m

Re: To whoever hacked into my Database

2013-11-11 Thread rurpy
On 11/11/2013 04:49 PM, Joel Goldstick wrote: > On Mon, Nov 11, 2013 at 5:47 PM, wrote: >> 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 car

Re: To whoever hacked into my Database

2013-11-11 Thread rurpy
are in other ways insulting or >>>> useless. I think you are quite right to ignore it (or tell the >>>> poster to get lost.) >>> >>> Actually no; most of the advice has been genuine. >> >> Actually yes; most of the advice has not been genuine

Re: Not my fault

2013-11-19 Thread rurpy
On 11/18/2013 07:30 AM, Ferrous Cranus wrote: >[...] > No i haven't broke it at all. Everything work as they should. > > The refusal of 'pygeoip' to install turned out to be the local > setting in my new VPS. > > So i have changes it to: > > export LANG = en_US.UTF-8 > > and then 'pip install p

Re: If you continue being rude i will continue doing this

2013-11-19 Thread rurpy
On Monday, November 18, 2013 7:24:53 AM UTC-7, Piet van Oostrum wrote: > Ferrous Cranus writes: > > No i haven't broke it at all. > > Everything work as they should. > > The refusal of 'pygeoip' to install turned out to be the local setting in > > my new VPS. > > So i have changes it to: > > expo

Re: python programming help

2013-12-08 Thread rurpy
On 12/08/2013 12:17 PM, Chris Angelico wrote: > On Mon, Dec 9, 2013 at 6:06 AM, wrote:>[...] > Also, your posts are acquiring the slimy stain of Google Groups, which > makes them rather distasteful. All your replies are getting > double-spaced, among other problems. Please consider switching to a

Re: python programming help

2013-12-08 Thread rurpy
On 12/08/2013 05:27 PM, Mark Lawrence wrote: > On 09/12/2013 00:08, ru...@yahoo.com wrote: >> On 12/08/2013 12:17 PM, Chris Angelico wrote: >>> On Mon, Dec 9, 2013 at 6:06 AM, wrote:>[...] >[...] > To the OP, please ignore the above, it's sheer, unadulterated rubbish. > Nobody has ever been bull

Re: python programming help

2013-12-08 Thread rurpy
e that's buggy, too. Of course, I'll first try to > do things quietly (bug reports to the maintainers), but ultimately, > the solution to buggy software is to NOT USE IT. If Google doesn't > care enough about Groups to bring it up to the standard, then their > penalty has to b

Re: interactive help on the base object

2013-12-08 Thread rurpy
On 12/08/2013 09:46 PM, rusi wrote: > On Monday, December 9, 2013 9:46:30 AM UTC+5:30, Steven D'Aprano wrote: >> On Sun, 08 Dec 2013 18:58:09 -0800, rusi wrote: >[...] >> Does GG not give you some way of inspecting the post's full headers? > > Well I spent half hour looking around -- both inside G

Re: python programming help

2013-12-09 Thread rurpy
On 12/09/2013 12:57 AM, Chris Angelico wrote: > On Mon, Dec 9, 2013 at 4:07 PM, wrote: >> However it does not change the fact that people here have responded >> in rather extreme way to GG posts including calling GG users "twits" >> and claiming GG posts damage their eyesight, as well as repeated

Re: python programming help

2013-12-09 Thread rurpy
On 12/09/2013 01:15 AM, Chris Angelico wrote: > On Mon, Dec 9, 2013 at 4:10 PM, wrote: >> We all use buggy software every day. *Every* piece of non-trival >> software is buggy -- you already know that. So you are saying >> that bugs that annoy *you* are ones that *others* should change >> their

Re: python programming help

2013-12-09 Thread rurpy
On 12/08/2013 10:20 PM, rusi wrote: > On Monday, December 9, 2013 10:37:38 AM UTC+5:30, ru...@yahoo.com wrote: >[...] >> However it does not change the fact that people here have responded >> in rather extreme way to GG posts including calling GG users "twits" >> and claiming GG posts damage their

Re: Problem when applying Patch from issue1424152 to get https over authenticating proxies working with urllib2 in Python 2.5

2013-12-10 Thread rurpy
On 12/10/2013 06:47 AM, Chris Angelico wrote: > On Wed, Dec 11, 2013 at 12:35 AM, wrote: > Also: You appear to be using Google Groups, which is the Mos Eisley of > the newsgroup posting universe. You'll do far better to instead use > some other means of posting, such as the mailing list: Using

Re: Problem when applying Patch from issue1424152 to get https over authenticating proxies working with urllib2 in Python 2.5

2013-12-10 Thread rurpy
On 12/10/2013 09:22 AM, Mark Lawrence wrote: > On 10/12/2013 15:48, ru...@yahoo.com wrote: > [...] > There is no "you might want to" about it. There are two options here, > either read and action the page so we don't see double spaced crap > amongst other things, use another tool, or don't post.

Re: Problem when applying Patch from issue1424152 to get https over authenticating proxies working with urllib2 in Python 2.5

2013-12-10 Thread rurpy
On 12/10/2013 10:36 AM, David Robinow wrote: > On Tue, Dec 10, 2013 at 11:59 AM, wrote: >> On 12/10/2013 09:22 AM, Mark Lawrence wrote: > ... >> Mark is one of the resident trolls here. Among his other traits >> is his delusion that he is Lord High Commander of this list. >> Like with other trol

Re: GUI:-please answer want to learn GUI programming in python , how should i proceed.

2013-12-14 Thread rurpy
On 12/14/2013 05:25 AM, Chris Angelico wrote: > On Sat, Dec 14, 2013 at 11:12 PM, Jai wrote: >> GUI:-want to learn GUI programming in python , how should i proceed. >> >> There are lots of book here so I am confuse which book i should refer so >> that i don't waste time . please answer > > Th

Re: Newbie question. Are those different objects ?

2013-12-20 Thread rurpy
On 12/20/2013 08:16 AM, dec...@msn.com wrote: > y = raw_input('Enter a number:') > print type y > y = float(raw_input('Enter a number:')) > print type y > > I'm assuming that y is an object. Rather than thinking that y "is" an object, it is more accurate to think of it as: y is a name that is "bo

Re: Airplane mode control using Python?

2013-12-22 Thread rurpy
On 12/22/2013 08:33 PM, Chris Angelico wrote: > On Mon, Dec 23, 2013 at 2:20 PM, Kevin Peterson wrote: >> I am trying to control Aeroplane mode on Android using Python code. >> I am running QPyPlus python. When I execute this code(that is >> widespread in the net), >> >>#!/usr/bin/python >>

Re: Airplane mode control using Python?

2013-12-23 Thread rurpy
On Sunday, December 22, 2013 10:37:35 PM UTC-7, Chris Angelico wrote: > Actually, formatting errors ARE often caused by Google Groups. Maybe > it wasn't in this instance, but I have seen several cases of GG > mangling code formatting, so this was a perfectly reasonable theory. And you have determi

Re: Airplane mode control using Python?

2013-12-23 Thread rurpy
On Sunday, December 22, 2013 10:37:35 PM UTC-7, Chris Angelico wrote: > Actually, formatting errors ARE often caused by Google Groups. Maybe > it wasn't in this instance, but I have seen several cases of GG > mangling code formatting, so this was a perfectly reasonable theory. What sort of formatt

Re: Airplane mode control using Python?

2013-12-25 Thread rurpy
trashing whitespace to a degree greater than other mail/usenet software does.) If you don't know what was entered into the posting interface how can you say with such certainty that what was received was different? > Why, rurpy, do you continue to support, apologize for, and argue

Re: Google Groups + this list

2013-12-25 Thread rurpy
On 12/23/2013 09:12 AM, Chris Angelico wrote: > On Mon, Dec 23, 2013 at 5:09 PM, wrote: >> On Sunday, December 22, 2013 10:37:35 PM UTC-7, Chris Angelico wrote: >>> Actually, formatting errors ARE often caused by Google Groups. Maybe >>> it wasn't in this instance, but I have seen several cases o

Re: Google Groups + this list

2013-12-25 Thread rurpy
p them. > >> >> If you want to recommend the mailing list, fine, but please >> don't make stupid, unfounded, accusatory suggestions. > > Rurpy: you're coming on really strong here. "Stupid"? No. 'Stupid" might not have been the most acc

Re: Google Groups + this list

2013-12-25 Thread rurpy
that Chris claimed (and you found reasonable to believe) that GG corrupts white space in posts. I have not seen any such effect, Chris' explanations were all handwaving, and so pending something more convincing I will offer the alternate explanation that it is just more unjustified dispa

Re: Insert NULL into mySQL datetime

2013-12-26 Thread rurpy
On 12/24/2013 05:33 PM, Igor Korot wrote: > Hi, ALL, > I am working on a script that parses CSV file and after successful > parsing insert data ino mySQL table. > One of the fields in CSV holds a date+time value. > > What the script should do is check if the cell has any data, i.e. not > empty an

Re: Google Groups + this list

2013-12-26 Thread rurpy
On 12/25/2013 09:17 PM, Chris Angelico wrote: >[...] > Or maybe I should have just filtered everything from Google Groups > into the bit bucket, because responding just creates threads like > this. Do you honestly think that would be better? No response at all > if the post comes from GG? Do you r

Re: Airplane mode control using Python?

2013-12-26 Thread rurpy
On Wednesday, December 25, 2013 3:56:26 AM UTC-7, Chris Angelico wrote: > On Wed, Dec 25, 2013 at 12:37 PM, wrote: > > I have addressed this several times already. All > > software is buggy. I even posted long list on the > > problems I've had with Thunderbird. Choosing any > > software is mak

Re: Google Groups + this list

2013-12-26 Thread rurpy
On 12/25/2013 09:11 PM, Ned Batchelder wrote: > On 12/24/13 8:44 PM, ru...@yahoo.com wrote: >> On 12/23/2013 04:48 AM, Ned Batchelder wrote: >>> On 12/22/13 11:52 PM, ru...@yahoo.com wrote: >[...] >>> But it's a lot of work. >> No, it not a "lot" of work (IMO and I use GG for every >[...] > Yes, th

Re: Google Groups + this list

2013-12-27 Thread rurpy
still ignoring the primary thrust > of my posts. I wasn't sure what your "primary thrust" was, I asked you to remind me and you failed to respond. If you're referring to, "Why, rurpy, do you continue to support, apologize for, and argue in favour of, a piece of soft

Re: sqlite3 and dates

2015-02-18 Thread rurpy
On 02/18/2015 01:14 PM, Ben Finney wrote: > Johannes Bauer writes: >> On 18.02.2015 08:05, Chris Angelico wrote: >> >>> But if you need more facilities than SQLite3 can offer, maybe it's >>> time to move up to a full database server, instead of local files. >>> Switching to PostgreSQL will give yo

Re: sqlite3 and dates

2015-02-18 Thread rurpy
On 02/18/2015 04:21 AM, Chris Angelico wrote: > On Wed, Feb 18, 2015 at 10:11 PM, Johannes Bauer wrote: >> On 18.02.2015 08:05, Chris Angelico wrote: >> >>> But if you need more facilities than SQLite3 can offer, maybe it's >>> time to move up to a full database server, instead of local files. >>>

Re: 'Lite' Databases (Re: sqlite3 and dates)

2015-02-18 Thread rurpy
On 02/18/2015 05:08 PM, Mario Figueiredo wrote: >[...] > SQLite misses some important features that makes it better suited as a > simple datastore, not much unlike shelve. And network use is not one > of them, since you can actually implement concurrent sqlite access by > coding an intermediate lay

Re: sqlite3 and dates

2015-02-18 Thread rurpy
On 02/18/2015 04:07 PM, Steven D'Aprano wrote: > ru...@yahoo.com wrote: >> On 02/18/2015 01:14 PM, Ben Finney wrote: >>> Johannes Bauer writes: On 18.02.2015 08:05, Chris Angelico wrote: > But if you need more facilities than SQLite3 can offer, maybe it's > time to move up to a f

Re: 'Lite' Databases (Re: sqlite3 and dates)

2015-02-18 Thread rurpy
On 02/18/2015 07:13 PM, Steven D'Aprano wrote:> Chris Angelico wrote: >>> SQLite misses some important features that makes it better suited as a >>> simple datastore, not much unlike shelve. And network use is not one >>> of them, since you can actually implement concurrent sqlite access by >>> cod

Re: 'Lite' Databases (Re: sqlite3 and dates)

2015-02-18 Thread rurpy
On 02/18/2015 09:09 PM, Ben Finney wrote > memilanuk writes: >[...] > If you want networked access, you need concurrent access and access > permissions, etc. Sqlite has concurrent access. It doesn't have concurrent access that will support a large number of writers or high volume of writes. A

Re: 'Lite' Databases (Re: sqlite3 and dates)

2015-02-19 Thread rurpy
On 02/19/2015 09:03 AM, Tim Chase wrote: > On 2015-02-19 15:04, Mark Lawrence wrote: >> On 19/02/2015 14:17, Tim Chase wrote: > Parameterized queries is just a pet peeve of mine that I wish to > include here. SQLite misses it and I miss the fact SQLite misses > it. The less SQL one need

Re: 'Lite' Databases (Re: sqlite3 and dates)

2015-02-19 Thread rurpy
On 02/19/2015 12:07 AM, Steven D'Aprano wrote: > ru...@yahoo.com wrote: >> On 02/18/2015 07:13 PM, Steven D'Aprano wrote: >>> Chris Angelico wrote: > SQLite misses some important features that makes it better suited as a > simple datastore, not much unlike shelve. And network use is not one

Re: 'Lite' Databases (Re: sqlite3 and dates)

2015-02-19 Thread rurpy
On 02/19/2015 12:23 AM, Chris Angelico wrote: > On Thu, Feb 19, 2015 at 6:07 PM, Steven D'Aprano > wrote: >> Very possibly. With modern dependency management, it isn't hard to install >> Postgresql: >> >> sudo aptitude postgresql >> >> or equivalent should work. For primitive operating systems wi

Re: 'Lite' Databases (Re: sqlite3 and dates)

2015-02-19 Thread rurpy
On Wednesday, February 18, 2015 at 10:39:04 PM UTC-7, Ethan Furman wrote: > On 02/18/2015 09:26 PM, memilanuk wrote: > > On 02/18/2015 09:16 PM, Ben Finney wrote: > >> memilanuk writes: > >> > >>> In the past I've been waffling back and forth between a desktop > >>> client/server setup, or a web-b

Re: 'Lite' Databases (Re: sqlite3 and dates)

2015-02-19 Thread rurpy
On 02/19/2015 01:47 PM, Chris Angelico wrote: > On Fri, Feb 20, 2015 at 7:26 AM, wrote: >> I'll point out that five people in this thread (by my >> count) have said that Postgresql requires a significant >> amount of work to setup and use. Only you and Steven claim >> the opposite. (And it soun

Re: 'Lite' Databases (Re: sqlite3 and dates)

2015-02-19 Thread rurpy
iting your application but that are hard to port to Sqlite. So your app is broken until you do all that work. >> It is bad advise to recommend using Postgresql without >> regard to the developer's actual needs. > > Naturally. But I must say postgres isn't the bad c

Re: Functions help

2014-02-23 Thread rurpy
On 02/23/2014 08:21 PM, Mark Lawrence wrote: > On 24/02/2014 02:55, Benjamin Kaplan wrote: >> On Sun, Feb 23, 2014 at 5:39 PM, alex23 wrote: >>> On 24/02/2014 11:09 AM, Mark Lawrence wrote: On 24/02/2014 00:55, alex23 wrote: > for _ in range(5): > func() the obvious i

Re: Functions help

2014-02-26 Thread rurpy
On 02/25/2014 07:52 PM, Ethan Furman wrote: > On 02/23/2014 08:01 PM, ru...@yahoo.com wrote: >> On 02/23/2014 08:21 PM, Mark Lawrence wrote: >>> On 24/02/2014 02:55, Benjamin Kaplan wrote: On Sun, Feb 23, 2014 at 5:39 PM, alex23 wrote: > On 24/02/2014 11:09 AM, Mark Lawrence wrote: >>

Re: email 8bit encoding

2013-08-01 Thread rurpy
On 07/29/2013 02:52 PM, Antoon Pardon wrote: > Op 29-07-13 01:41, ru...@yahoo.com schreef: >> How, using Python-3.3's email module, do I "flatten" (I think >> that's the right term) a Message object to get utf-8 encoded >> body with the headers: >> Content-Type: text/plain; charset=UTF-8 >> Con

Re: JUST GOT HACKED

2013-10-02 Thread rurpy
On 10/01/2013 08:24 AM, Daniel Stojanov wrote: > On 02/10/2013 12:05 AM, "Νίκος" wrote: > >> Thanks for visting my website: you help me increase my google page >> rank without actually utilizing SEO. >> >> -- https://mail.python.org/mailman/listinfo/python-list > > 1) You need links, not page v

Re: JUST GOT HACKED

2013-10-02 Thread rurpy
On 10/02/2013 01:02 AM, Ravi Sahni wrote: > On Wed, Oct 2, 2013 at 12:19 PM, Ben Finney > wrote: >> Antoon Pardon writes: >> >>> Op 02-10-13 00:06, Ben Finney schreef: >>> > This is an unmoderated forum, so we have occasional spates of >>> > persistent nuisances, and those who respond with the m

Re: Don't use default Google Group client (was re:....)

2013-10-25 Thread rurpy
On 10/25/2013 02:05 PM, Terry Reedy wrote: > On 10/25/2013 2:57 PM, Peter Cacioppi wrote: >> The default >> Google Group client is notoriously cruddy with quotes attribution. > > So don't use it. Get any decent newsreader, such as Thunderbird, and > access the list at news.gmane.org as gmane.comp

Re: Don't use default Google Group client (was re:....)

2013-10-26 Thread rurpy
On 10/25/2013 06:25 PM, Chris Angelico wrote: > On Sat, Oct 26, 2013 at 10:44 AM, wrote: >> Peter, you can ignore Terry's "advice" if Google Groups works for you. >> There are a small number of Google haters here who seem larger due to >> their obnoxious noisiness. >> >> I've been using Google Gr

Re: Don't use default Google Group client (was re:....)

2013-10-26 Thread rurpy
On 10/25/2013 06:19 PM, Mark Lawrence wrote: > On 26/10/2013 00:44, ru...@yahoo.com wrote: >> On 10/25/2013 02:05 PM, Terry Reedy wrote: >>> On 10/25/2013 2:57 PM, Peter Cacioppi wrote: The default Google Group client is notoriously cruddy with quotes attribution. >>> >>> So don't use it.

Re: Don't use default Google Group client (was re:....)

2013-10-26 Thread rurpy
uotes attribution. >>> >>> So don't use it. Get any decent newsreader, such as Thunderbird, and >>> access the list at news.gmane.org as gmane.comp.python.general. >> >> Peter, you can ignore Terry's "advice" if Google Groups works fo

Re: Don't use default Google Group client (was re:....)

2013-10-26 Thread rurpy
On 10/25/2013 08:40 PM, Steven D'Aprano wrote: > On Fri, 25 Oct 2013 16:44:45 -0700, rurpy wrote: >> On 10/25/2013 02:05 PM, Terry Reedy wrote: >>> On 10/25/2013 2:57 PM, Peter Cacioppi wrote: >>>> The default >>>> Google Group client is notoriou

Re: Don't use default Google Group client (was re:....)

2013-10-26 Thread rurpy
On 10/26/2013 06:15 AM, rusi wrote: >[...] > Google-groups consist of the 'children-population' (so to speak); > newsgroups etc consist of the adult population with some exceptions. > The appropriate way of dealing with children is not to say "Dont be > children!" but to say "This kind of behavior

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

2013-10-26 Thread rurpy
On 10/20/2013 05:30 PM, Νίκος Αλεξόπουλος wrote: > try: > cur.execute( '''SELECT host, city, useros, browser, ref, hits, > lastvisit FROM visitors WHERE counterID = (SELECT ID FROM counters WHERE > url = %s) ORDER BY lastvisit DESC''', page ) > data = cur.fetchall() > >

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

2013-10-26 Thread rurpy
On 10/26/2013 06:11 PM, Nick the Gr33k wrote: > Στις 27/10/2013 2:52 πμ, ο/η Nick the Gr33k έγραψε: >> Ah foun it had to change in you code this line: >> key = host, city, useros, browser, ref >> >> to this line: >> >> key = host, city, useros, browser >> >> so 'ref' would

Re: array/list of sockets

2013-10-26 Thread rurpy
On 10/26/2013 05:17 PM, theelder...@gmail.com wrote: > I apologize but I do not understand what you mean by "lack of > context." I have taken Chris' words into consideration, for my > previous post was supposed to be my last (I just had to say thank > you). This is my first google groups post, so I

Re: Don't use default Google Group client (was re:....)

2013-10-26 Thread rurpy
On 10/26/2013 11:24 AM, Steven D'Aprano wrote: > On Sat, 26 Oct 2013 08:05:27 -0700, rurpy wrote: >> On 10/25/2013 08:40 PM, Steven D'Aprano wrote: > [...] >> However, looking now, I see you pointed out that Peter originally >> cross-posted his two messages to

Re: Don't use default Google Group client (was re:....)

2013-10-26 Thread rurpy
On 10/26/2013 09:38 AM, Mark Lawrence wrote: > On 26/10/2013 15:58, ru...@yahoo.com wrote: >> That's odd, because in >>https://groups.google.com/d/msg/comp.lang.python/FFAe5sJ7kQ4/GmDtHitY50QJ >> I responded to a direct question from you about problems >> with Thunderbird. If you mean instead

Re: Don't use default Google Group client (was re:....)

2013-10-26 Thread rurpy
On 10/26/2013 07:25 AM, Chris Angelico wrote: > On Sat, Oct 26, 2013 at 11:15 PM, rusi wrote: >> tl;dr I think Mark's scoldings in this regard will work if they come not >> just from him but from any and every one. They are likely to have a larger >> subscription if you would agree to change: "

Re: Don't use default Google Group client (was re:....)

2013-10-26 Thread rurpy
On 10/26/2013 04:15 PM, Chris Angelico wrote: > On Sun, Oct 27, 2013 at 2:05 AM, wrote: >> The large number of posts here from GG would suggest >> that the readership there is substantial, and the decline in >> "web-1.0" tools (usenet, mailing lists, etc) is additional >> evidence that the number

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

2013-10-26 Thread rurpy
On 10/26/2013 07:45 PM, rusi wrote: > On Sunday, October 27, 2013 2:07:53 AM UTC+5:30, Peter Cacioppi wrote: >> Rusi said: >> >> "Users of GG are requested to read and follow these instructions >> https://wiki.python.org/moin/GoogleGroupsPython " >> >> Seriously, it's not exactly clear what prot

Re: How to find where data files are installed for my Python program (was: Function for the path of the script?)

2013-10-26 Thread rurpy
On 10/26/2013 10:28 PM, Ben Finney wrote: > Chris Angelico writes: > >> It's very common to want to know what directory you're in - it's a >> good way to find data files. > > That's a naive way to do it (though it's often good enough, for a > program only used on one system). > > For programs i

<    1   2   3   4   5   6   >