Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2023-12-22 Thread Christian Buhtz via Python-list
What is the "command line" on your Windows 11? On Windows 10 it usually is "cmd.exe" (Windows Command Prompt). On Windows 11 it usually is the "Terminal" which is different from cmd.exe. -- https://mail.python.org/mailman/listinfo/python-list

Request to Review: Tutorial about Python Packaging offering different use case

2023-12-13 Thread Christian Buhtz via Python-list
e problems and possible solutions I created this minimal examples. I also do plan a tutorial repo about Debian Python Packaging using the same approach with minimal examples illustrating different use cases. Thanks in advance, Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: Detect naming typos (AttributeError) in function names

2023-11-06 Thread Christian Buhtz via Python-list
Hello Dieter, thanks for your reply. Am 06.11.2023 19:11 schrieb Dieter Maurer: One option is a test suite (--> Python's "unittest" package) with a sufficiently high coverage (near 100 %). Yes, that is the primary goal. But it is far away in the related project. I got a hint that "pylint"

Detect naming typos (AttributeError) in function names

2023-11-06 Thread Christian Buhtz via Python-list
quot;foo" package if "baR()" really exist. Can I fix this somehow? I am aware that this would get detected by a unit test. That is the way I do prefer in most cases. But sometimes not all code segments are covered by tests. I'm more interested in using a linter or somethi

Re: unable to run the basic Embedded Python example

2023-06-26 Thread Christian Gollwitzer via Python-list
the C code. Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: Tkinter docs?

2023-05-24 Thread Christian Gollwitzer
Text (for multiline formatted text entry), Canvas (for 2D drawings), and Toplevel (for new windows/ popups etc.) Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: How to add clickable url links to 3D Matplotlib chart ?

2023-03-30 Thread Christian Gollwitzer
easy support for it any more in recent browsers. Therefore it would be difficult to post this to the internet, unless you invest in some JS programming. In case you want to run this on your local computer, as opposed to in the browser, you can check out Python game engines.

Re: Cutting slices

2023-03-06 Thread Christian Gollwitzer
ion will be required to find it. OK, so if you want to use an RE for splitting, can you not use re.split() ? It basically works like the built-in splitting in AWK >>> s='alphaAbetaBgamma' >>> import re >>> re.split(r'A|B|C', s) ['alp

Re: Evaluation of variable as f-string

2023-01-29 Thread Christian Gollwitzer
Am 28.01.23 um 02:56 schrieb Thomas Passin: On 1/27/2023 5:10 PM, Christian Gollwitzer wrote: Am 27.01.23 um 21:43 schrieb Johannes Bauer: I don't understand why you fully ignore literally the FIRST example I gave in my original post and angrily claim that you solution works when it doe

Re: Evaluation of variable as f-string

2023-01-27 Thread Christian Gollwitzer
ste:Abschlussmeeting chris$ ipython Python 3.8.8 (default, Apr 13 2021, 12:59:45) Type 'copyright', 'credits' or 'license' for more information IPython 7.22.0 -- An enhanced Interactive Python. Type '?' for help. In [1]: x = { "y": "z" } In [2]: s = "-> {x[y]}" In [3]: print(s.format(x = x)) -> z In [4]: Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: How to turn this Matlab code into python

2022-11-08 Thread Christian Gollwitzer
Am 08.11.22 um 09:01 schrieb Dioumacor FAYE: From datenum to data_mjja=precp(:,ind_mjja); I think the code filters data based on calendar dates. I'd guess that you can do that most easily with pandas. https://pandas.pydata.org/docs/user_guide/timeseries.html Christian Le l

Re: How to turn this Matlab code into python

2022-11-07 Thread Christian Gollwitzer
(2018,12,31); date = datevec(dates); ind_mjja=find(date(:,2)>=5 & date(:,2)<=8);% May to Aug (May(31)+ June(30)+ July(31)+ August(31)= 123 days) data_mjja=precp(:,ind_mjja); data_mjja_res=reshape(data_mjja,14000,123,38); which part do you have trouble with? Christia

Re: How to manage python shebang on mixed systems?

2022-11-07 Thread Christian Gollwitzer
uired, and that the whole purpose of the /usr/bin/env thing is to search the path (because it is universally installed in /usr/bin) and to possibly set other environment variables Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: setup.py + cython == chicken and the egg problem

2022-08-17 Thread Christian Gollwitzer
from Cython.Build. So maybe just deleting these two lines and it might work? Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: Which linux distro is more conducive for learning the Python programming language?

2022-08-04 Thread Christian Heimes
fedora is free as well. Fedora is an excellent choice for Python users. Fedora 36 already comes with Python 3.11.0b5 in its main repository. In fact you have Python 2.7, 3.5-3.11, PyPy 2.7, PyPy 3.7-3.9, and MicroPython at your fingertips. Christian -- https://mail.python.org/mailman/listinfo

Re: "CPython"

2022-06-21 Thread Christian Gollwitzer
articles don't seem to be any better. To me, this sentence is so badly cobbled together that it could be the output of a KI of some sort (GPT-3) trying to summarize stuff from the web. It doesn't make any sense at all on a semantic level. Christian -- https://mail.python.

Re: How to test characters of a string

2022-06-09 Thread Christian Gollwitzer
become quite ugly if you avoid REs or any other pattern matching tools. This is also the main reason I suggested REs initially - often if you see other patterns in the data, you can easily adapt a RE solution, whereas you'll have to write the thing from ground up anew if you do it manually. Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: How to test characters of a string

2022-06-09 Thread Christian Gollwitzer
s (A|B)\d- As long as one digit is enough. What is your goal, to extract these numbers or to strip them? Regexes can do both relatively easily. Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: How to test characters of a string

2022-06-07 Thread Christian Gollwitzer
Am 07.06.22 um 23:01 schrieb Christian Gollwitzer: In [3]: re.sub(r'^\d+\s*', '', s) Out[3]: 'Trinket' that RE does match what you intended to do, but not exactly what you wrote in the OP. that would be '^\d\d.' start with exactly two digits follow

Re: How to test characters of a string

2022-06-07 Thread Christian Gollwitzer
tasks like this they are made and working well. ^ is "starts with" \d is any digit \s is any space + is at least one * is nothing or one of Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: Automatic Gain Control in Python?

2022-05-29 Thread Christian Gollwitzer
ge compression" if you want to understand it in detail. Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: Issue sending data from C++ to Python

2022-05-18 Thread Christian Gollwitzer
into Python is by means of a Numpy Array. In order to do that, you need to include arrayobject.h and then use PyArray_SimpleNew to create an array of numbers as a Python object which you can return https://numpy.org/devdocs/reference/c-api/array.html#c.PyArray_SimpleNew Christian

Re: No shortcut Icon on Desktop

2022-04-15 Thread Christian Gollwitzer
s installers create these shortcuts during the installation process for you - typically there is a pre-selected checkbox "Create desktop icons" or similar. I agree with Grant that this is what users expect from the installer. Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: Comparing sequences with range objects

2022-04-09 Thread Christian Gollwitzer
e your own comparator function? Also, if the only case where this actually works is the index of all other records, then a simple boolean flag "all" vs. "these items in the index list" would suffice - doesn't it? Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: Exchange OWA using Python?

2022-04-01 Thread Christian Gollwitzer
Am 01.04.22 um 01:26 schrieb Grant Edwards: On 2022-03-31, Christian Gollwitzer wrote: Davmail is written in Java, not Python, but basically this should not matter if you only use it. Have you used it with OWA as the protocol? At least I thought so - this was in 2016 - 2017 and there was

Re: Exchange OWA using Python?

2022-03-31 Thread Christian Gollwitzer
protocols like POP3, IMAP, SMTP. You can use any email/calender client (I've used thunderbird) and most of it worked well. Davmail is written in Java, not Python, but basically this should not matter if you only use it. Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: Set tkinter top-level window to "always on visible workspace"

2022-03-28 Thread Christian Gollwitzer
Tkinter itself. Sure: Call "winfo_id()" on the toplevel. You might want to reformat in it in hex format, which is the usual way to pass these IDs around. Tk actually returns it in hex format, but Tkinter reformats it as an integer. Christian -- https://mail.python.org/mailma

Re: Set tkinter top-level window to "always on visible workspace"

2022-03-28 Thread Christian Gollwitzer
GNOME desktop, but suspect it should be similarly easy. Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: Compiling and Linking pre-built Windows Python libraries with C++ files on Linux for Windows

2022-03-21 Thread Christian Gollwitzer
cibuildwheel. Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: strange problem building non-pure wheel for apple M1 arm64

2022-03-08 Thread Christian Gollwitzer
freetype functions in your C code and do not see it referenced, then the lib will not work. Maybe you can install an ARM-version of freetype, or compile it from source during your build process? Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: Why does not Python accept functions with no names?

2022-02-20 Thread Christian Gollwitzer
t; in the example. It's a different matter how useful this actually is. One of the object systems in Tcl uses the empty variable to represent "self" as an array, so that you can write $(prop) for self.prop as it is in Python. Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: PermissionError: [Errno 13] Permission denied: 'Abc.xlsx'

2022-02-10 Thread Christian Gollwitzer
ion and also what the OP has described. Hence it is impossible to concurrently write from Python into an open Excel file. One might ask what the real problem is the user is trying to solve. Is Excel a requirement, can it be swapped by a database engine? Best regards, Christian -

Re: How to solve the given problem?

2022-02-10 Thread Christian Gollwitzer
Am 10.02.22 um 11:26 schrieb NArshad: -ChrisA: You don't reply if you have problems. When I don't find any solution elsewhere then only I place in this group -Christian: One problem of different type requires the same elaboration. No it doesn't Q. What technique of statisti

Re: How to solve the given problem?

2022-02-09 Thread Christian Gollwitzer
t is almost the same problem. Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: PermissionError: [Errno 13] Permission denied: 'Abc.xlsx'

2022-02-09 Thread Christian Gollwitzer
en-us/office/dde-function-79e8b21c-2054-4b48-9ceb-d2cf38dc17f9 Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: Correct way to setup a package with both compiled C code and Python code?

2022-02-08 Thread Christian Gollwitzer
Am 08.02.22 um 18:57 schrieb Dieter Maurer: Christian Gollwitzer wrote at 2022-2-7 20:33 +0100: we've developed a Python pacakge which consists of both a compiled extension module and some helper functions in Python. Is there a tutorial on how to package such an extension? Look at &

Correct way to setup a package with both compiled C code and Python code?

2022-02-07 Thread Christian Gollwitzer
pass "-fopenmp" to gcc and "/openmp" to msvc. Is there a way to set this flag automatically depending on the compiler? Best regards, Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: ssl server: how to disable client cert verfication?

2022-02-04 Thread Christian Heimes
cert auth during handshake or renegotiation. Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: ssl server: how to disable client cert verfication?

2022-02-04 Thread Christian Heimes
You can't. Python's ssl module does not expose the necessary feature to override the verification callback SSL_CTX_set_verify(). PyOpenSSL lets you set a callback and ignore any and all errors. Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: About Python Compressed Archive or Binaries

2022-01-18 Thread Christian Heimes
ll work is done in our free time, there is only little progress. Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: Failure to Display Top menu

2021-11-27 Thread Christian Gollwitzer
what was the expectation? Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: One line sort

2021-11-16 Thread Christian Gollwitzer
(x:xs) = qsort [a | a <- xs, a < x] ++ [x] ++ qsort [b | b <- xs, b >= x] The Haskell version is a bit clearer IMHO due to the pattern matching, but that results in a 2 liner :) Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: Create a contact book

2021-10-26 Thread Christian Gollwitzer
how to do it: https://facebook.com/ Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: sum() vs. loop

2021-10-12 Thread Christian Gollwitzer
fastest AND clearest with numpy.dot(seq1, seq2) - in case that the sequence consists of floats and, in the best case, is already stored in a numpy array. Then you cannot beat this with Python code. Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: sum() vs. loop

2021-10-11 Thread Christian Gollwitzer
throws the list away, while the second version only keeps the running sum in memory. How about a generator expression instead, i.e. sum((a * b for a, b in zip(seq1, seq2))) (untested) ? Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: NUmpy

2021-09-29 Thread Christian Gollwitzer
uld still work. Second, the problem is not in the code that you posted. POssibly in the definition of "Dataset". Maybe the netCDF-File contains boolean values and the package you use to read it should be updated? Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: XML Considered Harmful

2021-09-23 Thread Christian Gollwitzer
a CSV table. That definitely isn't what a sane person would understand as "support". Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: on floating-point numbers

2021-09-04 Thread Christian Gollwitzer
Am 04.09.21 um 14:48 schrieb Hope Rouselle: Christian Gollwitzer writes: Am 02.09.21 um 15:51 schrieb Hope Rouselle: Just sharing a case of floating-point numbers. Nothing needed to be solved or to be figured out. Just bringing up conversation. (*) An introduction to me I don't under

Re: on floating-point numbers

2021-09-03 Thread Christian Gollwitzer
Am 02.09.21 um 21:02 schrieb Julio Di Egidio: On Thursday, 2 September 2021 at 20:43:36 UTC+2, Chris Angelico wrote: On Fri, Sep 3, 2021 at 4:29 AM Hope Rouselle wrote: All I did was to take the first number, 7.23, and move it to the last position in the list. (So we have a violation of the

Re: on floating-point numbers

2021-09-02 Thread Christian Gollwitzer
algorithm and other alternatives: https://en.wikipedia.org/wiki/Kahan_summation_algorithm Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: on floating-point numbers

2021-09-02 Thread Christian Gollwitzer
* Pretty harsh, isn't it? He gave a concise example of the same inaccuracy right afterwards. Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: Create a real-time interactive TUI using Python.

2021-08-31 Thread Christian Gollwitzer
achieve this ;) This kind of interface is usually done with the "curses"-library. There is a Python version of it, see e.g. here https://docs.python.org/3/howto/curses.html Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: Searching pypi.org, is there an 'advanced search'?

2021-07-18 Thread Christian Heimes
quite a few open source projects over the years, and that's a lot of > years! I even have a small credit in the 'bible' for the Kermit file > transfer protocol, remember that?) PyPI used to have a search API. The XML-RPC endpoints were disabled last year due to flooding. Our infrastructure could not cope with abusive queries. You can read the log of events at https://status.python.org/ Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: Subpixel positioning on Tk canvas

2021-06-21 Thread Christian Gollwitzer
Am 20.06.21 um 01:49 schrieb Terry Reedy: On 6/19/2021 12:42 AM, Christian Gollwitzer wrote: Sorry for that answer, but Tkinter does not support many of the most useful extensions for Tcl/Tk, because someone has to write the wrappers. It only supports what is provided by base Tk. Among those I

Re: Tkinter problem

2021-06-20 Thread Christian Gollwitzer
Am 19.06.21 um 08:48 schrieb Jach Feng: Christian Gollwitzer 在 2021年6月19日 星期六下午1:54:46 [UTC+8] 的信中寫道: I guess you wanted to post another question? Then please open a new thread. In addition, the question is unclear, you just posted a transcript of three lines of Python. I posted to point out

Re: Tkinter problem

2021-06-19 Thread Christian Gollwitzer
Am 19.06.21 um 07:16 schrieb Jach Feng: Christian Gollwitzer 在 2021年6月19日 星期六下午12:27:54 [UTC+8] 的信中寫道: Am 19.06.21 um 05:59 schrieb Jach Feng: import tkinter as Tk Tk from tkinter import * Tk tkinter Traceback (most recent call last): File "", line 1, in NameError: name &#

Re: Subpixel positioning on Tk canvas

2021-06-19 Thread Christian Gollwitzer
Am 19.06.21 um 06:26 schrieb George Furbish: On Saturday, June 19, 2021 at 12:22:31 AM UTC-4, Christian Gollwitzer wrote: Am 19.06.21 um 02:03 schrieb George Furbish: Does Tk support interpolation/subpixel positioning of canvas elements? (e.g. images, text.) I have moving elements on my

Re: Tkinter problem

2021-06-19 Thread Christian Gollwitzer
import A as B" does not define A. That's a feature, not a bug. Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: Tkinter problem

2021-06-18 Thread Christian Gollwitzer
ink doesn't seem to support that idea: https://stackoverflow.com/questions/61168210/is-there-any-way-to-use-tkinter-with-google-colaboratory Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: Is there a way to get the following result in Python?

2021-06-15 Thread Christian Gollwitzer
]: def foo(): ...: return [1,2,3] ...: In [2]: def bar(): ...: return [] ...: In [3]: a=[] In [4]: a += foo() In [5]: a Out[5]: [1, 2, 3] In [6]: a += bar() In [7]: a Out[7]: [1, 2, 3] Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: learning python ...

2021-05-27 Thread Christian Gollwitzer
gt; 3 Here, the "l" is not changed. The reason is that the statement "a=5" does NOT modify the object in a, but instead creates a new one and binds it to a. l still points to the old one. Whereas a.append() tells the object pointed to by a to change. Christian --

Re: Bloody rubbish

2021-05-06 Thread Christian Gollwitzer
s I recall. Needless to say, we didn't use an assembler either. We just wrote raw opcodes and their arguments on paper. This was in the late 70s.) Pure luxury! https://xkcd.com/378/ Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: Not found in the documentation

2021-04-29 Thread Christian Gollwitzer
backslash. Try print(s). It would be different with a raw string s=r"""42 not\ in [42]""" Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: question about basics of creating a PROXY to MONITOR network activity

2021-04-10 Thread Christian Seberino
> > > a) your reverse proxy must be colocated with the service it fronts on the > same machine; > b) your network infrastructure transparently encrypts traffic between your > proxy and the service; or > c) your proxy must negotiate its own TLS connection(s) with the service. > Paul Thanks. I'm cu

