Fun Approaches To Lose Weight

2015-03-03 Thread felecislewis
How do you eat lentils? Garcinia Cambogia Gummy Silly question you could say but I would like to know tell you, don't eat lentils natural. Phytic acid and tannins are anti-nutrients that are inside the lentil seeds; your actually don't wish to ingest that. The preparation of lentil seeds is straigh

http: connection reset by peer

2015-03-03 Thread Ethan Furman
This may seem off-topic, but it's an issue for my roundup server which is written in Python, so hopefully that will buy me some slack. ;) And, yes, I did post a message to the Roundup Users mailing list first, but haven't received any replies. So, the basic problem is: I login to the roundup s

Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices]

2015-03-03 Thread llanitedave
Seems the ultimate in irony when a language invented by a Dutchman and named after a British comedy troupe gets bogged down in an argument about whether its users are sufficiently "American". -- https://mail.python.org/mailman/listinfo/python-list

Re: Newbie question about text encoding

2015-03-03 Thread Rustom Mody
On Wednesday, March 4, 2015 at 10:25:24 AM UTC+5:30, Chris Angelico wrote: > On Wed, Mar 4, 2015 at 3:45 PM, Rustom Mody wrote: > > > > It lists some examples of software that somehow break/goof going from > > BMP-only > > unicode to 7.0 unicode. > > > > IOW the suggestion is that the the two-way

Re: Newbie question about text encoding

2015-03-03 Thread Chris Angelico
On Wed, Mar 4, 2015 at 3:45 PM, Rustom Mody wrote: > > It lists some examples of software that somehow break/goof going from BMP-only > unicode to 7.0 unicode. > > IOW the suggestion is that the the two-way classification > - ASCII > - Unicode > > is less useful and accurate than the 3-way > > - A

Re: Newbie question about text encoding

2015-03-03 Thread Rustom Mody
On Wednesday, March 4, 2015 at 12:07:06 AM UTC+5:30, jmf wrote: > Le mardi 3 mars 2015 19:04:06 UTC+1, Rustom Mody a écrit : > > On Thursday, February 26, 2015 at 10:33:44 PM UTC+5:30, Terry Reedy wrote: > > > On 2/26/2015 8:24 AM, Chris Angelico wrote: > > > > On Thu, Feb 26, 2015 at 11:40 PM, Rus

Re: Setting PYTHONPATH does not allow importing module

2015-03-03 Thread Zachary Ware
On Tue, Mar 3, 2015 at 9:47 PM, wrote: > On Tuesday, March 3, 2015 at 10:43:27 PM UTC-5, Zachary Ware wrote: >> Try adding /home/me/projects to PYTHONPATH instead of >> /home/me/projects/modulename. > > Ah, that worked! Yes, I see that the modulename must be visible. Thanks a lot! No problem, gl

Re: Newbie question about text encoding

2015-03-03 Thread Rustom Mody
On Wednesday, March 4, 2015 at 9:35:28 AM UTC+5:30, Rustom Mody wrote: > On Wednesday, March 4, 2015 at 8:24:40 AM UTC+5:30, Steven D'Aprano wrote: > > Rustom Mody wrote: > > > > > On Thursday, February 26, 2015 at 10:33:44 PM UTC+5:30, Terry Reedy wrote: > > >> On 2/26/2015 8:24 AM, Chris Angelic

Re: Newbie question about text encoding

2015-03-03 Thread Rustom Mody
On Wednesday, March 4, 2015 at 8:24:40 AM UTC+5:30, Steven D'Aprano wrote: > Rustom Mody wrote: > > > On Thursday, February 26, 2015 at 10:33:44 PM UTC+5:30, Terry Reedy wrote: > >> On 2/26/2015 8:24 AM, Chris Angelico wrote: > >> > On Thu, Feb 26, 2015 at 11:40 PM, Rustom Mody wrote: > >> >> Wrot

Re: Setting PYTHONPATH does not allow importing module

2015-03-03 Thread faruk
On Tuesday, March 3, 2015 at 10:43:27 PM UTC-5, Zachary Ware wrote: > On Tue, Mar 3, 2015 at 9:25 PM, wrote: > > I have the following directory /home/me/projects/modulename. > > > > I update PYTHONPATH using the following command: > > export PYTHONPATH=$PYTHONPATH:/home/me/projects/modulename > >

Re: Setting PYTHONPATH does not allow importing module

2015-03-03 Thread faruk
On Tuesday, March 3, 2015 at 10:37:54 PM UTC-5, liuerfire Wang wrote: > Is there a file named __init__.py in the modulename dir? > > > > > > > > > Best regards > > > > > > On Wed, Mar 4, 2015 at 11:25 AM, wrote: > I have the following directory /home/me/projects/modulename. > > >

