ll work is done in
our free time, there is only little progress.
Christian
--
https://mail.python.org/mailman/listinfo/python-list
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
cert auth
during handshake or renegotiation.
Christian
--
https://mail.python.org/mailman/listinfo/python-list
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
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 &
en-us/office/dde-function-79e8b21c-2054-4b48-9ceb-d2cf38dc17f9
Christian
--
https://mail.python.org/mailman/listinfo/python-list
t is almost the same problem.
Christian
--
https://mail.python.org/mailman/listinfo/python-list
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
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
-
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
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
cibuildwheel.
Christian
--
https://mail.python.org/mailman/listinfo/python-list
GNOME desktop, but suspect it
should be similarly easy.
Christian
--
https://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
editing
software should support colour keying, i.e. masking the green parts out,
becuase this is used in film production (green screening)
Christian
--
https://mail.python.org/mailman/listinfo/python-list
lback code to button.on_click() is
obviously less fun and feels inverted.
Christian
--
https://mail.python.org/mailman/listinfo/python-list
g the aforementioned functions. When a Tcl callback arrives, it
would send an event to asyncio in the main thread - no idea how this
works, though. In the end, it would also allow to use Tkinter from
different Python threads, because all calls would be rooted to the one
instance only.
compiles to native code using LLVM. Numpy's ufunc comes to mind - there
is also a vectorizer for Python functions
http://docs.scipy.org/doc/numpy/reference/generated/numpy.frompyfunc.html#numpy.frompyfunc
Christian
--
https://mail.python.org/mailman/listinfo/python-list
warning" as this bug, so it's a bit hard to find.
A linter from another language I use also spell-checks variable names,
i.e. if it finds two variables with suspiciously similar names, it
reports it. Of course the linter never knows for sure, it can only give
warnings.
Chr
ogram in the end. The
faster you get the job done, the more successful you are. For many of
those tasks, Python works very well. For others, I use different languages.
Christian
--
https://mail.python.org/mailman/listinfo/python-list
both without
problems, but I avoid writing conditional expressions - if the
subexpressions are not very simple.
Christian
--
https://mail.python.org/mailman/listinfo/python-list
in Python 3) *also* may give a different
result, but the deviation from the "true", i.e. mathematical value, is
far less than with integer arithmetics.
Christian
--
https://mail.python.org/mailman/listinfo/python-list
a
block of memory reserved for "constants" that are loaded on start-up of
the program. x is assigned a pointer to that string. The difference is
that you are not allowed to write to this memory area, for some
compilers it causes a segfault if you try to write there.
YMM
show out-of-bounds accesses for arrays immediately.
Christian
--
https://mail.python.org/mailman/listinfo/python-list
eader files which declare your functions, and it writes the wrapper
code for you. In simple cases (standa data types like int, float,
string,...), it might be enough. In more advanced cases, you can add
your wrappers as "typemaps".
Christian
--
https://mail.python.org/mailman/listinfo/python-list
case look at
the PyArg_ParseTuple and Py_BuildValue functions documented here
https://docs.python.org/2/c-api/arg.html
Christian
--
https://mail.python.org/mailman/listinfo/python-list
a 64bit IEEE number. The largest exact
integer there is 2**53 (~10^16), everything beyond cannot be accurately
represented.
Christian
--
https://mail.python.org/mailman/listinfo/python-list
Am 02.09.16 um 19:24 schrieb Marco Sulla:
Excuse me, I forgot to include the python list mail addess. I repost the mail.
On Fri, Sep 2, 2016 at 6:18 PM, Christian Gollwitzer wrote:
1e26 denotes a *floating point number* Floating point has finite precision,
in CPython it is a 64bit IEEE
Am 03.09.16 um 02:31 schrieb Marco Sulla:
On 2 September 2016 at 21:12, Christian Gollwitzer wrote:
Am 02.09.16 um 19:24 schrieb Marco Sulla:
Because Python has no long double type?
Python no of course, but C++ yes, and CPython is written in C++.
However, I think the answer is here:
https
Am 04.09.16 um 10:29 schrieb Nobody:
On Fri, 02 Sep 2016 18:18:08 +0200, Christian Gollwitzer wrote:
1e26 denotes a *floating point number* Floating point has finite
precision, in CPython it is a 64bit IEEE number. The largest exact
integer there is 2**53 (~10^16), everything beyond cannot be
nails):
http://auriocus.de/slideshow/
- maybe it helps.
Christian
--
https://mail.python.org/mailman/listinfo/python-list
. Speed differences of ~100x are normal between
compiled and interpreted code over all dynamic languages.
Christian
--
https://mail.python.org/mailman/listinfo/python-list
u would
either need to switch the re to multiline mode
https://docs.python.org/2/library/re.html#re.MULTILINE
or do it in a loop, the same way that perl does it implicitly:
for line in f:
print(re.findall(line).group(0))
(untested)
Christian
--
https://mail.python.org/mailman/listinfo/python-list
. If you use the arrow keys to navigate the files, does it
"highlight" the current item in black?
Best regards,
Christian
--
https://mail.python.org/mailman/listinfo/python-list
which language is it? First I thought C++ or Java,
but they don't use self and there is a => operator. PHP adornes
variables with $. Another C-derived language which has built-in hash maps?
Christian
--
https://mail.python.org/mailman/listinfo/python-list
nowledge of the applications' structure, of
course. Another (less robust) way of desktop automation is Sikuli
http://www.sikuli.org/ (Windows only, I think)
Christian
--
https://mail.python.org/mailman/listinfo/python-list
ough the itemsize attribute.
>
> Are there any C compilers still in common use where the values will not be 4
> and 8, as above?
Yes, on Windows (32 and 64bit), a long is always 32bit and an array with
datatype "L" has itemsize 4.
Christian
--
https://mail.python.org/mailman/listinfo/python-list
ot;Lästerer" would be the last
entry. If it would sort as "ae", it would be the first entry. Therfore,
in this example it sorts as "a", with "ä" > "a" to resolve a tie only.
Christian
--
https://mail.python.org/mailman/listinfo/python-list
tract machines on top of lower-level
ones. GUIs are the end of the abstraction chain: you cannot build
anything more on top of them.
Yes, you can. I agree with you that it is a shaky solution, but that
doesn't make it impossible.
Christian
--
https://mail.python.org/mailman/listi
Am 18.09.16 um 12:26 schrieb Lawrence D’Oliveiro:
On Sunday, September 18, 2016 at 10:13:41 PM UTC+12, Christian
Gollwitzer wrote:
Am 18.09.16 um 12:03 schrieb Lawrence D’Oliveiro:
Like I said, trying to automate a GUI is a waste of time. GUIs
are designed for humans, not computers, to use
Am 19.09.16 um 00:45 schrieb Lawrence D’Oliveiro:
On Sunday, September 18, 2016 at 11:02:57 PM UTC+12, Christian Gollwitzer wrote:
Am 18.09.16 um 12:26 schrieb Lawrence D’Oliveiro:
Considering the power available in Free Software toolkits like
ImageMagick, G’MIC and so on, not to mention
/usr/bin/python
# -*- coding: utf-8 -*-
on top of your files.
Christian
--
https://mail.python.org/mailman/listinfo/python-list
d
microseconds means that the loop does run.
Christian
--
https://mail.python.org/mailman/listinfo/python-list
n't resolve the tab issue. However, Python code in
general (due to indentation) is not very friendly for pasting and
interactive usage. Better write the code to a file, then (again from
IPython) you can read this by %run filename.py
Christian
--
https://mail.python.org/mailman/listinfo/python-list
e more modern 64bit lib uses
hand-tuned SSE to perform the equivalent. Just for fun, you could try
this hypot to see how it performs.
Christian
--
https://mail.python.org/mailman/listinfo/python-list
Am 25.09.16 um 01:08 schrieb Thomas 'PointedEars' Lahn:
Christian Gollwitzer wrote:
Am 17.09.16 um 23:19 schrieb Thomas 'PointedEars' Lahn:
Peng Yu wrote:
Hi, I want to convert strings in which the characters with accents
should be converted to the ones without accents.
for i in range(100)]
s = set(l)
Try longer lists/sets and the difference should increase.
Christian
t1 = Timer("randint(0, 200) in l", "from __main__ import l, randint")
t2 = Timer("randint(0, 200) in s", "from __main__ import s, randint")
indent,"
"and that was my intent. :-)"
"""
Installation
$ pip install dedent
That's all, folks! Have fun.
p.s.: Why is that not build in by default?
--
Christian Tismer :^) tis...@stackless.com
Software Consulting
On 29/09/16 22:14, Lele Gaifax wrote:
Christian Tismer writes:
Dedent 0.5
==
What is it?
---
Dedent is a very simple tool for those people who like to
indent their inline code nicely.
p.s.: Why is that not build in by default?
Isn't it roughly the same as
fore I can successfully play this,
though. My [] "keys" are in fact combinations of Alt+5 and Alt+6 on a
German Macbook keyboard (on a German PC, it is AltGr+8, AltGr+9). Why
not using the arrow keys? These should be pretty universal
Christian
So you just need python 2/3 with
s also different speed on different system. And,
the canvas is not intended to redraw everything on each frame. Instead,
updating the objects using the coords() method is usually faster. (It
should also be easier)
Christian
Irmen
--
https://mail.python.org/mailman/listinfo/python-list
image file into numpy array, do your
calculations the way you wrote, and transform it back to an image (file,
or display).
Try:
from PIL import Image
import numpy
arr = numpy.asarray(Image.open('somefile.png'))
Christian
--
https://mail.python.org/mailman/listinfo/python-list
does never terminate. You have the mainloop
inside of your constructor. As long as this loop runs, your program
exists. Try it by putting
test=Test()
print("Now I am here")
and you'll see.
Christian
--
https://mail.python.org/mailman/listinfo/python-list
utput('The product is ', x*y)
which becomes either a command line thingy with -x and -y options or a
GUI with input fields and an output line.
Christian
--
https://mail.python.org/mailman/listinfo/python-list
. You need it, if
you want to program a text editor or similar thing, but without using a
real GUI. This is a small niche. It is both easier and more functional
to use a real GUI library.
Christian
--
https://mail.python.org/mailman/listinfo/python-list
Am 28.10.16 um 09:33 schrieb Marko Rauhamaa:
Christian Gollwitzer :
I still believe that it is not a "basic functionality". You need it,
if you want to program a text editor or similar thing, but without
using a real GUI. This is a small niche.
I disagree. It's a very large gr
Am 28.10.16 um 10:59 schrieb Marko Rauhamaa:
Christian Gollwitzer :
Am 28.10.16 um 09:33 schrieb Marko Rauhamaa:
I am just not convinced that so many people need to implement
something like readline.
I don't know. How would you implement "less" in Python? How would you
impleme
Am 28.10.16 um 12:30 schrieb Marko Rauhamaa:
Christian Gollwitzer :
Am 28.10.16 um 10:59 schrieb Marko Rauhamaa:
I don't know. How would you implement "less" in Python? How would you
implement "nethack" in Python?
On my system:
Apfelkiste:~ chris$ otool -L /u
>>>
(I know the prog is incomplete, but that's not the point)
This way you can concentrate on the algorithm and leave the I/O thing to
python. Due to the built-in readline, you can recall previous arguments,
edit them when you make mistakes, save the result (if there were any),
.
alue, then your algorithm is numerically unstable and you
there is no way to decide which of both results is correct - most
probably both are wrong.
Christian
--
https://mail.python.org/mailman/listinfo/python-list
ll/return) has tainted our minds so much that we have
trouble figuring out a "function call" which does not "return" in the
usual sense. The implementation is even more convoluted with the futures
and promises and whatnot. For simply using that stuff it is not
important to k
so fast that they are four minutes closer to their London counterparts
> than they used to be?
pytz contains not only current time zone, but also historic time zones.
You are looking at a time zone without a date and time context. Without
a context, pytz shows you a historic time zone informati
pensive_calc(x) for x in data]
or similar. So maybe that's a PEP to extend the list comprehension syntax?
Christian
--
https://mail.python.org/mailman/listinfo/python-list
odule.
[1] https://bugs.python.org/issue28134
[2] https://github.com/tiran/socketfromfd
[3]
https://github.com/latchset/custodia/blob/master/custodia/httpd/server.py#L491
[4] http://0pointer.de/blog/projects/socket-activation.html
Christian
--
https://mail.python.org/mailman/listinfo/python-list
interested in my small module
https://pypi.python.org/pypi/socketfromfd/ . I just releases a new
version with a fix for Python 2. Thanks for the hint! :)
The module correctly detects address family, socket type and proto from
a fd. It works correctly with e.g. IPv6 or Unix sockets. Ticket
https://bugs.python.org/issue28134 has additional background information
on the matter.
Christian
--
https://mail.python.org/mailman/listinfo/python-list
On 2017-01-22 01:03, Grant Edwards wrote:
> On 2017-01-21, Christian Heimes wrote:
>
>> You might be interested in my small module
>> https://pypi.python.org/pypi/socketfromfd/ . I just releases a new
>> version with a fix for Python 2. Thanks for the hint! :)
>>
&
On 2017-01-22 21:18, Grant Edwards wrote:
> Is the Python SSL API thread-safe with respect to recv() and send()?
>
> IOW, can I have one thread doing blocking recv() calls on an SSL
> connection object while "simultaneously" a second thread is calling
> send() on that same connection object?
>
>
e, previously people
used impenetrable FORTRAN 77, thankfully they use Python now. Lack of
encapsulation is a featurenot a bug.
Christian
--
https://mail.python.org/mailman/listinfo/python-list
sappearing placeholder) should also trigger, when somebody uses the
tab key to set the focus to the window. This can be achieved by binding
to the event instead:
search.bind("", clear_search)
In addition, repeated clicking does not clear the text then.
s I've done here, or just
stop using the mobile client.
This one looks fine, FYI.
Christian
--
https://mail.python.org/mailman/listinfo/python-list
(w, 'configure'), which lists you the Tk side configuration, or
self.call(w, 'configure', '-variable') to get specifically the bound
variable.
Christian
--
https://mail.python.org/mailman/listinfo/python-list
Am 01.02.17 um 00:02 schrieb MRAB:
On 2017-01-31 22:34, Christian Gollwitzer wrote:
.!frame.!checkbutton
.!frame.!checkbutton2
.!frame2.!checkbutton
.!frame2.!checkbutton2
Perhaps someone who knows Tcl and tk can tell me, but I notice that in
the first example, the second part of the widget
ex.html
The native script language is Apple Script or JavaScript. If you want to
control it from Python, you need a bridge. I have no experience with it,
but a quick Google search reveals
https://pypi.python.org/pypi/py-applescript and
https://docs.python.org/2/library/macosa.html
s. Convert them at module initialization and assign them to a global
variable.
Christian
--
https://mail.python.org/mailman/listinfo/python-list
r i in range(100):
fn()
#print(fn())
===
Out of pure laziness, I haven't compared it to the version with the long
string. Maybe tha gurus here find yet another elegant way to assign the
constant only once; my trial with "fn.C = foobar" was not successful.
Christian
--
https://mail.python.org/mailman/listinfo/python-list
using scipy.ndimage.interpolation.shift, and minimize
the sum of squared differences. But still LM is the wrong tool here, it
would get trapped in local minima soon, and it uses derivatives. Look
for "image registration" to find typical algorithms used in this context.
Christian
--
https://
Thing is, you can do it already now in the script, without modifying the
Python interpreter, by parsing a triple-quoted string. See the examples
right here: http://pyyaml.org/wiki/PyYAMLDocumentation
Christian
--
https://mail.python.org/mailman/listinfo/python-list
t is
what is used to build the Python parser:
https://docs.python.org/3/reference/grammar.html
Actually, I'm a bit surprised that tuple, list etc. does not appear
there as a non-terminal. It is a bit hard to find, and it seems that
"atom:" is the starting point for parsing tuple
eference to 'Eggs' object
>
>
>
> Why does weakref hate my Eggs class?
Weakref needs some place to store reference information. It works if you
add "__weakref__" to your slots:
class Eggs:
__slots__ = ['spanish_inquisition', '__weakref__']
Christian
--
https://mail.python.org/mailman/listinfo/python-list
atever the user has set in his desktop environment.
Technically, xdg-open needs not to be present on Linux, though it is
usually installed.
Christian
--
https://mail.python.org/mailman/listinfo/python-list
u colors. For instance, if you use a dark theme in your desktop
environment, it could be that the foreground is correctly set to white,
but the background is hardcoded white for some reason e.g.
Christian
--
https://mail.python.org/mailman/listinfo/python-list
stroy()
>>> button.winfo_exists()
0
I am not sure that this is very helpful, though. Usually you don't
destroy a button yourself, it is done by the destructor when the button
is deleted, and therefore, winfo_exists() under normal circumstances
returns true. What are you really trying to achieve?
Christian
--
https://mail.python.org/mailman/listinfo/python-list
&& ./intx
intx.c:4:4: warning: implicit conversion from 'double' to 'int' changes
value
from 2.5 to 2 [-Wliteral-conversion]
x=2.5;
~^~~
1 warning generated.
2
Christian
--
https://mail.python.org/mailman/listinfo/python-list
ur interpreter, you should see both lines printed.
Christian
--
https://mail.python.org/mailman/listinfo/python-list
velopment!"
A2: "All hail to Guido. In 5 years, you'll ned that, and then His
Time-Machine has struck again!"
Q: "But isn't this the same as ?: in Java or C?"
A3: "Never. There is a HUGE difference! ?: is sooo confusing. But a if c
else b, look, the orde
Am 05.07.18 um 12:04 schrieb Steven D'Aprano:
On Thu, 05 Jul 2018 09:17:20 +0200, Christian Gollwitzer wrote:
Am 04.07.18 um 17:31 schrieb Steven D'Aprano:
On Wed, 04 Jul 2018 13:48:26 +0100, Bart wrote:
Presumably one type hint applies for the whole scope of the variable,
not ju
On 2018-07-15 14:05, Mark wrote:
> I'm curious to understand how come the original MacPython logo is of a 16 ton
> weight (rather than, say the word 'python' or a picture of a snake)?
> You can see the logo here: https://homepages.cwi.nl/~jack/macpython/
Most obscure references in Python are base
m and technical manner.
Christian
--
https://mail.python.org/mailman/listinfo/python-list
rograms, and it works for me to simply ignore
that there is Unicode etc. Just load some data and show it in numpy, why
do I need to care about Unicode?
Christian
--
https://mail.python.org/mailman/listinfo/python-list
slations.
Well that link tries to translate "assistshop" into the czech word
"prodavač" which is the usual word for a person in a shop who consults
the customers and sells the goods to them; I don't know if "assist shop"
in English comes close, as I
y
/home/fetch/opt/lib or /home/fetch/opt/lib64.
You may also have to recompile Python yourself. OpenSSL 1.0.2 is not
ABI-compatible with OpenSSL 1.0.0. In case you want to use OpenSSL
1.1.0, you must update to a more recent version of Python, too. OpenSSL
1.1.0 support was added in 2.7.13.
Christian
--
https://mail.python.org/mailman/listinfo/python-list
lar purpose - for example "StopIteration" to signal that an iterator
is exhausted. One might consider to call these "signals" instead of
"exceptions", because there is nothing exceptional, apart from the
control flow.
Christian
--
https://mail.python.org/mailman/listinfo/python-list
individually. You should shorten the quote to the releveant bit that
your reply belongs to.
Classic quote:
A: Because it reverses the logical flow of conversation.
Q: Why is top posting frowned upon?
A: Top-posting.
Q: What is the most annoying thing on usenet and in email?
Christian
-
ick just one tab width.
But if you use only tabs for indentation, the tab width setting simply
does not matter. I'm in favour of using only tabs.
There is a disadvantage only if you try to align something which is NOT
an indentation level, e.g. when there are big string constants or list
block mode,
and MAC in a sane and safe message format.
https://cryptography.io/en/latest/fernet/
Christian
--
https://mail.python.org/mailman/listinfo/python-list
sy solution. As an interim solution it
might work, but you should seriously consider recompiling the code as 64
bit, migrating all code to Python or watch out for the libraries you
need in modern Tcl.
Christian
--
https://mail.python.org/mailman/listinfo/python-list
301 - 400 of 1986 matches
Mail list logo