Re: Retrieving non-/etc/passwd users with Python 3?

2021-03-31 Thread Christian Heimes
other > system entirely), since "database" is more getent terminology. > > In any case, I think 'pwd' is hiding its light under a bushel a bit > here. Please open a documentation bug :) The pwd and grp module use the libc API to get users from the local account database. On Linux and glibc the account database is handled by NSS and nsswitch.conf. By the way I recommend that you use SSSD instead of talking to LDAP directly. You'll have a much more pleasant experience. Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: convert script awk in python

2021-03-25 Thread Christian Gollwitzer
parsing language, or even just handcoded Python is much more maintainable. Christian PS: Exercise - handle lines commented out with a '#', i.e. skip those. In awk: gawk '!/^\s*#/ {sum += $2 } END {print sum}' -- https://mail.python.org/mailman/listinfo/python-list

Re: port to PDOS (especially mainframe)

2021-03-24 Thread Christian Heimes
? CPython requires C99 since 3.6, https://docs.python.org/3/whatsnew/3.6.html#build-and-c-api-changes Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: .title() - annoying mistake

2021-03-22 Thread Christian Gollwitzer
uitable to title-case a string, not even in English. Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: neonumeric - C++ arbitrary precision arithmetic library

2021-03-07 Thread Christian Gollwitzer
time. Maybe focussed to a single language or two, but not "universal" in any sense. Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: Tkinter long-running window freezes

