Re: Direct Download Movies - No Download Limits - Download DivX DVD Movies

2017-07-30 Thread alister via Python-list
On Sun, 30 Jul 2017 13:21:30 +1000, Chris Angelico wrote:

> On Sun, Jul 30, 2017 at 1:08 PM,   wrote:
>> On Saturday, December 5, 2009 at 8:52:52 PM UTC-8, hussain dandan
>> wrote:
>>> Movie Download Reviews offers Free Online Movie Download,Hollywood
>>> Movie Download,Free Full Movie Download,Download Latest Hollywood
>>> Movies,Free Movie
>>>
>>> [links deleted]
>>
>> cant login there's no where to login too plus the movies wont download
>> fast
> 
> Please don't reply to spam, especially not with the original links
> intact. Most of us don't see such blatant junk, as it gets filtered out;
> but then someone replies, and we see it.
> 
> These kinds of web sites are generally illegal AND are often not giving
> you what they claim to be. Don't touch them. If you MUST download
> pirated movies, at least use a reputable source. (And no, I'm not going
> to name a reputable source, because that would be just as bad.) Even
> better, just get a relatively inexpensive online streaming services, and
> watch stuff legitimately.
> 
> Or don't bother, given how low quality a lot of movies are these days...
> 
> ChrisA

Reputable Pirate, now there is an oxymoron ;-)



-- 
It is the quality rather than the quantity that matters.
-- Lucius Annaeus Seneca
-- 
https://mail.python.org/mailman/listinfo/python-list


مسابقة التربية والتعليم لتعيين 1800 معلم جديد على مستوى جميع المحافظات

2017-07-30 Thread mohmmedmohmmedalagmyabdalrhman
مسابقة التربية والتعليم لتعيين 1800 معلم جديد على مستوى جميع المحافظات
http://q.gs/Dpc1H
-- 
https://mail.python.org/mailman/listinfo/python-list


مسابقة تعيين 1800 معلم في جميع المحافظات 2017 تعرف علي التفاصيل والشروط

2017-07-30 Thread mohmmedmohmmedalagmyabdalrhman
مسابقة تعيين 1800 معلم في جميع المحافظات 2017 تعرف علي التفاصيل والشروط
http://q.gs/Dpc17
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Need some advice please

2017-07-30 Thread Rick Johnson
On Saturday, July 29, 2017 at 10:24:20 PM UTC-5, MRAB wrote:
> What is the difference between (1) and (4)?

Case in point. ;-)


-- 
https://mail.python.org/mailman/listinfo/python-list


Issues with Python

2017-07-30 Thread Ode Idoko via Python-list
Hi, I am new to Python and though I have been able to download the 3.6 version 
on my laptop , I still have issues with the syntax. While writing a program to 
execute, it will display syntax error with different shades of color usually 
green or yellow. 
What can I do about this? How do I know the error and effect it? Can't it be 
programmed like we have in excel that will tell you error and prompt you if you 
wish to accept the right formula format? 
Please I need more information on this. 
Thanks. 
Ode 

Sent from my iPhone
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Direct Download Movies - No Download Limits - Download DivX DVD Movies

2017-07-30 Thread Chris Angelico
On Sun, Jul 30, 2017 at 7:57 PM, alister via Python-list
 wrote:
> On Sun, 30 Jul 2017 13:21:30 +1000, Chris Angelico wrote:
>> These kinds of web sites are generally illegal AND are often not giving
>> you what they claim to be. Don't touch them. If you MUST download
>> pirated movies, at least use a reputable source. (And no, I'm not going
>> to name a reputable source, because that would be just as bad.) Even
>> better, just get a relatively inexpensive online streaming services, and
>> watch stuff legitimately.
>>
>> Or don't bother, given how low quality a lot of movies are these days...
>>
>> ChrisA
>
> Reputable Pirate, now there is an oxymoron ;-)
>
>

Not at all. Guybrush Threepwood™ is most definitely a reputable pirate.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Issues with Python

2017-07-30 Thread MRAB

On 2017-07-30 22:31, Ode Idoko via Python-list wrote:

Hi, I am new to Python and though I have been able to download the 3.6 version 
on my laptop , I still have issues with the syntax. While writing a program to 
execute, it will display syntax error with different shades of color usually 
green or yellow.
What can I do about this? How do I know the error and effect it? Can't it be 
programmed like we have in excel that will tell you error and prompt you if you 
wish to accept the right formula format?
Please I need more information on this.
Thanks.
Ode


If there's a syntax error, it'll tell you what the error is.

