-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512
On 02/29/2016 11:13 AM, Chris Angelico wrote:
> On Tue, Mar 1, 2016 at 4:08 AM, Peter Pearson
> wrote:
>> try: smtp.sendmail(message['From'], message['To'],
>> message.as_string()) except: print "Message sending has failed"
>> sys.exit(1) print "M
It's not at all clear what the problem is from your description. What
is it that you expect the code to do? What is it doing instead that
violates your expectation? Why are you asking for Javascript help on a
Python mailing list?
On Mon, Feb 29, 2016 at 10:40 PM, wrote:
> I've been looking at th
On 2/29/2016 8:22 AM, alien2u...@gmail.com wrote:
Hello Rustom,
F5 in Idle restarts the Python interpreter (that's what my impression is).
More exactly, IDLE runs user code in a separate process from the one
that runs the IDLE gui. Restarting means that the existing user process
is terminat
On 2/29/2016 7:42 AM, Rustom Mody wrote:
Is import needed at all when trying out in Idle?
...
So it does appear that
1. import not necessary with(in) idle
2. However import and f5 (ie is run as main) are different
May some idle experts elaborate on this? Whats the idle idiom of import-ing?
I've been looking at the code for two days so i am a bit crosseyed.
If anyone could help me set the condition so the loop catch the last
pair/pairs, it is kind of weird that it succeed sometimes and break to early
and report fail others.
I would be very greatful if anyone can see why it break to
On Tue, Mar 1, 2016 at 1:33 PM, Terry Reedy wrote:
> On 2/29/2016 3:20 AM, Chris Angelico wrote:
>
>> Incidentally, HTML+CSS is another excellent example of code being used
>> to create a visual effect. While there *are* WYSIWYG HTML editors, I'm
>> not familiar with any WYISWYG HTML+CSS editors,
On Saturday, February 27, 2016 at 4:39:12 AM UTC-5, 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 Pyt
On 2/29/2016 3:20 AM, Chris Angelico wrote:
Incidentally, HTML+CSS is another excellent example of code being used
to create a visual effect. While there *are* WYSIWYG HTML editors, I'm
not familiar with any WYISWYG HTML+CSS editors, and I much more often
see a fast-turnaround code editing syste
Sagar,
Have you worked on RobotFramework-sshlibrary. It seem to have very simple
interface for both command processing/execution as well as interactive session
to grep responses and decide the flow.
Let me know if you face any issues. Can help you solve.
-paragm
On Thursday, August 8, 2013 at
On 02/29/2016 04:35 PM, Paul Rubin wrote:
The story reminded me of "A Beautiful Mind" by Sylvia Nasar, about
mathematician John Nash who suffered from mental illness in the
1970s-80's(?) but later recovered and won the Nobel Prize in economics.
The book is excellent and I recommend it if you fin
Ben Finney writes:
>> "All that he had learned" meaning his delusions and psychoses?
> Indeed. If a revelation is unconnected to reality, it's misleading to
> say that one has “learned” it
> When someone describes the ill effects their mental illness produced, I
> find it rather condescending
On Mon, Feb 29, 2016 at 4:14 PM, Cameron Simpson wrote:
> Another remark here: if you're going to log, log the exception as well:
>
> logging.error("something went wrong: %s", e)
>
> Ian's example code is nice and simple to illustrate "log and then reraise"
> but few things are as annoying as
On Mon, Feb 29, 2016 at 6:29 PM, Mark Lawrence
wrote:
> On 29/02/2016 22:40, Larry Martell wrote:
>
>> On Mon, Feb 29, 2016 at 12:33 PM, Ben Finney
>> wrote:
>>
>>> Rustom Mody writes:
>>>
>>> On Monday, February 29, 2016 at 10:26:32 PM UTC+5:30, Ben Finney wrote:
> Ian Kelly writes:
On 29/02/2016 22:40, Larry Martell wrote:
On Mon, Feb 29, 2016 at 12:33 PM, Ben Finney wrote:
Rustom Mody 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 9:21 AM, Larry Martell wrote:
I found this to be a very sa
Cameron Simpson wrote:
> On 29Feb2016 10:45, Ian Kelly wrote:
>>On Mon, Feb 29, 2016 at 10:26 AM, Ganesh Pal wrote:
>>> On Mon, Feb 29, 2016 at 9:59 PM, Ian Kelly wrote:
On Mon, Feb 29, 2016 at 8:18 AM, Ganesh Pal wrote:
> 1. usage of try- expect
try-except in every single f
On 29Feb2016 10:45, Ian Kelly wrote:
On Mon, Feb 29, 2016 at 10:26 AM, Ganesh Pal wrote:
On Mon, Feb 29, 2016 at 9:59 PM, Ian Kelly wrote:
On Mon, Feb 29, 2016 at 8:18 AM, Ganesh Pal wrote:
1. usage of try- expect
try-except in every single function is a code smell. You should only
be us
On Mon, Feb 29, 2016 at 12:33 PM, Ben Finney wrote:
> Rustom Mody 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 9:21 AM, Larry Martell wrote:
>> > > > I found this to be a very sad story. Sure, he
On Mon, Feb 29, 2016 at 11:56 AM, Ben Finney wrote:
> Ian Kelly writes:
>
>> On Mon, Feb 29, 2016 at 9:21 AM, Larry Martell
>> wrote:
>> > I found this to be a very sad story. Sure, he had some issues, but I
>> > don't think they needed to drug him, and take all that he had
>> > learned away fr
On Mon, Feb 29, 2016 at 11:47 AM, Ian Kelly wrote:
> On Mon, Feb 29, 2016 at 9:21 AM, Larry Martell
> wrote:
>> 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:/
I want to take an image file, convert it to XBM format and
display it. Thanks to Mr. Otten I can open and display the
XBM image without any problems. The script first calls an
external program for the image conversion then I can open
and display it. Of course, I am left with the XBM file that
ne
Den måndag 29 februari 2016 kl. 21:32:51 UTC+1 skrev Ian:
> On Mon, Feb 29, 2016 at 1:07 PM, wrote:
> > This program creates a uniform linktree of x nodes, and it knows when it
> > get stuck in a loop generating random values.
> >
> > Because the networks random generated, only a subset of the p
Greetings Ganesh,
>> You're falling into the trap of assuming that the only exception you
>> can ever get is the one that you're planning for, and then handling.
>
>Ok sure !
This point is very important, so I'll reiterate it. I hope the poor
horse lives.
>> ALL exceptions as though they were
On Mon, Feb 29, 2016 at 1:07 PM, wrote:
> This program creates a uniform linktree of x nodes, and it knows when it get
> stuck in a loop generating random values.
>
> Because the networks random generated, only a subset of the permutations will
> generate a uniform network most get stuck in loo
sohcahto...@gmail.com:
> Every time you say "try-expect", my head wants to explode.
>
> It is called a "try-except" block, because you're using the key words
> "try" and "except" when you make one.
Ah, I remember a Python-based test system idea where the "except"
keyword meant "expect":
try:
On Mon, Feb 29, 2016 at 2:49 PM, Ganesh Pal wrote:
> On Mar 1, 2016 12:06 AM, "Chris Angelico" wrote
> >
> > You're falling into the trap of assuming that the only exception you
> > can ever get is the one that you're planning for, and then handling.
>
> Ok sure !
>
> > ALL exceptions as though
This program creates a uniform linktree of x nodes, and it knows when it get
stuck in a loop generating random values.
Because the networks random generated, only a subset of the permutations will
generate a uniform network most get stuck in loops generating random values.
But the program keep
On Mar 1, 2016 12:06 AM, "Chris Angelico" wrote
>
> You're falling into the trap of assuming that the only exception you
> can ever get is the one that you're planning for, and then handling.
Ok sure !
> ALL exceptions as though they were that one. Instead catch ONLY the
> exception that you're
On Monday, February 29, 2016 at 10:21:57 AM UTC-8, Ganesh Pal wrote:
> >> How do we reraise the exception in python , I have used raise not
> >> sure how to reraise the exception
> >
> > raise with no arguments will reraise the exception currently being handled.
> >
> > except Exception:
> > l
On Tue, Mar 1, 2016 at 5:21 AM, Ganesh Pal wrote:
>
> In my case the exception is nothing but the error example if we plan
> to run the command say #ifconfig -a and the command fails because of
> a type ( say u ran #igconfig -a).
>
> we will the output as
>
> # Failed to run igconfig -a got Er
On Tue, Mar 1, 2016 at 5:17 AM, Grant Edwards wrote:
>> A lot of web sites these days load nothing but a script
>> that goes and loads everything else, while you gaze at a splash
>> screen. IMO that's unideal.
>
> :)
>
> "Unideal" is too kind -- I would described it as something more like
> "the e
On 2016-02-29, Peter Pearson wrote:
> On Mon, 29 Feb 2016 02:10:00 -0600, Anthony Papillion wrote:
>
>> For some reason though, sending mail is failing every time. I've made
>> sure that the password is correct (which seems to be the most usual
>> error).
>>
>> Still, I just can't get it to work.
>> How do we reraise the exception in python , I have used raise not
>> sure how to reraise the exception
>
> raise with no arguments will reraise the exception currently being handled.
>
> except Exception:
> logging.error("something went wrong")
> raise
Thanks Ian for taking time and lo
On 2016-02-29, Chris Angelico wrote:
> On Tue, Mar 1, 2016 at 2:43 AM, Grant Edwards wrote:
>> On 2016-02-29, Chris Angelico wrote:
>>
>>> Abjuring JS may be a virtue (or at least, making it a non-critical
>>> part of your web site),
>>
>> Except the marketing people who decide on the requiremen
> I have tried down the code to
Read "I have tried down the code to " as I have trimmed down the code as below
Ganesh
--
https://mail.python.org/mailman/listinfo/python-list
> No, Dennis was correct. You should assume that "assert" can
> potentially be replaced with "pass" and your program will continue to
> work.
Thanks Chris for clarifying Dennis point of view ,
>>try:
>>if not run_cmd_and_verify(cmd, timeout=3600):
>
> Since your vers
On Monday, February 29, 2016 at 11:04:20 PM UTC+5:30, Ben Finney wrote:
> Rustom Mody 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 9:21 AM, Larry Martell wrote:
> > > > > I found this to be a
On Mon, Feb 29, 2016 at 10:26 AM, Ganesh Pal wrote:
> On Mon, Feb 29, 2016 at 9:59 PM, Ian Kelly wrote:
>> On Mon, Feb 29, 2016 at 8:18 AM, Ganesh Pal wrote:
>>> Iam on python 2.6
>
>>> 1. usage of try- expect
>>
>> try-except in every single function is a code smell. You should only
>> be using
On Tue, Mar 1, 2016 at 4:34 AM, Ganesh Pal wrote:
> On Mon, Feb 29, 2016 at 10:10 PM, Dennis Lee Bieber
> wrote:
>
>> Ask yourself: Will my program still work if I remove all the assert
>> statements. If the answer is "No", then you should not be using an assert.
>
> You meant if the answ
On Mon, Feb 29, 2016 at 10:10 PM, Dennis Lee Bieber
wrote:
> Ask yourself: Will my program still work if I remove all the assert
> statements. If the answer is "No", then you should not be using an assert.
You meant if the answer is "NO" then I should be using asset ?
> Can your
I have few sentences, like,
the film was nice.
leonardo is great.
it was academy award.
Now I want them to be tagged with some standards which may look like,
the DT film NN was AV nice ADJ
leonardo NN is AV great ADJ
it PRP was AV academy NN award NN
I could do it but my goal is to see it a
Rustom Mody 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 9:21 AM, Larry Martell wrote:
> > > > I found this to be a very sad story. Sure, he had some issues, but I
> > > > don't think they needed to dr
On Mon, Feb 29, 2016 at 9:59 PM, Ian Kelly wrote:
> On Mon, Feb 29, 2016 at 8:18 AM, Ganesh Pal wrote:
>> Iam on python 2.6
>> 1. usage of try- expect
>
> try-except in every single function is a code smell. You should only
> be using it where you're actually going to handle the exception. If
>
On Saturday, February 27, 2016 at 9:43:56 PM UTC+5:30, Rustom Mody wrote:
> On Saturday, February 27, 2016 at 2:47:53 PM UTC+5:30, subhaba...@gmail.com
> wrote:
> > I was trying to implement the code,
> >
> > import nltk
> > import nltk.tag, nltk.chunk, itertools
> > def ieertree2conlltags(tree,
On Tue, Mar 1, 2016 at 4:08 AM, Peter Pearson wrote:
> try:
> smtp.sendmail(message['From'],
> message['To'],
> message.as_string())
> except:
> print "Message sending has failed"
> sys.exit(1)
> print "Message sending was successful"
> sys.exit(0)
>
This is th
On Mon, 29 Feb 2016 02:10:00 -0600, Anthony Papillion wrote:
[snip]
>
> http://pastebin.com/sryj98wW
To improve odds of your getting a response, let's get the code
into this thread. Here it is, minus the #! preamble:
from email.mime.text import MIMEText
from email.mime.application import MIMEApp
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 9:21 AM, Larry Martell wrote:
> > > I found this to be a very sad story. Sure, he had some issues, but I
> > > don't think they needed to drug him, and take all that he had
>
Ian Kelly writes:
> On Mon, Feb 29, 2016 at 9:21 AM, Larry Martell
> wrote:
> > I found this to be a very sad story. Sure, he had some issues, but I
> > don't think they needed to drug him, and take all that he had
> > learned away from him and turn him back into what he was before.
>
> "All th
On Mon, Feb 29, 2016 at 9:21 AM, Larry Martell wrote:
> 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-oc
On Mon, Feb 29, 2016 at 9:06 AM, Random832 wrote:
> On Mon, Feb 29, 2016, at 10:36, ast wrote:
>> but why doesn't it work with built-in classes int, float, list ?
>>
>> L = [1, 8, 0]
>> L.test = 'its a list !'
>>
>> (however lists are mutable, int, float ... are not)
>
> Because those classes
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 Python is only quite sl
On Mon, Feb 29, 2016 at 8:18 AM, Ganesh Pal wrote:
> Iam on python 2.6
Python 2.6 has been unsupported since October 2013. Among other
things, that means it is no longer receiving security updates like
more recent versions. Unless you have an extremely strong reason for
wanting to stay to Python
Xn project tries to develop a more uniform language that can be used in
almost anywhere. It can be used for general files (e.g. executables),
general communication language, or even for an alive program that can grow.
Xn project is licensed as Public Domain (Historical Fact Principle).
Anyone can
On Tue, Mar 1, 2016 at 2:43 AM, Grant Edwards wrote:
> On 2016-02-29, Chris Angelico wrote:
>
>> Abjuring JS may be a virtue (or at least, making it a non-critical
>> part of your web site),
>
> Except the marketing people who decide on the requirements will never,
> ever settle for what you can
On Mon, Feb 29, 2016, at 10:36, ast wrote:
> but why doesn't it work with built-in classes int, float, list ?
>
> L = [1, 8, 0]
> L.test = 'its a list !'
>
> (however lists are mutable, int, float ... are not)
Because those classes do not have attribute dictionaries, in order to
save space.
On Tue, Mar 1, 2016 at 2:33 AM, BartC wrote:
>> I think the OP's talking more about the situation of having an active
>> session (IDLE was mentioned), importing a local module (a .py file
>> from the current directory), then editing the file and re-importing,
>> which has no effect. While I am sym
On 2016-02-29, Joel Goldstick wrote:
> On Mon, Feb 29, 2016 at 7:53 AM, wrote:
>
>> Thanks. If a word appears more than once how would I bring back both
>> locations?
>
> This is not generally a free coding service. Fortunately for you Tom,
> Jacob was kind enough to do your homework for you. T
We will be switching to regular ticket prices very soon now:
* Student: EUR 120.00 (only available for students)
* Personal: EUR 360.00 (for people enjoying Python from home)
* Business: EUR 580.00 (for people using Python to make a living)
but still have a few early-bird tickets left.
If yo
On 2016-02-29, Chris Angelico wrote:
> Abjuring JS may be a virtue (or at least, making it a non-critical
> part of your web site),
Except the marketing people who decide on the requirements will never,
ever settle for what you can do with plain HTML/CSS.
In my experience, HTML/CSS makes a pret
Hello
Object's attributes can be created dynamically, ie
class MyClass:
pass
obj = MyClass()
obj.test = 'foo'
but why doesn't it work with built-in classes int, float, list ?
L = [1, 8, 0]
L.test = 'its a list !'
(however lists are mutable, int, float ... are not)
Traceback (most rec
On 29/02/2016 07:11, Chris Angelico wrote:
On Mon, Feb 29, 2016 at 6:02 PM, Ian Kelly wrote:
- if subsequent imports of same module in a session are not effective, why not
simply flag those attempts as an error, rather than letting them go effect-less.
Because there are legitimate reasons fo
Iam on python 2.6 , need inputs on the common mistakes in this program
, may be you suggest what need to be improved from
1. usage of try- expect
2. Return of True/ False
3. Other improvement
#!/usr/bin/env python
"""
"""
import os
import shlex
import subprocess
import sys
import time
import lo
> Why does one use (something like) idle?
> To experiment.
>
> So what's your experiment-focus?
True. Experiment only.
What happens (and in environment) when you use
- import module
- from module import name
- from module import name as othername
Idle is start point, but we aren't always going t
On Mon, Feb 29, 2016 at 9:39 AM, Mark Lawrence
wrote:
> On 29/02/2016 13:45, jonas.thornv...@gmail.com wrote:
>
>> I have a problem programming uniform networks, "x nodes with y links"
>> that turn out to be really hairy to solve for me and i feel i really lack
>> the programming features
>>
>> "
On Feb 29, 2016 7:11 AM, wrote:
>
> Sorry but would not if (array==empty) suffice and be alot clearer?
In Python, you can just do "if len(array) == 0" or "if not array".
In JavaScript you have "if (array.length === 0)". Is there some problem
with that?
I would prefer this over your suggestion s
On 29/02/2016 13:45, jonas.thornv...@gmail.com wrote:
I have a problem programming uniform networks, "x nodes with y links" that turn
out to be really hairy to solve for me and i feel i really lack the programming features
"Actually i program in javascript" but the problem seem general for all
On Mon, Feb 29, 2016 at 9:05 AM, wrote:
> Den måndag 29 februari 2016 kl. 14:57:04 UTC+1 skrev jonas.t...@gmail.com:
> > Den måndag 29 februari 2016 kl. 14:45:37 UTC+1 skrev
> jonas.t...@gmail.com:
> > > I have a problem programming uniform networks, "x nodes with y links"
> that turn out to be r
Den måndag 29 februari 2016 kl. 14:57:04 UTC+1 skrev jonas.t...@gmail.com:
> Den måndag 29 februari 2016 kl. 14:45:37 UTC+1 skrev jonas.t...@gmail.com:
> > I have a problem programming uniform networks, "x nodes with y links" that
> > turn out to be really hairy to solve for me and i feel i really
On 2016-02-29 13:45, jonas.thornv...@gmail.com wrote:
I have a problem programming uniform networks, "x nodes with y links" that turn
out to be really hairy to solve for me and i feel i really lack the programming features
"Actually i program in javascript" but the problem seem general for all
On Mon, Feb 29, 2016 at 8:45 AM, wrote:
> I have a problem programming uniform networks, "x nodes with y links" that
> turn out to be really hairy to solve for me and i feel i really lack the
> programming features
>
> "Actually i program in javascript" but the problem seem general for all
> prog
Den måndag 29 februari 2016 kl. 14:45:37 UTC+1 skrev jonas.t...@gmail.com:
> I have a problem programming uniform networks, "x nodes with y links" that
> turn out to be really hairy to solve for me and i feel i really lack the
> programming features
>
> "Actually i program in javascript" but th
On Monday, February 29, 2016 at 6:53:09 PM UTC+5:30, alien...@gmail.com wrote:
> Hello Rustom,
>
> F5 in Idle restarts the Python interpreter (that's what my impression is).
> Whatever you have done earlier at Idle prompt (in Idle session) before F5 is
> gone after F5.
>
> Try simple experiment
I have a problem programming uniform networks, "x nodes with y links" that turn
out to be really hairy to solve for me and i feel i really lack the programming
features
"Actually i program in javascript" but the problem seem general for all
programming languages including Pyhton.
For a beauti
On 29/02/2016 12:53, tomwilliamson...@gmail.com wrote:
Thanks. If a word appears more than once how would I bring back both locations?
I've no idea without any context, would you please care to elucidate,
thanks.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what y
> As for need of import in Idle session, I use it to
> - import sys
> - sys.append.path('D:\\Where\\Ever\\My\\Modules\\Lie')
Kindly read above as
sys.path.append()
> - import mymodule
--
https://mail.python.org/mailman/listinfo/python-list
Hello Rustom,
F5 in Idle restarts the Python interpreter (that's what my impression is).
Whatever you have done earlier at Idle prompt (in Idle session) before F5 is
gone after F5.
Try simple experiment at prompt.
>>> myvar="hello"
>>> myvar
'hello'
myvar is gone after F5.
As for need of imp
On Mon, Feb 29, 2016 at 7:53 AM, wrote:
> Thanks. If a word appears more than once how would I bring back both
> locations?
>
This is not generally a free coding service. Fortunately for you Tom,
Jacob was kind enough to do your homework for you. The problem with doing
someone's homework for t
Thanks Chris and Ian,
Your suggested experiments and explanations have really provided some good
insights, something Tutorial didn't indicate.
Ian's explanation reminds me of
#ifndef _HEADER_H_
#define _HEADER_H_
...
#endif // _HEADER_H_
in C/C++, and I can draw parallels to why subsequent a
Thanks. If a word appears more than once how would I bring back both locations?
--
https://mail.python.org/mailman/listinfo/python-list
On Monday, February 29, 2016 at 12:10:28 PM UTC+5:30, alien2utoo wrote:
> Hello list,
>
> We can not import a module twice in a session of Python (subsequent attempts
> to import same module don't result in any error though, but it is
> not-effective).
>
> However after making change to module,
On 29/02/2016 00:49, Steven D'Aprano wrote:
On Mon, 29 Feb 2016 01:29 am, BartC wrote:
20 years ago, when these things were simpler, MS Word had a mind of its
own even then. I had to produce a manual of few hundred pages, with
diagrams and images, and it just wasn't going to happen. Not without
Iam really sorry , I will have to resend my question again , because
the earlier post had mistakes and formatting was bad , so apologies
for top posting will try to avoid such mistakes in future.
Iam on python 2.6 and Linux , need your suggestion on the usage of try
and except in this program
#
Chris Angelico :
> On Mon, Feb 29, 2016 at 7:25 PM, Marko Rauhamaa wrote:
>> As for why you should avoid JS/CSS, Web pages open very slowly, jump
>> around wildly during rendering and have unexpected artifacts (not to
>> mention the numerous data collection abuses) when they are encumbered
>> with
Chris Angelico :
> CSS is important to document structure and layout.
Most Web pages had better not concern themselves with layout but with
info content only. Unfortunately, HTML is a dirt-poor language for
markup (no extensibility or programmability) so I can understand the
temptation to side-st
as the title:
I'm reading the source code of selectors, I got this:
# generic events, that must be mapped to implementation-specific ones
EVENT_READ = (1 << 0)
EVENT_WRITE = (1 << 1)
maybe we can add definitions for EVENT_ERROR like this:
# Choose the best implementation, roughly:
#
On Mon, Feb 29, 2016 at 7:25 PM, Marko Rauhamaa wrote:
> As for why you should avoid JS/CSS, Web pages open very slowly, jump
> around wildly during rendering and have unexpected artifacts (not to
> mention the numerous data collection abuses) when they are encumbered
> with truckloads of state-of
Rustom Mody :
> On Monday, February 29, 2016 at 11:48:25 AM UTC+5:30, Marko Rauhamaa wrote:
>> Gordon Levi :
>>
>> > Nobody likes filling in forms but how do you suggest converting a form
>> > based app into something loveable.
>>
>> Straight HTML does forms just fine without CSS or JavaScript,
On Mon, Feb 29, 2016 at 6:20 PM, Rustom Mody wrote:
> On Monday, February 29, 2016 at 11:48:25 AM UTC+5:30, Marko Rauhamaa wrote:
>> Gordon Levi :
>>
>> > Nobody likes filling in forms but how do you suggest converting a form
>> > based app into something loveable.
>>
>> Straight HTML does forms j
Iam on python 2.6 and Linux , need your suggestion on the usage of try
and except in this program and
Modified code:
#!/usr/bin/env python
"""
"""
import os
import shlex
import subprocess
import sys
import time
import logging
import run
import pdb
def run_cmd_and_verify(cmd, timeo
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512
Hello Everyone,
I've been trying to write a /very/ simple script that will email a
binary file to an email address when run. Pretty simple. I've done
quite a bit of research and have finally settled on the following code:
http://pastebin.com/sryj98
89 matches
Mail list logo