2021-02-25 Thread Christian Gollwitzer
Am 26.02.21 um 06:15 schrieb John O'Hagan: On Thu, 25 Feb 2021 21:57:19 +0100 Christian Gollwitzer wrote: I think it is not yet clear, if this is a bug in Tkinter or in Tcl/Tk, the underlying scripting language. It might also be platform dependent. Are you on Windows? Here is an equivalen

Re: error of opening Python

2021-02-25 Thread Christian Gollwitzer
alled along with Python on Windows), or something very different? Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: Tkinter long-running window freezes

2021-02-25 Thread Christian Gollwitzer
te the Tcl that is used by Python directly, you may also do something like root = Tk() root.eval('Here comes the Tcl code') root.mainloop() Can you also find out what version of Tcl/Tk you are using? Try root.eval('info patchlevel') Christian -- https://mail.pyth

Re: Python 0.9.1

2021-02-18 Thread Christian Gollwitzer
Was Guido not aware of Tcl, or did he not think that it is a contender in the same area? Christian [1] "Python, an extensible interpreted programming language [...] can be used instead of shell, Awk or Perl scripts, to write prototypes of real applications, or as an extens

Re: New Python implementation

2021-02-16 Thread Christian Gollwitzer
impressive that you can write actual useful code with such a minimalist language (infix math? Pure bloat!). OTOH it feels like "assembly" compared to more evolved functional languages like, e.g. Haskell. Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: New Python implementation