Re: Setting PYTHONPATH does not allow importing module

2015-03-03 Thread faruk
On Tuesday, March 3, 2015 at 10:37:54 PM UTC-5, liuerfire Wang wrote: > Is there a file named __init__.py in the modulename dir? > > > > > > > > > Best regards > > > > > > On Wed, Mar 4, 2015 at 11:25 AM, wrote: > I have the following directory /home/me/projects/modulename. > > >

Re: Setting PYTHONPATH does not allow importing module

2015-03-03 Thread Zachary Ware
On Tue, Mar 3, 2015 at 9:25 PM, wrote: > I have the following directory /home/me/projects/modulename. > > I update PYTHONPATH using the following command: > export PYTHONPATH=$PYTHONPATH:/home/me/projects/modulename > > It seems to have been added: > [me@machine ~]$ python -c "import sys; print(s

Re: Setting PYTHONPATH does not allow importing module

2015-03-03 Thread liuerfire Wang
Is there a file named __init__.py in the modulename dir? Best regards On Wed, Mar 4, 2015 at 11:25 AM, wrote: > I have the following directory /home/me/projects/modulename. > > I update PYTHONPATH using the following command: > export PYTHONPATH=$PYTHONPATH:/home/me/projects/modulename > > It

Setting PYTHONPATH does not allow importing module

