Re: [Tutor] Which is better in principle: to store (in file) calculated data or to re-calculate it upon restarting program?

2019-07-31 Thread Alan Gauld via Tutor
http://www.amazon.com/author/alan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos _______ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Which is better in principle: to store (in file) calculated data or to re-calculate it upon restarting program?

2019-07-31 Thread Chris Roy-Smith
do with programming ;) ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Which is better in principle: to store (in file) calculated data or to re-calculate it upon restarting program?

2019-07-30 Thread boB Stepp
On Tue, Jul 30, 2019 at 7:26 PM Mats Wichmann wrote: > > On 7/30/19 5:58 PM, Alan Gauld via Tutor wrote: > > On 30/07/2019 17:21, boB Stepp wrote: > > > >> musings I am wondering about -- in general -- whether it is best to > >> store calculated data valu

Re: [Tutor] Which is better in principle: to store (in file) calculated data or to re-calculate it upon restarting program?

2019-07-30 Thread boB Stepp
On Tue, Jul 30, 2019 at 7:05 PM Alan Gauld via Tutor wrote: > > On 30/07/2019 18:20, boB Stepp wrote: > > > What is the likelihood of file storage corruption? I have a vague > > sense that in earlier days of computing this was more likely to > > happen, but nowadays?

Re: [Tutor] Which is better in principle: to store (in file) calculated data or to re-calculate it upon restarting program?

2019-07-30 Thread Mats Wichmann
On 7/30/19 5:58 PM, Alan Gauld via Tutor wrote: > On 30/07/2019 17:21, boB Stepp wrote: > >> musings I am wondering about -- in general -- whether it is best to >> store calculated data values in a file and reload these values, or >> whether to recalculate such data upon e

Re: [Tutor] Which is better in principle: to store (in file) calculated data or to re-calculate it upon restarting program?

2019-07-30 Thread Alan Gauld via Tutor
.me.uk/ http://www.amazon.com/author/alan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Which is better in principle: to store (in file) calculated data or to re-calculate it upon restarting program?

2019-07-30 Thread Alan Gauld via Tutor
at: http://www.flickr.com/photos/alangauldphotos _______ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Which is better in principle: to store (in file) calculated data or to re-calculate it upon restarting program?

2019-07-30 Thread boB Stepp
corruption? I have a vague sense that in earlier days of computing this was more likely to happen, but nowadays? Storing and recalculating does act as a good data integrity check of the file data. -- boB ___ Tutor maillist - Tutor@python.org To unsubscribe o

Re: [Tutor] Which is better in principle: to store (in file) calculated data or to re-calculate it upon restarting program?

2019-07-30 Thread Zachary Ware
alculation time is negligible) and not much space, recalculate every time. If you have plenty of both, store it and recalculate it anyway :). Storing the information can also be useful for offline debugging. -- Zach ___ Tutor maillist - Tutor@python.org

[Tutor] Which is better in principle: to store (in file) calculated data or to re-calculate it upon restarting program?

2019-07-30 Thread boB Stepp
s occurring in files. Any thoughts on this? TIA! -- boB ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Inserting long URL's into comments & docstrings?

2019-07-29 Thread David L Neil
ave to re-assemble the URL in the browser, from multiple comment-lines in the code... In addition to PEP-8, please consider 'the Zen of Python' (practicality and purity). python3 -c "import this" -- Regards =dn _______ Tutor maill

Re: [Tutor] Inserting long URL's into comments & docstrings?

2019-07-29 Thread Roel Schroeven
e, particularly from a relative, a friend, an acquaintance, or a stranger." -- Franklin P. Jones Roel Schroeven ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Inserting long URL's into comments & docstrings?

2019-07-29 Thread Flynn, Stephen (Life & Pensions)
Ignore PEP8. S. -Original Message- From: Tutor On Behalf Of James Hartley Sent: 29 July 2019 21:37 To: tutor@python.org Subject: [Tutor] Inserting long URL's into comments & docstrings? This should be a slow ball pitch. Unfortunately, I haven't stumbled across a reasonable an

Re: [Tutor] Inserting long URL's into comments & docstrings?

2019-07-29 Thread Mats Wichmann
rity is already compromised, after all. _______ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

[Tutor] Inserting long URL's into comments & docstrings?

