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
do with programming ;)
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
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
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?
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
.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
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
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
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
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
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
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
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
rity is
already compromised, after all.
_______
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
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
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
> 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
photos
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/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
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 maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
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
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
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
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
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
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
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 -
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
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
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
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?
--
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
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
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
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
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
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 "-
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
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
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
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.
____
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
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
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 maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
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
|
Ben Finney
_______
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
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
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
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
_
h Tamsekar
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
.
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/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
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 maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/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
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
uit implementation needs.
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
ails.
Cheers,
Cameron Simpson
_______
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
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
.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
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
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
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.
___
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
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
-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(
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
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
only to Mats.
Regards, Jim
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
> 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
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
hotos/alangauldphotos
_______
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
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
> >
, 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
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
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:
>
'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
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
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 :)
____
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
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
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
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
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
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
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
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
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
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
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
/alangauldphotos
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
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
9582111698
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
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
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
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
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
uestion though.
Cheers,
Cameron Simpson
_______
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
101 - 200 of 74745 matches
Mail list logo