If it's merely showing parts of a line in different colours, that's 
"syntax colouring". In IDLE, for example, comments are shown in red and 
string literals are shown in green.

--
https://mail.python.org/mailman/listinfo/python-list


Re: Issues with Python

2017-07-30 Thread Irmen de Jong
On 30/07/2017 23:31, Ode Idoko wrote:
> Hi, I am new to Python and though I have been able to download the 3.6 
> version on my laptop , I still have issues with the syntax. While writing a 
> program to execute, it will display syntax error with different shades of 
> color usually green or yellow. 
> What can I do about this? How do I know the error and effect it? Can't it be 
> programmed like we have in excel that will tell you error and prompt you if 
> you wish to accept the right formula format? 
> Please I need more information on this. 
> Thanks. 
> Ode 
> 
> Sent from my iPhone
> 

You'll have to learn the language if you want to do anything meaningful with it.
Python isn't anything like excel formula's, it is a full general multipurpose
programming language.  If you make a mistake, it usually is almost impossible 
to deduce
what you meant to write instead. (because otherwise we wouldn't have to program 
our
computers anymore and instead let them figure out automatically what we wanted 
to do,
right? Just joking)

Because you are comparing it to excel formulas: are you sure you've chosen the 
right
tool for whatever the task is that you wanted to solve?
If so: may I suggest first working through the Python tutorial.
https://docs.python.org/3/tutorial/index.html


Irmen

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Need help to understand not the answer

2017-07-30 Thread Rick Johnson
On Saturday, July 29, 2017 at 2:16:36 PM UTC-5, new_to_c0ding wrote:
> Hello all, I have been scratching my head since morning but
> could not understand this quiz question. I would appreciate
> if someone could help me understand what is it asking me to
> do. I dont need the answer but just the right direction to
> look at.

Hello.

First of all, as i look over this "script template" that
your instructor has supposedly provided, i am disgusted by
the abysmal formatting. I'm not sure if what you provided
here is an exact replica, or something that you have
modified, but in either case, a little bit of proper
formatting can go a loong way towards readability.

For instance,

When writing in natural languages (such as English), we
utilize common structural elements and rules so that our
text will be presented in manner that is recognizable to
most readers. A few of these "high level structural
components" include _spaces_, _sentences_ and _paragraphs_.
And when writing code, we also utilize a "common structure".
And one of the most important components of this "common
structure" is the use of vertical whitespace. By properly
utilizing vertical whitespace, we can separate the
"paragraphs" of our code (aka: classes and functions) so
that reading the code will be more intuitive. 

Of course, 

Structuring code is far more complicated than simply
creating "visual buffers zones" around classes and
functions, and many hours have been spent debating what is
proper, and what is not. But being that in the "realms of
the OOP paradigm" classes and methods are the most
fundamental elements, it should come as no surprise that
mastering the formatting of these elements is a vital first
lesson.

Now,

Even though there is something of an "ideological war"
raging as to exactly how much vertical whitespace should be
used, and _where_ it should be used, most programmers will
agree that the following example is acceptable. A common
style is to place *ONE* vertical whitespace between each
method in a class,and two vertical whitespaces between the
classes themselves. Observe the following...

## BEGIN: READABLE CODE EXAMPLE ##

 class Location(object):
 """DOCSTRING MISSING!!!"""

 def __init__(self, x, y):
 self.x = x
 self.y = y

 def move(self, deltaX, deltaY):
 return Location(self.x + deltaX, self.y + deltaY)

 def getX(self):
 return self.x

 def getY(self):
 return self.y

 def dist_from(self, other):
 xDist = self.x - other.x
 yDist = self.y - other.y
 return (xDist**2 + yDist**2)**0.5

 def __eq__(self, other):
 return (self.x == other.x and self.y == other.y)

 def __str__(self):
 return '<' + str(self.x) + ',' + str(self.y) + '>'


 class Campus(object):
 """DOCSTRING MISSING!!!"""

 def __init__(self, center_loc):
 self.center_loc = center_loc

 def __str__(self):
 return str(self.center_loc)


 class MITCampus(Campus):
 """ A MITCampus is a Campus that contains tents """

 def __init__(self, center_loc, tent_loc=Location(0,0)):
 """ Assumes center_loc and tent_loc are Location objects
 Initializes a new Campus centered at location center_loc
 with a tent at location tent_loc """
 # Your code here

 def add_tent(self, new_tent_loc):
 """ Assumes new_tent_loc is a[n *INSTANCE* of] Location
 Adds new_tent_loc to the campus only if the tent is at least 0.5 
distance
 away from all other tents already there. Campus is unchanged otherwise.
 Returns True if it could add the tent, False otherwise. """
 # Your code here

 def remove_tent(self, tent_loc):
 """ Assumes tent_loc is a[n *INSTANCE* of] Location
 Removes tent_loc from the campus.
 Raises a ValueError if there is not a tent at tent_loc.
 Does not return anything """
 # Your code here

 def get_tents(self):
 """ Returns a list of all tents on the campus. The list should contain
 the string representation of the Location of a tent. The list should
 be sorted by the x coordinate of the location. """
 # Your code here

