Maarten Derickx added the comment:
Hi Marc-Andre Lemburg,
Thanks for your responses and guidance. At least your pointers to
charmap_encode and charmap_decode helped, since it shows at least what the
general idea is on how to deal with these types of encodings.
In the mean time I did
Maarten Derickx added the comment:
The route via gencodec or more generally via charmap_encode and charmap_decode
seems to be one that is not possible without some low level CPython code
adjustments. The reason for this is that charmap_encode and charmap_decode only
seem to support mappings
Maarten Derickx added the comment:
Hi Marc-Andre Lemburg,
Thanks for your reply. I tried using gencodec.py as could be downloaded from
https://github.com/python/cpython/blob/main/Tools/unicode/gencodec.py as you
mentioned. However the code in gencodec.py seems to be in a much worse shape
Maarten Derickx added the comment:
Is there any way to contact John Helour? I would still very much like to put
this package on github and pypi. And would like to ask him permission for
licensing. Or is there some standard open source license under which all code
uploaded to https
Maarten Breddels added the comment:
In case someone finds it useful, I've written a blog post on how to visualize
the GIL:
https://www.maartenbreddels.com/perf/jupyter/python/tracing/gil/2021/01/14/Tracing-the-Python-GIL.html
In the comments (or at
https://github.com/maartenbreddels
New submission from Maarten :
`PCbuild/readme.txt` contains a little paragraph about how to build a static
python library.
The resulting static `python.lib` library contains all python C API functions.
Windows DLL's don't allow missing symbols, so C extensions modules must link
Change by Maarten :
--
keywords: +patch
pull_requests: +21060
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/21950
___
Python tracker
<https://bugs.python.org/issu
New submission from Maarten :
When building python using Visual Studio, the curses and curses.module, are not
getting built.
--
components: Build, Library (Lib)
messages: 375871
nosy: maarten
priority: normal
severity: normal
status: open
title: Visual Studio does not build the curses
Maarten added the comment:
My previous comment should have contained:
Because I noticed the timestamp was not included in the CRC,
...
--
___
Python tracker
<https://bugs.python.org/issue31
Maarten added the comment:
I have the same issue.
The timestamp is inserted here:
https://github.com/python/cpython/blob/802726acf6048338394a6a4750835c2cdd6a947b/Lib/tarfile.py#L419-L420
Because I noticed the timestamp was not included in the timestamp,
I could zero it by doing:
```
with open
Change by Maarten :
--
pull_requests: +21047
pull_request: https://github.com/python/cpython/pull/21933
___
Python tracker
<https://bugs.python.org/issue1723
Change by Maarten :
--
pull_requests: -21045
___
Python tracker
<https://bugs.python.org/issue1723038>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Maarten :
--
keywords: +patch
pull_requests: +21046
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/21933
___
Python tracker
<https://bugs.python.org/issu
Change by Maarten :
--
nosy: +maarten
nosy_count: 5.0 -> 6.0
pull_requests: +21045
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/21933
___
Python tracker
<https://bugs.python.org/iss
New submission from Maarten :
When ncurses' function `set_panel_userptr` fails,
panel.set_userptr should not decrement the reference count of the previous
userptr.
--
components: Library (Lib)
messages: 375738
nosy: maarten
priority: normal
severity: normal
status: open
title
Maarten added the comment:
Current ncurses master is buildable on Visual Studio, using msys2.
It should be possible to create a vcxproject and integrate it in the Visual
Studio build.
--
nosy: +maarten
___
Python tracker
<https://bugs.python.
Maarten added the comment:
Equivalent c script of chgat.py
Compile with:
gcc chgat.c -lncurses -o chgat
--
Added file: https://bugs.python.org/file49408/chgat.c
___
Python tracker
<https://bugs.python.org/issue41
New submission from Maarten :
Or'ing curses.A_COLOR in the `attr` argument of curses.window.chgat ends of
with the line not showing.
Actual Problem:
The text is invisible/hidden/not shown.
Using only the attribute curses.A_BLINK is fine.
Expected:
The color of the line is changed +the text
Maarten added the comment:
The CGI examples of urwid (see
http://urwid.org/manual/displaymodules.html#cgi-web-display-module-web-display)
don't work on http.server because of missing meta variables.
Using cgitb, I found out that the webdriver expects the environment variable
Maarten ter Huurne added the comment:
Can I please get a review of the pull request?
--
___
Python tracker
<https://bugs.python.org/issue17088>
___
___
Pytho
Maarten ter Huurne added the comment:
Another problem with the current code is that when passed a URL with a host
name that is not empty or "localhost", but is one of the alternative names for
localhost returned by get_names(), file_open() returns None implicitly instead
of openin
Maarten added the comment:
I have submitted a PR to github:
https://github.com/python/cpython/pull/15560
--
___
Python tracker
<https://bugs.python.org/issue37
Change by Maarten :
--
pull_requests: +15233
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/15560
___
Python tracker
<https://bugs.python.org/issu
New submission from Maarten :
When using the `has_function` method of a CCompiler object,
the compiler will emit a warning because the main function has no return type
specified.
https://github.com/python/cpython/blob/8c9e9b0cd5b24dfbf1424d1f253d02de80e8f5ef/Lib/distutils/ccompiler.py#L784
Maarten ter Huurne added the comment:
I think I have a good solution now, see the pull request for details. It does
touch a lot of code, but I split all the changes into small consistent units,
so it should be easier to verify whether they are correct
Change by Maarten ter Huurne :
--
pull_requests: +10286
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue17088>
___
___
Python-bugs-lis
Maarten ter Huurne added the comment:
I was working on what I thought would be an elegant solution to this problem:
for non-qualified attributes, add the element's namespace before accessing the
cache and strip the namespace prefix after accessing the cache if it's equal to
the element's
New submission from Maarten ter Huurne:
In a unit test for one of my projects I am comparing tree-structured objects
using assertEqual(). Because there can be a few nested levels, the repr()
string can exceed the _MAX_LENGTH which is just 80 characters. Not by much, but
enough to get
.
Judging from the questions and the code quality you post here, it is only a
matter of time before accidents happen.
Maarten
--
https://mail.python.org/mailman/listinfo/python-list
is fairly foolproof, and the
logic is clear. What's not to like?
Maarten
--
https://mail.python.org/mailman/listinfo/python-list
your python.
Next your users will probably start requesting additional packages (regex,
lxml, numpy, scipy, matplotlib, ... depending on what they actually do).
Maarten
--
http://mail.python.org/mailman/listinfo/python-list
del i
3616.691 MB 0.000 MB gc.collect() # nothing change if I
comment this
If I make the two functions identical, the behave the same.
Maarten
--
http://mail.python.org/mailman/listinfo/python-list
it, it probably doesn't exist. Very few people would do
this without numpy.
A trivial 'pure python spline' google search yields this:
http://urchin.earth.li/~twic/splines.py
(Warning: old code, python 2.2 era).
Maarten
--
http://mail.python.org/mailman/listinfo/python-list
as np
np.random.uniform(0, 5, 100)
# note that the values are from the interval [0, 5)
Maarten
--
http://mail.python.org/mailman/listinfo/python-list
the
level of effort will be huge?
I assume that you've looked into GPSBabel? http://www.gpsbabel.org/
Maarten
--
http://mail.python.org/mailman/listinfo/python-list
public description of the gdb file format. It is not trivial, but restricting
yourself to the parts needed for the application may provide some shortcuts.
Maarten - pay more, get less: way to go.
--
http://mail.python.org/mailman/listinfo/python-list
is the proper thing to do (assuming both variables are measured in
the same units).
In that case use an appropriate algorithm to perform the fit. ODR comes to
mind. http://docs.scipy.org/doc/scipy/reference/odr.html
Maarten
--
http://mail.python.org/mailman/listinfo/python-list
?
Or do you Australians have the third day of the fourteenth month?
You just missed it:
22/7
Maarten
--
http://mail.python.org/mailman/listinfo/python-list
menu, the directory is printed *twice* in the output window. Why is that?
I'd say this is a bug or feature of the IDE. If I use ipython I get:
In [1]: %run mypwd
/nobackup/users/maarten/tmp/coyote
I tried to use Eclipse, but I don't think I'll do that again. I otherwise never
use an IDE, it makes
figure out the parent class with a call to super:
class C(A):
def __init__(self):
super(self.__class__, self).__init__()
print(In C)
a = A() (prints In A)
b = B() (prints In A, In B on two lines)
c = C() (prints In A, In C on two lines)
Hope this helps.
Maarten
--
http
makes a world of difference.
Maarten
--
http://mail.python.org/mailman/listinfo/python-list
'
base64.b64encode('aaa').decode('base64')
'aaa'
(As far as I can see, both methods are completely consistent)
Maarten
--
http://mail.python.org/mailman/listinfo/python-list
Maarten Thibaut added the comment:
Guido, the problem is that my python foo is severely lacking - but I'll
have a stab at it.
Python believes that the number coming back from the C library is
negative. We can fool it by packing the signed short into a
system-native format, and then unpacking
New submission from Maarten Thibaut:
Socket library functions such as ntohs() return uint16_t, but inside
Python these return values show up as negative numbers. One possible fix
is to convert these return values using pack:
struct.unpack('H', struct.pack('h', ntohs(number)))[0] 0x
Maarten Thibaut added the comment:
Numbers returned from ntohs() turn up as negative. But ntohs() is typed as
uint16_t, so they shouldn't be. This is on solaris.
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1711
Maarten Thibaut added the comment:
Try this on Linux and Solaris:
---
from socket import ntohs, htons
print ntohs(htons(55000))
---
On Linux:
55000
On Solaris:
-10536
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org
Changes by Maarten Thibaut:
--
components: Library (Lib)
nosy: mthibaut
severity: normal
status: open
title: func alloca inside ctypes lib needs #include alloca.h on solaris
type: compile error
versions: Python 2.5
__
Tracker [EMAIL PROTECTED]
http
New submission from Maarten Thibaut:
On Solaris, alloca() is a #define which is inside alloca.h.
Ctypes fails to compile because the #define is missing. Please fix by
adding the following at the front of these 2 files:
#if defined (__SVR4) defined (__sun)
# include alloca.h
#endif
Changes by Maarten Thibaut:
--
components: +Extension Modules -Library (Lib)
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1506
__
___
Python-bugs-list mailing list
Maarten Thibaut added the comment:
forgot to mention the files:
Modules/_ctypes/callproc.c
Modules/_ctypes/libffi/src/sparc/ffi.c
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1506
).
Maarten
--
http://mail.python.org/mailman/listinfo/python-list
Christianity :
The Dutch went back to Denmark?
Sure, Copenhagen is the capital of the Netherlands, any American
school child knows that.
--
Maarten Bergvelt
--
http://mail.python.org/mailman/listinfo/python-list
batteries
included :-).
BTW, I have the impression that MATLAB and SciPy have about the same
performance.
Cheers, Maarten
--
===
Maarten van Reeuwijkdept. of Multiscale Physics
Phd student
embedded in page1.cgi, page 1 waits till the search is
finished, resulting in a browser timeout when big queries are done. It
was this problem in the first place why I split up the page in two and
added Popen.
Does anybody know how to get the page not waiting on Popen to finish?
thnx
Maarten
In article [EMAIL PROTECTED],
Thomas Guettler [EMAIL PROTECTED] wrote:
Am Wed, 07 Jun 2006 14:54:41 +0200 schrieb Maarten van Veen:
A long story made short, I've build a python/cgi website consisting of
two pages. Page1 has a html form in which you can input a series of
queries
but don't have to give them names.
You could do something to all of them like this:
for student in listWithStudent:
student.doSomething()
Or change just one student:
listWithStudent[23].doSomething() # this is the 24th student though!!!
Hope this is what you're looking for.
Maarten
--
http
camera refused to work for me, as did
Audacity. I didn't encounter any other problems, but that was enough
for me.
As to UFS: it is apparently way slower than HFS+, and only recommended
in special cases, most of which are now advised to use Case-sensitive
HFS+, I believe.
Maarten
--
http
);
--
===
Maarten van Reeuwijkdept. of Multiscale Physics
Phd student Faculty of Applied Sciences
maarten.ws.tn.tudelft.nl Delft University of Technology
--
http://mail.python.org/mailman/listinfo/python-list
,
Maarten
Links:
[1] http://www.freenet.org.nz/python/pybison/
[2] http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/
--
http://mail.python.org/mailman/listinfo/python-list
In article [EMAIL PROTECTED],
Lucas Machado [EMAIL PROTECTED] wrote:
I'm writing a python script that modifies the smb.conf file, and i need
to write the characters '%U' in the file.
print %s = %%U % a yields a = %U for me.
Maarten
--
http://mail.python.org/mailman/listinfo/python-list
regarding this Kindly mail me
with example.
RTFM: http://www.python.org/doc/2.3.4/lib/re-syntax.html
(What you want is described under the (?iLmsux) heading)
or http://www.python.org/doc/2.3.4/lib/node106.html
Maarten
--
http://mail.python.org/mailman/listinfo/python-list
a pure python module for these:
http://sarwat.net/opensource/
The advantage of the plist module is that the type of the variables is
stored as well, and that you can store complex variables (lists,
dictionaries) without mangling.
Maarten
--
http://mail.python.org/mailman/listinfo/python
62 matches
Mail list logo