2021-02-15 Thread Christian Gollwitzer
(e.g. Python), and therefore is "complex". Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: New Python implementation

2021-02-15 Thread Christian Gollwitzer
of your compiler, Here is the git repo: https://github.com/i42output/neos under languages/ you'll find different schema files. Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: New Python implementation

2021-02-14 Thread Christian Gollwitzer
Am 14.02.21 um 11:12 schrieb Paul Rubin: Christian Gollwitzer writes: He wants that neoGFX is scriptable in Python, but instead of linking with CPython, he will write his own Python implementation instead, because CPython is slow/not clean/ whatever. He doesn't seem to understand that th

Re: New Python implementation

2021-02-14 Thread Christian Gollwitzer
xpect to have a usable product soon. Best regards, Christian [*] https://github.com/i42output/neoGFX -- https://mail.python.org/mailman/listinfo/python-list

Re: Python subinterpreters with separate GILs

2021-02-10 Thread Christian Heimes
On 11/02/2021 03.51, James Lu wrote: > Directly removing the Global Interpreter Lock (GIL) would break a lot > of libraries that implicitly assume it is there. What if Python had > "realms" that each had separate GILs? > > The "realms" (not sure if "subinterpreter" is the correct term here) > coul

Re: Convert MBOX thunderbird to PST outlook

