On 24/05/20 5:43 PM, Frank Millman wrote:
On 2020-05-23 9:45 PM, DL Neil via Python-list wrote:
My habit with SQL queries is to separate them from other code, cf the
usual illustration of having them 'buried' within the code,
immediately before, or even part of, the query call.
On 24/05/20 8:41 PM, Frank Millman wrote:
On 2020-05-24 9:58 AM, DL Neil via Python-list wrote:
On 24/05/20 5:43 PM, Frank Millman wrote:
On 2020-05-23 9:45 PM, DL Neil via Python-list wrote:
My habit with SQL queries is to separate them from other code, cf
the usual illustration of having
system interfaces
https://docs.python.org/3/library/os.html
stderr is the default destination for logging
Logging HOWTO https://docs.python.org/3/howto/logging.html
https://docs.python.org/3/library/logging.html
--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list
…
If you’re interested feel free to take a look.
Thanks.
Am on-the-road at present, but will take a look...
--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list
aries offer 'helper functions' or seek to be "accepting"/forgiving
in accepting argument-data. However, this does not (necessarily) imply a
"rule". Another "implementation detail"?
(this time in your favor/to your liking)
If indeed you're seeking a path that is terminated by the separator
character, you need to do what you did in the first example - join an
empty string at the end (this is documented). The terminating separator
_usually_ isn't needed. Sadly, sometimes it appears to be...
Another 'implementation detail' which copes with 'edge cases'. This one
has caught me too!
[so, not that 'intelligent' after all? (joke)]
--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list
e, and given
that it satisfies your stated spec, you could "define...however you
want" and make the decision without reference to 'the rest of us'.
Once you have coded your solution, which you could then use as 'sample
code', please feel free to suggest a bug-fix which describes:-
- the problem-set,
- the scenario(s) in which it is a problem,
- the problems of your solution (as coded), and
- your idea for a more elegant, Pythonic, solution.
--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list
ks( Link )
NB in this scenario it is only necessary to register once - all of the
links at-once, cf registering each link as it is itself instantiated.
Also, that each Link() object is not aware that it is/will be 'registered'!
Later, when it is necessary to carry-out the same action on each of the
objects, we can use the register's iterator/generator (as above).
Critique/other ideas welcome...
--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list
on Standard Library modules for Internet Handling offer
suitable facilities, eg base64 or mimetypes?
https://docs.python.org/3/library/netdata.html
--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list
(current) project: main
menu > Tools > BuildSystem > Python3 (assumption!). Once done
(configured), always remembered!
Thereafter, when you select Build (ctrl+b), ST will know that it is
working on a Python 'build'...
--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list
se-and-repeat.
Something like: Make unique file name
https://code.activestate.com/recipes/577200-make-unique-file-name/
--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list
ous levels of optimization. I have experienced slowdowns from source
built python of the same version as the distribution python even when
using some optimization flags with the configure script. This appears to
be normal behavior and is not cause for concern about the performance of
python 3.9.0b1
--
Joseph Jenne
--
https://mail.python.org/mailman/listinfo/python-list
--
https://mail.python.org/mailman/listinfo/python-list
On 4/06/20 4:59 PM, Meet Agrawal wrote:
I want to unsubscribe from python list and would like to stop recieving
mails from the same.
At the bottom of your request (as reflected), this, and all over
messages to the list is an administration link. At the foot of that
web-page you will find a
to the current project?
--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list
tps://docs.python.org/3/reference/import.html
* if you believe that, I have a bridge from Brooklyn available at an
absolute bargain price...
(https://nycwalks.com/blog/the-brooklyn-bridge-if-you-believe-that-i-have-a-bridge-in-brooklyn-to-sell-to-you/)
--
Regards,
=dn
--
https://mail.python.org/mailman/listinfo/python-list
ter on the same problem. I really need to get this sorted so my kid can
spend his summer break mastering the coding.
Brgs,
--
https://mail.python.org/mailman/listinfo/python-list
ly fails to convey its full
meaning, eg a student might be enrolled_since, or "zljubisic" has been
paid an higher salary rate_from. As such, 'expanding' its name would
likely improve readability, comprehension, and thus code-quality!
(I'm with the "ick" when it comes to 'artificial' name-mangling)
--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list
o show you
the exact value of the list index. Thus, giving you a pointer/where to
back-track, to find the source of the problem...
The longer answer: learning to use a debugger or a 'visual' IDE/web-tool.
--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list
On 8/06/20 10:38 AM, MRAB wrote:
On 2020-06-07 23:24, DL Neil via Python-list wrote:
On 8/06/20 7:06 AM, Caledonian26 wrote:
...
However, I keep getting the error: IndexError: list index out of
range. Could anyone give me a helping hand as to where I am going wrong?
When things go wrong
ustom serializer
would probably be preferable from a design standpoint.
--
https://mail.python.org/mailman/listinfo/python-list
://mail.python.org/mailman/listinfo/python-list
fer to be the result?
(remember that this list will only accept text-format attachments (no
graphic screen-dumps!), so best to copy-paste code/results directly into
the email message)
--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list
n/listinfo/python-list
thing thinks something is missing, say so here.
It is a solid contribution to the community. Thanks!
--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list
w Python implements Typing?
(that done, you will likely answer your own question, and accumulate
some useful learning about Python - at both the practical and
philosophical/idiomatic levels)
--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list
ence with any of these plugins?
Please share your opinion.
I don't have a competent opinion for the current Pycharm, but hope that
others will answer.
TBH I'd be surprised if it doesn't come 'baked in'.
--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list
n, to accept the wider range of symbols
instead/in-addition to those currently in-use?
Would such even constitute 'a good idea'?
Web.Refs on hardware:
https://imgur.com/a/AalpV1r
https://github.com/mattdibi/redox-keyboard
https://github.com/BenRoe/awesome-mechanical-keyboard
https://github.com/help-14/mechanical-keyboard
https://github.com/makerdiary/python-keyboard?mc_cid=fc3464732f&mc_eid=cd74eeaf09
Web.Refs on the rest:
https://www.ascii-code.com/
https://en.wikipedia.org/wiki/APL_syntax_and_symbols
https://en.wikipedia.org/wiki/Digital_encoding_of_APL_symbols
https://en.wikipedia.org/wiki/IBM_PC_keyboard
--
Regards,
=dn
--
https://mail.python.org/mailman/listinfo/python-list
across this article:
https://www.activestate.com/blog/how-to-convert-py-to-exe/
NB have no assessment/advice to report
--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list
com/forum/#!topic/comp.sys.tandem/dG2t9faPzWg
The lingua-franca of DB inter-connection is probably ODBC, and thus the
Python ODBC connector.
Trusting these give some food-for-thought...
--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list
new position (and adding it to the background), execute
appropriate code to wipe it (and restore whatever was 'underneath').
2 clear the entire display, and build it again from 'background' to
'foreground'. (takes longer but is 'guaranteed')
--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list
flickr.com/photos/alangauldphotos
--
https://mail.python.org/mailman/listinfo/python-list
On 13/06/20 4:47 AM, Terry Reedy wrote:
On 6/12/2020 2:03 AM, DL Neil via Python-list wrote:
Unicode has given us access to a wealth of mathematical and other
symbols. Hardware and soft-/firm-ware flexibility enable us to move
beyond and develop new 'standards'. Do we have opport
On 13/06/20 5:11 AM, Dennis Lee Bieber wrote:
On Fri, 12 Jun 2020 18:03:55 +1200, DL Neil via Python-list
declaimed the following:
There is/was a language called "APL" (and yes the acronym means "A
Programming Language", and yes it started the craze, through "B&q
n
--
https://mail.python.org/mailman/listinfo/python-list
On 16/06/2020 16:38, Alan Gauld via Python-list wrote:
> This is now available as a PDF and I'd be interested in review comments.
Just to add that I can send a zip of the code files too.
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.co
hor 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
--
https://mail.python.org/mailman/listinfo/python-list
add docstrings to
individual fields or the named tuple as a whole.
As mentioned, at this stage in your learning process, you may find it
helpful to use a basic Python editor which has a built-in terminal console.
--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list
nd whether you have a
callable API that you can invoke.
--
https://mail.python.org/mailman/listinfo/python-list
oatingpoint.html
In the official Python documentation, well worth reading.
--
Grant
--
https://mail.python.org/mailman/listinfo/python-list
dress bar - that should work.
Regards,
Vinay Sajip
[1] https://pypi.org/project/distlib/0.3.1/
[2] https://distlib.readthedocs.io/en/0.3.1/
[3] https://bitbucket.org/pypa/distlib/issues/new
--
https://mail.python.org/mailman/listinfo/python-list
...
Let us know how you get on...
--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list
python.org/mailman/listinfo/python-list
Maybe you should raise a bug (bugs.python.org) and flag that this
function is missing.
It could be that it can be introduced by whoever is maintaining the
existing code.
On 20/05/2020 08:31, Alan Gauld via Python-list wrote:
On 19/05/2020 20:53, Alan Gauld via Python-list wrote:
One of
stion hasn't been adequately-covered (albeit en-passant) please
explain further...
Finally, please be aware that there is a Python-Tutor Discussion List
for the pleasure of both learners and tutors.
--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list
bmit exams/assignments for consideration)
(Disclosure: I train using edX - but not in Python)
--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list
didn't - you did.
--
https://mail.python.org/mailman/listinfo/python-list
is tied to white supremacy, not
>> any particular standard whether via its authors or otherwise.
>
> As I said in my preamble, it doesn't matter whether you believe that is
> true or think it's utter bollocks. I asked the question to get the
> Steering Council's opinion, not anyone else's.
You don't get to decide whose opinions are offered.
--
https://mail.python.org/mailman/listinfo/python-list
cost in terms of space and time.
Write a bash/python script that takes a directory as an argument and output the
total lines of code in *.cpp files recursively.
Thanks Daley
--
https://mail.python.org/mailman/listinfo/python-list
On 2020-07-02, Michael Torrie wrote:
> On 7/2/20 1:26 PM, Jon Ribbens via Python-list wrote:
>> On 2020-07-02, Michael Torrie wrote:
>>> Agreed. She just needs to fix her commit message to remove the sentence
>>> about the relics of white supremacy. The fact she wou
On 2020-07-03, Ethan Furman wrote:
> On 07/02/2020 07:42 PM, Jon Ribbens via Python-list wrote:
>> She didn't - you did.
>
> Please keep the discourse civil. Petty taunts are not helpful.
Sorry, I don't understand what you are getting at. My comment was not
a "pet
On 2020-07-03, Michael Torrie wrote:
> On 7/3/20 10:57 AM, Jon Ribbens via Python-list wrote:
>> On 2020-07-03, Ethan Furman wrote:
>>> On 07/02/2020 07:42 PM, Jon Ribbens via Python-list wrote:
>>>> She didn't - you did.
>>>
>>> Please ke
nt code and errors into
your email message, if relevant)...
--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list
haven't watched it myself,
Mike's stuff is usually a solid investment!
https://www.blog.pythonlibrary.org/2020/07/05/using-widgets-in-jupyter-notebook-video/
--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list
eason I can think of that it refuses to serialize sets, for example.
Going a bit further and, for example, automatically calling isoformat()
on date/time/datetime objects would perhaps be a bit more controversial,
but would frequently be useful, and there's no obvious downside that
occurs to me.
--
https://mail.python.org/mailman/listinfo/python-list
On 2020-07-06, Chris Angelico wrote:
> On Mon, Jul 6, 2020 at 10:11 PM Jon Ribbens via Python-list
> wrote:
>> While I agree entirely with your point, there is however perhaps room
>> for a bit more helpfulness from the json module. There is no sensible
>> reason I can thi
On 2020-07-06, Frank Millman wrote:
> On 2020-07-06 2:06 PM, Jon Ribbens via Python-list wrote:
>> While I agree entirely with your point, there is however perhaps room
>> for a bit more helpfulness from the json module. There is no sensible
>> reason I can think of that it
experimentation, that is not suitable for any purpose.
You would probably do better by starting off subclassing json.JSONEncoder.
--
https://mail.python.org/mailman/listinfo/python-list
On 2020-07-06, Chris Angelico wrote:
> On Mon, Jul 6, 2020 at 11:06 PM Jon Ribbens via Python-list
> wrote:
>> The 'json' module already fails to provide round-trip functionality:
>>
>> >>> for data in ({True: 1}, {1: 2}, (1, 2)):
>>
On 2020-07-06, Frank Millman wrote:
> On 2020-07-06 3:08 PM, Jon Ribbens via Python-list wrote:
>> On 2020-07-06, Frank Millman wrote:
>>> On 2020-07-06 2:06 PM, Jon Ribbens via Python-list wrote:
>>>> While I agree entirely with your point, there is however pe
e that should probably be true
regardless of any 'strict mode' flag - I can't immediately think of
any reason it wouldn't be.
--
https://mail.python.org/mailman/listinfo/python-list
On 2020-07-06, Chris Angelico wrote:
> On Tue, Jul 7, 2020 at 12:01 AM Jon Ribbens via Python-list
> wrote:
>> I think what you're saying is, if we do:
>>
>> json1 = json.dumps(foo)
>> json2 = json.dumps(json.loads(json1))
>> assert json1 == js
e sequence is empty and therefore the
loop never executes at all, the variable will not have been assigned
to and therefore may not exist.
--
https://mail.python.org/mailman/listinfo/python-list
On 8/07/20 10:19 PM, Peter J. Holzer wrote:
On 2020-07-08 12:26:06 +1200, dn via Python-list wrote:
OTOH, using a tuple doesn't prevent the function from mutating mutable
arguments:
#!/usr/bin/python3
def f(*a):
a[0]["new"] = 2
v = { "old": 1}
f(v)
print(v)
pr
blem and your
intentions...
--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list
On 12/07/20 8:13 AM, Peter J. Holzer wrote:
On 2020-07-11 09:54:33 +1200, dn via Python-list wrote:
Questions:
Is the idea of limiting the number of parameters passed across an interface
a real concern or somewhat an affectation?
Is three, five, seven, ... a valid limit (or warning-signal
intent.
Well said! Zen of Python (includes):
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list
t; for Windows 10
--
https://mail.python.org/mailman/listinfo/python-list
--
https://mail.python.org/mailman/listinfo/python-list
question). Anyway, I was wondering if someone
could help me in fixing this. (and yes, I've already tried unistalling and
reinstalling python, and uTorrent, to no avail)
thx for the
attention[https://api.criptext.com/email/open/%3C1595885704865.954141%40criptext.com%3E]
--
https://mail.python.org/mailman/listinfo/python-list
rom there, should enable migration.
--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list
help. I look forward to it.
PS : Falling in love with Python, slow and steady!
--
https://mail.python.org/mailman/listinfo/python-list
e error message?
What are you expecting these expressions to mean?
--
https://mail.python.org/mailman/listinfo/python-list
'turtle': 'reptile',
}
If you want to add a new item to or remove an existing item from the
dictionary, you only need to edit one line, and it doesn't matter if
that line is in the middle or at the end of the existing entries.
--
https://mail.python.org/mailman/listinfo/python-list
geary 1
24 1 Coremail Webmail Server Version XT1
25 1 Postbox 1
--
This email has been checked for viruses by AVG.
https://www.avg.com
--
https://mail.python.org/mailman/listinfo/python-list
84 1 Christian SCHEIBER / KLS G Microsoft Outlook
85 1 [email protected] G2
86 1 Joe PfeifferGnus
--
This email has been checked for viruses by AVG.
https://www.avg.com
--
https://mail.python.org/mailman/listinfo/python-list
l\Programs\Python\Python38-32\graphics.py", line
1 Python 3.8.5 (tags/v3.8.5:580fbb0, Jul 20 2020, 15:43:08) [MSC v.1926 32
bit (Intel)] on win32 ^SyntaxError: invalid syntax
Please do let me know if I am missing out something very basic.
Thanks and I look forward.On Saturday, 1
t;, line
>>> 1, in import graphicsModuleNotFoundError: No module named
>>> 'graphics'
Location of the file - C:\Program Files (x86)\Lib\tkinter
Didn't work out.
On Monday, 3 August, 2020, 12:47:26 am IST, Dennis Lee Bieber
wrote:
On Sun, 2 Aug 2020
gaining
enough experience on the Python subject. Looking forward!
On Monday, 3 August, 2020, 12:51:28 am IST, Terry Reedy
wrote:
On 8/2/2020 2:36 AM, Sarvesh Poddar via Python-list wrote:
[I downloaded]
https://mcsp.wartburg.edu/zelle/python/graphics.py)
I have unmangled the traceback and
s the rights we enjoy in the
United States.
Democracy is an act. — The late John Lewis
humbly,
kls
--
https://mail.python.org/mailman/listinfo/python-list
ecific strings is in the strptime
function's doc.
This is just a starting point. Good luck!
HTH
--
https://mail.python.org/mailman/listinfo/python-list
ven
further, you have, IMHO, been condescending and even arrogant in presuming you
alone have perfect knowledge on these matters:
https://mail.python.org/pipermail/python-list/2020-August/898274.html
<https://mail.python.org/pipermail/python-list/2020-August/898274.html>
Where you conclude with
ther DOS
command, it is executed. Finally we appear to be done (the DOS prompt
is displayed and we are back to normal DOS operation).
Am I missing something? Is there a way in Windows for one Python
program to "chain" to another (or indeed to any executable) without
waiting for the latter to finish?
Thanks in advance
Rob Cliffe
--
https://mail.python.org/mailman/listinfo/python-list
so; shutting it down becomes constant time.
But I would still like to be able to do it as I originally planned, if
possible. Not least because I may have other uses for program
"chaining" in future.
Best wishes
Rob Cliffe
On 23/08/2020 21:37, dn via Python-list wrote:
On 23/0
chance you could give me some toy code?
As you can see, I'm pretty well lost.
Thanks again
Rob Cliffe
--
https://mail.python.org/mailman/listinfo/python-list
On 24/08/2020 00:57, Chris Angelico wrote:
On Mon, Aug 24, 2020 at 9:51 AM Rob Cliffe via Python-list
wrote:
Let me describe my actual use case. I am developing a large Python
program (in Windows, working in DOS boxes) and I constantly want to
modify it and re-run it. What I have been
ot more information, with examples, than I can put into
this post.
You can install Sarge using "pip install sarge" to try it out. The
project is hosted on BitBucket at
https://bitbucket.org/vinay.sajip/sarge/
And you can leave feedback on the issue tracker there.
I hope you find Sarge useful!
Regards,
Vinay Sajip
--
https://mail.python.org/mailman/listinfo/python-list
.
I'm running CMD.exe. Sorry, I didn't realise I was using sloppy language.
Thanks for your very detailed repy, Eryk.
Best wishes
Rob Cliffe
--
https://mail.python.org/mailman/listinfo/python-list
On 24/08/2020 19:54, Terry Reedy wrote:
On 8/23/2020 3:31 AM, Rob Cliffe via Python-list wrote:
On WIndows 10, running Python programs in a DOS box,
Please don't use 'DOS box' for Windows Command Prompt or other Windows
consoles for running Windows programs from a command l
On 26/08/2020 12:02, Peter J. Holzer wrote:
On 2020-08-26 22:40:36 +1200, dn via Python-list wrote:
On 26/08/2020 19:58, Joel Goldstick wrote:
[...]
<<< Code NB Python v3.8 >>>
def fp_range( start:float, stop:float, step:float=1.0 )->float:
""&quo
t", command = ClickExit)
button.grid(column= 2, row = 7)
window.mainloop()
x = (NewCode.get())
print("The new code entered is: " + x)
#=
Regards,
Colin
--
https://mail.python.org/mailman/listinfo/python-list
uce)
for an explanation of how reduce works. Note that the first sentence
starts "Apply a function of two arguments"
Best wishes
Rob Cliffe
--
https://mail.python.org/mailman/listinfo/python-list
executable, they are sharing the thread until the thread exits).
> same error condition even with the sleep(1) in place.
I'm not even that makes sense, how 2 processes can share a thread ?
--
https://mail.python.org/mailman/listinfo/python-list
> On Aug 29, 2020, at 10:12 PM, Stephane Tougard via Python-list
> wrote:
>
> On 2020-08-29, Dennis Lee Bieber wrote:
>> Under Linux, multiprocessing creates processes using fork(). That means
>> that, for some fraction of time, you have TWO processes sharing th
its own copy of the thread.
--
https://mail.python.org/mailman/listinfo/python-list
ting.
--
https://mail.python.org/mailman/listinfo/python-list
C/machine code.
--
Tony Flury
--
https://mail.python.org/mailman/listinfo/python-list
27;, ''):
os.putenv('DISPLAY', ':0.0')
import datetime
import gettext
import re
import subprocess
import shutil
import signal
from contextlib import contextmanager
from tempfile import TemporaryDirectory
import qttools <<<--- line 35
qttools.registerBackintimePath('common')
...
[ end ]
--
James Moe
jmm-list at sohnen-moe dot com
Think.
--
https://mail.python.org/mailman/listinfo/python-list
ng python correctly, the errors disappeared and the app is
performing as expected.
Thank you all for your replies.
--
James Moe
jmm-list at sohnen-moe dot com
Think.
--
https://mail.python.org/mailman/listinfo/python-list
on', "Selection inserted into db")
except:
msg.showinfo("Form submission failed", "Plz check ur input")
##
all script available on github
https://github.com/barpasc/python_tuto_400_oop
In function save2db, I would like to know if there is any alternative to using
try/except. The alternative I'm thinking is something like
def save2db(self,boo):
if boo == 1:
do something
else:
do something like return to previous step...
Is this possible?
--
https://mail.python.org/mailman/listinfo/python-list
t seems more explicit than adding a trailing comma. It also is a simple way
to make an empty tuple but is there any penalty for using the function tuple()?
-Original Message-
From: Python-list On
Behalf Of "???"
Sent: Saturday, September 19, 2020 11:39 PM
To: python-list
iterator is iterating at a different level.
>>> d = ["first"]
>>> tuple(d)
('first',)
>>> tuple(["first"])
('first',)
I understand the design choice and can imagine there may be another function
that initializes a tuple more directly in
3801 - 3900 of 5869 matches
Mail list logo