On 5/08/19 4:04 AM, Ian Kelly wrote:
On Sat, Aug 3, 2019, 9:25 AM Bryon Tjanaka wrote:
Depending on how often you need to run the code, you could use a google doc
and copy the code over when you need to run. Of course, if you need linters
and other tools to run frequently this would not work.
Hello,
I didn't get a response to this before, possibly because of lack of
concision. I'd like to ask whether (provided I'm understanding this):
https://docs.python.org/3/library/asyncio-protocol.html#tcp-echo-server
could be improved by adding:
"""
Create a TCP echo server using the loop.
On 3/08/19 5:50 PM, Chris Angelico wrote:
On Sat, Aug 3, 2019 at 3:36 PM DL Neil wrote:
On 3/08/19 4:02 PM, Terry Reedy wrote:
Good. Master-satellite would be much easier. We added line numbers to
IDLE's editor last week, so verbal feedback from satellite to master
should be sufficient for
On 4/08/19 6:44 AM, Terry Reedy wrote:
On 8/3/2019 1:50 AM, Chris Angelico wrote:
On Sat, Aug 3, 2019 at 3:36 PM DL Neil
wrote:
On 3/08/19 4:02 PM, Terry Reedy wrote:
Is that really "p-p" or more "code review"?
The latter. The quotes here mean "the closest I currently come to pair
program
On 4/08/19 8:20 AM, Chris Angelico wrote:
On Sun, Aug 4, 2019 at 4:46 AM Terry Reedy wrote:
On 8/3/2019 1:50 AM, Chris Angelico wrote:
Since master and clone are copies of the same program, switching roles
should be simple, and easier than trading seats.
Should be indeed, though having accide
On 5/08/19 9:59 PM, Dennis Lee Bieber wrote:
On Mon, 5 Aug 2019 18:52:14 +1200, DL Neil
declaimed the following:
Herewith a progress-report, and an attempt to respond to (interposed)
questions:-
I didn't have questions so much as just comments based on
documentation...
Your advice,
On Mon, Aug 5, 2019 at 8:54 PM DL Neil wrote:
>
> On 3/08/19 5:50 PM, Chris Angelico wrote:
> > On Sat, Aug 3, 2019 at 3:36 PM DL Neil
> > wrote:
> >>
> >> On 3/08/19 4:02 PM, Terry Reedy wrote:
> >>> Good. Master-satellite would be much easier. We added line numbers to
> >>> IDLE's editor las
I am developing a project called Inspector Tiger (from monty python
:)) and with that project i am trying to perform a static check over
the source code to find common mistakes. If you know a common mistaken
pattern, it would be really great to share it with me or implement it
and PR to inspector t
I might not have followed this thread closely enough. I remembered
there is a thing called Copilot.
It connects two machines so that two people can work together.
I've never used it, and have no connection with the company. I remember
reading about it on a page
written by Joel Spolsky.
ht
On 8/5/2019 8:11 AM, Batuhan Taskaya wrote:
I am developing a project called Inspector Tiger (from monty python
:)) and with that project i am trying to perform a static check over
the source code to find common mistakes. If you know a common mistaken
pattern, it would be really great to share it
Hi,
I read the source code of of `humanize/filesize.py' and find the 24 line
writing as follows:
base = 1024 if (gnu or binary) else 1000
It seems this is not the standard usage of if ... else
Is this a variant of lambda or some others? Could you please give me
some more hints?
Regard
Dear sir
In python application in scripts folder files are missing then how to
get those files.
--
https://mail.python.org/mailman/listinfo/python-list
On 04/08/2019 10:29, Arun Kumar wrote:
In python application in scripts folder files are missing then how to
get those files.
That depends on exactly what you mean by "files are missing". If (most
likely) the application is trying to import a third party module that
you don't have instal
On 05/08/2019 16:01, Hongyi Zhao wrote:
Hi,
I read the source code of of `humanize/filesize.py' and find the 24 line
writing as follows:
base = 1024 if (gnu or binary) else 1000
It seems this is not the standard usage of if ... else
It's a perfectly standard conditional *expression* (se
On 2019-08-05 16:01, Hongyi Zhao wrote:
Hi,
I read the source code of of `humanize/filesize.py' and find the 24 line
writing as follows:
base = 1024 if (gnu or binary) else 1000
It seems this is not the standard usage of if ... else
Is this a variant of lambda or some others? Could you
I'm looking for some tips from experienced hands on on this subject.
Some of the areas of interest are (feel free to add more):
* Passing connections and cursors - good, bad indifferent? I try to
avoid passing file handles unless necessary, so I view connections and
cursors the same. Though
On Mon, Aug 05, 2019 at 01:49:24PM -0400, Dave via Python-list wrote:
> * Passing connections and cursors - good, bad indifferent? I try to avoid
> passing file handles unless necessary, so I view connections and cursors the
> same.
Connections may be more long-lived, per thread perhaps.
Cursor
On Mon, Aug 05, 2019 at 08:12:27PM +0200, Karsten Hilbert wrote:
> Transactions involving several commands may require passing
> around of connections and/or cursors, however.
Among chains of python code, that is.
Karsten
--
GPG 40BE 5B0E C98E 1713 AFA6 5BC0 3BEA AC80 7D4F C89B
--
https://mai
Not a full expert, but some notes:
I believe the default Connection context manager is set up for the context to
be a single transaction, with a commit on success or a rollback on a failure.
As far as I know it does NOT close the connection on exiting the context
manager. That only happens aut
On Tue, Aug 6, 2019 at 5:05 AM David Raymond wrote:
> I believe the default Connection context manager is set up for the context to
> be a single transaction, with a commit on success or a rollback on a failure.
> As far as I know it does NOT close the connection on exiting the context
> manage
Hello ive just installed python on my pc and ive already check the path
choice part but microsoft visual code can not find it and it does not have
the reload item
--
https://mail.python.org/mailman/listinfo/python-list
On 6/08/19 1:43 AM, Hugh Sasse wrote:
I might not have followed this thread closely enough. I remembered
there is a thing called Copilot.
It connects two machines so that two people can work together.
https://www.copilot.com/About
If this is the wrong answer, it may at least help define the ne
Hello i have a laptob and working with windows 10 ive installed python in
my pc and ive already check the path choice pary in the installation im
working with microsoft visual studio code but it cant find the python
installed extention and it doesnt have the green star on the top of python
language
On 6/08/19 12:04 AM, Chris Angelico wrote:
On Mon, Aug 5, 2019 at 8:54 PM DL Neil wrote:
On 3/08/19 5:50 PM, Chris Angelico wrote:
On Sat, Aug 3, 2019 at 3:36 PM DL Neil wrote:
On 3/08/19 4:02 PM, Terry Reedy wrote:
...
Sometimes there can be magical firewall penetration tricks that allow
On Tue, Aug 6, 2019 at 7:09 AM DL Neil wrote:
> As a matter of interest (and if you don't mind sharing), which packages
> are included in the organisation's student "stack"?
> (again: no 'judgement', please)
TBH the best stack I can describe is what we teach for JavaScript
students, as they're th
"What's the advantage of this over letting the connection object do
that for you? As the context manager exits, it will automatically
either commit or roll back. If you want to guarantee closing _as
well_, then you can do that, but you can at least use what already
exists."
After review I guess I
On Tue, Aug 6, 2019 at 7:45 AM David Raymond wrote:
> The context manager transaction feature I can see using, and might actually
> start switching to it as it's explicit enough. Though oddly, __enter__
> doesn't seem to actually begin a transaction, not even a deferred one. It's
> only __exit_
On 2019-08-05 17:40, arash kohansal wrote:
Hello ive just installed python on my pc and ive already check the path
choice part but microsoft visual code can not find it and it does not have
the reload item
1. Open Visual Studio Code.
2. Press F1, type "Python: Select Interpreter", and then pre
Some gotcha tips from using SQLite with Python that I've encountered.
You may already know some/all of these:
* SQLite doesn't have a "Truncate" function - simply delete the file if
possible for larger datasets.
* Explicitly committing is good because the default python sqlite3
library does it
On 06Aug2019 00:01, Jonathan Moules wrote:
Some gotcha tips from using SQLite with Python that I've encountered.
[...]
* To be reliably INSERTed Byte data should be first converted to
sqlite3.Binary(my_data) explicitly
Interesting. Is that Python 2 specific, or also in Python 3. Because the
Many programmers are frustrated with and leaning away toward the C/C++
programming languages because of the following reasons:
(1) Very steep learning curve..
Many people joined the programming world by learning C or C++, but it’s rare
for them to keep learning and mastering these two languages
31 matches
Mail list logo