2021-02-08 Thread Christian Gollwitzer
s, For thatm you can run radicale: https://radicale.org/3.0.html A Python-based calendar server. Then upload your calendars there from Thunderbird and download them from Outlook. Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: idlelib re-use

2021-01-30 Thread Christian Gollwitzer
to a frame with wm_forget(), after which you can simply pack it into another frame. The second one is configuring a frame as a container, which allows to even embed a window from a foreign application. I'm not sure this works on all platforms, though. Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: A beginning beginner's question about input, output and . . .

2021-01-12 Thread Christian Gollwitzer
ps://medium.com/@yon.goldschmidt/running-python-in-the-linux-kernel-7cbcbd44503c http://www.kplugs.org/ Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: dayofyear is not great when going into a new year

2021-01-08 Thread Christian Gollwitzer
us, because then the weekend is split into the first and last day of the week (?) - even if, historically, the week was the time from Sunday to Sunday. Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: tkinter: creating/attaching menubar to top level window

2021-01-08 Thread Christian Gollwitzer
dd_cascade(menu=self.menu_file, label='File') and then it works, Why am I getting an invalid syntax error here? Because the dot would indicate the access of an attribute. but no name follows. What it does here, instead, is indexing - the correct line is similar to setting a d

Re: Class and tkinter problem

2021-01-06 Thread Christian Gollwitzer
import tkinter @staticmethod ^^it works if you remove the staticmethod here def cmd(): print("Test") Maybe there is a bug in tkinter, that it doesn't work with static methods? Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: I'm finally disentangled from Python 2, thank you everyone

