[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

[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

Re: Add header at top with email.message

2018-09-17 Thread Thomas Schneider
Jason Friedman writes: > I suppose you already figured out that you can call __delitem__() to > clear the headers and add them back in whatever order you like. Well, this would mean saving all headers, deleting all, inserting my own, and adding the saved original headers again. Seems

Add header at top with email.message

2018-09-14 Thread Thomas Schneider
Hi, the EmailMessage class of email.message provides the methods add_header() and __setitem__() to add a header to a message. add_header() effectively calls __setitem__(), which does `self._headers.append(self.policy.header_store_parse(name, val))`. This inserts the header at the bottom. It is,

[issue33784] hash collision in instances of ipaddress.ip_network

2018-06-07 Thread Francois Schneider
Francois Schneider added the comment: Thanks for the analysis, I agree completely. Actually the problem was coming from my code where one of the __eq__ method was implemented like this: >>> def __eq__(self, other): >>> return hash(self) == hash(other) so 2 instances

[issue33784] hash collision in instances of ipaddress.ip_network

2018-06-06 Thread Francois Schneider
New submission from Francois Schneider : >>> import ipaddress >>> hash(ipaddress.ip_network(u'20.0.2.3/32')) == >>> hash(ipaddress.ip_network(u'20.0.2.0/30')) True -- components: Library (Lib) messages: 318835 nosy: Francois Schneider priority: normal se

[issue33784] hash collision in instances of ipaddress.ip_network

2018-06-06 Thread Francois Schneider
Change by Francois Schneider : -- versions: +Python 3.4, Python 3.5 ___ Python tracker <https://bugs.python.org/issue33784> ___ ___ Python-bugs-list mailin

Re: ANN: psutil 5.4.2 released

2017-12-07 Thread André Schneider
Unsubscribe Giampaolo Rodola' schrieb am Do., 7. Dez. 2017, 13:16: > Hello all, > I'm glad to announce the release of psutil 5.4.2: > https://github.com/giampaolo/psutil > > About > = > > psutil (process and system utilities) is a cross-platform library for > retrieving

[issue20825] containment test for "ip_network in ip_network"

2016-10-20 Thread James Schneider
James Schneider added the comment: Please consider for implementation in 3.6. I'd love it even more for 3.5 but I don't think that will happen. With the latest patch, I don't believe there are any backwards-incompatible changes, though

[issue20825] containment test for "ip_network in ip_network"

2016-06-01 Thread James Schneider
James Schneider added the comment: I'd like to ask for a status on getting this merged? As a network administrator, these changes would have a magical effect on my code dealing with routing tables and ACL's. -- nosy: +James Schneider ___ Python

Re: What happens when you 'break' a generator?

2014-07-29 Thread Johannes Schneider
happens to it? My guess is that normal scoping rules apply. Using my example, the generator is referenced by 'x', so when 'x' goes out of scope, the generator is garbage collected, even though it never completed. Is this correct? Frank Millman -- Johannes Schneider Webentwicklung

Re: The possibility integration in Python without an equation, just an array-like file

2014-05-16 Thread Johannes Schneider
@student.kuleuven.be; enlong@biotech.tu-dresden.de mailto:enlong@biotech.tu-dresden.de Mobile Phone: +4917666191322 Mailing Address: Zi. 0108R, Budapester Straße 24, 01069, Dresden, Germany -- Johannes Schneider Webentwicklung johannes.schnei...@galileo-press.de Tel.: +49.228.42150.xxx Galileo

Re: The “does Python have variables?” debate

2014-05-08 Thread Johannes Schneider
, it's not calling by reference, because g(l1) l1 [1, 'foo', 3] does not change l1. Once again, if I pass an object it behaves like calling by reference: class A: ... a = 0 ... a = A() a.a 0 def h(a1): ... a1.a = 1 ... h(a) a.a 1 bg, Johannes -- Johannes Schneider Webentwicklung

Re: why i have the output of [None, None, None]

2014-04-10 Thread Johannes Schneider
have the output of [None, None, None] -- Johannes Schneider Webentwicklung johannes.schnei...@galileo-press.de Tel.: +49.228.42150.xxx Galileo Press GmbH Rheinwerkallee 4 - 53227 Bonn - Germany Tel.: +49.228.42.150.0 (Zentrale) .77 (Fax) http://www.galileo-press.de/ Geschäftsführer: Tomas

Re: The sum of numbers in a line from a file

2014-02-21 Thread Johannes Schneider
two columns. I want to do this for every name. All I've got is sum([int(s.strip()) for s in open('file').readlines()]) -- Johannes Schneider Webentwicklung johannes.schnei...@galileo-press.de Tel.: +49.228.42150.xxx Galileo Press GmbH Rheinwerkallee 4 - 53227 Bonn - Germany Tel

Re: SSH/Telnet program to Router/switch

2014-02-19 Thread Johannes Schneider
I'm using paramiko to access some routers and firewalls from python and it works very well. bg, Johannes -- Johannes Schneider Webentwicklung johannes.schnei...@galileo-press.de Tel.: +49.228.42150.xxx Galileo Press GmbH Rheinwerkallee 4 - 53227 Bonn - Germany Tel.: +49.228.42.150.0

Re: SIngleton from __defaults__

2014-01-24 Thread Johannes Schneider
thnx guys. On 24.01.2014 01:10, Terry Reedy wrote: Johannes Schneider johannes.schnei...@galileo-press.de Wrote in message: On 22.01.2014 20:18, Ned Batchelder wrote: On 1/22/14 11:37 AM, Asaf Las wrote: Chris is right here, too: modules are themselves singletons, no matter how many times

Re: SIngleton from __defaults__

2014-01-23 Thread Johannes Schneider
namespace. But the value differs in stuff() and before/after the import statement. So the instance of the module differs - it cannot be a singelton. bg, Johannes -- Johannes Schneider Webentwicklung johannes.schnei...@galileo-press.de Tel.: +49.228.42150.xxx Galileo Press GmbH Rheinwerkallee 4

Imports in Python

2014-01-21 Thread Johannes Schneider
? bg, Johannes -- Johannes Schneider Webentwicklung johannes.schnei...@galileo-press.de Tel.: +49.228.42150.xxx Galileo Press GmbH Rheinwerkallee 4 - 53227 Bonn - Germany Tel.: +49.228.42.150.0 (Zentrale) .77 (Fax) http://www.galileo-press.de/ Geschäftsführer: Tomas Wehren, Ralf Kaulisch, Rainer

Re: matlabFunction Equivalent?

2014-01-21 Thread Johannes Schneider
and supporting most (all?) of the python syntax and moduls bg, Johannes -- Johannes Schneider Webentwicklung johannes.schnei...@galileo-press.de Tel.: +49.228.42150.xxx Galileo Press GmbH Rheinwerkallee 4 - 53227 Bonn - Germany Tel.: +49.228.42.150.0 (Zentrale) .77 (Fax) http://www.galileo

Re: Brython (Python in the browser)

2013-12-27 Thread Johannes Schneider
-- Johannes Schneider Webentwicklung johannes.schnei...@galileo-press.de Tel.: +49.228.42150.xxx Galileo Press GmbH Rheinwerkallee 4 - 53227 Bonn - Germany Tel.: +49.228.42.150.0 (Zentrale) .77 (Fax) http://www.galileo-press.de/ Geschäftsführer: Tomas Wehren, Ralf Kaulisch, Rainer Kaltenecker HRB 8363

Differences between obj.attribute and getattr(obj, attribute)

2013-12-11 Thread Johannes Schneider
Hi list, can somebody explain me the difference between accessing attributes via obj.attribute and getattr(obj, attribute)? Is there a special reason or advantage when using getattr? bg, Johannes -- Johannes Schneider Webentwicklung johannes.schnei...@galileo-press.de Tel.: +49.228.42150.xxx

Re: Differences between obj.attribute and getattr(obj, attribute)

2013-12-11 Thread Johannes Schneider
thank you guys. On 11.12.2013 10:36, Chris Angelico wrote: 2013/12/11 Johannes Schneider johannes.schnei...@galileo-press.de: can somebody explain me the difference between accessing attributes via obj.attribute and getattr(obj, attribute)? Is there a special reason or advantage when using

Re: Debugging decorator

2013-10-28 Thread Schneider
On 10/26/2013 01:55 AM, Yaşar Arabacı wrote: Hi people, I wrote this decorator: https://gist.github.com/yasar11732/7163528 When this code executes: @debugging def myfunc(a, b, c, d = 48): a = 129 return a + b print myfunc(12,15,17) This is printed:

Good Python Book

2013-10-09 Thread Schneider
Hi List, I'm looking for a good advanced python book. Most books I looked at up to now are on beginners level. I don't need a reference (that's online) or a book explaining how to use the interpreter or how to use list comprehensions on the one side and skipping topics like decorators,

Re: What minimum should a person know before saying I know Python

2013-09-26 Thread Schneider
I would say it's a little bit more: You have to know the keywords and (basic) concepts, e.g. you really have to understand what it means, that everything is a class. If you get foreign, you have to be able to understand it. And the other way round, given a problem, you should be able to write a

Python performance

2013-08-02 Thread Schneider
Hi list, I have to write a small SMTP-Relay script (+ some statistic infos) and I'm wondering, if this can be done in python (in terms of performance, of course not in terms of possibility ;) ). It has to handle around 2000 mails per hour for at least 8hours a day (which does not mean, that

Re: Python performance

2013-08-02 Thread Schneider
On Fri 02 Aug 2013 02:59:26 PM CEST, Tim Chase wrote: On 2013-08-02 14:00, Schneider wrote: I have to write a small SMTP-Relay script (+ some statistic infos) and I'm wondering, if this can be done in python (in terms of performance, of course not in terms of possibility ;) ). It has to handle

Re: Python performance

2013-08-02 Thread Schneider
On 08/02/2013 03:09 PM, Ray Cote wrote: - Original Message - From: Schneider j...@globe.de To: python-list@python.org Sent: Friday, August 2, 2013 8:00:09 AM Subject: Python performance Hi list, I have to write a small SMTP-Relay script (+ some statistic infos) and I'm wondering

PyPy 2.1 released

2013-08-01 Thread David Schneider
BaseException. https://bugs.pypy.org/issue1552 * Fixed issue 1537: numpypy __array_interface__ https://bugs.pypy.org/issue1537 * Fixed issue 1238: Writing to an SSL socket in PyPy sometimes failed with a bad write retry message. https://bugs.pypy.org/issue1238 Cheers, David Schneider for the PyPy

Re: Lambda function Turing completeness

2013-07-31 Thread Schneider
On Wed 31 Jul 2013 08:53:26 AM CEST, Musical Notation wrote: Is it possible to write a Turing-complete lambda function (which does not depend on named functions) in Python? what should a sinlge Turing-complete lambda function be? For me, a programming language can be Turing-complete or a

Re: Critic my module

2013-07-29 Thread Schneider
, and not only ls. bg, Johannes On 07/26/2013 12:39 PM, Devyn Collier Johnson wrote: On 07/25/2013 09:58 AM, Schneider wrote: Hi, nice idea. mybe - for security reasons - you should ensure, that the right tool is called and not some tool put the path with the same name. bg, Johannes Devyn

Re: Critic my module

2013-07-25 Thread Schneider
Hi, nice idea. mybe - for security reasons - you should ensure, that the right tool is called and not some tool put the path with the same name. bg, Johannes On Thu 25 Jul 2013 03:24:30 PM CEST, Devyn Collier Johnson wrote: Aloha Python Users! I made a Python3 module that allows users

[issue18117] Missing symlink:Current after Mac OS X 3.3.2 package installation

2013-06-03 Thread Gavan Schneider
Gavan Schneider added the comment: A lot of this is past my level but speaking from my level I just want packages to be consistent, i.e., if there is a symlink it should point to something (preferably useful) not dangle as is the case now. Also I want an installed version to look the same

[issue18117] Missing symlink:Currnet after Mac OS X 3.3.2 package installation

2013-06-02 Thread Gavan Schneider
New submission from Gavan Schneider: There is a missing symlink. Context: Installed package: http://www.python.org/ftp/python/3.3.2/python-3.3.2-macosx10.6.dmg with no apparent problems onto a 'clean' system, i.e., no other python packages other than OS X 10.8.3 defaults. Found the following

[issue18117] Missing symlink:Current after Mac OS X 3.3.2 package installation

2013-06-02 Thread Gavan Schneider
Changes by Gavan Schneider pythonbug-...@snkmail.com: -- title: Missing symlink:Currnet after Mac OS X 3.3.2 package installation - Missing symlink:Current after Mac OS X 3.3.2 package installation ___ Python tracker rep...@bugs.python.org http

[issue18117] Missing symlink:Current after Mac OS X 3.3.2 package installation

2013-06-02 Thread Gavan Schneider
Gavan Schneider added the comment: Appreciate the comment about potential problems with mixed installations of python3 and python2. And note that along these lines there is no attempt by the installer to symlink python - python3 (which could have nasty side effects if the full path

Re: serialize a class to XML and back

2013-05-31 Thread Schneider
On 26.05.2013 22:48, Roy Smith wrote: In article mailman.2197.1369600623.3114.python-l...@python.org, Chris Rebert c...@rebertia.com wrote: On May 23, 2013 3:42 AM, Schneider j...@globe.de wrote: Hi list, how can I serialize a python class to XML? Plus a way to get the class back from

Re: serialize a class to XML and back

2013-05-31 Thread Schneider
On 25.05.2013 07:54, dieter wrote: Schneider j...@globe.de writes: how can I serialize a python class to XML? Plus a way to get the class back from the XML? My aim is to store instances of this class in a database. In case you want to describe the XML data via an XML-schema (e.g. to exchange

serialize a class to XML and back

2013-05-23 Thread Schneider
Hi list, how can I serialize a python class to XML? Plus a way to get the class back from the XML? My aim is to store instances of this class in a database. bg, Johannes -- GLOBE Development GmbH Königsberger Strasse 260 48157 MünsterGLOBE Development GmbH Königsberger Strasse 260 48157

Re: Python for philosophers

2013-05-16 Thread Schneider
Maybe the implementation of the Python Interpreter could be seen as transition function. This can be understand in detail, but it even if you know how the interpreter works, you don't really know to work _with_ the interpreter. Even more, there are a lot of decisions, which are made 'by design'

Re: shutil.copyfile is incomplete (truncated)

2013-04-12 Thread Rob Schneider
The close method is defined and flushing and closing a file, so it should not return until that's done. What command are you using to create the temp file? re command to write the file: f=open(fn,'w') ... then create HTML text in a string f.write(html) f.close --

Re: shutil.copyfile is incomplete (truncated)

2013-04-12 Thread Rob Schneider
I would consider the chance that the disk may be faulty, or the file system is corrupt. Does the problem go away if you write to a different file system or a different disk? It's a relatively new MacBook Pro with a solid state disk. I've not noticed any other disk problems. I did a

Re: shutil.copyfile is incomplete (truncated)

2013-04-12 Thread Rob Schneider
Or that the filesystem may be full? Of course, that's usually obvious more widely when it happens... Question: is the size of the incomplete file a round number? (Like a multiple of a decent sized power of 2) Also on what OS X file system type does the file being

Re: shutil.copyfile is incomplete (truncated)

2013-04-12 Thread Rob Schneider
The file system is Mac OS Extended Journaled (default as out of the box). I ran a repair disk .. .while it found and fixed what it called minor problems, it did something. However, the repair did not fix the problem. I just ran the program again and the source is 47,970 bytes and target

Re: shutil.copyfile is incomplete (truncated)

2013-04-12 Thread Rob Schneider
On Friday, 12 April 2013 09:26:21 UTC+1, Cameron Simpson wrote: | Question: is the size of the incomplete file a round number? (Like | a multiple of a decent sized power of 2) [...] | Source (correct one) is 47,970 bytes. Target after copy of 45,056 | bytes. I've tried

Re: shutil.copyfile is incomplete (truncated)

2013-04-12 Thread Rob Schneider
On Friday, 12 April 2013 10:22:21 UTC+1, Chris Angelico wrote: On Fri, Apr 12, 2013 at 7:18 PM, Rob Schneider rmsc...@gmail.com wrote: f.close Yep, there's the problem! See my previous post for details. Change this to: f.close() and you should be sorted. ChrisA

Re: USBLock : lock/unlock your computer with a USB key

2013-04-12 Thread Schneider
On 11.04.2013 22:16, Ian Kelly wrote: On Thu, Apr 11, 2013 at 9:23 AM, Ethan Furman et...@stoneleaf.us wrote: On 04/11/2013 04:13 AM, Sven wrote: Yes, I had the idea to add bluetooth too, removes the whole plugging and unplugging spiel. I might start work on that, and if anyone else wants to

shutil.copyfile is incomplete (truncated)

2013-04-11 Thread Rob Schneider
Using Python 2.7.2 on OSX, I have created a file in temp space, then use the function shutil.copyfile(fn,loc+fname) from fn to loc+fname. At the destination location, the file is truncated. About 10% of the file is lost. Original file is unchanged. I added calls to statinfo immediately after

Re: shutil.copyfile is incomplete (truncated)

2013-04-11 Thread Rob Schneider
Thanks. Yes, there is a close function call before the copy is launched. No other writes. Does Python wait for file close command to complete before proceeding? -- http://mail.python.org/mailman/listinfo/python-list

[issue17580] ctypes: ARM hardfloat argument corruption calling functions with many float arguments

2013-03-30 Thread David Schneider
New submission from David Schneider: This issue affects C functions with many float/double arguments called through ctypes on ARM using the hardfloat ABI (i.e. the standard distribution for the raspberry pi uses hard-float). Calling a C function using ctypes on ARM hard-float that takes

Re: Creating an object that can track when its attributes are modified

2013-03-07 Thread Schneider
Hi, maybe you could do this by a decorator on the setattr method. It should look more or less like your implementation, but in my eyes it's a cleaner and can be reused. Further, I would use a stack for each attribute, so that you can restore all previous values. bg, Johannes On 03/06/2013

Re: SSH Connection with Python

2012-10-29 Thread Schneider
thank you guys for the huge list of answers, In my setting I have to access some routers and firewall from a linux-client. I think I'll try Fabric. On 26.10.2012 06:20, Rodrick Brown wrote: On Oct 25, 2012, at 6:34 AM, Schneider j...@globe.de wrote: Hi Folkz, how can i create a SSH

SSH Connection with Python

2012-10-25 Thread Schneider
Hi Folkz, how can i create a SSH-Connection with python? I have to send some commands to the remote host and parse their answers. greatz Johannes -- http://mail.python.org/mailman/listinfo/python-list

[issue15362] pyport.h includes antiquated UTF handling for FreeBSD

2012-07-15 Thread John Schneider
New submission from John Schneider j...@jschneider.com: Revision 36793 introduced a libc wrapper for FreeBSD 5.x which addressed some UTF issues. Unfortunately, this causes C compilation errors for certain ports. Also reference issues 10910, 1455641 This change is no longer applicable

[issue12572] HP/UX compiler workarounds

2011-07-18 Thread Jim Schneider
Jim Schneider jim.schnei...@dataflux.com added the comment: Martin - I don't have time to manage your project's administrative requirements with respect to my fixes. I'm providing them out of the hope they will be of use to others who need to build on HP/UX, but I don't really care

[issue12561] Compiler workaround for wide string constants in Modules/getpath.c (patch)

2011-07-15 Thread Jim Schneider
Jim Schneider jim.schnei...@dataflux.com added the comment: I am attaching an updated patch. This version specifically checks for __hpux, and the macro name has been changed to avoid clashing with other uses. -- Added file: http://bugs.python.org/file22663/getpath.patch

[issue12572] HP/UX compiler workarounds

2011-07-15 Thread Jim Schneider
New submission from Jim Schneider jim.schnei...@dataflux.com: The C compiler that comes with HP/UX 11 has some shortcomings that prevent building Python 3.2.1 out of the box. I am attaching patches here as I work through issues. The first patch fixes namespace shortcomings when trying to use

[issue12561] Compiler workaround for wide string constants in Modules/getpath.c (patch)

2011-07-15 Thread Jim Schneider
Jim Schneider jim.schnei...@dataflux.com added the comment: I am collecting HP/UX compiler bug workarounds in issue 12572. Stinner - is the patch you mentioned in a released version of Python 3.2? Also, how is it affected by the fact that the (wide char) strings in question are constants

[issue5999] compile error on HP-UX 11.22 ia64 - 'mbstate_t' is used as a type, but has not been defined as a type

2011-07-15 Thread Jim Schneider
Jim Schneider jim.schnei...@dataflux.com added the comment: I am collecting HP/UX compiler workarounds in issue 12572. I will be adding patches to it as I produce them, including a patch to fix this on HP/UX. -- ___ Python tracker rep

[issue12572] HP/UX compiler workarounds

2011-07-15 Thread Jim Schneider
Jim Schneider jim.schnei...@dataflux.com added the comment: This patch works around the problem underlying issue 5999 by making sure the __STDC_VERSION__ macro is defined and has a value of at least 199901 -- Added file: http://bugs.python.org/file22666/fileutils.patch

[issue12572] HP/UX compiler workarounds

2011-07-15 Thread Jim Schneider
Jim Schneider jim.schnei...@dataflux.com added the comment: Workaround for compiler bug; HP/UX compiler refuses to past (implicitly char *) string constants with wide (wchar_t *) string constants. This patch is also pasted to issue 12561 (which should be closed). Note: There is disagreement

[issue12572] HP/UX compiler workarounds

2011-07-15 Thread Jim Schneider
Jim Schneider jim.schnei...@dataflux.com added the comment: This patch just reduces compiler noise by explicitly casting pointers to void *. I expect the Visual Studio C/C++ compiler suite also issued these warnings, too. -- Added file: http://bugs.python.org/file22669

[issue12572] HP/UX compiler workarounds

2011-07-15 Thread Jim Schneider
Jim Schneider jim.schnei...@dataflux.com added the comment: Sorry - last comment should have been compiler refuses to past*e*, not past. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12572

[issue12572] HP/UX compiler workarounds

2011-07-15 Thread Jim Schneider
Jim Schneider jim.schnei...@dataflux.com added the comment: The HP/UX C compiler grumbles when a symbol that is declared static is later defined without the static storage class specifier. The attached patch just adds the missing static keywords. -- Added file: http://bugs.python.org

[issue12572] HP/UX compiler workarounds

2011-07-15 Thread Jim Schneider
Jim Schneider jim.schnei...@dataflux.com added the comment: I'm adding the original listeners for issue 5999 to this one. The fileutils.patch patch attached to this issue directly addresses what's wrong in issue 5999; I'd consider it closed, but as I didn't open it, and I'm not actually part

[issue12572] HP/UX compiler workarounds

2011-07-15 Thread Jim Schneider
Jim Schneider jim.schnei...@dataflux.com added the comment: From issue 12561 (which I will be closing): Author: STINNER Victor (haypo) * Date: 2011-07-15 15:36 Use L CONSTANT to decode a byte string to a character string doesn't work with non-ASCII strings. _Py_char2wchar() should be used

[issue12561] Compiler workaround for wide string constants in Modules/getpath.c (patch)

2011-07-15 Thread Jim Schneider
Jim Schneider jim.schnei...@dataflux.com added the comment: Constant initializers are required to be constants, not function calls, so _Py_char2wchar cannot be used in the definition of lib_python (line #138 of Modules/getpath.c). -- ___ Python

[issue12572] HP/UX compiler workarounds

2011-07-15 Thread Jim Schneider
Jim Schneider jim.schnei...@dataflux.com added the comment: Update to getpath.patch (issue 12561) - this version uses _Py_char2wchar where possible. Unfortunately, as lib_python is declared and defined statically, this can't be used in both cases where the HP/UX compiler has issues

[issue12572] HP/UX compiler workarounds

2011-07-15 Thread Jim Schneider
Jim Schneider jim.schnei...@dataflux.com added the comment: Terry - I apologize for jumping the gun a bit, and let me be a bit more clear. When I realized that the HP/UX compiler was going to have as many problems as it does compiling python 3, I decided it would be best to create a single

[issue5999] compile error on HP-UX 11.22 ia64 - 'mbstate_t' is used as a type, but has not been defined as a type

2011-07-14 Thread Jim Schneider
Jim Schneider jim.schnei...@dataflux.com added the comment: Martin - sys/_mbstate_t.h provides a definition for mbstate_t only (at least on HP/UX 11i V2.0). I can verify that the problem still exists for Python 3.2.1. I am working on a workaround for this issue, and I will attach a patch

[issue12561] Compiler workaround for wide string constants in Modules/getpath.c (patch)

2011-07-14 Thread Jim Schneider
New submission from Jim Schneider jim.schnei...@dataflux.com: In Modules/getpath.c, the following line (#138) causes problems with some compilers (HP/UX 11, in particular - there could be others): static wchar_t *lib_python = Llib/python VERSION; Similarly, line #644

[issue5999] compile error on HP-UX 11.22 ia64 - 'mbstate_t' is used as a type, but has not been defined as a type

2011-07-14 Thread Jim Schneider
Jim Schneider jim.schnei...@dataflux.com added the comment: I got it to build on HP-UX 11. However, there are a lot of compiler warnings about type mismatches, the _ctypes, _multiprocessing and termios modules failed to build, and make test died after not finding a usable binascii module

[issue5999] compile error on HP-UX 11.22 ia64 - 'mbstate_t' is used as a type, but has not been defined as a type

2011-07-14 Thread Jim Schneider
Jim Schneider jim.schnei...@dataflux.com added the comment: Martin - sys/_mbstate.h is only included if _INCLUDE__STDC_A1_SOURCE is defined. The only way this gets defined in the vendor-provided include files is if _XOPEN_SOURCE is defined and is equal to 500, or __STDC_VERSION__ is defined

[issue12561] Compiler workaround for wide string constants in Modules/getpath.c (patch)

2011-07-14 Thread Jim Schneider
Jim Schneider jim.schnei...@dataflux.com added the comment: The __W macro is needed because the token-pasting operator binds to the macro's argument immediately; Having WCHAR(y) expand to __W(y) means that __W is passed WCHAR's argument after it's been macro-expanded. Without

[issue5999] compile error on HP-UX 11.22 ia64 - 'mbstate_t' is used as a type, but has not been defined as a type

2011-07-14 Thread Jim Schneider
Jim Schneider jim.schnei...@dataflux.com added the comment: Yes, it is a patch to an HP-provided C compiler system header file. I cannot provide the actual file it patches, due to copyright limitations. -- ___ Python tracker rep...@bugs.python.org

Re: Displaying SVG in tkinter using cairo and rsvg

2011-02-16 Thread Arndt Roger Schneider
Martin P. Hellwig schrieb: Hi all, Information on using tkinter for displaying an svg image seems a bit low spread on the Internet. I recently played around with pygame and svg and realized, hold on this can be done with tk too. So I thought I post a little example for future generations :-)

Re: Displaying SVG in tkinter using cairo and rsvg

2011-02-16 Thread Arndt Roger Schneider
Martin P. Hellwig schrieb: On 02/16/11 09:04, Arndt Roger Schneider wrote: [snip] tkpath does not seem to come standard with Python's tk version when I looked into it a couple of years ago, but maybe it has now? tk canvas and tkpath share the same interface, the first tkpath was a plugin

Re: Problem with giant font sizes in tkinter

2011-02-11 Thread Arndt Roger Schneider
Steven D'Aprano schrieb: On Thu, 10 Feb 2011 15:48:47 +, Cousin Stanley wrote: Steven D'Aprano wrote: I have a tkinter application under Python 2.6 which is shows text in a giant font, about twenty(?) times larger than expected. The fonts are set using: titlefont =

Re: [Code Challenge] WxPython versus Tkinter.

2011-01-23 Thread Arndt Roger Schneider
rantingrick schrieb: [snip] 1. You cannot define the terms--restrict your opponent-- and battle it yourselves. 2. Your specified directory browser is useless. --At least define that the directory browser must have constant complexity to work with volatile data over a network...

Re: Screen readers for Tkinter (was Re: Tkinter: The good, the bad, and the ugly!

2011-01-21 Thread Arndt Roger Schneider
Littlefield, Tyler schrieb: And of course, it should also offer support for Windows, since most of the computer users use Windows, especially those who need accessibility features. uh. no, and no. Plenty of those utilizing screen readers are using macs nowadays, as well as vinux or some

Re: Tkinter: The good, the bad, and the ugly!

2011-01-18 Thread Arndt Roger Schneider
Terry Reedy schrieb: On 1/16/2011 11:20 PM, rantingrick wrote: Ok, try this... http://juicereceiver.sourceforge.net/screenshots/index.php http://www.sensi.org/~ak/pyslsk/pyslsk6.png http://www.wxwidgets.org/about/screensh.htm Ok, wxwidgets can look at least as good as tk.

Re: Tkinter: The good, the bad, and the ugly!

2011-01-18 Thread Arndt Roger Schneider
Octavian Rasnita schrieb: From: Arndt Roger Schneider arndt.ro...@addcom.de At least keep the disclaimer: Well, tosssing screenshots around doesn't prove wether a framwork/toolkit is good or not; It only displays the developers commitment to create a work of art. Overall impression

Re: Tkinter: The good, the bad, and the ugly!

2011-01-18 Thread Arndt Roger Schneider
rantingrick schrieb: On Jan 18, 7:09 am, Arndt Roger Schneider arndt.ro...@addcom.de wrote: Summary wxWidgets: wxWidgets is large scale C++ library from the 20th century, solemnly dedicated toward desktop computers. wxWidgets originates from a time before templates were used in C++ and thus

Re: Tkinter: The good, the bad, and the ugly!

2011-01-18 Thread Arndt Roger Schneider
rantingrick schrieb: On Jan 18, 12:25 pm, Arndt Roger Schneider arndt.ro...@addcom.de wrote: rantingrick schrieb: On Jan 18, 7:09 am, Arndt Roger Schneider arndt.ro...@addcom.de We DO need to consider the mobile market in this decision. Maybe it is time for us to actually get

Re: Tkinter: The good, the bad, and the ugly!

2011-01-18 Thread Arndt Roger Schneider
Adam Skutt schrieb: On Jan 18, 8:09 am, Arndt Roger Schneider arndt.ro...@addcom.de wrote: Back to rantingrick 21st century toolkit/framwork: Let's have a look at the numbers: Worlwide pc market are 300 Million pcs per year, this number includes desktops(2/3) and servers(1/3). Your gui app

Re: [OT] Python like lanugages

2011-01-17 Thread Arndt Roger Schneider
Tim Harig schrieb: [snip] This isn't such a tragedy Erlang as it is for other managed VMs because Erlang/BEAM makes powerful usage of its VM for fault tolerance mechanisms. I don't know of any other VM that allows software upgrades on a running system. styx, the distributed operating system

Re: Tkinter: The good, the bad, and the ugly!

2010-12-30 Thread Arndt Roger Schneider
rantingrick schrieb: On Dec 29, 6:41 pm, Gerry Reno gr...@verizon.net wrote: wxPython looks good but I don't see anyone developing support for things like smartphones. No wx is not the answer to our problems Rather: ... to *your* problem... Also, what do you think about frameworks

Re: Customising Tk widgets

2010-09-21 Thread Arndt Roger Schneider
Peter schrieb: I am using Windoze, I suspect the appearance attributes I am asking about here are platform dependent? Using Tkinter, I would like to generate a Checkbutton that is filled in with a solid colour rather than a tick mark when selected. tk = Tk()

Re: GUIs - A Modest Proposal

2010-06-13 Thread Arndt Roger Schneider
lkcl schrieb: [snip] it's the exact same thing for SVG image file-format. i'm _definitely_ not convinced that SVG the image fileformat is The One True Way to design images - but i'm equally definitely convinced of the power of SVG manipulation libraries which allow for the creation SVG images

Re: GUIs - A Modest Proposal

2010-06-11 Thread Arndt Roger Schneider
rantingrick schrieb: On Jun 10, 9:38 pm, Stephen Hansen me+list/pyt...@ixokai.io wrote: Also-- you're just starting to get wrong. http://docs.python.org/library/tix.html They don't -call- them the things you are, but between ComboBox, and the flexibility of HList and TList... it actually

Re: GUIs - A Modest Proposal

2010-06-08 Thread Arndt Roger Schneider
Terry Reedy schrieb: On 6/7/2010 5:25 PM, Arndt Roger Schneider wrote: Terry Reedy schrieb: ... Hah, You are ill-informed. How about 'under-informed'? That I readily admit ;-) tkpath 0.3 contains a surface element, which renders vector graphics elements in an off-screen tk image

Re: GUIs - A Modest Proposal

2010-06-07 Thread Arndt Roger Schneider
Terry Reedy schrieb: Ant I agree that the current tk situation is not completely satisfactory. In particular, the IO facilities are inadequate and have not, to my knowledge, changed in a decade. Image input formats are limited. There is no canvas output as an image. (Output of the canvase

Re: Python and Tkinter Programming by John Grayson

2010-05-31 Thread Arndt Roger Schneider
Pradeep B schrieb: On Sat, May 29, 2010 at 7:33 PM, Kevin Walzer k...@codebykevin.com wrote: Tkinter doesn't wrap native printing API's. There are a few extensions that do it, but they are platform specific and not complete. The usual ways of printing are like this: 1. If you're

Tkinter based libraries Runtime Library 3.0 and Gestalt Items 1.1

2009-11-07 Thread Arndt Roger Schneider
Hi Python commuters, It is my distinct pleasure to announce the availability of Runtime Library 3.0 and Gestalt Items 1.1 for Tkinter and Python. Both libraries are written in Tcl/Tk = version 8.4. Tkinter based Python Wrapper classes are part of the libraries, making them accesible from

Using python22.dll with Python 2.5?

2008-10-22 Thread Martin Schneider
Hi! I'd like to use the numpy library (which runs on Python 2.5) in the same project with another (mandatory) library which needs python22.dll. When I try to compile I get an error similar to python22.dll not compatible with the current Python version. Has anybody an idea how to solve this?

  1   2   >