[Python-Dev] Re: Migration plan for the distutils removal in Python 3.12

2022-05-10 Thread Christian Heimes
On 10/05/2022 13.18, Victor Stinner wrote: On Tue, May 10, 2022 at 11:28 AM Christian Heimes wrote: Right now, Python still uses distutils internally for multiple use cases. I propose to start with renaming the distutils package to _distutils in the stdlib: * https://github.com/python/cpython

[Python-Dev] Re: [Python-Help] Unable to bootstrap Python 3 install

2022-06-16 Thread Christian Heimes
es? How do I have to set up my build environment? Which commands do I have to execute? Is there a container image available that comes with everything pre-installed? You mentioned well-documented process by the Android team. Could you please provide links to the rele

[Python-Dev] Re: How To Get Started

2022-07-28 Thread Christian Heimes
rts of the dev guide confuses you and which section you had a hard time to understand. This would help us greatly to identify problems with the dev guide and help other people that want to contribute. Regards, Christian ___ Python-Dev mailing list --

[Python-Dev] Re: typing: how to use names in result-tuples?

2019-08-08 Thread Christian Tismer
On 08.08.19 17:20, Ronald Oussoren via Python-Dev wrote: > > >> On 8 Aug 2019, at 17:12, Christian Tismer > <mailto:tis...@stackless.com>> wrote: >> >> Hi Ronald, >> >> sure, the tuple is usually not very interesting; people look it up >>

[Python-Dev] Re: typing: how to use names in result-tuples?

2019-08-08 Thread Christian Tismer
hy not name it 'return_value' or 'result' or > 'retval' or something like that? > > On Thu, Aug 8, 2019 at 1:43 AM Christian Tismer <mailto:tis...@stackless.com>> wrote: > > Hi Guido, > > If a C++ function already has a return value,

[Python-Dev] Re: PEP 572 TargetScopeError

2019-08-09 Thread Christian Tismer
xError after the parser is finished, in a > subsequent pass. Is it really a syntax error if pgen doesn't object to > it? In current CPython, the answer is yes. ... OT: Thanks for the interesting read! I am excited which way it will continue. -- Christian Tismer :^)

[Python-Dev] Re: PEP 572 TargetScopeError

2019-08-09 Thread Christian Tismer
approach is to go with the > generic SyntaxError as Barry suggests. I'll update my PRs accordingly. Totally agree. It is fine to have SyntaxError now and go for one or more new subclasses for a whole bunch of errors at a later time, fixing more things in a more consistent way

[Python-Dev] Re: What is a public API?

2019-08-09 Thread Christian Tismer
ot! Especially the builtins idea is really great :-P Cheers - Chris p.s.: How about adding @private as well? There are cases where I would like to do the opposite: __all__ = dir() @private _some_private_func_1(...): ... ... @private _some_private_func_n(...): ... not-too-serio

[Python-Dev] Re: typing: how to use names in result-tuples?

2019-08-12 Thread Christian Tismer
On 12.08.19 10:52, Ivan Levkivskyi wrote: > On Thu, 8 Aug 2019 at 17:17, Christian Tismer <mailto:tis...@stackless.com>> wrote: > > Yes, that's what I mean. > Probably retval or whatever people prefer would be adequate, > with a special rule if that na

[Python-Dev] Re: urllib request HTTPS memory leak?

2019-09-16 Thread Christian Heimes
://bugs.python.org/issue37702 and https://bugs.python.org/issue35941 for more details. As a workaround I suggest that you create a single SSLContext with ssl.create_default_context() and reuse the context in all HTTP queries. You can share the context across threads w/o locking

[Python-Dev] Re: Restricted Entry Point from PEP-551/578

2019-11-21 Thread Christian Heimes
target in the same security context except for debugging. If an attacker is able to compromise the interpreter, then the attacker most likely gains enough privileges to wipe the file. That's why Steve uses the Windows event log in his examples and I'm going for syslog and journald. The

[Python-Dev] Re: Restricted Entry Point from PEP-551/578

2019-11-21 Thread Christian Heimes
ay. It was my intent to provide an explanation why there is not much adoption of the new hooks yet. Please go ahead, put the paddle to the metal and play around with the new features! For example you could look into the new config system and figure out what is missing to build an spython interpreter