2020-12-30 Thread Christian Gollwitzer
'dist' environment) to the target where you want to run it Try and run it on the target Iteratively work through the errors it throws up when you run it, in my case these were:- Missing .so system library files, copy them from the build system to somewhere they will be found on the target. You could put them in a 'private to the package' directory and set LD_LIBRARY_PATH or do as I did and put them in a standard library location (and run ldconfig after adding each). I've used pyinstaller in the past, and it seems to do a better job with that. It usually copies all the sytem libraries, too, but would fail with /usr/libexec/okimfputl & friends Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: Debian testing and virtual environment error message

2020-12-27 Thread Christian Heimes
object-oriented language (pyvenv binary, > version 3.9) Don't worry, you are not the first person that ran into this issue. Debian's packaging of Python has caused multiple issues. I have reported some issues to downstream Debian/Ubuntu. You can find a list of all know

Re: Function returns old value

2020-12-18 Thread Christian Gollwitzer
by itself. It also has other useful features like menus and popup-dialogs for searching etc. Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: linear algebric equations

2020-12-08 Thread Christian Gollwitzer
) time python3 430.py real0m0.318s user0m0.292s sys 0m0.046s If it takes longer than 1s, there is something wrong with your system. Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: how to plot the FFT of a list of values

2020-12-05 Thread Christian Gollwitzer
numpy as np fx = fft(x) pylab.semilogy(np.abs(fx)) pylab.show() Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: Why can't numpy array be restored to saved value?

