Re: First program

2010-06-12 Thread Alister
On Sat, 12 Jun 2010 10:04:02 +, Phil H wrote: On Sat, 12 Jun 2010 09:03:43 +, Phil H wrote: Hi, Trying my hand with Python but have had a small hiccup. Reading 'A byte of Python' and created helloworld.py as directed. snip Any help appreciated Phil Thanks Peter Chris for your

Re: Using site-packages with alt-installed Python version

2010-05-16 Thread Alister
On Sun, 16 May 2010 12:07:08 +0300, Tuomas Vesterinen wrote: I am testing an application GUI with Python 2.4, 2.5 and 2.6. The native Python (in Fedora 12) is 2.6. Versions 2.4 and 2.5 are alt-installed. Aplication GUI uses: import pygtk pygtk.require('2.0') import gtk import gobject

Re: Question on Python Function

2010-05-24 Thread Alister
On Mon, 24 May 2010 13:15:01 -0700, joy99 wrote: Dear Group, I have a small question on function. If I write two functions like the following: IDLE 2.6.5 def function1(n): element1=5 element2=6 add=element1+element2 print PRINT THE ADDITION,add def

Re: Question on Python Function

2010-05-24 Thread Alister
On Mon, 24 May 2010 22:56:34 +0200, Vlastimil Brom wrote: 2010/5/24 joy99 subhakolkata1...@gmail.com: Dear Group, I have a small question on function. If I write two functions like the following: IDLE 2.6.5 def function1(n):        element1=5        element2=6        

Re: Error

2010-05-26 Thread Alister
On Wed, 26 May 2010 11:09:58 -0700, Chris Rebert wrote: On Wed, May 26, 2010 at 10:48 AM, William Miner william.mi...@enig.com wrote: I’m relative new to python and I puzzled by the following strange (to me) behavior. I was taking pieces from two old scripts to build a new one. When I began

Re: Another Little MySQL Problem

2010-05-26 Thread Alister
On Wed, 26 May 2010 12:43:29 -0700, John Nagle wrote: Kushal Kumaran wrote: On Tue, 2010-05-25 at 14:45 -0400, Victor Subervi wrote: Hi; I have this code: clientCursor.execute('select ID from %s' % (personalDataTable)) upds = [itm[0] for itm in clientCursor] print input

Re: Another Little MySQL Problem

2010-05-26 Thread Alister
On Wed, 26 May 2010 15:30:16 -0700, John Nagle wrote: Alister wrote: I think you should probably also write your execute differently: clientCursor.execute('select ID from %s' , (personalDataTable,)) this ensures the parameters are correctly escaped to prevent mysql injection attacks

Re: Syntax problem - cannot solve it by myself

2010-06-09 Thread Alister
On Wed, 09 Jun 2010 02:45:36 +, Deadly Dirk wrote: On Tue, 08 Jun 2010 18:52:44 -0700, alex23 wrote: Unless you have a clear need for 3rd party libraries that currently don't have 3.x versions, starting with Python 3 isn't a bad idea. From what I see, most of the people are still

Re: Which is the best implementation of LISP family of languages for real world programming ?

2010-06-10 Thread Alister
On Thu, 10 Jun 2010 13:14:01 -0700, bolega wrote: Which is the best implementation of LISP family of languages for real world programming ? http://wiki.alu.org/Implementation Kindly pick one from commercial and one from open-source . The criteria is : libraries, gui interface and

Re: Critic my module

2013-07-26 Thread Alister
The main point of this is for shell users that are using Python and do not know some of the Python commands. This module would make Python more like a Linux shell. For instance, a shell user would type boash.uname() because they may not know they can type import platform; platform.uname().

Re: Critic my module

2013-07-27 Thread Alister
On Sat, 27 Jul 2013 08:56:10 -0400, Devyn Collier Johnson wrote: Good point about the Made by/Copyright suggestion. Although, I have not copyrighted the file, can I still say Copyrighted by -- There is no special process to Copyright anything. the simple act of writing it automatically

Re: Python script help

2013-08-01 Thread Alister
On Thu, 01 Aug 2013 10:57:01 +1000, alex23 wrote: On 31/07/2013 6:15 PM, cool1...@gmail.com wrote: Here are some scripts, how do I put them together to create the script I want? (to search a online document and download all the links in it) 1. Think about the requirements. 2. Write some

Re: Simulate `bash` behaviour using Python and named pipes.

2013-08-05 Thread Alister
On Mon, 05 Aug 2013 06:09:53 -0700, Luca Cerone wrote: Hi everybody, I am trying to understand how to use named pipes in python to launch external processes (in a Linux environment). As an example I am trying to imitate the behaviour of the following sets of commands is bash: mkfifo

Re: The meaning of doubt, was Re: Python Basic Doubt

2013-08-10 Thread Alister
On Sat, 10 Aug 2013 20:36:52 +0200, Peter Otten wrote: Terry Reedy wrote: On 8/10/2013 11:33 AM, Krishnan Shankar wrote: Hi Fellow Python Friends, I am new to Python and recently subscribed to the mailing list.I have a doubt regarding the basics of Python. Please help me in understanding

