RE: TKinter in Python - advanced notions

2023-06-23 Thread Andreas Heckel via Python-list
, 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

Re: built-in pow() vs. math.pow()

2023-04-03 Thread Andreas Eisele
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

built-in pow() vs. math.pow()

2023-03-30 Thread Andreas Eisele
ce for any enlightening comment on this. Best regards, Andreas -- https://mail.python.org/mailman/listinfo/python-list

Re: Find the path of a shell command

2022-10-17 Thread Andreas Eder
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

Re: Performance issue with CPython 3.10 + Cython

2022-10-07 Thread Andreas Ames
-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

Performance issue with CPython 3.10 + Cython

2022-10-04 Thread Andreas Ames
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

Re: Parallel(?) programming with python

2022-08-15 Thread Andreas Croci
, 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

Re: Parallel(?) programming with python

2022-08-08 Thread Andreas Croci
ead, which would include a normally slow disk access. Andreas Julio -- https://mail.python.org/mailman/listinfo/python-list

Re: Parallel(?) programming with python

2022-08-08 Thread Andreas Croci
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

Parallel(?) programming with python

2022-08-08 Thread Andreas Croci
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

[issue21873] Tuple comparisons with NaNs are broken

2022-03-24 Thread Andreas Kloeckner
Change by Andreas Kloeckner : -- nosy: +inducer ___ Python tracker <https://bugs.python.org/issue21873> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45184] Add `pop` function to remove context manager from (Async)ExitStack

2022-02-23 Thread Andreas H.
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

[issue46333] ForwardRef.__eq__ does not respect module parameter

2022-02-11 Thread Andreas H.
Change by Andreas H. : -- pull_requests: +29443 pull_request: https://github.com/python/cpython/pull/31283 ___ Python tracker <https://bugs.python.org/issue46

[issue41021] ctypes callback with structure crashes in Python 3.8 on Windows x86

2022-02-07 Thread Andreas Skaar
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

[issue46369] get_type_hints does not evaluate ForwardRefs inside NewType

2022-01-14 Thread Andreas H.
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

[issue46373] TypedDict and NamedTuple do not evaluate cross-module ForwardRef in all cases

2022-01-14 Thread Andreas H.
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

[issue46371] A better way to resolve ForwardRefs in type aliases across modules

2022-01-13 Thread Andreas H.
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

[issue46369] get_type_hints does not evaluate ForwardRefs inside NewType

2022-01-13 Thread Andreas H.
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).

[issue46333] ForwardRef.__eq__ does not respect module parameter

2022-01-12 Thread Andreas H.
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

[issue46333] ForwardRef.__eq__ does not respect module parameter

2022-01-12 Thread Andreas H.
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

[issue46333] ForwardRef.__eq__ does not respect module parameter

2022-01-10 Thread Andreas H.
Andreas H. added the comment: I will give it a try. -- ___ Python tracker <https://bugs.python.org/issue46333> ___ ___ Python-bugs-list mailing list Unsub

[issue46333] ForwardRef.__eq__ does not respect module parameter

2022-01-10 Thread Andreas H.
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

[issue45712] so it not allowed

2021-11-04 Thread Andreas Ley
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

[issue41021] ctypes callback with structure crashes in Python 3.8 on Windows x86

2021-09-27 Thread Andreas Skaar
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

[issue45184] Add `pop` function to remove context manager from (Async)ExitStack

2021-09-13 Thread Andreas H.
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

[issue45184] Add `pop` function to remove context manager from (Async)ExitStack

2021-09-13 Thread Andreas H.
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

[issue44795] asyncio.run does not allow for graceful shutdown of main task

2021-07-31 Thread Andreas H.
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

[issue44211] Duplicate '.bmp' key in mimetypes.py, maps to both 'image/bmp' and 'image/x-ms-bmp'

2021-05-21 Thread Andreas Jansson
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

[issue44211] Duplicate '.bmp' key in mimetypes.py, maps to both 'image/bmp' and 'image/x-ms-bmp'

2021-05-21 Thread Andreas Jansson
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

Immutable view classes - inherit from dict or from Mapping?

2021-04-12 Thread Andreas R Maier
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,

[issue43643] importlib.readers.MultiplexedPath.name is not a property

2021-03-27 Thread Andreas Poehlmann
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

[issue42876] '''"""''' != '""""'

2021-01-09 Thread Andreas Zeller
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 ""&

[issue42487] collections.ChainMap.__iter__ calls __getitem__ on underlying maps

2020-11-27 Thread Andreas Poehlmann
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

[issue42487] collections.ChainMap.__iter__ calls __getitem__ on underlying maps

2020-11-27 Thread Andreas Poehlmann
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,

[issue41529] Unable to compile 3.0b3 on Ubuntu systems: Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding

2020-08-12 Thread Andreas Jung
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

[issue40372] doctest example programs should exit 1 if any test fails

2020-04-23 Thread Andreas Sommer
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

