On 04/07/2020 16:38, Random832 wrote:
On Fri, Jul 3, 2020, at 08:48, Rhodri James wrote:
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. If you
New submission from James McCorkindale :
The Scripts folder is empty and I'm not sure what's wrong. I'm trying to
install modules and looked it up on the internet and I think I need this folder
not to be empty. How should i fix this?
Thanks, James
--
components: Windows
messages
u can read a file one line at a time, so how to count the
number of lines in a file should be pretty obvious. Figuring out how to
do that for every *.cpp file in a directory will involve looking through
the standard library, or getting a bash script to do it for you :-)
--
Rhodri James *-* K
On 03/07/2020 15:28, Jon Ribbens via Python-list wrote:
On 2020-07-03, Rhodri James wrote:
On 02/07/2020 23:46, Random832 wrote:
On Thu, Jul 2, 2020, at 18:29, Michael Torrie wrote:
Come again? I can see no other link in the verbage with the
"relics of white supremacy" that sh
it's utter bollocks. I asked the question to get the
Steering Council's opinion, not anyone else's. If you collectively
really must rehash the arguments again, please have the decency to do so
in a different thread.
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
ould _any_
political opinion be in the repo?
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
this merely to
reinforce the idea that these things are still answers as well as
hostages to fortune.
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
James Barrett added the comment:
Is there any further movement on this?
--
___
Python tracker
<https://bugs.python.org/issue40782>
___
___
Python-bugs-list m
On 30/06/2020 15:25, Rhodri James wrote:
Having just had occasion to use the code of conduct link
(conduct...@python.org), I got back the message:
Your mail to 'conduct...@python.org' with the subject
Is being held until the list moderator can review it for approval.
Ah
you for your email about "". We will deal with
it as soon as we can."
Plus the usual platitudes about valuing my input and appreciating my
custom which don't necessarily apply here ;-/
Any chance of getting the message altered to something a bit more friendly?
--
Rhodri James
On 24/06/2020 22:46, zljubi...@gmail.com wrote:
Why Pycharm didn't offer a setter as well as getter?
This is a general Python mailing list. If you have specific
questions/complaints about PyCharm, they are probably better addressed
directly to the makers of PyCharm.
--
Rhodri James
Change by James Corbett :
--
keywords: +patch
pull_requests: +20172
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/20997
___
Python tracker
<https://bugs.python.org/issu
New submission from James Corbett :
The `argparse.ArgumentParser` sometimes rejects positional arguments with no
arguments when `choices` is set and `nargs="*"`.
When there are no arguments and `nargs` is `"*"`, the default value is chosen,
or `[]` if there is no defau
Change by James Corbett :
--
keywords: +patch
pull_requests: +20171
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/20996
___
Python tracker
<https://bugs.python.org/issu
New submission from James Corbett :
The `unittest.TestCase.skipTest` method, used to skip the current test, is
currently an instance method. There's nothing to stop it from being a
`classmethod` or a `staticmethod` though---it doesn't use its reference to
`self` since it's just a wrapper
en insert it into the
__dict__ as 'from', although a custom serializer
would probably be preferable from a design standpoint.
Might it be simpler to use a dict from the start? You could have a
dictionary key of "from" without any problems.
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
h
version of Windows are you using? What exactly did you do to install
Pygame and Pgzero, in order, and what exactly went wrong. Please copy
and paste any error messages, don't send screenshots because the mailing
list will strip them off and we won't see them.
--
Rhodri James *-* Kynesim Lt
L's importlib over Python's native import-s, for one
of these (or any other) reason?
Um, why would I?
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
like ["The", "quick",
"brown", "fox"]. There's a decent purpose for a class implementing the
features you want, but I honestly don't think the generic list class is it.
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
turns up when you search for
"windows runtime missing" explains what's going on and points to this link.
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
faintly gobsmacked that anyone
expects something like that to work. If you want a directory, create
it. That's what os.mkdir (and the pathlib equivalent) is for.
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
r the last one, and I've been around here for a while
-- it's too hot for me to want to go hunt in the archives :-).
How are these unexpected extensionless files getting created?
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
else is, as
you have discovered, error-prone.
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
way and joining
continues from the absolute path component." Since "\\" is an absolute
path component, all the previous components are thrown away and you are
left with just "\\".
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
b.PureWindowsPath('/').is_absolute()
|False
Thanks, that seems to suggest that there is an issue and that I should
hence submit this as an issue.
It is indeed most curious as to why this obviously absolute path is not
recognised as such :-)
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
New submission from James Barrett :
As discussed in <
https://github.com/python/typeshed/issues/3999#issuecomment-634097968 > the
type of `AbstractEventLoop.run_in_executor` is defined at <
https://github.com/python/cpython/blob/master/Lib/asyncio/events.py#L286 > as
follows:
`
On 24/05/2020 05:27, Souvik Dutta wrote:
Is there any precedence or priority order by which sys.stderr.write() and
sys.stdout.write() works.
No.
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
of view of
someone who writes more C code than Python, not having to remember a new
set of habits for Python makes life a lot simpler.
Chacun à son goût and all that.
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
same difficulty really. I certainly don't find it
"hard" to grep for _snake_case.
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
James Addison added the comment:
NB: There appears to be some relevant discussion in
https://github.com/whatwg/url/issues/469
--
___
Python tracker
<https://bugs.python.org/issue18
James Addison added the comment:
The pair of pull requests below implement None-preserving urlencode and
parse_qs* via a default-disabled flag 'standalone_keys'.
- https://bugs.python.org/pull_request19259
- https://bugs.python.org/pull_request19264
(they're also already linked
Change by James Addison :
--
pull_requests: +19264
pull_request: https://github.com/python/cpython/pull/19949
___
Python tracker
<https://bugs.python.org/issue18
led advice.
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
Change by James Addison :
--
pull_requests: +19259
pull_request: https://github.com/python/cpython/pull/19945
___
Python tracker
<https://bugs.python.org/issue18
James Addison added the comment:
Chiming in here to add that I'd appreciate the ability to render 'standalone'
(i.e. no '=') query-string keys in order to distinguish between
absence-of-value and empty-string situations.
The backwards-compatibility concerns in here are genuine, so perhaps
I tried:
dt=+"{:02d}".format(day)
but I got:
dt=+"{:02d}".format(day)
TypeError: bad operand type for unary +: 'str'
This works:
dt=dt+"{:02d}".format(day)
Why can't I do the shortcut on strings?
--
https://mail.python.org/mailman/listinfo/python-list
.
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
01 0
OK I don't see any violation of quoting or parentheses matching. Still trying
to figure out what this lambda does.
Presumably it's something to do with recognising string prefixes?
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
On 17/04/2020 22:27, dcwhat...@gmail.com wrote:
On Friday, April 17, 2020 at 2:11:17 PM UTC-4, Rhodri James wrote:
And people wonder why I stick to gdb when at all possible :-)
Never worked with it. Is it a debugger for compiled code, i.e. it steps
through the executable while displaying
to
cast something to (uint8_t *) because I want to see the bytes and the
IDE will not give up on trying to interpret them for me.
And people wonder why I stick to gdb when at all possible :-)
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
EE *binary*
format, what constitutes an *exact* decimal may be a little surprising!
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
nt = sum(1 for a in chars if a in seek)
It it's not so simple, neither the comprehension nor your proposal are
going to be as readable as the twice nesting.
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
think you can.
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
On 01/04/2020 18:24, Musbur wrote:
Am 01.04.2020 15:01 schrieb Rhodri James:
I believe you do it in C as you would in Python: you call the Series
class!
pyseries = PyObject_CallObject((PyObject *)_type, NULL);
Well, that dumps core just as everything else I tried.
What does work, however
ve you do it in C as you would in Python: you call the Series class!
pyseries = PyObject_CallObject((PyObject *)_type, NULL);
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
.
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
On 19/03/2020 14:47, Peter J. Holzer wrote:
On 2020-03-19 14:24:35 +, Rhodri James wrote:
On 19/03/2020 13:00, Peter J. Holzer wrote:
It's more compact, especially, if "d" isn't a one-character variable,
but an expression:
fname, lname = db[people].employee.object.g
instance is created.
Try running this code:
class first:
print("from first")
Just that. No instantiation, no "first()", nothing else. Just the
class suite itself.
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
is better still).
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
dule(s) to a list of default modules. Or is it possible?
The goal was to build python for cross-platforms with external modules.
James
--
https://mail.python.org/mailman/listinfo/python-list
When you build python binaries from source, how to add external modules?
For example, to install cython, conventional method is building python first,
then running setup.py for cython.
I'd like to combine the 2-step into one.
Thanks
James
--
https://mail.python.org/mailman/listinfo/python-list
." Email works exceedingly well
for this sort of thing, despite Google's antics.
+10
The best response to "This system breaks when I abuse it" is almost
always "Well stop abusing it then."
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
New submission from Jerry James :
Python 3.8:
>>> import random
>>> r = random.Random(False)
>>> r
Python 3.9 alpha 4:
>>> import random
>>> r = random.Random(False)
Traceback (most recent call last):
File "", line 1, in
File
threading disasters by itself, though it will make it
easier to protect it as you need.
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
since get_it(piece) returns the error:
builtins.TypeError: get_it() takes no arguments
It works for me (pace sticking something in GetIt.seen to avoid getting
a KeyError). You aren't muddling up the class name and instance name
are you?
--
Rhodri James *-* Kynesim Ltd
--
https
a global class instance hanging around, which is not
actually any better than a global dictionary.
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
asions when you want it, but
more often you should be working in UTC not local time.
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
James Edington added the comment:
Here is a file to try it out in an instant.
(lines 11–28 are not necessary; they are just "luxuries" allowing easier
testing of the issue in a web browser)
--
Added file: https://bugs.python.org/file489
New submission from James Edington :
It appears that cgi.parse() in Python 3.7.6 [GCC 9.2.1 20190827 (Red Hat
9.2.1-1)] fatally chokes on POST requests with multipart/form-data due to some
internal processing still relying on assumptions from when str and bytes were
the same object.
I'll
On 20/02/2020 15:08, Duram wrote:
On 19/02/2020 12:17, Rhodri James wrote:
On 19/02/2020 14:22, Duram via Python-list wrote:
I have a drawing in a .gif file with (a,b) pixels and want to
paperprint it in a position (x,y), what would be the code?
What have you tried?
Nothing, I did not find
On 19/02/2020 14:22, Duram via Python-list wrote:
I have a drawing in a .gif file with (a,b) pixels and want to paperprint
it in a position (x,y), what would be the code?
What have you tried?
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
On 12/02/2020 17:46, Python wrote:
On Wed, Feb 12, 2020 at 01:16:03PM +, Rhodri James wrote:
On 12/02/2020 00:53, Python wrote:
In pretty much every job I've ever worked at, funding work (e.g. with
humans to do it) with exactly and precisely the resources required is
basically impossible
project, which will accrue its own
technical debt...
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
a look in the documents will tell you that strings indeed do not
have a loads_data() method.
I don't know what library you are intending to use, but you need to open
your file with that first.
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
File "", line 1, in
t = time.clock()
AttributeError: module 'time' has no attribute 'clock'
It is correct, there is no time.clock() function. The documentation is
here: https://docs.python.org/3/library/time.html
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python
rom input,
converts it to a string (stripping a trailing newline), and returns
that. When EOF is read, EOFError is raised.
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
.
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
New submission from James :
Creating a Bitfield from a ctypes union and structure results in unexpected
behaviour. It seems when you set the bit-width of a structure field to be
greater than 8 bits it results in the subsequent bits being set to zero.
class BitFieldStruct
On 08/01/2020 18:08, many people wrote lots of stuff...
Folks, could we pick one list and have the discussion there, rather than
on both python-list and python-ideas? Getting *four* copies of Andrew's
emails is a tad distracting :-)
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org
-- which have no graphical
interface).
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
irrelevant to me and those like me.
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
more likely than me to
recognise which of them are relevant to your circumstances.
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
James Brown added the comment:
This is a surprising change to put in a minor release. This change totally
changes the semantics of parsing scheme-less URLs with ports in them and ended
up breaking a significant amount of my software. It turns out that urls like
`example.com:80` are more
I would use software like Airtable. You set the columns, Airtable produces
a type-checked form. Every spreadsheet also comes with its own API, so you
can exfiltrate the data programmatically easily.
On Sat, Dec 28, 2019, 10:36 L A Smit wrote:
> Hi
>
> Don't know if this is the correct subject
Change by Clinton James :
--
keywords: +patch
pull_requests: +17204
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/17768
___
Python tracker
<https://bugs.python.org/issu
New submission from Clinton James :
Currently, sqlite3 returns rows by tuple or sqlite3.Row for dict-style, index
access. I constantly find myself wanting attribute access like namedtuple for
rows. I find attribute access cleaner
without the brackets and quoting field names. However
such file or directory
user@USERnoMacBook-Air LibraBrowser %
Huh. You've done a "pip3 install hexdump" so I don't know what might be
happening here. Sorry.
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
ogies for that.
c) I would much prefer it if you didn't top-post, but interleaved your
replies like I've done here. I find it hard to follow top-posted
messages because they reverse the normal flow of conversation.
On Wed, Dec 18, 2019 at 11:39 PM Rhodri James wrote:
On 18/12/2019 02:23, tomm
it. Could you copy and paste (DON'T
retype!) the error instead, so we can all read it?
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
t; It
doesn't. This happens to be the behaviour in CPython, but other
implementations vary as Chris has explained several times now.
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
plications for those
implementations. I can't speak to the details; the only other
implementation I use is Micropython, and I don't use that often enough
to have cared about the details of garbage collection beyond noting that
it's different to CPython.
--
Rhodri James *-* Kynesim Ltd
--
https://mai
an implementation detail of your computer.
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
On 10/12/2019 19:00, R.Wieser wrote:
MRAB,
You merely disabled the mark-and-sweep collector.
Nope. Go check the docs on "gc"
Yep. Go and check the docs on "gc" *carefully*
*plonk*
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
n until your script terminates.
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
al machine) to each service. So do that, using whatever
digits you have left after the unique machine number.
* Mash these two numbers into a single ten digit identifier.
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
..
I'm afraid this is a text-only mailing list, so your screenshot has been
stripped off before any of us could see it. Please could you copy and
paste the text of the error message you receive.
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
On 05/12/2019 19:30, Rhodri James wrote:
On 05/12/2019 18:49, RobH wrote:
Update:
I did python3 Internet.py
and now only get this error:
pi@raspberrypi:~/Downloads $ python3 Internet.py
File "Internet.py", line 24
font = ImageFont.truetype( 'Minecrafti
and demand that we use either all tabs or all
spaces for our indentation. That's what you've fallen foul off; there
must be a mix of tabs and spaces in that line!
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
James Hennessy added the comment:
The quickest fix for the data corruption problem is to delete the line
newfile.seek(file.tell(), 0)
from the rollover() method.
This doesn't fix the inconsistency of tell() and seek(), but it's very low
risk. It's technically a change to the API
James Hennessy added the comment:
I don't like the idea of using a TemporaryFile right from the beginning in text
mode. You might as well remove text mode support altogether if that's the
approach you want to take, since it undoes any potential performance benefit of
using
James Hennessy added the comment:
I have to disagree with the idea that SpooledTemporaryFile is not useful.
Although on some systems, the file system may appear as fast as memory, that
cannot be assumed to be universally true. I think the idea behind
SpooledTemporaryFile is completely
) # prints 'It was 5'
show_my_global() # prints '3'
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
Where do I go to find a more complete specification for Python? I want to
learn about common semi-internal language features used by popular
libraries, because I am reimplementing Python.
The reference guide says:
> While I am trying to be as precise as possible, I chose to use English
> rather
uot; (my emphasis.)
MyVar is a global here, so nonlocal explicitly doesn't pick it up.
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
the shebang line invoking env, as far
I recall, was that you'd get the "proper" system python3 wherever it had
been put rather than something random and possibly malicious. I guess
that means to go for your first option.
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
that worthwhile.
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
cross-platform with NMake/GNU make is every bit as horrid
as you're imagining when you start getting clever, and I haven't tried
doing it for years. Generally when I'm working on both Windows and
Linux, Cygwin is involved anyway so I just use GNU make and be done with it.
--
Rhodri James
e, and use it in preference to the IDE when I can.
Yes, it's a hassle, but it's a hassle you're going to go through anyway.
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
but this is a
toy example and just as easily written with lambdas if you're that
worried about using up names.
-10 from me.
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
, but still requires a
lot of careful thought. For example you've asserted that the modules
you want to import simultaneously, but you also need to consider the
import mechanism itself.
Put 1 and 2 together, and multi-threaded import sounds like a nightmare.
--
Rhodri James *-* Kynesim Ltd
101 - 200 of 4053 matches
Mail list logo