[Python-Dev] Re: Deprecating the "u" string literal prefix

2019-12-03 Thread Christian Heimes
little value. Let’s just > call it a wart until Python 4000. I'm 100% with Barry. We can certainly document the "u" string prefix as deprecated. I'm strongly against removing it from Python 3 or even raising a deprecation warning. L

[Python-Dev] Re: Deprecating the "u" string literal prefix

2019-12-03 Thread Christian Heimes
or Ubuntu 18.04 LTS, 2024 for RHEL 8.0, and 2028 for SUSE SLES 15. Christian ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.

[Python-Dev] Python 3.8 problem with PySide

2019-12-05 Thread Christian Tismer
I would really like to understand the reason for this unexpected effect. Does this ring a bell? I have no clue what is wrong with PySide, if it is wrong at all. Thanks -- Chris -- Christian Tismer :^) tis...@stackless.com Software Consulting : http://www.stackless.com/ Ka

[Python-Dev] Re: Python 3.8 problem with PySide

2019-12-08 Thread Christian Tismer
On 08.12.19 09:49, Nick Coghlan wrote: > On Fri., 6 Dec. 2019, 3:31 am Christian Tismer, <mailto:tis...@stackless.com>> wrote: > > Hi guys, > > during the last few weeks I have been struggling quite much > in order to make PySide run with Python 3.8 at

[Python-Dev] Python 3.8 error? (was: Python 3.8 problem with PySide)

2019-12-09 Thread Christian Tismer
On 08.12.19 09:49, Nick Coghlan wrote: > On Fri., 6 Dec. 2019, 3:31 am Christian Tismer, <mailto:tis...@stackless.com>> wrote: > > Hi guys, > > during the last few weeks I have been struggling quite much > in order to make PySide run with Python 3.8 at

[Python-Dev] Re: Python 3.8 error?

2019-12-09 Thread Christian Tismer
On 09.12.19 23:26, Nick Coghlan wrote: > > > On Tue., 10 Dec. 2019, 5:17 am MRAB, <mailto:pyt...@mrabarnett.plus.com>> wrote: > > On 2019-12-09 18:22, Christian Tismer wrote: > > > > > > Hi Nick, > > > > afte

[Python-Dev] Re: [RELEASE] Python 3.8.1rc1 is now available for testing

2019-12-10 Thread Christian Tismer
t; To unsubscribe send an email to python-dev-le...@python.org > https://mail.python.org/mailman3/lists/python-dev.python.org/ > Message archived at > https://mail.python.org/archives/list/python-dev@python.org/message/IGJ6ZOAOT2WFY5ZIPRQNTHOSUMPUAO2H/ > Code of Conduct: http://

[Python-Dev] Re: [RELEASE] Python 3.8.1rc1 is now available for testing

2019-12-10 Thread Christian Tismer
Sorry, I sent the fixed version. These two incref's are missing! On 10.12.19 14:16, Christian Tismer wrote: > Hi Łukasz, > > tonite I found a critical bug that affects all heaptype extension > classes with a custom (not PyType_Type) type. > > the bug is i

[Python-Dev] Re: [RELEASE] Python 3.8.1rc1 is now available for testing

2019-12-10 Thread Christian Tismer
On 10.12.19 14:28, Łukasz Langa wrote: > >> On 10 Dec 2019, at 14:16, Christian Tismer > <mailto:tis...@stackless.com>> wrote: >> >> Please let me know how you want to proceed. >> This is a critical error, producing negative refcounts. > > Is there

[Python-Dev] Re: [python-committers] Re: [RELEASE] Python 3.8.1rc1 is now available for testing

2019-12-10 Thread Christian Tismer
Thanks in advance, > Victor > > Le mar. 10 déc. 2019 à 14:18, Christian Tismer a écrit > : >> >> Hi Łukasz, >> >> tonite I found a critical bug that affects all heaptype extension >> classes with a custom (not PyType_Type) type. >> >> the b

[Python-Dev] Re: Python 3.8 error?

2019-12-11 Thread Christian Tismer
Hi all, Sorry for the noise, I was wrong, and I retract. I was somehow mislead and hunted a phantom. Best - Chris On 10.12.19 00:29, Christian Tismer wrote: > On 09.12.19 23:26, Nick Coghlan wrote: >> >> >> On Tue., 10 Dec. 2019, 5:17 am MRAB, > <mailto:pyt...@