2019-07-29 Thread James Hartley
needs to be split across multiple lines. Since a number of you seem to be prolific Python coders, what opinion do you have about splitting URL's in comments/docstrings? Thanks! ___ Tutor maillist - Tutor@python.org To unsubscribe or change

Re: [Tutor] REQUIRED SUPPORT FOR CODE

2019-07-25 Thread john fabiani
Dabo has an AutoComplete method.  You review how it was done. Johnf On 7/25/2019 4:26 PM, Alan Gauld via Tutor wrote: On 25/07/2019 16:58, NITESH KUMAR wrote: I want to make Autocomplete searchbox using database .Please suggest me the code for this. Since you tell us next to noting we can

Re: [Tutor] Fw: CSC1010H 4th assignment

2019-07-25 Thread David Rock
> On Jul 25, 2019, at 18:23, Alan Gauld via Tutor wrote: > > On 25/07/2019 20:04, Mahima Daya wrote: >> hi there, please could you assist. > > > Include any code, include the full text of any error messages. > Tell us the OS and programming language (including ver

Re: [Tutor] REQUIRED SUPPORT FOR CODE

2019-07-25 Thread Alan Gauld via Tutor
photos ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Fw: CSC1010H 4th assignment

2019-07-25 Thread Alan Gauld via Tutor
On 25/07/2019 20:04, Mahima Daya wrote: > hi there, please could you assist. With what? Your subject tells us absolutely nothing. Your message gives us no clues. The fact that you are posting to the Python tutor list suggests you might have a question about Python programming. But w

Re: [Tutor] Fw: CSC1010H 4th assignment

2019-07-25 Thread Steven D'Aprano
ments without crediting them is almost certainly a violation of your university's standards of academic ethics. -- Steven _______ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

[Tutor] Fw: CSC1010H 4th assignment

2019-07-25 Thread Mahima Daya
 --- ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] REQUIRED SUPPORT FOR CODE

2019-07-25 Thread Mats Wichmann
curate the traceback as you may inadvertently exclude information crucial to solving your issue. _______ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

[Tutor] REQUIRED SUPPORT FOR CODE

2019-07-25 Thread NITESH KUMAR
Dear Sir/Madam I want to make Autocomplete searchbox using database .Please suggest me the code for this. Thanks & Regards Nitesh Kumar ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python

Re: [Tutor] __weakref__ question

2019-07-25 Thread Mats Wichmann
1 del n1, n2 print("n1 ref count:", PyObject.from_address(naddr).refcnt) ## output: n1 ref count: 0 ## :: weakrefs don't contribute to the refcount. Does this help at all? ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

[Tutor] __weakref__ question

2019-07-24 Thread Sarah Hembree
Ancestors, we borrow it from our Children. Aspire to grace. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] python idle file couldn't start

2019-07-24 Thread Flynn, Stephen (Life & Pensions)
What (precisely) did you type to "start python through idle"? Don't guess - cut and pasted EXACTLY what you type and what you see on screen. S. -Original Message----- From: Tutor On Behalf Of siva Sent: 24 July 2019 08:57 To: tutor@python.org Subject: [Tutor] python idle fil

[Tutor] python idle file couldn't start

2019-07-24 Thread siva
I have tried to start python through idle .but the software didn’t start.it displays “subprocess error”.tell me some solution. Thank you. Sent from Mail for Windows 10 ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription

Re: [Tutor] A question about daunting KeyError

2019-07-24 Thread Steven D'Aprano
log(data) log(key) raise or use the debugger to investigate why the key is missing. You should also read this: http://sscce.org/ It is written for Java programmers, but it applies to Python too. -- Steven _______ Tutor maillist -

Re: [Tutor] A question about daunting KeyError

2019-07-24 Thread David L Neil
On 24/07/19 3:21 PM, TAISHI KAWAMURA wrote: Hi tutors on Tutor, I'm Taishi from Japan working in a data analytics team. Currently, I'm trying to analyse purchase data of a fashion brand. However, mysterious KeyErrors started occurring continuously when I was coding, and I haven't been able

[Tutor] A question about daunting KeyError

2019-07-24 Thread TAISHI KAWAMURA
Hi tutors on Tutor, I'm Taishi from Japan working in a data analytics team. Currently, I'm trying to analyse purchase data of a fashion brand. However, mysterious KeyErrors started occurring continuously when I was coding, and I haven't been able to get that fixed. Although I asked

