On 30/03/2016 11:07, Sven R. Kunze wrote:
> On 30.03.2016 01:29, Eric S. Johansson wrote:
>>
>>
>> On 3/29/2016 6:05 AM, Sven R. Kunze wrote:
>>>
>>> Python = English
>>>
>> As someone who writes English text and code using speech recognition,
>> I can assure you that Python is not English. :-)
>
On 01/04/2016 08:59, Antoon Pardon wrote:
> Op 31-03-16 om 16:12 schreef Mark Lawrence via Python-list:
>> On 31/03/2016 14:27, Random832 wrote:
>>> So can we discuss how a unified method to get a set of all valid
>>> subscripts (and/or subscript-value pairs) on an object would be a useful
>>> thin
On 05/04/2016 10:53, Nicolae Morkov wrote:
> What can I do I've tried everything
>
You attached a screenshot, which won't make it through to this text-only
mailing list. Can you copy the actual text of the error message from the
IDLE session and paste it here, please?
TJG
--
https://mail.
On 05/04/2016 08:34, Oscar Benjamin wrote:
On 5 Apr 2016 03:50, wrote:
Your request to the Python-list mailing list
Posting of your message titled "Re: Plot/Graph"
has been rejected by the list moderator. The moderator gave the
following reason for rejecting your request:
"Your messag
On 09/04/2016 20:13, Mark Lawrence via Python-list wrote:
On 09/04/2016 01:43, Ben Finney wrote:
Dennis Lee Bieber writes:
Yet another completely irrelevant thread that has nothing to do with
Python. As this is meant to be the main Python mailing list, why don't
the moderators put a stop to
On 09/04/2016 22:23, Mark Lawrence via Python-list wrote:
[... snip ...]
Mark, you're ranting. Have a little dignity, please, and back off.
TJG
--
https://mail.python.org/mailman/listinfo/python-list
On 10/04/2016 15:03, Chris Angelico wrote:
On Sun, Apr 10, 2016 at 11:54 PM, Jeff Schumaker wrote:
As a new member of this group, I am not sure on how to report unacceptable
behavior. If this is not the correct way, I apologize.
Please check the following thread:
Find the number of robots ne
On 10/04/2016 18:15, breamore...@gmail.com wrote:
[... snip Mark again, using a different address to avoid the moderation
check ...]
Mark,
Please don't do this.
If you genuinely want this list to be a useful and friendly resource,
which is what your posts suggest, then please step back and
On 2016-04-11 10:45, Ben Finney wrote:
> Also, there is another obvious way to create an empty tuple: call
> the ‘tuple’ type directly:
>
> >>> foo = tuple()
> >>> print(type(foo), len(foo))
> 0
But here the parens make the tuple too:
>>> foo = tuple
>>> print(type(foo))
On 11/04/2016 04:32, Mario R. Osorio wrote:
hmmm...He made an extremely kind comment a couple of days ago. It
called my attention because is the first one ever (coming from) ...
Now I'm thinking he might have just been sarcastic.
Give him the benefit of the doubt.
And BTW I myself have given
On 2016-04-11 01:33, MRAB wrote:
> A one-element tuple can be written as:
>
> >>> ('hello',)
> ('hello',)
>
> As has been said already, it's the comma that makes the tuple. The
> parentheses are often needed to avoid ambiguity.
Except when the comma *doesn't* make the tuple:
>>> t = ()
On 13/04/2016 03:57, Jason Honeycutt wrote:
> Hello,
>
> I am providing feedback as to why I just uninstalled Python. I could not
> use pip. My command line would not recognize pip.exe as a file, even though
> I could see the file listed when I type "dir" in the Scripts folder.
>
> I tried to rep
On 2016-04-17 06:08, Ben Finney wrote:
> Larry Martell writes:
> > if we still had 1970's 80 character TTYs that would matter but on
> > my 29" 1920x1080 screen it doesn't.
>
> Larry, you've been around long enough to know that's not an argument
> against a limited line length for code. It is not
On 17 April 2016 at 07:50, Tim Chase wrote:
> On 2016-04-17 06:08, Ben Finney wrote:
> > Larry Martell writes:
> > > if we still had 1970's 80 character TTYs that would matter but on
> > > my 29" 1920x1080 screen it doesn't.
> >
> > Larry
On 2016-04-16 19:02, Dennis Lee Bieber wrote:
> I still miss the Amiga -- in which one could /push/ a
> window to the back of the stack while still retaining input focus!
> Made it nice for transcribing stuff from a visible window to a text
> input region while it was obscured.
What OS (or i
On 2016-04-16 19:39, eryk sun wrote:
> On Sat, Apr 16, 2016 at 4:50 PM, Tim Chase wrote:
> > I also do some editing/diffing within a cmd.exe window on Windows
> > which is limited to 80 characters unless you do some hijinks in
> > the settings to expand it.
>
> Try
There's been a bit of chatter lately about the moderation on the Python
List (and, indirectly, comp.lang.python). The list moderators have
suspended a couple of posters for a while and we've been discussing a
little our policy towards non-subscribed posts.
First, a quick summary of the current
On 2016-04-17 16:35, Coos Haak wrote:
> Op Sat, 16 Apr 2016 20:30:52 -0500 schreef Tim Chase:
> >> Try `mode con cols=120 lines=30`.
> >
> > Yeah, that will do it, as will going into the settings and
> > changing it. But basically every other program on Windows, and
On 17/04/2016 18:21, Wildman via Python-list wrote:
On Sun, 17 Apr 2016 17:57:51 +0100, Tim Golden wrote:
[... snip my explanation of new moderation for non-subscribers ...]
How will this change affect posts to comp.lang.python?
Not at all, in the sense that the moderation doesn't
ed language) but worse in others (esp. that
they're implemented by erasure). I also wouldn't describe Java as a
"perfectly good language" - it is at best a compromise language that just
happened to be heavily promoted and accepted at the right time.
Python is *much* closer
On 18 April 2016 at 09:30, Chris Angelico wrote:
> On Mon, Apr 18, 2016 at 8:02 AM, Tim Delaney
> wrote:
> > I also wouldn't describe Java as a
> > "perfectly good language" - it is at best a compromise language that just
> > happened to be heavily
On 19/04/2016 10:03, Jon Ribbens wrote:
On 2016-04-17, Tim Golden wrote:
On 17/04/2016 18:21, Wildman via Python-list wrote:
On Sun, 17 Apr 2016 17:57:51 +0100, Tim Golden wrote:
[... snip my explanation of new moderation for non-subscribers ...]
How will this change affect posts to
On 2016-04-19 14:47, Marko Rauhamaa wrote:
> We need a PEP to distinguish also between:
> - typefaces (Times New Roman vs Garamond)
> - weights (bold vs thin)
> - serifs (with or without)
> - sizes (8pt vs 11pt)
> - colors (goldenrod vs maroon)
Like HTML & CSS, the goal should be to separate
On 2016-04-19 04:37, Rustom Mody wrote:
> > No, they will not, because they'll make your code proprietary.
>
> Pragmatically yes; theoretically no because its like saying
> "If one dont want to get locked down to MSWord proprietary tools
> and formats one should use latex"
> Refuted by the fact
On 2016-04-19 23:41, Chris Angelico wrote:
> The only time I'll "wrap" that kind of comment is when it actually
> applies to both lines of code:
>
> width = bar * 3 + 2 # we have 3x2 bars, plus one...
> height = bar * 2 + 2 # ... pixel of margin on all sides
And even then in that exceptional case
On 2016-04-19 09:46, Rustom Mody wrote:
> inkscape
> gimp
> blender
> libreoffice writer/calc/prese
> wireshark
> skype
> firefox
> audacity
> musescore
> totem
> vlc
> dia
>
> Do these look like text-based apps to you?
Well, let's take a look at their native file formats:
Inkscape: SVG
Libreof
On 19/04/2016 18:30, Random832 wrote:
On Tue, Apr 19, 2016, at 12:05, Steven D'Aprano wrote:
It's worse than that. There are many other places that mirror this group,
such as gmane, Activestate, bytes.com, gossamer-threads.com, and of
course
Google Groups.
Google groups goes through Usenet,
On 2016-04-19 14:54, Random832 wrote:
> On Tue, Apr 19, 2016, at 13:43, Tim Chase wrote:
> > Well, let's take a look at their native file formats:
> > Inkscape: SVG
> > Libreoffice: compressed XML
> > Firefox: HTML+CSS+JS
> > Musescore: compressed text
>
On 20/04/2016 14:57, loial wrote:
> I am trying to run lpr from python 2.7.10 on windows
>
> However I always get the error
> 'C:/windows/system32/lpr.exe ' is not recognized as an internal or external
> command,
> operable program or batch file.
>
> Even though typing the same at the command p
On 20/04/2016 15:21, loial wrote:
> As I said, the lpr command works fine from the command prompt but not from
> python.
Sorry; I did miss that.
> Everything is 64-bit (windows server 2012).
>
Is the Python installation also 64-bit?
c:\python27\python.exe -c "import platform; print platform.a
On 2016-04-21 18:34, Christopher Reimer wrote:
> class PieceFactory(object):
>
> def factory(color, piece, position):
> if piece == 'Bishop':
> return Bishop(color, position)
> if piece == 'King':
> return King(color, position)
>
On 22/04/2016 09:07, Kiril Bard wrote:
> I use python for my school work and I wanted to download it at home. I had
> my teacher download the version to a flash drive and it still doesn't seem
> to work. The version that I got from the flash drive was python 3.4.2 and
> I think I got a 32 bit or a
On 2016-04-25 22:37, pannis2...@gmail.com wrote:
> I am trying send email through smtplib
> body = "test"
> message = """\
> From: %s
> To: %s
> Subject: %s
> %s
> """ % (FROM, ", ".join(TO), SUBJECT, body)
Doesn't the email RFC require a blank line between the headers
On 2016-04-26 07:18, +dime+ wrote:
> I am learning python.
>
> if I have a csv file, like this
> banana,4.0
> apple,3.5
> orange,3.0
>
> Can anyone show me how to read the csv file line by line and then
> create a dictionary to contain these keys and values?
import csv
with open('data.csv') as f
On 2016-04-28 18:37, David Shi via Python-list wrote:
> What is the simplest way to locate a string in a column and get
> the value on the same row in another column ? 1 a2 b3 c
> Locate b and obtain 2 in a table.
> Looking forward to hearing from you.
I've had success with using regexp matche
On 2016-05-02 00:06, DFS wrote:
> Then I tested them in loops - the VBScript is MUCH faster: 0.44 for
> 10 iterations, vs 0.88 for python.
In addition to the other debugging recommendations in sibling
threads, a couple other things to try:
1) use a local debugging proxy so that you can compare th
On 2016-05-03 00:24, DFS wrote:
> One small comparison I was able to make was VBA vs python/pyodbc to
> summarize an Access database. Not quite a fair test, but
> interesting nonetheless.
>
> Access 2003 file
> Access 2003 VBA code
> Time: 0.18 seconds
>
> same Access 2003 file
> 32-bit python 2
On 2016-05-03 13:00, DFS wrote:
> On 5/3/2016 11:28 AM, Tim Chase wrote:
> > On 2016-05-03 00:24, DFS wrote:
> >> One small comparison I was able to make was VBA vs python/pyodbc
> >> to summarize an Access database. Not quite a fair test, but
> >> interestin
On ⅯⅯⅩⅥ-Ⅴ-Ⅷ Ⅹ:ⅩⅩⅤ, Christopher Reimer wrote:
>> Closing line: "In America today, the only thing more terrifying
>> than foreigners is...math."
>> Wonder how close to terrorists pythonists are
>
> I wonder how many Americans are aware that they use Hindu-Arabic
> numerals in daily transactions?
T
While I'm not Steven...
On 2016-05-08 19:10, DFS wrote:
> sSQL = "line 1\n"
> sSQL += "line 2\n"
> sSQL += "line 3"
If you're only doing it once, it's adequate.
If you're doing it within a loop
for thing in some_iter():
s = "line1\n"
s += "line2\n"
s += "line3"
use(s, thing)
(interspersing letters to name your examples)
On 2016-05-10 14:03, DFS wrote:
A (nope)
> ---
> sSQL = "line 1\n"
> sSQL += "line 2\n"
> sSQL += "line 3"
B (see below)
> ---
> sSQL = ("line 1\n"
> "line 2\n"
> "lin
On 2016-05-11 12:39, Ned Batchelder wrote:
> The docs have discussed it in a few different ways over the years.
>
> Python 3.0 and 3.1 said:
>
> 3.2 said:
>
> 3.3 and up say:
I've picked up on the "% formatting not going away, .format() more
flexible" vibe but had missed the evolution in the do
On 2016-05-15 20:48, Steven D'Aprano wrote:
> Also, remember that most operating systems provide (at least) three
> different times. I'm not sure which one you want, but if I had to
> guess, I would probably guess mtime. If I remember correctly:
>
> atime is usually the last access time;
> mtime i
On 2016-05-15 11:46, Peter Otten wrote:
> def sorted_dir(folder):
> def getmtime(name):
> path = os.path.join(folder, name)
> return os.path.getmtime(path)
>
> return sorted(os.listdir(folder), key=getmtime, reverse=True)
>
> The same idea will work with pathlib and os.sca
On 2016-05-15 14:36, Grant Edwards wrote:
> On 2016-05-15, Tim Chase wrote:
> > unless sorted() returns a lazy sorter,
>
> What's a lazy sorter?
A hypothetical algorithm that can spool out a sorted sequence without
holding the entire sequence in memory at the same time.
On 25/05/2016 13:04, thomas povtal.org wrote:
> 2016-05-24_08:15:40.84187 File "checkrc.pxd", line 14, in
> zmq.core.checkrc._check_rc (zmq/core/socket.c:5932)
> 2016-05-24_08:15:40.84187 OverflowError: long too big to convert
That exception is arising from ZeroMQ's own code, by the look of it. (O
On 2016-06-10 14:07, maurice wrote:
> example:
> valuesList = [1,2,3]
> keysList = ['1','2','3']
>
> So the dictionary can basically convert string to int:
>
> dictionary = {'1':1, '2':2, '3':3}
A couple similar options:
The most straightforward translation of your description:
opt1 = dic
On 2016-06-18, Steven D'Aprano wrote:
> On Sat, 18 Jun 2016 09:49 am, Ian Kelly wrote:
>
>> If I tell you that the speed of light is 300,000,000 m/s, do you think
>> that measurement has 9 significant digits? If you do, then you would be
>> wrong.
> What if the figure to nine significant digits *a
On 2016-06-18 22:56, Michael Torrie wrote:
> And I got it wrong anyway. Both ed and vim either put the cursor
> between characters (insert mode), or on the character (command
> mode). Probably made sense at the time.
Correct for vi/vim, but not ed which has no real concept of a
characterwise "ins
On 2016-06-20 11:32, Steven D'Aprano wrote:
> On Mon, 20 Jun 2016 04:58 am, Michael Torrie wrote:
>
> > When the cursor is over character, do command "ga" and it will
> > show you the hex code for that character.
> >
> > http://vim.wikia.com/wiki/Showing_the_ASCII_value_of_the_current_character
>
On 2016-06-21 11:35, Marko Rauhamaa wrote:
> > These are all pretty easy to remember.
> > German umlauts a" o" u" give ä ö ü (or use uppercase)
> > Spanish eña (spelling?) and punctuations: n~ ?? !! --> ñ ¿ ¡
> > French accents: e' e` e^ c, --> é è ê ç
> > Money: c= l- y- c/ --> € £ ¥ ¢
>
On 2016-06-21 21:56, Marko Rauhamaa wrote:
> Rustom Mody :
>
> > Regarding xkb:
> >
> > Some good advice given to me by Yuri Khan on emacs list
> > https://lists.gnu.org/archive/html/help-gnu-emacs/2015-01/msg00332.html
>
> Well, not quite:
>
>* Find the XKB data directory. [Normally, this
>
On 2016-06-22 00:55, Lawrence D’Oliveiro wrote:
> On Wednesday, June 22, 2016 at 7:50:50 AM UTC+12, Tim Chase wrote:
>> I have a ~/.XCompose file that contains something like
>
> You may find your custom XCompose is ignored by certain GUI apps.
> This is because the GUI toolk
On 2016-06-29 01:20, Steven D'Aprano wrote:
> While loops are great for loops where you don't know how many
> iterations there will be but you do know that you want to keep
> going while some condition applies:
>
> while there is still work to be done:
> do some more work
I find this particul
On 2016-06-30 09:59, Steven D'Aprano wrote:
> But there's no need to go to such effort for a mutable iterator.
> This is much simpler:
>
> py> mi = list('bananas')
> py> for char in mi:
> ... if char == 'a':
> ... mi.extend(' yum')
> ... print(char, end='')
> ... else: #
le was to pick a book
off a library shelf).
But unless otherwise qualified, a claim of being able to compress random
data is taken to mean any and all sets of random data.
Anyway, that's going to be my only contribution to this thread.
Tim Delaney
--
https://mail.python.org/mailman/listinfo/python-list
On 2016-07-17 08:19, Chris Angelico wrote:
> Why do you need a linked list? That's an implementation detail; why
> not simply use a regular list?
>
> Not trolling, genuinely asking. Is there something that you
> specifically need those exact structures for?
I know there have been times I want kno
On 22/07/2016 17:01, Malcolm Greene wrote:
We're working on a DSL (domain specific language) that we translate into
a list of tokenized expressions. My challenge is to figure out how to
sequence evaluation of these expressions so that we evaluate these
expressions in the proper order given that e
ith del)
and avoids having to think up another name for a very temporary structure
(names are hard). And I would include a comment explaining the reuse of the
name.
The alternative would be something like (replace first line by something
complex ...):
near_limit_list = [1]
near_limit = len(near
On 2018-12-08 10:02, Musatov wrote:
> I am thinking about a program where the only user input is
> win/loss. The program let's you know if you have won more than 31%
> of the time or not. Any suggestions about how to approach authoring
> such a program? Thanks. --
Can be done with an awk one-liner
On 2018-12-08 17:54, Avi Gross wrote:
> This may be a bit awkward.
ICWYDT. "awk"ward. :wide-eyed_gaping_grin_with_finger-guns:
You seem to have your knickers in a knot.
> Your solution in AWK assumes lots of things. You assume the data
> is either on stdin or comes from automatically opening fi
On Saturday, December 8, 2018 at 10:13:14 PM UTC-5, Monte Milanuk wrote:
> Did you find any solution(s)?
I usually just lurk and read on this list. I don't reply since there's usually
more competent people that regularly post helpful answers. (I lurk to learn
from them!)
If no one's replied yet
stribution = {"green":2, "red": 2, "blue", 1}
>>> data, weights = zip(*distribution.items())
>>> sum(weights)
5
>>> sorted(choices(data, weights=weights, k=20))
['blue', 'blue', 'blue', 'blue', 'green
On 2018-12-28 17:31, Abdur-Rahmaan Janhangeer wrote:
> do you have something like
>
> choice(balls)
>
> >>> red
Don't specify the "k=" (which defaults to 1 if you omit it) and use
the first element of the results:
>>> from random import choices
>>> distribution = {"green":2, "red": 2, "blue":
On 2019-01-07 17:14, Bob van der Poel wrote:
> I need to see if all the items in my list are the same. I was using
> set() for this, but that doesn't work if items are themselves
> lists. So, assuming that a is a list of some things, the best I've
> been able to come up with it:
>
> if a.count
On 2019-01-22 19:20, Grant Edwards wrote:
> > For anyone who has moved a substantial bunch of Python 2 to Python
> > 3, can you please reply with your experience?
>
> If you used bytes (or raw binary strings) at all (e.g. for doing
> things like network or serial protocols) you're in for a lot o
On 2/26/19 3:54 PM, Marko Rauhamaa wrote:
> Consider this function:
>
> def fun():
> f = open("lock")
> flock.flock(f, fcntl.LOCK_EX)
> do_stuff()
> sys.exit(0)
>
> Question: can a compliant Python implementation close f (and,
> consequently, release the file l
r instance_id, instance in ec2info.items():
for key in attributes:
print("{0}: {1}".format(key, instance[key]))
print("--")
ec2.instances.filter(InstanceIds=instance.id).stop()
ec2.instances.filter(InstanceIds=instance.id).ter
On 2019-03-07 17:19, tony wrote:
> Python 3.5.3 (default, Sep 27 2018, 17:25:39)
> >>> "a\\nb".decode("string-escape")
> Traceback (most recent call last):
> File "", line 1, in
> AttributeError: 'str' object has no attribute 'decode'
Looks like bytestring.decode('unicode_escape') does what y
://www.python.org/ftp/python/.
How do I determine the following?
1) Latest current stable version of python 3*
2) Correct tarfile for linux - at this time I assume it will be
linux centOS
TIA
--
Tim Johnson
http://www.tj49.com
--
https://mail.python.org/mailman/listinfo/python-list
pecific. For Linux there are really only
> two options: Python-3.7.2.tar.xz and Python-3.7.2.tgz. The only difference
> is that one is compressed with xz and the other is compressed with gzip.
> Pick the .xz unless you're unable to decompress it.
> On Wed, Mar 20, 2019 at 12:43 PM Ti
* Michael Torrie [190320 19:22]:
> On 03/20/2019 07:10 PM, Tim Johnson wrote:
> > * Ian Kelly [190320 12:00]:
> >> 1) https://www.python.org/downloads/ has release information. Based on that
> >> you would currently want 3.7.2. Make sure you actually download
* Michael Torrie [190320 19:22]:
> On 03/20/2019 07:10 PM, Tim Johnson wrote:
> > * Ian Kelly [190320 12:00]:
> >> 1) https://www.python.org/downloads/ has release information. Based on that
> >> you would currently want 3.7.2. Make sure you actually download
* Tim Johnson [190320 10:46]:
> Some time in the near future I will want to install the latest
> current stable version of python on a remote server. I anticipate
> that I will either use wget from the server shell or download to my
> workstation and transfer via FTP. I will ne
On 2019-03-25 21:38, John Doe wrote:
> What is your favorite Python IDE?
Unix.
https://sanctum.geek.nz/arabesque/series/unix-as-ide/
Namely $EDITOR (for some value of ed/vi/vim), a shell (usually
bash, ksh, or /bin/sh), a VCS (usually git, subversion, rcs, or
fossil, though sometimes CVS or Merc
tring.
examples
helloworld-_e28Oloi
pages-Du4qJjUr
What would happen if I deleted the first folder, which was created
in a previous chapter?
... trying to minimize my SSD real estate.
thanks
--
Tim Johnson
http://www.tj49.com
--
https://mail.python.org/mailman/listinfo/python-list
apter files.
I guess I will find out why ...
thank you
> On a personal note it sounds strange why the author wants to have different
> venv's for each chapter.
>
> On Wed, Mar 27, 2019, 3:30 AM Tim Johnson wrote:
>
> > I'm on ubuntu 16.04
> >
&g
thanks again, Test Bot ...
> On Wed, Mar 27, 2019, 4:21 AM Tim Johnson wrote:
>
> > * Test Bot [190326 14:18]:
> > > Nothing much i think. If you are properly managing dependencies for each
> > > venv, then each new venv should have the same state as the previ
rther
customized with plenty of my own elisp code. They won't take any
of that away unless they pry it from my cold, dead fingers, but
that's just me. :)
I wouldn't wish emacs or vim on anyone who didn't feel that the
learning curve was worth it.
MTCW
--
On 2019-05-22 08:51, Robin Becker wrote:
> In PEP 594 t has been proposed that cgi & cgitb should be removed.
> I suspect I am not the only person in the world that likes using
> cgi and cgitb.
/me waves from the the back row as another cgi/cgitb user...
-tkc
--
https://mail.python.org/mailman
On 7/17/19 4:24 PM, Chris Angelico wrote:
> Agreed. There are a number of other languages where splitting on an
> empty delimiter simply fractures the string into characters (I checked
> Pike, JavaScript, Tcl, and Ruby), and it's a practical and useful
> feature. +1.
Not only that, it makes the la
On 7/20/19 1:20 PM, Chris Angelico wrote:
> On Sun, Jul 21, 2019 at 4:13 AM Michael Speer wrote:
>>
>> You may want to use `#!/usr/bin/env python3` instead.
>>
>> There is a concept in python called the virtual environment. This used to
>> be done with a tool called virtualenv in python2, and is n
On 7/20/19 2:56 PM, Peter J. Holzer wrote:
> On 2019-07-20 14:11:44 -0500, Tim Daneliuk wrote:
>> So, no, do NOT encode the hard location - ever. Always use env to
>> discover the one that the user has specified. The only exception is
>> /bin/sh which - for a variety of r
On 7/20/19 5:14 PM, Chris Angelico wrote:
> Using env for everything is a terrible idea and one that
> will basically make virtual environments useless.
Not if you manage them properly.
Everyone's mileage is different, but when I enter a venv, I ensure everything I
do
there is packaged to work t
On 7/20/19 5:47 PM, Tim Daneliuk wrote:
> On 7/20/19 5:14 PM, Chris Angelico wrote:
>> Using env for everything is a terrible idea and one that
>> will basically make virtual environments useless.
>
> Not if you manage them properly.
>
> Everyone's mileage is di
On 7/20/19 6:04 PM, Chris Angelico wrote:
> Are you aware of every systemwide command that happens to be
> implemented in Python, such that you won't execute any of them while
> you have the venv active?
No, but this has never been a problem because the newer versions of
python tend to be pretty g
On 7/20/19 6:04 PM, Cameron Simpson wrote:
> If you require a specific outcoming, set a specific environment. It is under
> your control. Control it.
Exactly right. I have just had the REALLY irritating experience of trying to
bootstrap a
location insensitive version of linuxbrew that mostly wo
On 7/21/19 8:47 AM, Peter J. Holzer wrote:
> That's fine. Unlike Tim I don't claim that anybody who disagrees with me
> must be a newbie.
Peter, that's ad hominem and unfair. I never said anything close to that.
What I said is that if someone were to spend an extended per
On 7/20/19 4:28 PM, Brian Oney wrote:
> Why not make a compromise? What would be a potential pitfall of the
> following spitbang?
>
> #!python
Not sure this really changes the discussion.
--
https://mail.python.org/mailman/listinfo/python-list
On 2019-08-21 11:27, Tobiah wrote:
> In the docs for itertools.cycle() there is
> a bit of equivalent code given:
>
> def cycle(iterable):
> # cycle('ABCD') --> A B C D A B C D A B C D ...
> saved = []
> for element in iterable:
> yield element
>
On 2019-11-25 21:25, Pycode wrote:
> On Sun, 24 Nov 2019 10:41:29 +1300, DL Neil wrote:
>> Are such email addresses 'open' and honest?
>
> you are not being helpful or answer the question..
What DL Neil seems to be getting at is that there's been an uptick in
questions
1) where we don't know who
Working with the dbm module (using it as a cache), I've gotten the
following error at least twice now:
HASH: Out of overflow pages. Increase page size
Traceback (most recent call last):
[snip]
File ".py", line 83, in get_data
db[key] = data
_dbm.error: cannot add item to database
I
amed 'click'
If I invoke python3 (/usr/local/bin/python3), version 3.7.2 and invoke
>>> import click
click is imported successfully.
In this invocation, sys.path is:
['', '/usr/local/lib/python37.zip', '/usr/local/lib/python3.7',
'/usr/local/li
On 12/1/19 12:26 AM, Peter Otten wrote:
Tim Johnson wrote:
Using linux ubuntu 16.04 with bash shell.
Am retired python programmer, but not terribly current.
I have moderate bash experience.
When trying to install pgadmin4 via apt I get the following error
traceback when pgadmin4 is invoked
On 12/1/19 12:26 AM, Peter Otten wrote:
Tim Johnson wrote:
Using linux ubuntu 16.04 with bash shell.
Am retired python programmer, but not terribly current.
I have moderate bash experience.
When trying to install pgadmin4 via apt I get the following error
traceback when pgadmin4 is invoked
On 12/1/19 3:41 PM, Tim Johnson wrote:
On 12/1/19 12:26 AM, Peter Otten wrote:
Tim Johnson wrote:
Using linux ubuntu 16.04 with bash shell.
Am retired python programmer, but not terribly current.
I have moderate bash experience.
When trying to install pgadmin4 via apt I get the following
> Maybe port to SQLite? I would not choose dbm these days.
After sparring with it a while, I tweaked the existing job so that it
chunked things into dbm-appropriate sizes to limp through; for the
subsequent job (where I would have used dbm again) I went ahead and
switched to sqlite and had no furt
On 12/1/19 11:46 PM, Peter Otten wrote:
Tim Johnson wrote:
OK. Now I have
/usr/local/lib/python3.7/site-packages/Click-7.0.dist-info/
which holds the following files:
INSTALLER LICENSE.txt METADATA RECORD top_level.txt WHEEL
I haven't a clue as to how to proceed! Never seen
On 2019-12-02 16:49, Michael Torrie wrote:
> On 12/1/19 7:50 PM, Tim Chase wrote:
> > After sparring with it a while, I tweaked the existing job so
> > that it chunked things into dbm-appropriate sizes to limp
> > through; for the subsequent job (where I would have used dbm
&g
On 2019-12-09 12:27, Musbur wrote:
> def branch1(a, b, z):
> """Inelegant, unwieldy, and pylint complains
> about too many branches"""
> if a > 4 and b == 0:
> result = "first"
> elif len(z) < 2:
> result = "second"
> elif b + a == 10:
> result =
1001 - 1100 of 7378 matches
Mail list logo