[Python-Dev] Re: Python 3.8 error?

2019-12-12 Thread Christian Tismer
e same problem, since there is no 5.14 version yet ;-) > On 2019-12-11 23:48, Christian Tismer wrote: >> Hi all, >> >> Sorry for the noise, I was wrong, and I retract. >> I was somehow mislead and hunted a phantom. > > Does that mean that there was never a problem? &

[Python-Dev] Re: Python 3.8 error?

2019-12-12 Thread Christian Tismer
ited API a bit, because we have to dynamically figure that out in order to be version-independent. I am not so sure if that whole change was worth to break it? Cheers -- Chris -- Christian Tismer-Sperling:^) tis...@stackless.com Software Consulting : http://www.stackless.com/ S

[Python-Dev] Re: Python 3.8 error?

2019-12-12 Thread Christian Tismer
Pardon, I meant "there is no Python 3.8 version, yet". And this is wrong, the MacOS pip install shows PyQt5-5.13.2-5.13.2-cp35.cp36.cp37.cp38-abi3-macosx_10_6_intel.whl So probably we have some bad oversight, somewhere. Cheers -- Chris On 12.12.19 13:48, Christian Tismer w

[Python-Dev] Re: Documenting sorted/min/max prerequisites

2019-12-14 Thread Christian Heimes
t; True > > The `<` operator try to use `__lt__`, but if it is not defined falls > back to `__gt__`. The operation "a < b" also fallback back to B.__gt__, when A.__lt__ returns NotImplemented for instances of B. Christian ___

[Python-Dev] Re: sqlite3 module and thread-safe SQLite library

2019-12-18 Thread Christian Heimes
qlite3 has two APIs to query thread safety and three different settings for threading: sqlite3_threadsafe() sqlite3_config() SQLITE_CONFIG_SINGLETHREAD SQLITE_CONFIG_MULTITHREAD SQLITE_CONFIG_SERIALIZED Only serialized is fully thread safe. I would

[Python-Dev] Re-requesting review of bpo-36226

2020-02-04 Thread Christian Schmidbauer
Hi, we had issued a PR for bpo-36226 almost a year ago, but the PR [1] review has been stalling for 4+ months. Would it be possible to get a new review on this PR? Thanks! [1] https://github.com/python/cpython/pull/12214 -- This email and any attachments are intended for the sole use of the n

[Python-Dev] Re: test_ssl.py hangs with SSL 1.1 built with no threads

2020-05-17 Thread Christian Heimes
ion in _ssl.c and test_ssl.y that SSL 1.1 will > be threaded > but this may not be true (as in my case). Python requires a thread-safe OpenSSL build. I have pushed PR https://github.com/python/cpython/pull/19953 to 3.7, 3.8, and master. The hashlib and ssl module will now fail when OpenSSL is not

[Python-Dev] [OT] I'm unsubscribing from this tire fire (formerly known as python-dev)

2020-07-05 Thread Christian Heimes
er has abandoned python-dev last week. Others have stopped participating and posting on python-dev years ago. I will follow their example now. Goodbye Christian ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...

[Python-Dev] Re: [python-committers] Resignation from Stefan Krah

2020-10-09 Thread Christian Heimes
n's behavior I feel that an apology is the first step to reconcile and rebuild trust. Christian ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/pyt

[Python-Dev] Re: [python-committers] Resignation from Stefan Krah

2020-10-09 Thread Christian Heimes
On 09/10/2020 15.48, Antoine Pitrou wrote: > On Fri, 9 Oct 2020 05:04:55 +0300 > Ivan Pozdeev via Python-Dev wrote: >> I don't see the point of requiring to "write an apology", especially *before >> a 12-month ban*. If they understand that their behavior is >> wrong, there's no need for a ban, a

Re: [Python-Dev] multiprocessing not compatible with functional.partial

2009-02-12 Thread Christian Heimes
ite-packages/multiprocessing-2.6.1.1-py2.5-linux- > return recv() > TypeError: type 'partial' takes at least one argument functool.partial instances are not picklable. You have to teach multiprocessing how to serialize a functool.partial instance. Christian