Re: [Tutor] Python Generator expressions

2019-07-23 Thread Steven D'Aprano
a tuple inside a tuple: a = 1, 2, (3, 4, 5), 6 assert len(a) == 4 or when passing a literal tuple as argument to a function: function(1, 2, 3, 4, 5, 6)# six arguments function(1, 2, (3, 4, 5), 6) # four arguments -- Steven ___ Tutor maillist - T

Re: [Tutor] Python Generator expressions

2019-07-23 Thread Steven D'Aprano
l, but tuple comprehensions not so much. Not ever single use has to get its own special syntax. Of course, *later on* once Python had generator comprehensions using parentheses, we couldn't easily add tuple comprehensions because there's no good syntax left. But why would we want them? --

Re: [Tutor] Python Generator expressions

2019-07-23 Thread Mats Wichmann
e run the iterator once? > Lastly any specific reason for not having a tuple comprehensions? > > Have checked this link, but could not understood the reason? > >  * > https://stackoverflow.com/questions/16940293/why-is-there-no-tuple-comprehension-in-python > > > Rega

Re: [Tutor] Python Generator expressions

2019-07-23 Thread David L Neil
at it is the comma(s) which make it a tuple! -- Regards =dn ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

[Tutor] a par2 creator and verification program

2019-07-23 Thread Adam Gold
for doing any of this. It seems this would be my consolation prize :) ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

[Tutor] Python Generator expressions

2019-07-23 Thread Animesh Bhadra
ecific reason for not having a tuple comprehensions? Have checked this link, but could not understood the reason? * https://stackoverflow.com/questions/16940293/why-is-there-no-tuple-comprehension-in-python Regards, Animesh _______ Tutor maillist - Tut

Re: [Tutor] multiprocessing: getting data back from the processes

2019-07-23 Thread Oscar Benjamin
tes any need for bidirectional communication which generally simplifies things. -- Oscar ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] How to convert string to date time format?

2019-07-23 Thread C W
t) > File "/usr/local/lib/python3.5/_strptime.py", line 346, in _strptime > data_string[found.end():]) > ValueError: unconverted data remains: -08:00 > > > Now we're making progress! The error message has changed. Now you just > need to decide what the "-

[Tutor] multiprocessing: getting data back from the processes

2019-07-22 Thread Mats Wichmann
else should I be trying to make this a little cleaner? thanks, -- mats _______ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Stylometry Help

2019-07-22 Thread penel...@mailbox.org
Hello together, >> >> I try to write a Python tool but after hours of trying , reading and >looking for help nothing an no one would help me. So this is my most >desperate call for help. I attached the project and my required files. > >Unfortunately the tutor list doe

Re: [Tutor] How to convert string to date time format?

2019-07-20 Thread Steven D'Aprano
he error message has changed. Now you just need to decide what the "-08:00" part means, and change the format string appropriately. -- Steve ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Stylometry Help

2019-07-20 Thread Mats Wichmann
o bail you out of a real or imagined situation where if you can't solve the problem you'll be sent down. If it's that dire, there is usually paid tutoring available at most institutions or hanging around them, and potential loss of a scholarship ought to make that investment worthwhile. ____

Re: [Tutor] Python Imported Code

2019-07-20 Thread Albert-Jan Roskam
or example a event from an Entry checks the entry contents and colors it red if it's invalid. It's been a while since I've used this but those tricks may come in handy! Albert-Jan ___ Tutor maillist - Tutor@python.org To unsubscribe or change su

Re: [Tutor] Stylometry Help

2019-07-20 Thread Bob Gailer
On Jul 20, 2019 7:56 AM, wrote: > > Hello together, > > I try to write a Python tool but after hours of trying , reading and looking for help nothing an no one would help me. So this is my most desperate call for help. I attached the project and my required files. Unfortunately th

Re: [Tutor] How to convert string to date time format?

2019-07-20 Thread johnf
datetime datetime.strptime(my_string, '%Y-%m-%d %H:%M:%S') Are both ways suppose to work? Also, does it matter if there are decimals after seconds? Thanks a lot! ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https

[Tutor] How to convert string to date time format?

2019-07-20 Thread C W
! ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

[Tutor] Stylometry Help

2019-07-20 Thread aliqua
and so beeing excluded from university you'll be my hero. Best regards Hanna ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Lengthy copyright notices?