## END: READABLE CODE EXAMPLE ##

But what is most important to remember here is _not_ so much
the _number_ of spaces used, but that the number is greater
than _zero_, and that the spacing is _consistent_. For
instance: if one feels that two spaces between methods is
more desirable then that is okay, but, one should maintain
the two space buffer between *ALL* methods in the script
*AND* furthermore, expand the buffer between classes to four
spaces -- because consistency is the key!

But this code is not only lacking an intuitive format, it is
also lacking an intelligent design. For instance: this
object model is just begging for a "Tent object" with the
Location being an attribute of each individual "Tent".
Because it makes absolutely no sense for the 

Re: how to group by function if one of the group has relationship with another one in the group?

2017-07-30 Thread Ho Yeung Lee
which function should be used for this problem?

On Saturday, July 29, 2017 at 11:02:30 PM UTC+8, Piet van Oostrum wrote:
> Peter Otten <__pete...@web.de> writes:
> 
> > Ho Yeung Lee wrote:
> >
> >> from itertools import groupby
> >> 
> >> testing1 = [(1,1),(2,3),(2,4),(3,5),(3,6),(4,6)]
> >> def isneighborlocation(lo1, lo2):
> >> if abs(lo1[0] - lo2[0]) == 1  or lo1[1] == lo2[1]:
> >> return 1
> >> elif abs(lo1[1] - lo2[1]) == 1  or lo1[0] == lo2[0]:
> >> return 1
> >> else:
> >> return 0
> >> 
> >> groupda = groupby(testing1, isneighborlocation)
> >> for key, group1 in groupda:
> >> print key
> >> for thing in group1:
> >> print thing
> >> 
> >> expect output 3 group
> >> group1 [(1,1)]
> >> group2 [(2,3),(2,4]
> >> group3 [(3,5),(3,6),(4,6)]
> >
> > groupby() calculates the key value from the current item only, so there's 
> > no 
> > "natural" way to apply it to your problem.
> >
> > Possible workarounds are to feed it pairs of neighbouring items (think 
> > zip()) or a stateful key function. Below is an example of the latter:
> >
> > $ cat sequential_group_class.py
> > from itertools import groupby
> >
> > missing = object()
> >
> > class PairKey:
> > def __init__(self, continued):
> > self.prev = missing
> > self.continued = continued
> > self.key = False
> >
> > def __call__(self, item):
> > if self.prev is not missing and not self.continued(self.prev, item):
> > self.key = not self.key
> > self.prev = item
> > return self.key
> >
> > def isneighborlocation(lo1, lo2):
> > x1, y1 = lo1
> > x2, y2 = lo2
> > dx = x1 - x2
> > dy = y1 - y2
> > return dx*dx + dy*dy <= 1
> >
> > items = [(1,1),(2,3),(2,4),(3,5),(3,6),(4,6)]
> >
> > for key, group in groupby(items, key=PairKey(isneighborlocation)):
> > print key, list(group)
> >
> > $ python sequential_group_class.py 
> > False [(1, 1)]
> > True [(2, 3), (2, 4)]
> > False [(3, 5), (3, 6), (4, 6)]
> 
> That only works if
> (a) The elements in the list are already clustered on group (i.e. all
> elements of a group are adjacent)
> (b) In a group the order is such that adjacent elements are direct
> neigbours, i.e. their distance is at most 1.
> 
> So 'groupby' is not a natural solution for this problem.
> -- 
> Piet van Oostrum 
> WWW: http://piet.vanoostrum.org/
> PGP key: [8DAE142BE17999C4]

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Issues with Python

2017-07-30 Thread Rick Johnson
> Hi, I am new to Python and though I have been able to
> download the 3.6 version on my laptop , I still have
> issues with the syntax. While writing a program to
> execute, it will display syntax error with different
> shades of color usually green or yellow.

Which IDE (aka: fancy text editor) are you using to write this
code?

> What can I do about this?

About what?

(!) Do you want to change the colors of the syntax
hilighting?

(2) Do you want to know how to prevent or fix syntax errors?

(3) Something else entirely?

Unfortunately last weekend i had to pawn my crystal ball to
payoff the vig, (it seems my financier is not the type to
just "fuggetaboutit") so i'm afraid you'll have to be a
_little_ more specific when asking questions. But seriously.
:-) Syntax hilighting is used by some editors to help a
programmer differentiate between certain elements of code.
And this hilighting can be very helpful to the beginner.