Re: [Python-Dev] Duck-typing self

2009-02-18 Thread Christian Heimes
nction. Without the type checking of the unbound method wrapper the restriction is gone. Python 3.0.1 (r301:69655, Feb 15 2009, 23:28:13) [GCC 4.3.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. &g

Re: [Python-Dev] Python jail: whitelist vs blacklist

2009-02-24 Thread Christian Heimes
My approach is maybe naive and imposible to implement :-) Something similar to your approach is already implemented in Zope 3's security system. Have a look at http://svn.zope.org/zope.security/trunk/src/zope/security/ Christian ___ Python-Dev mailing

Re: [Python-Dev] How do I get commit access?

2009-02-27 Thread Christian Heimes
get write access when multiple developers (or Guido himself) think that you are ready for it. CPython has a stricter policy than most other Python related projects. Christian ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mail

Re: [Python-Dev] 3.1 performance

2009-03-08 Thread Christian Heimes
thout "--with-computed-gotos"? Why is the feature still disabled by default? Christian PS: Holy moly! Computed gotos totally put my Python on fire! The feature increases the minimum run-time by approx. 25% and the average run-time by approx. 40% on my Ubuntu 8.10

[Python-Dev] Ext4 data loss

2009-03-10 Thread Christian Heimes
tim of the very same issue, too. Should we do anything about it? Christian ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Ext4 data loss

2009-03-10 Thread Christian Heimes
Guido van Rossum wrote: > If I understand the post properly, it's up to the app to call fsync(), > and it's only necessary when you're doing one of the rename dances, or > updating a file in place. Basically, as he explains, fsync() is a very > heavyweight operation; I'm against calling it by defau

Re: [Python-Dev] Ext4 data loss

2009-03-10 Thread Christian Heimes
Antoine Pitrou wrote: > Christian Heimes cheimes.de> writes: >> I agree with you, fsync() shouldn't be called by default. I didn't plan >> on adding fsync() calls all over our code. However I like to suggest a >> file.sync() method and a synced flag for files

Re: [Python-Dev] Ext4 data loss

2009-03-11 Thread Christian Heimes
e and a half hour earlier I suggested 'sync()' as the name of the method and 'synced' as the name of the flag that forces a fsync() call during the close operation. Christian ___ Python-Dev mailing list Python-Dev@python.org htt

Re: [Python-Dev] Ext4 data loss

2009-03-11 Thread Christian Heimes
mplies sync_on="close"? Your suggestion sounds like the right way to me! Christian ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Fwd: installation with ubuntu 8.04

2009-03-13 Thread Christian Heimes
Note: not installed as 'python'. * Use 'make fullinstall' to install as 'python'. * However, 'make fullinstall' is discouraged, * as it will clobber your Python 2.x installation. Christian ___ Python-Dev mail

[Python-Dev] Multiprocessing on Solaris

2009-03-20 Thread Christian Heimes
disposal to test the settings? Neither Python 2.6 nor my backup have the correct settings for Solaris. Christian ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman

Re: [Python-Dev] Multiprocessing on Solaris

2009-03-20 Thread Christian Heimes
Martin v. Löwis schrieb: >> Today I was in contact with a Python user who tried to compile >> pyprocessing - the ancestor of multiprocessing - on Solaris. It failed >> to run because Solaris is missing two features (HAVE_FD_TRANSFER and >> HAVE_SEM_TIMEDWAIT). Does anybody have a Solaris box at his

[Python-Dev] an unimportant question, ...

2009-03-22 Thread Christian Tismer
7;t make it to PyCon this time, see you soon at the piggies -- Christian Tismer :^) <mailto:tis...@stackless.com> tismerysoft GmbH : Have a break! Take a ride on Python's Johannes-Niemeyer-Weg 9A :*Starship* http://starship.python.net/ 14109 Ber

Re: [Python-Dev] an unimportant question, ...

2009-03-22 Thread Christian Tismer
sive! Thank you very much for the enlightment. Whow! cheers - chris -- Christian Tismer :^) <mailto:tis...@stackless.com> tismerysoft GmbH : Have a break! Take a ride on Python's Johannes-Niemeyer-Weg 9A :*Starship* http://starship.python.net/ 14109 B