2019-07-18 Thread Ben Finney
| Ben Finney _______ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Web framework module for Python.

2019-07-18 Thread Ben Finney
al Mystery that attends any journey is: how did the | `\ traveller reach his starting point in the first place?” —Louise | _o__) Bogan, _Journey Around My Room_ | Ben Finney _______ Tutor maillist - Tutor@python.o

Re: [Tutor] pass arg to list

2019-07-18 Thread Steven D'Aprano
he start of your script and see what is there. -- Steven _______ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] pass arg to list

2019-07-18 Thread Alan Gauld via Tutor
ements) and your full execution output, including whree you call the program. -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ http://www.amazon.com/author/alan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos _

[Tutor] pass arg to list

2019-07-18 Thread Anirudh Tamsekar
h Tamsekar ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] How would I replace the data of a Pandas Series with the values of a dictionary?

2019-07-18 Thread Albert-Jan Roskam
. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Calling a C shared library with PyObject

2019-07-17 Thread Alan Gauld via Tutor
ects. To be honest embedding is quite an advanced topic and the tutor list is generally targeted at beginners so you might find limited help here. (Although technically it does fall within our remit, it's just that it doesn't come up too often!) I'd suggest you post your queries on the main

Re: [Tutor] Lengthy copyright notices?

2019-07-17 Thread David L Neil
On 18/07/19 10:08 AM, Alan Gauld via Tutor wrote: On 17/07/2019 21:01, David L Neil wrote: One line offers plenty of space to exert a claim (such can be very simple and does not need to be lawyer-speak!) which should also refer to the template's/package's external file or web-page. Yes, I've

[Tutor] Calling a C shared library with PyObject

2019-07-17 Thread Jesse Ibarra
___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Lengthy copyright notices?

2019-07-17 Thread Alan Gauld via Tutor
ww.alan-g.me.uk/ http://www.amazon.com/author/alan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Lengthy copyright notices?

2019-07-17 Thread David L Neil
On 16/07/19 12:47 PM, Alan Gauld via Tutor wrote: On 15/07/2019 23:34, Mats Wichmann wrote: Rule #1: it's all opinion in the end... Not quite. Different jurisdictions (remember, this list has an international membership!) have different understandings of (even, respect for) copyrights

Re: [Tutor] Unit testing: Just the API or internal use only methods, too?

2019-07-16 Thread Mats Wichmann
uit implementation needs. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] raising exceptions in constructor code?

2019-07-16 Thread Cameron Simpson
ails. Cheers, Cameron Simpson _______ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] raising exceptions in constructor code?

2019-07-16 Thread Steven D'Aprano
ctually that's not too natural either. It is not usually a good idea to hold onto an open file when you aren't actively using it, as the number of open files is severely constrained on most systems. -- Steven _______ Tutor maillist - Tutor@python.org

Re: [Tutor] Unit testing: Just the API or internal use only methods, too?

2019-07-16 Thread Alan Gauld via Tutor
.uk/ http://www.amazon.com/author/alan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos _______ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] raising exceptions in constructor code?

2019-07-16 Thread Alan Gauld via Tutor
tp://www.alan-g.me.uk/ http://www.amazon.com/author/alan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos _______ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

[Tutor] Unit testing: Just the API or internal use only methods, too?

2019-07-16 Thread boB Stepp
only used internally by the class and not meant to be publicly accessible. Is this generally how I should be viewing testing? Would someone be willing to expand at some length on this topic? TIA! -- boB ___ Tutor maillist - Tutor@python.org

[Tutor] How would I replace the data of a Pandas Series with the values of a dictionary?

2019-07-16 Thread Daniel Bosah
place data in a Series with vaues of a dict ). So I would like to ask the community what approach I can take to build to that piece of the puzzle. I feel I have most of the solution, but I'm missing something. Thanks for reading and I appreciate the help. ___

Re: [Tutor] raising exceptions in constructor code?

2019-07-16 Thread Mats Wichmann
s more properly an "initializer", the instance has already been constructed when it's called. _______ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

[Tutor] raising exceptions in constructor code?

2019-07-16 Thread James Hartley
uot; Does this carry over to Python? I'm trying to develop a Pythonistic mindset as opposed to carrying over old baggage... Thanks! Jim ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailma

Re: [Tutor] Reading .csv data vs. reading an array

2019-07-16 Thread Peter Otten
-0.005639971706, 1.65291] ['', '', '', -0.005639966706, 1.65291] ['', '', '', -0.005639961706, 1.6363] If you find that performance suffers more than you are willing to accept here's an alternative implementation of maybe_float() that may be faster for some inputs: def maybe_float(

Re: [Tutor] Object references in Python

2019-07-16 Thread Mats Wichmann
created a new function object, and foo is now a reference to it ... >>> foo() This function no longer Foos >>> x() This function does Foo >>> # x is still a reference to the original function object ... >>> x is foo False >>> ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Object references in Python

2019-07-16 Thread Steven D'Aprano
he string "blue" (by default). x.speak is a reference to the "speak" method of Parrot objects. Does this help? -- Steven ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Impersonation

2019-07-16 Thread Jim
only to Mats. Regards, Jim ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Reading .csv data vs. reading an array

2019-07-16 Thread David Rock
> On Jul 16, 2019, at 04:31, Alan Gauld via Tutor wrote: > > On 16/07/2019 09:59, Oscar Benjamin wrote: > >>> All true, but sed - once you get used to it! - is easier IMHO >>> and usually faster than Python - it's written in C... >> >> I always think

[Tutor] Object references in Python

2019-07-16 Thread AHIA Samuel
Please what are references in Python development? ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Reading .csv data vs. reading an array

2019-07-16 Thread Alan Gauld via Tutor
hotos/alangauldphotos _______ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Reading .csv data vs. reading an array

2019-07-16 Thread Oscar Benjamin
On Tue, 16 Jul 2019 at 01:44, Alan Gauld via Tutor wrote: > > On 15/07/2019 21:28, Mats Wichmann wrote: > > > course Python can do that too, by working line-at-a-time, explicitly by > > calling readlines() or implicitly by looping over the file handle. The > >

[Tutor] Impersonation

2019-07-15 Thread Jim
, 2019 10:36 AM, Mats Wichmann wrote: Hope you are well. Just wanted to share something with you http://www.bt6q.lnhaxf.info/ I just wanted you to know that it seems someone is trying to impersonate you. Regards, Jim ___ Tutor maillist - Tutor

Re: [Tutor] Lengthy copyright notices?

2019-07-15 Thread Alan Gauld via Tutor
lan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos _______ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Reading .csv data vs. reading an array

2019-07-15 Thread Chip Wachob
or row in TrigWind: > > time, voltage = row # unpack > > > > edgearray.append([float)time, float(voltage)]) > > > > or even more compactly you can unpack directly at the top: > > > > for time, voltage in TrigWind: >

Re: [Tutor] Reading .csv data vs. reading an array

2019-07-15 Thread Alan Gauld via Tutor
's written in C... -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ http://www.amazon.com/author/alan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos ___ Tutor maillist - Tuto

Re: [Tutor] Lengthy copyright notices?

2019-07-15 Thread David L Neil
f of method signatures, I'd be greatly irritated by having to wade-through a flood of irrelevance. On the other hand, if 'you' use my work... Whether either/both of these pass for pythonic, I can't say. -- Regards =dn ___ Tutor maillist - Tutor@python.org To

Re: [Tutor] Lengthy copyright notices?

2019-07-15 Thread Mats Wichmann
ocstrings The 4th, 5th and 6th paragraphs of that section all suggest what should be in the docstrings, none of them mentions copyright/license, all are oriented to making the help text usable by users. I'm sure someone else will have an opinion :) ____

[Tutor] Lengthy copyright notices?

2019-07-15 Thread James Hartley
module-level docstring will be ignored in help() output? Thanks! Jim ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Reading .csv data vs. reading an array

2019-07-15 Thread Mats Wichmann
be any loss of > accuracy. > > But, since row is not really an index, how does one conditionally skip a > given set of row entries? ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Reading .csv data vs. reading an array

2019-07-15 Thread Chip Wachob
ould do that at the point the data enters the > program - that is as TrigWind is created; then you just consume data > from it in its intended form. But if not, just convert voltage before > using, as your original code does. You don't then need to convert &g

Re: [Tutor] Reading .csv data vs. reading an array

2019-07-15 Thread Mats Wichmann
fter converting them to float.  It's usually better not to > convert all over the place, and since the creation of TrigWind is under > your own control, you should do that at the point the data enters the > program - that is as TrigWind is created; then you just consume data > from it in its intend

[Tutor] Fwd: RE: pointers or references to variables or sub-sets of variables query.

2019-07-15 Thread Alan Gauld via Tutor
Forwarding to list Forwarded Message Subject:RE: [Tutor] pointers or references to variables or sub-sets of variables query. Date: Mon, 15 Jul 2019 17:13:23 +1000 From: mhysnm1...@gmail.com To: 'Alan Gauld' All, Sorry for the late response. I have

Re: [Tutor] Web framework module for Python.

2019-07-15 Thread Alan Gauld via Tutor
gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Blockchain Dev with Python SDK

2019-07-15 Thread mhysnm1964
Matt, I would suggest you look at the links in the signature for this mailer for some good tutorials on OOPS. Datacamp also has some good tutorials. -Original Message- From: Tutor On Behalf Of Matthew Zand Sent: Monday, 15 July 2019 1:54 AM To: Tutor@python.org Subject: [Tutor

[Tutor] Web framework module for Python.

2019-07-15 Thread mhysnm1964
far to complex for my needs. If someone could point myself to a module and possibly a tutorial for the module. I would be grateful. Hopefully this is not to of a open question. ___ Tutor maillist - Tutor@python.org To unsubscribe or change

[Tutor] Blockchain Dev with Python SDK

2019-07-14 Thread Matthew Zand
not familiar with OOP, will that be an issue? Matt -- Best, DC Web Makers <https://blockchain.dcwebmakers.com/> Coding Bootcamps <https://coding-bootcamps.com/> 240-200-6131 301-327-8773 ___ Tutor maillist - Tutor@python.org To unsubscri

Re: [Tutor] Multiprocessing with many input input parameters

2019-07-14 Thread Steven D'Aprano
On Fri, Jul 12, 2019 at 11:53:16AM +, Shall, Sydney via Tutor wrote: > Thanks Mike, > > But I am still not clear. Neither is your question. > do I write: > > def f([x,y,z]) ? > How exactly do one write the function and how does one ensure that each > position

Re: [Tutor] Reading .csv data vs. reading an array

2019-07-13 Thread Mats Wichmann
s. You don't then need to convert voltage a second time in the list append statements. for time, voltage in TrigWind: voltage = float(voltage) ... edgearray.append([float)time, voltage]) ... ___ Tutor maillist - Tutor@python.o

Re: [Tutor] How to store output of Python program in XML

2019-07-13 Thread Alan Gauld via Tutor
/alangauldphotos ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Multiprocessing with many input input parameters

2019-07-13 Thread Mike Barnett
Right, I meant tuple, not list. a = ('A string') b = ('A List Member',) print(a[0]) print(b[0]) The output for this is: A A List Member @mike -Original Message- From: Cameron Simpson Sent: Friday, July 12, 2019 7:59 PM To: Mike Barnett Cc: Shall, Sydney ; tutor@python.org

[Tutor] How to store output of Python program in XML

2019-07-13 Thread Asad
9582111698 ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Multiprocessing with many input input parameters

2019-07-12 Thread Mats Wichmann
On 7/12/19 5:53 AM, Shall, Sydney via Tutor wrote: > Thanks Mike, > > But I am still not clear. > > do I write: > > def f([x,y,z]) ? > How exactly do one write the function and how does one ensure that each > positional argument is accounted for. The concept of

Re: [Tutor] Reading .csv data vs. reading an array

2019-07-12 Thread Oscar Benjamin
laced avg+triglevel with triggervolts. Are you sure they're the same? -- Oscar _______ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Multiprocessing with many input input parameters

2019-07-12 Thread Oscar Benjamin
Hi Sydney, On Wed, 10 Jul 2019 at 16:45, Shall, Sydney via Tutor wrote: > > I am a relative beginner. > > My program models cell reproduction. I have written a program that models > this and it works. > > Now I want to model a tissue with several types of cells. I

Re: [Tutor] Multiprocessing with many input input parameters

2019-07-12 Thread Steven D'Aprano
recedence, such as a function call: func(9, 7)# Two integer arguments, not one tuple argument. func((9, 7)) # One tuple argument. -- Steven _______ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Multiprocessing with many input input parameters

2019-07-12 Thread Cameron Simpson
uestion though. Cheers, Cameron Simpson _______ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

<    1   2   3   4   5   6   7   8   9   10   >