> How do I know the error and effect it?

Oh, you'll know when you make a mistake, because Python will
throw an error message. For instance, if you type "aaa"
(without the quotes) at the Python command prompt, you'll
receive a message that looks similar to this:

Traceback (most recent call last):
  File "", line 1, in 
aaa
NameError: name 'aaa' is not defined

This one is easy to diagnose. But in order to understand
Python exception messages you need to read some tutorials.
If you think you can start writing code (even Python code)
without some sort of "guide", then you're going to have a
real difficult time. Even folks with prior programming
experience need a guide. I imagine it would be like a
delivery driver moving from Paris to London and trying to
navigate around the streets of Merry ol' London using a map
of Paris. It's just not practical.

> Can't it be programmed like we have in excel that will tell
> you error and prompt you if you wish to accept the right
> formula format?

By utilizing Python, or any other programming language that
is available (and boy, there are quite a few of them!), you
can program your computer to do just about anything you
want. Maybe you could even write a real life HAL5000! But if
you're expecting that your experience with Micrcosoft Excel
formulas will translate over into Python, well, then, you're
in a tough time. Excel is a "single purpose software"
whereas Python is a "general purpose programming language".
Using Python, you could write a spreadsheet program like
Excel. Although I wouldn't suggest it, as there are already
tons of them freely available, and Python is not the best
language for something like that, and Microsoft would not be
too happy about it. But you could do it if you were so
inclined. My advice is that you visit the Python.org website
and look through the list of tutorials for absolute
beginners. After completing a few of these tutorials, you
should be off and running in no time. Here is link:

https://wiki.python.org/moin/BeginnersGuide/NonProgrammers

After clicking the link, skip down to the section titled
"Tutorials and Websites", and start with "One Day of IDLE
Toying". IDLE is a "fancy text editor" that ships with
Python, and this tutorial is very gentle on beginners. After
you have finished "One Day of IDLE Toying", my next
suggestion would be "A Byte of Python", which will introduce
you to some basics. From there, you can go through all the
other tutorials. When you have finished all the beginner
tutorials, then take a stab at the advanced section. Here is
a link

https://wiki.python.org/moin/BeginnersGuide/Programmers

And don't forget, Google is a programmers best friend.

Who surprisingly, hardly ever complains.

Which unfortunately, is something i cannot say for the women
i have known. But i digress! O;-)
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: YAML in std lib?

2017-07-30 Thread Ben Finney
Steve D'Aprano  writes:

> On Sun, 30 Jul 2017 01:27 am, Goldstein wrote:
>
> > I'm new in this mailing list and, in fact, I've registered for one
> > simple question. Why YAML is not yet included in the standard Python
> > library? It's the most pythonic markup language, I think, and it's
> > pretty popular.
>
> There are many reasons why a particular library may not be included in the
> standard library:

Those are all reasons worth considering. Most of them, though, are
reasons why a proposal to include something in the Python standard
library might be *rejected* after being proposed for discussion.


Including something in the standard library needs to be discussed in the
context of a specific proposal. There is a procedure for that: the
Python Enhancement Proposal https://www.python.org/dev/peps/pep-0001/>.

So, an important reason to consider: Perhaps no-one has developed and
championed a specific Python Enhancement Proposal for including that in
the standard library.

I don't know of any PEP yet which specifies exactly what to add to the
standard library for YAML (and how to ensure it continues to be
maintained in the standard library). There may have been vague requests
for “can we have PyYAML in the standard library?”, but those are void in
this context, because that's not what actually gets the discussion
looking at specifics.

My advice to the original poster: Have a search for past proposals and
see what discussion ensued. If there was no such proposal, try writing
one and championing it.

