Re: Python list code of conduct

2013-07-02 Thread Steven D'Aprano
On Wed, 03 Jul 2013 08:39:59 +1000, Ben Finney wrote: > Steve Simmons writes: >> Does this list have a code of conduct or a netiqeutte (sp?) >> statement/requirement? > > This forum (both a Usenet newsgroup and a mailing list) is part of the > Python community. So the “Python Community Code of C

Re: Python list code of conduct

2013-07-02 Thread Terry Reedy
On 7/2/2013 7:46 PM, Roy Smith wrote: In article , Ned Deily wrote: If you find a bug in Python, don't send it to comp.lang.python; file a bug report in the issue tracker. I would revise this to "If you are have really found a bug in Python..." How does a newbie know? I'm not sure I agre

Re: How to define metaclass for a class that extends from sqlalchemy declarative base ?

2013-07-02 Thread Peter Otten
Ven wrote: > I use: Python 2.6 and sqlalchemy 0.6.1 > > This is what I am trying to do: > > from sqlalchemy.types import ( > Integer, > String, > Boolean > ) > from sqlalchemy.ext.declarative import declarative_base > > Base = declarative_base() > > class SampleMeta(type): > def __

Re: Python - forking an external process?

2013-07-02 Thread rusi
On Wednesday, July 3, 2013 9:41:32 AM UTC+5:30, Victor Hooi wrote: > Also, what's this improvement you mentioned? See thread http://mail.python.org/pipermail/python-list/2013-June/650550.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Python - forking an external process?

2013-07-02 Thread Roy Smith
In article <14be21de-2ceb-464a-a638-dce0368ab...@googlegroups.com>, Victor Hooi wrote: > Hi, > > I have a Python script where I want to run fork and run an external command > (or set of commands). > > For example, after doing , I then want to run ssh to a host, handover > control back to the

How to define metaclass for a class that extends from sqlalchemy declarative base ?

2013-07-02 Thread Ven
I use: Python 2.6 and sqlalchemy 0.6.1 This is what I am trying to do: from sqlalchemy.types import ( Integer, String, Boolean ) from sqlalchemy.ext.declarative import declarative_base Base = declarative_base() class Sample

Re: Python - forking an external process?

