Re: Why Python 3?
On Sat, 19 Apr 2014 20:25:32 -0700, Paul Rubin wrote: Terry Reedy tjre...@udel.edu writes: LibreOffice bundles 3.3. So anyone who does Python scripting in LibreOffice is using Python 3. Actually, I believe LO uses Python internally for some of its scripting. If so, everyone using LO is indirectly using 3.3. I didn't even know LO supported Python scripting, but I wouldn't count such indirect use anyway. I meant I don't know any Python programmers (at least in person) who use Python 3 for their daily coding. I think this is mostly because they (and I) use whatever is in the OS distro, and that is generally still 2.6 or 2.7. I would use Python 3 in a flash if only wxPython would support it. -- https://mail.python.org/mailman/listinfo/python-list
Two Questions about Python on Windows
Normally my Python development is done on FreeBSD and Linux. I know that on *ix I simply have to make foo.py executable (the shebang line is present, of course) to make it runnable. For my son's school assignment, I have to help him with Python for Windows. As I understand it, on Windows a .py file is not executable, so I need to run 'python foo py', or use a .pyw file. Question 1: Do I make a .pyw file simply by copying or renaming foo.py to foo.pyw? Secondly, on *ix, if there's an up-to-date .pyc in the right place and I run foo.py, Python will automagically use foo.pyc. Question 2: Does it work the same way on Windows, and does this apply both to foo.py and foo.pyw? -- https://mail.python.org/mailman/listinfo/python-list
Re: Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list)
Steven D'Aprano wrote: On Sun, 30 Mar 2014 00:32:58 -0700, Larry Hudson wrote: Unfortunately, there is no good word for USA-ian. United States Citizen is too long and awkward and United Statesian is ridiculous. The common usage of American for this is at best ambiguous, and definitely inaccurate (as well as chauvinistic, and rather insulting to other North and South Americans outside the US). Among fans of the British writer Terry Pratchett, the usual term is Merkins. Including among Merkin fans. Tom Sharpe was there first, I think. By the way, his books are hilarious. -- https://mail.python.org/mailman/listinfo/python-list
Re:Python programming
Dave Angel wrote: What is the best way i can master thinker? Never heard of it. Is it a computer language? Socrates himself is particularly missed -- https://mail.python.org/mailman/listinfo/python-list
Re: What is the recommended python module for SQL database access?
Chris Angelico wrote: Broad recommendation: Single application, tiny workload, concurrency not an issue, simplicity desired? Go SQLite. Big complex job, need performance, lots of things reading and writing at once, want networked access? Go PGSQL. And don't go MySQL if PG is an option. And definitely don't go for a non-free option (MS-SQL, DB2, etc) unless you've looked into it really closely and you are absolutely thoroughly *sure* that you need that system (which probably means you need your app to integrate with someone else's, and that other app demands one particular database). I agree 100% with this. And speaking as an ex Oracle and DB2 DBA - not to mention MS-SQL (spit), with which I occasionally had to dabble, avoid them like the plague unless circumstances dictate. -- https://mail.python.org/mailman/listinfo/python-list
Re: What does means in python?
Roy Smith wrote: In article 72a7dd52-7619-4520-991e-20db7ce55...@googlegroups.com, Sam lightai...@gmail.com wrote: For string, one uses to represent string. Below is a code fragment that uses instead. cursor.execute(SELECT name, phone_number FROM coworkers WHERE name=%s AND clue %s LIMIT 5, (name, clue_threshold)) What does means in python? This is what's known as a triple quoted string It's just like a regular string, except that it run across newlines. Very handy for things like embedding SQL code in a Python program! It works with single quotes too (i.e. '''this is a very long string spread out over several lines''' PMFJI. When I asked (here) about this a while ago, some kind soul suggested textwrap.dedent. Any advice as to the pros and cons of the respective approaches (esp. for SQL)? -- https://mail.python.org/mailman/listinfo/python-list
Re: python finance
On Mon, 06 Jan 2014 13:11:53 -0800, d ss wrote: i wrote just 2 words with a clear indicative title: Python, Finance which summarizes the following if you are good in python and interested in applying your python knowledge to the field of finance then we may have a common interest in talking together :D that s it! No, you didn't. The title wasn't capitalised. The advertisement was similarly poor English, the post was to the wrong mailing list and you posted usong G**gle Gs. Would any competent developer be interested? I think not. -- https://mail.python.org/mailman/listinfo/python-list
Re: Suggest an open-source log analyser?
On Thu, 02 Jan 2014 16:40:19 +1100, Alec Taylor wrote: I use the Python logger class; with the example syntax of: Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s') Can of course easily use e.g.: a JSON syntax here instead. Are there any open-source log viewers (e.g.: with a web-interface) that you'd recommend; for drilling down into my logs? If you want to do in-depth analysis, why not just stick it into an SQL database; e.g. SQLite or Postgres? -- https://mail.python.org/mailman/listinfo/python-list
Re: Dictionary
On Mon, 30 Dec 2013 18:38:20 +, Bischoop wrote: I have a txt file with some words, and need simply program that will print me words containing provided letters. For example: Type the letters: (I type: g,m,o) open the dictionary.txt check words containing:g,m,o in dictionary.txt if there are words containing: [g, m, o ] print words with g,m,o Well, what have you tried so far, and what result did you get? The incredibly helpful people here will provide advice, guidance and pointers, but it won't help you at all if they just do your homework for you. -- https://mail.python.org/mailman/listinfo/python-list
Re: Trouble with Multi-threading
On Tue, 10 Dec 2013 11:21:32 -0500, dan.rose wrote: PLEASE NOTE: The preceding information may be confidential or privileged. It only should be used or disseminated for the purpose of conducting business with Parker. If you are not an intended recipient, please notify the sender by replying to this message and then delete the information from your system. Thank you for your cooperation. Regretfully I am unable to delete the message from my Usenet provider's servers. However, in accordance with your request I have expunged the body of your request so as to avoid disseminating it. -- https://mail.python.org/mailman/listinfo/python-list
Re: Python and PEP8 - Recommendations on breaking up long lines?
On Thu, 28 Nov 2013 10:08:30 -0500, Roy Smith wrote: In article 34479463-b8a8-4417-9989-cd2936946...@googlegroups.com, Victor Hooi victorh...@gmail.com wrote: cur.executemany(INSERT INTO foobar_foobar_files VALUES (?), [[os.path.relpath(filename, foobar_input_folder)] for filename in filenames]) I don't often write raw SQL embedded in Python. I'm much more likely to use some sort of ORM layer. But, if I were doing this, I would break it up something like: There's a few different strategies I employed there. My first thought was a logical break of computing the list of pathnames vs. inserting them into the database. That got me here: paths = [[os.path.relpath(filename, foobar_input_folder)] \ for filename in filenames] cur.executemany(INSERT INTO foobar_foobar_files VALUES (?), paths) I wouldn't have actually broken the first line with the backslash, but I'm doing that to appease my news posting software. My next step would be some simple textual changes; I'd get rid of the overly-line variable names. In general, I don't like very short variable names, but I'm OK with them as long as the scope is very small, as it is here: paths = [[os.path.relpath(fn, folder)] for fn in filenames] cur.executemany(INSERT INTO foobar_foobar_files VALUES (?), paths) I'd probably factor out the double lookup of os.path.relpath. I think this is easier to read: relpath = os.path.relpath paths = [[relpath(fn, folder)] for fn in filenames] cur.executemany(INSERT INTO foobar_foobar_files VALUES (?), paths) If filenames was a very long list, it would also be a little bit faster to execute, but that's such a small factor as to probably be unmeasurable. And, finally, I'd probably move one set of square brackets down into the SQL statement. It really makes more sense there anyway; the bundling up of the arguments into a sequence is more a part of the database API than it is inherent to the data. relpath = os.path.relpath paths = [relpath(fn, foobar_input_folder) for fn in filenames] cur.executemany(INSERT INTO foobar_foobar_files VALUES (?), [paths]) I had a problem similar to this some time ago. Someone (here) suggested textwrap.dedent, which for me was just the ticket. -- https://mail.python.org/mailman/listinfo/python-list
Re: Managing Google Groups headaches
On Thu, 28 Nov 2013 11:00:22 -0800, rusi wrote: On Friday, November 29, 2013 12:07:29 AM UTC+5:30, rusi wrote: On Thursday, November 28, 2013 11:59:13 PM UTC+5:30, Michael Torrie wrote: On 11/28/2013 10:23 AM, Ned Batchelder wrote: Funny, I thought the sentiment of many here was, let's just keep this as a newsgroup, why do we need the mailing list also? but I'll admit to being confused about what people have been proposing for alternate topologies. That may well be the majority sentiment here. I only state my opinion. Seems like 90% of the problems on this list come from the unchecked usenet side of things. Such as trolls or spam. For example a certain iron-skulled person who posted his whining rants and threats from half a dozen different addresses to the annoyance of all. Despite many calls to banish him from the list for his blatant disregard for list etiquette, with usenet it's just not possible. Although I'm sure some would argue that's a good thing to be unable to kick offenders off the list. Do you realize that that person was not using GG? IOW we are unfortunately conflating two completely unrelated things: 1. GG has some technical problems which are fairly easy to solve 2. All kinds of people hop onto the list. In addition to genuine ones there are spammers, trolls, dicks, nuts, philosophers, help-vampires etc etc. To add to that: 1. In this thread itself there is a quadruple-post 2. In an adjacent thread there is the mess due to html mail 3. Sometime ago there was a long argument around the old and unsettled: Reply vs Reply-all debate All these are due to NON use of GG. Does that mean everyone should use GG? Heck no! Just this: Technology will occasionally have problems and these can usually be solved technically. All true, but the fact remains that the vast majority of GG posters can't be bothered to do the necessary, or are too stupid, or simply don't care. You are the exception which proves the rule. I'm with Chris Angelico on this one. -- https://mail.python.org/mailman/listinfo/python-list
Re: Managing Google Groups headaches
On Thu, 28 Nov 2013 11:50:47 -0700, Michael Torrie wrote: On 11/28/2013 11:37 AM, rusi wrote: Do you realize that that person was not using GG? I do but he was using usenet. IOW we are unfortunately conflating two completely unrelated things: 1. GG has some technical problems which are fairly easy to solve 2. All kinds of people hop onto the list. In addition to genuine ones there are spammers, trolls, dicks, nuts, philosophers, help-vampires etc etc. What they have in common is usenet. Ditching usenet would solve both problems. Sledgehammer to crack a nut IMO. It's only Alister who appears to suffer from these multiple post problems. And Pan is not the culprit - I'm using Pan on both Linux and FreeBSD without issues, as doubtless are many others. -- https://mail.python.org/mailman/listinfo/python-list
Re: How to determine whether client and server are on the same host
On Wed, 27 Nov 2013 09:56:13 +1100, Chris Angelico wrote: On Wed, Nov 27, 2013 at 4:26 AM, Malte Forkel malte.for...@berlin.de wrote: Thanks for the explanation. I guess I was hoping that I could use some property of a connection created with telnetlib or its socket to find out whether it was actually a host-local connection (i.e. a connection to 'localhost', '127.xx.xx.xx' or 'local_host_name'). So its either your initial suggestion of taking a hint from the user or comparing files on the server and the client. You can still have a unique file, then; all you sacrifice is the random name generation. And you can of course recognize 127.x.y.z as local - it's just not the _only_ way to detect a local connection. Since this is, presumably, an optimization, you could possibly just tell people that it'll run faster if they tell it 127.0.0.1 than if they tell it {whatever other IPs the server has}. That may end up sufficient. Otherwise, yeah, detect by filesystem with a manually-created file. How about checking the MAC address of the local network card on the client, and then comparing that against a file on the server? Easy enough with ifconfig and grep. I presume that there is also a way on Windows, but others will have to contribute that. -- https://mail.python.org/mailman/listinfo/python-list
Re: Automation
On Thu, 21 Nov 2013 03:33:02 +1100, Chris Angelico wrote: But the actual fake is Cerinabbin You might have included Woolloomooloo in the list! -- https://mail.python.org/mailman/listinfo/python-list
Re: Automation
On Tue, 19 Nov 2013 21:48:10 +1100, Chris Angelico wrote: I guessed Scots for the second one because it didn't look Welsh and it seemed plausible to get a mostly-English paragraph with one Welsh name and one Scots word. The word is *Scottish*. I think that's what Mark was driving at. -- https://mail.python.org/mailman/listinfo/python-list
Re: When I send email as HTML, why do erroneous whitespaces get introduced to the HTML source and a few chars get converted to lt; and gt; ???
On Fri, 08 Nov 2013 14:06:38 -0800, richard.balbat wrote: I have the following script that reads in an HTML file containing a table then sends it out via email with a content type of text/html. For some reason a few erroneous whitespaces get introduced to the HTML source and a few chars get converted to lt; and gt; ??? Perhaps it might ne a better idea not to send HTML emails at all. Or if you must, please don't send them to this list. -- https://mail.python.org/mailman/listinfo/python-list
Re: How to add a current string into an already existing list
On Sat, 02 Nov 2013 10:40:58 -0700, rusi wrote: That Codd... Should have studied some computer science [Ive a vague feeling I am repeating myself...] ROFL. Get thee into FNF! -- https://mail.python.org/mailman/listinfo/python-list
Re: Processing large CSV files - how to maximise throughput?
On Thu, 24 Oct 2013 18:38:21 -0700, Victor Hooi wrote: Hi, We have a directory of large CSV files that we'd like to process in Python. We process each input CSV, then generate a corresponding output CSV file. input CSV - munging text, lookups etc. - output CSV My question is, what's the most Pythonic way of handling this? (Which I'm assuming For the reading, I'd with open('input.csv', 'r') as input, open('output.csv', 'w') as output: csv_writer = DictWriter(output) for line in DictReader(input): # Do some processing for that line... output = process_line(line) # Write output to file csv_writer.writerow(output) So for the reading, it'll iterates over the lines one by one, and won't read it into memory which is good. For the writing - my understanding is that it writes a line to the file object each loop iteration, however, this will only get flushed to disk every now and then, based on my system default buffer size, right? So if the output file is going to get large, there isn't anything I need to take into account for conserving memory? Also, if I'm trying to maximise throughput of the above, is there anything I could try? The processing in process_line is quite line - just a bunch of string splits and regexes. If I have multiple large CSV files to deal with, and I'm on a multi-core machine, is there anything else I can do to boost throughput? I'm guessing that the idea is to load the output CSV into a database. If that's the case, why not load the input CSV into some kind of staging table in the database first, and do the processing there? -- https://mail.python.org/mailman/listinfo/python-list
Tkinter tutorial?
I have some experience with Python, having used it for a couple of years. Until now, my builder of choice for cross-platform GUI applications has been wxPython (with wxGlade), and I have been well satisfied with these tools. However, for a different project I need to get up to a reasonable speed with tkinter. Could some kind soul recommend a suitable on-line tutorial, or a (free) ebook? Thanks. -- https://mail.python.org/mailman/listinfo/python-list
Re: UnicodeEncodeError: SOLVED
On Thu, 10 Oct 2013 01:47:52 +, Steven D'Aprano wrote: On Wed, 09 Oct 2013 14:41:53 +, Walter Hurry wrote: Many thanks to those prepared to forgive my transgression in the 'Goodbye' thread. I mentioned there that I was puzzled by a UnicodeEncodeError, and said I would rise it as a separate thread. However, via this link, I was able to resolve the issue myself: http://stackoverflow.com/questions/3224268/python-unicode-encode-error I don't know what problem you had, and what your solution was, but the above link doesn't solve the problem, it just throws away data until the problem no longer appears, and never mind if it changes the semantics of the XML data. Instead of throwing away data, the right solution is likely to be, stop trying to deal with XML yourself, and use a proper UTF-8 compliant XML library. Or if you can't do that, at least open and read the XML file using UTF-8 in the first place. In Python 3, you can pass a codec to open. In Python 2, you can use codecs.open instead of the built-in open. All true, but in *this* case, simply discarding the offending character was sufficient. Thanks anyway. -- https://mail.python.org/mailman/listinfo/python-list
UnicodeEncodeError: SOLVED
Many thanks to those prepared to forgive my transgression in the 'Goodbye' thread. I mentioned there that I was puzzled by a UnicodeEncodeError, and said I would rise it as a separate thread. However, via this link, I was able to resolve the issue myself: http://stackoverflow.com/questions/3224268/python-unicode-encode-error Nevertheless, thanks again for the kind words. -- https://mail.python.org/mailman/listinfo/python-list
Re: Goodbye: was JUST GOT HACKED
On Thu, 03 Oct 2013 11:35:00 +, Steven D'Aprano wrote: On Thu, 03 Oct 2013 09:21:08 +0530, Ravi Sahni wrote: On Thu, Oct 3, 2013 at 2:43 AM, Walter Hurry walterhu...@lavabit.com wrote: Ding ding! Nikos is simply trolling. It's easy enough to killfile him but inconvenient to skip all the answers to his lengthy threads. If only people would just ignore him! Hello Walter Hurry please wait! Did I do/say something wrong?! Don't worry about it Ravi, you haven't done anything wrong. Walter is not a regular here. At best he is a lurker who neither asks Python questions nor answers them. In the last four months, I can see four posts from him: three are complaining about Nikos, and one is a two- line Me to! response to a post about defensive programming. If one of us should go it should be me -- Im just a newbie here. No, you are welcome here. You've posted more in just a few days than Walter has in months. We need more people like you. Steven, You make a fair point. I have posted very little recently, for the following reasons: a) I'm not really competent enough to answer python questions, at least not yet. b) I try not to post my own Python questions unless as a last resort. I prefer to try to solve my own problems by reading the fine documentation, and DuckDuckGoing. However, I do lurk assiduously and have learned much by reading excellent 'answering' posts from many such as you. The 'Goodbye' post was made in rather a fit of pique, for which I apologise. If I am allowed a second chance, there is actually something puzzling me at the moment. It's a UnicodeDecodeError, but I shall start a separate thread about it. Sorry again. Walter -- https://mail.python.org/mailman/listinfo/python-list
Goodbye: was JUST GOT HACKED
On Wed, 02 Oct 2013 09:51:26 +0200, Antoon Pardon wrote: Op 02-10-13 09:02, Ravi Sahni schreef: On Wed, Oct 2, 2013 at 12:19 PM, Ben Finney ben+pyt...@benfinney.id.au wrote: Antoon Pardon antoon.par...@rece.vub.ac.be 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 maturity level and impulse control of an average six-year-old. […] And what about the impuls control and the maturity of people who can't stop answering [a nuisance], knowing they contribute to the nuisance to the group? Yes, we are in firm agreement here. So Ben,Antoon you are saying that Nikos is a minor problem -- spam-like -- Whereas people answering him are a bigger problem??! I find this real confused!! Why they are answering then?!?! As far as I can make out everyone who is answering (helping!) doing it frustratation and disgust. But still they keep answering and answering!! You should understand that what is a bigger problem and what is a minor problem is a personal, subjective judgement and people come to different conclusions. So group1 finds Nikos a minor nuisance and is willing to answer him. Probably because it gives them warm fuzzy feelings knowing they tried to help someone or because they found the problem interresting to solve. Now group2 may find Nikos himself not that big a nuisance but they certainly find Nikos in combination with group1 a major nuisance. Because it keeps the cycle going and even if they kill file Nikos, they keep being confronted with his contributions through the responses of group1. So frustration builds for those in group2, until it reaches a level that some of them feel the need to vent that frustration. That can sometimes be rather ugly to observe and I am sure that some venters weren't that happy with their own reaction afterwards, but I think it is an understandable, human reaction. Now for a number of people in group1, the venting of group2 is a major nuisance and they start venting their own frustration with that. Unfortunately, their own need for venting doesn't create any empathy for the need of group2 for venting. They only see groups2 as the cause for their own frustration with very little willingness to see their own contribution to the original built up. Ding ding! Nikos is simply trolling. It's easy enough to killfile him but inconvenient to skip all the answers to his lengthy threads. If only people would just ignore him! Anyway, the NG/list is spoiled for me. Goodbye. -- https://mail.python.org/mailman/listinfo/python-list
Re: Confessions of a terrible programmer
On Fri, 06 Sep 2013 13:17:20 -0400, Joel Goldstick wrote: On Fri, Sep 6, 2013 at 12:56 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Not specifically about Python, but still relevant: http://blog.kickin-the-darkness.com/2007/09/confessions-of-terrible- programmer.html Pardon me, but I completely don't get this article. Let me in on what is supposed to be the joke please! No joke. Defensive programming is the only way to go if one is writing a serious system, whatever the language. -- https://mail.python.org/mailman/listinfo/python-list
Re: python adds an extra half space when reading from a string or list
On Tue, 02 Jul 2013 07:14:42 +, Steven D'Aprano wrote: On Mon, 01 Jul 2013 21:34:42 -0700, rusi wrote: 2. I am killfiling you is bullying behavior. It is worse than useless because a. The problem cases couldn't care a hoot b. Those who could contribute usefully are shut up c. The messengers are being shot as substitute for the culprits I don't accept this analysis. Withholding my attention is not bullying. I have no responsibility towards people asking questions here, apart from the ethical responsibility to not maliciously give them bad advice. I can come or go as I see fit, I can ignore those whom I so choose. If I were to abuse this right, say by refusing to answer questions asked by women, that would make me a dirty sexist bigot, but it wouldn't make me a bully, any more than taking a week off and not responding during that time makes me a bully. If I choose to ignore those who (in my opinion) are not living up to the implied social contract (don't be a dick, and I'll help you, if I can), that's hardly bulling either. Kill-filing is just a version of shunning. Like shunning in Real Life, I can do it for good reasons or bad. If I kill-file people because they said they preferred Ruby to Python, that would make me a dick, but if I kill-file people who disrupt the community, and do so publicly, I'm sending a signal to them that your behaviour is unacceptable to me. Provided enough people follow, shunning is an effective way to discourage disruptive behaviour. Trolls will get bored when they no longer get a response, and move on. Those actually wanting help will either get frustrated and move on, or mend their ways. Kill-filing is not perfect, of course, but until such time that we can deliver a swift kick to the behind over the internet, it is the best we can do. Oh, and one last point -- I have never kill-filed anyone merely for being the messenger that another person is causing trouble, as you suggest. I have kill-filed people for being abusive, for flaming, or for trolling. For me it's even simpler. I killfile people because I don't want to read what they post. FWIW, there are only four entries in my killfile for comp.lang.python, and three of them are you-know-who. -- http://mail.python.org/mailman/listinfo/python-list
Re: python adds an extra half space when reading from a string or list
On Mon, 01 Jul 2013 10:56:54 +0200, Antoon Pardon wrote: Op 01-07-13 09:55, Νίκος schreef: Στις 1/7/2013 9:37 πμ, ο/η Antoon Pardon έγραψε: Remember that Nick is as much a human as all of us, he is bound to have his feelings hurt when so many people pick on him -- whether they are justified or not. So? Should we particularly care about Nikos's feelings? Nikos is not the victim, he is the instigator. And should his feelings get hurt when it is pointed out what picture people got from him through his own behaviour, I say good. May that way he'll learn that if he doesn't want to be considered an incompetent inconsiderate jerk, he shouldn't behave like one. Well, i will also follow your advice and not care at all about your feeling when you read the following. This makes no sense. You are not following my advice, if you were already behaving like this. GO FUCK YOURSELF. No thanks, I'm getting a little old for that. Please...enough. Polite request: consider killfiling him and having done with it. It is irritating to see all the responses even though I killfiled him long ago. Whilst I realise, of course, that it is entirely your prerogative to choose what to do, I have no doubt that many others feel as I do. -- http://mail.python.org/mailman/listinfo/python-list
Re: A few questiosn about encoding
On Sat, 15 Jun 2013 03:03:02 +1000, Chris Angelico wrote: Why do you sell web hosting services when you have no clue how to provide them? And why do you continue responding to this timewaster? Please, please just killfile him and let's all move on. -- http://mail.python.org/mailman/listinfo/python-list
Re: Build Python 2.7.5 - Modules missing
On Tue, 11 Jun 2013 16:18:58 -0500, Tony the Tiger wrote: On Mon, 10 Jun 2013 17:51:25 +, Walter Hurry wrote: On building Python 2.7.5 I got the following message: Python build finished, but the necessary bits to build these modules were not found: dl imageoplinuxaudiodev spwd sunaudiodev To find the necessary bits, look in setup.py in detect_modules() for the module's name. It carried on with the installation OK, but I don't understand the last sentence in the message. How can I find out exactly what modules are missing, and what I need to do to make sure they are built next time? And you build this on...? A toaster...? No, not a toaster but FreeBSD 9.1. Why the sarcasm? -- http://mail.python.org/mailman/listinfo/python-list
Build Python 2.7.5 - Modules missing
On building Python 2.7.5 I got the following message: Python build finished, but the necessary bits to build these modules were not found: dl imageoplinuxaudiodev spwd sunaudiodev To find the necessary bits, look in setup.py in detect_modules() for the module's name. It carried on with the installation OK, but I don't understand the last sentence in the message. How can I find out exactly what modules are missing, and what I need to do to make sure they are built next time? -- http://mail.python.org/mailman/listinfo/python-list
Re: Trying to work with data from a query using Python.
On Fri, 07 Jun 2013 14:24:30 -0400, Dave Angel wrote: On 06/07/2013 01:44 PM, ethereal_r...@hotmail.com wrote: SNIP rows = cur.fetchall() for row in rows: print row Now assume that fetchall would print the following: I doubt if fetchall() prints anything. presumably it returns something, extracted from the db. LOEL910624ND5 from the column vat as RFC. 227 from the column amount_untaxed. Now I would need to print that in the following format. 04|85|LOEL910624ND5|227||| 04 always goes in the first column and 85 always goes in the second, vat goes in the third and the amount_untaxed goes in the eight column but we still need to have 22 columns in total. I don't use psycopg2, and I'd suggest few others here do either. Since the problem has nothing to do with psycopg2, could you simplify the problem? Whatever fetchall() returns, it's presumably either a dict or list. Or is it a list of lists? It actually returns a list of tuples. -- http://mail.python.org/mailman/listinfo/python-list
Re: Too many python installations. Should i remove them all and install the latest?
On Sun, 02 Jun 2013 14:41:45 +1000, Chris Angelico wrote: Nikos just needs to learn the skill of figuring out where his problems really are. Between the keyboard and the chair, obv. -- http://mail.python.org/mailman/listinfo/python-list
Re: How clean/elegant is Python's syntax?
On Thu, 30 May 2013 04:54:44 +1000, Chris Angelico wrote: snip GUIs and databasing are two of the areas where I think Python's standard library could stand to be improved a bit. There are definitely some rough edges there. Dunno what you mean about standard library, but I'm very happy with wxPython and psycopg2 for GUIs and databasing respectively. -- http://mail.python.org/mailman/listinfo/python-list
Re: any cherypy powred sites I can check out?
On Fri, 17 May 2013 11:48:19 +1000, Chris Angelico wrote: (Caveat: I am not a Catholic, so I haven't much of a clue as to how confession usually goes.) Forgive OP Father, for he has sinned... -- http://mail.python.org/mailman/listinfo/python-list
Re: any cherypy powred sites I can check out?
On Fri, 17 May 2013 18:15:38 +0100, Mark Lawrence wrote: On 17/05/2013 01:00, visphatesj...@gmail.com wrote: fuck straight off I assume you're the author of How to win friends and influence people? There are very few posters to this NG in the Hurry bozo bin, but OP is now one. -- http://mail.python.org/mailman/listinfo/python-list
Re: spilt question
On Thu, 16 May 2013 08:00:25 -0700, loial wrote: I want to split a string so that I always return everything BEFORE the LAST underscore HELLO_.lst # should return HELLO HELLO_GOODBYE_.ls # should return HELLO_GOODBYE I have tried with rsplit but cannot get it to work. mystr.rsplit(_,1)[0] -- http://mail.python.org/mailman/listinfo/python-list
Re: any cherypy powred sites I can check out?
On Thu, 16 May 2013 11:17:37 -0700, visphatesjava wrote: anyone? Questions asked in that fashion stand little chance of eliciting helpful responses. -- http://mail.python.org/mailman/listinfo/python-list
Re: Why do Perl programmers make more money than Python programmers
On Tue, 07 May 2013 23:32:55 +1000, Chris Angelico wrote: On Tue, May 7, 2013 at 11:22 PM, jmfauth wxjmfa...@gmail.com wrote: There are plenty of good reasons to use Python. There are also plenty of good reasons to not use (or now to drop) Python and to realize that if you wish to process text seriously, you are better served by using corporate products or tools using Unicode properly. There are plenty of good reasons to use Python. One of them is the laughs you can get any time jmf posts here. There are also plenty of good reasons to drop Python. One of them is because corporate products like Microsoft Visual Studio are inherently better specifically because they cost you money, and there's no way that something you paid nothing for can ever be as good as that. Plus, you get to write code that works on only one platform, and that's really good. Finally, moving off Python would mean you don't feel obliged to respond to jmf, which will increase your productivity measurably. TMML. Thanks! -- http://mail.python.org/mailman/listinfo/python-list
Re: ask for note keeper tomboy's style
On Sun, 21 Apr 2013 11:42:06 -0600, Michael Torrie wrote: On 04/21/2013 12:20 AM, LordMax wrote: Hi to all. I am new to python and I was asked to implement a system of notes in tomboy's style for my company. As one of the requirements is the ability to synchronize notes between multiple PC (program level or through cloud-folder does not matter) I was wondering if there is something similar where I can work on. Do you have any suggestions? TomBoy is written in C#, so why not start hacking on its code directly. True it uses GTK#, but that is available on Windows and OS X. If you need to start from scratch, you will probably want to develop a server system to keep all the notes. You can use any python web framework you want for that, and SQL of some kind for the data. Just develop an RPC api (using XMLRPC, SOAP, or REST) and then your clients (be it browser-based or conventional apps) can interface with it over that api. You might also consider that there are numerous commercial packages that already do most everything your company needs on a variety of platforms including handhelds. For example, Evernote. Wake up. It's homework. -- http://mail.python.org/mailman/listinfo/python-list
Re: How to set my gui?
On Fri, 19 Apr 2013 08:00:11 +1000, Chris Angelico wrote: But 1 Corinthians 13:11 You are grown up now, I surmise. -- http://mail.python.org/mailman/listinfo/python-list
Re: Newbie questions on Python
On Wed, 17 Apr 2013 01:30:03 +1000, Chris Angelico wrote: By the way, regarding your email address: there are no cheat codes in Python ROFLMAO. Incidentally, my son used to use IDDQD rather than IDKFA. I of course spurned all such, since I preferred to do it the hard way. Thus I was Doomed. -- http://mail.python.org/mailman/listinfo/python-list
Re: Understanding Boolean Expressions
On Tue, 16 Apr 2013 15:19:25 -0700, Bruce McGoveran wrote: Hello. I am new to this group. I've done a search for the topic about which I'm posting, and while I have found some threads that are relevant, I haven't found anything exactly on point that I can understand. So, I'm taking the liberty of asking about something that may be obvious to many readers of this group. The relevant Python documentation reference is: http://docs.python.org/2/reference/expressions.html#boolean-operations. I'm trying to make sense of the rules of or_test, and_test, and not_test that appear in this section. While I understand the substance of the text in this section, it is the grammar definitions themselves that confuse me. For example, I am not clear how an or_test can be an and_test. Moreover, if I follow the chain of non-terminal references, I move from or_test, to and_test, to not_test, to comparison. And when I look at the definition for comparison, I seem to be into bitwise comparisons. I cannot explain this. Perhaps an example will help put my confusion into more concrete terms. Suppose I write the expression if x or y in my code. I presume this is an example of an or_test. Beyond that, though, I'm not sure whether this maps to an and_test (the first option on the right-hand side of the rule) or to the or_test or and_test option (the second on the right-hand side of the rule). If people can offer some thoughts to put me in the right direction (or out of my misery), I would appreciate it. $ python Python 2.7.3 (default, Jan 15 2013, 02:26:36) [GCC 4.2.1 20070831 patched [FreeBSD]] on freebsd9 Type help, copyright, credits or license for more information. not True False not False True True or False True True and False False x = 2 not (x == 2) False not (x == 3) True x == 2 True x == 3 False -- http://mail.python.org/mailman/listinfo/python-list
Re: howto remove the thousand separator
On Mon, 15 Apr 2013 11:29:17 +1000, Chris Angelico wrote: There are actually a lot of optimizations done, so it might turn out to be O(n) in practice. But strictly in the Python code, yes, this is definitely O(n*n). In any event, Janssen should cease and desist offering advice here if he can't do better than that. -- http://mail.python.org/mailman/listinfo/python-list
Re: python-noob - which container is appropriate for later exporting into mySql + matplotlib ?
On Sat, 13 Apr 2013 16:39:12 +0200, someone wrote: I'm not so rich, so I prefer to go for a free database solution rather than an expensive license (paraphrasing but I do care about ACID compliance) Sounds to me that PostgreSQL is your man, then. -- http://mail.python.org/mailman/listinfo/python-list
Re: python-noob - which container is appropriate for later exporting into mySql + matplotlib ?
On Sat, 13 Apr 2013 21:34:38 +0200, someone wrote: On 04/13/2013 04:56 PM, Walter Hurry wrote: On Sat, 13 Apr 2013 16:39:12 +0200, someone wrote: I'm not so rich, so I prefer to go for a free database solution rather than an expensive license (paraphrasing but I do care about ACID compliance) Sounds to me that PostgreSQL is your man, then. Oh, ok. Thanks! BTW: I just read: Yahoo runs a multi-petabyte modified PostgreSQL database that processes billions of events per day - that's truely amazing, I think... I think maybe I'll experiment a bit with both mySql (small/medium sized databases) and for critical/important stuff I should go with PostgreSQL... Glad to hear this... Then I know what to look at... If it were me I wouldn't use MySQL for anything at all. I'd use sqlite for little non-critical local applications, and Postgres for the rest. Postgres is not difficult at all, provided you RTFM and follow the instructions (the documentation is superb). And whichever you use, you need to learn SQL anyway. -- http://mail.python.org/mailman/listinfo/python-list
Re: While loop help
On Wed, 10 Apr 2013 02:10:29 +1000, Chris Angelico wrote: On Wed, Apr 10, 2013 at 1:47 AM, thomasancill...@gmail.com wrote: ... I'm not sure what version I'm using ... Try putting these lines into a Python script: import sys print(sys.version) That works (of course), but in every Python version I've seen, one merely needs to invoke the python interactive interpreter and the banner is displayed: $ python Python 2.7.3 (default, Aug 9 2012, 17:23:57) [GCC 4.7.1 20120720 (Red Hat 4.7.1-5)] on linux2 Type help, copyright, credits or license for more information. quit() $ -- http://mail.python.org/mailman/listinfo/python-list
Re: While loop help
On Tue, 09 Apr 2013 16:12:34 -0400, Dave Angel wrote: On 04/09/2013 03:35 PM, Walter Hurry wrote: On Wed, 10 Apr 2013 02:10:29 +1000, Chris Angelico wrote: On Wed, Apr 10, 2013 at 1:47 AM, thomasancill...@gmail.com wrote: ... I'm not sure what version I'm using ... Try putting these lines into a Python script: import sys print(sys.version) That works (of course), but in every Python version I've seen, one merely needs to invoke the python interactive interpreter and the banner is displayed: $ python Python 2.7.3 (default, Aug 9 2012, 17:23:57) [GCC 4.7.1 20120720 (Red Hat 4.7.1-5)] on linux2 Type help, copyright, credits or license for more information. quit() $ And if several are installed, that isn't necessarily the one that'll run when one runs a script. Depends on how the script is invoked (and on what OS is running), and on the shebang line, PATH, etc. The real point about those two lines is that they can be added to most scripts. Well yes, but if multiple versions are installed and the script has a shebang, then invoking the same interpreter as the shebang does will produce the same result. But this is dancing on the head of a pin anyway; OP just didn't know what version of Python he was running, so he is extremely unlikely to have more than one version installed, and to be choosing amongst them. -- http://mail.python.org/mailman/listinfo/python-list
Re: I hate you all
On Tue, 09 Apr 2013 16:51:26 +0100, Mark Lawrence wrote: On 09/04/2013 14:39, Grant Edwards wrote: On 2013-04-09, Mark Lawrence breamore...@yahoo.co.uk wrote: But wouldn't it have been easier simply to do do a quick sed or whatever rather than to spend hours here arguing? Where's the fun in that? :) What, you don't think sed is fun? Having never really used a *nix box in anger how would I know? A substantial portion of my career was spent on a combination of VMS, C with embedded SQL and Ingres. Please don't ask as I don't know the answer :) Anti-virus, anti-malware, defragmenters, registry cleaners, needing to reboot every time I install or update software? No grep, no awk, no sed? No thanks. But never mind; each to his own. I don't want to spark OS wars. -- http://mail.python.org/mailman/listinfo/python-list
Re: I hate you all
On Wed, 10 Apr 2013 09:28:26 +1000, Chris Angelico wrote: On Wed, Apr 10, 2013 at 9:21 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Walter is pointing out that as a Windows user... Walter is also assuming that Mark is a Windows user, which was never actually stated :) From Mark's reply to me: User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 -- http://mail.python.org/mailman/listinfo/python-list
Re: I hate you all
On Mon, 08 Apr 2013 19:48:58 +, Grant Edwards wrote: On 2013-04-08, Nobody nob...@nowhere.com wrote: On Sun, 07 Apr 2013 01:30:45 +, Steven D'Aprano wrote: Am I the only one here who has used a typewriter? Tab stops were set manually, to a physical distance into the page, using a mechanical stop. This long predates the rule that tab stops are every 8 characters. And your point is? The point is that there is little historical precedent for assuming that tab stops are evenly and equally spaced across the page (let alone one particular fixed, even spacing) -- and people who mix spaces and tabs based on such false assumptions are responsible for their own bleeding foot. Typewriters don't have a tab character. The information regarding tab stops is conveyed out-of-band from the typist to the typewriter, and doesn't need to persist beyond the time taken to type the document. And the same is true when you don't mix tabs and spaces when indenting Python code. If you use tabs alone when indenting Python code it doesn't matter where the tabs are set -- they don't even have to be equally spaced -- the meaning of the source file is unambiguous. If you mix tabs and spaces, then you've got to provide out-of-band information regarding the position of the tab stops in order to make the source code unambiguous. Since there's no mechanism to provide that OOB tab stop info, mixed tabs and spaces isn't accepted. Personally I have always used 4 spaces. I use it in SQL, shell scripts and Python. It makes code simple to read, and unambiguous. The fact of Python enforcing it (or all tabs; a poor second choice) is *a good thing*, easy and natural IMHO. No need for end if or end loop or fi. One wonders whether OP is simply trolling. -- http://mail.python.org/mailman/listinfo/python-list
Re: I hate you all
On Tue, 09 Apr 2013 08:00:06 +1000, Chris Angelico wrote: On Tue, Apr 9, 2013 at 7:29 AM, Grant Edwards invalid@invalid.invalid wrote: On 2013-04-08, Walter Hurry walterhu...@lavabit.com wrote: The fact of Python enforcing it (or all tabs; a poor second choice) is *a good thing*, easy and natural IMHO. No need for end if or end loop or fi. One wonders whether OP is simply trolling. If he was trolling, he certainly deserves a prize. I don't think he was trolling. It was a classic-model rant: I upgraded my dependency to a newer version and all my stuff broke. Commonly provokes anger, largely because many such upgrades do NOT break stuff (eg if I were to switch from gcc 4.5 to gcc 4.7 right now, I doubt anything would break, and my code would be able to use the new iterator syntax in c++11 - pity 4.7 isn't packaged for Debian Squeeze). The OP upgraded across an openly-non-backward-compatible boundary, and got angry over one particular aspect of backward compat that wasn't there. But wouldn't it have been easier simply to do do a quick sed or whatever rather than to spend hours here arguing? -- http://mail.python.org/mailman/listinfo/python-list
Re: Help
On Tue, 02 Apr 2013 02:02:58 +0100, Mark Lawrence wrote: On 02/04/2013 00:56, Walter Hurry wrote: On Mon, 01 Apr 2013 15:12:20 -0700, khaosyt wrote: snip triple spaced homework rubbish double posted Sigh. Another one for the bozo bin. I say old chap you're setting yourself up for attacks from the Python Mailing List Police for using the word bozo, so expect a visit from Vicar Sergeant or Detective Parsons. Oh sorry they're from the Church Police, but please be cautious anyway. Righty ho, old boy. I'll be more careful in future. Thanks! ;-) -- http://mail.python.org/mailman/listinfo/python-list
Re: Help
On Mon, 01 Apr 2013 15:12:20 -0700, khaosyt wrote: snip triple spaced homework rubbish double posted Sigh. Another one for the bozo bin. -- http://mail.python.org/mailman/listinfo/python-list
Re: Creating a dictionary from a .txt file
On Mon, 01 Apr 2013 23:53:40 +, Steven D'Aprano wrote: As far as I'm concerned, anyone in the 21st century who names themselves or their work (a movie, book, programming language, etc.) something which breaks search tools is just *begging* for obscurity, and we ought to respect their wishes. IIRC, there was an eccentric musician some years back who did just that. I seem to remember that he changed his name to some kind of androgynous looking rune with what appeared to be a bent trumpet across it. Thenceforth it became known as the (piss) artist: formally gnome ass prints, or at least something sounding vaguely like that. -- http://mail.python.org/mailman/listinfo/python-list
Re: No errors displayed but i blank scren nstead.
On Fri, 29 Mar 2013 20:14:16 +, Neil Cerutti wrote: On 2013-03-29, Chris Angelico ros...@gmail.com wrote: On Sat, Mar 30, 2013 at 6:27 AM, nagia.rets...@gmail.com wrote: But now iam also receivein this error message as shown here when i switches to 'pymysql' Why the change of email address? Are you trying to dodge killfiles? I had that one killfiled already. Must be he/she/it is posting from a different sock puppet. Ditto. Just another entry for the bozo bin. -- http://mail.python.org/mailman/listinfo/python-list
Re: No errors displayed but i blank scren nstead.
On Fri, 29 Mar 2013 02:25:26 +1100, Chris Angelico wrote: On Fri, Mar 29, 2013 at 2:20 AM, Νίκος Γκρ33κ nikos.gr...@gmail.com wrote: PLEASE GIVE ME A CLUE ABOUT THIS SITUATION. EVEN JAILED SHELL ACCESS SAYS ITS OKEY BUT I CNA ONLY SEE A BLANK PAGE NOT EVEN AN INTERNAL SERVER ERROR. Quit shouting. You are asking for free help from volunteers. At the moment, you're asking for a killfiling. He's got one. -- http://mail.python.org/mailman/listinfo/python-list
Re: What's the easiest Python datagrid GUI (preferably with easy database hooks as well)?
On Wed, 13 Mar 2013 18:40:07 +, tinnews wrote: I want to write a fairly trivial database driven application, it will basically present a few columns from a database, allow the user to add and/or edit rows, recalculate the values in one column and write the data back to the database. I want to show the data and allow editing of the data in a datagrid as being able to see adjacent/previous data will help a huge amount when entering data. So what toolkits are there out there for doing this sort of thing? A GUI toolkit would be lovely (allowing layout etc.) but isn't absolutely necessary. I'm a reasonably experienced programmer and know python quite well but I'm fairly much a beginner with event driven GUI stuff so I need a user friendly framework. I use wxglade to generate the GUI source for wxpython, and then write my database code into the generated source for population of the grid and responding to events. I's very easy and painless. I mostly use Postgres (with Psycopg2) for the database, but sometimes sqlite. One big advantage for me is that I can go back to wxglade, change the layout, regenerate the source and my own code is untouched. -- http://mail.python.org/mailman/listinfo/python-list
Shebang line on Windows?
I use FreeBSD or Linux, but my son is learning Python and is using Windows. My question is this: Would it be good practice for him to put #!/usr/bin/ env python at the top of his scripts, so that if made executable on *nix they will be OK? As I understand it this will have no effect on Windows itself. -- http://mail.python.org/mailman/listinfo/python-list
Re: string.replace doesn't removes :
On Wed, 13 Feb 2013 16:55:36 +, Mark Lawrence wrote: On 13/02/2013 16:34, Rick Johnson wrote: On Wednesday, February 13, 2013 1:10:14 AM UTC-6, jmfauth wrote: d = {ord('a'): 'A', ord('b'): '2', ord('c'): 'C'} 'abcdefgabc'.translate(d) 'A2CdefgA2C' def jmTranslate(s, table): ... table = {ord(k):table[k] for k in table} ... return s.translate(table) ... d = {'a': 'A', 'b': '2', 'c': 'C'} jmTranslate('abcdefgabc', d) 'A2CdefgA2C' d = {'a': None, 'b': None, 'c': None} jmTranslate('abcdefgabc', d) 'defg' d = {'a': '€', 'b': '', 'c': ''} jmTranslate('abcdefgabc', d) '€defg€' [quip] I just really prefer a cryptic solution to a problem when a simplistic and consistent approach would suffice.[/quip] TO HELL WITH THE ZEN! Beautiful is better than ugly. BROKEN! Explicit is better than implicit. BROKEN! Simple is better than complex. BROKEN! Sparse is better than dense. BROKEN! Readability counts. BROKEN BROKEN BROKEN Special cases aren't special enough to break the rules. BROKEN! In the face of ambiguity, refuse the temptation to guess. BROKEN! There should be one-- and preferably only one --obvious way to do it. BROKEN BROKEN BROKEN! If the implementation is hard to explain, it's a bad idea. BROKEN! If the implementation is easy to explain, it may be a good idea. REINFORCED BY BAD EXAMPLE jmf and rr in combination reminded me of this. I hope you all get my drift :) http://www.cc.gatech.edu/fac/Spencer.Rugaber/poems/love.txt 10-4, good buddy. -- http://mail.python.org/mailman/listinfo/python-list
Re: Thoughts on SQL vs ORM
On Wed, 06 Feb 2013 10:03:08 -0800, rusi wrote: On Feb 6, 5:58 pm, Andriy Kornatskyy andriy.kornats...@live.com wrote: The question of persistence implementation arise often. I found repository pattern very valuable due to separation of concerns, mediate between domain model and data source (mock, file, database, web service, etc). The database data source is somewhat specific since you can proceed with SQL functions or ORM. Here are some thoughts why you might prefer SQL functions over ORM in your next project: http://mindref.blogspot.com/2013/02/sql-vs-orm.html Comments or suggestions are welcome. Thanks. Andriy Kornatskyy Interesting read. Your first 2 points: 1. It is not valid to think that relational model in database is domain model of application. They are different (except some trivial cases). 2. … Design your domain model with plain objects only And then later you go on to recommend SQL over ORM. So its not clear which side you are on! My own very preliminary thoughts on this: SQL is basically a functional language. OOP is just imperative programming with some syntactic sugar, name- spacing etc. IOW OOP is a lower level paradigm than FP because it deals with the 'how' more than the 'what.' Object-relational impedance mismatch happens because of the opposite reason to what people seem to believe: Because the higher-level SQL is pulled down into the lower-level OO mindset and not the other way around I'm afraid I don't understand what all that means. But I invariably go for SQL over any abstraction paradigm. -- http://mail.python.org/mailman/listinfo/python-list
Re: Opinion on best practice...
On Tue, 05 Feb 2013 13:22:02 +, Grant Edwards wrote: On 2013-02-05, Anthony Correia akcorr...@gmail.com wrote: I need to pick up a language that would cover the Linux platform. Well, you haven't really described what it is you're trying to do, but it looks to me like bash and the usual set of shell utilities (e.g. find) is what you need rather than Python. I use Powershell for a scripting language on the Windows side of things. Very simple copy files script. Is this the best way to do it? That depends. What is it? import os objdir = (C:\\temp2) colDir = os.listdir(objdir) for f in colDir: activefile = os.path.join(objdir + \\ + f) print (Removing + activefile + from + objdir) os.remove(activefile) In Powershell I would just do: $colDir = gci -path c:\temp2 ForEach($file in $colDir) Sorry, I'm a Linux guy. I have no clue what that means. Hooray for common sense! Python is great, but it's silly to use Python (unless there is good reason) when a simple shell script will do the job. I think he means (bash speak): for file in whateverdir -- http://mail.python.org/mailman/listinfo/python-list
Re: The best, friendly and easy use Python Editor.
On Thu, 24 Jan 2013 22:10:21 +1100, Chris Angelico wrote: On Thu, Jan 24, 2013 at 8:43 PM, Hazard Seventyfour hseventyf...@gmail.com wrote: Hello, I new in this python and decided to learn more about it, so i can make an own script :), for all senior can you suggest me the best, friendly and easy use with nice GUI editor for me, and have many a good features such as auto complete/auto correct. any recommend? Thanks ^_^ Here we go, it's holy war time again! :) You'll get a HUGE lot of responses. Many use emacs or vim, and you'll get a few recommendations for IDLE. After that, it's a huge field of options. I personally use SciTE; it's a good editor, but I don't particularly like the way the project is run (nothing strong, but I didn't like the tone on its mailing list). Eclipse has its fans, too. A Python IDE is not nearly as beneficial as, say, a Java IDE. A good Python editor just needs to do the basics like indentation, syntax highlighting, and such; I like IDLE's method info when I'm working interactively, but it's not a big deal when I'm writing a program. In fact, all you really need out of an IDE can probably be supplied by just a good editor, maybe a makefile, and alt-tabbing to IDLE. However, if you want an IDE, they do exist. All true (especially the holy wars bit!). OP didn't (as far as I can see) even say which OS he is using. Anyway, my suggestion is generally that people use the editor with which they are already comfortable. -- http://mail.python.org/mailman/listinfo/python-list
Re: MySQL - create table creates malfunctioning tables
On Fri, 25 Jan 2013 07:55:06 +0100, F.R. wrote: The other day, for unfathomable reasons, I lost control over tables which I create. There was no concurrent change of anything on the machine, such as an update. So I have no suspect. Does the following action log suggest any recommendation to experienced SQL programmers? This is a Python list. -- http://mail.python.org/mailman/listinfo/python-list
Re: Vote tallying...
On Sat, 19 Jan 2013 00:12:25 -0500, Dennis Lee Bieber wrote: On Sat, 19 Jan 2013 07:24:40 +1100, Ben Finney ben+pyt...@benfinney.id.au declaimed the following in gmane.comp.python.general: * MySQL's development has suffered under Sun, and become virtually moribund under Oracle. They operate as a closed shop, occasionally tossing GPL-licensed releases over the wall, with very little input accepted from the community. It has been forked by some of the original developers... My vote is to put MySQL where it has always belonged (still more so, now that Oracle has taken it over), and use Postgres. -- http://mail.python.org/mailman/listinfo/python-list
Re: please i need explanation
On Sun, 13 Jan 2013 15:04:34 -0600, Tony the Tiger wrote: On Fri, 11 Jan 2013 09:35:10 -0600, kwakukwatiah wrote: HTMLHEAD/HEAD BODY dir=ltr DIV dir=ltr DIV style=FONT-FAMILY: 'Calibri'; COLOR: #00; FONT-SIZE: 12pt DIVdef factorial(n):/DIV Right, another html junkie, on windoze, no doubt. X-Mailer: Microsoft Windows Live Mail 15.4.3508.1109 -- http://mail.python.org/mailman/listinfo/python-list
Re: RIse and fall of languages in 2012
On Thu, 10 Jan 2013 07:23:51 +, Steven D'Aprano wrote: In general-purpose scripting languages, Python continues to grow slowly, JavaScript and Ruby are treading water, and Perl continues its long decline. According to Google trends, the number of searches for Perl is 19% of what it was in 2004. Its declining role in open-source communities further cements the perception that it's in an irretrievable tailspin. One should always be careful pronouncing a language dead or dying, because rare resurrections have occurred: JavaScript and Objective-C being two stand-out cases. However, Perl is unlikely to see such a new lease on life because of direct competition from Python, which is considerably more popular (whereas Objective-C and JavaScript had no direct equivalents when they came back). Why should we care? We use Python because it's powerful, easy, elegant and all the other things. -- http://mail.python.org/mailman/listinfo/python-list
Re: psycopg2 cursor.execute CREATE TABLE issue
On Sun, 06 Jan 2013 16:44:47 -0500, Mitya Sirenef wrote: On Sun 06 Jan 2013 04:38:29 PM EST, andydtay...@gmail.com wrote: Hi all, I'm trying to create a process which will create a new table and populate it. But something is preventing this from working, and I don't know enough to figure it out, despite having spent most of today reading up. The code executes with no error, yet no table is created or populated. Can anyone offer me some advice? code below. Thanks, Andy #!/usr/bin/python import psycopg2 import sys def main(): db = psycopg2.connect( host = 'localhost', database = 'gisdb', user = 'postgres', password = 'L1ncoln0ut@' ) cursor = db.cursor() cursor.execute(CREATE TABLE test (id serial PRIMARY KEY, num integer, data varchar);) cursor.execute(INSERT INTO test (num, data) VALUES (%s, %s),(100, abc'def)) if __name__ == __main__: main() To commit a transaction, you need to do a db.commit() call. Or set autocommit = True on the database connection object -- http://mail.python.org/mailman/listinfo/python-list
Re: PyGreSQL 4.1 released
On Thu, 03 Jan 2013 09:04:16 -0500, D'Arcy J.M. Cain wrote: --- Release of PyGreSQL version 4.1 --- It has been a long time coming but PyGreSQL v4.1 has been released. It is available at: http://pygresql.org/files/PyGreSQL-4.1.tgz. If you are running NetBSD, look in the packages directory under databases. There is also a package in the FreeBSD ports collection which will probably be updated shortly. Please refer to `changelog.txt changelog.html`_ for things that have changed in this version. Please refer to `readme.txt readme.html`_ for general information. This version has been built and unit tested on: - NetBSD - FreeBSD - openSUSE 12.2 - Windows 7 with both MinGW and Visual Studio - PostgreSQL 8.4, 9.0 and 9.2 32 and 64bit - Python 2.5, 2.6 and 2.7 32 and 64bit Sounds good. Thanks for your efforts. Does it offer advantages oiver Psycopg2? -- http://mail.python.org/mailman/listinfo/python-list
Re: PyGreSQL 4.1 released
On Thu, 03 Jan 2013 13:07:40 -0500, D'Arcy J.M. Cain wrote: On Thu, 3 Jan 2013 15:06:29 + (UTC) Walter Hurry walterhu...@lavabit.com wrote: Sounds good. Thanks for your efforts. I wasn't alone but I accept your thanks on behalf of the team. Does it offer advantages oiver Psycopg2? 0 Well, it has two interfaces, the DB-API 2.0 and the Classic one. The classic one is basically the one PyGreSQL started life as before we had a standard interface. We kept it as it has some advantages over the portable one but offer both. As for other advantages, I prefer to hear those from people not involved with either project. 4.1 has just made it into the FreeBSD ports. I'll give it a try (thanks again, to you and your team). -- http://mail.python.org/mailman/listinfo/python-list
Re: New to python, do I need an IDE or is vim still good enough?
On Thu, 27 Dec 2012 12:01:16 -0800, mogul wrote: 'Aloha! I'm new to python, got 10-20 years perl and C experience, all gained on unix alike machines hacking happily in vi, and later on in vim. Now it's python, and currently mainly on my kubuntu desktop. Do I really need a real IDE, as the windows guys around me say I do, or will vim, git, make and other standalone tools make it the next 20 years too for me? If you don't want an IDE, don't use one (I don't). Just use whatever text editor you prefer. Although I avoid the editor wars, one advantage of vi is that it's always available on client *nix sites. Handy if you move around. One suggestion though: It's probably a good idea not to post to this list using G**gle Groups. Many will ignore such posts. -- http://mail.python.org/mailman/listinfo/python-list
Re: Conversion of List of Tuples
On Mon, 03 Dec 2012 22:11:40 +, Steven D'Aprano wrote: On Mon, 03 Dec 2012 13:14:19 -0800, subhabangalore wrote: Thanks. But I am not getting the counter 5posts 0 views...if moderator can please check the issue. What counter are you talking about? This is an email mailing list, also copied to the Usenet newsgroup comp.lang.python, and mirrored on other places including gmane and various web sites. Neither email nor Usenet include counters, so you will have to explain what you are talking about. Doubtless he is talking about G**gle Groups, since I don't see his posts anyway. -- http://mail.python.org/mailman/listinfo/python-list
Re: Where are documentation for Gnome
On Sun, 28 Oct 2012 16:29:07 +, Mark Lawrence wrote: On 13/10/2012 18:49, Santosh Kumar wrote: Try your local garden centre. Or: The Burrow, Ottery St. Catchpole, Devon, England -- http://mail.python.org/mailman/listinfo/python-list
Re: Preventing crap email from google?
On Mon, 22 Oct 2012 13:51:35 +1100, Ben Finney wrote: Walter Hurry walterhu...@lavabit.com writes: It is Google bloody Groups which is the problem. I should have plonked posts from there ages ago, and am about to remedy that omission. What narrowly-defined, precise filter rule should be used for this purpose? Depends on how you read the list, I think. In my case, via Usenet (comp.lang.python) with Pan, so I shall filter on googlegroups.com in the Message-ID. -- http://mail.python.org/mailman/listinfo/python-list
Re: Preventing crap email from google?
On Mon, 22 Oct 2012 14:35:58 +, HoneyMonster wrote: snip Sorry about the moniker on the above. I used it by accident - it's one I reserve for junk trapping. -- http://mail.python.org/mailman/listinfo/python-list
Re: A desperate lunge for on-topic-ness
On Sat, 20 Oct 2012 16:37:23 -0400, Roy Smith wrote: sys.stderr.write(Error: Can't find the file 'settings.py' in the directory containing %r.\nYou'll have to run django-profile.py, passing it your settings module.\n(If the file settings.py does indeed exist, it's causing an ImportError somehow.)\n % __file__) textwrap.dedent? -- http://mail.python.org/mailman/listinfo/python-list
Re: A desperate lunge for on-topic-ness
On Sat, 20 Oct 2012 14:18:47 +, Grant Edwards wrote: True, but nobody prints source code out on paper do they? Seriously -- I can't remember the last time I printed souce code... I remember my first IT job - COBOL programming in the early 80's. The rule was that every time we delivered a new or updated program into testing, we had to print a listing onto fanfold paper and hang it, in a cardboard binder, onto a set of rails which ran down the center of the office. I recall even then thinking the practice ludicrous. -- http://mail.python.org/mailman/listinfo/python-list
Re: Preventing crap email from google?
On Sat, 20 Oct 2012 01:43:03 +0100, Mark Lawrence wrote: Good morning/afternoon/evening all, Is there any possibility that we could find a way to prevent the double spaced rubbish that comes from G$ infiltrating this ng/ml? For example, does Python have anybody who works for G$ who could pull a few strings, preferably a Dutch national who has named a quite well known programming language after a humorous BBC television programme? It is Google bloody Groups which is the problem. I should have plonked posts from there ages ago, and am about to remedy that omission. -- http://mail.python.org/mailman/listinfo/python-list
Re: OT Questions
On Tue, 16 Oct 2012 11:23:09 -0600, Ian Kelly wrote: My theory for a while now has been that Mr. Hutto is probably an enterprising teenager My theory for a while now has been that Mr. Hutto belongs in the bozo bin. -- http://mail.python.org/mailman/listinfo/python-list
Re: Article on the future of Python
On Fri, 28 Sep 2012 00:32:58 +1000, Chris Angelico wrote: On Thu, Sep 27, 2012 at 11:59 PM, Grant Edwards invalid@invalid.invalid wrote: On 2012-09-27, Chris Angelico ros...@gmail.com wrote: On Thu, Sep 27, 2012 at 4:01 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Given how Perl has slipped in the last decade or so, that would be a step backwards for Python :-P LAMP usually means PHP these days. There's a lot of that around. Yea, unfortunately. What a mess of a language. I recently had to learn enough PHP to make some changes to a web site we had done by an outside contractor. PHP feels like it was designed by taking a half-dozen other languages, chopping them into bits and then pulling random features/syntax/semantics at random from the various different piles. Those bits where then stuck together with duct tape and bubble gum and called PHP... As one of the contractors who wrote some of the PHP said: PHP is like the worst parts of shell, Perl, and Java all combined into one language! I can't remember where I read it, and I definitely don't know if it's accurate to current thinking, but the other day I found a quote purporting to be from the creator of PHP saying that he didn't care about memory leaks, just restart Apache periodically. It's definitely true of most PHP scripts that they're unconcerned about resource leakage, on the assumption that everything'll get cleared out at the end of a page render. PHP seems to encourage sloppiness. Fair enough, but it's the M in the LAMP stack I object to. I'd much rather have P. -- http://mail.python.org/mailman/listinfo/python-list
Re: Article on the future of Python
On Wed, 26 Sep 2012 17:14:44 -0700, alex23 wrote: On Sep 26, 10:17 pm, wxjmfa...@gmail.com wrote: Notice, I'm not a Unicode illiterate Any chance you could work on your usenet literacy and fix your double posts? I have a better idea: Consign him to the same bin as Dwight Hutto and Dihedral. -- http://mail.python.org/mailman/listinfo/python-list
Re: Print Function
On Sat, 22 Sep 2012 01:26:43 +, Steven D'Aprano wrote: On Fri, 21 Sep 2012 13:20:09 -0700, gengyangcai wrote: I am currently using Python 3.2.3 . WHen I use the print function by typing print Game Over , it mentions SyntaxError : invalid syntax . Any ideas on what the problem is and how to resolve it ? No, none what so ever. Perhaps you are the first person in the world to have come across this error. If you ever solve it, please write up the solution and put it on a blog or a website somewhere so that if it ever happens again, googling for python print SyntaxError will return a useful result. Tongue-firmly-in-cheek-ly y'rs, I think OP rather gave the game away with the subject line. -- http://mail.python.org/mailman/listinfo/python-list
Re: technologies synergistic with Python
On Sat, 22 Sep 2012 10:58:38 -0700, Emile van Sebille wrote: On 9/21/2012 2:59 PM Ethan Furman said... ...if my dream job is one that consists mostly of Python, and might allow telecommuting? Hi Ethan, I have an open position in my two man office I've tried to fill a couple times without success that is predominately python and would allow for telecommuting. I'm looking for a third member of the team that will focus on back end development integrating various systems through to an open source python platform. Where are you located? I'm on the SF Peninsula. Emile PMFJI. If he's going to telecommute, why does it matter where he is located? -- http://mail.python.org/mailman/listinfo/python-list
Re: Obnoxious postings from Google Groups (was: datetime issue)
On Fri, 21 Sep 2012 15:07:09 +, Grant Edwards wrote: I told my news client years ago to filter out anything posted from Google Groups -- and I know I'm not alone. If one wants the best chance of getting a question answered, using something other than Google Groups is indeed a good idea. +1 -- http://mail.python.org/mailman/listinfo/python-list
Re: Guides for communicating with business accounting systems
On Fri, 14 Sep 2012 16:36:58 +1000, Chris Angelico wrote: Actually I haven't used Postgres with Python yet. Should probably do that at some point. But the MySQL bindings for Python aren't so awesome they can't be matched by any other. I have found psycopg2 excellent in every respect. -- http://mail.python.org/mailman/listinfo/python-list
Re: simple client data base
On Sat, 08 Sep 2012 13:11:27 -0700, Paul Rubin wrote: Mark R Rivet markrri...@aol.com writes: ones for a few dollars. You're reading about lists, tuples, and dictionary data? Great, but other home accounting businesses have their client databases automatically synced with their smart-phones and their time-charging and their invoicing. Well I have to say that this is most discouraging. I should give up learning to program. I don't have a chance at all. Thanks. I think the idea is just to start with something simpler. If you are interested in mechanical engineering, then building an automobile from scratch, machining all the parts yourself etc., would be an ill-advised choice as a first project. It's the same way with programming. And he has it backwards anyway, IMHO. If he wants a client database and insists on building it himself, he should start with the relational database and work up; not from the GUI and try to work down with silly solutions like pickling. -- http://mail.python.org/mailman/listinfo/python-list
Re: python docs search for 'print'
On Wed, 05 Sep 2012 15:03:16 -0400, Terry Reedy wrote: On 9/5/2012 8:45 AM, Ramchandra Apte wrote: snip These ever increasing extra blank lines with each quote are obnoxious. Consider using a news reader with news.gmane.org instead of google crap. Or snip heavily. +1. And the duplicated posts. Enough of him. Bozo bin it is. -- http://mail.python.org/mailman/listinfo/python-list
Re: simple client data base
On Mon, 03 Sep 2012 18:03:27 +0200, Wolfgang Keller wrote: Hello all, I am learning to program in python. I have a need to make a program that can store, retrieve, add, and delete client data such as name, address, social, telephone number and similar information. This would be a small client database for my wife who has a home accounting business. hint Python imho would be in need of a really good accounting application as a demonstrator for its capabilities. ;-) /hint I have been reading about lists, tuples, and dictionary data structures in python and I am confused as to which would be more appropriate for a simple database. I know that python has real database capabilities but I'm not there yet and would like to proceed with as simple a structure as possible. The list of Python frameworks for rapid development of desktop (i.e. non-Web) database applications currently contains: using PyQt ( Sqlalchemy): Pypapi: www.pypapi.org Camelot: www.python-camelot.com Qtalchemy: www.qtalchemy.org using PyGTK: Sqlkit: sqlkit.argolinux.org (also uses Sqlalchemy) Kiwi: www.async.com.br/projects/kiwi using wxPython: Dabo: www.dabodev.com Defis: sourceforge.net/projects/defis (Russian only) GNUe: www.gnuenterprise.org Pypapi, Camelot, Sqlkit and Dabo seem to be the most active and best documented/supported ones. Sqlalchemy (www.sqlalchemy.org) seems to be quite useful for working with databases. Those of the above mentioned frameworks that don't use it do so for historic reasons, because the corresponding project started before Sqlalchemy became known. If you want to rely on not losing your data, you might want to use PostgreSQL (www.postgresql.org) as a storage backend with any of these. Personally, I wouldn't bother with SQLAlchemy for this. I'd just use Python as the front end, PostgreSQL for the database, and psycopg2 for the interface. -- http://mail.python.org/mailman/listinfo/python-list
Re: Filter versus comprehension (was Re: something about split()???)
On Fri, 24 Aug 2012 14:29:00 -0400, Dennis Lee Bieber wrote: It appears to be a change Google made in the last month or two... My hypothesis is that they are replacing hard EOL found in inbound NNTP with an HTML p, and then on outgoing replacing the p with a pair of NNTP line endings. In contrast, text composed on Google is coming in as long single lines (since quoting said text in a response produces on a at the start of the paragraph. Google Groups sucks. These are computer literate people here. Why don't they just use a proper newsreader? -- http://mail.python.org/mailman/listinfo/python-list
Re: Filter versus comprehension (was Re: something about split()???)
On Fri, 24 Aug 2012 17:56:47 -0400, Dennis Lee Bieber wrote: On Fri, 24 Aug 2012 19:03:51 + (UTC), Walter Hurry walterhu...@lavabit.com declaimed the following in gmane.comp.python.general: Google Groups sucks. These are computer literate people here. Why don't they just use a proper newsreader? Probably because their ISP doesn't offer a free server G There are plenty of free Usenet providers. -- http://mail.python.org/mailman/listinfo/python-list
Re: Objects in Python
On Wed, 22 Aug 2012 18:46:43 +0100, lipska the kat wrote: Well I'm a beginner Then maybe you should read more and write less. -- http://mail.python.org/mailman/listinfo/python-list
Re: Why doesn't Python remember the initial directory?
On Mon, 20 Aug 2012 13:14:02 +, Steven D'Aprano wrote: On Mon, 20 Aug 2012 12:56:42 +0100, andrea crotti wrote: In the specific case there is absolutely no use of os.chdir, since you can: - use absolute paths - things like subprocess.Popen accept a cwd argument - at worst you can chdir back to the previous position right after the broken thing that require a certain path that you are calling is run I wouldn't say so much that there's absolutely no use, it's more that there are other, safer, ways to get the same result. As I understand it, os.chdir is more for the convenience of sys admins who want to write quick scripts in Python than a function intended to be used in libraries or major applications. I don't disagree, but in my experience few sysadmins use Python; they use shell scripts. And these seldom do a 'cd' anyway - they will normally operate irrespective of the current working directory. It is difficult to think of a sensible use for os.chdir, IMHO. An interesting question is, what do other languages do in this case? -- http://mail.python.org/mailman/listinfo/python-list
Re: python 6 compilation failure on RHEL
On Mon, 20 Aug 2012 19:12:05 +0200, Kwpolska wrote: On Mon, Aug 20, 2012 at 3:31 PM, Ganesh Reddy K ganeshred...@gmail.com wrote: Hi All, We are trying python 2.6 installation on an RHEL PC , whose 'uname -a' is (Linux 2.6.18-128.el5 #1 SMP Wed Dec 17 11:41:38 EST 2008 x86_64 x86_64 x86_64 GNU/Linux ) But, python compilation is not successfully done and showing a failure log. Below is the capture of the same. Please see failure log shown in the bottom of this mail. How to solve the failure modules mentioned in the log ( bsddb185, dl , imageop, sunaudiodev ) Please guide me to proceed further. == capture begin = cd Python- 2.6.6 # ./configure checking for --enable-universalsdk... no checking for --with-universal-archs... 32-bit checking MACHDEP... linux2 checking EXTRAPLATDIR... checking machine type as reported by uname -m... x86_64 checking for --without-gcc... no checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for --with-cxx-main=compiler... no checking for g++... g++ configure: WARNING: By default, distutils will build C++ extension modules with g++. If this is not intended, then set CXX on the configure command line. checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking whether it is safe to define __EXTENSIONS__... yes checking for --with-suffix... checking for case-insensitive build directory... no checking LIBRARY... libpython$(VERSION).a checking LINKCC... $(PURIFY) $(MAINCC) checking for --enable-shared... no checking for --enable-profiling... checking LDLIBRARY... libpython$(VERSION).a checking for ranlib... ranlib checking for ar... ar checking for svnversion... found checking for a BSD-compatible install... /usr/bin/install -c checking for --with-pydebug... no checking whether gcc accepts -fno-strict-aliasing... yes checking whether gcc accepts -OPT:Olimit=0... no checking whether gcc accepts -Olimit 1500... no checking whether gcc supports ParseTuple __format__... no checking whether pthreads are available without options... no checking whether gcc accepts -Kpthread... no checking whether gcc accepts -Kthread... no checking whether gcc accepts -pthread... yes checking whether g++ also accepts flags for thread support... yes checking for ANSI C header files... (cached) yes checking asm/types.h usability... yes checking asm/types.h presence... yes checking for asm/types.h... yes checking conio.h usability... no checking conio.h presence... no checking for conio.h... no checking curses.h usability... yes checking curses.h presence... yes checking for curses.h... yes checking direct.h usability... no checking direct.h presence... no checking for direct.h... no checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking errno.h usability... yes checking errno.h presence... yes checking for errno.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking grp.h usability... yes checking grp.h presence... yes checking for grp.h... yes checking ieeefp.h usability... no checking ieeefp.h presence... no checking for ieeefp.h... no checking io.h usability... no checking io.h presence... no checking for io.h... no checking langinfo.h usability... yes checking langinfo.h presence... yes checking for langinfo.h... yes checking libintl.h usability... yes checking libintl.h presence... yes checking for libintl.h... yes checking ncurses.h usability... yes checking ncurses.h presence... yes checking for ncurses.h... yes checking poll.h usability... yes checking poll.h presence... yes checking for poll.h... yes checking process.h usability... no checking process.h presence... no checking for process.h... no checking pthread.h usability... yes checking pthread.h presence... yes checking for pthread.h... yes checking shadow.h usability... yes checking shadow.h presence... yes checking for shadow.h... yes checking signal.h usability... yes checking signal.h presence... yes checking for signal.h... yes
Re: python 6 compilation failure on RHEL
On Mon, 20 Aug 2012 11:02:25 -0700, Emile van Sebille wrote: On 8/20/2012 10:20 AM Walter Hurry said... On Mon, 20 Aug 2012 19:12:05 +0200, Kwpolska wrote: snip 300+ lines of non-referred to content replicated by you both Do you really need to compile python2.6? RHEL has packages for python, and it's better s/better/sometimes easier to use pre-compiled packages rather than compile them yourself. I concur, but FYI the version of Python with RHEL5 is 2.4. Still, OP should stick with that unless there is a pressing reason. Hence, the 2.6 install. First, sorry for my omission to trim. Second, the reason for recommending that OP stick to the Red Hat provided version (unless there is a pressing reason) is the question of the already-paid-for Red Hat support. And for that matter, if OP is forced to a later Python 2 version than 2.4, why not 2.7.3? -- http://mail.python.org/mailman/listinfo/python-list
Re: python 6 compilation failure on RHEL
On Mon, 20 Aug 2012 12:19:23 -0700, Emile van Sebille wrote: Package dependencies. If the OP intends to install a package that doesn't support other than 2.6, you install 2.6. It would be a pretty poor third party package which specified Python 2.6 exactly, rather than (say) Python 2.6 or later, but not Python 3 -- http://mail.python.org/mailman/listinfo/python-list
Re: [ANNC] pybotwar-0.8
On Thu, 16 Aug 2012 17:20:29 -0400, Terry Reedy wrote: On 8/16/2012 11:40 AM, Ramchandra Apte wrote: Look you are the only person complaining about top-posting. No he is not. Recheck all the the responses. GMail uses top-posting by default. It only works if everyone does it. I can't help it if you feel irritated by it. Your out-of-context comments are harder to understand. I mostly do not read them. It's strange, but I don't even *see* his contributions (I am using a regular newsreader - on comp.lang.python - and I don't have him in the bozo bin). It doesn't sound as though I'm missing much. But I'm just curious. Any idea why that would be the case? -- http://mail.python.org/mailman/listinfo/python-list
Re: The way to develope a graphical application to manage a Postgres database
On Thu, 02 Aug 2012 20:24:36 +0200, Csanyi Pal wrote: I'm searching for a way to develope a Python graphical application for a Postgresql database. I use wxGlade/wxPython to build the GUI, and then hand code the database access using psycopg2 into the generated application. Works very well for me, but I do know SQL and Postgres. -- http://mail.python.org/mailman/listinfo/python-list
Re: The way to develope a graphical application to manage a Postgres database
On Sun, 05 Aug 2012 17:58:46 +0200, Csanyi Pal wrote: Well, I tried out many adviced ways but none of them works on my Debian GNU/Linux testing/sid system. Always get some error in one of the part of the software. Can you give a short tutorial for newbies how to start to develope with tools you used successfully? I'm afraid I'm not about to write a tutorial - there are better ones out there than I could produce; easily found. I just DuckDuckGo'ed, followed the tutorials and read the documentation. -- http://mail.python.org/mailman/listinfo/python-list