2015-03-03 Thread faruk
I have the following directory /home/me/projects/modulename. I update PYTHONPATH using the following command: export PYTHONPATH=$PYTHONPATH:/home/me/projects/modulename It seems to have been added: [me@machine ~]$ python -c "import sys; print(sys.path)" ['',... '/home/me', '/home/me/projects/modu

Re: Newbie question about text encoding

2015-03-03 Thread Chris Angelico
On Wed, Mar 4, 2015 at 1:54 PM, Steven D'Aprano wrote: > It is easy to mock what is not important to you. I daresay kids adding emoji > to their 10 character tweets would mock all the useless maths symbols in > Unicode too. Definitely! Who ever sings "do you wanna build an integral sign"? ChrisA

Re: Newbie question about text encoding

2015-03-03 Thread Rustom Mody
On Wednesday, March 4, 2015 at 12:14:11 AM UTC+5:30, Chris Angelico wrote: > On Wed, Mar 4, 2015 at 5:03 AM, Rustom Mody wrote: > > What I was trying to say expanded here > > http://blog.languager.org/2015/03/whimsical-unicode.html > > [Hope the word 'whimsical' is less jarring and more accurate t

Re: Newbie question about text encoding

2015-03-03 Thread Steven D'Aprano
Rustom Mody wrote: > On Thursday, February 26, 2015 at 10:33:44 PM UTC+5:30, Terry Reedy wrote: >> On 2/26/2015 8:24 AM, Chris Angelico wrote: >> > On Thu, Feb 26, 2015 at 11:40 PM, Rustom Mody wrote: >> >> Wrote something up on why we should stop using ASCII: >> >> http://blog.languager.org/2015/

Re: tarfile vs zipfile

2015-03-03 Thread Marcos Almeida Azevedo
On Tue, Mar 3, 2015 at 6:39 PM, Gregory Ewing wrote: > Mark Lawrence wrote: > >> On 03/03/2015 02:29, Terry Reedy wrote: >> >> Plus tartfiles come from unix world, whereas zip was used instead in >>> Windows world. >>> >>> Is the tart bit the thing that you can eat, a loose woman or something >

Re: Newbie question about text encoding

2015-03-03 Thread Terry Reedy
On 3/3/2015 1:03 PM, Rustom Mody wrote: On Thursday, February 26, 2015 at 10:33:44 PM UTC+5:30, Terry Reedy wrote: You should add emoticons, but not call them or the above 'gibberish'. I think that this part of your post is more 'unprofessional' than the character blocks. It is very jarring a

Re: Python Worst Practices

2015-03-03 Thread Chris Angelico
On Wed, Mar 4, 2015 at 9:46 AM, Christian Gollwitzer wrote: > I can agree with the argument that operator precedence can make > problems; e.g. this > > cout< > does not output the truth value of a==b, but instead outputs a and > compares the stream to b (which will usually fail to compile,

Re: Python Worst Practices

2015-03-03 Thread Christian Gollwitzer
Am 03.03.15 um 12:12 schrieb Chris Angelico: > On Tue, Mar 3, 2015 at 7:51 PM, Christian Gollwitzer wrote: > >> Are you trying to pick on C++ streams? I could never understand why >> anybody has problems with an arrow << that means "put into the left >> thing" instead of "shift the bits to the lef

Re: rst and pypandoc

2015-03-03 Thread Gregory Ewing
alb wrote: RuntimeError: Invalid input format! Expected one of these: native, json, markdown, markdown+lhs, rst, rst+lhs, docbook, textile, html, latex, latex+lhs It looks like it's expecting the base format to be spelled "markdown", not abbreviated to "md". (The python wrapper expands "md" to

Re: Reading all buffered bytes without blocking

2015-03-03 Thread Paul Moore
On Tuesday, 3 March 2015 19:29:19 UTC, Serhiy Storchaka wrote: > On 03.03.15 18:07, Paul Moore wrote: > > Is it possible to say to a BufferedReader stream "give me all the bytes you > > have available in the buffer, or do one OS call and give me everything you > > get back"? The problem is that

Re: rst and pypandoc

2015-03-03 Thread alb
Hi Gregory, Gregory Ewing wrote: [] > From a cursory reading of the pypandoc docs, it looks > like enabling the raw_tex extension in pypandoc will > give you what you want. > > Search for raw_tex on this page: > > http://johnmacfarlane.net/pandoc/README.html As far as I understood the docs, it

Re: rst and pypandoc

2015-03-03 Thread alb
Hi Steven, Steven D'Aprano wrote: [] >> The two results are clearly *not* the same, even though the two inp >> /claim/ to be the same... > > The two inp are not the same. Correct. My statement was wrong. [] > I'm sure that you know how to do such simple things to investigate whether > two inpu

Re: [Python 3.4.3, pip 6.0.8 ] Error installing Sphinx (on markupsafe install)

2015-03-03 Thread Mario Figueiredo
On Tue, 03 Mar 2015 07:15:19 +, Mark Lawrence wrote: >Further the output above tells me that you've not got >Visual Studio 2010 installed. I do. It's my principal development suite. But you put me in the right track. I took a closer look at the error messages and also noticed the reference

Re: rst and pypandoc

2015-03-03 Thread alb
Hi Mark, Mark Lawrence wrote: [] > The two inps are *not* the same. My bad. I did not notice the difference, thanks for pointing that out. Al -- https://mail.python.org/mailman/listinfo/python-list

Re: rst and pypandoc

2015-03-03 Thread alb
Hi Steven, Steven D'Aprano wrote: [] >> In [43]: print pypandoc.convert(s, 'latex', format='rst') >> this is \textbackslash{}some restructured text. >> >> since a literal backslash gets converted to a literal latex backslash. > > Why is this a problem? Isn't the ultimate aim to pass it through

Re: Reading all buffered bytes without blocking

2015-03-03 Thread Serhiy Storchaka
On 03.03.15 18:07, Paul Moore wrote: Is it possible to say to a BufferedReader stream "give me all the bytes you have available in the buffer, or do one OS call and give me everything you get back"? The problem is that the "number of bytes" argument to read1() isn't optional, so I can't do avai

Re: Newbie question about text encoding

2015-03-03 Thread Chris Angelico
On Wed, Mar 4, 2015 at 5:03 AM, Rustom Mody wrote: > What I was trying to say expanded here > http://blog.languager.org/2015/03/whimsical-unicode.html > [Hope the word 'whimsical' is less jarring and more accurate than > 'gibberish'] Re footnote #4: ½ is a single character for compatibility rea

Re: Newbie question about text encoding

2015-03-03 Thread Rustom Mody
On Thursday, February 26, 2015 at 10:33:44 PM UTC+5:30, Terry Reedy wrote: > On 2/26/2015 8:24 AM, Chris Angelico wrote: > > On Thu, Feb 26, 2015 at 11:40 PM, Rustom Mody wrote: > >> Wrote something up on why we should stop using ASCII: > >> http://blog.languager.org/2015/02/universal-unicode.html

Re: Sort list of dictionaries

2015-03-03 Thread Peter Otten
Charles Heizer wrote: > On Monday, March 2, 2015 at 11:23:37 AM UTC-8, Peter Otten wrote: >> Charles Heizer wrote: >> >> > Never mind, the light bulb finally went off. :-\ >> > >> > sortedlist = sorted(mylist , key=lambda elem: "%s %s" % ( elem['name'], >> > (".".join([i.zfill(5) for i in elem['

Re: Sort list of dictionaries

2015-03-03 Thread Paul Moore
On Tuesday, 3 March 2015 16:09:31 UTC, Chris Angelico wrote: > On Wed, Mar 4, 2015 at 2:56 AM, Charles Heizer wrote: > >> Personally, I prefer to not use a lambda: > >> > >> def name_version(elem): > >> return elem['name'], LooseVersion(elem['version']) > >> > >> result = sorted(mylist, key=na

Re: Sort list of dictionaries

2015-03-03 Thread Chris Angelico
On Wed, Mar 4, 2015 at 2:56 AM, Charles Heizer wrote: >> Personally, I prefer to not use a lambda: >> >> def name_version(elem): >> return elem['name'], LooseVersion(elem['version']) >> >> result = sorted(mylist, key=name_version, reverse=True) > > Peter, thank you. Me being new to Python why

Reading all buffered bytes without blocking

2015-03-03 Thread Paul Moore
Is it possible to say to a BufferedReader stream "give me all the bytes you have available in the buffer, or do one OS call and give me everything you get back"? The problem is that the "number of bytes" argument to read1() isn't optional, so I can't do available_bytes = fd.read1(). I need this

Re: Sort list of dictionaries

2015-03-03 Thread Charles Heizer
On Monday, March 2, 2015 at 11:23:37 AM UTC-8, Peter Otten wrote: > Charles Heizer wrote: > > > Never mind, the light bulb finally went off. :-\ > > > > sortedlist = sorted(mylist , key=lambda elem: "%s %s" % ( elem['name'], > > (".".join([i.zfill(5) for i in elem['version'].split(".")])) ), > >

Re: Logging custom level not print module properly??

2015-03-03 Thread Ian Kelly
On Mar 3, 2015 8:16 AM, "Didymus" wrote: > I did find that if I changed the "self.log" to "self._log" it works correctly but gives me a pylint warning about acccess to a protected member _log.. > > def pwarning(self, message, *args, **kws): > """ Performance Warning Message Level """ > # Y

Re: Logging custom level not print module properly??

2015-03-03 Thread Didymus
On Tuesday, March 3, 2015 at 10:02:02 AM UTC-5, Peter Otten wrote: > Didymus wrote: > > > Hi, > > > > I have setup custom levels (with the help of the Python community) for > > logging. I set this up as a class in a module "log.py" below. The problem > > I'm seeing is that no matter the file the

Re: Logging custom level not print module properly??

2015-03-03 Thread Peter Otten
Didymus wrote: > Hi, > > I have setup custom levels (with the help of the Python community) for > logging. I set this up as a class in a module "log.py" below. The problem > I'm seeing is that no matter the file the the logging is happening in it > always prints the module as "log", I've rcreated

Re: Sort list of dictionaries

2015-03-03 Thread Chris Angelico
On Wed, Mar 4, 2015 at 1:45 AM, Jason Friedman wrote: > I appreciate > how Python makes my job easier by doing much of my work for me. A > colleague yesterday asked how I guaranteed my temporary file names > would not collide with another file, and my answer was I don't have to > worry about it,

Re: Sort list of dictionaries

2015-03-03 Thread Jason Friedman
On Tue, Mar 3, 2015 at 12:07 AM, Chris Angelico wrote: > Heh, I think that mght be a bit abusive :) I'm not sure that > you want to depend on the version numbers fitting inside the rules for > IP addresses, especially given that the example has a component of > "2214". > Indeed, I was mi

Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices]

2015-03-03 Thread Antoon Pardon
Op 02-03-15 om 15:39 schreef Steven D'Aprano: > Marko Rauhamaa wrote: > >> alister : >> >>> or as another analogy why don't you (Marco) try telling a Barber in >>> Seville that he should be speaking Latin Spanish not that strange >>> variation he uses? >> If the barber conference language were Lati

Re: rst and pypandoc

2015-03-03 Thread Dave Angel
On 03/02/2015 02:09 PM, Ben Finney wrote: Dave Angel writes: And D'oh right back at ya. Ironic isn't it that I make a second mistake in the same message I correct yours? https://en.wikipedia.org/wiki/Muphry%27s_law> I guess that word is too small to qualify as a malapropism, a word which

Re: date

2015-03-03 Thread Dave Angel
On 03/02/2015 11:25 AM, Chris Angelico wrote: On Tue, Mar 3, 2015 at 3:09 AM, alister wrote: Sounds ominous. Is that better or worse than the final solution? As in "this program will inadvertantly self distruct in five seconds"? It's usually implied as being externally enforced, so I'd say

Logging custom level not print module properly??

2015-03-03 Thread Didymus
Hi, I have setup custom levels (with the help of the Python community) for logging. I set this up as a class in a module "log.py" below. The problem I'm seeing is that no matter the file the the logging is happening in it always prints the module as "log", I've rcreated the testcase below: % p

EuroPython 2015: We've opened the flood gates :-)

2015-03-03 Thread M.-A. Lemburg
As announced earlier today, we have opened the early-bird ticket sales for EuroPython 2015. You can save up to 25% on the early-bird tickets, so book your tickets while they last: *** https://ep2015.europython.eu/en/registration/ *** We only have 350 early-bird tickets available and e

Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices]

2015-03-03 Thread alister
On Tue, 03 Mar 2015 03:00:30 -0800, Rustom Mody wrote: > I dont understand what you are saying. > Lets say you replace 'conservative' by something more definitively > pejorative eg fundamentalist, backward etc Now replace 'American > society' by 'Nazi Germany' finally we can call Godwins on this

Re: Python Worst Practices

2015-03-03 Thread Jon Ribbens
On 2015-03-03, Steven D'Aprano wrote: > Jon Ribbens wrote: >> On 2015-03-02, Dennis Lee Bieber wrote: >>> A pub's a bar; a bar's a gate; a gate's a street >> >> If each of those is supposed to be English first and then the American >> equivalent second, then I'm afraid the first one is misleadin

Re: Python Worst Practices

2015-03-03 Thread Jon Ribbens
On 2015-03-03, Dennis Lee Bieber wrote: > On Mon, 2 Mar 2015 17:12:24 + (UTC), Jon Ribbens > declaimed the following: >>On 2015-03-02, Dennis Lee Bieber wrote: >>> A pub's a bar; a bar's a gate; a gate's a street >> >>If each of those is supposed to be English first and then the American

Re: Python Worst Practices

2015-03-03 Thread Chris Angelico
On Tue, Mar 3, 2015 at 7:51 PM, Christian Gollwitzer wrote: > Am 28.02.15 um 02:44 schrieb Chris Angelico: >> On Sat, Feb 28, 2015 at 12:32 PM, wrote: >>> For example, I've seen someone create a Socket class, then created an >>> operator overload that allowed you to "add" a string to your socke

Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices]

2015-03-03 Thread Rustom Mody
On Tuesday, March 3, 2015 at 10:02:30 AM UTC+5:30, Mario Figueiredo wrote: > On Mon, 2 Mar 2015 19:51:31 -0800 (PST), Rustom Mody wrote: > > > >I dont know what you are saying Mario or even whom you are addressing > > I was replying directly to Marko. I don't think it is possible to > establish a

Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices]

2015-03-03 Thread Gregory Ewing
Chris Angelico wrote: And I've seen a number of proposals to build Python with its *keywords* localized. While there is a reasonable limit to this (for instance, I wouldn't expect the disassembly of CPython byte-code to have "STORE_FAST" translated into another language), there's nothing wrong wi

Re: tarfile vs zipfile

2015-03-03 Thread Gregory Ewing
Mark Lawrence wrote: On 03/03/2015 02:29, Terry Reedy wrote: Plus tartfiles come from unix world, whereas zip was used instead in Windows world. Is the tart bit the thing that you can eat, a loose woman or something else, such as a typo? :) Tartfiles would be what you get from xxx sites, no

Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices]

2015-03-03 Thread Sturla Molden
Mark Lawrence wrote: >> I can assure you that in a veterinary sence, Yersey cows will produce a >> milk with higher fat content. > > Yersey? Eh, Jersey. -- https://mail.python.org/mailman/listinfo/python-list

Re: Python Worst Practices

2015-03-03 Thread Christian Gollwitzer
Am 28.02.15 um 02:44 schrieb Chris Angelico: > On Sat, Feb 28, 2015 at 12:32 PM, wrote: >> For example, I've seen someone create a Socket class, then created an >> operator overload that allowed you to "add" a string to your socket to make >> the socket send the string, with the result being a

EuroPython 2015: We have lift-off

2015-03-03 Thread M.-A. Lemburg
We are pleased to announce the launch of our all new EuroPython 2015 website. Over the last few weeks, we have been very busy setting up the infrastructure, talking to sponsors, getting the logo designed and the site prepared for the launch. So here it is: *** https://ep2015.europy

Re: Sort list of dictionaries

2015-03-03 Thread Steven D'Aprano
Charles Heizer wrote: > Hello, > I'm new to python and I'm trying to find the right way to solve this issue > I have. > > I'm trying to sort this list by name and then by version numbers. The > problem I'm having is that I can not get the version numbers sorted with > the highest at the top or so