[issue40052] Incorrect pointer alignment in _PyVectorcall_Function() of cpython/abstract.h

2020-03-24 Thread Andreas Schneider
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

[issue40052] Incorrect pointer alignment in _PyVectorcall_Function() of cpython/abstract.h

2020-03-24 Thread Andreas Schneider
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

[issue40052] Incorrect pointer alignment in _PyVectorcall_Function() of cpython/abstract.h

2020-03-24 Thread Andreas Schneider
Change by Andreas Schneider : -- type: -> compile error versions: +Python 3.8 ___ Python tracker <https://bugs.python.org/issue40052> ___ ___ Python-bugs-lis

[issue40052] Incorrect pointer alignment in _PyVectorcall_Function() of cpython/abstract.h

2020-03-24 Thread Andreas Schneider
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

[issue39876] csv.DictReader.fieldnames interprets unicode as ascii

2020-03-06 Thread Andreas Spar
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

[issue21161] list comprehensions don't see local variables in pdb in python3

2019-12-05 Thread Andreas Kloeckner
Change by Andreas Kloeckner : -- nosy: +inducer ___ Python tracker <https://bugs.python.org/issue21161> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34224] python 3.7 inside venv tries to write back to read-only installation directory (Grammar3.7.0.final.0.pickle)

2019-07-21 Thread Andreas Jung
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

[issue37402] Fatal Python error: Cannot recover from stack overflow issues on Python 3.6 and 3.7

2019-06-25 Thread Andreas Jung
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

[issue37402] Fatal Python error: Cannot recover from stack overflow issues on Python 3.6 and 3.7

2019-06-25 Thread Andreas Jung
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

[issue34606] Unable to read zip file with extra

2019-06-25 Thread Andreas Gäer
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

[issue37361] urllib3: TypeError: unsupported operand type(s) for -=: 'Session' and 'int' in Retry class

2019-06-21 Thread Andreas Jung
Andreas Jung added the comment: invalid -- ___ Python tracker <https://bugs.python.org/issue37361> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37361] urllib3: TypeError: unsupported operand type(s) for -=: 'Session' and 'int' in Retry class

2019-06-21 Thread Andreas Jung
Change by Andreas Jung : -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue37361> ___ ___ Python-bugs-list

[issue37361] urllib3: TypeError: unsupported operand type(s) for -=: 'Session' and 'int' in Retry class

2019-06-21 Thread Andreas Jung
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

[issue36699] building for riscv multilib (patch attached)

2019-05-02 Thread Andreas K . Hüttel
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

[issue33012] Invalid function cast warnings with gcc 8 for METH_NOARGS

2019-04-30 Thread Andreas Schneider
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.

[issue33012] Invalid function cast warnings with gcc 8 for METH_NOARGS

2019-04-30 Thread Andreas Schneider
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

[issue36699] building for riscv multilib (patch attached)

2019-04-22 Thread Andreas K . Hüttel
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

[issue17267] datetime.time support for '+' and '-'

2019-04-13 Thread Andreas Åkerlund
Change by Andreas Åkerlund : -- nosy: -thezulk ___ Python tracker <https://bugs.python.org/issue17267> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35847] RISC-V needs CTYPES_PASS_BY_REF_HACK

2019-01-29 Thread Andreas Schwab
Change by Andreas Schwab : -- keywords: +patch, patch, patch pull_requests: +11536, 11537, 11538 stage: -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue35847] RISC-V needs CTYPES_PASS_BY_REF_HACK

2019-01-29 Thread Andreas Schwab
Change by Andreas Schwab : -- keywords: +patch, patch pull_requests: +11536, 11537 stage: -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue35847] RISC-V needs CTYPES_PASS_BY_REF_HACK

2019-01-29 Thread Andreas Schwab
Change by Andreas Schwab : -- keywords: +patch pull_requests: +11536 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue35847> ___ ___ Py

[issue35847] RISC-V needs CTYPES_PASS_BY_REF_HACK

2019-01-29 Thread Andreas Schwab
New submission from Andreas Schwab : == FAIL: test_pass_by_value (ctypes.test.test_structures.StructureTestCase) -- Traceback (most recent call last): File

[issue35818] test_email: test_localtime_daylight_false_dst_true() fails if timezone database is missing

2019-01-24 Thread Andreas Schwab
Andreas Schwab added the comment: rpm -e timezone -- ___ Python tracker <https://bugs.python.org/issue35818> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35818] test_email: test_localtime_daylight_false_dst_true() fails if timezone database is missing

2019-01-24 Thread Andreas Schwab
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

[issue35317] test_email: test_localtime_daylight_false_dst_true() fails depending on the timezone

2019-01-24 Thread Andreas Schwab
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

[issue25296] Simple End-of-life guide covering all unsupported versions

2018-09-15 Thread Andreas Lutro
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

[issue34224] python 3.7 inside venv tries to write back to read-only installation directory (Grammar3.7.0.final.0.pickle)