2020-11-26 Thread Christian Gollwitzer
array. This is an optimization to avoid copying. If you want a copy, do svary = npary.copy() Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: Strange terminal behavior after quitting Tkinter application

2020-11-03 Thread Christian Gollwitzer
the terminal and then close the terminal (which sends SIGHUP to the program). In this case the program might later on throw I/O errors, when printing to stdout. Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: GUI (tkinter) popularity and job prospects for

2020-10-23 Thread Christian Gollwitzer
with a native Python for Android. https://www.androwish.org/home/home Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: Covariance matrix syntax

2020-10-18 Thread Christian Gollwitzer
the source code of the function. Best regards, Christian Thanks Meghna On Tue, Oct 13, 2020 at 11:46 AM Christian Gollwitzer wrote: Am 13.10.20 um 06:52 schrieb Meghna Karkera: Could you let me know what is the back end calculation of this covariance matrix syntax np.cov You can

Re: Covariance matrix syntax

2020-10-12 Thread Christian Gollwitzer
function signature, there is a link [source]. Click there and it takes you to the implementation. Apparently it is done in straightforward Python. Christian PS: Snipped a lot of unrelated citation at the bottom On Tue, Oct 13, 2020, 10:14 Bruno P. Kinoshita wrote: [...] I think the

Re: ValueError: arrays must all be same length

2020-10-04 Thread Christian Gollwitzer
dataframe to look like? dataframes are 2D tables, JSON is a tree. Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: Interference tkinter and plot from matplotlib

2020-09-30 Thread Christian Gollwitzer
If you want a simple solution instead of full-blown GUI programming, use IPython https://ipython.readthedocs.io/en/stable/config/eventloops.html or jupyter notebooks. Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: Use of a variable in parent loop

2020-09-28 Thread Christian Gollwitzer
g and it works fine. #include int main(int argc, char * argv[]) { if(1 == 1) ; No. You put ";", that's not nothing. Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: Use of a variable in parent loop

2020-09-27 Thread Christian Gollwitzer
ost recent call last) in () > 1 a NameError: name 'a' is not defined So the "def f()" obviously introduces local scope, but control structures like if and while do not. Christian [*] In Python it's called "name binding", but it mostly works like v

Re: Video file to subtitles file

2020-08-30 Thread Christian Gollwitzer
Am 30.08.20 um 21:43 schrieb MRAB: On 2020-08-30 18:10, Christian Gollwitzer wrote: Well, with enough effort it is possible to build a system that is more useful than "entertaining". Google did that, English youtube videos can be annotated with subtitles from speech recognition. F

  1   2   3   4   5   6   7   8   9   10   >