Re: .split() Qeustion

2013-08-14 Thread Alister
On Tue, 13 Aug 2013 22:12:56 -0700, Gary Herron wrote: On 08/13/2013 09:51 PM, eschneide...@comcast.net wrote: How can I use the '.split()' method (am I right in calling it a method?) without instead of writing each comma between words in the pie list in the following code? Also, is there a

Re: .split() Qeustion

2013-08-14 Thread Alister
On Wed, 14 Aug 2013 11:31:01 +0100, Joshua Landau wrote: On 14 August 2013 09:30, Alister alister.w...@ntlworld.com wrote: On Tue, 13 Aug 2013 22:12:56 -0700, Gary Herron wrote: On 08/13/2013 09:51 PM, eschneide...@comcast.net wrote: How can I use the '.split()' method (am I right in calling

Re: Improving the web page download code.

2013-08-28 Thread Alister
On Tue, 27 Aug 2013 12:41:10 -0700, mukesh tiwari wrote: Hello All, I am doing web stuff first time in python so I am looking for suggestions. I wrote this code to download the title of webpages using as much less resource ( server time, data download) as possible and should be fast enough.

Re: semicolon at end of python's statements

2013-08-29 Thread Alister
On Wed, 28 Aug 2013 22:10:16 -0400, Sam Fourman Jr. wrote: On Wed, Aug 28, 2013 at 8:18 PM, Mohsen Pahlevanzadeh moh...@pahlevanzadeh.org wrote: Dear all, I'm C++ programmer and unfortunately put semicolon at end of my statements in python. Quesion: What's really defferences between

Re: sqlite issue in 2.7.5

2013-09-03 Thread Alister
On Mon, 02 Sep 2013 22:13:27 +, Joseph L. Casale wrote: I have been battling an issue hopefully someone here has insight with. I have a database with a few tables I perform a query against with some joins against columns collated with NOCASE that leverage = comparisons. Running the

Re: How to send an anonymous mail via Python script

2013-09-24 Thread Alister
On Sat, 21 Sep 2013 20:41:25 +1000, Chris Angelico wrote: On Sat, Sep 21, 2013 at 8:15 PM, Νίκος nikos.gr...@gmail.com wrote: On 21/9/2013 1:04 μμ, Chris Angelico wrote: On Sat, Sep 21, 2013 at 7:58 PM, Νίκος nikos.gr...@gmail.com wrote: Can you please tell me what alternation must be made

Re: How to send an anonymous mail via Python script

2013-09-24 Thread Alister
On Tue, 24 Sep 2013 12:29:14 +, Steven D'Aprano wrote: On Tue, 24 Sep 2013 11:36:16 +, Alister wrote: To put it even more simply If you have a legitimate reason to send me emails then you have no legitimate reason to withhold your true Identity. Dear Alister, snip

Re: card dealer

2013-09-27 Thread Alister
On Fri, 27 Sep 2013 03:24:28 -0700, markotaht wrote: from random import * from math import floor kaarte_alles = 52 kaart_tõmmatud = [False for i in range(52)] mast = [ärtu, ruutu, poti, risti] aste = [äss, kaks, kolm, neli,viis, kuus, \ seitse, kaheksa, üheksa, kümme,

Re: JUST GOT HACKED

2013-10-01 Thread Alister
On Tue, 01 Oct 2013 16:42:31 +0300, Νίκος wrote: Στις 1/10/2013 4:27 μμ, ο/η Chris “Kwpolska” Warrick έγραψε: On Tue, Oct 1, 2013 at 3:15 PM, Νίκος nikos.gr...@gmail.com wrote: Στις 1/10/2013 4:06 μμ, ο/η Mark Lawrence έγραψε: On 01/10/2013 10:58, Νίκος wrote: Just logged in via FTP to my

Re: Can arbitrary code run in a server if someone's know just the MySQL password?

2013-10-02 Thread Alister
On Wed, 02 Oct 2013 16:41:40 +0300, Νίκος wrote: Στις 2/10/2013 4:25 μμ, ο/η Steven D'Aprano έγραψε: On Wed, 02 Oct 2013 15:20:00 +0300, Νίκος wrote: Is it possible for someone that knows the MYSQL password of a server to run arbitrary code on a linux server? Yes, it is possible. Is

Re: basic maze problem with turtle

2013-10-14 Thread Alister
On Sun, 13 Oct 2013 14:53:36 -0700, baujacob wrote: Hi everyone, I'm trying to create a simple maze program. When the user finishes the maze, I want to print in big letters You Win! and when the user hits a wall, I want the user to go back to the beginning of the maze. The problem is

Re: Query on Python Compiled source--Urgent

2013-10-14 Thread Alister
On Mon, 14 Oct 2013 13:41:35 +0800, chandan kumar wrote: Now my question is of there any issue with logging to excel it should happen for the first test suite itself,but it occurs in either 2,3,4 or 5 test suite. Some it runs without any issues. Logging to excel is probably a wrong thing to

Re: basic maze problem with turtle

2013-10-14 Thread Alister
On Mon, 14 Oct 2013 13:13:15 +, Neil Cerutti wrote: On 2013-10-14, Sam Fourman Jr. sfour...@gmail.com wrote: Who the hell is Nikos? I hear reference to this guy ALL the time, is he a troll or a python god? this simply isn't clear.. I have only been on this list a few months. Check the

Re: Will Python 3.x ever become the actual standard?

2013-10-24 Thread Alister
On Thu, 24 Oct 2013 09:43:18 +0100, Mark Lawrence wrote: On 24/10/2013 09:30, Antoine Pitrou wrote: dufriz at gmail.com writes: I am starting to have doubts as to whether Python 3.x will ever be actually adopted by the Python community at large as their standard. We're planning to start

Re: Help with guessing game :D

2013-10-29 Thread Alister
On Tue, 29 Oct 2013 05:05:19 -0700, Robert Gonda wrote: converting input()'s result to an integer, both of which suggest if you need to be checking individual digits you are probably best keeping the input number to be checked as strings. it would then be a trivial task to expand

Re: Help with guessing game :D

2013-10-29 Thread Alister
On Tue, 29 Oct 2013 06:03:55 -0700, Robert Gonda wrote: On Tuesday, 29 October 2013 12:58:09 UTC, Alister wrote: On Tue, 29 Oct 2013 05:05:19 -0700, Robert Gonda wrote: converting input()'s result to an integer, both of which suggest if you need to be checking

Re: Help with guessing game :D

2013-10-29 Thread Alister
On Tue, 29 Oct 2013 06:10:30 -0700, Robert Gonda wrote: On Tuesday, 29 October 2013 13:07:08 UTC, Alister wrote: On Tue, 29 Oct 2013 06:03:55 -0700, Robert Gonda wrote: On Tuesday, 29 October 2013 12:58:09 UTC, Alister wrote: On Tue, 29 Oct 2013 05:05:19 -0700, Robert Gonda wrote

Re: Help with guessing game :D

2013-10-29 Thread Alister
On Tue, 29 Oct 2013 07:40:20 -0700, Robert Gonda wrote: remember that strings are a sequence. they can be used as iterators sliced in the same way as lists tuples. Let a fool hold his tongue and he will pass for a sage. -- Publilius Syrus Now you have

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

2013-10-30 Thread Alister
On Wed, 30 Oct 2013 03:08:11 -0700, jonas.thornvall wrote: Den onsdagen den 30:e oktober 2013 kl. 08:07:31 UTC+1 skrev Tim Roberts: jonas.thornv...@gmail.com wrote: I certainly do not like the old bracket style it was a catastrophe, but in honesty the gui editor of python should have what

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

2013-10-30 Thread Alister
On Wed, 30 Oct 2013 13:42:37 +0100, Antoon Pardon wrote: Op 30-10-13 13:17, Chris Angelico schreef: On Wed, Oct 30, 2013 at 11:01 PM, Antoon Pardon antoon.par...@rece.vub.ac.be wrote: I broadly agree with your post (I'm of the school of thought that braces are better than indentation for

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

2013-10-30 Thread Alister
On Wed, 30 Oct 2013 07:31:04 -0700, jonas.thornvall wrote: Den onsdagen den 30:e oktober 2013 kl. 15:22:50 UTC+1 skrev Alister: On Wed, 30 Oct 2013 13:42:37 +0100, Antoon Pardon wrote: Op 30-10-13 13:17, Chris Angelico schreef: On Wed, Oct 30, 2013 at 11:01 PM, Antoon Pardon

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

2013-10-30 Thread Alister
On Wed, 30 Oct 2013 08:35:29 -0700, jonas.thornvall wrote: Den onsdagen den 30:e oktober 2013 kl. 16:09:25 UTC+1 skrev Mark Lawrence: On 30/10/2013 14:31, jonas.thornv...@gmail.com wrote: Would you please be kind enough to read, digest and action this

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

2013-10-30 Thread Alister
On Wed, 30 Oct 2013 15:56:32 +0100, Antoon Pardon wrote: Op 30-10-13 15:22, Alister schreef: On Wed, 30 Oct 2013 13:42:37 +0100, Antoon Pardon wrote: Op 30-10-13 13:17, Chris Angelico schreef: On Wed, Oct 30, 2013 at 11:01 PM, Antoon Pardon antoon.par...@rece.vub.ac.be wrote: I broadly

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

2013-10-30 Thread Alister
On Wed, 30 Oct 2013 08:57:08 -0700, jonas.thornvall wrote: Den onsdagen den 30:e oktober 2013 kl. 16:54:19 UTC+1 skrev Mark Lawrence: On 30/10/2013 15:35, jonas.thornv...@gmail.com wrote: Den onsdagen den 30:e oktober 2013 kl. 16:09:25 UTC+1 skrev Mark Lawrence: On 30/10/2013 14:31,

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

2013-10-30 Thread Alister
On Wed, 30 Oct 2013 16:07:47 +, Alister wrote: On Wed, 30 Oct 2013 15:56:32 +0100, Antoon Pardon wrote: Op 30-10-13 15:22, Alister schreef: On Wed, 30 Oct 2013 13:42:37 +0100, Antoon Pardon wrote: Op 30-10-13 13:17, Chris Angelico schreef: On Wed, Oct 30, 2013 at 11:01 PM, Antoon

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

2013-11-01 Thread Alister
On Thu, 31 Oct 2013 04:07:14 -0700, rusi wrote: Also others (Alister?) were double-space-reply-posting as well. When you mean to point out a behavior without getting personal, it helps to point out all instances of that behavior. Otherwise it looks like you are going for someone, when

Re: how to extract page-URL using BeautifulSoup

2013-11-01 Thread Alister
On Thu, 31 Oct 2013 08:59:00 -0700, bhaktanishant wrote: I want to extract the page-url. for example: if i have this code import urllib2 from bs4 import BeautifulSoup link = http://www.google.com; page = urllib2.urlopen(link).read() soup = BeautifulSoup(page) then i can extract title

Re: To whoever hacked into my Database

2013-11-06 Thread Alister
On Wed, 06 Nov 2013 17:25:04 +0200, Νίκος Γκρ33κ wrote: Okey let the hacker try again to mess with my database!!! He is done it twice, lets see if he will make it again! I'am waiting! I don't think any cracker (hacker is something different) would need to. you are doing a more than

Re: To whoever hacked into my Database

2013-11-07 Thread Alister
On Thu, 07 Nov 2013 01:31:17 -0800, Ferrous Cranus wrote: Τη Πέμπτη, 7 Νοεμβρίου 2013 11:15:02 π.μ. UTC+2, ο χρήστης Steve Simmons έγραψε: Please tell me you aren't storing details of customers and payments on your Web server. Oh but i do! I need this information to be accessible

Re: Help with my programming homework (python, and raptor)

2013-11-07 Thread Alister
On Thu, 07 Nov 2013 12:07:06 +1100, Chris Angelico wrote: On Thu, Nov 7, 2013 at 11:56 AM, jonny seelye casiobo...@gmail.com wrote: Employee Salaries Use the following test data to test your program. Employee Name Salary John$45,600 Average Salary: $63, 862.50 Sue $55,400

Re: Show off your Python chops and compete with others

2013-11-07 Thread Alister
On Thu, 07 Nov 2013 10:38:40 -0800, Nathaniel Sokoll-Ward wrote: Wow! Thanks for all the feedback everyone. This content is fresh so I appreciate everyone's comments. As opposed to responding to each post individually, I'll just lump everything in here... My answer: Defines a function

Re: To whoever hacked into my Database

2013-11-10 Thread Alister
On Sun, 10 Nov 2013 01:44:17 +, ishish wrote: Am 09.11.2013 15:07, schrieb Steven D'Aprano: ... Nikos, you have annoyed and alienated enough people here... Sorry, I DO NOT AGREE! These threads keep my entire office entertained. I would even go so far to suggest, that we should set up

Re: PyMyth: Global variables are evil... WRONG!

2013-11-12 Thread Alister
On Mon, 11 Nov 2013 18:06:09 -0800, Rick Johnson wrote: In this thread, i want to get to the bottom of this whole global-phobia thing once and for all, and hopefully help you folks understand that globals are not all that bad -- when DESIGNED and USED correctly that is! it is the final

Re: datetime question

2013-11-12 Thread Alister
On Tue, 12 Nov 2013 09:54:44 -0600, Tim Chase wrote: On 2013-11-12 17:24, Ferrous Cranus wrote: But what of the server was in California and i live in Greece? How would datetime.now() work then? Best practices say to move the value from local time to UTC as soon as possible, then

Re: Tkinter bug in Entry widgets on OS X

2012-08-31 Thread Alister
On Fri, 31 Aug 2012 11:21:14 -0400, Kevin Walzer wrote: On 8/31/12 11:18 AM, Arnaud Delobelle wrote: I'm not trying to do anything. When a user presses the UP or DOWN arrow, then a strange character is inserted in the Entry box. I'd rather nothing happened. Why is the user doing that?

Re: avoid the redefinition of a function

2012-09-12 Thread Alister
On Wed, 12 Sep 2012 06:15:21 -0700, Ramchandra Apte wrote: On Wednesday, 12 September 2012 18:26:36 UTC+5:30, Jabba Laci wrote: Hi, I have an installer script that contains lots of little functions. It has an interactive menu and the corresponding function is called. Over time it

Re: using text file to get ip address from hostname

2012-09-12 Thread Alister
On Wed, 12 Sep 2012 07:41:10 -0700, dkatorza wrote: בתאריך יום רביעי, 12 בספטמבר 2012 17:24:50 UTC+3, מאת dkat...@gmail.com: hello , i'm new to Python and i searched the web and could not find an answer for my issue. i need to get an ip address from list of hostnames which are in

Re: avoid the redefinition of a function

2012-09-12 Thread Alister
On Wed, 12 Sep 2012 18:56:46 +0200, Jabba Laci wrote: For example: def install_java(): pass def install_tomcat(): pass Thanks for the answers. I decided to use numbers in the name of the functions to facilitate function calls. Now if you have this menu option for instance:

Re: avoid the redefinition of a function

2012-09-13 Thread Alister
On Thu, 13 Sep 2012 10:23:22 +0200, Peter Otten wrote: MRAB wrote: On 12/09/2012 19:04, Alister wrote: On Wed, 12 Sep 2012 18:56:46 +0200, Jabba Laci wrote: For example: def install_java(): pass def install_tomcat(): pass Thanks for the answers. I decided to use numbers

Re: Python presentations

2012-09-13 Thread Alister
Also try to keep the presentation interactive by asking questions to your audience (unless some of them are already participating), otherwise people will be snoring or texting after 20 minutes. That is a v good suggestion. the best presentation I ever attended was one on using an emergency

Re: sum works in sequences (Python 3)

2012-09-19 Thread Alister
On Wed, 19 Sep 2012 16:41:20 +0200, Franck Ditter wrote: Hello, I wonder why sum does not work on the string sequence in Python 3 : sum((8,5,9,3)) 25 sum([5,8,3,9,2]) 27 sum('rtarze') TypeError: unsupported operand type(s) for +: 'int' and 'str' I naively thought that sum('abc')

Re: Blue Screen Python

2012-09-21 Thread Alister
On Fri, 21 Sep 2012 15:14:53 +, Grant Edwards wrote: On 2012-09-21, mikcec82 michele.cec...@gmail.com wrote: Hallo to all, I'm using Python 2.7.3 with Windows 7 @ 64 bit and an Intel Core i3 -2350M CPU @2.30GHz 2.3GHz. Sometimes, when I'm programming in Python on my screen compare this

Re: Blue Screen Python

2012-09-21 Thread Alister
On Fri, 21 Sep 2012 16:01:16 +, Alister wrote: On Fri, 21 Sep 2012 15:14:53 +, Grant Edwards wrote: On 2012-09-21, mikcec82 michele.cec...@gmail.com wrote: Hallo to all, I'm using Python 2.7.3 with Windows 7 @ 64 bit and an Intel Core i3 -2350M CPU @2.30GHz 2.3GHz. Sometimes

Re: Print Function

2012-09-21 Thread Alister
On Fri, 21 Sep 2012 14:54:14 -0600, Ian Kelly wrote: On Fri, Sep 21, 2012 at 2:28 PM, Rodrick Brown rodrick.br...@gmail.com wrote: Go away troll! Troll? It looked like a sincere question to me. but one that page 1 of the documentation would answer. -- Waste not, get your budget cut

Re: Exact integer-valued floats

2012-09-21 Thread Alister
On Fri, 21 Sep 2012 17:29:13 +, Steven D'Aprano wrote: Python floats can represent exact integer values (e.g. 42.0), but above a certain value (see below), not all integers can be represented. For example: py 1e16 == 1e16 + 1 # no such float as 10001.0 True py 1e16 + 3 ==

Re: Blue Screen Python

2012-09-22 Thread Alister
On Fri, 21 Sep 2012 18:47:57 -0400, Dave Angel wrote: On 09/21/2012 12:01 PM, Alister wrote: On Fri, 21 Sep 2012 15:14:53 +, Grant Edwards wrote: On 2012-09-21, mikcec82 michele.cec...@gmail.com wrote: Hallo to all, I'm using Python 2.7.3 with Windows 7 @ 64 bit and an Intel Core i3

Re: One of my joomla webpages has been hacked. Please help.

2012-09-22 Thread Alister
On Sat, 22 Sep 2012 18:07:32 +1000, Chris Angelico wrote: On Sat, Sep 22, 2012 at 5:13 PM, Νίκος Γκρεεκ nikos.gr...@gmail.com wrote: The web host company pulled a previous backup and now its all good. My apologies for the annoyance i have coused you all i wanted was some insight so to make

Re: One of my joomla webpages has been hacked. Please help.

2012-09-22 Thread Alister
On Sat, 22 Sep 2012 13:09:36 +, Steven D'Aprano wrote: On Sat, 22 Sep 2012 11:13:43 +0100, Kev Dwyer wrote: This is only speculation, as I don't know exactly how your web page has been hacked, but if your page somehow exposes a database connection, and the hack involves changing the

Re: regular expression : the dollar sign ($) work with re.match() or re.search()

2012-09-26 Thread Alister
On Wed, 26 Sep 2012 10:48:00 +0300, Jussi Piitulainen wrote: iMath writes: I only know the dollar sign ($) will match a pattern from the end of a string, but which method does it work with, re.match() or re.search() It works with both. With re.match, the pattern has to match at the start

Re: howto handle nested for

2012-09-28 Thread Alister
On Fri, 28 Sep 2012 10:39:32 -0400, Neal Becker wrote: I know this should be a fairly basic question, but I'm drawing a blank. I have code that looks like: for s0 in xrange (n_syms): for s1 in xrange (n_syms): for s2 in xrange (n_syms): for s3 in

Re: Coexistence of Python 2.x and 3.x on same OS

2012-10-01 Thread Alister
On Sun, 30 Sep 2012 15:14:17 -0400, Edward Diener wrote: Has there been any official software that allows both the Python 2.x and 3.x releases to coexist on the same OS so that the end-user can easily switch between them when invoking Python scripts after each has been installed to their own

Re: Proper place for everything

2012-11-02 Thread Alister
On Fri, 02 Nov 2012 04:20:20 -0700, Jason Benjamin wrote: Anybody know of the appropriate place to troll and flame about various Python related issues? I'm kind of mad about some Python stuff and I need a place to vent where people may or may not listen, but at at least respond. Thought

Re: stackoverflow quote on Python

2012-11-13 Thread Alister
On Tue, 13 Nov 2012 03:08:54 +, Mark Lawrence wrote: http://stackoverflow.com/questions/tagged/python Python has two major versions (2 and 3) in use which have significant differences. I believe that this is incorrect. The warts have been removed, but significant differences, not in

Re: debugging in eclipse

2012-11-15 Thread Alister
On Thu, 15 Nov 2012 05:46:49 -0800, chip9munk wrote: On Thursday, November 15, 2012 2:44:22 PM UTC+1, Martin P. Hellwig wrote: I assume you have at the end of the debugTest.py file something like this: if __name__ == '__main__': test() no i did not have it... is main really

Re: Point of idle curiosity

2012-11-19 Thread Alister
On Sun, 18 Nov 2012 16:08:34 +, Mark Lawrence wrote: On 18/11/2012 15:59, Steven D'Aprano wrote: On Sun, 18 Nov 2012 22:45:43 +1100, Chris Angelico wrote: (if you'll forgive the pun) Is IDLE named after Eric of that name, or is it pure coincidence? Well, IDLE is an IDE. The L doesn't

Re: Inconsistent behaviour os str.find/str.index when providing optional parameters

2012-11-21 Thread Alister
On Wed, 21 Nov 2012 04:43:57 -0800, Giacomo Alzetta wrote: I just came across this: 'spam'.find('', 5) -1 Now, reading find's documentation: print(str.find.__doc__) S.find(sub [,start [,end]]) - int Return the lowest index in S where substring sub is found, such that sub is

Re: Print value from array

2012-11-22 Thread Alister
On Thu, 22 Nov 2012 10:44:02 -0800, Mike wrote: Hello, I am noob en python programing, i wrote a perl script for read from csv but now i wish print value but the value must be within double quote and I can not do this. For example now the output is: ma user@domain displayName Name

Re: The curses module and licensing

2012-12-06 Thread Alister
On Thu, 06 Dec 2012 19:34:04 +0100, benjamin schnitzler wrote: I think I have accidentially not sent this to the python list: On 02:17 Fri 07 Dec , Chris Angelico wrote: Hi! Here's some info on ncurses: http://invisible-island.net/ncurses/ncurses.faq.html I would generally assume

Re: Why Doesn't This MySQL Statement Execute?

2012-12-19 Thread Alister
On Tue, 18 Dec 2012 17:34:08 -0400, Tom Borkin wrote: Hi; I have this test code: if i_id == 1186: sql = 'insert into interactions values(Null, %s, Call Back,% s)' % (i_id, date_plus_2) cursor.execute(sql) Please don't build your sql strings like this but pass the data as

Re: how to detect the character encoding in a web page ?

2012-12-24 Thread Alister
On Mon, 24 Dec 2012 13:50:39 +, Steven D'Aprano wrote: On Mon, 24 Dec 2012 13:16:16 +0100, Kwpolska wrote: On Mon, Dec 24, 2012 at 9:34 AM, Kurt Mueller kurt.alfred.muel...@gmail.com wrote: $ wget -q -O - http://python.org/ | chardetect.py stdin: ISO-8859-2 with confidence

Re: New to python, do I need an IDE or is vim still good enough?

2012-12-27 Thread Alister
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

Re: To whoever hacked into my Database

2013-11-14 Thread Alister
On Thu, 14 Nov 2013 12:46:29 +0200, Ferrous Cranus wrote: This must have happened when i was handling my root passwords out in the open. Served me well. At least you seem to be learning this lesson Can somebody explain to me why there is so many failed attempts to login into my linux

Re: To whoever hacked into my Database

2013-11-14 Thread Alister
On Thu, 14 Nov 2013 15:24:32 +0200, Ferrous Cranus wrote: Στις 14/11/2013 2:32 μμ, ο/η Alister έγραψε: On Thu, 14 Nov 2013 12:46:29 +0200, Ferrous Cranus wrote: This must have happened when i was handling my root passwords out in the open. Served me well. At least you seem to be learning

Re: Automation

2013-11-14 Thread Alister
On Thu, 14 Nov 2013 17:10:02 +, Mark Lawrence wrote: On 14/11/2013 03:56, renato.barbosa.pim.pere...@gmail.com wrote: I apologize again for my bad english and any inconvenience that I have generated. I do wish that people would stop apologising for poor English, it's an extremely

Re: PyMyth: Global variables are evil... WRONG!

2013-11-14 Thread Alister
On Thu, 14 Nov 2013 09:56:04 -0800, Ethan Furman wrote: On 11/14/2013 09:37 AM, Joel Goldstick wrote: So, beyond that, what is the point of the thread? You haven't met Ranting Rick yet? He's a troll's troll, outdone only by one other whose name I don't remember. His posts are,

Re: Automation

2013-11-15 Thread Alister
On Sat, 16 Nov 2013 02:12:16 +1100, Chris Angelico wrote: On Sat, Nov 16, 2013 at 2:02 AM, Grant Edwards invalid@invalid.invalid wrote: And yes, people can _easily_ tell the difference between errors caused by being lazy/sloppy and errors caused by writing in a second language. Yes, and

Re: Automation

2013-11-15 Thread Alister
On Fri, 15 Nov 2013 16:53:58 +, Neil Cerutti wrote: On 2013-11-15, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Thu, 14 Nov 2013 20:03:44 +, Alister wrote: As a native of England I have to agree it is far to arrogant to expect everyone else to be able to speak good

Re: Automation

2013-11-15 Thread Alister
On Fri, 15 Nov 2013 20:12:27 +, Alister wrote: On Fri, 15 Nov 2013 16:53:58 +, Neil Cerutti wrote: On 2013-11-15, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Thu, 14 Nov 2013 20:03:44 +, Alister wrote: As a native of England I have to agree it is far

Re: Automation

2013-11-19 Thread Alister
On Tue, 19 Nov 2013 22:58:35 +1100, Chris Angelico wrote: On Tue, Nov 19, 2013 at 10:53 PM, Walter Hurry walterhu...@lavabit.com wrote: 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

Re: Automation

2013-11-19 Thread Alister
On Tue, 19 Nov 2013 23:52:09 +1100, Chris Angelico wrote: On Tue, Nov 19, 2013 at 11:36 PM, Alister alister.w...@ntlworld.com wrote: the language nationality is Scottish, the people are Scots Scotch is a type of whisky. Hmm, I don't know that it's that clear-cut (other than the drink

Re: Automation

2013-11-19 Thread Alister
On Tue, 19 Nov 2013 23:52:09 +1100, Chris Angelico wrote: On Tue, Nov 19, 2013 at 11:36 PM, Alister alister.w...@ntlworld.com wrote: the language nationality is Scottish, the people are Scots Scotch is a type of whisky. Hmm, I don't know that it's that clear-cut (other than the drink

Re: Automation

2013-11-19 Thread Alister
On Tue, 19 Nov 2013 23:52:09 +1100, Chris Angelico wrote: On Tue, Nov 19, 2013 at 11:36 PM, Alister alister.w...@ntlworld.com wrote: the language nationality is Scottish, the people are Scots Scotch is a type of whisky. Hmm, I don't know that it's that clear-cut (other than the drink

Re: Automation

2013-11-19 Thread Alister
On Tue, 19 Nov 2013 23:52:09 +1100, Chris Angelico wrote: On Tue, Nov 19, 2013 at 11:36 PM, Alister alister.w...@ntlworld.com wrote: the language nationality is Scottish, the people are Scots Scotch is a type of whisky. Hmm, I don't know that it's that clear-cut (other than the drink

Re: Newbie - Trying to Help a Friend

2013-11-20 Thread Alister
On Wed, 20 Nov 2013 00:54:28 -0500, Dave Angel wrote: On 20 Nov 2013 03:52:10 GMT, Steven D'Aprano st...@pearwood.info wrote: 2 does count because it isn't divisible by 3. The question states, [count] how many positive integers less than N are not divisible by 2,3 or 5. Two is not divisible

Re: Newbie - Trying to Help a Friend

2013-11-20 Thread Alister
On Wed, 20 Nov 2013 00:54:28 -0500, Dave Angel wrote: On 20 Nov 2013 03:52:10 GMT, Steven D'Aprano st...@pearwood.info wrote: 2 does count because it isn't divisible by 3. The question states, [count] how many positive integers less than N are not divisible by 2,3 or 5. Two is not divisible

Re: Newbie - Trying to Help a Friend

2013-11-20 Thread Alister
On Wed, 20 Nov 2013 13:57:30 +, Mark Lawrence wrote: On 20/11/2013 09:29, Alister wrote: On Wed, 20 Nov 2013 00:54:28 -0500, Dave Angel wrote: On 20 Nov 2013 03:52:10 GMT, Steven D'Aprano st...@pearwood.info wrote: 2 does count because it isn't divisible by 3. The question states

Re: Newbie - Trying to Help a Friend

2013-11-20 Thread Alister
On Wed, 20 Nov 2013 13:57:30 +, Mark Lawrence wrote: On 20/11/2013 09:29, Alister wrote: On Wed, 20 Nov 2013 00:54:28 -0500, Dave Angel wrote: On 20 Nov 2013 03:52:10 GMT, Steven D'Aprano st...@pearwood.info wrote: 2 does count because it isn't divisible by 3. The question states

Re: Newbie - Trying to Help a Friend

2013-11-20 Thread Alister
On Wed, 20 Nov 2013 13:57:30 +, Mark Lawrence wrote: On 20/11/2013 09:29, Alister wrote: On Wed, 20 Nov 2013 00:54:28 -0500, Dave Angel wrote: On 20 Nov 2013 03:52:10 GMT, Steven D'Aprano st...@pearwood.info wrote: 2 does count because it isn't divisible by 3. The question states

Re: Newbie - Trying to Help a Friend

2013-11-20 Thread Alister
On Wed, 20 Nov 2013 13:57:30 +, Mark Lawrence wrote: On 20/11/2013 09:29, Alister wrote: On Wed, 20 Nov 2013 00:54:28 -0500, Dave Angel wrote: On 20 Nov 2013 03:52:10 GMT, Steven D'Aprano st...@pearwood.info wrote: 2 does count because it isn't divisible by 3. The question states

Re: Newbie - Trying to Help a Friend

2013-11-20 Thread Alister
On Wed, 20 Nov 2013 14:49:59 +, Alister wrote: On Wed, 20 Nov 2013 13:57:30 +, Mark Lawrence wrote: On 20/11/2013 09:29, Alister wrote: On Wed, 20 Nov 2013 00:54:28 -0500, Dave Angel wrote: On 20 Nov 2013 03:52:10 GMT, Steven D'Aprano st...@pearwood.info wrote: 2 does count

Re: Newbie - Trying to Help a Friend

2013-11-20 Thread Alister
On Wed, 20 Nov 2013 15:06:44 +, Alister wrote: On Wed, 20 Nov 2013 14:49:59 +, Alister wrote: On Wed, 20 Nov 2013 13:57:30 +, Mark Lawrence wrote: On 20/11/2013 09:29, Alister wrote: On Wed, 20 Nov 2013 00:54:28 -0500, Dave Angel wrote: On 20 Nov 2013 03:52:10 GMT, Steven

Re: Newbie - Trying to Help a Friend

2013-11-20 Thread Alister
On Wed, 20 Nov 2013 14:49:59 +, Alister wrote: On Wed, 20 Nov 2013 13:57:30 +, Mark Lawrence wrote: On 20/11/2013 09:29, Alister wrote: On Wed, 20 Nov 2013 00:54:28 -0500, Dave Angel wrote: On 20 Nov 2013 03:52:10 GMT, Steven D'Aprano st...@pearwood.info wrote: 2 does count

Re: Newbie - Trying to Help a Friend

2013-11-20 Thread Alister
On Thu, 21 Nov 2013 02:14:12 +1100, Chris Angelico wrote: On Thu, Nov 21, 2013 at 2:09 AM, Alister alister.w...@ntlworld.com wrote: must be a strange quirk of pan turned off hide to system tray allow multiple instances. Hmm. Hard to know, but I can imagine that having multiple instances

Multiple postings

2013-11-20 Thread Alister
On Wed, 20 Nov 2013 15:35:14 +, Alister wrote: On Thu, 21 Nov 2013 02:14:12 +1100, Chris Angelico wrote: On Thu, Nov 21, 2013 at 2:09 AM, Alister alister.w...@ntlworld.com wrote: must be a strange quirk of pan turned off hide to system tray allow multiple instances. Hmm. Hard

Re: Newbie - Trying to Help a Friend

2013-11-20 Thread Alister
On Thu, 21 Nov 2013 02:14:12 +1100, Chris Angelico wrote: On Thu, Nov 21, 2013 at 2:09 AM, Alister alister.w...@ntlworld.com wrote: must be a strange quirk of pan turned off hide to system tray allow multiple instances. Hmm. Hard to know, but I can imagine that having multiple instances

Re: Newbie - Trying to Help a Friend

2013-11-20 Thread Alister
On Thu, 21 Nov 2013 02:14:12 +1100, Chris Angelico wrote: On Thu, Nov 21, 2013 at 2:09 AM, Alister alister.w...@ntlworld.com wrote: must be a strange quirk of pan turned off hide to system tray allow multiple instances. Hmm. Hard to know, but I can imagine that having multiple instances

  1   2   3   4   5   6   7   8   >