, which I certainly still
am, but also show enough complexity to see the concept in action.
Any hints / links to github or similar highly welcome. If the list is not the
appropriate place, I am happy if you email me directly.
Cheers,
Andreas
> -Original Message-
> From: Pytho
Andreas Eisele schrieb am Donnerstag, 30. März 2023 um 11:16:02 UTC+2:
> I sometimes make use of the fact that the built-in pow() function has an
> optional third argument for modulo calculation, which is handy when dealing
> with tasks from number theory, very large numbers, prob
ce for any enlightening comment on this.
Best regards, Andreas
--
https://mail.python.org/mailman/listinfo/python-list
ches a detached rm. It works pretty well
> until it is invoked by cron! I suspect that for cron we need to specify
> the full path.
> Of course I can hardcode /usr/bin/rm. But, is rm always in /usr/bin?
> What about other commands?
Why not just use os.unlink ?
'Andreas
--
https://mail.python.org/mailman/listinfo/python-list
-like format strings solved the issue.
Now the application bowls happily along, consistently below 0.02 seconds
per second application time.
2. Valgrind + callgrind is an awesome toolchain to spot performance issues,
even on VMs.
Am Di., 4. Okt. 2022 um 11:05 Uhr schrieb Andreas Ames <
andreas.0
ts = (381, 9, 3); 1 second of application time corresponds to
> 0.39760732650756836 seconds real time.
> 2022-10-04 10:41:56|INFO|__main__ |Execution loop 2800 done. GC
> counts = (381, 9, 3); 1 second of application time corresponds to
> 0.42221736907958984 seconds real time.
> 2022-10-04 10:42:01|INFO|__main__ |Execution loop 2900 done. GC
> counts = (381, 9, 3); 1 second of application time corresponds to
> 0.4237234592437744 seconds real time.
Thanks in advance,
Andreas
--
https://mail.python.org/mailman/listinfo/python-list
, that are unfortunately
about to end.
Thanks again, Community.
On 08.08.22 12:47, Andreas Croci wrote:
tI would like to write a program, that reads from the network a fixed
amount of bytes and appends them to a list. This should happen once a
second.
Another part of the program should take the list, as it has
ead, which would include a normally slow disk access.
Andreas
Julio
--
https://mail.python.org/mailman/listinfo/python-list
Thanks for your reply.
On 08.08.22 13:20, Stefan Ram wrote:
Yes, but this is difficult. If you ask this question here,
you might not be ready for this.
Indeed.
I haven't learned it yet myself, but nevertheless tried to
write a small example program quickly, which might still
tI would like to write a program, that reads from the network a fixed
amount of bytes and appends them to a list. This should happen once a
second.
Another part of the program should take the list, as it has been filled
so far, every 6 hours or so, and do some computations on the data (a
Change by Andreas Kloeckner :
--
nosy: +inducer
___
Python tracker
<https://bugs.python.org/issue21873>
___
___
Python-bugs-list mailing list
Unsubscribe:
Andreas H. added the comment:
Inside the discussion an ExitPool class is sketched
(https://mail.python.org/archives/list/python-id...@python.org/message/66W55FRCYMYF73TVMDMWDLVIZK4ZDHPD/),
which provides this removal of context managers.
What I learned is that this would have different
Change by Andreas H. :
--
pull_requests: +29443
pull_request: https://github.com/python/cpython/pull/31283
___
Python tracker
<https://bugs.python.org/issue46
Andreas Skaar added the comment:
Steve Dower do you have any links to the issues you mention? Are these now
solved?
I am not able to see if the fix is straightforward, but from the information
from Eryk Sun it sounds like it should
Andreas H. added the comment:
Allright. B) sounds good to me. I dont think I have time today, so please feel
to tackle the issue. If not I can look at it the next week.
--
___
Python tracker
<https://bugs.python.org/issue46
New submission from Andreas H. :
TypedDict does not resolve cross-module ForwardRefs when the ForwardRef is not
a direct one.
In other words the fix GH-27017 (issue 41249) for TypedDict seems incomplete.
The same issue seem to exist for NamedTuple.
Example:
#module.py
TD
New submission from Andreas H. :
(De)Serialization of in-memory data structures is an important application.
However there is a rather unpleasant issue with ForwardRefs.
One cannot export type aliases when they contain ForwardRefs (and expect
things to work).
Consider the example
New submission from Andreas H. :
Consider the following:
NewT = typing.NewType("NewT", typing.List[typing.Optional['Z']] )
class Z:
pass
Now get_type_hints() does not resolve the ForwardRef within NewType (but it
does so for TypedDict, dataclasses, NamedTuple).
Andreas H. added the comment:
Ah, let me add one point: PEP563 (-> `from __future__ import annotations`) is
also not helping.
Even with PEP563 enabled, the JSON example
Json = Union[ List['Json'], Dict[str, 'Json'], int, float, bool, None ]
needs to be written in exact the same
Andreas H. added the comment:
Yeah, sure. The use-case is (de)serialization. Right now I use the library
cattr, but there are many others.
If you are interested there is related discussion in the cattr board [1].
The original problem is how to define the types for serialization.
1
Andreas H. added the comment:
I will give it a try.
--
___
Python tracker
<https://bugs.python.org/issue46333>
___
___
Python-bugs-list mailing list
Unsub
New submission from Andreas H. :
The __eq__ method of ForwardRef does not take into account the module
parameter.
However, ForwardRefs with dissimilar module parameters are referring to
different types even if they have different name. Thus also the ForwardRef's
with same name
New submission from Andreas Ley :
https://docs.python.org/3.11/tutorial/controlflow.html
(and earlier versions) have the sentence:
An unpacking like **rest is also supported. (But **_ would be redundant, so it
not allowed.)
Although I'm not a native speaker, I suppose this is missing a verb
Andreas Skaar added the comment:
What is the next steps on this bug?
Have you created a bug with libffi if this is not working correctly eryksun?
Sounds like you understand what the bug report need to contain.
On implementing a workaround in ctypes. Is this possible?
--
nosy
Andreas H. added the comment:
I see your point. But even with `pop` or `remove` it is still a stack or
stack-like. In the normal case the context managers are still released in
reverse order as they were added. Order cannot be changed arbitrarily.
There is just the additional function
New submission from Andreas H. :
Currently it is not possible to remove context managers from an ExitStack (or
AsyncExitStack).
Workarounds are difficult and generally do accesses implementation details of
(Async)ExitStack.
See e.g. https://stackoverflow.com/a/37607405. It could be done
New submission from Andreas H. :
The issue is that the main task (which was supplied to asyncio.run) has no
chance to clean up its "own" sub-tasks and handle
possible exceptions that occur during the sub-task clean up. It prevents a
graceful shutdown.
There is no way to prevent t
Change by Andreas Jansson :
--
keywords: +patch
pull_requests: +24903
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/26300
___
Python tracker
<https://bugs.python.org/issu
New submission from Andreas Jansson :
The mime type of .bmp was changed from image/x-ms-bmp in
https://github.com/python/cpython/pull/4756.
https://github.com/python/cpython/pull/3062 then re-introduced image/x-ms-bmp
while keeping the newer image/bmp mapping.
--
components: Library
Hi,
I have written some classes that represent immutable views on collections (see
"immutable-views" package on Pypi).
Currently, these view classes inherit from the abstract collection classes such
as Mapping, Sequence, Set. However, they implement the read-only methods of
dict, list and set,
New submission from Andreas Poehlmann :
Hello,
I was using the `importlib_resources` backport and encountered this issue,
which is also present in cpython:
`importlib.readers.MultiplexedPath.name` is not a property as required by
`importlib.abc.Traversable`
I can prepare a pull request
New submission from Andreas Zeller :
The following line of code fails in Python 3.6, which I find surprising.
>>> assert '''"""''' == '""""' # Fails
Note that the following all pass as expected:
>>> assert ""&
Change by Andreas Poehlmann :
--
keywords: +patch
pull_requests: +22416
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/23534
___
Python tracker
<https://bugs.python.org/issu
New submission from Andreas Poehlmann :
Hello,
I encountered an issue with collections.ChainMap, that was introduced when
https://bugs.python.org/issue32792 got fixed.
Iterating a ChainMap will call __getitem__ on its underlying maps:
>>> from collections import UserDict,
New submission from Andreas Jung :
Building 3.9.0b3 fails on Ubuntu 19 and 20 in same way:
./python -E -S -m sysconfig --generate-posix-vars ;\
if test $? -ne 0 ; then \
echo "generate-posix-vars failed" ; \
rm -f ./pybuilddir.txt ; \
exit 1 ; \
fi
Coul
New submission from Andreas Sommer :
Documentation recommends calling `doctest.testmod()`, but exits with code 0
even if a test fails.
--
assignee: docs@python
components: Documentation
messages: 367086
nosy: Andreas Sommer, docs@python
priority: normal
severity: normal
status: open
Andreas Schneider added the comment:
I forgot, for detecting alignment issues or strict aliasing and this also falls
under strict aliasing, you need to turn on optimizations.
clang -O2 -Werror -Wcast-align ...
--
___
Python tracker
<ht
Andreas Schneider added the comment:
clang -Werror -Wcast-align ...
rpm -q clang9
clang9-9.0.1-8.1.x86_64
Does that help? Found in CI of
https://gitlab.com/cwrap/pam_wrapper
--
___
Python tracker
<https://bugs.python.org/issue40
Change by Andreas Schneider :
--
type: -> compile error
versions: +Python 3.8
___
Python tracker
<https://bugs.python.org/issue40052>
___
___
Python-bugs-lis
New submission from Andreas Schneider :
In file included from /builds/cryptomilk/pam_wrapper/src/python/pypamtest.c:21:
In file included from /usr/include/python3.8/Python.h:147:
In file included from /usr/include/python3.8/abstract.h:837:
/usr/include/python3.8/cpython/abstract.h:91:11: error
New submission from Andreas Spar :
with open(filename, "rt") as csvfile:
csv_reader = csv.DictReader(csvfile, delimiter=csv_delimiter)
filednames = csv_reader.fieldnames
In Python 3.8 csv expects utf-8 encoded files but apperently doens't read the
header with ut
Change by Andreas Kloeckner :
--
nosy: +inducer
___
Python tracker
<https://bugs.python.org/issue21161>
___
___
Python-bugs-list mailing list
Unsubscribe:
Andreas Jung added the comment:
This issue is still true for 3.8.0b1, Ubuntu 19.04, umask is 0077, Python 3.8
is installed using "sudo make install".
!bin/python
bin/python setup.py develop
running develop
running egg_info
writing fs.webdavfs.egg-info/PKG-INFO
writing depend
Andreas Jung added the comment:
Typical traceback:
WARNING:plone.app.contenttypes.indexers:Lookup of PrimaryField failed for
http://nohost/plone_portal/microscopycentre/img/fotos-specialist-course2018.htm/demo10-jpg
If renaming or importing please reindex
New submission from Andreas Jung :
I am using Python 3.6 and 3.7 (always latest minor releases) with Plone 5.2 and
I various issues with
Fatal Python error: Cannot recover from stack overflow.
and do not make much sense to me.
Some related tracebacks are documented here
https://github.com
Andreas Gäer added the comment:
I'm a little bit puzzled that this bug is closed as "not a bug" despite the
fact that all versions of python allow the user to create "invalid" ZIP files
and all version up to 3.7 are able to read those "invalid" files.
Cu
Andreas Jung added the comment:
invalid
--
___
Python tracker
<https://bugs.python.org/issue37361>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Andreas Jung :
--
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue37361>
___
___
Python-bugs-list
New submission from Andreas Jung :
Python 3.7.3
The following code is support to add a retry to the requests module.
"total" is correctly initialized with 5 here but internally self.total becomes
an instation of "Session"
import requests
from requests.adapters imp
Andreas K. Hüttel added the comment:
Who am I to disagree.
--
resolution: -> third party
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Andreas Schneider added the comment:
And how do you deal with METH_VARARGS|METH_KEYWORDS functions which have 3
arguments?
PyObject* myfunc(PyObject *py_obj, PyObject *args, PyObject *kwargs)
--
___
Python tracker
<https://bugs.python.
Andreas Schneider added the comment:
Looking at:
https://github.com/python/cpython/commit/359a2f3daba49fde0d3a07fb3c7a8b051c450d08
This is not fixing the underlying issue but hiding it. The right fix would be
to use a union for ml_meth providing members for the 3 different function. So
New submission from Andreas K. Hüttel :
Hi. I have been trying to install Python on a (well prototype of a) risc-v
multilib Gentoo system, where the system library directory is /usr/lib64/lp64d
(!).
See as reference for the directories
https://www.sifive.com/blog/all-aboard-part-5-risc-v
Change by Andreas Åkerlund :
--
nosy: -thezulk
___
Python tracker
<https://bugs.python.org/issue17267>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Andreas Schwab :
--
keywords: +patch, patch, patch
pull_requests: +11536, 11537, 11538
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issu
Change by Andreas Schwab :
--
keywords: +patch, patch
pull_requests: +11536, 11537
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issu
Change by Andreas Schwab :
--
keywords: +patch
pull_requests: +11536
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue35847>
___
___
Py
New submission from Andreas Schwab :
==
FAIL: test_pass_by_value (ctypes.test.test_structures.StructureTestCase)
--
Traceback (most recent call last):
File
Andreas Schwab added the comment:
rpm -e timezone
--
___
Python tracker
<https://bugs.python.org/issue35818>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Andreas Schwab :
bpo-35317 solution is incomplete, the test needs to be skipped if the timezone
database is unavailable.
--
messages: 334294
nosy: barry, miss-islington, p-ganssle, r.david.murray, schwab, vstinner, xtreak
priority: normal
severity: normal
status
Andreas Schwab added the comment:
The test still fails if the timezone database is not available.
--
nosy: +schwab
___
Python tracker
<https://bugs.python.org/issue35
Andreas Lutro added the comment:
I see this has been closed, but the page on the devguide is still really hard
to find. On the python IRC channel I often see questions about this and I
always have a hard time finding the page with the correct information.
If I google "python version su
New submission from Andreas Jung :
I installed Python 3.7.0 from source inside /opt/python-3.7.0 (make install as
root).
Then I created a virtual environment for a package and tried to develop the
package.
Python 3.7.0 tries to create a file
/opt/python-3.7.0/lib/python3.7/lib2to3
Change by Andreas Jung :
--
components: Installation
nosy: ajung
priority: normal
severity: normal
status: open
title: python 3.7 inside venv tries to write back to installation directory
___
Python tracker
<https://bugs.python.org/issue34
Change by Andreas Jung <aj...@users.sourceforge.net>:
--
components: +Installation
___
Python tracker <rep...@bugs.python.org>
<https://bugs.python
Change by Andreas Jung <aj...@users.sourceforge.net>:
--
title: Fatal Python error: Py_Initialize: Unable to get the locale encoding ->
Fatal Python error: Py_Initialize: Unable to get the locale encoding on
Debian/Python 3.6.4 sou
New submission from Andreas Jung <aj...@users.sourceforge.net>:
Unable to build Python 3.6.4 from sources on a fresh Debian system:
@plone /tmp/Python-3.6.4 $ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
NAME="Debian GNU/Linux"
VERSION_ID="9&q
Change by Andreas Schwab <sch...@linux-m68k.org>:
--
components: Build
nosy: schwab
priority: normal
severity: normal
status: open
title: Add platform triplet for RISC-V
type: enhancement
___
Python tracker <rep...@bugs.python.or
New submission from Andreas Költringer <andreas.koeltrin...@n-fuse.co>:
On my first try to use the netrc module I got back the error:
"~/.netrc access too permissive: access permissions must restrict access to
only the owner"
I changed the file permissions and wrappe
Andreas Schwab <sch...@linux-m68k.org> added the comment:
> The technical issue here is that the libc has no "stateless" function to
> process bytes and text with one specific locale.
That's not true. There is a rich set of *_l functions that take a locale_t
object and
Andreas Krüger <pkydtb...@famsik.de> added the comment:
I can easily reproduce the problem with Docker,
and it does seem to be a permission problem:
$ docker run -ti --rm --user=":" python:3.6.3-jessie bash -c
"python3"
Python 3.6.3 (default, Oct 10
Andreas Schwab <sch...@linux-m68k.org> added the comment:
This causes test_float.py to fail with glibc > 2.26.
ERROR: test_float_with_comma (__main__.GeneralFloatCases)
--
Traceback (most recent call last):
File &quo
New submission from Andreas Jung:
We are currently testing Python 3.6.2 with a BottlePY based with "meinheld"
WSGI server and we see frequently these crashesis this related to Python or
meinheld in particular?
Linux unknown-device 4.7.0-1-amd64 #1 SMP Debian 4.7.2-1 (2016-08-
I need to installed Python 3.6.x on Windows as part of an automated process
without user-interaction. Recently Python releases provided MSI files for
installation using the "msiexec" utility however there are no more MSI release
files available for Python 3.6.X. Are there any alternatives?
Andreas Jung added the comment:
--enable-optimizations is not the issue
Seems to be somehow related to the locales.
My env is:
ALSA_CONFIG_PATH=/etc/alsa-pulse.conf
AUDIODRIVER=pulseaudio
AUTOJUMP_ERROR_PATH=/home/ajung/.local/share/autojump/errors.log
COLORTERM=1
CONFIG_SITE=/usr/share/site
Andreas Jung added the comment:
Just the standard
./configure --prefix=... --enable-optimizations
dance
--
nosy: +ajung
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/i
New submission from Andreas Jung:
Installing Python 3.6.1 from the sources on OpenSuse 42.1 gives me:
o Python/mystrtoul.o Python/mysnprintf.o Python/peephole.o Python/pyarena.o
Python/pyctype.o Python/pyfpe.o Python/pyhash.o Python/pylifecycle.o
Python/pymath.o Python/pystate.o Python
On 2017-02-11 02:23:12 +, Cameron Simpson said:
def your_function(...):
with open('/path/to/your/logfile.txt', 'a') as logfp:
print("PATH=".os.environ['PATH'], file=logfp)
p=Popen(...)
p.communicate(...)
print("p.returncode=%r" % (p.returncode))
and
Thanks for all the great advice.
I tested all the possibilities. So far no luck. If i start the app from
a terminal, the solutions work. But not, if i start the app-bundle
(There is no connection to a terminal)
1. Copied the path to p.subprocess
2. Used the def wich: python function
3. Used
I guess which does not return an error code. If it does not find
anything, the return is just blank. If it finds something, the path is
returned.
So the change of code did not help, because there is just no error message.
Could there be a $path problem in the subprocess started inside the
Maybe i could use another trick to circumvent the problems in the
frozen app? The frozen apps can be downloaded here:
https://sourceforge.net/projects/panconvert/files/Newest/
@Cameron:
1. I use PyQT5 for a creating a gui app. To run the app on other
systems, where no QT5 and PyQT5 is
The Problem with the subprocess code is: Using the sourcecode
functioning as normal.
The frozen app with cx_freeze on every platform just returns an empty result
Here is the code in short:
def get_path_pandoc():
settings = QSettings('Pandoc', 'PanConvert')
path_pandoc =
Andreas Åkerlund added the comment:
Changed the patch after pointers from vadmium.
And quote_uri is changed to quote_iri as martin.panter thought it was more
appropriate.
--
Added file: http://bugs.python.org/file46440/issue3991_2017-01-27.diff
Andreas Bergmeier added the comment:
Just hit that bug. Is this really not yet fixed in any newer version?
--
nosy: +Andreas Bergmeier
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/i
Changes by Andreas Stenberg <andr...@stenite.com>:
--
nosy: +astenberg
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue7434>
___
_
Andreas Stührk added the comment:
It was reported as bug to a project that uses the traceback module
(https://github.com/bpython/bpython/issues/651). Parsley
(https://pypi.python.org/pypi/Parsley) is at least one library that uses
unhashable exceptions, although I guess it's by accident
New submission from Andreas Stührk:
The traceback module tries to handle loops caused by an exception's __cause__
or __context__ attributes when printing tracebacks. To do so, it adds already
seen exceptions to a set. Unfortunately, it doesn't handle unhashable
exceptions:
>>>
Changes by Andreas Gnau <ron...@rondom.de>:
--
nosy: +Rondom
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27923>
___
__
Changes by Andreas Gnau <ron...@rondom.de>:
--
nosy: +Rondom
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue11429>
___
__
Andreas Gustasfson added the comment:
I am also suffering from this bug, using Python 2.7.12 on NetBSD, and it is
blocking my efforts to do automated testing of NetBSD/Xen.
I'm attaching a minimal test case (only 3 lines).
--
nosy: +gson
Added file: http://bugs.python.org/file44634
Andreas Bolsch added the comment:
I'm afraid I don't know Tcl nor python good enough to be able to strip this
down to a reasonably simple test case.
However, I wonder what's going on there:
When the Tcl variable holding the radiobutton's value contains "x", "z", ...,
v
New submission from Andreas Bolsch:
Applies to 2.7.10 and 2.7.12:
Installed LinuxCNC from source at https://github.com/LinuxCNC/linuxcnc :
./configure --with-realtime=uspace --enable-simulator
--enable-non-distributable=yes --prefix=/usr --libdir=/usr/lib64
make
make install
Configured device
On 12.08.2016 06:48, Lawrence D’Oliveiro wrote:
On Wednesday, August 10, 2016 at 3:42:39 AM UTC+12, Reto Brunner wrote:
What on earth isn't "free" enough about
You are free to:
Share — copy and redistribute the material in any medium or format
No you are not. A court has ruled
On 30.06.2016 11:42, Lawrence D’Oliveiro wrote:
On Thursday, June 30, 2016 at 9:31:29 PM UTC+12, Andreas Röhler wrote:
Science is not about believing, but about models.
The nice thing about science is, it works even if you don’t believe in it.
Thats it!
--
https://mail.python.org/mailman
On 30.06.2016 10:24, Steven D'Aprano wrote:
On Thursday 30 June 2016 12:13, Rustom Mody wrote:
The irrational and emotional psychological forces that inspire mathematicians
can make interesting reading, but they have no relevance in deciding who is
write or wrong.
Hmm, so math is not
On 30.06.2016 10:24, Steven D'Aprano wrote:
On Thursday 30 June 2016 12:13, Rustom Mody wrote:
[ ... ]
Besides, the whole point of science is to develop objective, rational reasons
to believe things.
Science is not about believing, but about models.
Believing is important to make the career
On 30.06.2016 03:33, Lawrence D’Oliveiro wrote:
So you see, like it or not, we are drawn to the conclusion that there *was*
indeed something before our particular Big Bang.
That's linear like the Big Bang theorie. What about assuming something
beyond our notion of time and space, unknown
On 23.06.2016 14:08, Antoon Pardon wrote:
Op 23-06-16 om 13:45 schreef Chris Angelico:
On Thu, Jun 23, 2016 at 7:23 PM, Antoon Pardon
wrote:
I don't care. In modern mathematics, zero is usaly defined as the
empty set. The empty set contains nothing, but it
On 23.06.2016 11:46, Marko Rauhamaa wrote:
Ridiculous? It was this line of thinking that led Paul Dirac to predict
the existence of antimatter.
Marko
Yeah. Maybe we could construct examples already using antagonistic
charges of electrons?
--
On 23.06.2016 11:17, Steven D'Aprano wrote:
[ ... ]
We can derive arithmetic from set theory.
IMO not, resp. not really. But that would make a another item, pretty
off-topic from Python.
Should you know a place where to continue, would like to follow up.
Thanks BTW.
Zero is very
1 - 100 of 1064 matches
Mail list logo