Re: Debugging (was Re: Why not allow empty code blocks?)

2016-08-02 Thread Steven D'Aprano
On Wednesday 03 August 2016 05:14, BartC wrote: > It's fundamental in that, when giving instructions or commands in > English, it frequently comes up when you want something done a set > number of times: > > "Give me 20 push-ups" At which point the person will invariable drop to the ground and s

ANN: datatest 0.7.0 (Test driven data wrangling)

2016-08-02 Thread Shawn Brown
datatest 0.7.0 (Test driven data wrangling) === Datatest extends the standard library's unittest package to provide testing tools for asserting data correctness. * Docs: http://datatest.readthedocs.io/ * PyPI: https://pypi.python.org/pypi/datatest/ This

Re: gmane sending

2016-08-02 Thread Ben Finney
Terry Reedy writes: > I am reading and sending via gmane right now. > > > https://developers.slashdot.org/story/16/07/28/2059249/the-end-of-gmane > > I really hope not. I also hope not. Hope doesn't fund important infrastructure like Gmane, though; and Lars clearly needs help if Gmane is to thri

Re: Debugging (was Re: Why not allow empty code blocks?)

2016-08-02 Thread BartC
On 02/08/2016 22:27, Terry Reedy wrote: On 8/2/2016 7:05 AM, BartC wrote: Your objection to a feature such as 'repeat N' doesn't really stack up. My objection is that there is a real cost that MUST be stacked up against the benefit. ... Anyway, if that was a valid objection, it would apply

Re: ctypes Usage Note

2016-08-02 Thread Nobody
On Mon, 01 Aug 2016 18:41:53 -0700, Lawrence D’Oliveiro wrote: > Sometimes people load a library with ctypes like this: > > libc = ctypes.cdll.LoadLibrary("libc.so") That specific example is unlikely to work on any modern Linux system, as libc.so is typically a linker script rather than a sy

Re: Debugging (was Re: Why not allow empty code blocks?)

2016-08-02 Thread Paul Rubin
Terry Reedy writes: > I think it is you who is unwilling to admit that nearly everything > that would be useful also has a cost, and that the ultimate cost of > adding every useful feature, especially syntax features, would be to > make python less unusable. I think you meant "usable" ;). Some o

Re: Debugging (was Re: Why not allow empty code blocks?)

2016-08-02 Thread Terry Reedy
On 8/2/2016 7:05 AM, BartC wrote: On 31/07/2016 19:58, Terry Reedy wrote: On 7/31/2016 6:18 AM, BartC wrote: repeat N: The benefit is not so much performance, but being able to express something very easily and quickly. The cost of the 'repeat' contraction is that one cannot use the loo

Re: Debugging (was Re: Why not allow empty code blocks?)

2016-08-02 Thread Chris Angelico
On Wed, Aug 3, 2016 at 5:55 AM, Christian Gollwitzer wrote: >> - Arbitrary-precision non-integers > > > https://pypi.python.org/pypi/bigfloat/ > > ? Wasn't aware of that. Cool. Not that I need it very often (and when I do, I can use Pike, which has MPFR support built-in). Or I can use decimal.Dec

Re: Tcl/Tk for Python 3.6.0a3 on Os X 10.9.5

2016-08-02 Thread Ned Deily
On 2016-08-02 15:08, Terry Reedy wrote: > On 8/2/2016 4:21 AM, munozvvale...@gmail.com wrote: >> I am new to the programming world but I need to learn this program >> for a research class that I am taking. I have downloaded Python >> 3.6.0a3 on a Mac 10.9.5 and realized that I also need to download

Re: Debugging (was Re: Why not allow empty code blocks?)

2016-08-02 Thread Christian Gollwitzer
Am 02.08.16 um 16:58 schrieb Chris Angelico: - A more free-form declarative syntax for laying out GUI code Actually, the Tkinter wrapper misses one feature of grid in Tcl/Tk: You can write something like grid .a .b grid .c .d to lay out a GUI 2x2 grid using "ASCII-art". There is a package i

Re: Why not allow empty code blocks?

2016-08-02 Thread Julien Salort
Steven D'Aprano wrote: > It could be, but won't be. Outside of a very few tiny niches, including > Squeak which is designed for children, such user-interfaces are far too > cumbersome to ever get widespread use. Unfortunately, many people use LabView in my field... even for sufficiently complex

Re: Why not allow empty code blocks?

2016-08-02 Thread Grant Edwards
On 2016-08-02, BartC wrote: > On 02/08/2016 18:54, Steven D'Aprano wrote: >> On Wed, 3 Aug 2016 02:56 am, BartC wrote: >> >>> (And I expect that next they will eliminate languages altogether. All >>> you need is some way of specifying a sequence of calls to library >>> functions and sprinkling aro

Re: Why not allow empty code blocks?