2013-07-02 Thread Victor Hooi
Hi, Hmm, this script is actually written using the Cliff framework (https://github.com/dreamhost/cliff). I was hoping to keep the whole approach fairly simple, without needing to pull in too much external stuff, or set anything up. There's no way to do it with just Python core is there? Also,

Re: Python - forking an external process?

2013-07-02 Thread rusi
On Wednesday, July 3, 2013 9:17:29 AM UTC+5:30, Victor Hooi wrote: > Hi, > > I have a Python script where I want to run fork and run an external command > (or set of commands). > For example, after doing , I then want to run ssh to a host, handover > control back to the user, and have my script

Python - forking an external process?

2013-07-02 Thread Victor Hooi
Hi, I have a Python script where I want to run fork and run an external command (or set of commands). For example, after doing , I then want to run ssh to a host, handover control back to the user, and have my script terminate. Or I might want to run ssh to a host, less a certain textfile, the

Re: How to tell Script to use pythonw.exe ?

2013-07-02 Thread Tim Roberts
goldtech wrote: > >I just changed the file extension of the script file from .py to .pyw >and it uses pythonw.exe. I didn't read it anywhere, just intuited it >and tried it. Python has some very smart people working the language... While your statement is true, that's not what happened here. Win

OT Plague [was Re: python adds an extra half space when reading from a string or list]

2013-07-02 Thread Steven D'Aprano
On Tue, 02 Jul 2013 06:48:59 -0700, rusi wrote: > A plague is raging in the town > A rat scampers into the room. > People are harried --- A RAT! [...] Very imaginative, but your characterisation of people's responses to the plague rat appears to have very little in common with the actual respon

Re: Read active tab URL from a browser with Python ?

2013-07-02 Thread alex23
On 3/07/2013 10:51 AM, goldtech wrote: I've goggled this but haven't found a way (at least a way I understand) for a running Python script to get the current URL in a browser's location bar. Is there a way? I'm using Windows so maybe that would provide a way (or not). This isn't for a browser c

Re: How to tell Script to use pythonw.exe ?

2013-07-02 Thread Steven D'Aprano
On Tue, 02 Jul 2013 18:20:12 -0700, goldtech wrote: > Hi, > > Using Windows > > I want to run a .py file script using pythonw.exe so the DOS box will > not open. Is there a way from inside the script to say "run me with > pythonw.exe and not python.exe"? I don't believe so, because by the t

Re: How to tell Script to use pythonw.exe ?

2013-07-02 Thread goldtech
I just changed the file extension of the script file from .py to .pyw and it uses pythonw.exe. I didn't read it anywhere, just intuited it and tried it. Python has some very smart people working the language... -- http://mail.python.org/mailman/listinfo/python-list

Re: How to tell Script to use pythonw.exe ?

2013-07-02 Thread Andrew Berg
On 2013.07.02 20:20, goldtech wrote: > Using Windows > > I want to run a .py file script using pythonw.exe so the DOS box will not > open. Is there a way from inside the script to say "run me with pythonw.exe > and not python.exe"? Use the .pyw extension instead of .py. Also, just FYI, DOS i

Re: python adds an extra half space when reading from a string or list

2013-07-02 Thread rurpy
On 07/02/2013 05:18 PM, Joshua Landau wrote: > On 2 July 2013 23:34, Ben Finney wrote: >[...] >> Needless to say, I disagree with your position. There is no place for >> baseless insults in this community; but when the behaviour of someone in >> this community is harmful, then it is entirely appro

Re: python adds an extra half space when reading from a string or list

2013-07-02 Thread Steven D'Aprano
On Tue, 02 Jul 2013 17:30:32 -0700, rurpy wrote: >> Needless to say, I disagree with your position. There is no place for >> baseless insults in this community; but when the behaviour of someone >> in this community is harmful, then it is entirely appropriate to use >> clear terms (e.g. “incompete

How to tell Script to use pythonw.exe ?

2013-07-02 Thread goldtech
Hi, Using Windows I want to run a .py file script using pythonw.exe so the DOS box will not open. Is there a way from inside the script to say "run me with pythonw.exe and not python.exe"? Thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: Bug reports [was Re: Python list code of conduct]

2013-07-02 Thread Joshua Landau
On 3 July 2013 01:52, Steven D'Aprano wrote: > If you are a beginner to a programming language, assume that anything > that doesn't work the way you expect is a bug in YOUR code, or YOUR > understanding, not in the language. Not just beginners. Out of the hundreds of times where I've gone "this *

Re: Parsing Text file

2013-07-02 Thread Denis McMahon
On Tue, 02 Jul 2013 13:28:33 -0700, sas429s wrote: > Ok here is a snippet of the text file I have: > I hope this helps.. > . > Thanks for your help ok ... so you need to figure out how best to distinguish the filename, then loop through the file, remember each filename as you find it, and w

Re: Persistence of CGI (was: OSError [Errno 26] ?!?!)

2013-07-02 Thread Tim Chase
On 2013-07-03 00:19, Steven D'Aprano wrote: > CGI didn't stop working just because more powerful, or better, > alternatives now exist. And for most exceptionally cheap hosting services, your choices are usually limited to PHP, static HTML (possibly server-side includes if you're lucky), or CGI.

Read active tab URL from a browser with Python ?

2013-07-02 Thread goldtech
Hi, I've goggled this but haven't found a way (at least a way I understand) for a running Python script to get the current URL in a browser's location bar. Is there a way? I'm using Windows so maybe that would provide a way (or not). This isn't for a browser controlled/automated by Python that

Bug reports [was Re: Python list code of conduct]

2013-07-02 Thread Steven D'Aprano
On Tue, 02 Jul 2013 19:46:13 -0400, Roy Smith wrote: > In article , > Ned Deily wrote: > >> If you find a bug in Python, don't send it to comp.lang.python; file a >> bug report in the issue tracker. > > I'm not sure I agree with that one, at least not fully. It's certainly > true that you sho

Re: python adds an extra half space when reading from a string or list

2013-07-02 Thread Joshua Landau
On 3 July 2013 01:36, Ben Finney wrote: > I think we've found the root of > the disagreement. I've made my position clear and will let it rest there. Seconded. > Thanks for caring enough about this community to act in the > interest of keeping it open, considerate, and respectful. Thank you in

Re: Python list code of conduct

2013-07-02 Thread Steven D'Aprano
On Tue, 02 Jul 2013 16:51:38 +0100, Steve Simmons wrote: > Erm, > > It probably isn't the best time to start this post but I was > wondering... > > Does this list have a code of conduct or a netiqeutte (sp?) > statement/requirement? > > If not, should it? I *knew* this would be raised. You are

Re: Python list code of conduct

2013-07-02 Thread Ben Finney
Dennis Lee Bieber writes: > So who would enforce any rules? Ideally, this community is healthy enough for us to enforce the code of conduct of our host, through social convention among us all. -- \“I took a course in speed waiting. Now I can wait an hour in | `\

Re: python adds an extra half space when reading from a string or list

2013-07-02 Thread Ben Finney
Joshua Landau writes: > Firstly, describing someone's behaviour and describing someone's > character are two completely different things. I agree with that. > Antoon is describing people's character. I disagree with that. To merely describe someone as “incompetent” is not to describe their beh

Re: python adds an extra half space when reading from a string or list

2013-07-02 Thread rurpy
Since this thread too has gone into the trash hole thanks to our resident trolls I might as well comment... On 07/02/2013 04:34 PM, Ben Finney wrote:> Joshua Landau writes: > >> On 2 July 2013 13:01, Antoon Pardon wrote: >> > Please answer the following question. If someone behaved >> > incomp

Re: python adds an extra half space when reading from a string or list

2013-07-02 Thread Steven D'Aprano
On Tue, 02 Jul 2013 12:53:53 +, Denis McMahon wrote: > On Tue, 02 Jul 2013 10:16:37 +0200, Antoon Pardon wrote: > >> I would like people to have that in mind when they try to tell others >> to just ignore the behaviour that bothers them. Maybe it would help >> them to be a bit more patient to

Re: OSError [Errno 26] ?!?!

2013-07-02 Thread Steven D'Aprano
On Tue, 02 Jul 2013 14:58:18 +0100, Robert Kern wrote: > On 2013-07-02 14:00, Chris “Kwpolska” Warrick wrote: >> On Tue, Jul 2, 2013 at 2:39 PM, Νίκος wrote: > >>> Please suggest an editor that has built in rsync ability so to >>> immediately upload my cgi-scripts when i hit save in the text edi

Re: how to calculate reputation

2013-07-02 Thread Steven D'Aprano
On Tue, 02 Jul 2013 23:43:51 +0200, Surya Kasturi wrote: > Hi all, this seems to be quite stupid question but I am "confused".. We > set the initial value to 0, +1 for up-vote and -1 for down-vote! nice. > > I have a list of bool values True, False (True for up vote, False for > down-vote).. subm

Re: HTML Parser

2013-07-02 Thread Joshua Landau
On 2 July 2013 18:43, wrote: > I could not use BeautifulSoup as I did not find an .exe file. Were you perhaps looking for a .exe file to install BeautifulSoup? It's quite plausible that a windows user like you might be dazzled at the idea of a .tar.gz. I suggest just using "pip install beautifu

Re: Python list code of conduct

2013-07-02 Thread Cameron Simpson
On 02Jul2013 19:46, Roy Smith wrote: | In article , | Ned Deily wrote: | | > If you find a bug in Python, don't send it to comp.lang.python; file | > a bug report in the issue tracker. | | I'm not sure I agree with that one, at least not fully. It's certainly | true that you shouldn't expec

Re: Python list code of conduct

2013-07-02 Thread Ned Deily
In article , Roy Smith wrote: > In article , > Ned Deily wrote:> > > If you find a bug in Python, don't send it to comp.lang.python; file > > a bug report in the issue tracker. > I'm not sure I agree with that one, at least not fully. It's certainly > true that you shouldn't expect anybody

Re: how to calculate reputation

2013-07-02 Thread Mark Janssen
> Hi all, this seems to be quite stupid question but I am "confused".. > We set the initial value to 0, +1 for up-vote and -1 for down-vote! nice. > > I have a list of bool values True, False (True for up vote, False for > down-vote).. submitted by users. > > should I take True = +1, False=0 [or]

Re: HTML Parser

2013-07-02 Thread Steven D'Aprano
On Tue, 02 Jul 2013 10:43:03 -0700, subhabangalore wrote: > I could not use BeautifulSoup as I did not find an .exe file. I believe that BeautifulSoup is a pure-Python module, and so does not have a .exe file. However, it does have good tutorials: https://duckduckgo.com/html/?q=beautifulsoup+tu

Re: Python list code of conduct

2013-07-02 Thread Roy Smith
In article , Ned Deily wrote: > If you find a bug in Python, don't send it to comp.lang.python; file > a bug report in the issue tracker. I'm not sure I agree with that one, at least not fully. It's certainly true that you shouldn't expect anybody to do anything about a bug unless you open

Re: Don't feed the troll...

2013-07-02 Thread rurpy
On 07/01/2013 01:38 PM, Antoon Pardon wrote: > > Op 01-07-13 16:02, ru...@yahoo.com schreef: > > >> >> You claim "collective experience" is not reliable and dismiss it >> >> in favor of your own theory, flaming trolls is a better response. >> >> And your evidence for that? Nothing (that I've read

Re: python adds an extra half space when reading from a string or list

2013-07-02 Thread Joshua Landau
On 2 July 2013 23:34, Ben Finney wrote: > > Joshua Landau writes: >> There is not ever a place on this list where you will need to call >> someone incompetent. > > So even if that term describes their behaviour and manner, you think > no-one should ever point it out? Yes. I see no instance where

Re: Python list code of conduct

2013-07-02 Thread Ben Finney
Steve Simmons writes: > It probably isn't the best time to start this post but I was > wondering... An excellent time to raise this, in my opinion. Thank you for doing so. > Does this list have a code of conduct or a netiqeutte (sp?) > statement/requirement? This forum (both a Usenet newsgrou

Re: python adds an extra half space when reading from a string or list

2013-07-02 Thread Ben Finney
Joshua Landau writes: > On 2 July 2013 13:01, Antoon Pardon wrote: > > Please answer the following question. If someone behaved > > incompetently, how can I clearly state that fact when > > "incompetently" is seen as an insult and insults don't belong on the > > list? > > There is not ever a pla

Re: how to calculate reputation

2013-07-02 Thread Ian Kelly
On Tue, Jul 2, 2013 at 4:19 PM, Surya Kasturi wrote: > I think I didnt explain it clearly.. let me make it clear.. > > 1. The database we are using is having BooleanField for it!! so, cant do > anything > 2. I am not looking for sorting algorithms .. just simple math :) It sounds > crazy but let m

Re: how to calculate reputation

2013-07-02 Thread Surya Kasturi
On Tue, Jul 2, 2013 at 11:59 PM, Tobiah wrote: > On 07/02/2013 02:43 PM, Surya Kasturi wrote: > >> Hi all, this seems to be quite stupid question but I am "confused".. >> We set the initial value to 0, +1 for up-vote and -1 for down-vote! nice. >> >> I have a list of bool values True, False (True

Re: how to calculate reputation

2013-07-02 Thread Joshua Landau
On 2 July 2013 22:43, Surya Kasturi wrote: > Hi all, this seems to be quite stupid question but I am "confused".. > We set the initial value to 0, +1 for up-vote and -1 for down-vote! nice. > > I have a list of bool values True, False (True for up vote, False for > down-vote).. submitted by users.

Re: how to calculate reputation

2013-07-02 Thread Tobiah
On 07/02/2013 02:43 PM, Surya Kasturi wrote: Hi all, this seems to be quite stupid question but I am "confused".. We set the initial value to 0, +1 for up-vote and -1 for down-vote! nice. I have a list of bool values True, False (True for up vote, False for down-vote).. submitted by users. [Tr

Re: how to calculate reputation

2013-07-02 Thread Ian Kelly
On Tue, Jul 2, 2013 at 3:43 PM, Surya Kasturi wrote: > Hi all, this seems to be quite stupid question but I am "confused".. > We set the initial value to 0, +1 for up-vote and -1 for down-vote! nice. > > I have a list of bool values True, False (True for up vote, False for > down-vote).. submitted

how to calculate reputation

2013-07-02 Thread Surya Kasturi
Hi all, this seems to be quite stupid question but I am "confused".. We set the initial value to 0, +1 for up-vote and -1 for down-vote! nice. I have a list of bool values True, False (True for up vote, False for down-vote).. submitted by users. [True, False, False, True] Now to calculate th

Re: Parsing Text file

2013-07-02 Thread Joshua Landau
On 2 July 2013 21:28, wrote: > Here I am looking for the line that contains: "WORK_MODE_MASK", I want to > print that line as well as the file name above it: > config/meal/governor_mode_config.h > or config/meal/components/source/ceal_PackD_kso_aic_core_config.h. > > SO the output should be som

Re: Python list code of conduct

2013-07-02 Thread Ned Deily
In article , Steve Simmons wrote: > Does this list have a code of conduct or a netiqeutte (sp?) > statement/requirement? >From http://www.python.org/community/lists/ comp.lang.python comp.lang.python is a high-volume Usenet open (not moderated) newsgroup for general discussions and question

Re: Python list code of conduct

2013-07-02 Thread Skip Montanaro
> Does this list have a code of conduct or a netiqeutte (sp?) > statement/requirement? > > If not, should it? No, and probably not. As Joshua Landau indicated, nobody reads the user manual anyway. In addition, this mailing list is not currently moderated in an approve-each-message sort of way (

Re: Parsing Text file

2013-07-02 Thread sas429s
Ok here is a snippet of the text file I have: config/meal/governor_mode_config.h #define GOVERNOR_MODE_TASK_RATE SSS_TID_0015MSEC #define GOVERNOR_MODE_WORK_MODE_MASK(CEAL_MODE_WORK_MASK_GEAR| \ CEAL_MODE_WORK_MASK_PARK_BRAKE | \

Re: Parsing Text file

2013-07-02 Thread Joshua Landau
On 2 July 2013 20:50, Tobiah wrote: > How do we know whether we have Sometext? > If it's really just a literal 'Sometext', then > just print that when you hit maskit. > > Otherwise: > > > for line in open('file.txt').readlines(): > > if is_sometext(line): > memory = line >

Re: Parsing Text file

2013-07-02 Thread Neil Cerutti
On 2013-07-02, Tobiah wrote: > On 07/02/2013 12:30 PM, sas4...@gmail.com wrote: >> Somemore can be anything for instance: >> >> Sometext >> mail >> maskit >> >> Sometext >> rupee >> dollar >> maskit >> >> and so on.. >> >> Is there a way I can achieve this? > > How do we know whether we have Somet

Re: Parsing Text file

2013-07-02 Thread Tobiah
On 07/02/2013 12:30 PM, sas4...@gmail.com wrote: Somemore can be anything for instance: Sometext mail maskit Sometext rupee dollar maskit and so on.. Is there a way I can achieve this? How do we know whether we have Sometext? If it's really just a literal 'Sometext', then just print that wh

Re: Python list code of conduct

2013-07-02 Thread Joshua Landau
On 2 July 2013 16:51, Steve Simmons wrote: > Erm, > > It probably isn't the best time to start this post but I was wondering... > > Does this list have a code of conduct or a netiqeutte (sp?) > statement/requirement? > > If not, should it? > > Is the membership of this list presently in the right

Re: Parsing Text file

2013-07-02 Thread sas429s
Somemore can be anything for instance: Sometext mail maskit Sometext rupee dollar maskit and so on.. Is there a way I can achieve this? On Tuesday, July 2, 2013 2:24:26 PM UTC-5, Neil Cerutti wrote: > On 2013-07-02, sas4...@gmail.com wrote: > > > I have a text file like this: > > > > > > S

Re: Parsing Text file

2013-07-02 Thread Neil Cerutti
On 2013-07-02, sas4...@gmail.com wrote: > I have a text file like this: > > Sometext > Somemore > Somemore > maskit > > Sometext > Somemore > Somemore > Somemore > maskit > > Sometext > Somemore > maskit > > I want to search for the string maskit in this file and also > need to print Sometext abov

Re: python adds an extra half space when reading from a string or list

2013-07-02 Thread Walter Hurry
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.

Parsing Text file

2013-07-02 Thread sas429s
I have a text file like this: Sometext Somemore Somemore maskit Sometext Somemore Somemore Somemore maskit Sometext Somemore maskit I want to search for the string maskit in this file and also need to print Sometext above it..SOmetext location can vary as you can see above. In the first insta

Re: HTML Parser

2013-07-02 Thread Neil Cerutti
On 2013-07-02, subhabangal...@gmail.com wrote: > Dear Group, > > I was looking for a good tutorial for a "HTML Parser". My > intention was to extract tables from web pages or information > from tables in web pages. > > I tried to make a search, I got HTMLParser, BeautifulSoup, etc. > HTMLParser w

HTML Parser

2013-07-02 Thread subhabangalore
Dear Group, I was looking for a good tutorial for a "HTML Parser". My intention was to extract tables from web pages or information from tables in web pages. I tried to make a search, I got HTMLParser, BeautifulSoup, etc. HTMLParser works fine for me, but I am looking for a good tutorial to le

Python list code of conduct

2013-07-02 Thread Steve Simmons
Erm, It probably isn't the best time to start this post but I was wondering... Does this list have a code of conduct or a netiqeutte (sp?) statement/requirement? If not, should it? Is the membership of this list presently in the right frame of mind to create one or update any existing one?

Re: OSError [Errno 26] ?!?!

2013-07-02 Thread Robert Kern
On 2013-07-02 14:00, Chris “Kwpolska” Warrick wrote: On Tue, Jul 2, 2013 at 2:39 PM, Νίκος wrote: Please suggest an editor that has built in rsync ability so to immediately upload my cgi-scripts when i hit save in the text editor. CGI? Is this 2000? Nobody uses that wording these days.

Re: python adds an extra half space when reading from a string or list

2013-07-02 Thread rusi
A plague is raging in the town A rat scampers into the room. People are harried --- A RAT! Rurpy: Rats are living beings dont you know?! Never kill a living being! Its not humanitarian, er rattatitarian. (200 more posts on humanitarianism, veganism, rattatitarianism etc) Alex: Hear Hear! But fir

Re: python adds an extra half space when reading from a string or list

2013-07-02 Thread Joshua Landau
On 2 July 2013 13:01, Antoon Pardon wrote: > Op 02-07-13 11:34, Joshua Landau schreef: > >> No it does not. I'd give you more of a counter but I actually have no >> idea how you came up with that. > Please answer the following question. If someone behaved incompetently, > how can I clearly state t

Re: OSError [Errno 26] ?!?!

2013-07-02 Thread Chris “Kwpolska” Warrick
On Tue, Jul 2, 2013 at 2:39 PM, Νίκος wrote: > How and from where should i use rsync? From your computer, in the command line. > I currently ditched FileZilla and start using CrossFTP Pro. > I searched inside it but i have seen no rsync command/method just > "Synchronized Browsing" Look for a

Re: python adds an extra half space when reading from a string or list

2013-07-02 Thread Denis McMahon
On Tue, 02 Jul 2013 10:16:37 +0200, Antoon Pardon wrote: > I would like people to have that in mind when they try to tell others to > just ignore the behaviour that bothers them. Maybe it would help them to > be a bit more patient to those who have trouble following the advise. It's quite clear t

Re: OSError [Errno 26] ?!?!

2013-07-02 Thread Νίκος
Στις 2/7/2013 3:00 μμ, ο/η Dave Angel έγραψε: ou need to reconfigure FileZilla then. Site Manager (first icon on the toolbar) → your site → Charset → Force UTF-8. Much better: upload all files as binary, so they are byte for byte identical on both systems. Sometimes that might require some l

Re: Regular expression negative look-ahead

2013-07-02 Thread Neil Cerutti
On 2013-07-01, Jason Friedman wrote: > > I have table names in this form: > MY_TABLE > MY_TABLE_CTL > MY_TABLE_DEL > MY_TABLE_RUN > YOUR_TABLE > YOUR_TABLE_CTL > YOUR_TABLE_DEL > YOUR_TABLE_RUN > > I am trying to create a regular expression that will return true for only > these tables: > MY_TABLE

Re: python adds an extra half space when reading from a string or list

2013-07-02 Thread Antoon Pardon
Op 02-07-13 11:34, Joshua Landau schreef: > No it does not. I'd give you more of a counter but I actually have no > idea how you came up with that. Please answer the following question. If someone behaved incompetently, how can I clearly state that fact when "incompetently" is seen as an insult an

Re: OSError [Errno 26] ?!?!

2013-07-02 Thread Dave Angel
On 07/02/2013 06:06 AM, Chris “Kwpolska” Warrick wrote: On Tue, Jul 2, 2013 at 11:40 AM, Νίκος wrote: Στις 2/7/2013 10:21 πμ, ο/η Cameron Simpson έγραψε: On 02Jul2013 08:57, Νίκος wrote: | Thank you, the error have been caused due to the fact that the | uploading procedure of my edited 'pela

Re: OSError [Errno 26] ?!?!

2013-07-02 Thread Chris “Kwpolska” Warrick
On Tue, Jul 2, 2013 at 11:40 AM, Νίκος wrote: > Στις 2/7/2013 10:21 πμ, ο/η Cameron Simpson έγραψε: >> >> On 02Jul2013 08:57, Νίκος wrote: >> | Thank you, the error have been caused due to the fact that the >> | uploading procedure of my edited 'pelatologio.py' hadn't been >> | completed yet, whi

Re: OSError [Errno 26] ?!?!

2013-07-02 Thread Νίκος
Στις 2/7/2013 10:21 πμ, ο/η Cameron Simpson έγραψε: On 02Jul2013 08:57, Νίκος wrote: | Thank you, the error have been caused due to the fact that the | uploading procedure of my edited 'pelatologio.py' hadn't been | completed yet, while i was requesting the execution of the script | via browser.

Re: python adds an extra half space when reading from a string or list

2013-07-02 Thread Joshua Landau
On 2 July 2013 08:22, Antoon Pardon wrote: > Op 01-07-13 21:28, Joshua Landau schreef: > >> Well then you are wrong. But fine, I'll use your definition incorrect >> as it may be (when talking to you, please don't misrepresent my other >> posts). >> >> Nevertheless, these statements that we are tal

Re: python adds an extra half space when reading from a string or list

2013-07-02 Thread Antoon Pardon
Op 02-07-13 09:43, Ian Kelly schreef: > On Tue, Jul 2, 2013 at 12:54 AM, Antoon Pardon > wrote: >> Why about you just ignore me? >> >> Serious, a lot of people here seem to think that if someone is bothered >> by someone else, the bothered person should just ignore the botherer. >> >> That is unti

Re: python adds an extra half space when reading from a string or list

2013-07-02 Thread Chris Angelico
On Tue, Jul 2, 2013 at 5:55 PM, Antoon Pardon wrote: > Fine you give me an opportunity to point out the problems in your thinking > without giving yourself the opportunity to respond. I can live with that. And by continuing to rant, you just make other people sick of reading your posts. Please, d

Re: python adds an extra half space when reading from a string or list

2013-07-02 Thread Antoon Pardon
Op 02-07-13 00:12, Steven D'Aprano schreef: > On Mon, 01 Jul 2013 20:42:48 +0200, Antoon Pardon wrote: > >> How about the following comprimise. I'll get myself a second identity. >> Every respons I make to Nikos will be done with the same identity. >> Normal python exchanges will be done with the

Re: Stupid ways to spell simple code

2013-07-02 Thread Russel Walker
On Sunday, June 30, 2013 8:06:35 AM UTC+2, Chris Angelico wrote: > There's a bit of a discussion on python-ideas that includes a function > > that raises StopIteration. It inspired me to do something stupid, just > > to see how easily I could do it... > > > > On Sun, Jun 30, 2013 at 3:45 PM, N

Re: python adds an extra half space when reading from a string or list

2013-07-02 Thread Antoon Pardon
Op 01-07-13 21:32, Joshua Landau schreef: > On 1 July 2013 20:18, Antoon Pardon wrote: >> Op 01-07-13 17:33, Steven D'Aprano schreef: >> >>> Okay, thank you for explaining the situation. Now, please stop >>> baiting Nikos. >> I am not baiting Nikos. I know he mentions this two week period but all

Re: python adds an extra half space when reading from a string or list

2013-07-02 Thread Ian Kelly
On Tue, Jul 2, 2013 at 12:54 AM, Antoon Pardon wrote: > Why about you just ignore me? > > Serious, a lot of people here seem to think that if someone is bothered > by someone else, the bothered person should just ignore the botherer. > > That is until something starts bothering these people themse

Re: python adds an extra half space when reading from a string or list

2013-07-02 Thread Antoon Pardon
Op 01-07-13 21:28, Joshua Landau schreef: > Well then you are wrong. But fine, I'll use your definition incorrect > as it may be (when talking to you, please don't misrepresent my other > posts). > > Nevertheless, these statements that we are talking about, that I shall > now term "pseudo-insults"

Re: python adds an extra half space when reading from a string or list

2013-07-02 Thread Steven D'Aprano
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 d

Regular expression negative look-ahead

2013-07-02 Thread Jason Friedman
I have table names in this form: MY_TABLE MY_TABLE_CTL MY_TABLE_DEL MY_TABLE_RUN YOUR_TABLE YOUR_TABLE_CTL YOUR_TABLE_DEL YOUR_TABLE_RUN I am trying to create a regular expression that will return true for only these tables: MY_TABLE YOUR_TABLE I tried these: pattern = re.compile(r"_(?!(CTL|DEL|R

Re: OSError [Errno 26] ?!?!

2013-07-02 Thread Cameron Simpson
On 02Jul2013 08:57, Νίκος wrote: | Thank you, the error have been caused due to the fact that the | uploading procedure of my edited 'pelatologio.py' hadn't been | completed yet, while i was requesting the execution of the script | via browser. | | I didn't had to do anything it solved by itself,

Re: Don't feed the troll...

2013-07-02 Thread Chris Angelico
On Tue, Jul 2, 2013 at 12:02 AM, wrote: > ... engaging in flame wars with trolls simply produces more > flames, hostility begets hostility ... It does. Please can these threads die quietly now? ChrisA -- http://mail.python.org/mailman/listinfo/python-list

Re: PYTHONPATH and module names

2013-07-02 Thread SpaghettiToastBook .
Relative imports only work with the "from ... import ..." form. — SpaghettiToastBook On Mon, Jul 1, 2013 at 3:54 PM, Tobiah wrote: >> Are you familiar with absolute and relative imports: >> http://docs.python.org/release/2.5/whatsnew/pep-328.html > > > Doesn't seem to work: > > Python 2.7.3 (de

Re: python adds an extra half space when reading from a string or list

2013-07-02 Thread Steve Simmons
"Νίκος" wrote: >Στις 1/7/2013 12:31 μμ, ο/η Steve Simmons έγραψε: > >> I don't know about the other members of this list but I am becoming >> increasingly disturbed by the rudeness and especially the foul >language >> that is being perpetrated on this thread. Please, if you have any >> decency at

Re: Stupid ways to spell simple code

2013-07-02 Thread Chris Angelico
On Tue, Jul 2, 2013 at 2:30 AM, Joshua Landau wrote: > Beautiful, see? Truly a work of art! I am awed. ChrisA -- http://mail.python.org/mailman/listinfo/python-list

Re: Don't feed the troll...

2013-07-02 Thread Antoon Pardon
Op 01-07-13 16:02, ru...@yahoo.com schreef: You claim "collective experience" is not reliable and dismiss it in favor of your own theory, flaming trolls is a better response. And your evidence for that? Nothing (that I've read so far). You can decide all for yourself on how you want to handle