Re: Quotation Ugliness

2014-11-26 Thread alister
On Wed, 26 Nov 2014 10:02:57 -0600, Tim Daneliuk wrote: > On 11/26/2014 10:00 AM, random...@fastmail.us wrote: >> On Wed, Nov 26, 2014, at 10:55, Tim Daneliuk wrote: >>> Nope. Password only exist in memory locally. >> >> How does it send it to the remote sudo? >> >> > Over paramiko transport (ssh

Re: I love assert

2014-11-27 Thread alister
On Thu, 27 Nov 2014 01:22:37 -0800, TP wrote: > On Tue, Nov 11, 2014 at 11:40 AM, Peter Cacioppi > > wrote: > >> I get the impression that most Pythonistas aren't as habituated with >> assert statements as I am. Is that just a misimpression on my part? If >> not, >> is there a good reason to ass

Re: Fwd: Need Help

2014-12-01 Thread alister
On Mon, 01 Dec 2014 18:41:27 +0530, Ezhilarasan Chandrasekar wrote: > Hi Guys, > > I'm a beginner of python, I just want your help. > > I'm using the Python in Pydev - Eclipse. > > How can I get the Failure values from the Console in to a txt or a csv > file? > > And how can I get the final re

Re: Python handles globals badly.

2014-12-04 Thread alister
On Thu, 04 Dec 2014 00:02:25 +0100, Skybuck Flying wrote: > "Mark Lawrence" wrote in message > news:mailman.16534.1417610132.18130.python-l...@python.org... > > On 03/12/2014 02:27, Skybuck Flying wrote: >> Excuse is: "bad programming style". >> >> I don't need snot telling me how to program aft

Re: why can't download file from linux server into local window disk c:?

2014-12-08 Thread alister
On Mon, 08 Dec 2014 19:11:40 +0100, Luuk wrote: > On 8-12-2014 18:37, ishish wrote: >>> with open(localpath, 'wb') as fl: >>> PermissionError: [Errno 13] Permission denied: 'c:' >> >> I remember gloomily (haven't used windows since ages) that newer >> Windows versions don't like users to write

Re: why can't download file from linux server into local window disk c:

2014-12-09 Thread alister
To: Luuk On Mon, 08 Dec 2014 19:11:40 +0100, Luuk wrote: > On 8-12-2014 18:37, ishish wrote: >>> with open(localpath, 'wb') as fl: >>> PermissionError: [Errno 13] Permission denied: 'c:' >> >> I remember gloomily (haven't used windows since ages) that newer >> Windows versions don't like use

Re: Python script isn't producing text in data file

2014-12-11 Thread alister
On Thu, 11 Dec 2014 05:19:44 +, Grant Edwards wrote: > On 2014-12-11, Docfxit wrote: > >> I am happy to paste it into a post. The reason I didn't is because >> it's very large. The Python script is 1239 lines long. The example >> summary is 105 lines long. The input log is 6810 lines lon

Re: Python script isn't producing text in data file

2014-12-11 Thread alister
On Wed, 10 Dec 2014 20:23:56 -0800, Docfxit wrote: > On Wednesday, December 10, 2014 7:55:17 PM UTC-8, Ben Finney wrote: >> Docfxit writes: >> >> > I am happy to paste it into a post. The reason I didn't is because >> > it's very large. The Python script is 1239 lines long. >> >> That's too l

Re: Hello World

2014-12-20 Thread alister
On Sat, 20 Dec 2014 23:57:08 +1100, Steven D'Aprano wrote: > Taken from Ben Kurtovic's blog: > > http://benkurtovic.com/2014/06/01/obfuscating-hello-world.html > > > > (lambda _, __, ___, , _, __, ___, : > getattr( > __import__(True.__class__.__name__[_] + >

Re: Hello World

2014-12-22 Thread alister
On Mon, 22 Dec 2014 16:18:33 +, Grant Edwards wrote: > On 2014-12-21, Tony the Tiger wrote: >> On Sat, 20 Dec 2014 23:57:08 +1100, Steven D'Aprano wrote: >> >>> I am in total awe. >> >> I'm not. It has no real value. Write your code like that and you'll >> soon be looking for a new job. > >

Re: what is wrong with d.clear()?

2014-12-23 Thread alister
On Tue, 23 Dec 2014 15:15:03 -0500, Dave Angel wrote: > On 12/23/2014 07:59 AM, shawool wrote: >> Thank you for answering my query. >> >> Fonts and colors are reset to defaults now. Sorry for the inconvenience >> caused. >> >> Regards, >> Shawool > > The following is a piece of your message: > >

Re: Sending plain text messages (was: what is wrong with d.clear()?)

2014-12-23 Thread alister
On Wed, 24 Dec 2014 08:31:44 +1100, Ben Finney wrote: > alister writes: > >> Sometime I have to switch to HTML @ work but even then only when I want >> to send someone a screen shot > > I've been able to attach images to plain text messages without any > trouble

Re: what is wrong with d.clear()?

2014-12-23 Thread alister
On Wed, 24 Dec 2014 09:31:12 +1100, Chris Angelico wrote: > On Wed, Dec 24, 2014 at 8:08 AM, alister > wrote: >> Sometime I have to switch to HTML @ work but even then only when I want >> to send someone a screen shot > > Attachments don't work? > > ChrisA

Re: Sending plain text messages (was: what is wrong with d.clear()?)

2014-12-24 Thread alister
On Wed, 24 Dec 2014 13:23:34 +1100, Steven D'Aprano wrote: > alister wrote: > >> for the same reason a pet hate of mine is a memo sent as an attached >> document when it could simply have been the body of the text. > > And then the attached document (a Word doc, nat

Re: OFF TOPIC Snow Crash [was Re: Hello World]

2014-12-24 Thread alister
On Tue, 23 Dec 2014 16:20:10 +, Grant Edwards wrote: > On 2014-12-23, Steven D'Aprano > wrote: >> Chris Angelico wrote: >> >>> On Tue, Dec 23, 2014 at 12:15 AM, Roy Smith wrote: If I really didn't trust something, I'd go to AWS and spin up one of their free-tier micro instances and

Re: OFF TOPIC Snow Crash [was Re: Hello World]

2014-12-26 Thread alister
On Fri, 26 Dec 2014 15:13:25 +1100, Steven D'Aprano wrote: > Deep in the brain, well underneath the level of modern languages and > consciousness, there is a deeper "machine language" of the brain. If you > can write instructions in this machine language, you can control > people's brains. Back

Re: Hello World

2015-01-08 Thread alister
On Thu, 08 Jan 2015 16:06:16 +0200, Marko Rauhamaa wrote: > Chris Angelico : > >> With sudo, you get MUCH finer control. I can grant some user the power >> to run "sudo eject sr0", but no other commands. I can permit someone to >> execute any of a large number of commands, all individually logged

Re: Hello World

2015-01-08 Thread alister
On Thu, 08 Jan 2015 16:31:22 +0200, Marko Rauhamaa wrote: > alister : > >> On Thu, 08 Jan 2015 16:06:16 +0200, Marko Rauhamaa wrote: >>> An administrator doesn't need the users' passwords for anything but >>> should be assumed to know them. >> >&

Re: Announce: PyPrimes 0.2.1a

2015-01-09 Thread alister
On Fri, 09 Jan 2015 11:50:26 +1100, Chris Angelico wrote: > On Fri, Jan 9, 2015 at 11:41 AM, Steven D'Aprano > wrote: >> "oh, pip did the wrong thing again? you can fix that by standing on one >> leg, >> sacrificing a goat to the Great Old Dark Ones, deleting these files, or >> possibly some othe

Re: Announce: PyPrimes 0.2.1a

2015-01-09 Thread alister
On Fri, 09 Jan 2015 22:01:38 +1100, Ben Finney wrote: > alister writes: > >> why not simply cheat & call it V 0.2.3 :-) it is not as if there is any >> regulation concerning what can & cannot constitute a minor release it >> is all at your own discretion. > &

Re: Decimals and other numbers

2015-01-10 Thread alister
On Fri, 09 Jan 2015 19:57:20 -0800, Devin Jeanpierre wrote: > On Fri, Jan 9, 2015 at 7:05 PM, Gregory Ewing > wrote: >> It's far from clear what *anything* multiplied by itself zero times >> should be. >> >> A better way of thinking about what x**n for integer n means is this: >> Start with 1, an

Re: Python 3 regex?

2015-01-13 Thread alister
On Tue, 13 Jan 2015 04:36:38 +, Steven D'Aprano wrote: > On Mon, 12 Jan 2015 19:48:18 +, Ian wrote: > >> My recommendation would be to write a recursive decent parser for your >> files. >> >> That way will be easier to write, > > I know that writing parsers is a solved problem in comput

Re: Python 3 regex?

2015-01-14 Thread alister
On Wed, 14 Jan 2015 14:02:27 +0100, Thomas 'PointedEars' Lahn wrote: > wxjmfa...@gmail.com wrote: > >> Le mardi 13 janvier 2015 03:53:43 UTC+1, Rick Johnson a écrit : >>> [...] >>> you should find Python's "text processing Nirvana" >>> [...] >> >> I recommend, you write a "small" application >

Re: Calling a derived class's constructor from a parent method

2015-01-14 Thread alister
On Wed, 14 Jan 2015 17:05:27 +, Mark Lawrence wrote: > On 14/01/2015 16:45, jason wrote: >> If I have a class hierarchy like so: >> >> >> class A(object): >>def __init__(self, s): >> self.s = s >>def foo(self, s): >> return A(s) >> >> class B(A): >>

Re: lambdak: multi-line lambda implementation in native Python

2015-01-17 Thread alister
On Sat, 17 Jan 2015 21:33:19 +1100, Steven D'Aprano wrote: > Gregory Ewing wrote: > >> Marko Rauhamaa wrote: >>> Gregory Ewing : >>> If those are 24-bit RGB pixels, you could encode 3 characters in each pixel. >>> >>> Not since Python3. Characters are Unicode now so you'll need to >>> d

Re: lambdak: multi-line lambda implementation in native Python

2015-01-17 Thread alister
On Sat, 17 Jan 2015 19:08:21 +, Dan Sommers wrote: > On Sat, 17 Jan 2015 18:44:42 +, Grant Edwards wrote: > >> ... somebody who only knows how to write C++ [though he can do it in >> several different languages]. > > +1 QOTW (brilliant phrases in other threads are off topic and are > dis

Re: Random ALL CAPS posts on this group

2015-01-24 Thread alister
On Fri, 23 Jan 2015 14:40:15 -0800, sohcahtoa82 wrote: > On Monday, January 19, 2015 at 4:16:13 PM UTC-8, Luke Tomaneng wrote: >> Has anyone noticed these? There have been about three of them recently >> and they don't seem to have anything to do with Python at all. Does >> anyone know if there is

Re: Python is DOOMED! Again!

2015-01-24 Thread alister
> > Of course we don't have $1/3 dollar coins, but I do have a pair of > tin-snips and can easily cut a $1 coin into three equal pieces. wow you have just given a physical demonstration of integer Maths $1 /3 =$0 as the coin is now worthless ;-) > > Either that, or make up change with 20¢, 10¢ a

Re: Downloading videos (in flash applications) using python

2015-02-03 Thread alister
On Mon, 02 Feb 2015 15:21:07 -0800, Gabriel Ferreira wrote: > Mark Lawrence wrote: > >> I don't actually know, but could you please provide some context and >> write in plain English, those damn ... things are extremely annoying. >> >> > Hi, Mark. > > I am developing a research project, which

Re: Wildly OT: pop-up virtual keyboard for Mac or Linux?

2015-02-11 Thread alister
On Tue, 10 Feb 2015 23:15:11 +0100, Laura Creighton wrote: > In a message of Tue, 10 Feb 2015 15:29:00 -0600, Tim Chase writes: >>While it's not exactly a hold-down-get-a-menu, I opt for changing my >>(otherwise-useless) caps-lock key to an X compose key: >> >> $ setxkbmap -option compose:caps >>

Re: Group by interval time

2015-02-12 Thread alister
On Thu, 12 Feb 2015 04:34:03 -0800, charles.sartori wrote: > Hello there! > > I`m trying to group by a list of Row() objects in 12days interval and > sum(). values. Here is an example of the list > > [Row(time=datetime.datetime(2013, 1, 1, 0, 0), sum=4676557380615), > Row(time=datetime.datetime(

Re: Concatenate list values

2015-02-23 Thread alister
On Mon, 23 Feb 2015 07:58:39 -0800, loial wrote: > Is there a quick way to concatenate all the values in a list into a > string, except the first value? > > I want this to work with variable length lists. > > All values in list will be strings. > > Any help appreciated ''.join(mylist[1:]) all

Re: Bug in timsort!?

2015-02-25 Thread alister
On Wed, 25 Feb 2015 14:58:31 +0100, Sturla Molden wrote: > On 24/02/15 22:34, Roy Smith wrote: >> http://envisage-project.eu/proving-android-java-and-python-sorting- algorithm-is-broken-and-how-to-fix-it/ >> >> > This is awful. It is broken for arrays longer than 2**49 elements. With > 8 bytes per

Re: Puzzling PDF

2014-02-16 Thread Alister
On Sun, 16 Feb 2014 10:33:39 -0500, Roy Smith wrote: > In article , > "F.R." wrote: > >> Hi all, >> >> Struggling to parse bank statements unavailable in sensible >> data-transfer formats, I use pdftotext, which solves part of the >> problem. The other day I encountered a strange thing, when o

Re: Explanation of list reference

2014-02-16 Thread Alister
On Sat, 15 Feb 2014 10:44:39 +0100, Christian Gollwitzer wrote: > Am 15.02.14 01:57, schrieb Chris Angelico: >> Can you give an example of an ambiguous case? Fundamentally, the 'is' >> operator tells you whether its two operands are exactly the same >> object, nothing more and nothing less, so I a

Re: Remove comma from tuples in python.

2014-02-21 Thread Alister
On Fri, 21 Feb 2014 11:13:30 +0200, Jussi Piitulainen wrote: > Gary Herron writes: > >> On 02/20/2014 10:49 PM, Jaydeep Patil wrote: >> > I am getting below tuple from excel. >> > How should i remove extra commas in each tuple to make it easy for >> > operations. >> > >> > tuples is: >> > seriesx

Re: exec and locals

2014-02-26 Thread Alister
On Wed, 26 Feb 2014 13:15:25 +, Steven D'Aprano wrote: > I have to dynamically generate some code inside a function using exec, > but I'm not sure if it is working by accident or if I can rely on it. > > Here is a trivial example: > > > py> def spam(): > ... exec( """x = 23""" ) > ...

Re: exec and locals

2014-02-27 Thread Alister
On Thu, 27 Feb 2014 00:31:56 +, Steven D'Aprano wrote: > On Wed, 26 Feb 2014 14:00:59 +, Alister wrote: > >> On Wed, 26 Feb 2014 13:15:25 +, Steven D'Aprano wrote: >> >>> I have to dynamically generate some code inside a function using exec, >

Re: Output JSON-schema from bottle application?

2014-02-28 Thread Alister
On Fri, 28 Feb 2014 14:49:07 +1100, Alec Taylor wrote: > Are there libraries for doing this? > > I would like to autogenerate JSON-schema for use inside an API explorer. > > However whenever there is a schema change; I would only like to change > the schema in one place (where possible). > > E.

Re: posting code snippets

2014-03-02 Thread Alister
On Sun, 02 Mar 2014 09:16:35 +1100, Chris Angelico wrote: > On Sat, Mar 1, 2014 at 1:31 AM, Grant Edwards > wrote: >> You drag out the lab scope, logic analyzer, spectrum analyzer, sweep >> generator, strip plotter, and the machine that goes "ping". You start >> to get everything set up to nail

Re: Functional programming

2014-03-03 Thread Alister
On Mon, 03 Mar 2014 06:14:09 +0700, musicdenotation wrote: > If Python is not a fnctional language, then which programming paradigmis > dominant? Python follows the Pythonic paradigm :-) -- Hope this helps some, sorry for not being able to do a brain dump. - Mike Stump helping a clue

Re: Reference

2014-03-04 Thread Alister
On Tue, 04 Mar 2014 09:18:57 +1100, Ben Finney wrote: > Marko Rauhamaa writes: > >> Mark Lawrence : >> >> > I'd just like to know why people are so obsessed with identities, >> > I've never thought to use them in 10+ years of writing Python. Do I >> > use the KISS principle too often? >> >> Cal

Re: How to create an instance of a python class from C++

2014-03-05 Thread Alister
On Wed, 05 Mar 2014 16:08:00 +, Grant Edwards wrote: > On 2014-03-05, Ian Kelly wrote: >> On Tue, Mar 4, 2014 at 5:14 PM, Bill wrote: >>> Hello: >>> >>> I can't figure out how to create an instance of a python class from >>> 'C++': >>> >>> ( I am relatively new to Python so excuse some of th

Re: Tuples and immutability

2014-03-07 Thread Alister
On Fri, 07 Mar 2014 09:33:49 +, Duncan Booth wrote: > Chris Angelico wrote: > >> On Sat, Mar 1, 2014 at 1:41 AM, Joshua Landau wrote: >>> Would it be better to add a check here, such that if this gets raised >>> to the top-level it includes a warning ("Addition was inplace; >>> variable pro

Re: Balanced trees

2014-03-11 Thread Alister
On Mon, 10 Mar 2014 19:24:07 -0400, Roy Smith wrote: > In article <8761nmrnfk@elektro.pacujo.net>, > Marko Rauhamaa wrote: > >> Anyway, this whole debate is rather unnecessary since every developer >> is supposed to have both weapons in their arsenal. > > The problem with having a choice i

Re: running python 2 vs 3

2014-03-21 Thread alister
On Fri, 21 Mar 2014 09:40:40 +, Mark Lawrence wrote: > On 21/03/2014 02:18, Chris Angelico wrote: >> On Fri, Mar 21, 2014 at 12:06 PM, Roy Smith wrote: >>> In article <532b8f0d$0$29994$c3e8da3$54964...@news.astraweb.com>, >>> Steven D'Aprano wrote: >>> The rule of three applies here:

Re: meta language to define forms

2014-03-28 Thread alister
On Fri, 28 Mar 2014 14:57:11 +1100, Chris Angelico wrote: > On Fri, Mar 28, 2014 at 2:44 PM, Rustom Mody > wrote: >> [BTW I consider the windows registry cleaner than the linux /etc for >> the same reason] > > And if I felt like trolling, I'd point out that there are a lot more > search engine h

Re: Unicode Chars in Windows Path

2014-04-03 Thread alister
On Wed, 02 Apr 2014 16:27:04 -0700, Steve wrote: > Hi All, > > I'm in need of some encoding/decoding help for a situation for a Windows > Path that contains Unicode characters in it. > > CODE > > import os.path import codecs import sys > > All_Tests = > [u"c:\automation_common\Python

Re: converting strings to hex

2014-04-04 Thread alister
On Thu, 03 Apr 2014 21:38:38 -0500, Mark H Harris wrote: > On 4/3/14 9:10 PM, dave em wrote: >> >> I am taking a cryptography class and am having a tough time with an >> assignment similar to this. >> >> > hi Dave, if your instructor wanted you to work on this with other people > she would have ma

Re: threading

2014-04-08 Thread alister
> My personal feeling is that asynchronous i/o is mostly useful on 32-bit > systems, and the problem it actually solves is the limited virtual > address space. On a 64 bit system we can just throw more RAM at it and > threads be fine. > As my only professional coding experience has been with embed

Re: [OFF-TOPIC] How do I find a mentor when no one I work with knows what they are doing?

2014-04-08 Thread alister
On Tue, 08 Apr 2014 13:47:12 +, Grant Edwards wrote: > On 2014-04-08, Chris Angelico wrote: >> On Tue, Apr 8, 2014 at 5:07 PM, James Brewer wrote: >> >>> Basically, I want to be a better engineer. Where can I find someone >>> willing to point me in the right direction and what can I offer in

Re: threading

2014-04-08 Thread alister
On Tue, 08 Apr 2014 23:23:05 +1000, Chris Angelico wrote: > On Tue, Apr 8, 2014 at 11:13 PM, Roy Smith wrote: >> And the cost of hardware keeps going down, while the cost of good >> programmers keeps going up. > > Like everything, it's a matter of trade-offs. Spending a moment thinking > about w

Re: [OFF-TOPIC] How do I find a mentor when no one I work with knows what they are doing?

2014-04-08 Thread alister
On Wed, 09 Apr 2014 01:48:52 +1000, Chris Angelico wrote: > I managed to convince him to let me use Pike for a lot of the work, > though I suspect that - now that we're no longer working together - > he's ripping a lot of it out in favour of either PHP or JavaScript. > And that's a job I wouldn't

Re: "Latching" variables in function

2014-04-09 Thread alister
On Wed, 09 Apr 2014 08:53:19 -0500, Mark H Harris wrote: > On 4/8/14 3:09 PM, Grawburg wrote: > >> I have a N/O pushbutton that I want to "latch" a value to a variable >> when it's been pressed. >> I need button_value to become '1' when the button is pressed and to >> remain '1' until ... > >> W

Re: Teaching python to non-programmers

2014-04-11 Thread alister
On Fri, 11 Apr 2014 06:34:46 +0100, Paul Rudin wrote: > > It's not necessarily a bad idea to retain context in corporate emails. > Messages tend to get forwarded to people other than the original > recipient(s), and the context can be very helpful. > Right up to the point when someone forwards on

Re: Teaching python to non-programmers

2014-04-11 Thread alister
On Fri, 11 Apr 2014 21:01:46 +1000, Chris Angelico wrote: > On Fri, Apr 11, 2014 at 8:46 PM, alister > wrote: >> Right up to the point when someone forwards on an internal email chain >> to an external customer without bothering to prune out the bit where >> someone (

Re: python obfuscate

2014-04-11 Thread alister
On Thu, 10 Apr 2014 18:29:21 -0700, Wesley wrote: > Hi all, > Does python has any good obfuscate? > > Currently our company wanna release one product developed by python to > our customer. But dont's wanna others see the py code. > > I googled for a while but mostly just say using pyc. Any bet

Re: Best Website Design Services by Professional Web Designing Company

2014-04-22 Thread alister
On Tue, 22 Apr 2014 02:21:01 -0700, aveinfosys wrote: > Ave Infosys is a leading professional in Web Designing Company in > Hyderabad India for the > > E-Business Industry.Ave Infosys are providing Best Website Development > and Design Services > > in Hyderabad.Our company offers the Best Web De

Re: Best Website Design Services by Professional Web Designing Company

2014-04-22 Thread alister
On Wed, 23 Apr 2014 00:35:37 +1000, Chris Angelico wrote: > On Tue, Apr 22, 2014 at 11:40 PM, alister > wrote: >> Considering the poor quality of your own site it is hardly surprising >> that you have to resorts to spamming a totally unrelated newsgroup/ >> mailing

Re: Significant digits in a float?

2014-04-30 Thread alister
On Tue, 29 Apr 2014 15:42:25 -0700, emile wrote: > On 04/29/2014 01:16 PM, Adam Funk wrote: > >> "A man pitches his tent, walks 1 km south, walks 1 km east, kills a >> bear, & walks 1 km north, where he's back at his tent. What color is >> the bear?" ;-) > > From how many locations on Earth c

Re: Significant digits in a float?

2014-05-01 Thread alister
On Thu, 01 May 2014 09:34:35 -0700, emile wrote: > On 04/30/2014 11:21 AM, Grant Edwards wrote: >> On 2014-04-29, emile wrote: >>> On 04/29/2014 01:16 PM, Adam Funk wrote: >>> "A man pitches his tent, walks 1 km south, walks 1 km east, kills a bear, & walks 1 km north, where he's back a

Re: Off-topic circumnavigating the earth in a mile or less

2014-05-02 Thread alister
On Thu, 01 May 2014 21:57:57 +0100, Adam Funk wrote: > On 2014-05-01, Terry Reedy wrote: > >> On 4/30/2014 7:46 PM, Ian Kelly wrote: >> >>> It also works if your starting point is (precisely) the north pole. I >>> believe that's the canonical answer to the riddle, since there are no >>> bears in

Re: Cookie not retrieving as it should in some cases

2014-05-02 Thread alister
On Fri, 02 May 2014 01:11:05 -0700, Ferrous Cranus wrote: > # retrieve cookie from client's browser otherwise set it try: > cookie = cookies.SimpleCookie( os.environ.get('HTTP_COOKIE', '') ) > cookieID = cookie['ID'].value > except: > cookieID = str( time.time() ) > cookieI

Re: Add "Received:" header to email msg in correct position?

2014-05-06 Thread alister
On Mon, 05 May 2014 19:51:15 +, Grant Edwards wrote: > I'm working on a Python app that receives an e-mail message via SMTP, > does some trivial processing on it, and forwards it to another SMTP > server. > > I'd like to do the polite thing and add a "Received:" header, but I > can't figure o

Re: Add "Received:" header to email msg in correct position?

2014-05-06 Thread alister
On Tue, 06 May 2014 19:47:54 +1000, Chris Angelico wrote: > On Tue, May 6, 2014 at 7:15 PM, alister > wrote: >> On Mon, 05 May 2014 19:51:15 +, Grant Edwards wrote: >> >>> I'm working on a Python app that receives an e-mail message via SMTP, >>>

Re: (question) How to use python get access to google search without query quota limit

2014-05-06 Thread alister
On Tue, 06 May 2014 19:37:14 +0530, shrikant aher wrote: > hey, > will u please send me the code that you write. actually i'm trying to > learn use of google search api but i'm not getting so please mail me the > code. my mail id is shrikan...@gmail.com it does not work like that here you show u

Re: Add "Received:" header to email msg in correct position?

2014-05-06 Thread alister
On Tue, 06 May 2014 14:15:08 +, Grant Edwards wrote: > > I'd like to do it the right way whether it's required by the letter of > the law or not. So do I , although i might have left a cosmetic issue until the rest of the app was functioning as desired. As wiser minds than mine have now conf

Re: Significant digits in a float?

2014-05-06 Thread alister
On Tue, 06 May 2014 09:51:25 -0500, Mark H Harris wrote: > On 5/1/14 9:06 PM, Dennis Lee Bieber wrote: >>> The N4-ES and the N4-T (mine) are essentially the same rule. The N4-ES >>> on the site is yellow (mine is white) and the site rule indicates >>> Picket & Eckel Inc. (that's where the E comes

Re: Fortran

2014-05-12 Thread alister
On Sun, 11 May 2014 20:14:14 -0400, Roy Smith wrote: > In article , > MRAB wrote: > >> On 2014-05-12 00:15, Steven D'Aprano wrote: >> > On Sun, 11 May 2014 14:43:19 -0400, Roy Smith wrote: >> > >> >> In article , >> >> Chris Angelico wrote: >> >> >> >>> Some things are more standardized than

Re: Everything you did not want to know about Unicode in Python 3

2014-05-12 Thread alister
On Mon, 12 May 2014 16:19:17 +0100, Mark Lawrence wrote: > This was *NOT* written by our resident unicode expert > http://lucumr.pocoo.org/2014/5/12/everything-about-unicode/ > > Posted as I thought it would make a rather pleasant change from > interminable threads about names vs values vs variab

Re: PEP 8 : Maximum line Length :

2014-05-13 Thread alister
On Tue, 13 May 2014 10:45:49 +0200, Peter Otten wrote: > Ganesh Pal wrote: > >> Hi Team , >> >> >> what would be the best way to intent the below line . >> >> I have few lines in my program exceeding the allowed maximum line >> Length of 79./80 characters >> >> Example 1 : >> >>p = >>

Re: Simple Function Decorator Sample Snippet

2014-05-13 Thread alister
On Tue, 13 May 2014 01:04:39 -0500, Mark H Harris wrote: > Yes, because depending on your interface the code can get mangled (the > indentation thing breaks). the quoted paste seems to avoid this mostly > with the downside that the quote characters need to be striped from the > py file. by th

Re: Everything you did not want to know about Unicode in Python 3

2014-05-13 Thread alister
On Tue, 13 May 2014 01:18:35 +, Steven D'Aprano wrote: > On Mon, 12 May 2014 17:47:48 +, alister wrote: > >> On Mon, 12 May 2014 16:19:17 +0100, Mark Lawrence wrote: >> >>> This was *NOT* written by our resident unicode expert >>> http://lu

Re: Everything you did not want to know about Unicode in Python 3

2014-05-13 Thread alister
On Tue, 13 May 2014 13:51:20 +, Grant Edwards wrote: > On 2014-05-13, Steven D'Aprano > wrote: >> On Tue, 13 May 2014 07:20:34 -0400, Roy Smith wrote: >> >>> ASCII *is* all I need. >> >> You've never needed to copyright something? Copyright © Roy Smith >> 2014... > > Bah. You don't need the

Re: Everything you did not want to know about Unicode in Python 3

2014-05-14 Thread alister
On Tue, 13 May 2014 10:08:42 -0600, Ian Kelly wrote: > On Tue, May 13, 2014 at 5:19 AM, alister > wrote: >> I am only an amateur python coder which is why I asked if I am missing >> something >> >> I could not see any reason to be using the shutil module if all th

Re: Everything you did not want to know about Unicode in Python 3

2014-05-14 Thread alister
On Wed, 14 May 2014 10:08:57 +1000, Chris Angelico wrote: > On Wed, May 14, 2014 at 9:53 AM, Steven D'Aprano > wrote: >> With the current system, all of us here are technically violating >> copyright every time we reply to an email and quote more than a small >> percentage of it. > > Oh wow... s

Re: Why isn't my re.sub replacing the contents of my MS Word file?

2014-05-14 Thread alister
On Tue, 13 May 2014 23:12:40 -0700, wxjmfauth wrote: > Le mardi 13 mai 2014 22:26:51 UTC+2, MRAB a écrit : >> On 2014-05-13 20:01, scottca...@gmail.com wrote: >> >> > On Tuesday, May 13, 2014 9:49:12 AM UTC-4, Steven D'Aprano wrote: >> >> >> >> >> >> You may have missed my follow up post, where

Re: PEP 8 : Maximum line Length :

2014-05-15 Thread alister
On Thu, 15 May 2014 23:31:44 +1000, Chris Angelico wrote: > The Windows 8 / Unity / GNOME 3 model annoys me greatly. Can't get work > done like that. > > ChrisA Windows 8/ Unity/ Gnome 3 are great on tablets (at least they look like they should be the only one I can confirm is Win 8) but lousy on

Re: PEP 8 : Maximum line Length :

2014-05-15 Thread alister
On Thu, 15 May 2014 23:44:34 +1000, Chris Angelico wrote: > On Thu, May 15, 2014 at 11:38 PM, alister > wrote: >> On Thu, 15 May 2014 23:31:44 +1000, Chris Angelico wrote: >>> The Windows 8 / Unity / GNOME 3 model annoys me greatly. Can't get >>> work done lik

Re: Copying files from sub folders under source directories into sub folders with same names as source directory sub folders in destination directories without overwriting already existing files of sa

2014-05-20 Thread alister
On Tue, 20 May 2014 05:28:09 -0700, Satish ML wrote: > On Tuesday, May 20, 2014 5:54:47 PM UTC+5:30, Satish ML wrote: >> On Tuesday, May 20, 2014 5:51:19 PM UTC+5:30, Satish ML wrote: > On >> Tuesday, May 20, 2014 11:27:01 AM UTC+5:30, Rustom Mody wrote: > On >> Monday, May 19, 2014 2:32:36 PM UTC

Re: hashing strings to integers for sqlite3 keys

2014-05-22 Thread alister
On Thu, 22 May 2014 12:47:31 +0100, Adam Funk wrote: > I'm using Python 3.3 and the sqlite3 module in the standard library. I'm > processing a lot of strings from input files (among other things, values > of headers in e-mail & news messages) and suppressing duplicates using a > table of seen stri

Re: WSGI (was: Re: Python CGI)

2014-05-25 Thread alister
On Sun, 25 May 2014 09:06:18 +0200, Chris wrote: > On 05/20/2014 03:52 AM, Tim Chase wrote: >> While Burak addressed your (Fast-)CGI issues, once you have a >> test-script successfully giving you output, you can use the >> standard-library's getpass.getuser() function to tell who your script >> is

Re: is there a list/group for beginners?

2014-05-28 Thread alister
On Tue, 27 May 2014 13:38:36 -0800, Deb Wyatt wrote: >> -Original Message- >> From: john_lada...@sbcglobal.net Sent: Tue, 27 May 2014 11:38:39 -0700 >> (PDT) >> To: python-list@python.org Subject: Re: is there a list/group for >> beginners? >> >> Hi, Deb. >> >> Ten years ago (or eleven?)

Re: IDE for python

2014-05-28 Thread alister
On Wed, 28 May 2014 03:43:29 -0700, Sameer Rathoud wrote: > Hello everyone, > > I am new to python. > > I am currently using python 3.3 > > With python I got IDLE, but I am not very comfortable with this. > > Please suggest, if we have any free ide for python development. there Are plenty I u

Re: IDE for python

2014-05-30 Thread alister
On Thu, 29 May 2014 15:11:31 -0500, Mark H Harris wrote: > On 5/29/14 11:44 AM, Paul Rudin wrote: >> Terry Reedy writes: >>> I am curious how many of the editors people have been recommending >>> have all of the following Idle features, that I use constantly. >>> >>> 1. Run code in the editor wit

Re: Python 3 is killing Python

2014-06-01 Thread alister
On Sun, 01 Jun 2014 13:41:33 +0200, Steve Hayes wrote: > On Sun, 01 Jun 2014 07:01:46 BST, Bob Martin > wrote: > >>in 722929 20140601 035727 Steve Hayes wrote: >> >>>No, it's a bit like flying in a Boeing 747 rather than a Concorde. The >>>latyer may be later and more technically advanced and f

Re: Unicode and Python - how often do you index strings?

2014-06-04 Thread alister
On Tue, 03 Jun 2014 21:18:12 -0400, Roy Smith wrote: > In article , > Chris Angelico wrote: > >> A current discussion regarding Python's Unicode support centres (or >> centers, depending on how close you are to the cent[er]{2} of the >> universe) > > Um, you mean cent(er|re), don't you? The >

Re: Unicode and Python - how often do you index strings?

2014-06-04 Thread alister
On Wed, 04 Jun 2014 18:48:29 +1200, Gregory Ewing wrote: > Chris Angelico wrote: >> On Wed, Jun 4, 2014 at 11:18 AM, Roy Smith wrote: >> >>>Um, you mean cent(er|re), don't you? The >>>pattern you wrote also matches centee and centrr. >> >> Maybe there's someone who spells it that way! > > Com

Re: Unicode and Python - how often do you index strings?

2014-06-04 Thread alister
On Wed, 04 Jun 2014 05:52:24 -0700, Rustom Mody wrote: > On Wednesday, June 4, 2014 4:20:01 PM UTC+5:30, alister wrote: >> The language is ENGLISH so the correct spelling is Centre regional >> variations my be common but they are incorrect > > "my"? > > O me

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

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: > >>

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

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 the

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 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 '.sp

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 eno

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 def

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 t

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, Νίκος wrote: >> On 21/9/2013 1:04 μμ, Chris Angelico wrote: >>> >>> On Sat, Sep 21, 2013 at 7:58 PM, Νίκος wrote: Can you please tell me what alternation must be made in order to send this

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 >>

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",

<    1   2   3   4   5   6   7   8   >