On Sat, May 20, 2017 at 5:56 PM, bartc wrote:
> I would say there are two types of people: those who care about the answer,
> and those who don't.
I say there are 10 types of people in this world. Those who understand
binary and those who don’t.
--
On Wed, May 3, 2017 at 6:15 PM, Terry Reedy <tjre...@udel.edu> wrote:
> On 5/3/2017 8:40 AM, Larry Martell wrote:
>>
>> On Wed, May 3, 2017 at 8:29 AM, Chris Angelico <ros...@gmail.com> wrote:
>>>
>>> On Wed, May 3, 2017 at 10:12 PM, Larr
On Wed, May 3, 2017 at 8:29 AM, Chris Angelico <ros...@gmail.com> wrote:
> On Wed, May 3, 2017 at 10:12 PM, Larry Martell <larry.mart...@gmail.com>
> wrote:
>> On Wed, May 3, 2017 at 12:57 AM, Chris Angelico <ros...@gmail.com> wrote:
>>> On Wed, May 3, 201
On Wed, May 3, 2017 at 8:29 AM, Ned Batchelder <n...@nedbatchelder.com> wrote:
> On Tuesday, May 2, 2017 at 11:49:37 PM UTC-4, larry@gmail.com wrote:
>> On Tue, May 2, 2017 at 7:01 PM, Erik <pyt...@lucidity.plus.com> wrote:
>> > On 02/05/17 23:28, Larry Martell
On Wed, May 3, 2017 at 12:57 AM, Chris Angelico <ros...@gmail.com> wrote:
> On Wed, May 3, 2017 at 5:53 AM, Larry Martell <larry.mart...@gmail.com> wrote:
>> And I can see it getting larger and larger. But I want to see what it
>> is that is causing this. My thought
On Tue, May 2, 2017 at 7:01 PM, Erik <pyt...@lucidity.plus.com> wrote:
> On 02/05/17 23:28, Larry Martell wrote:
>>>>
>>>> Anyone have any thoughts on how I can monitor the variables' memory
>>>> usage as the script runs?
>>>
>>>
&
On Tue, May 2, 2017 at 5:57 PM, Dan Stromberg <drsali...@gmail.com> wrote:
> On Tue, May 2, 2017 at 12:53 PM, Larry Martell <larry.mart...@gmail.com>
> wrote:
>> I have a script that consumes more and more memory as it runs. It has
>> no globals and the large data st
I have a script that consumes more and more memory as it runs. It has
no globals and the large data structures go out of scope often so
should be garbage collected. I've looked at the most likely suspects
with sys.getsizeof and they are not growing in size. I did this:
sum([sys.getsizeof(o) for o
On Thu, Apr 13, 2017 at 2:09 PM, Rustom Mody wrote:
> Or consider(!) Alan Kay's statement: "Arrogance in computer science is
> measured
> in nanodijktras"
Completely unrelated but it reminded me about this bon mot about Niklaus Wirth:
Europeans tend to pronounce his name
On Wed, Apr 12, 2017 at 10:51 AM, Dennis Lee Bieber
<wlfr...@ix.netcom.com> wrote:
> On Wed, 12 Apr 2017 09:51:12 -0400, Larry Martell <larry.mart...@gmail.com>
> declaimed the following:
>
>
>>
>>Anyone know how I can get the external process to terminate whe
I have an app (using 2.7) that processes requests. When a request of
type "A" is received I need to start an external process.
When a request of type "B" is received I need to check and see if that
external process has completed or not and then do some stuff depending
on if it has or not.
The
On Mon, Apr 3, 2017 at 8:24 PM Dennis Lee Bieber
wrote:
> On Mon, 3 Apr 2017 11:48:38 -0700, "Deborah Swanson"
> declaimed the following:
>
> >But, if Larry Page and Sergey Brin could tinker around in their dorm
> >rooms (or wherever they lived
On Fri, Mar 31, 2017 at 4:16 PM <2019.cavanau...@fpsedu.org> wrote:
> while answer8 != ("1") or answer8 != ("2"):
This statement is always true. Think about it.
>
>
--
https://mail.python.org/mailman/listinfo/python-list
On Sun, Mar 12, 2017 at 1:48 PM, Steve D'Aprano
wrote:
> On Linux, if I call os.remove on a file which I own but don't have write
> permission on, the file is still deleted:
>
>
> py> f = open('/tmp/no-write', 'w')
> py> os.path.exists('/tmp/no-write')
> True
> py>
On Sun, Mar 12, 2017 at 12:22 PM, wrote:
> Hi All,
>
> I have a string which looks like
>
> a,b,c "4873898374", d, ee "3343,23,23,5,,5,45", f
> "5546,3434,345,34,34,5,34,543,7"
>
> It is comma saperated string, but some of the fields have a double
On Tue, Jan 31, 2017 at 3:30 PM, Chris Angelico <ros...@gmail.com> wrote:
> On Wed, Feb 1, 2017 at 7:26 AM, Larry Martell <larry.mart...@gmail.com> wrote:
>> I have a list of dicts and one item of the dict is a date in m/d/Y
>> format. I want to sort by that. I tr
I have a list of dicts and one item of the dict is a date in m/d/Y
format. I want to sort by that. I tried this:
sorted(data['trends'], key=lambda k:
datetime.strptime(k['date_time'],'%m/%d/%Y'))
But that fails with:
Exception Type: AttributeError at
On Mon, Jan 9, 2017 at 5:33 PM, Deborah Swanson
wrote:
> Ok, here is the crux of this thread's communication problem. I didn't
> ask, or particularly care for all these lectures on the technology of
> terminal emulators. I asked how to code Python to make clickable
On Wed, Dec 28, 2016 at 3:43 PM, Ian Kelly <ian.g.ke...@gmail.com> wrote:
> On Wed, Dec 28, 2016 at 2:14 PM, Larry Martell <larry.mart...@gmail.com>
> wrote:
>>
>> I have a list containing a list of strings that I want to sort
>> numerically by one of the f
I have a list containing a list of strings that I want to sort
numerically by one of the fields. I am doing this:
sorted(rows, key=float(itemgetter(sortby)))
Which works fine as long as all the sort keys convert to a float.
Problem is that some are blank or None and those throw an exception.
How
On Fri, Dec 23, 2016 at 2:27 PM, Skip Montanaro
wrote:
>> I need to compare these datetimes, and if I do that I get the dreaded
>> "can't compare offset-naive and offset-aware datetimes" error.
>
> If you're sure the naive datetimes are UTC, this should work:
>
> import
On Fri, Dec 23, 2016 at 2:18 PM, Chris Angelico <ros...@gmail.com> wrote:
> On Sat, Dec 24, 2016 at 3:30 AM, Larry Martell <larry.mart...@gmail.com>
> wrote:
>> I have a datetime that looks like this: '2016-11-11T18:10:09-05:00'
>> and when I pass it to da
I have a datetime that looks like this: '2016-11-11T18:10:09-05:00'
and when I pass it to dateutil.parser.parse I get back this:
datetime.datetime(2016, 11, 11, 18, 10, 9, tzinfo=tzoffset(None, -18000))
And I have other datetimes like this: '2016-04-27T00:00:00', which
went passed to
On Mon, Nov 21, 2016 at 10:10 PM, wrote:
> Hi! This is my first post! I'm having trouble understanding my code. I get
> "SyntaxError:invalid syntax" on line 49. I'm trying to code a simple
> text-based rpg on repl.it. Thank you for reading.
>
>
>
> print("Welcome to
On Tue, Oct 11, 2016 at 1:58 PM, wrote:
>
> n=6
> x=1
> while x<=n:
> print "*"*x
> x+=1
> while n>=x:
> n=n-1
> print "*"* n
>
>
> Only first loop is executing not the second one?
Because after the first loop n < x
--
On Fri, Aug 26, 2016 at 7:58 PM, ROGER GRAYDON CHRISTMAN wrote:
> "If it walks like a duck, quacks like a duck,... "
>
> so there is indeed precedence for this so-called 'duck typing'
>
>
> but wouldn't it be more Pythonic to call this 'witch typing'?
>
> "How do you know she is a
On Mon, Aug 22, 2016 at 1:25 PM, Jon Ribbens <jon+use...@unequivocal.eu> wrote:
> On 2016-08-22, Larry Martell <larry.mart...@gmail.com> wrote:
>> On Sun, Aug 21, 2016 at 5:24 PM, Jon Ribbens <jon+use...@unequivocal.eu>
>> wrote:
>>> On 2016-08-19, Lar
On Mon, Aug 22, 2016 at 1:52 PM, Gary Sublett wrote:
> I have to go out for a while, so for DED processing two options from
> my end:
>
> 1. Process as you all have been in the past for now. If you all do
> this, the records that have not been mailed prior to the latest
On Fri, Aug 19, 2016 at 4:51 PM, Lawrence D’Oliveiro
wrote:
> On Saturday, August 20, 2016 at 6:03:53 AM UTC+12, Terry Reedy wrote:
>>
>> An 'octet' is a byte of 8 bits.
>
> Is there any other size of byte?
Many, many years ago, probably c. 1982 my Dad came into my house
On Mon, Aug 22, 2016 at 10:36 AM, Larry Martell <larry.mart...@gmail.com> wrote:
> On Fri, Aug 19, 2016 at 4:24 PM, Chris Kaynor <ckay...@zindagigames.com>
> wrote:
>> On Fri, Aug 19, 2016 at 12:00 PM, Larry Martell <larry.mart...@gmail.com>
>> wrote:
>>
On Fri, Aug 19, 2016 at 4:24 PM, Chris Kaynor <ckay...@zindagigames.com> wrote:
> On Fri, Aug 19, 2016 at 12:00 PM, Larry Martell <larry.mart...@gmail.com>
> wrote:
>
>> On Fri, Aug 19, 2016 at 1:24 PM, Chris Angelico <ros...@gmail.com> wrote:
>> > On S
On Sun, Aug 21, 2016 at 5:24 PM, Jon Ribbens <jon+use...@unequivocal.eu> wrote:
> On 2016-08-19, Larry Martell <larry.mart...@gmail.com> wrote:
>> fd.write(request.POST[key])
>
> You could try:
>
> request.encoding = "iso-8859-1"
> fd.write(re
On Fri, Aug 19, 2016 at 3:00 PM, Larry Martell <larry.mart...@gmail.com> wrote:
> On Fri, Aug 19, 2016 at 1:24 PM, Chris Angelico <ros...@gmail.com> wrote:
>> On Sat, Aug 20, 2016 at 3:10 AM, Larry Martell <larry.mart...@gmail.com>
>> wrote:
>>> I h
On Fri, Aug 19, 2016 at 1:24 PM, Chris Angelico <ros...@gmail.com> wrote:
> On Sat, Aug 20, 2016 at 3:10 AM, Larry Martell <larry.mart...@gmail.com>
> wrote:
>> I have some python code (part of a django app) that processes a
>> request that contains a
I have some python code (part of a django app) that processes a
request that contains a png file. The request is send with
content_type = 'application/octet-stream'
In the python code I want to write this data to a file and still have
it still be a valid png file.
The data I get looks like this:
On Thu, Aug 18, 2016 at 10:02 AM, Gene Heskett wrote:
> On Thursday 18 August 2016 07:28:06 Chris Angelico wrote:
>
>> On Thu, Aug 18, 2016 at 7:55 PM, meInvent bbird
> wrote:
>> > actually i would like to remove try except code in all function
>> >
>>
On Thu, Jul 28, 2016 at 8:51 AM, Nobody <nobody@nowhere.invalid> wrote:
> On Wed, 27 Jul 2016 22:47:15 -0400, Larry Martell wrote:
>
>> Also let me add that initially I was calling Popen with shell=False and
>> the arguments in a list, and that was failing with:
>&
On Thu, Jul 28, 2016 at 1:58 AM, Steven D'Aprano
<steve+comp.lang.pyt...@pearwood.info> wrote:
> On Thursday 28 July 2016 12:39, Larry Martell wrote:
>
>> I have an object of type Target:
>>
>> (Pdb) type(target)
>>
>>
>> And I pickle it
On Wed, Jul 27, 2016 at 10:39 PM, Larry Martell <larry.mart...@gmail.com> wrote:
> On Wed, Jul 27, 2016 at 7:45 PM, Jason Benjamin <hexusne...@gmail.com> wrote:
>> Look at this: https://wiki.python.org/moin/UsingPickle
>> It uses *pickle.dump* not *pickle.dumps*
>
Error: Import by filename is not supported.
Also, please keep the discussion on the list, and please don't top post.
>
>
>
> On Wed, Jul 27, 2016 at 4:29 PM, Larry Martell <larry.mart...@gmail.com>
> wrote:
>
> On Wed, Jul 27, 2016 at 6:54 PM, Jason Benjamin <h
to unpickle it with loads and I get that
error.
(Pdb) type(args.target)
(Pdb) pickle.loads(args.target)
*** ImportError: Import by filename is not supported.
> On Wed, Jul 27, 2016 at 3:44 PM, Larry Martell <larry.mart...@gmail.com>
> wrote:
>
>
>
> On Wednesday, July 27, 2016,
On Wednesday, July 27, 2016, Jason Benjamin <hexusne...@gmail.com
<javascript:_e(%7B%7D,'cvml','hexusne...@gmail.com');>> wrote:
> On Wed, 27 Jul 2016 17:25:43 -0400, Larry Martell wrote:
>
> > When I try and unpickle an object with pickle.loads it fails with:
>
On Wed, Jul 27, 2016 at 9:12 AM, Vlastimil Brom
<vlastimil.b...@gmail.com> wrote:
> 2016-07-27 3:15 GMT+02:00 Larry Martell <larry.mart...@gmail.com>:
>> On Tue, Jul 26, 2016 at 8:49 PM, Tom Brown <nextst...@gmail.com> wrote:
>>> I used pyinstaller quite
When I try and unpickle an object with pickle.loads it fails with:
ImportError: Import by filename is not supported when unpickleing
I've never used pickle before. Why do I get this and how can I fix it?
--
https://mail.python.org/mailman/listinfo/python-list
On Wed, Jul 27, 2016 at 2:23 AM, Christian Gollwitzer <aurio...@gmx.de> wrote:
> Am 27.07.16 um 03:15 schrieb Larry Martell:
>>
>> On Tue, Jul 26, 2016 at 8:49 PM, Tom Brown <nextst...@gmail.com> wrote:
>>>
>>> I used pyinstaller quite a bit 3 years a
r any help you could
provide.
>
> On Jun 21, 2016 16:57, "Larry Martell" <larry.mart...@gmail.com> wrote:
>>
>> Anyone here have any experience with pyinstaller? I am trying to use
>> it, but I'm not having much success. I tried posting to the
>> pyins
Anyone here have any experience with pyinstaller? I am trying to use
it, but I'm not having much success. I tried posting to the
pyinstaller ML but it said my post had to be approved first, and that
hasn't happened in a while. I'll post details if someone here thinks
they can help.
--
On Tue, May 17, 2016 at 1:29 AM, Chris Angelico wrote:
> On Tue, May 17, 2016 at 3:20 PM, Steven D'Aprano
> wrote:
>>> And a lot of job postings do come from that sort of really small
>>> business, trying to expand a bit. Plus, some of them
Does anyone here use gevent? I posted a question on the gevent mailing
list, here, and on SO and did not get any replies on any of them. I
have a client that is using it - I had never heard of it before, and
now I am wondering how big the user base and community is.
--
On Mon, May 2, 2016 at 10:28 AM, Larry Martell <larry.mart...@gmail.com> wrote:
> On Mon, May 2, 2016 at 10:08 AM, Joaquin Alzola
> <joaquin.alz...@lebara.com> wrote:
>>>I am starting a docker container from a subprocess.Popen and it works, but
>>>when the s
On Sat, May 7, 2016 at 10:27 AM, wrote:
> Hi,
>
> on page:
> https://hrti.hrt.hr/#/video/show/2203605/trebizat-prica-o-jednoj-vodi-i-jednom-narodu-dokumentarni-film
>
> there is a picture and in the middle of the picture there is a text
> "Prijavite se za gledanje!"
>
> If
I have a python server that has this in the main:
from gevent import pywsgi
try:
httpd = pywsgi.WSGIServer(('0.0.0.0', 8000), app)
httpd.serve_forever()
except KeyboardInterrupt:
pass
Recently we began getting HTTPError: 504 Server Error: Gateway
Time-out on requests to the server.
On Mon, May 2, 2016 at 11:15 AM, DFS wrote:
> Of course. Taken to its extreme, I could eventually replace you with one
> line of code :)
That reminds me of something I heard many years ago.
Every non-trivial program can be simplified by at least one line of code.
Every non
On Mon, May 2, 2016 at 10:08 AM, Joaquin Alzola
wrote:
>>I am starting a docker container from a subprocess.Popen and it works, but
>>when the script returns, the terminal settings of my shell are messed up.
>>Nothing is echoed and return doesn't cause a >newline. I
I am starting a docker container from a subprocess.Popen and it works,
but when the script returns, the terminal settings of my shell are
messed up. Nothing is echoed and return doesn't cause a newline. I can
fix this with 'tset' in the terminal, but I don't want to require
that. Has anyone here
On Tue, Apr 19, 2016 at 11:50 AM, Steven D'Aprano wrote:
> On Wed, 20 Apr 2016 12:54 am, Rustom Mody wrote:
>
>
>> I wonder who the joke is on:
>>
>> | A study comparing Canadian and Chinese students found that the latter
>> | were better at complex maths
>
> Most published
On Sunday, April 17, 2016, ranran wrote:
> I'm reading in python some values from some sensors and I write them in a
> csv file.
> My problem now is to use this datas to plot a realtime graph for a example
> in a web server.
> Is it possible to read in the same time the values,
On Sat, Apr 16, 2016 at 2:18 PM, BartC <b...@freeuk.com> wrote:
> On 16/04/2016 17:58, Larry Martell wrote:
>>
>> On Sat, Apr 16, 2016 at 12:51 PM, Marko Rauhamaa <ma...@pacujo.net> wrote:
>>>
>>> Larry Martell <larry.mart...@gmail.com>:
On Sat, Apr 16, 2016 at 12:51 PM, Marko Rauhamaa <ma...@pacujo.net> wrote:
> Larry Martell <larry.mart...@gmail.com>:
>
>> I have worked for many companies where you are required to get a clean
>> run of pep8 on your code before your pull request will even be
>&
On Sat, Apr 16, 2016 at 8:32 AM, Stephen Hansen wrote:
> On Sat, Apr 16, 2016, at 01:51 AM, Marko Rauhamaa wrote:
>> Chris Angelico :
>>
>> > On Sat, Apr 16, 2016 at 6:06 PM, Marko Rauhamaa wrote:
>> >> It doesn't really matter one way or
On Sun, Mar 20, 2016 at 4:55 PM, Larry Martell <larry.mart...@gmail.com> wrote:
> On Sun, Mar 20, 2016 at 4:47 PM, Joel Goldstick
> <joel.goldst...@gmail.com> wrote:
>> On Sun, Mar 20, 2016 at 4:32 PM, Larry Martell <larry.mart...@gmail.com>
>> wrote:
>
On Wed, Apr 6, 2016 at 10:08 AM, Marko Rauhamaa wrote:
> BartC :
>
>> But you're right in that little is actually essential. Basic has shown
>> that.
>>
>> You need expressions, IF, GOTO, variables and assignments, and some
>> means of doing I/O.
>>
>> Pretty
On Sun, Apr 3, 2016 at 11:46 AM, Rustom Mody wrote:
> Personal note: I once was idiot enough to have root with password root123
I changed my password to "incorrect," so whenever I forget it the
computer will say, "Your password is incorrect."
--
On Thursday, March 31, 2016, Ben Finney <ben+pyt...@benfinney.id.au> wrote:
> Larry Martell <larry.mart...@gmail.com <javascript:;>> writes:
>
> > I feel like I've converted sets to lists before. But maybe not. Or
> > maybe I am losing it from having worked 7
I feel like I've converted sets to lists before. But maybe not. Or
maybe I am losing it from having worked 70 hours this week.
Shouldn't this work?
(Pdb) print block['relative_chart1']['vessel_names']
set([u'Common Carotid', u'External Carotid', u'Internal Carotid'])
(Pdb)
On Sat, Mar 26, 2016 at 11:31 AM, Gene Heskett <ghesk...@wdtv.com> wrote:
> On Saturday 26 March 2016 07:52:05 Larry Martell wrote:
>> As my wife once said, "If you start with 'Listen, asshole, ...' they
>> probably won't hear what you have to say after that.
>
> S
On Sat, Mar 26, 2016 at 7:37 AM, Ned Batchelder wrote:
> Thomas, you don't have to choose between correct and nice. It's
> possible to be both.
"I'm not good, I'm not nice, I'm just right."
That was written by Stephen Sondheim and it's from his musical Into
The Woods.
On Thu, Mar 24, 2016 at 4:53 PM, wrote:
> I use Python wherever I can and find this list (as a usenet group via
> gmane) an invaluable help at times.
>
> Occasionally I have to make forays into Javascript, can anyone
> recommend a place similar to this list where Javascript
On Mon, Mar 21, 2016 at 4:26 PM, wrote:
> On Monday, 21 March 2016 04:13:45 UTC, Chris Angelico wrote:
>> On Mon, Mar 21, 2016 at 2:59 PM, wrote:
>> > instead, to be efficient, it is best to combine tools to solve problems
>> > that contain
On Sun, Mar 20, 2016 at 4:47 PM, Joel Goldstick
<joel.goldst...@gmail.com> wrote:
> On Sun, Mar 20, 2016 at 4:32 PM, Larry Martell <larry.mart...@gmail.com>
> wrote:
>
>> I have a script that I run a lot - at least 10 time every day. Usually
>> it works fine. B
I have a script that I run a lot - at least 10 time every day. Usually
it works fine. But sometime it just stops running with nothing output
to stdout or stderr. I've been trying to debug this for a while, and
today I looked in the system logs and saw this:
abrt: detected unhandled Python
On Fri, Mar 18, 2016 at 5:33 PM, Fillmore wrote:
>
> I must be missing something simple, but...
>
> Python 3.4.0 (default, Apr 11 2014, 13:05:11)
> [GCC 4.8.2] on linux
> Type "help", "copyright", "credits" or "license" for more information.
d = dict()
On Mon, Mar 14, 2016 at 10:07 AM, Rick Johnson
wrote:
> On Thursday, March 10, 2016 at 7:22:26 PM UTC-6, Mark Lawrence wrote:
>> Always a code smell when range() and len() are combined.
>
> I would be careful about dealing in absolutes Mark.
I always think people
On Fri, Mar 11, 2016 at 6:18 PM, Fillmore wrote:
>
>
> Playing with ArgumentParser. I can't find a way to override the -h and --help
> options so that it provides my custom help message.
>
> -h, --help show this help message and exit
>
> Here is what I am
On Fri, Mar 11, 2016 at 4:49 AM, Steven D'Aprano
wrote:
> On Fri, 11 Mar 2016 02:28 pm, rubengoods...@yahoo.com wrote:
>
> > I am having trouble installing the Python software.
>
> Make sure your computer is turned on. I can't tell you how many times I've
> tried to install
On Thu, Mar 10, 2016 at 8:45 PM, BartC wrote:
> Any other way of traversing two lists in parallel?
zip
--
https://mail.python.org/mailman/listinfo/python-list
On Sun, Mar 6, 2016 at 6:14 PM, Steven D'Aprano wrote:
> On Mon, 7 Mar 2016 04:05 am, Mark Lawrence wrote:
>
>> Why in the year 2016 are people still giving links to the Luddite Python
>> 2 docs?
>
> Because Python 2.7 is still supported, and will be officially supported
>
On Sun, Mar 6, 2016 at 4:46 PM, Gene Heskett wrote:
>
> Has Carol written anything new lately?
I replied to Gene privately, but if anyone is wondering, Carol is my
wife and these are her blogs:
Non-fiction:
http://minervaontheroad.com/
Fiction:
On Sat, Mar 5, 2016 at 12:36 PM, Gene Heskett wrote:
> On Saturday 05 March 2016 10:46:04 Thomas 'PointedEars' Lahn wrote:
>
>> Gene Heskett wrote:
>> > I've never heard of a massless photon,
>>
>> That is unfortunate as it should be common knowledge by now.
>>
>> > and they do
On Fri, Mar 4, 2016 at 9:22 AM, Gene Heskett <ghesk...@wdtv.com> wrote:
> On Friday 04 March 2016 07:18:57 Larry Martell wrote:
>
>> On Thu, Mar 3, 2016 at 10:32 PM, Larry Martell
> <larry.mart...@gmail.com> wrote:
>> > On Thu, Mar 3, 2016 at 4:58 PM, Chris
On Thu, Mar 3, 2016 at 10:32 PM, Larry Martell <larry.mart...@gmail.com> wrote:
> On Thu, Mar 3, 2016 at 4:58 PM, Chris Angelico <ros...@gmail.com> wrote:
>> On Fri, Mar 4, 2016 at 8:38 AM, MRAB <pyt...@mrabarnett.plus.com> wrote:
>>> Is it even possible to zip
On Thu, Mar 3, 2016 at 4:58 PM, Chris Angelico wrote:
> On Fri, Mar 4, 2016 at 8:38 AM, MRAB wrote:
>> Is it even possible to zip a link?
>>
>> A quick search came up with this:
>>
>> Are hard links possible within a zip archive?
>>
On Thu, Mar 3, 2016 at 1:37 PM, Larry Martell <larry.mart...@gmail.com> wrote:
> I have a script that creates zip files of dirs containing symlinks. I
> was surprised to find that the zipfiles have zipped the targets of the
> links as opposed to the links themselves, which i
I have a script that creates zip files of dirs containing symlinks. I
was surprised to find that the zipfiles have zipped the targets of the
links as opposed to the links themselves, which is what I wanted and
expected. Googling I found this:
On Mon, Feb 29, 2016 at 12:33 PM, Ben Finney <ben+pyt...@benfinney.id.au> wrote:
> Rustom Mody <rustompm...@gmail.com> writes:
>
>> On Monday, February 29, 2016 at 10:26:32 PM UTC+5:30, Ben Finney wrote:
>> > Ian Kelly writes:
>> >
>> > >
On Mon, Feb 29, 2016 at 11:56 AM, Ben Finney <ben+pyt...@benfinney.id.au> wrote:
> Ian Kelly <ian.g.ke...@gmail.com> writes:
>
>> On Mon, Feb 29, 2016 at 9:21 AM, Larry Martell <larry.mart...@gmail.com>
>> wrote:
>> > I found this to be a very sad stor
On Mon, Feb 29, 2016 at 11:47 AM, Ian Kelly <ian.g.ke...@gmail.com> wrote:
> On Mon, Feb 29, 2016 at 9:21 AM, Larry Martell <larry.mart...@gmail.com>
> wrote:
>> On Sat, Feb 27, 2016 at 4:37 AM, Steven D'Aprano <st...@pearwood.info> wrote:
>>> The author of
On Sat, Feb 27, 2016 at 4:37 AM, Steven D'Aprano wrote:
> The author of Requests, Kenneth Reitz, discusses his recent recovery from a
> MentalHealthError exception.
>
> http://www.kennethreitz.org/essays/mentalhealtherror-an-exception-occurred
>
> Although the connection to
Given this string:
>>> s = """|Type=Foo
... |Side=Left"""
>>> print s
|Type=Foo
|Side=Left
I can match with this:
>>> m = re.search(r'^\|Type=(.*)$\n^\|Side=(.*)$',s,re.MULTILINE)
>>> print m.group(0)
|Type=Foo
|Side=Left
>>> print m.group(1)
Foo
>>> print m.group(2)
Left
But when I try and
On Wed, Feb 10, 2016 at 10:00 PM, MRAB <pyt...@mrabarnett.plus.com> wrote:
> On 2016-02-11 02:48, Larry Martell wrote:
>>
>> Given this string:
>>
>>>>> s = """|Type=Foo
>>
>> ... |Side=Left"""
>>>>>
I am using a javascript ploting package called plotly and I use that
to generate a contour map. In that package you define a rangeMin,
rangeMax, and binSize, and you give it a color map, e.g.:
[["0", "rgb(0,0,0)"], ["0.3", "rgb(230,0,0)"], ["0.6",
"rgb(255,210,0)"], ["1", "rgb(255,255,255)"]]
On Tue, Dec 15, 2015 at 2:29 AM, Ezhilarasan Chandrasekar
wrote:
> Hi folks,
>
> I just want to find the cell display format in Excel. I have a Expected
> excel file and Actual Excel file.
>
> I have some knowledge about, how to check the cell value, cell font,
> alignment.
On Fri, Dec 11, 2015 at 1:36 PM, ICT Ezy wrote:
> On Wednesday, December 9, 2015 at 9:58:02 AM UTC-8, Chris Angelico wrote:
>> On Thu, Dec 10, 2015 at 4:51 AM, ICT Ezy wrote:
>> > Pl explain me how to connect the MYSQL database to Python program?
>>
>> You
On Fri, Nov 6, 2015 at 3:36 PM, Christian Gollwitzer wrote:
> Am 06.11.15 um 20:52 schrieb ru...@yahoo.com:
>>
>> I have always thought lexing
>> and parsing solutions for Python were a weak spot in the Python eco-
>> system and I was about to write that I would love to see a PEG
I'm trying to do a list comprehension with an if and that requires an
else, but in the else case I do not want anything added to the list.
For example, if I do this:
white_list = [l.control_hub.serial_number if l.wblist ==
wblist_enum['WHITE'] else None for l in wblist]
I end up with None in
On Wed, Oct 28, 2015 at 12:36 PM, Zachary Ware
<zachary.ware+pyl...@gmail.com> wrote:
> On Wed, Oct 28, 2015 at 11:25 AM, Larry Martell <larry.mart...@gmail.com>
> wrote:
>> I'm trying to do a list comprehension with an if and that requires an
>> else, but in the el
We have been trying to figure out an intermittent problem where a
thread would fail with this:
AttributeError: 'module' object has no attribute '_strptime'
Even though we were importing datetime. After much banging our heads
against the wall, we found this:
On Wed, Sep 30, 2015 at 11:25 AM, wrote:
> Hi
> New to Python and just downloaded 3.5
> Trying to connect to Oracle but failing - eg
>
> import cx_oracle
> connstr = 'userid/password@@99.999.9.99:PORT/SID'
> connection = cx_oracle.connect(connstr)
> cursor =
On Tue, Sep 22, 2015 at 6:55 PM, Chris Angelico <ros...@gmail.com> wrote:
> On Wed, Sep 23, 2015 at 8:42 AM, Larry Martell <larry.mart...@gmail.com>
> wrote:
>> I currently have 3 lists of lists and I sort them based on a common
>> field into a single list like thi
I currently have 3 lists of lists and I sort them based on a common
field into a single list like this:
def GetObjKey(a):
return a[2]
sorted(a + b + c, key=GetObjKey)
Which works just fine.
But now, I need to have just the first list (a) also sub sorted by
another
201 - 300 of 456 matches
Mail list logo