Re: [Python-Dev] Multiprocessing on Solaris

2009-03-22 Thread Christian Heimes
ing to his initial message he is using Solaris 5.8 with GCC 3.4.6 on a Sun Fire machine. Here is a link to his mesage: http://permalink.gmane.org/gmane.comp.python.general/615802 Christian ___ Python-Dev mailing list Python-Dev@python.org http://mail.p

Re: [Python-Dev] an unimportant question, ...

2009-03-22 Thread Christian Tismer
s? If the latter is true and the only reason, I vote for reclaiming the three bytes. Maybe it saves a tree or two. Maybe it hurts very little if done for Python 3000. In any case, use the version that saves the most energy. :-) not kidding - ciao -- chris -- Christian Tismer

Re: [Python-Dev] Multiprocessing on Solaris

2009-03-23 Thread Christian Heimes
should produce the same set of definitions but I'm not able to test it on different platforms expect Linux. http://python-multiprocessing.googlecode.com/svn/trunk/configure.ac Christian ___ Python-Dev mailing list Python-Dev@python.org http://mail.pyt

Re: [Python-Dev] Multiprocessing on Solaris

2009-03-23 Thread Christian Heimes
Jesse Noller wrote: > Christian - I would appreciate it if we could coordinate/track this on > the tracker too - I had no idea you were doing this in the back port, > and I don't think we want the two code bases to diverge that much. You could not have known about the idea because

Re: [Python-Dev] Evaluated cmake as an autoconf replacement

2009-03-29 Thread Christian Heimes
ils and setup.py. In my opinion any change to an automated system is a waste of precious developer times and makes our Windows support worse. Christian ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Un

Re: [Python-Dev] Evaluated cmake as an autoconf replacement

2009-03-30 Thread Christian Heimes
ws and MSVC is a primary feature of > CMake, not an afterthought. Please understand my previous mail in the context of Python core development. For KDE it makes perfectly sense to use cmake. For Python on Windows I just don't see any relevant benefits. I'm not against a CMake approach

Re: [Python-Dev] Evaluated cmake as an autoconf replacement

2009-03-30 Thread Christian Heimes
a previous mail about 15 minutes ago. Christian ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

[Python-Dev] bdb.py trace C implementation?

2009-04-01 Thread David Christian
res action. I'd be willing to maintain the C implementation. I would be willing to write those tests that are possible as well. Is this something that would be likely to be accepted? Thanks, David Christian Senior Software Engineer rPath, Inc. ___

Re: [Python-Dev] bdb.py trace C implementation?

2009-04-01 Thread David Christian
tead of once per line. This can give a large speedup when you are skipping the entire standard library, at some measurable cost per function call, and a cost in code complexity. --- David Christian Senior Software Engineer rPath, Inc ___ Python-Dev ma

Re: [Python-Dev] PyDict_SetItem hook

2009-04-01 Thread Christian Heimes
John Ehresman wrote: > * To what extent should non-debugger code use the hook? At one end of > the spectrum, the hook could be made readily available for non-debug use > and at the other end, it could be documented as being debug only, > disabled in python -O, & not exposed in the stdlib to python

Re: [Python-Dev] Mercurial?

2009-04-04 Thread Christian Heimes
row it away when it may become in handy for other FOSS projects that want to move away from subversion. Dirkjan or whoever is going to work on the PEP can copy n' paste the interesting pieces from PEP 374 to the new one. Christian ___ Python-Dev m

Re: [Python-Dev] Rethinking intern() and its data structure

2009-04-09 Thread Christian Heimes
e on > 64-bit platforms. Where the size of a 'dictentry' doubles, but the > average length of a variable name wouldn't change. > > Anyway, I would be happy to implement something along the lines of a > "StringSet", or maybe the "InternSet&qu

[Python-Dev] Something like PEP-0304 - suppress *.pyc generation

2009-04-20 Thread christian . doll
different machines - i think the problem are the *.pyc files of different machines which are generated at the same time. is pep-0304 implemented in a newer python version ( we use 2.4.4 ) or is there a work around or can someone implement pep-0304? thank you for your help! Viele Grüße Christian

[Python-Dev] RFC: Threading-Aware Profiler for Python