2016-08-02 Thread Paul Rubin
Steven D'Aprano writes: > where power is defined (rather fuzzily) as the expressiveness > of the language, how easy it is for the programmer to read, write and > maintain code, how efficient/fast you can implement it, etc. Scheme guru Matthias Felleisen takes a stab at a precise definition here (

Re: Debugging (was Re: Why not allow empty code blocks?)

2016-08-02 Thread Chris Angelico
On Wed, Aug 3, 2016 at 3:57 AM, Steven D'Aprano wrote: > On Wed, 3 Aug 2016 03:12 am, BartC wrote: > >> That's not a fundamental language feature. Repeat-N is. And if properly >> designed, isn't an extra feature at all but a special case of a generic >> loop. > > Which means it is NOT a fundamenta

Re: Why not allow empty code blocks?

2016-08-02 Thread BartC
On 02/08/2016 18:54, Steven D'Aprano wrote: On Wed, 3 Aug 2016 02:56 am, BartC wrote: (And I expect that next they will eliminate languages altogether. All you need is some way of specifying a sequence of calls to library functions and sprinkling around some control statements; That would be

Re: Debugging (was Re: Why not allow empty code blocks?)

2016-08-02 Thread BartC
On 02/08/2016 18:57, Steven D'Aprano wrote: On Wed, 3 Aug 2016 03:12 am, BartC wrote: That's not a fundamental language feature. Repeat-N is. And if properly designed, isn't an extra feature at all but a special case of a generic loop. Which means it is NOT a fundamental language feature. "R

Re: gmane sending

2016-08-02 Thread Terry Reedy
On 8/2/2016 10:42 AM, Robin Becker wrote: I just got a mail bounce from my normal gmane --> nntp setup sending to python-python-l...@m.gmane.org. Have others seen this and does it mean the end of gmane has happened? See I am reading and sending via gmane right now. https://developers.slashd

Re: Why not allow empty code blocks?

2016-08-02 Thread Chris Angelico
On Wed, Aug 3, 2016 at 3:54 AM, Steven D'Aprano wrote: > On Wed, 3 Aug 2016 02:56 am, BartC wrote: > >> (And I expect that next they will eliminate languages altogether. All >> you need is some way of specifying a sequence of calls to library >> functions and sprinkling around some control stateme

Re: Tcl/Tk for Python 3.6.0a3 on Os X 10.9.5

2016-08-02 Thread Terry Reedy
On 8/2/2016 4:21 AM, munozvvale...@gmail.com wrote: I am new to the programming world but I need to learn this program for a research class that I am taking. I have downloaded Python 3.6.0a3 on a Mac 10.9.5 and realized that I also need to download an Active Tcl for it. I can't find one for this

Re: Debugging (was Re: Why not allow empty code blocks?)

2016-08-02 Thread Steven D'Aprano
On Wed, 3 Aug 2016 03:12 am, BartC wrote: > That's not a fundamental language feature. Repeat-N is. And if properly > designed, isn't an extra feature at all but a special case of a generic > loop. Which means it is NOT a fundamental language feature. "Repeat N without tracking the loop variable

Re: Why not allow empty code blocks?

2016-08-02 Thread Steven D'Aprano
On Tue, 2 Aug 2016 11:28 pm, Rustom Mody wrote: >> I think the real reason is not willing to admit that the language lacks >> something that could actually be useful, and especially not to an >> upstart on usenet who is not even an expert in that language. > > And earlier you said: > >> But dedi

Re: Why not allow empty code blocks?

