Re: A few questiosn about encoding

2013-06-14 Thread Nick the Gr33k
On 14/6/2013 4:00 πμ, Cameron Simpson wrote: On 13Jun2013 17:19, Nikos as SuperHost Support wrote: | A code-point and the code-point's ordinal value are associated into | a Unicode charset. They have the so called 1:1 mapping. | | So, i was under the impression that by encoding the code-point in

Re: My son wants me to teach him Python

2013-06-14 Thread Chris Angelico
On Fri, Jun 14, 2013 at 4:13 PM, Steven D'Aprano wrote: > Here's another Pepsi Challenge for you: > > There is a certain directory on your system containing 50 text files, and > 50 non-text files. You know the location of the directory. You want to > locate all the text files in this directory con

Re: Wrong website loaded when other requested

2013-06-14 Thread Chris Angelico
On Fri, Jun 14, 2013 at 4:14 PM, Nick the Gr33k wrote: > And surely i'm not bothering you, since you never care to reply for anything > i ask. Non sequitur. > And if you do not like my posts, just don't read them. Be careful what you wish for. ChrisA -- http://mail.python.org/mailman/listinfo

Re: A few questiosn about encoding

2013-06-14 Thread Nick the Gr33k
On 14/6/2013 9:00 πμ, Zero Piraeus wrote: : On 14 June 2013 01:34, Nick the Gr33k wrote: Why doesn't it work like this? leading 0 = 1 byte flag leading 1 = 2 bytes flag leading 00 = 3 bytes flag leading 01 = 4 bytes flag leading 10 = 5 bytes flag leading 11 = 6 bytes flag Wouldn't it be more

Re: A few questiosn about encoding

2013-06-14 Thread Antoon Pardon
Op 13-06-13 10:08, Νικόλαος Κούρας schreef: > On 13/6/2013 10:58 πμ, Chris Angelico wrote: >> On Thu, Jun 13, 2013 at 5:42 PM, �� >> wrote: >>> On 13/6/2013 10:11 ��, Steven D'Aprano wrote: No! That creates a string from 16474 in base two: '0b10001011010' >>> >>> I disag

Re: Wrong website loaded when other requested

2013-06-14 Thread Nick the Gr33k
On 13/6/2013 9:28 μμ, Joel Goldstick wrote: your code is not finding a file named this: '/home/nikos/public_html//home/dauwin/public_html/index.html' The first part of this file path is:'/home/nikos/public_html After that are TWO forward slashes which remind me of http:// and following that

Re: A few questiosn about encoding

2013-06-14 Thread Nick the Gr33k
On 14/6/2013 10:36 πμ, Antoon Pardon wrote: Op 13-06-13 10:08, Νικόλαος Κούρας schreef: On 13/6/2013 10:58 πμ, Chris Angelico wrote: On Thu, Jun 13, 2013 at 5:42 PM, �� wrote: On 13/6/2013 10:11 ��, Steven D'Aprano wrote: No! That creates a string from 16474 in base two: '0b1000

Re: A certainl part of an if() structure never gets executed.

2013-06-14 Thread Nick the Gr33k
On 14/6/2013 4:14 πμ, Steven D'Aprano wrote: On Thu, 13 Jun 2013 17:26:18 +0300, Νικόλαος Κούρας wrote: i just want 4 cases to examine so correct execute to be run: i'm reading and reading and reading this all over: if '-' not in ( name and month and year ): and i cant comprehend it. Don't

Re: Problem creating a regular expression to parse open-iscsi, iscsiadm output (help?)

2013-06-14 Thread Kevin LaTona
On Jun 13, 2013, at 7:42 AM, Kevin LaTona wrote: > With the following code tweaks in Python 2.7.2, I find it works with VERBOSE > for me, but not without. Sorry had a small bleep while writing that last line this AM. Of course the regex pattern would work in VERBOSE mode as that was how it wa

Re: Having a hard time to 'get' bing api search results

2013-06-14 Thread Kevin LaTona
>>Queries should be URL encoded; query string should be enclosed in %27 >>(apostrophe). I was looking at the wrong column on the ascii chart,… so your %27 was correct If you are getting in via a browser than it's url lib thing. You might want to look at Requst lib as a possible option. http

Re: Having a hard time to 'get' bing api search results

2013-06-14 Thread Kevin LaTona
I did a quick test with url lib instead of urllib2 and got closer. Problem right now is without ID code I can't check any further. But it does look promising at this point. If all else fails http://docs.python.org/2/library/urllib.html#examples import urllib f = urllib.urlopen('https://use

Re: A few questiosn about encoding