2009-05-04 Thread Christian Schubert
nal changes would be required to get this included? Please direct traffic regarding this subject to pyprof-de...@lists.sourceforge.net (no I'm not subscribed to python-dev). SF project page: https://sourceforge.net/projects/pyprof/ git repository: git://pyprof.git.sourceforge.net/gitroot/py

Re: [Python-Dev] Avoiding file descriptors leakage in subprocess.Popen()

2009-06-12 Thread Christian Heimes
ad, write): print read, write Christian PS and nit pick: File descriptor are opaque resource handlers which just happened to be ints. They should be treated as magic cookies. ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/ma

Re: [Python-Dev] Avoiding file descriptors leakage in subprocess.Popen()

2009-06-12 Thread Christian Heimes
ad, write): print read, write Christian PS and nit pick: File descriptor are opaque resource handlers which just happened to be ints. They should be treated as magic cookies. ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/ma

Re: [Python-Dev] Functions that steal references (Re: [pygame] [patch] minor memory leaks...)

2009-06-16 Thread Christian Heimes
hen it succeeds. >> As an aside, is this a general feature of functions >> that steal references, or is PyModule_AddObject an >> oddity? > > IIRC, It's an oddity. But it is a convenient oddity nonetheless. Christian ___ Pytho

Re: [Python-Dev] Popen asynchronous input for Windows

2009-06-18 Thread Christian Heimes
I will be using cTypes with the parts of Mark Hammond's code > that I need, license permitting. Any suggestions are greatly appreciated. The subprocess module several wrappers for win32 APIs in Modules/_subprocess.c. You could add the necessary functions. Christian ___

Re: [Python-Dev] Adding syntax for units of measure

2009-06-23 Thread Christian Heimes
+ 34*cm)/mm speed = 5*km_h For what purpose do you want to have physical units in Python syntax? Do you need to verify your formulas? Christian ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/pyt

Re: [Python-Dev] [RELEASED] Python 3.1 final

2009-06-27 Thread Christian Heimes
Benjamin Peterson schrieb: > On behalf of the Python development team, I'm thrilled to announce the first > production release of Python 3.1. Gratulations! You did a fantastic job! :) Christian PS: I hope that I'm able to spare more of my work time on the developme

Re: [Python-Dev] Define metatype and a type that uses it

2009-07-08 Thread Christian Heimes
tes and wraps the C++ code in Python wrappers. JCC even allows you to implement native methods of Java classes in Python. Christian ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http

Re: [Python-Dev] Support for Python/Windows

2009-07-21 Thread Christian Heimes
quot;. Me and probably all other subscribers like to use the MSDN subscription to build Windows binaries of Python and Python related extensions. Can you please verify that we are allowed to use the subscription for that purpose, too? Christian ___ Python-

Re: [Python-Dev] Support for Python/Windows

2009-07-21 Thread Christian Heimes
Some features like PGO aren't available in VS Express Edition or Windows SDK. I'm not sure about all aspects of X86_64 builds, too. I'm prefer better safe than sorry. Disclaimer: I would never disclose that I'm a tiny bit paranoid ... :) Christian __

[Python-Dev] mingw32 and gc-header weirdness

2009-07-22 Thread Christian Tismer
bug? Should we change the above union to a safer construct? Or maybe I just missed something obvious and made a fool out of me? cheers - chris -- Christian Tismer :^) <mailto:tis...@stackless.com> tismerysoft GmbH : Have a break! Take a ride on Python'

Re: [Python-Dev] mingw32 and gc-header weirdness

2009-07-22 Thread Christian Tismer
onfig.h cheers - chris -- Christian Tismer :^) <mailto:tis...@stackless.com> tismerysoft GmbH : Have a break! Take a ride on Python's Johannes-Niemeyer-Weg 9A :*Starship* http://starship.python.net/ 14109 Berlin : PGP key -> http:/

Re: [Python-Dev] mingw32 and gc-header weirdness

2009-07-22 Thread Christian Tismer
, IOW they are *all* badly aligned. If that matters, of course. cheers - chris -- Christian Tismer :^) <mailto:tis...@stackless.com> tismerysoft GmbH : Have a break! Take a ride on Python's Johannes-Niemeyer-Weg 9A :*Starship* http://starship.p