2018-07-25 Thread Andreas Jung
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

[issue34224] python 3.7 inside venv tries to write back to installation directory

2018-07-25 Thread Andreas Jung
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

[issue33142] Fatal Python error: Py_Initialize: Unable to get the locale encoding on Debian/Python 3.6.4 source build

2018-03-26 Thread Andreas Jung
Change by Andreas Jung <aj...@users.sourceforge.net>: -- components: +Installation ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

[issue33142] Fatal Python error: Py_Initialize: Unable to get the locale encoding on Debian/Python 3.6.4 source build

2018-03-26 Thread Andreas Jung
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

[issue33142] Fatal Python error: Py_Initialize: Unable to get the locale encoding

2018-03-26 Thread Andreas Jung
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

[issue33070] Add platform triplet for RISC-V

2018-03-13 Thread Andreas Schwab
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

[issue33059] netrc module validates file mode only for /home/user/.netrc

2018-03-12 Thread Andreas Költringer
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

[issue31900] localeconv() should decode numeric fields from LC_NUMERIC encoding, not from LC_CTYPE encoding

2018-01-28 Thread Andreas Schwab
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

[issue19891] Exiting Python REPL prompt with user without home directory throws error in atexit._run_exitfuncs

2017-10-28 Thread Andreas Krüger
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

[issue28604] Exception raised by python3.5 when using en_GB locale

2017-09-30 Thread Andreas Schwab
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

[issue31316] Frequent *** stack smashing detected *** with Python 3.6.2/meinheld WSGI server

2017-08-31 Thread Andreas Jung
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-

Installation Python 3.6.x on Windows using command line installer (without GUI)

2017-07-27 Thread Andreas Jung
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?

[issue30633] Python 3.6.1 installation issues on OpenSuse 42.1: ModuleNotFoundError: No module named 'encodings'

2017-06-12 Thread Andreas Jung
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

[issue30633] Python 3.6.1 installation issues on OpenSuse 42.1: ModuleNotFoundError: No module named 'encodings'

2017-06-12 Thread Andreas Jung
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

[issue30633] Python 3.6.1 installation issues on OpenSuse 42.1: ModuleNotFoundError: No module named 'encodings'

2017-06-12 Thread Andreas Jung
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

Re: subprocess problem

2017-02-15 Thread Andreas Paeffgen
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

Re: subprocess problem

2017-02-10 Thread Andreas Paeffgen
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

Re: subprocess problem

2017-02-09 Thread Andreas Paeffgen
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

Re: subprocess problem

2017-02-09 Thread Andreas Paeffgen
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

subprocess problem

2017-02-08 Thread Andreas Paeffgen
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 =

[issue3991] urllib.request.urlopen does not handle non-ASCII characters

2017-01-27 Thread Andreas Åkerlund
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

[issue23462] All os.exec*e variants crash on Windows

2017-01-26 Thread Andreas Bergmeier
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

[issue7434] general pprint rewrite

2016-12-14 Thread Andreas Stenberg
Changes by Andreas Stenberg <andr...@stenite.com>: -- nosy: +astenberg ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue7434> ___ _

[issue28603] traceback module can't format/print unhashable exceptions

2016-11-07 Thread Andreas Stührk
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

[issue28603] traceback module can't format/print unhashable exceptions

2016-11-03 Thread Andreas Stührk
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: >>>

[issue27923] PEP 467 -- Minor API improvements for binary sequences

2016-10-11 Thread Andreas Gnau
Changes by Andreas Gnau <ron...@rondom.de>: -- nosy: +Rondom ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27923> ___ __

[issue11429] ctypes is highly eclectic in its raw-memory support

2016-10-11 Thread Andreas Gnau
Changes by Andreas Gnau <ron...@rondom.de>: -- nosy: +Rondom ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue11429> ___ __

[issue27973] urllib.urlretrieve() fails on second ftp transfer

2016-09-13 Thread Andreas Gustasfson
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

[issue27817] tkinter string variable misinterpreted as boolean

2016-08-21 Thread Andreas Bolsch
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

[issue27817] String variable misinterpreted as boolean

2016-08-20 Thread Andreas Bolsch
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

Re: Call for Assistance

2016-08-12 Thread Andreas Röhler
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

Re: Can math.atan2 return INF?

2016-06-30 Thread Andreas Röhler
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

Re: Can math.atan2 return INF?

2016-06-30 Thread Andreas Röhler
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

Re: Can math.atan2 return INF?

2016-06-30 Thread Andreas Röhler
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

Re: Can math.atan2 return INF?

2016-06-30 Thread Andreas Röhler
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

Re: Operator Precedence/Boolean Logic

2016-06-23 Thread Andreas Röhler
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

Re: Operator Precedence/Boolean Logic

2016-06-23 Thread Andreas Röhler
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? --

Re: Operator Precedence/Boolean Logic

2016-06-23 Thread Andreas Röhler
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   2   3   4   5   6   7   8   9   10   >