[OT?]gmane not updating

2013-04-06 Thread breamoreboy
The gmane site is online but none of the Python lists I subscribe to have been updated for over 24 hours. I fired off an email yesterday evening to larsi + gmane at gnus dot org but I've no idea whether there's anybody to read it, or even if it's actually been delivered :( Is there anybody

Re: generator/coroutine terminology

2015-03-12 Thread breamoreboy
On Thursday, March 12, 2015 at 1:35:48 PM UTC, Rustom Mody wrote: This is more a question about standard terminology/conventions than about semantics - of course assuming I understand :-) Say I have a simple yielding function: def foo(x): yield x+1 yield x+2 And I have g =

Re: Canopy editor-Variables browser and help

2015-08-23 Thread breamoreboy
On Saturday, May 2, 2015 at 8:50:22 PM UTC+1, lbertolotti wrote: Can I: 1.Enable a variable browser in Canopy editor similar to the Spyder editor? 2.Writing a function say log( gives me the function help, but I can't read the whole documentation 3.Eclipse had a auto-complete, can I enable

Re: Should non-security 2.7 bugs be fixed?

2015-07-21 Thread breamoreboy
On Tuesday, July 21, 2015 at 4:04:30 AM UTC+1, Rick Johnson wrote: On Sunday, July 19, 2015 at 9:17:11 PM UTC-5, Rustom Mody wrote: List of python committers: - 11081 Guido van Rossum [snip: long list] Thanks for posting this list of names. I had put in a

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread breamoreboy
On Sunday, July 19, 2015 at 10:27:58 PM UTC+1, Rick Johnson wrote: On Sunday, July 19, 2015 at 3:36:21 PM UTC-5, bream...@gmail.com wrote: Wrong, not all programmers need the patches as a lot of people couldn't care two hoots about 2.7. Well you should. Because apparently, you're

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread breamoreboy
On Monday, July 20, 2015 at 1:49:58 AM UTC+1, Rick Johnson wrote: On Sunday, July 19, 2015 at 7:28:28 PM UTC-5, Mark Lawrence wrote: Thank goodness for that as you make no sense at all. As for this ivory tower nonsense, [...] Cecil, don't pay too much attention to Mark, he's a glory

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread breamoreboy
On Sunday, July 19, 2015 at 8:13:50 PM UTC+1, Rick Johnson wrote: On Sunday, July 19, 2015 at 1:44:25 PM UTC-5, bream...@gmail.com wrote: No, it's simply that nobody can force volunteers to back port something when they're just not interested in doing the work, for whatever reason. Hence

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread breamoreboy
On Sunday, July 19, 2015 at 8:29:06 PM UTC+1, Rick Johnson wrote: On Sunday, July 19, 2015 at 2:02:12 PM UTC-5, Ian wrote: Poor analogy. Babies need others to change their diapers for them because they're not capable of doing it for themselves. Duh! That was the point of his analogy,

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread breamoreboy
On Sunday, July 19, 2015 at 7:28:15 PM UTC+1, Rick Johnson wrote: On Sunday, July 19, 2015 at 12:55:06 PM UTC-5, Mark Lawrence wrote: I don't think so, I know. If they want the patches that badly and can't do it themselves they'll have to grin and bear it, or do a bit of begging, or pay

Re: Silly question about pip

2015-09-10 Thread breamoreboy
On Wednesday, September 9, 2015 at 10:06:31 AM UTC+1, wxjm...@gmail.com wrote: > Le mardi 8 septembre 2015 21:02:31 UTC+2, wxjm...@gmail.com a écrit : > > Le mardi 8 septembre 2015 20:18:20 UTC+2, Irmen de Jong a écrit : > > > On 8-9-2015 17:54, wxjmfa...@gmail.com wrote: > > > > win7 / py433 > >

Re: Unacceptable behavior

2016-04-10 Thread breamoreboy
On Sunday, April 10, 2016 at 2:54:45 PM UTC+1, Jeff Schumaker wrote: > On Thursday, April 7, 2016 at 2:50:32 AM UTC-4, Ethan Furman wrote: > > On 04/05/2016 01:05 PM, Thomas 'PointedEars' Lahn wrote: > > > > > | >>> from email import ID10T > > > > Thomas, as has been pointed out to you in

Re: Unacceptable behavior

2016-04-10 Thread breamoreboy
On Sunday, April 10, 2016 at 3:03:37 PM UTC+1, Chris Angelico wrote: > On Sun, Apr 10, 2016 at 11:54 PM, Jeff Schumaker > wrote: > > As a new member of this group, I am not sure on how to report unacceptable > > behavior. If this is not the correct way, I apologize. > >

Re: What's the best way to minimize the need of run time checks?

2016-08-14 Thread breamoreboy
On Sunday, August 14, 2016 at 7:09:47 AM UTC+1, Paul Rubin wrote: > Steven D'Aprano writes: > > If the Python community rallies around this "record" functionality and > > takes to it like they took too namedtuple > > I like namedtuple and I think that it's a feature that they're modified > by

Re: What's the best way to minimize the need of run time checks?

2016-08-12 Thread breamoreboy
On Friday, August 12, 2016 at 2:31:01 PM UTC+1, Michael Torrie wrote: > On 08/12/2016 05:07 AM, Steven D'Aprano wrote: > > The first time I ever compiled a full-sized application (not a particular > > large one either, it was a text editor a little more featureful than > > Notepad) it took

Re: can't add variables to instances of built-in classes

2016-07-20 Thread breamoreboy
On Wednesday, July 20, 2016 at 10:48:23 PM UTC+1, Lawrence D’Oliveiro wrote: > On Thursday, July 21, 2016 at 12:11:09 AM UTC+12, Steven D'Aprano wrote: > > > [long irrelevant rant deleted] > > Just because I pointed out what a load of nonsense you were spouting about > __slots__, by giving a

Re: PEP Request: Advanced Data Structures

2016-07-16 Thread breamoreboy
On Saturday, July 16, 2016 at 11:15:04 PM UTC+1, Shrey Desai wrote: > I have found it slightly frustrating that Python does not have built-in > support for advanced data structures (Linked Lists, Stacks/Queues, BST) in > its distribution. Many computer science students, developers, and software

Re: can't add variables to instances of built-in classes

2016-07-19 Thread breamoreboy
On Tuesday, July 19, 2016 at 3:54:12 AM UTC+1, Lawrence D’Oliveiro wrote: > On Tuesday, July 19, 2016 at 11:12:52 AM UTC+12, bream...@gmail.com wrote: > > > > On Monday, July 18, 2016 at 10:48:15 PM UTC+1, Lawrence D’Oliveiro wrote: > >> > >> > >> When you have

Ned Batchelder: Loop Like A Native

2016-08-06 Thread breamoreboy
A couple or three years old but this is well worth seeing for anybody, regardless of your Python expertise. http://nedbatchelder.com/text/iter.html Kindest regards. Mark Lawrence. -- https://mail.python.org/mailman/listinfo/python-list

Re: Ned Batchelder: Loop Like A Native

2016-08-08 Thread breamoreboy
On Sunday, August 7, 2016 at 2:26:48 AM UTC+1, Ned Batchelder wrote: > On Saturday, August 6, 2016 at 9:21:24 PM UTC-4, Lawrence D’Oliveiro wrote: > > On Sunday, August 7, 2016 at 11:36:06 AM UTC+12, Ned Batchelder wrote: > > > > > Didn't we already do this debate? > > > > I understand. You want

Re: Beginner help

2017-02-05 Thread breamoreboy
On Sunday, February 5, 2017 at 11:27:19 PM UTC, pha...@u.rochester.edu wrote: > Hi everyone. I'm new to python and have hit a bit of a wall with an > assignment I'm working on. I created a number of classes and instantiated > them, now I need to create a list out of them. I am looking for

Re: [Python-ideas] "Immutable Builder" Pattern and Operator

2017-01-23 Thread breamoreboy
On Monday, January 23, 2017 at 2:11:53 PM UTC, M.-A. Lemburg wrote: > On 23.01.2017 14:28, Soni L. wrote: > > > > > > On 23/01/17 11:18 AM, M.-A. Lemburg wrote: > >> On 23.01.2017 14:05, Soni L. wrote: > >>> Yeah but the dotequals operator has many other benefits: > >>> > >>> long_name .=

Re: Is it possible to get the Physical memory address of a variable in python?

2017-01-23 Thread breamoreboy
On Monday, January 23, 2017 at 5:59:42 PM UTC, Sourabh Kalal wrote: > how we can access the value from using id.. > like x=10 > id(x) > 3235346364 > > how i can read value 10 using id 3235346364 What are you trying to achieve here? If you'd explain that rather than how you're trying to achieve

Re: Python

2017-01-25 Thread breamoreboy
On Wednesday, January 25, 2017 at 2:15:16 PM UTC, murphyc...@gmail.com wrote: > Need help Please read this http://www.catb.org/~esr/faqs/smart-questions.html and then this http://sscce.org/ before trying again. Kindest regards. Mark Lawrence --

Re: problems installing pylab

2017-02-22 Thread breamoreboy
On Tuesday, February 21, 2017 at 3:55:40 PM UTC, Robert William Lunnon wrote: > Dear Python > > I am trying to install pylab alongside python 3.6. However when I type > > python -m pip install pylab > > I get the message > > No module named site > > In the documentation [documentation for

Re: CSV

2017-02-22 Thread breamoreboy
On Wednesday, February 22, 2017 at 5:55:47 PM UTC, Braxton Alfred wrote: > Why does this not run? It is right out of the CSV file in the Standard Lib. > > Python ver 3.4.4, 64 bit. > > import csv > """ READ EXCEL FILE """ > filename = 'c:\users\user\my documents\Braxton\Excel\personal\bp.csv'

Re: print odd numbers of lines from tekst WITHOUT space between lines

2017-02-19 Thread breamoreboy
On Saturday, February 18, 2017 at 6:03:37 PM UTC, Wildman wrote: > On Sat, 18 Feb 2017 09:38:32 -0800, TTaglo wrote: > > > i = 1 > > f = open ('rosalind_ini5(1).txt') > > for line in f.readlines(): > > if i % 2 == 0: > > print line > > i += 1 > > > > > > How do i get output

How coding in Python is bad for you

2017-01-23 Thread breamoreboy
The article is here http://lenkaspace.net/index.php/blog/show/111 Kindest regards. Mark Lawrence. -- https://mail.python.org/mailman/listinfo/python-list

Re: The Joys Of Data-Driven Programming

2016-08-21 Thread breamoreboy
On Sunday, August 21, 2016 at 11:18:49 PM UTC+1, Marko Rauhamaa wrote: > Lawrence D’Oliveiro : > > > On Monday, August 22, 2016 at 2:20:39 AM UTC+12, Marko Rauhamaa wrote: > >> ... can heartily recommend SCons. > > > > It’s Python 2 only, not Python 3. > > And? SCons is

Re: Python application launcher (for Python code)

2017-02-25 Thread breamoreboy
On Friday, February 24, 2017 at 1:54:39 AM UTC, Deborah Swanson wrote: > Michael Torrie wrote, on February 23, 2017 7:43 AM > > > > On 2017-02-22 09:49 PM, Deborah Swanson wrote: > > > Didn't even look. Visual Studio has always been pricey, and it never > > > > occurred to me that they might

Re: Would like some thoughts on a grouped iterator.

2016-09-05 Thread breamoreboy
On Monday, September 5, 2016 at 10:42:27 AM UTC+1, Peter Otten wrote: > Antoon Pardon wrote: > > > I need an interator that takes an already existing iterator and > > divides it into subiterators of items belonging together. > > > > For instance take the following class, wich would check whether

Re: listdir

2016-09-05 Thread breamoreboy
On Monday, September 5, 2016 at 4:34:45 PM UTC+1, Rustom Mody wrote: > So what do you get when you replace the if-else with a simple: print(file) ? > > [And BTW dont use the variable name “file” its um sacred] Only in Python 2, it's gone from the built-ins in Python 3

Re: Python 3.5.0 python --version command reports 2.5.4

2016-09-06 Thread breamoreboy
On Tuesday, September 6, 2016 at 10:06:34 PM UTC+1, Yang, Gang CTR (US) wrote: > Hi, > > I just installed Python 3.5.0 (since 3.5.2 would not installed on Windows > 2008 R2) and tried the python --version command. Surprisingly, the command > reported 2.5.4. What's going on? > > Gang Yang >

Re: Oh gods can we get any more off-topic *wink* [was Re: [Python-ideas] Inconsistencies]

2016-09-14 Thread breamoreboy
On Wednesday, September 14, 2016 at 9:00:04 PM UTC+1, MRAB wrote: > On 2016-09-14 18:43, Dale Marvin via Python-list wrote: > > On 9/14/16 12:20 AM, Steven D'Aprano wrote: > >> On Wednesday 14 September 2016 16:54, Rustom Mody wrote: > >> > >>> everything we know will be negated in 5-50-500 years

Re: Why don't we call the for loop what it really is, a foreach loop?

2016-09-14 Thread breamoreboy
On Tuesday, September 13, 2016 at 9:57:38 PM UTC+1, Richard Grigonis wrote: > It would help newbies and prevent confusion. I entirely agree. All together now "foreach is a jolly good fellow...". Kindest regards. Mark Lawrence. -- https://mail.python.org/mailman/listinfo/python-list

Re: python3 regex?

2016-09-10 Thread breamoreboy
On Saturday, September 10, 2016 at 4:12:17 AM UTC+1, Doug OLeary wrote: > Hey; > > Long term perl ahderent finally making the leap to python. From my reading, > python, for the most part, uses perl regex.. except, I can't seem to make it > work... > > I have a txt file from which I can grab

Re: SyntaxError: multiple statements found while compiling a single statement

2016-10-08 Thread breamoreboy
On Saturday, October 8, 2016 at 12:07:47 PM UTC+1, Rustom Mody wrote: > On Saturday, October 8, 2016 at 1:21:50 PM UTC+5:30, Cai Gengyang wrote: > > This is the result when I copy and paste it one line at a time : > > > > >>> rect_x = 50 > > >>> rect_y = 50 > > >>> while not done:

Re: How to read maple .m file into Python?

2016-10-09 Thread breamoreboy
On Sunday, October 9, 2016 at 10:00:26 PM UTC+1, Ho Yeung Lee wrote: > i saved a list of matrix of algebra into .m file in maple > How to read and import into Python for sympy to use? I'd start here http://www.maplesoft.com/support/help/Maple/view.aspx?path=UserManual/Chapter11 which was the

Parlez-vous Python?

2016-08-25 Thread breamoreboy
Well the language certainly is getting mentioned all over the place https://yougov.co.uk/news/2016/08/23/parlez-vous-python/ Kindest regards. Mark Lawrence. -- https://mail.python.org/mailman/listinfo/python-list

Re: Is duck-typing misnamed?

2016-08-27 Thread breamoreboy
This should go to Python ideas as it would involve a substantial change to the docs. Kindest regards. Mark Lawrence. -- https://mail.python.org/mailman/listinfo/python-list

Re: Error numpy install

2016-08-27 Thread breamoreboy
On Saturday, August 27, 2016 at 5:45:58 PM UTC+1, GP wrote: > I have installed numpy using the command pip install numpy from command > prompt and I am getting the following error: > Traceback (most recent call last): > File "", line 1, in > import numpy > File >

Re: Is duck-typing misnamed?

2016-08-29 Thread breamoreboy
On Monday, August 29, 2016 at 12:08:26 PM UTC+1, Ben Finney wrote: > Michael Torrie writes: > > > Umm no, she was actually a witch. Which makes the scene even funnier. > > "Fair caught," she says at the end. > > She says [0] “It's a fair cop”, which is using the term “cop” to mean > the arrest

Re: Need help for the print() function with a better order

2016-10-03 Thread breamoreboy
On Sunday, October 2, 2016 at 2:12:39 AM UTC+1, 38016...@gmail.com wrote: > I am trying to print a simple decision tree for my homework. > The answer must keep in this format: > > Top 7,4,0.95 > career gain = 100 > 1.Management 2, 3, 0.9709505944546686 > 2.Service 5, 1,

Re: Is that forwards first or backwards first? (Re: unintuitive for-loop behavior)

2016-10-03 Thread breamoreboy
On Monday, October 3, 2016 at 12:53:55 PM UTC+1, Marko Rauhamaa wrote: > Gregory Ewing: > > > Turns out the only difference between first and reverse on that model > > is whether you lift up a little ring on the shaft of the gear lever > > prior to engagement. > > > > Who came up with *that*

Re: Is that forwards first or backwards first? (Re: unintuitive for-loop behavior)

2016-10-03 Thread breamoreboy
On Monday, October 3, 2016 at 5:41:23 PM UTC+1, BartC wrote: > On 03/10/2016 16:03, wrote: > > On Monday, October 3, 2016 at 12:53:55 PM UTC+1, Marko Rauhamaa wrote: > >> Gregory Ewing: > >> > >>> Turns out the only difference between first and reverse on that model > >>> is whether you lift up a

Re: What is a mechanism equivalent to "trace variable w ..." in Tcl for Python?

2016-09-30 Thread breamoreboy
On Friday, September 30, 2016 at 7:16:10 PM UTC+1, Les Cargill wrote: > A really interesting design approach in Tcl is to install a callback > when a variable is written to. This affords highly event-driven > programming. > > Example ( sorry; it's Tcl ) : > > > namespace eval events { >

Re: Counting words in a string??

2016-09-30 Thread breamoreboy
On Friday, September 30, 2016 at 8:12:47 PM UTC+1, Jake wrote: > On Friday, 30 September 2016 19:49:57 UTC+1, srinivas devaki wrote: > > On Oct 1, 2016 12:10 AM, "Jake" wrote: > > > > > > Hi, I need a program which: > > > 1) Asks the user for a sentence of their choice (not including > >

Re: Nested for loops and print statements

2016-09-26 Thread breamoreboy
On Monday, September 26, 2016 at 9:57:52 PM UTC+1, Cai Gengyang wrote: > Ok it works now: > > >>>for row in range(10): > for column in range(10): >print("*",end="") > > > > >

Re: inplace text filter - without writing file

2016-10-02 Thread breamoreboy
On Sunday, October 2, 2016 at 6:19:14 AM UTC+1, Sayth Renshaw wrote: > > I just can't quite get it. > > def return_files(file_list): > for filename in sorted(file_list): > file = os.path.join(dir_path, filename) > print(file) > with open(file) as fd: >

Re: Byte code descriptions somewhere?

2016-10-01 Thread breamoreboy
On Saturday, October 1, 2016 at 11:57:17 PM UTC+1, Cem Karan wrote: > Hi all, I've all of a sudden gotten interested in the CPython interpreter, > and started trying to understand how it ingests and runs byte code. I found > Include/opcode.h in the python sources, and I found some basic

Re: How to process syntax errors

2016-10-10 Thread breamoreboy
On Monday, October 10, 2016 at 3:15:40 PM UTC+1, mr.pune...@gmail.com wrote: > Hi > > Is there any way to capture syntax errors and process them ? I want to write > a function which calls every time whenever there is syntax error in the > program. > > For example, > > inside example.py >

Re: Deviding N(1,2,3,..,N) part from numeric list as summation of each values(don't sorted) has highest as possible.

2016-10-10 Thread breamoreboy
On Monday, October 10, 2016 at 5:25:46 PM UTC+1, Nuen9 wrote: > > Hi! > > > > Could it be, "Nuen9", that you would like to find a split where the > > split sums are close to each other? In other words, you define the > > number of splits (in your example: 3) and the algortihm should test all >

Re: Newbie Need Help On Regex!

2016-10-10 Thread breamoreboy
On Monday, October 10, 2016 at 3:58:56 PM UTC+1, infos...@gmail.com wrote: > Hey guys! > > I am new to learning regex in python and I'm wondering how do I use regex in > python to store the integers(positive and negative) i want into a list! > > For e.g. > > This is the data in a list. >

Re: Why doesn't Python include non-blocking keyboard input function?

2016-10-29 Thread breamoreboy
On Tuesday, October 25, 2016 at 11:02:47 AM UTC+1, BartC wrote: > On 25/10/2016 07:39, Steven D'Aprano wrote: > > >> I gather that non-blocking keyboard input functions aren't the easiest > >> thing > >> to implement. They seem to depend on the operating system. Still, ease of > >> use is a

Why are there so many Python Installers? Windows only :)

2016-11-07 Thread breamoreboy
Hi folks, an interesting blog from Steve Dower giving the history of the little beasties http://stevedower.id.au/blog/why-so-many-python-installers/ Kindest regards. Mark Lawrence. -- https://mail.python.org/mailman/listinfo/python-list

Why I took October off from OSS volunteering

2016-11-10 Thread breamoreboy
http://www.snarky.ca/why-i-took-october-off-from-oss-volunteering -- https://mail.python.org/mailman/listinfo/python-list

Re: How to sort this without 'cmp=' in python 3?

2016-10-14 Thread breamoreboy
On Saturday, October 15, 2016 at 12:53:48 AM UTC+1, sohca...@gmail.com wrote: > On Friday, October 14, 2016 at 4:35:08 PM UTC-7, 38016...@gmail.com wrote: > > nums=['3','30','34','32','9','5'] > > I need to sort the list in order to get the largest number string: > > '953433230' > > > >

Re: Without compilation, how to find bugs?

2016-10-14 Thread breamoreboy
On Friday, October 14, 2016 at 12:06:36 AM UTC+1, pozz wrote: > I come from the C language, that is a compiled and strongly typed > language. Python is compiled and dynamically and strongly typed but C is compiled and statically and weakly typed. > > All the tricks have a common goal: to

Re: Inplace shuffle function returns none

2016-10-18 Thread breamoreboy
On Tuesday, October 18, 2016 at 9:25:19 PM UTC+1, Sayth Renshaw wrote: > So why can't i assign the result slice to a variable b? > > It just keeps getting none. > > Sayth You are misunderstanding something that is fundamental in Python, namely that anything that is done inplace *ALWAYS*

Re: constructor classmethods

2016-11-02 Thread breamoreboy
On Wednesday, November 2, 2016 at 1:47:00 PM UTC, stes...@gmail.com wrote: > Hi > > I was hoping to canvas opinion on using classmethods as constructors over > __init__. > > We've got a colleague who is very keen that __init__ methods don't contain > any logic/implementation at all, and if

Re: Python Data base help

2016-10-09 Thread breamoreboy
On Sunday, October 9, 2016 at 7:56:57 PM UTC+1, Risat Haque wrote: > Hey, i have a data base filled with numbers from a recent drone flight. IT > contains, alt, long, lat, and time. > In python, i want to ask the user to put in a time : > askTime = (input("Choose a time (HourMinSec):")) > >

Re: Function to take the minimum of 3 numbers

2016-10-09 Thread breamoreboy
On Sunday, October 9, 2016 at 2:41:41 PM UTC+1, BartC wrote: > On 09/10/2016 13:01, Cai Gengyang wrote: > > I'm moving on to chapter 9 > > (http://programarcadegames.com/index.php?lang=en=lab_functions) of > > programarcadegames for the time being and going back to chapter 8 later > > (its just

Re: Help me!, I would like to find split where the split sums are close to each other?

2016-10-16 Thread breamoreboy
On Sunday, October 16, 2016 at 12:27:00 PM UTC+1, k.ade...@gmail.com wrote: > Help me!, I would like to find split where the split sums are close to each > other? > > I have a list is > > test = [10,20,30,40,50,60,70,80,90,100] > > ​and I would like to find split where the split sums are close

Re: New to python

2016-10-17 Thread breamoreboy
On Monday, October 17, 2016 at 8:51:52 PM UTC+1, Bill Cunningham wrote: > I just installed python I might start with 3. But there is version 2 out > too. So far I can '3+4' and get the answer. Nice. I typed the linux man page > and got a little info. So to learn this language is there an online

Re: Wrong release date in 3.6 whats new docs?

2016-12-14 Thread breamoreboy
On Wednesday, December 14, 2016 at 2:09:22 PM UTC, Nick Sarbicki wrote: > Afternoon everyone. > > Might be missing something obvious but the 3.6 What's New docs point to the > release date being the 12th. > > https://docs.python.org/3.6/whatsnew/3.6.html#what-s-new-in-python-3-6 > > I got the

Re: Using namedtuples field names for column indices in a list of lists

2017-01-09 Thread breamoreboy
On Monday, January 9, 2017 at 5:34:12 PM UTC, Tim Chase wrote: > On 2017-01-09 08:31, breamoreboy wrote: > > On Monday, January 9, 2017 at 2:22:19 PM UTC, Tim Chase wrote: > > > I usually wrap the iterable in something like > > > > > > def

Re: Python for WEB-page !?

2017-01-05 Thread breamoreboy
On Thursday, January 5, 2017 at 11:53:51 PM UTC, Victor Porton wrote: > Ionut Predoiu wrote: > > > I am a beginner in programming language. > > I want to know what version of Python I must to learn to use, beside of > > basic language, because I want to integrate in my site 1 page in which > >

Re: pip install -r requirements.txt fails with Python 3.6 on Windows 10

2017-01-03 Thread breamoreboy
On Tuesday, January 3, 2017 at 8:08:37 PM UTC, Uri Even-Chen wrote: > Thank you, I'll consider to update our requirements to latest versions of > all packages. Last time I checked in 22th December 2016 and all our > requirements were the latest versions. In the meantime we can keep using > Python

How Best to Coerce Python Objects to Integers?

2017-01-03 Thread breamoreboy
Hi all, I'd suggest that this http://blog.pyspoken.com/2017/01/02/how-best-to-coerce-python-objects-to-integers/ is not one of the greatest articles ever written about Python exception handling. Other opinions are welcome. Kindest regards. Mark Lawrence. --

Re: Using namedtuples field names for column indices in a list of lists

2017-01-09 Thread breamoreboy
On Monday, January 9, 2017 at 2:22:19 PM UTC, Tim Chase wrote: > On 2017-01-08 22:58, Deborah Swanson wrote: > > 1) I have a section that loops through the sorted data, compares two > > adjacent rows at a time, and marks one of them for deletion if the > > rows are identical. > > > > I'm using >

Re: pip install -r requirements.txt fails with Python 3.6 on Windows 10

2017-01-06 Thread breamoreboy
On Tuesday, January 3, 2017 at 8:08:37 PM UTC, Uri Even-Chen wrote: > Thank you, I'll consider to update our requirements to latest versions of > all packages. Last time I checked in 22th December 2016 and all our > requirements were the latest versions. In the meantime we can keep using > Python

How Best to Coerce Python Objects to Integers?

2017-01-06 Thread breamoreboy
Hi all, I'd suggest that this http://blog.pyspoken.com/2017/01/02/how-best-to-c oerce-python-objects-to-integers/ is not one of the greatest articles ever written about Python exception handling. Other opinions are welcome. Kindest regards. Mark Lawrence. --

Re: When will they fix Python _dbm?

2016-12-06 Thread breamoreboy
On Tuesday, December 6, 2016 at 9:35:19 PM UTC, Ian wrote: > On Mon, Dec 5, 2016 at 7:45 AM, clvanwall wrote: > > I have been a Perl programmer for 15+ years and decided to give Python a > > try. My platform is windows and I installed the latest 3.5.2. Next I > > decided to convert a perl

Re: Escaping confusion with Python 3 + MySQL

2017-03-26 Thread breamoreboy
On Sunday, March 26, 2017 at 8:33:49 PM UTC+1, Νίκος Βέργος wrote: > Τη Κυριακή, 26 Μαρτίου 2017 - 10:23:27 μ.μ. UTC+3, ο χρήστης > bream...@gmail.com έγραψε: > > On Sunday, March 26, 2017 at 4:11:54 PM UTC+1, Νίκος Βέργος wrote: > > > Τη Κυριακή, 26 Μαρτίου 2017 - 5:49:00 μ.μ. UTC+3, ο χρήστης

Re: Escaping confusion with Python 3 + MySQL

2017-03-26 Thread breamoreboy
On Sunday, March 26, 2017 at 4:11:54 PM UTC+1, Νίκος Βέργος wrote: > Τη Κυριακή, 26 Μαρτίου 2017 - 5:49:00 μ.μ. UTC+3, ο χρήστης Ian έγραψε: > > > The database wrapper won't do substitution into the middle of a string > > like that. Either concatenate the literal %'s on in the SQL statement > >

Re: Escaping confusion with Python 3 + MySQL

2017-03-26 Thread breamoreboy
On Sunday, March 26, 2017 at 3:11:50 PM UTC+1, Ian wrote: > On Sun, Mar 26, 2017 at 7:39 AM, MeV wrote: > > On Sunday, March 26, 2017 at 6:34:30 AM UTC-7, Νίκος Βέργος wrote: > >> with import cgitb; cgitb.enable() > >> > >> ProgrammingError(1064, "You have an error in your SQL syntax; check the >

PyPy2.7 and PyPy3.5 v5.7 - two in one release

2017-03-21 Thread breamoreboy
Hopefully this https://morepypy.blogspot.co.uk/2017/03/pypy27-and-pypy35-v57-two-in-one-release.html is rather more interesting for some than blatant trolling about spaces vs tabs. Kindest regards. Mark Lawrence. -- https://mail.python.org/mailman/listinfo/python-list

Re: Python and the need for speed

2017-04-11 Thread breamoreboy
On Tuesday, April 11, 2017 at 2:32:34 PM UTC+1, Steve D'Aprano wrote: > On Tue, 11 Apr 2017 07:00 pm, breamoreboy wrote: > > > While we're at it how do we go about changing this > > https://www.python.org/community/lists/ which states that > > "comp.lang.python

Re: Temporary variables in list comprehensions

2017-04-02 Thread breamoreboy
On Sunday, April 2, 2017 at 1:08:17 AM UTC+1, Robert L. wrote: > I don't believe in western morality, i.e. don't kill civilians or children > The only way to fight a moral war is the Jewish way: Destroy their holy sites. > Kill men, women, and children (and cattle). --- Rabbi Manis Friedman >

Re: How to make use of .egg files?

2017-04-05 Thread breamoreboy
On Wednesday, April 5, 2017 at 2:00:41 PM UTC+1, David Shi wrote: > Can anyone explain please. > Regards. > David Egg files are old, wheels are the new thing http://pythonwheels.com/ Kindest regards. Mark Lawrence. -- https://mail.python.org/mailman/listinfo/python-list

Re: read in a list in a file to list

2017-04-08 Thread breamoreboy
On Saturday, April 8, 2017 at 7:32:52 PM UTC+1, john polo wrote: > Hi, > > I am using Python 3.6 on Windows 7. > > I have a file called apefile.txt. apefile.txt's contents are: > > apes = "Home sapiens", "Pan troglodytes", "Gorilla gorilla" > > I have a script: > > apefile =

Re: Python and the need for speed

2017-04-10 Thread breamoreboy
On Monday, April 10, 2017 at 1:25:48 PM UTC+1, Mikhail V wrote: > > Still I miss some old school features in Python, e.g. "goto" statement would > be very useful in some cases. I know it is considered bad style > to use goto, but in some cases it is just most natural thing to use. >

Python and the need for speed

2017-04-08 Thread breamoreboy
I've an idea that http://www.mos6581.org/python_need_for_speed is a week late for April Fool's but just in case I'm sure that some of you may wish to comment. Kindest regards. Mark Lawrence. -- https://mail.python.org/mailman/listinfo/python-list

Re: Python and the need for speed

2017-04-11 Thread breamoreboy
On Tuesday, April 11, 2017 at 9:26:14 AM UTC+1, Tim Golden wrote: > On 11/04/2017 00:33, Chris Angelico wrote: > > If he does, it might be the final thing that gets him banned from the > > mailing list. > > A meta-note, since I happen to have seen this email come up. > > I don't know about the

Re: Python Command Line Arguments

2017-04-17 Thread breamoreboy
On Friday, April 14, 2017 at 2:44:09 PM UTC+1, Bernd Nawothnig wrote: > On 2017-04-13, Jason Friedman wrote: > >> I have this code which I got from https://www.tutorialspoint. > >> com/python/python_command_line_arguments.htm The example works fine but > >> when I modify it to what I need, it only

Re: Python Command Line Arguments

2017-04-17 Thread breamoreboy
On Saturday, April 15, 2017 at 6:45:51 PM UTC+1, Grant Edwards wrote: > On 2017-04-14, Bernd Nawothnig wrote: > > > He should switch to argparse in any case because getopt is no longer > > supported and does only receive bugfixes. > > In my book, "receiving bug fixes" means it's still supported.

Re: Regular Expressions, Speed, Python, and NFA

2017-04-17 Thread breamoreboy
On Friday, April 14, 2017 at 4:12:27 PM UTC+1, Malik Rumi wrote: > I am running some tests using the site regex101 to figure out the correct > regexs to use for a project. I was surprised at how slow it was, constantly > needing to increase the timeouts. I went Googling for a reason, and

Re: Moderating the list [was: Python and the need for speed]

2017-04-17 Thread breamoreboy
On Thursday, April 13, 2017 at 10:31:22 AM UTC+1, Tim Golden wrote: > On 13/04/2017 03:39, Jason Friedman wrote: > >> > >> However, it's simply a technical fact: the thing which we moderate is the > >>> mailing list. We can control which posts make it through from the > >>> newsgroup > >>> by

Re: Hi! i need some help with a program in python on Raspberry pi3.

2017-04-17 Thread breamoreboy
On Friday, April 14, 2017 at 3:27:29 PM UTC+1, Kasper wrote: > every time i run the program i get this messeage: > > Traceback (most recent call last): > File "smartmirror.py", line 159, in get_weather > temprature2 = "%S%S" % (str(int(weather_obj['currently']['temperature'])), >

Re: Bigotry (you win, I give up)

2017-04-21 Thread breamoreboy
On Friday, April 21, 2017 at 10:08:08 AM UTC+1, Antoon Pardon wrote: > Op 20-04-17 om 17:25 schreef Rustom Mody: > > But more importantly thank you for your polite and consistent pointing out > > to > > Ben Finney that his religion-bashing signature lines [many of them] and his > > claims to

Re: Bigotry (you win, I give up)

2017-04-21 Thread breamoreboy
On Friday, April 21, 2017 at 2:33:03 PM UTC+1, Ethan Furman wrote: > On 04/21/2017 03:38 AM, breamoreboy wrote: > > > Talking of signatures another of Robert L's beauties landed three or so > > hours ago. He really is a right little charmer :-( > > Not on

Re: Read a text file into a Pandas DataFrame Table

2017-04-13 Thread breamoreboy
On Thursday, April 13, 2017 at 9:15:18 AM UTC+1, David Shi wrote: > Dear All, > Can anyone help to read a text file into a Pandas DataFrame Table? > Please see the link below. > http://www.ebi.ac.uk/ena/data/warehouse/search?query=%22geo_circ(-0.587,-90.5713,170)%22=sequence_release=text > >

Re: Reading structured text file (non-CSV) into Pandas Dataframe

2017-04-13 Thread breamoreboy
On Thursday, April 13, 2017 at 11:09:23 AM UTC+1, David Shi wrote: > http://www.ebi.ac.uk/ena/data/warehouse/search?query=%22geo_circ(-0.587,-90.5713,170)%22=sequence_release=text > The above is a web link to a structured text file.  It is not a CSV. > How can this text file be read into a Pandas

Re: Rawest raw string literals

2017-04-20 Thread breamoreboy
On Thursday, April 20, 2017 at 4:59:48 PM UTC+1, Grant Edwards wrote: > On 2017-04-20, Mikhail V wrote: > > Quite often I need raw string literals for concatenating console commands. > > I want to input them exactly as they are in python sources. > > > > There is r"" string, but it is obviously

Re: Looping [was Re: Python and the need for speed]

2017-04-17 Thread breamoreboy
On Tuesday, April 18, 2017 at 2:09:19 AM UTC+1, Paul Rubin wrote: > Ben Bacarisse writes: > > ? I get "AttributeError: 'itertools.dropwhile' object has no attribute > > 'next'" from your example. > > Hmm, .next() worked ok for me in Python 2.7.5. Not sure what happened. > Maybe something went

Re: Bigotry (you win, I give up)

2017-04-19 Thread breamoreboy
On Thursday, April 20, 2017 at 12:41:58 AM UTC+1, Ethan Furman wrote: > On 04/19/2017 03:58 PM, Ben Finney wrote: > > Ethan Furman writes: > > > >> […] asking that you be courteous to those who come here to discuss > >> Python. > > > > On that we can agree. Let's be courteous to people here, and

Re: How to obtain an up-to-date document of tkinter

2017-04-19 Thread breamoreboy
On Thursday, April 20, 2017 at 1:09:45 AM UTC+1, Mok-Kong Shen wrote: > How could one obtain an up-to-date document of tkinter. I ask this > question because apparently there are stuffs of tkinter that > worked in Python 3.5 but no longer in Python 3.6.1. > > M. K. Shen

Re: spam issue

2017-03-02 Thread breamoreboy
On Thursday, March 2, 2017 at 4:08:44 PM UTC, Andrew Zyman wrote: > Why is this group have such an obscene number of spam posts ? > I'm subscribed to a few other google groups and this is the only one that has > this issue. The bulk having lots of block capitals and in Italian? Been happening

Re: Elastic Search

2017-04-07 Thread breamoreboy
On Friday, April 7, 2017 at 9:16:51 PM UTC+1, Keith Anthony wrote: > I need some insightful examples of elastic search, using REGEX ... > And using REST. What was wrong with the hits that you got from your search engine of choice? Kindest regards. Mark Lawrence. --

Re: Bigotry and hate speech on the python mailing list

2017-04-17 Thread breamoreboy
On Monday, April 17, 2017 at 10:11:58 AM UTC+1, Rurpy wrote: > A couple weeks ago a frequent poster here (Steve D'Aprano) called another > participant an "ugly american" [*1]. This was followed just a couple weeks > later with another post from Mr. D'Aprano attacking a participant as "an old >

Re: How to do pd.read_csv with consecutive spaces or semi-colon as delimiters?

2017-04-18 Thread breamoreboy
On Tuesday, April 18, 2017 at 10:25:51 AM UTC+1, David Shi wrote: > Any way to do that? > The link to a sample dataset is as follows: > http://www.ebi.ac.uk/ena/data/warehouse/search?query=%22geo_circ(-0.587,-90.5713,170)%22=sequence_release=text > Looking forward to hearing from you. > Regards. >

  1   2   3   >