-- 
 \ “You say I took the name in vain / I don't even know the name / |
  `\But if I did, well, really, what's it to you?” —Leonard Cohen, |
_o__) _Hallelujah_ |
Ben Finney

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Issues with Python

2017-07-30 Thread Byung-Hee HWANG (황병희, 黃炳熙)
Ode Idoko via Python-list  께서 쓰시길,
 《記事 全文  에서》:

> ... it will display syntax error with ...

Maybe, you did copy & paste, just i guess ... if not, ignore it.

-- 
^고맙습니다 _白衣從軍_ 감사합니다_^))//

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Where is python and idle?

2017-07-30 Thread J. Clarke
In article , 
br...@brianlcase.com says...
> 
> Thank you, That is where it is.  Would not have found it without your 
> help. Now, to find IDLE.
> 
> rgrds,
> 
> Brian
> 
> 
> On 7/21/2017 10:19 AM, Nathan Ernst wrote:
> > Check your user folder. For me, on my PC, python is installed 
> > at C:\Users\nernst\AppData\Local\Programs\Python
> >
> > Regards,
> > Nate
> >
> > On Fri, Jul 21, 2017 at 9:24 AM, Brian Case  > > wrote:
> >
> > I am running windows 10 version 1703 as administrator on a Dell
> > Inspiron 15 laptop.
> >
> > I downloaded and installed python 3.6.2 from
> > https://www.python.org/downloads/
> >  for windows.
> >
> > https://www.programiz.com/python-programming
> >  instructs me to
> > open IDLE once that install completed.
> >
> > But I find NEITHER Python nor IDLE anywhere on my machine.
> >
> > I reran the install which gave me options for REPAIR. I ran it,
> > which completed successfully and provided the python-list email
> > address.
> >
> > I still cannot find an executable or a folder for anything
> > beginning with Python.
> >
> > Where should I look besides folders C:\Program Files and
> > C:\Program Files (x86)?
> >
> >  Regards,
> >
> > Brian Case
> > -- 
> > https://mail.python.org/mailman/listinfo/python-list
> > 
> >
> >

Did you try "Hey, Cortana, launch idle"?  Works for me.


-- 
https://mail.python.org/mailman/listinfo/python-list


Python for Bioinformatics: New book announcement

2017-07-30 Thread Sebastian Bassi
I am glad to announce the second edition of Python for Bioinformatics. In
today's data driven biology, programming knowledge is essential in turning
ideas into testable hypothesis. Based on my extensive experience, Python
for Bioinformatics, Second Edition helps biologists get to grips with the
basics of software development. Requiring no prior knowledge of
programming-related concepts, the book focuses on the easy-to-use, yet
powerful, Python computer language.
This new edition is updated throughout to Python 3 and is designed not just
to help scientists master the basics, but to do more in less time and in a
reproducible way. New developments added in this edition include NoSQL
databases, the Anaconda Python distribution, graphical libraries like
Bokeh, and the use of GitHub for collaborative development.
Most of the code can be executed online using a collection of Jupyter
Notebooks hosted at https://notebooks.azure.com/library/py3.us. All source
code is available at GitHub (https://github.com/Serulab/Py4Bio)
The intended audience of this book are bioinformatics students and
graduates who are not software developers but needs to learn how to
program. Software developers can also take advantage of the book, since
there is also advanced and reference material.

Table of contents

Section I: Programming

Chapter 1: ■ Introduction
Chapter 2 ■ First Steps with Python
Chapter 3 ■ Basic Programming: Data Types
Chapter 4 ■ Programming: Flow Control
Chapter 5 ■ Handling Files
Chapter 6 ■ Code Modularizing
Chapter 7 ■ Error Handling
Chapter 8 ■ Introduction to Object Orienting Programming (OOP)
Chapter 9 ■ Introduction to Biopython

Section II: Advanced Topics

Chapter 10 ■ Web Applications
Chapter 11 ■ XML
Chapter 12 ■ Python and Databases
Chapter 13 ■ Regular Expressions
Chapter 14 ■ Graphics in Python

Section III: Python Recipes with Commented Source Code

Chapter 15 ■ Sequence Manipulation in Batch
Chapter 16 ■ Web Application for Filtering Vector Contamination
Chapter 17 ■ Searching for PCR Primers Using Primer3
Chapter 18 ■ Calculating Melting Temperature from a Set of Primers
Chapter 19 ■ Filtering Out Specific Fields from a GenBank File
Chapter 20 ■ Inferring Splicing Sites
Chapter 21 ■ Web Server for Multiple Alignment
Chapter 22 ■ Drawing Marker Positions Using Data Stored in a Database
Chapter 23 ■ DNA Mutations with Restrictions (On-Line only)

Section IV: Appendices

Appendix A ■ INTRODUCTION TO VERSION CONTROL
Appendix B ■ PYTHONANYWHERE
Appendix C ■ REFERENCE

Where to buy? In Amazon (http://amzn.to/2vWazcL) or at the publisher web
site (https://goo.gl/t2uoyN), save 20% with the promo code AZR94 (valid
only in the publisher site and up to December 2017).

For more information, include book mailing list, visit http://py3.us/
-- 
https://mail.python.org/mailman/listinfo/python-list