Re: [Python-Dev] Replacing PyWin32's PeekNamedPipe, ReadFile, and WriteFile

2009-07-23 Thread Christian Heimes
elease the GIL for a function call? Christian ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Replacing PyWin32's PeekNamedPipe, ReadFile, and WriteFile

2009-07-23 Thread Christian Heimes
thon distribution. Interesting, I didn't know that IronPython supports ctypes, too. I still find ctypes a bit problematic because it doesn't us header files for its types, structs and function definitions. Christian PS: I'n still reading your IronPython book. I hope I'll have some spar

Re: [Python-Dev] Replacing PyWin32's PeekNamedPipe, ReadFile, and WriteFile

2009-07-23 Thread Christian Heimes
ess.c). You've hit the nail on the head! That's it. Christian ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] mingw32 and gc-header weirdness

2009-07-23 Thread Christian Tismer
On 7/23/09 2:04 AM, Antoine Pitrou wrote: Christian Tismer stackless.com> writes: Despite the fact that Python probably has to be changed: If it is true then all the 32-bit Linux Pythons have a 12 byte GC head, IOW they are *all* badly aligned. Why are they badly aligned? The fact that l

Re: [Python-Dev] mingw32 and gc-header weirdness

2009-07-23 Thread Christian Tismer
On 7/23/09 2:27 PM, Antoine Pitrou wrote: Christian Tismer stackless.com> writes: ... I'm not sure a double aligned on a 4-byte boundary is "misaligned" on a x86 CPU. I'm also not sure. Anyway, the result was neither intended nor expected, I guess. Alignment is

Re: [Python-Dev] Update to Python Documentation Website Request

2009-07-23 Thread Christian Heimes
rd python. > > So i guess that I am working with the same goal in mind. I'm sorry to inform you that a wxWindows based solution has zero change to get into the Python standard library ever. We are not going to add another GUI toolkit to the core distr

Re: [Python-Dev] mingw32 and gc-header weirdness

2009-07-27 Thread Christian Tismer
still unhappy with this waste of memory, just because the GC header has to be rounded up, regardlwss wether that is needed or not. We should keep Martin's hint in mind, that Python 4 could place the gc header at the end of structures, instead. cheers - chris -- Christian T

Re: [Python-Dev] mingw32 and gc-header weirdness

2009-07-27 Thread Christian Heimes
Christian Tismer wrote: > We should keep Martin's hint in mind, that Python 4 could place > the gc header at the end of structures, instead. Wow, 3.1 just came out and we already have the first PEP for Python 4k? :) Christian ___ Python-

Re: [Python-Dev] mingw32 and gc-header weirdness

2009-07-27 Thread Christian Tismer
On 7/27/09 12:48 AM, Christian Heimes wrote: Christian Tismer wrote: We should keep Martin's hint in mind, that Python 4 could place the gc header at the end of structures, instead. Wow, 3.1 just came out and we already have the first PEP for Python 4k? :) Christian Maybe it&#

Re: [Python-Dev] mingw32 and gc-header weirdness

2009-07-27 Thread Christian Tismer
On 7/24/09 5:16 AM, Roumen Petrov wrote: Christian Tismer wrote: ... Did the crash disappear is you add "__attribute__((aligned(8)))" after variable dummy ? Did not try. But the proposed addition of a double does it, see the dev list. cheers - chris -- Christ

Re: [Python-Dev] Microsoft MSDN

2009-08-13 Thread Christian Heimes
watch out for a message from MSDN! I almost confused the email with spam. Thanks for your work and please forward my gratitude to James Rice. Christian ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev U

Re: [Python-Dev] Adding a C Module to python source distribution

2009-08-28 Thread Christian Heimes
Shashank Singh wrote: > Do I need to register this module some place else too (setup.py?) ? > > Any hints and pointers will be appreciated :) You have to add the module and its initializer to PC/config.c, too. Christian ___ Python-Dev mai

Re: [Python-Dev] eggs now mandatory for pypi?

2009-10-05 Thread Christian Heimes
a good idea: >> >> no egg - worst seen ever, remove it from pypi or provide an egg >> (jensens, 2009-10-05, 0 points) >> >> Actually Jens is a Plone developer ... I'm including Jens in this discussion so he may shed some light on his comment. Christian