2013-06-14 Thread Antoon Pardon
Op 14-06-13 09:49, Nick the Gr33k schreef: > On 14/6/2013 10:36 πμ, Antoon Pardon wrote: >> Op 13-06-13 10:08, Νικόλαος Κούρας schreef: >>> >>> Indeed python embraced it in single quoting '0b10001011010' and >>> not as 0b10001011010 which in fact makes it a string. >>> >>> But since bin(164

Re: Having a hard time to 'get' bing api search results

2013-06-14 Thread Kevin LaTona
Your welcome. To be honest I am not 100% on the differences between. I could be off, but I recall urllib2 was a more refined version of urllib. Yet it seems like urllib works better for me, when I need to do a simple call like this. -Kevin On Jun 13, 2013, at 3:50 PM, "Yves S. Garret"

Re: A certainl part of an if() structure never gets executed.

2013-06-14 Thread Chris Angelico
On Fri, Jun 14, 2013 at 6:03 PM, Nick the Gr33k wrote: print(name or month or year) print("k" in (name and month and year)) Seriously, you can't see the difference between those lines? Either you're trolling - which is still a distinct possibility, but so is the converse - or there's so

Re: A certainl part of an if() structure never gets executed.

2013-06-14 Thread R. Michael Weylandt
On Fri, Jun 14, 2013 at 9:03 AM, Nick the Gr33k wrote:> name="abcd" month="efgh" year="ijkl" > print(name or month or year) > abcd > > Can understand that, it takes the first string out of the 3 strings that has > a truthy value. > print("k" in (name and month and year)) >

Re: A certainl part of an if() structure never gets executed.

2013-06-14 Thread R. Michael Weylandt
On Fri, Jun 14, 2013 at 9:24 AM, R. Michael Weylandt wrote: > On Fri, Jun 14, 2013 at 9:03 AM, Nick the Gr33k wrote:> >> >> No clue. since the expression in parenthesis returns 'abcd' how can 'k' >> contained within 'abcd' ? > > No it's not. See both above (where you use 'or' instead) and below >

Re: A certainl part of an if() structure never gets executed.

2013-06-14 Thread Jussi Piitulainen
Nick the Gr33k writes: > >>> name="abcd" > >>> month="efgh" > >>> year="ijkl" > > >>> print(name or month or year) > abcd > > Can understand that, it takes the first string out of the 3 strings > that has a truthy value. > > >>> print("k" in (name and month and year)) > True > > No clue.

Re: A certainl part of an if() structure never gets executed.

2013-06-14 Thread Fábio Santos
On 14 Jun 2013 09:09, "Nick the Gr33k" wrote: > >>> print(name and month and year) > ijkl > > Seems here is returning the last string out of 3 strings, but have no clue why Python doing this. > You have been told this above. All languages kind of do that. Ever seen this command on a shell? mkdi

Re: RFD: rename comp.lang.python to comp.support.superhost

2013-06-14 Thread Fábio Santos
On 14 Jun 2013 04:33, "alex23" wrote: > > On Jun 14, 2:24 am, Νικόλαος Κούρας wrote: > > iam researchign a solution to this as we speak. > > Spamming endless "ZOMG HELP ME I'M INCOMPETENT" posts isn't "research". +1 -- http://mail.python.org/mailman/listinfo/python-list

Re: A few questiosn about encoding

2013-06-14 Thread Nick the Gr33k
On 14/6/2013 11:22 πμ, Antoon Pardon wrote: Python prints numbers: No it doesn't, numbers are abstract concepts that can be represented in various notations, these notations are strings. Those notaional strings end up being printed. As I said before we are so used in using the decimal notation

Re: A certainl part of an if() structure never gets executed.

2013-06-14 Thread Nick the Gr33k
On 14/6/2013 11:28 πμ, Jussi Piitulainen wrote: 'Parker' and 'May' and '2001' '2001' But why? that expression should return True since all stings are not empty. Either way, the interactive prompt is your friend. -- What is now proved was at first only imagined! -- http://mail.python.or

Re: A certainl part of an if() structure never gets executed.

2013-06-14 Thread Chris Angelico
On Fri, Jun 14, 2013 at 6:41 PM, Nick the Gr33k wrote: > On 14/6/2013 11:28 πμ, Jussi Piitulainen wrote: > > 'Parker' and 'May' and '2001' >> >> '2001' > > > But why? > > that expression should return True since all stings are not empty. It does. Not the bool value, but it does return a true

Re: A certainl part of an if() structure never gets executed.

2013-06-14 Thread Nick the Gr33k
On 14/6/2013 11:03 πμ, Nick the Gr33k wrote: On 14/6/2013 4:14 πμ, Steven D'Aprano wrote: On Thu, 13 Jun 2013 17:26:18 +0300, Νικόλαος Κούρας wrote: i just want 4 cases to examine so correct execute to be run: i'm reading and reading and reading this all over: if '-' not in ( name and month

Re: A certainl part of an if() structure never gets executed.

2013-06-14 Thread Chris Angelico
On Fri, Jun 14, 2013 at 6:44 PM, Nick the Gr33k wrote: > Someone want to explain this? Stop writing. Start reading. It has been explained. In the course of a long and adventurous thread in the principal European courts, it has been revealed to you that ... Fill in whatever you like for the rest,

Re: A certainl part of an if() structure never gets executed.

2013-06-14 Thread Fábio Santos
On 14 Jun 2013 09:51, "Nick the Gr33k" wrote: > > On 14/6/2013 11:28 πμ, Jussi Piitulainen wrote: > > 'Parker' and 'May' and '2001' >> >> '2001' > > > But why? > > that expression should return True since all stings are not empty. > > >> Either way, the interactive prompt is your friend. >> >

Re: A certainl part of an if() structure never gets executed.

2013-06-14 Thread Nick the Gr33k
On 14/6/2013 11:57 πμ, Chris Angelico wrote: On Fri, Jun 14, 2013 at 6:44 PM, Nick the Gr33k wrote: Someone want to explain this? Stop writing. Start reading. It has been explained. In the course of a long and adventurous thread in the principal European courts, it has been revealed to you th

Re: Future standard GUI library

2013-06-14 Thread Chris Angelico
On Fri, Jun 14, 2013 at 3:39 PM, Frank Millman wrote: >> It's not either-or. The server *MUST* perform the checks at the time >> of form submission; the question is whether or not to perform >> duplicate checks earlier. This is an absolute rule of anything where >> the client is capable of being t

Re: A certainl part of an if() structure never gets executed.

2013-06-14 Thread Fábio Santos
On 14 Jun 2013 09:56, "Nick the Gr33k" wrote: > > On 14/6/2013 11:03 πμ, Nick the Gr33k wrote: >> >> On 14/6/2013 4:14 πμ, Steven D'Aprano wrote: >>> >>> On Thu, 13 Jun 2013 17:26:18 +0300, Νικόλαος Κούρας wrote: >>> i just want 4 cases to examine so correct execute to be run: i'm r

Don't feed the troll... (was: Re: A few questiosn about encoding)

2013-06-14 Thread Heiko Wundram
Am 14.06.2013 10:37, schrieb Nick the Gr33k: So everything we see like: 16474 nikos abc123 everything is a string and nothing is a number? not even number 1? Come on now, this is _so_ obviously trolling, it's not even remotely funny anymore. Why doesn't killfiling work with the mailing list

Re: A certainl part of an if() structure never gets executed.

2013-06-14 Thread Chris Angelico
On Fri, Jun 14, 2013 at 7:00 PM, Nick the Gr33k wrote: > but i really wont to understand how 'or' and 'and' works inside an > expression. please answer my previous post if you know. *eyeroll* You have all the information. Go play with it in the interactive interpreter until you understand. Serio

Re: A certainl part of an if() structure never gets executed.

2013-06-14 Thread Jussi Piitulainen
Nick the Gr33k writes: > On 14/6/2013 11:28 πμ, Jussi Piitulainen wrote: > > 'Parker' and 'May' and '2001' > > '2001' > > But why? > > that expression should return True since all stings are not empty. It returns a value that counts as true in a conditional statement or expression: >>> i

Re: Debugging memory leaks

2013-06-14 Thread Chris Angelico
On Fri, Jun 14, 2013 at 12:40 PM, Steven D'Aprano wrote: > On Thu, 13 Jun 2013 20:15:42 +, Giorgos Tzampanakis wrote: > >>> Therefore: if the leak seems to be small, it may be much more advicable >>> to restart your process periodically (during times where a restart does >>> not hurt much) rat

Re: Don't feed the troll...

2013-06-14 Thread Nick the Gr33k
On 14/6/2013 12:06 μμ, Heiko Wundram wrote: Am 14.06.2013 10:37, schrieb Nick the Gr33k: So everything we see like: 16474 nikos abc123 everything is a string and nothing is a number? not even number 1? Come on now, this is _so_ obviously trolling, it's not even remotely funny anymore. Why do

Re: Future standard GUI library

2013-06-14 Thread Frank Millman
"Chris Angelico" wrote in message news:captjjmq_m4y0uxxt3jqythjj9ckbsvp+z2pgf5v_31xlrgf...@mail.gmail.com... > On Fri, Jun 14, 2013 at 3:39 PM, Frank Millman wrote: >> >> In my case, it is either-or. I do not just do field-by-field validation, >> I >> do field-by-field submission. The server b

Re: A certainl part of an if() structure never gets executed.

2013-06-14 Thread Nick the Gr33k
On 14/6/2013 12:21 μμ, Jussi Piitulainen wrote: Nick the Gr33k writes: On 14/6/2013 11:28 πμ, Jussi Piitulainen wrote: 'Parker' and 'May' and '2001' '2001' But why? that expression should return True since all stings are not empty. It returns a value that counts as true in a conditional

Re: A certainl part of an if() structure never gets executed.

2013-06-14 Thread Nick the Gr33k
On 14/6/2013 12:12 μμ, Chris Angelico wrote: On Fri, Jun 14, 2013 at 7:00 PM, Nick the Gr33k wrote: but i really wont to understand how 'or' and 'and' works inside an expression. please answer my previous post if you know. *eyeroll* You have all the information. Go play with it in the intera

Eval of expr with 'or' and 'and' within

2013-06-14 Thread Nick the Gr33k
I started another thread because the last one was !@#$'ed up by irrelevant replies and was difficult to jeep track. >>> name="abcd" >>> month="efgh" >>> year="ijkl" >>> print(name or month or year) abcd Can understand that, it takes the first string out of the 3 strings that has a truthy valu

Re: Wrong website loaded when other requested

2013-06-14 Thread Mark Lawrence
On 13/06/2013 15:28, Chris Angelico wrote: On Fri, Jun 14, 2013 at 12:23 AM, Νικόλαος Κούρας wrote: Please suggest something of why this happnes. You remind me of George. http://www.chroniclesofgeorge.com/ ChrisA George reminds me of the late Joyce Grenfell. The OP reminds me of Monty

Re: Eval of expr with 'or' and 'and' within

2013-06-14 Thread Fábio Santos
On 14 Jun 2013 10:59, "Nick the Gr33k" wrote: > > I started another thread because the last one was !@#$'ed up by irrelevant replies and was difficult to jeep track. > > >>> name="abcd" > >>> month="efgh" > >>> year="ijkl" > > >>> print(name or month or year) > abcd > > Can understand that, it tak

Re: Eval of expr with 'or' and 'and' within

2013-06-14 Thread Robert Kern
On 2013-06-14 10:50, Nick the Gr33k wrote: I started another thread because the last one was !@#$'ed up by irrelevant replies and was difficult to jeep track. >>> name="abcd" >>> month="efgh" >>> year="ijkl" >>> print(name or month or year) abcd Can understand that, it takes the first stri

Re: A few questiosn about encoding

2013-06-14 Thread Cameron Simpson
On 14Jun2013 11:37, Nikos as SuperHost Support wrote: | On 14/6/2013 11:22 πμ, Antoon Pardon wrote: | | >>Python prints numbers: | >No it doesn't, numbers are abstract concepts that can be represented in | >various notations, these notations are strings. Those notaional strings | >end up being pr

Re: Don't feed the troll... (was: Re: A few questiosn about encoding)

2013-06-14 Thread Fábio Santos
On 14 Jun 2013 10:20, "Heiko Wundram" wrote: > > Am 14.06.2013 10:37, schrieb Nick the Gr33k: >> >> So everything we see like: >> >> 16474 >> nikos >> abc123 >> >> everything is a string and nothing is a number? not even number 1? > > > Come on now, this is _so_ obviously trolling, it's not even r

Re: My son wants me to teach him Python

2013-06-14 Thread Tim Chase
On 2013-06-14 17:21, Chris Angelico wrote: > On Fri, Jun 14, 2013 at 4:13 PM, Steven D'Aprano > wrote: > > Here's another Pepsi Challenge for you: > > > > There is a certain directory on your system containing 50 text > > files, and 50 non-text files. You know the location of the > > directory. Yo

Re: A few questiosn about encoding

2013-06-14 Thread Cameron Simpson
On 14Jun2013 09:59, Nikos as SuperHost Support wrote: | On 14/6/2013 4:00 πμ, Cameron Simpson wrote: | >On 13Jun2013 17:19, Nikos as SuperHost Support wrote: | >| A code-point and the code-point's ordinal value are associated into | >| a Unicode charset. They have the so called 1:1 mapping. | >|

Re: A few questiosn about encoding

2013-06-14 Thread Antoon Pardon
Op 14-06-13 10:37, Nick the Gr33k schreef: > On 14/6/2013 11:22 πμ, Antoon Pardon wrote: > >>> Python prints numbers: >> No it doesn't, numbers are abstract concepts that can be represented in >> various notations, these notations are strings. Those notaional strings >> end up being printed. As I s

Re: Don't feed the troll...

2013-06-14 Thread Antoon Pardon
Op 14-06-13 11:32, Nick the Gr33k schreef: > I'mm not trolling man, i just have hard time understanding why numbers > acts as strings. They don't. No body claimed numbers acted like strings. What was explained, was that when numbers are displayed, they are converted into a notational string, whic

Re: Don't feed the troll...

2013-06-14 Thread Heiko Wundram
Am 14.06.2013 11:32, schrieb Nick the Gr33k: I'mm not trolling man, i just have hard time understanding why numbers acts as strings. If you can't grasp the conceptual differences between numbers and their/a representation, it's probably best if you stayed away from programming alltogether.

how to use two threads to produce even and odd numbers?

2013-06-14 Thread Zoe Wendy
I am going to compile a small python program in order to use Queue to produce a random with a thread. For example, using one thread to print odd number, while another thread to print even number. Here is my codes, please offer me some advice: import threading import random import time from Qu

Re: Don't feed the troll...

2013-06-14 Thread Mark Lawrence
On 14/06/2013 11:20, Fábio Santos wrote: Since this is a lot of spam, I feel like leaving the list, but I also honestly want to help people use python and the replies to questions of others often give me much insight on several matters. Plenty of genuine people needing genuine help on the tu

Re: Don't feed the troll... (was: Re: A few questiosn about encoding)

2013-06-14 Thread rusi
On Jun 14, 3:20 pm, Fábio Santos wrote: > > Come on now, this is _so_ obviously trolling, it's not even remotely > > funny anymore. Why doesn't killfiling work with the mailing list version of > the python list? :-( > > I have skimmed the archives for this month, and I estimate that a third of > t

Re: Creating a Super Simple WWW Link, Copy, & Paste into Spreadsheet Program

2013-06-14 Thread Denis McMahon
On Thu, 13 Jun 2013 12:28:09 -0700, buford.lumbar wrote: > Hi, I'm new to Python. Would someone be able to write me and/or to show > me how to write a simple program that: > > 1-follows a hyperlink from MS Excel to the internet (one of many links > like this, http://www.zipdatamaps.com/76180, for

Re: My son wants me to teach him Python

2013-06-14 Thread Anssi Saari
Chris Angelico writes: > I have tab completion. Beat that, GUI. Decent GUIs *have* tab completion. Bad GUIs don't. Oh wait. Is a GUI with tab completion a GUI at all or more of a weird ass hybrid? What about a CLI that pops up a menu for completions? -- http://mail.python.org/mailman/listinfo/

Re: Version Control Software

2013-06-14 Thread Anssi Saari
cutems93 writes: > Thank you everyone for such helpful responses! Actually, I have one more > question. Does anybody have experience with closed source version control > software? If so, why did you buy it instead of downloading open source > software? Does closed source vcs have some benefits

Re: RFD: rename comp.lang.python to comp.support.superhost

2013-06-14 Thread Roy Smith
In article <8a333cd0-c1cf-4f41-ac49-65f0b23ed...@ow4g2000pbc.googlegroups.com>, alex23 wrote: > On Jun 14, 2:24 am, Íéêüëáïò Êïýñáò wrote: > > iam researchign a solution to this as we speak. > > Spamming endless "ZOMG HELP ME I'M INCOMPETENT" posts isn't "research". But it could be an argume

Re: Don't feed the help-vampire

2013-06-14 Thread rusi
On Jun 14, 4:51 pm, rusi wrote: > On Jun 14, 3:20 pm, Fábio Santos wrote: > > > > Come on now, this is _so_ obviously trolling, it's not even remotely > > > funny anymore. Why doesn't killfiling work with the mailing list version of > > the python list? :-( > > > I have skimmed the archives for t

Re: A certainl part of an if() structure never gets executed.

2013-06-14 Thread Denis McMahon
On Wed, 12 Jun 2013 11:54:25 +0300, Νικόλαος Κούρας wrote: > So, i must tell: > > for i, month in enumerate(months): > print(' %s ' % (i, month) ) > > to somehow return '==' instead of 0 but don't know how. You could test for (month == 0) instead of re.search('=', month)? Or you

Re: how to use two threads to produce even and odd numbers?

2013-06-14 Thread Dave Angel
On 06/14/2013 07:50 AM, Zoe Wendy wrote: Welcome to the forum. Are you new to Python? Are you new to programming? What version of Python are you using? Is this a class assignment? I am going to compile a small python program in order to use Queue to produce a random with a thread. Tha

Re: Don't feed the help-vampire

2013-06-14 Thread Heiko Wundram
Am 14.06.2013 14:09, schrieb rusi: Since identifying a disease by the right name is key to finding a cure: Nikos is not trolling or spamming; he is help-vampiring. Just to explain the trolling allegation: I'm not talking about him wanting to get his scripts fixed, that's help-vampiring most ce

Re: Version Control Software

2013-06-14 Thread Roy Smith
In article , Anssi Saari wrote: > I have some experience with ClearCase. I don't know why anyone would buy > it since it's bloated and slow and hard to use and likes to take over > your computer. ClearCase was the right solution to certain specific problems which existed 20 years ago. It does

Re: A certainl part of an if() structure never gets executed.

2013-06-14 Thread Nick the Gr33k
On 14/6/2013 3:03 μμ, Denis McMahon wrote: for i, month in enumerate(months): if i != 0: print(' %s ' % (i, month) ) else: print(' %s ' % ("==", month) ) This s exactly what i was looking for Denis, thank you. I tough of that myself too, but i had implemented it wrongly

Re: Don't feed the troll...

2013-06-14 Thread Nick the Gr33k
On 14/6/2013 2:09 μμ, Antoon Pardon wrote: Op 14-06-13 11:32, Nick the Gr33k schreef: I'mm not trolling man, i just have hard time understanding why numbers acts as strings. They don't. No body claimed numbers acted like strings. What was explained, was that when numbers are displayed, they ar

Re: Debugging memory leaks

2013-06-14 Thread rusi
On Jun 13, 6:24 am, writeson wrote: > Anyway, my real question is how to go about debugging memory leak problems in > Python, particularly for a long running > server process written with Twisted. I'm not sure how to use heapy or guppy, > and objgraph doesn't tell me enough to > locate the probl

Re: A certainl part of an if() structure never gets executed.

2013-06-14 Thread Jussi Piitulainen
Nick the Gr33k writes: > On 14/6/2013 12:21 μμ, Jussi Piitulainen wrote: > > Nick the Gr33k writes: > >> On 14/6/2013 11:28 πμ, Jussi Piitulainen wrote: > >> > >> 'Parker' and 'May' and '2001' > >>> '2001' > >> > >> But why? > >> > >> that expression should return True since all stings are not

Re: A few questiosn about encoding

2013-06-14 Thread Nick the Gr33k
On 14/6/2013 1:19 μμ, Cameron Simpson wrote: On 14Jun2013 11:37, Nikos as SuperHost Support wrote: | On 14/6/2013 11:22 πμ, Antoon Pardon wrote: | | >>Python prints numbers: | >No it doesn't, numbers are abstract concepts that can be represented in | >various notations, these notations are strin

Re: Don't feed the troll...

2013-06-14 Thread Joel Goldstick
go away Nick. Go far away. You are not a good person. You are not even a good Troll. You are just nick the *ick. You should take up something you can do better than this.. like maybe sleeping On Fri, Jun 14, 2013 at 8:36 AM, Nick the Gr33k wrote: > On 14/6/2013 2:09 μμ, Antoon Pardon wrote:

Re: Don't feed the troll...

2013-06-14 Thread Nick the Gr33k
On 14/6/2013 1:20 μμ, Fábio Santos wrote: On 14 Jun 2013 10:20, "Heiko Wundram" mailto:modeln...@modelnine.org>> wrote: > > Am 14.06.2013 10:37, schrieb Nick the Gr33k: >> >> So everything we see like: >> >> 16474 >> nikos >> abc123 >> >> everything is a string and nothing is a number?

Re: Don't feed the troll...

2013-06-14 Thread Heiko Wundram
Am 14.06.2013 14:45, schrieb Nick the Gr33k: we are all benefit out of this. Let's nominate you for a nobel prize, saviour of python-list! -- --- Heiko. -- http://mail.python.org/mailman/listinfo/python-list

Re: RFD: rename comp.lang.python to comp.support.superhost

2013-06-14 Thread Gene Heskett
On Friday 14 June 2013 08:33:36 Roy Smith did opine: > In article > <8a333cd0-c1cf-4f41-ac49-65f0b23ed...@ow4g2000pbc.googlegroups.com>, > > alex23 wrote: > > On Jun 14, 2:24 am, حéêüëلïٍ تï‎ٌلٍ wrote: > > > iam researchign a solution to this as we speak. > > > > Spamming endless "ZOMG HELP M

nimsg -- the Network Instant MeSsenGer

2013-06-14 Thread Hunter D
Some time ago, I posted the code to a p2p instant messaging program to this newsgroup. It was abandoned by me shortly after I posted (no reason, just wanted to work on other things). Anyways, I've worked on this program __a lot__ since I posted it here (including giving the program a name chan

Re: RFD: rename comp.lang.python to comp.support.superhost

2013-06-14 Thread Zero Piraeus
: On 14 June 2013 08:47, Gene Heskett wrote: > > One old (78) farts take on this endless thread is that its a sign that > those who had it made in Greece, before the bill for it came due, are now > being forced to actually (gasp, a 4 letter word) "work" for a living, eg > producing something of v

Re: Creating a Super Simple WWW Link, Copy, & Paste into Spreadsheet Program

2013-06-14 Thread Neil Cerutti
On 2013-06-13, Nick Cash wrote: >>> there is a python module that reads and writes to excel files. look >>> for that > >>More than one, actually, and which to use depends on whether >>"Excel files" means the .xls or .xlsx format. On Windows, the >>most flexible solution is going to be to just u

Re: Don't feed the troll...

2013-06-14 Thread Nick the Gr33k
On 14/6/2013 2:51 μμ, rusi wrote: Nikos: This is not against you personally. Just your current mode of conduct towards this list. And that mode quite simply is this: You have no interest in python, you are only interested in the immediate questions of your web-hosting. If that was True i woul

Re: A few questiosn about encoding

2013-06-14 Thread Nick the Gr33k
On 14/6/2013 1:50 μμ, Antoon Pardon wrote: Python works with numbers, but at the moment it has to display such a number it has to produce something that is printable. So it will build a string that can be used as a notation for that number, a numeral. And that is what will be displayed. so a n

Re: A certainl part of an if() structure never gets executed.

2013-06-14 Thread Nick the Gr33k
On 14/6/2013 3:40 μμ, Jussi Piitulainen wrote: Nick the Gr33k writes: On 14/6/2013 12:21 μμ, Jussi Piitulainen wrote: Nick the Gr33k writes: On 14/6/2013 11:28 πμ, Jussi Piitulainen wrote: 'Parker' and 'May' and '2001' '2001' But why? that expression should return True since all stings a

Re: Don't feed the troll...

2013-06-14 Thread Antoon Pardon
Op 14-06-13 14:36, Nick the Gr33k schreef: > On 14/6/2013 2:09 μμ, Antoon Pardon wrote: >> Op 14-06-13 11:32, Nick the Gr33k schreef: >>> I'mm not trolling man, i just have hard time understanding why numbers >>> acts as strings. >> They don't. No body claimed numbers acted like strings. What was

Re: Don't feed the troll...

2013-06-14 Thread Fábio Santos
On Fri, Jun 14, 2013 at 1:58 PM, Heiko Wundram wrote: > Am 14.06.2013 14:45, schrieb Nick the Gr33k: > >> we are all benefit out of this. > > > Let's nominate you for a nobel prize, saviour of python-list! > I don't want to be saved. I just found out how to mute conversations in gmail. -- Fábio

Re: A certainl part of an if() structure never gets executed.

2013-06-14 Thread Zero Piraeus
: On 14 June 2013 09:07, Nick the Gr33k wrote: > > Thanks for explaining this but i cannot follow its logic at all. > My mind is stuck trying to interpret it as an English sentence: > > if ('Parker' and 'May' and '2001') > > if ('Parker' or 'May' or '2001') > > i just don't get it and i feel sill

[ANN] Pyreshark 0.1.1

2013-06-14 Thread Eshed Shaham
Hello, Although it's not a package, I thought this might be of interest to the list. https://code.google.com/p/pyreshark/ Pyreshark is a plugin for Wireshark that allows writing new dissectors in Python. More than just adding bindings, the dissectors are written in a declarative way, taking advant

Re: A few questiosn about encoding

2013-06-14 Thread Antoon Pardon
Op 14-06-13 14:59, Nick the Gr33k schreef: > On 14/6/2013 1:50 μμ, Antoon Pardon wrote: >> Python works with numbers, but at the moment >> it has to display such a number it has to produce something >> that is printable. So it will build a string that can be >> used as a notation for that number,

Re: Debugging memory leaks

2013-06-14 Thread rusi
On Jun 14, 1:15 am, Giorgos Tzampanakis wrote: > Am I the only one who thinks this is terrible advice? I would expect a typical desktop app to run for a couple of hours -- maybe a couple of days. Living with a small (enough) leak there may be ok. [In particular I believe that most commercial apps

Re: A few questiosn about encoding

2013-06-14 Thread Nick the Gr33k
On 14/6/2013 1:14 μμ, Cameron Simpson wrote: Normally a character in a b'...' item represents the byte value matching the character's Unicode ordinal value. The only thing that i didn't understood is this line. First please tell me what is a byte value \x1b is a sequence you find inside strin

Re: Creating a Super Simple WWW Link, Copy, & Paste into Spreadsheet Program

2013-06-14 Thread buford . lumbar
On Thursday, June 13, 2013 11:02:03 PM UTC-4, Steven D'Aprano wrote: > On Thu, 13 Jun 2013 12:28:09 -0700, buford.lumbar wrote: > > > > > Hi, I'm new to Python. Would someone be able to write me and/or to show > > > me how to write a simple program that: > > [snip directions] > > > > Cannot

Re: A certainl part of an if() structure never gets executed.

2013-06-14 Thread rusi
On Jun 14, 6:48 pm, Zero Piraeus wrote: > : > > On 14 June 2013 09:07, Nick the Gr33k wrote: > > > > > Thanks for explaining this but i cannot follow its logic at all. > > My mind is stuck trying to interpret it as an English sentence: > > > if ('Parker' and 'May' and '2001') > > > if ('Parker' o

Re: A certainl part of an if() structure never gets executed.

2013-06-14 Thread Nick the Gr33k
On 14/6/2013 4:48 μμ, Zero Piraeus wrote: : On 14 June 2013 09:07, Nick the Gr33k wrote: Thanks for explaining this but i cannot follow its logic at all. My mind is stuck trying to interpret it as an English sentence: if ('Parker' and 'May' and '2001') if ('Parker' or 'May' or '2001') i ju

Pool.map mongodb cursor

2013-06-14 Thread Christian
Hi, is it possible to avoid some memory overhead with a mongodb cursor and multiprocessing? Regarding to the size of the cursor, Python consuming at first a lot of memory. However the estimation is independend among each other document (chunking?). Maybe there is a better way using multipro

Re: Version Control Software

2013-06-14 Thread Grant Edwards
On 2013-06-14, Roy Smith wrote: > All that being said, it is, as Anssi points out, a horrible, bloated, > overpriced, complicated mess which requires teams of specially > trained ClearCase admins to run. In other words, it's exactly the > sort of thing big, stupid, Fortune-500 companies buy beca

Re: A certainl part of an if() structure never gets executed.

2013-06-14 Thread Grant Edwards
On 2013-06-14, Nick the Gr33k wrote: > Well i do not understand it. Yea. We know. -- Grant Edwards grant.b.edwardsYow! I feel like a wet at parking meter on Darvon! gmail.com -- ht

Re: Wrong website loaded when other requested

2013-06-14 Thread Grant Edwards
On 2013-06-14, Nick the Gr33k wrote: > On 13/6/2013 10:31 , Grant Edwards wrote: >> On 2013-06-13, Nick the Gr33k wrote: >>> On 13/6/2013 9:37 , Andreas Perstinger wrote: On 13.06.2013 20:10, Nick the Gr33k wrote: [nothing new] Could you please stop spamming the whole

Re: Eval of expr with 'or' and 'and' within

2013-06-14 Thread Grant Edwards
On 2013-06-14, Nick the Gr33k wrote: > I started another thread no kidding. > because the last one was !@#$'ed up by irrelevant replies and was > difficult to jeep track. > > >>> name="abcd" > >>> month="efgh" > >>> year="ijkl" > > >>> print(name or month or year) > abcd > > Can understand that

Re: Creating a Super Simple WWW Link, Copy, & Paste into Spreadsheet Program

2013-06-14 Thread Michael Herman
Hi there - Yes, as others have said, this is not an easy project. That said, it can be down. I'd use a combination of DataNitro, to connect with Excel, and Scrapy, to easily scrap and crawl the sites. I'm adept at both and would be happy to help you with this. Email me at mich...@mherman.org for h

Re: nimsg -- the Network Instant MeSsenGer

2013-06-14 Thread Hunter D
If you have any suggestions for features, bugs that you want to report, or just comments on the program in general, feel free to reply here. -- http://mail.python.org/mailman/listinfo/python-list

Re: Future standard GUI library

2013-06-14 Thread Wolfgang Keller
> I share your passion for empowering a human operator to complete and > submit a form as quickly as possible. I therefore agree that one > should be able to complete a form using the keyboard only. This is not just about "forms", it's about using the entire application without having to use the m

Re: Eval of expr with 'or' and 'and' within

2013-06-14 Thread Nick the Gr33k
On 14/6/2013 5:49 μμ, Grant Edwards wrote: On 2013-06-14, Nick the Gr33k wrote: I started another thread no kidding. because the last one was !@#$'ed up by irrelevant replies and was difficult to jeep track. name="abcd" month="efgh" year="ijkl" print(name or month or year) abcd Can

Re: A few questiosn about encoding

2013-06-14 Thread Joel Goldstick
let's cut to the chase and start with telling us what you DO know Nick. That would take less typing On Fri, Jun 14, 2013 at 9:58 AM, Nick the Gr33k wrote: > On 14/6/2013 1:14 μμ, Cameron Simpson wrote: > >> Normally a character in a b'...' item represents the byte value >> matching the character

Re: My son wants me to teach him Python

2013-06-14 Thread Alister
On Fri, 14 Jun 2013 05:41:20 -0500, Tim Chase wrote: > On 2013-06-14 17:21, Chris Angelico wrote: >> On Fri, Jun 14, 2013 at 4:13 PM, Steven D'Aprano >> wrote: >> > Here's another Pepsi Challenge for you: >> > >> > There is a certain directory on your system containing 50 text files, >> > and 50

Re: A few questiosn about encoding

2013-06-14 Thread Nick the Gr33k
On 14/6/2013 6:21 μμ, Joel Goldstick wrote: let's cut to the chase and start with telling us what you DO know Nick. That would take less typing Well, my biggest successes up until now where to build 3 websites utilizing database saves and retrievals in PHP in Perl and later in Python with abs

Re: Wrong website loaded when other requested

2013-06-14 Thread Nick the Gr33k
On 13/6/2013 9:04 μμ, Νικόλαος Κούρας wrote: Τη Πέμπτη, 13 Ιουνίου 2013 7:52:27 μ.μ. UTC+3, ο χρήστης Νικόλαος Κούρας έγραψε: On 13/6/2013 6:35 μμ, Joel Goldstick wrote: [Tue Jun 11 21:59:31 2013] [error] [client 79.103.41.173] FileNotFoundError: [Errno 2] \\u0394\\u03b5\\u03bd \\u03c5\\

Re: Wrong website loaded when other requested

2013-06-14 Thread rusi
On Jun 14, 8:37 pm, Nick the Gr33k wrote: > > PLEASE SUGGEST SOMETHING! A lollipop maybe? -- http://mail.python.org/mailman/listinfo/python-list

Re: Don't feed the troll...

2013-06-14 Thread Neil Cerutti
On 2013-06-14, Antoon Pardon wrote: > Now there is nothing wrong in being ignorant. The question is > how do you proceed from there. The answer is not by starting a > project that is far above your ability and pestering the > experts in the hope they will spoon feed you. A major issue is this: th

Re: My son wants me to teach him Python

2013-06-14 Thread Neil Cerutti
On 2013-06-14, Steven D'Aprano wrote: > On Thu, 13 Jun 2013 20:33:40 -0700, Rick Johnson wrote: > >> On Thursday, June 13, 2013 3:18:57 PM UTC-5, Joshua Landau wrote: >> >>> [...] >>> GUI is boring. I don't give a damn about that. If I had it my way, I'd >>> never write any interfaces again (alth

  1   2   >