2016-08-02 Thread Steven D'Aprano
On Wed, 3 Aug 2016 02:56 am, BartC wrote: > (And I expect that next they will eliminate languages altogether. All > you need is some way of specifying a sequence of calls to library > functions and sprinkling around some control statements; That would be called "a language". > it could be > dr

Re: problem installinf python

2016-08-02 Thread MRAB
On 2016-08-02 17:41, abre...@maine.rr.com wrote: Hi. I'm having trouble installing Python on my computer. My computer is a 64-bit Dell desktop running Windows 8.1. A screen message claimed that I installed Python 3.5.2 (64 bit), but when I try to run it, I get only the "Modify Setup" scr

Re: Debugging (was Re: Why not allow empty code blocks?)

2016-08-02 Thread BartC
On 02/08/2016 15:58, Chris Angelico wrote: On Tue, Aug 2, 2016 at 9:05 PM, BartC wrote: I think the real reason is not willing to admit that the language lacks something that could actually be useful, and especially not to an upstart on usenet who is not even an expert in that language. I kno

Re: Recursive csv import functions for Pandas

2016-08-02 Thread MRAB
On 2016-08-02 10:50, andrea.bo...@gmail.com wrote: I have put together the following code: [snip] while csvnameR[12:18] == csvnameT[12:18]: print csvR + "=" + csvT r.to_csv('./output_csv/'+ csvR +'.csv')

Re: problem installinf python

2016-08-02 Thread Stephane Wirtel
And if you uninstall it and reinstall it after ? On 08/02, abre...@maine.rr.com wrote: Hi. I'm having trouble installing Python on my computer. My computer is a 64-bit Dell desktop running Windows 8.1. A screen message claimed that I installed Python 3.5.2 (64 bit), but when I try to run

Re: Why not allow empty code blocks?

2016-08-02 Thread BartC
On 02/08/2016 14:28, Rustom Mody wrote: I think the real reason is not willing to admit that the language lacks something that could actually be useful, and especially not to an upstart on usenet who is not even an expert in that language. However a case may be made that syntax is one of the m

problem installinf python

2016-08-02 Thread abreed1
Hi. I'm having trouble installing Python on my computer. My computer is a 64-bit Dell desktop running Windows 8.1. A screen message claimed that I installed Python 3.5.2 (64 bit), but when I try to run it, I get only the "Modify Setup" screen, with the only choices being "Modify," "Repai

Re: make an object read only

2016-08-02 Thread Steven D'Aprano
On Wed, 3 Aug 2016 01:12 am, Robin Becker wrote: > A reportlab user found he was doing the wrong thing by calling canvas.save > repeatedly, our documentation says you should not use Canvas objects after > the save method has been used. The user had mixed results :( > > It would be better to make

Re: make an object read only

2016-08-02 Thread d...@forestfield.co.uk
On Tuesday, 2 August 2016 16:13:01 UTC+1, Robin Becker wrote: > A reportlab user found he was doing the wrong thing by calling canvas.save > repeatedly, our documentation says you should not use Canvas objects after > the > save method has been used. The user had mixed results :( > > It would

Re: holding if/else condition in live bitcoin trading Python

2016-08-02 Thread Steven D'Aprano
On Tue, 2 Aug 2016 07:14 pm, Arshpreet Singh wrote: > is there any approach I can go with so auto_order_buy() auto_order_sell() > function only executed once? Take them out of the while loop. -- Steve “Cheer up,” they said, “things could be worse.” So I cheered up, and sure enough, things go

make an object read only

2016-08-02 Thread Robin Becker
A reportlab user found he was doing the wrong thing by calling canvas.save repeatedly, our documentation says you should not use Canvas objects after the save method has been used. The user had mixed results :( It would be better to make the canvas object completely immutable all the way down w

Re: Debugging (was Re: Why not allow empty code blocks?)

2016-08-02 Thread Chris Angelico
On Tue, Aug 2, 2016 at 9:05 PM, BartC wrote: > I think the real reason is not willing to admit that the language lacks > something that could actually be useful, and especially not to an upstart on > usenet who is not even an expert in that language. I know what features I miss from the languages

gmane sending

2016-08-02 Thread Robin Becker
I just got a mail bounce from my normal gmane --> nntp setup sending to python-python-l...@m.gmane.org. Have others seen this and does it mean the end of gmane has happened? See https://developers.slashdot.org/story/16/07/28/2059249/the-end-of-gmane -- Robin Becker -- https://mail.python.org/ma

Re: Installing Python 3 on Windows

2016-08-02 Thread Uri Even-Chen
Thank you, repair worked! I already have py.ini and don't want to add shebangs, I have at least 50 Python files and I don't want to edit all of them. *Uri Even-Chen* [image: photo] Phone: +972-54-3995700 Email: u...@speedy.net Website: http://www.speedysoftware.com/uri/en/

Re: Installing Python 3 on Windows

2016-08-02 Thread eryk sun
On Tue, Aug 2, 2016 at 12:11 PM, Uri Even-Chen wrote: > > I want to install Python 3 on Windows, but I also need Python 2 for Google > App Engine SDK. When I type a name of a Python file in command line, I want > it to run with Python 3. However, I checked with "print 3/5" and it printed > 0 - Pyt

Re: Installing Python 3 on Windows

2016-08-02 Thread Uri Even-Chen
I have the launcher installed and I configured it with a C:\Windows\py.ini file to run Python 3 when typing "py". But when I type the file name it runs Python 2. >py Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:01:18) [MSC v.1900 32 bit (Intel)] on win32 Type "help", "copyright", "credits" o

Re: Why not allow empty code blocks?

2016-08-02 Thread Rustom Mody
> I think the real reason is not willing to admit that the language lacks > something that could actually be useful, and especially not to an > upstart on usenet who is not even an expert in that language. And earlier you said: > But dedicated forms (even if they just map to 'while' or 'for') wou

Re: Installing Python 3 on Windows

2016-08-02 Thread Uri Even-Chen
I don't understand. How do I use the Python Launcher? I didn't find such an option when installing Python 3. http://screencast.com/t/mBXfyMw4jpa http://screencast.com/t/FidjuB68aJ5G *Uri Even-Chen* [image: photo] Phone: +972-54-3995700 Email: u...@speedy.net Website: http://www.speedysoftware.com

Re: Why not allow empty code blocks?

2016-08-02 Thread Rustom Mody
On Tuesday, August 2, 2016 at 4:01:25 PM UTC+5:30, Antoon Pardon wrote: > Op 30-07-16 om 18:15 schreef Rustom Mody: > > > > The more general baby that is significant is that beginners should have > > it easy to distinguish procedure and function and python does not naturally > > aid that. print w

Re: Installing Python 3 on Windows

2016-08-02 Thread Edward Diener
On 8/2/2016 8:11 AM, Uri Even-Chen wrote: Hi, I want to install Python 3 on Windows, but I also need Python 2 for Google App Engine SDK. When I type a name of a Python file in command line, I want it to run with Python 3. However, I checked with "print 3/5" and it printed 0 - Python 2. I have th

Installing Python 3 on Windows

2016-08-02 Thread Uri Even-Chen
Hi, I want to install Python 3 on Windows, but I also need Python 2 for Google App Engine SDK. When I type a name of a Python file in command line, I want it to run with Python 3. However, I checked with "print 3/5" and it printed 0 - Python 2. I have the latest versions of Python installed - pyth

Re: Debugging (was Re: Why not allow empty code blocks?)

2016-08-02 Thread BartC
On 31/07/2016 19:58, Terry Reedy wrote: On 7/31/2016 6:18 AM, BartC wrote: repeat N: The benefit is not so much performance, but being able to express something very easily and quickly. The cost of the 'repeat' contraction is that one cannot use the loop variable, either as part of a mod

Re: Why not allow empty code blocks?

2016-08-02 Thread Antoon Pardon
Op 30-07-16 om 18:15 schreef Rustom Mody: > > The more general baby that is significant is that beginners should have > it easy to distinguish procedure and function and python does not naturally > aid that. print was something procedure-ish in python2 but the general > notion being > absent is

Re: Tcl/Tk for Python 3.6.0a3 on Os X 10.9.5

2016-08-02 Thread Chris Angelico
On Tue, Aug 2, 2016 at 6:21 PM, wrote: > I am new to the programming world but I need to learn this program for a > research class that I am taking. I have downloaded Python 3.6.0a3 on a Mac > 10.9.5 and realized that I also need to download an Active Tcl for it. I > can't find one for this ve

Recursive csv import functions for Pandas

2016-08-02 Thread andrea . botti
I have put together the following code: ## DEFINES INPUT FILES inputcsvT = ['./input_csv/A08_KI_T*.csv', './input_csv/A08_LR_T*.csv','./input_csv/A08_B1_T*.csv',] #'./input_csv/A10_KI_T*.csv', './input_csv/A10_LR_T*.csv',

holding if/else condition in live bitcoin trading Python

2016-08-02 Thread Arshpreet Singh
I am making a function that is running in while loop and if/else statements make decisions on based on the condition: here is code: def main_call(): while True: l0_0 = getDiff('btcusd',8) l1_0 = np.tanh(l0_0*0.8446488687) l1_1 = np.tanh(l0_0*-0.5674069006) l1

Re: Tcl/Tk for Python 3.6.0a3 on Os X 10.9.5

2016-08-02 Thread Christian Gollwitzer
Am 02.08.16 um 10:21 schrieb munozvvale...@gmail.com: I am new to the programming world but I need to learn this program for a research class that I am taking. I have downloaded Python 3.6.0a3 on a Mac 10.9.5 and realized that I also need to download an Active Tcl for it. I can't find one for

Tcl/Tk for Python 3.6.0a3 on Os X 10.9.5

2016-08-02 Thread munozvvaleria
Hello, I am new to the programming world but I need to learn this program for a research class that I am taking. I have downloaded Python 3.6.0a3 on a Mac 10.9.5 and realized that I also need to download an Active Tcl for it. I can't find one for this version. Can someone please direct me to it

Re: Why not allow empty code blocks?

2016-08-02 Thread Antoon Pardon
Op 30-07-16 om 05:49 schreef Steven D'Aprano: > On Sat, 30 Jul 2016 04:32 am, Antoon Pardon wrote: > > > Perhaps its *you* who doesn't understand. The subject line talks > about "empty code blocks", and Bart has suggested that instead of having to > write > > ... > > So now you're changing your sto

Re: Python text file fetch specific part of line

2016-08-02 Thread honeygne
On Thursday, July 28, 2016 at 1:00:17 PM UTC+5:30, c...@zip.com.au wrote: > On 27Jul2016 22:12, Arshpreet Singh wrote: > >I am writing Imdb scrapper, and getting available list of titles from IMDB > >website which provide txt file in very raw format, Here is the one part of > >file(http://pasteb