[Python-Dev] PEP 370 and IronPython

2009-10-08 Thread Christian Heimes
e, "lib", "python" + sys.version[:3], +USER_SITE = os.path.join(user_base, "lib", + interpreter_name.lower() + sys.version[:3], "site-packages") return USER_SITE The patch doesn't

Re: [Python-Dev] transitioning from % to {} formatting

2009-10-08 Thread Christian Tanzer
om Python and there is no automatic transition path that effectively means that existing code using %-formatting is forced to stay at whatever Python version was the last one supporting %-formatting. I surely hope nobody is seriously considering such a scenario. Perl 6 seems harmless in compariso

Re: [Python-Dev] transitioning from % to {} formatting

2009-10-08 Thread Christian Tanzer
rs from now, all maintainers of long existing code have exactly the same problem. IMHO, either the translation is done once and gives identical output or it isn't worth doing at all. -- Christian Tanzerhttp://www.c-tanzer.at/ __

Re: [Python-Dev] transitioning from % to {} formatting

2009-10-08 Thread Christian Tanzer
ing string exceptions (which have already happened) will affect far > more programs than a minor incompatibility in transitioning string > formatting. `with` and `as` are trivial to fix and certainly not pervasive in existing code. String exceptions have been deprecated for years

Re: [Python-Dev] PEP 370 and IronPython

2009-10-09 Thread Christian Heimes
Nick Coghlan wrote: > Christian Heimes wrote: >> The solution requires a new attribute in the sys module that contains >> the name of the implementation. As an alternative we could use the first >> field of sys.subversion but I prefer an explicit attribute. I'm >> p

Re: [Python-Dev] PEP 370 and IronPython

2009-10-09 Thread Christian Heimes
te all these > schemes in a single place in the stdlib (so in sys maybe?) Hello Tarek! I'm feeling uncomfortable with sticking so much information into the sys module. Another module with installation schemata wouldn't hurt, though. In my opinion it's usually wise to separa

Re: [Python-Dev] PEP 370 and IronPython

2009-10-09 Thread Christian Heimes
Antoine Pitrou wrote: > `usersitesuffix` should probably be a separate sys attribute, since it doesn't > depend on the VM only, but also on the platform and version. I don't really care and I'm happy to follow the herd in this

Re: [Python-Dev] PEP 370 and IronPython

2009-10-09 Thread Christian Heimes
don't think my proposal will land into 2.6. The changes are too severe for a bug fix release. Christian ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailm

[Python-Dev] PEP about sys.implementation and implementation specific user site directory

2009-10-09 Thread Christian Heimes
PEP 370. The string contains the implementation name as well as the version number of Python. Examples: python2.6 (CPython, Unix) Python26 (CPython, Windows) ironpython2.6 (IronPython, Unix) IronPython26 (IronPython, Windows) ... Comments? Christian _

Re: [Python-Dev] PEP about sys.implementation and implementation specific user site directory

2009-10-09 Thread Christian Heimes
ation. I could also add a lookup table for all known implementations to the site module. But what about unknown or new implementations? They would have to wait until we add a new entry for them. The sys.userdirsuffix is more flexible and future prove. Christian ___

Re: [Python-Dev] PEP about sys.implementation and implementation specific user site directory

2009-10-09 Thread Christian Heimes
Also, why is it the name of the JIT compiler, and not the name of the > source language compiler? The term "source language compiler" describes the intent of the field perfectly. Thanks Martin! I was merely guessing what the compiler name may look like on Jython. Christian __

Re: [Python-Dev] PEP about sys.implementation and implementation specific user site directory

2009-10-09 Thread Christian Heimes
ld let Guido decide about the identifier before we have another bike-shedding war. ;-) >> name (required): >> mixed case name of the implementation, for example "CPython", >> "IronPython", "Jython", "PyPy" > > Likewise; alternatively &q

Re: [Python-Dev] PEP about sys.implementation and implementation specific user site directory

2009-10-09 Thread Christian Heimes
y that I know of to determine the JIT being used in .NET. We could > of course fill in some dummy value here for IronPython but I'm also not > sure why anyone would use this. Martin has already answered both points to my satisfaction. Do you agree with him? Christian

<    1   2   3   4   5   6   7   8   9   10   >