Re: [Python-Dev] the release gods are angry at python

2008-03-26 Thread Christian Heimes
Georg Brandl schrieb: > Perhaps make it an optional resource? In the py3k branch I've assigned the audio resource to the winsound tests. Only regrtest.py -uall or -uaudio runs the winsound test. Reason: the test sound was freaking out my poor cat. :/ C

Re: [Python-Dev] Backport of bytearray type and io module

2008-03-26 Thread Christian Heimes
s? IIRC I only had to remove the annotations from the io module and add a "from __future__ import print_function" to get it working correctly. Christian ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/pyt

Re: [Python-Dev] fixing broken build

2008-03-27 Thread Christian Heimes
Neal Norwitz schrieb: > Christian, > > Please fix the build on the various buildbots that are failing or > revert your changes for unicode literals. The build failures started > to occur at r61953. There were several more (~5) follow up checkins. > > You can find all the

Re: [Python-Dev] fixing broken build

2008-03-27 Thread Christian Heimes
. All build bots are fine again. I usually don't test the new code with a non-debug build unless a release is immanent. A full test run already takes a considerable amount of time (>10 minutes) and debug builds usually catch more errors than plain bui

[Python-Dev] UCS-4 build on build bots

2008-03-27 Thread Christian Heimes
Can we have at least one build bot that compiles Python with UCS-4 unicode instead of UCS-2? Christian ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman

[Python-Dev] Windows build bot failure

2008-03-28 Thread Christian Heimes
Some Windows build bots can't compile openssl. The MS assembler fails to assemble a file. I *think* the issue can be fixed by using nasm32 instead of masm. Christian ml /Cp /coff /c /Cx /Zi /Focrypto\sha\asm\s1_win32.obj .\crypto\sha\asm\s1_win32.asm Microsoft (R) Macro Assembler Ve

Re: [Python-Dev] nested classes leaking in compiler

2008-03-29 Thread Christian Heimes
Georg Brandl schrieb: > Somehow I knew you'd be the one to find the problem :) Agreed! :) Amaury is really good in finding loose ends in the parser and AST code. I still can't wrap my brain around the AST code but it can see the light at the end of the code. _

Re: [Python-Dev] nested classes leaking in compiler

2008-03-30 Thread Christian Heimes
Can you write a short howto for the wiki? The idea is ingenious. 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] No time for svn merge

2008-03-30 Thread Christian Heimes
For your information: I won't have time to do another svn merge before the next alphas of 2.6 and 3.0 are to be released. Somebody else has to do the merge. Christian ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/ma

Re: [Python-Dev] No time for svn merge

2008-03-31 Thread Christian Heimes
a patch to the trunk ~$ cd python/trunk trunk$ svn ci -m "Message" ... Committed revision 1234. # Merge the revision to the py3k branch trunk $ cd ../py3k py3k $ svnmerge.py merge -r 1234 ... # resolve conflicts ... # commit the merge py3k $ svn ci -F svnmerge-commit-message.txt Chris

Re: [Python-Dev] xmlrpclib and dates before 1900

2008-04-02 Thread Christian Heimes
N) or Rata Die are more appropriate and much easier to use. I wish somebody could add both to the datetime module. Christian ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://m

Re: [Python-Dev] No time for svn merge

2008-04-02 Thread Christian Heimes
45 minutes of computer time but less than 15 supervisor time. The computer time is mostly compile and test time in the background. If everybody merges her own code to 3.0 it still takes *everybody* about 10 minutes of time and 45 minutes of computer ti

Re: [Python-Dev] Remove "current" Windows executables from Lib/distutils/command in svn?

2008-04-07 Thread Christian Heimes
course, upx would probably >not currently apply to Win64-amd64. The 9.0 binary hasn't been compressed with upx (yet). Christian ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe

Re: [Python-Dev] generated NEWS files

2008-04-11 Thread Christian Heimes
7;t get merged from trunk to 3.0. $ svnmerge.py merge $ svn revert Misc/NEWS resolve conflicts, compile, test $ svn ci -F svn Christian ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev

Re: [Python-Dev] Reserving an arg space for Jython

2008-04-12 Thread Christian Heimes
Brett Cannon schrieb: >> -X is reserved for non-standard arguments > > Fine by me. And implemented in r62293 (trunk) Christian ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubs

Re: [Python-Dev] Reserving an arg space for Jython

2008-04-13 Thread Christian Heimes
Brett Cannon schrieb: >> +0. If we ever run out of letters for command line options to have >> to collect -J, we have deeper problems than having to coordinate >> with Jython whether the letter is still available. > > +0 Shall I remove the reservation

Re: [Python-Dev] r62342 - python/branches/py3k/Objects/bytesobject.c

2008-04-14 Thread Christian Heimes
ause 2.6 doesn't have annotations. Collin: How hard is it to write a fixer that removes all annotations from functions? A set of small 3to2 fixers for annotations and metaclasses would make the syncing job much easier. Christian ___ Python-Dev mailing

Re: [Python-Dev] r62342 - python/branches/py3k/Objects/bytesobject.c

2008-04-14 Thread Christian Heimes
quot;. What needs to be done? * remove funtion annotation * Add object to all empty class definition * replace class Egg(metaclass=Spam) with class Egg(object):\n__metaclass__ = Spam * Add __future__ imports for print_function and unicode literals Anything else? Christian ___

Re: [Python-Dev] string representation of range in 3.0

2008-04-16 Thread Christian Heimes
Guido van Rossum schrieb: > Why only str()? Note that the interactive prompt uses repr() to display > values. Does py3k still use the tp_print slot for the interactive prompt? Christian ___ Python-Dev mailing list Python-Dev@python.or

Re: [Python-Dev] Code signing of Windows .msi/.dll/.exe's for 2.6/3.0

2008-04-17 Thread Christian Heimes
sign the binaries? * Which binaries should be signed? 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] Proposed unittest changes

2008-04-17 Thread Christian Heimes
) self.assert_(func(a, b) ...) assertOp("gt", a, b) == assert a > g I also like to have some assert for is, type, isinstance, issubclass and contains. Christian ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mail

Re: [Python-Dev] Code signing of Windows .msi/.dll/.exe's for 2.6/3.0

2008-04-17 Thread Christian Heimes
Barry Warsaw schrieb: > MvL is leading this effort and is currently trying to get a code > signing certificate (my attempts having utterly failed on the Mac ;). > Please coordinate with him. Apropos certificate, I like to suggest a PGP signing party for the next PyCon. :]

Re: [Python-Dev] Interface to change Py3kWarning in Python

2008-04-18 Thread Christian Heimes
on doesn't support module properties. :/ How do you like a macro or function PyErr_Warn3k(msg) that does all the dirty work? Christian ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubs

Re: [Python-Dev] test_subprocess failing

2008-04-19 Thread Christian Heimes
l, terminate and send_signal to subprocess.Popen. The bits and > pieces for the Windows side were already in place. The POSIX side is trivial > (as usual) and uses os.kill(). The processes were killed too early. The tests now wait until the subp

Re: [Python-Dev] Encoding detection in the standard library?

2008-04-21 Thread Christian Heimes
mpossible. The best you can do is an educated guess. 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] SetType=set in types module ?

2008-04-22 Thread Christian Heimes
weren't added to types deliberately. Please don't file a bug report. 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] PyArg_ParseTuple and Py_BuildValue question

2008-04-22 Thread Christian Heimes
hope anyone can point me to the right direction. > Thanks in advance. The Python developer list is meant for the development OF Python, not WITH Python. Please use the general Python user list to get help. Christian ___ Python-Dev mailing list P

Re: [Python-Dev] GSoC Student Introduction

2008-04-23 Thread Christian Heimes
. Leslie once explained it's a social and legal hack to make the contract work and the lawyers happy. 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] GSoC Student Introduction

2008-04-23 Thread Christian Heimes
iod everything should be in place - including the working environment on the students' computers. Christian ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/ma

Re: [Python-Dev] Do we still need BaseAddress in .vcproj files?

2008-04-25 Thread Christian Heimes
ue base address to use for a new module I added > to my local tree. Rebuilt everything and ran a full regression test, and > everything passed. What am I missing? Do we have parts of Python that rely > on finding modules at explicit base addresses? Is BaseAddress a relic from &g

[Python-Dev] Module properties for C modules

2008-04-30 Thread Christian Heimes
, too. How do you like the general idea of properties for builtin modules. That is modules written in C like the sys module. Christian ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe:

Re: [Python-Dev] Module properties for C modules

2008-04-30 Thread Christian Heimes
ontaining name, getter, setter, deleter, docstring. The module struct has to gain an additional slot which may contain a dict of names -> propertyobjects. Christian ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/li

Re: [Python-Dev] Module properties for C modules

2008-05-01 Thread Christian Heimes
>>> dir(example) ['__class__', '__delattr__', '__dict__', '__doc__', '__getattribute__', '__hash__', '__init__', '__module__', '__new__', '__reduce__', '__reduce_ex__', '_

Re: [Python-Dev] Module properties for C modules

2008-05-01 Thread Christian Heimes
Guido van Rossum schrieb: > On Thu, May 1, 2008 at 12:32 PM, Christian Heimes <[EMAIL PROTECTED]> wrote: >> Guido van Rossum schrieb: >> >>> But wouldn't this mean that those properties would no longer be >> > available in the module's __dict_

Re: [Python-Dev] Module properties for C modules

2008-05-01 Thread Christian Heimes
rs and getters of builtin modules such as the sys module. I deliberately excluded Python modules from the idea. It's going to be too tricky to expose the API to Python. Christian ___ Python-Dev mailing list Python-Dev@python.org http://mail.pytho

Re: [Python-Dev] Reminder: last alphas next Wednesday 07-May-2008

2008-05-01 Thread Christian Heimes
of the current block allocation. The issue has been discussed in great length a few months ago but without a final decision. http://bugs.python.org/issue2039 Christian ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/py

Re: [Python-Dev] Reminder: last alphas next Wednesday 07-May-2008

2008-05-02 Thread Christian Heimes
be in before the first beta. Correct, it's an optimization to enhance the memory utilization. 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] Reminder: last alphas next Wednesday 07-May-2008

2008-05-02 Thread Christian Heimes
ave dedicated directories for application specific libraries. That is ~/Library on Mac and Application Data on Windows. The latter is i18n-ed and called "Anwendungsdaten" in German. Fortunately Windows sets an environment var to the app

Re: [Python-Dev] Reminder: last alphas next Wednesday 07-May-2008

2008-05-02 Thread Christian Heimes
Jeroen Ruigrok van der Werven schrieb: > "Windows uses the Roaming folder for application specific data, such as > custom dictionaries, which are machine independent and should roam with the > user profile. The AppData\Roaming folder in Windows Vista is the same as the > Documents and Settings\user

Re: [Python-Dev] Special offer! Ten code reviews

2008-05-02 Thread Christian Heimes
ido photography for my heroes collection ... :) 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] PEP 8: Discourage named lambdas?

2008-05-03 Thread Christian Heimes
rule. PEP 8 is for the standard library and Python core only. You can write your own code like you prefer. Nobody is going to enforce the PEP 8 style guide unless you write code for the stdlib. (By the way +1 from me, too). Christian ___ Python-Dev ma

Re: [Python-Dev] [Python-3000] Reminder: last alphas next Wednesday 07-May-2008

2008-05-04 Thread Christian Heimes
completely canonical distutils incantation, should > work, by default, for non-root users; ideally non-administrators on > windows as well as non-root users on unixish platforms. The implementation of my PEP provides a new option for install: $

Re: [Python-Dev] [Python-3000] Reminder: last alphas next Wednesday 07-May-2008

2008-05-04 Thread Christian Heimes
ase if env_base else joinuser("~", ".local") USER_SITE = os.path.join(USER_BASE, "lib", "python" + sys.version[:3], "site-packages") if os.path.isdir(USER_SITE): addsitedir(USER_SITE, known_p

Re: [Python-Dev] Reminder: last alphas next Wednesday 07-May-2008

2008-05-04 Thread Christian Heimes
or empty. --- PYTHONUSERBASE defaults to ~/.local/ on Unix. In order to install packages in ~/lib, ~/bin etc directly you can do export PYTHONUSERBASE=$HOME in your .bashrc or .profile. Christian ___ Python-Dev mailing list Python-Dev@python.org

Re: [Python-Dev] [Python-3000] Reminder: last alphas next Wednesday 07-May-2008

2008-05-04 Thread Christian Heimes
led in a non-admin > location. It's about Python looking in a non-admin location per > default (as well as in the site-packages location). I know the --home option. For one the --home option is Unix only and not supported on Windows Also the --user option takes all options of my PEP 370

Re: [Python-Dev] PEP 370 (was Re: Reminder: last alphas next Wednesday 07-May-2008)

2008-05-04 Thread Christian Heimes
tory is that users generally > aren't going to have any interest in the source files for the Python > packages that they install, and that users that would prefer for the > files to be visible can easily make a symbolic link to the directory. Good point, too. Thanks Nick! Christi

[Python-Dev] PEP 370 heads up

2008-05-06 Thread Christian Heimes
s/.local/lib/python2.6/site-packages $ echo $? 0 $ ./python -s -m site --user-base --user-site /home/heimes/.local:/home/heimes/.local/lib/python2.6/site-packages $ echo $? 1 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] PEP 370 heads up

2008-05-06 Thread Christian Heimes
Barry Warsaw schrieb: > Very awesome Christian! I'm psyched for this to get into the last alpha > releases, which I remind everyone happens tomorrow. Plan on svn tree > freeze at approximately 6pm EDT (2200 UTC). Thanks Barry! Also thanks to Glyph, Nick and all the other people t

Re: [Python-Dev] r62778 - in python/branches/py3k: Lib/io.py Lib/test/test_StringIO.py Lib/test/test_io.py Lib/test/test_largefile.py Lib/test/test_memoryio.py Lib/test/test_mimetools.py Modules/_byte

2008-05-06 Thread Christian Heimes
to given argument value. Thanks for your great work! But what about the trunk? :] Can you port your code to the trunk before the alpha gets out? Christian ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/pytho

Re: [Python-Dev] [Python-3000] PEP 370 (was Re: Reminder: last alphas next Wednesday 07-May-2008)

2008-05-06 Thread Christian Heimes
t fits the purpose of a base directory? 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] Releasing alphas tonight

2008-05-07 Thread Christian Heimes
56789 . test_unittest leaked [23, 23, 23, 23] references, sum=92 ... I'm trying to find the issue. Christian ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.pyt

Re: [Python-Dev] Releasing alphas tonight

2008-05-07 Thread Christian Heimes
Christian Heimes schrieb: > The py3k branch has a major show stopper, It's leaking references to the > max. Fixed ;) Christian ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubsc

Re: [Python-Dev] [Python-checkins] r62848 - python/trunk/Objects/setobject.c

2008-05-08 Thread Christian Heimes
ntually we have to (temporarily) revoke their privileges. 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] PEP 370 extras

2008-05-08 Thread Christian Heimes
c.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7b9c000) libgcrypt.so.11 => /lib/libgcrypt.so.11 (0xb7b4e000) libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7b4a000) /lib/ld-linux.so.2 (0xb7fc6000) libgpg-error.so.0 => /lib/libgpg-error.so.0 (0xb7b46000)

Re: [Python-Dev] PEP 370 extras

2008-05-08 Thread Christian Heimes
Brett Cannon schrieb: > On Fri, May 9, 2008 at 12:05 AM, Christian Heimes <[EMAIL PROTECTED]> wrote: >> I'm working on some extra cool and useful additions to PEP 370. It's >> going to make compilation and usage of custom libraries very easy. Sit >> back an

Re: [Python-Dev] Addition of "pyprocessing" module to standard lib.

2008-05-14 Thread Christian Heimes
rocessing). On the one hand the inclusion of a package gives it an unfair advantage over similar packages. On the other hand it slows down future development because a new feature release must be synced with Python releases about every 1.5 years. -0.5 from me Christian

Re: [Python-Dev] Addition of "pyprocessing" module to standard lib.

2008-05-15 Thread Christian Heimes
usion *NOW*, but +1 on inclusion in 2.7/3.1. IMHO pyprocessing isn't mature enough - the author has labeled it as 'beta' - and the proposal came too late. It's going to take a while to give the package a security audit and integrate the C code into Python. Christian

Re: [Python-Dev] platform module testing

2008-05-15 Thread Christian Heimes
inux. AFAIK the patch hasn't been applied yet. See http://bugs.python.org/issue1322 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] rename of ConfigParser module?

2008-05-15 Thread Christian Heimes
to adjust the PCbuild files as well. (technically, you also have to > adjust PC/os2emx/Makefile, PC/os2vacpp/makefile.omk, and PC/VC6, but > these changes are waived). Don't forget PC/config.c and the build files for VC 6, VS 7.1 and VS 8

Re: [Python-Dev] rename of ConfigParser module?

2008-05-15 Thread Christian Heimes
l work. It might be possible to create the 7.1 files from the 9.0 as well. But nobody has written a tool so far. Christian ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.pytho

Re: [Python-Dev] Addition of "pyprocessing" module to standard lib.

2008-05-20 Thread Christian Heimes
uld simply save the pid to the _active > list and _cleanup() could be rewritten to use os.waitpid().) Interesting idea. The approach could safe us some trouble. I'm always +1 when it comes to removing ugly hacks. Christian ___ Python-Dev mailing

Re: [Python-Dev] disappearing exceptions

2008-05-20 Thread Christian Heimes
n be worse a macro and it should be documented in large, friendly and red letters in the C API docs. *wink* Christian ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org

Re: [Python-Dev] disappearing exceptions

2008-05-20 Thread Christian Heimes
Benjamin Peterson schrieb: > Speaking of the C-API, I was thinking of introducing a new function > called PyObject_SafeHasAttr that functions just like PyObject_HasAttr > except it can fail. How do you define "fail" in this

Re: [Python-Dev] Slice as a copy... by design?

2008-05-22 Thread Christian Heimes
although you are only interested in the first character. The buffer interface was designed for the slice-as-copy use case: >>> a = "abcdefg" >>> b = buffer(a, 2, 3) >>> b >>> str(b) 'cde' >>> sys.getrefcount(a) 3 >>> del b

Re: [Python-Dev] Slice as a copy... by design?

2008-05-22 Thread Christian Heimes
Stefan Behnel schrieb: > Even worse, it's gone in Py3: No, it has been replaced by a better system. Try "memoryview" Christian ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev

[Python-Dev] Stabilizing the C API of 2.6 and 3.0

2008-05-25 Thread Christian Heimes
bject.[ch] * rename stringobject.[ch] to bytesobject.[ch] * add a new file stringobject.h which contains the aliases PyString_ -> PyBytes_ Christian ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/py

[Python-Dev] Please svnmerge your changes

2008-05-25 Thread Christian Heimes
ou can find the list of required merges at http://rafb.net/p/cghbTk63.html 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] Stabilizing the C API of 2.6 and 3.0

2008-05-25 Thread Christian Heimes
Stefan Behnel schrieb: > will that be included by Python.h by default? Only in Python 2.6 Christian ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mail

Re: [Python-Dev] [Python-3000] Please svnmerge your changes

2008-05-25 Thread Christian Heimes
Guilherme Polo schrieb: > I see there is one commit of mine that shouldn't be merged, maybe you > could remove it from there ? You can easily block it yourself with svnmerge.py: py3k$ svnmerge.py block -r1234 py3k$ svn ci -F svnmerge-commit-message.txt

Re: [Python-Dev] optimization required: .format() is much slower than %

2008-05-27 Thread Christian Heimes
atting template. Good idea! I suggest you hook into the string interning code and use a similar approach. Christian ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/

Re: [Python-Dev] Stabilizing the C API of 2.6 and 3.0

2008-05-28 Thread Christian Heimes
major changes do need more discussion and possibly a PEP as well. In the last few months I started at least three topics about the C API renaming. It's in the thread "2.6 and 3.0 tasks" http://permalink.gmane.org/gmane.comp.python.devel/93016 Christian

Re: [Python-Dev] Why is type_modified() in typeobject.c not a public function?

2008-05-28 Thread Christian Heimes
for that, too, just in case. Please create two tickets in the bug tracker and append the patches. 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] Stabilizing the C API of 2.6 and 3.0

2008-05-29 Thread Christian Heimes
Stefan Behnel schrieb: > Christian Heimes wrote: >> * add a new file stringobject.h which contains the aliases PyString_ -> >> PyBytes_ > > Just a quick note that that file is still missing from SVN, so it's kind of > hard to compile existing code against the

Re: [Python-Dev] PyString -> PyBytes C API renaming

2008-05-29 Thread Christian Heimes
PyBytes_* functions are only available to the compiler but not to the linker. In 2.6 the ABI functions are PyString_* and in 3.0 it's PyBytes_* Christian ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/

Re: [Python-Dev] [Python-3000] Stabilizing the C API of 2.6 and 3.0

2008-05-29 Thread Christian Heimes
unteering to revert my chances if you are volunteering to keep the Python 2.x series in sync with the 3.x series. 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] Think a dead import finding script would be handy?

2008-08-17 Thread Christian Heimes
Brett Cannon wrote: After Christian mentioned how we could speed up interpreter start-up by removing some dead imports he found, I decided to write up a quick script that generates the AST for a source file and (very roughly) tries to find imports that are never used. People think it's

Re: [Python-Dev] "error: None" when building extensions under 2.6

2008-08-24 Thread Christian Heimes
ditions of Visual Studio, specifically the Professional and Team Suite editions, have these features. From MS: http://msdn.microsoft.com/en-us/library/hs24szh9.aspx Christian ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.o

Re: [Python-Dev] Add python.exe to PATH environment variable

2008-09-02 Thread Christian Heimes
the Python and Script paths to %PATH%. See Tools/Scripts/win_add2path.py 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

Re: [Python-Dev] Can/should built-in functions get __get__?

2008-09-04 Thread Christian Heimes
ht", "credits" or "license" for more information. >>> class Example: ... id = instancemethod(id) ... >>> example = Example() >>> example.id() == id(example) True 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] site.py and the checkout builddir

2008-09-05 Thread Christian Heimes
sense to have both modules as shared libraries when they are loaded on every interpreter startup. +1 for making them builtin modules. Christian ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubs

Re: [Python-Dev] [Python-3000] Proposed revised schedule

2008-09-08 Thread Christian Heimes
the last week. And don't forget Windows! The Windows builds didn't get thorough testing because we didn't provide our tests with official builds. I'm +1 for a 2.6rc and another beta of 3.0 Christian ___ Python-Dev mailing list Pyt

Re: [Python-Dev] switching on -3 from within a program?

2008-09-16 Thread Christian Heimes
y3WarningFlag or something else at the C level, or would that better be done by mod_wsgi's C code. I suggest that you introduce a new config option that sets Py_Py3kWarningFlag to 1. Christian ___ Python-Dev mailing list Python-Dev@python.org

Re: [Python-Dev] ANNOUNCE: CapPython, an object-capability subset of Python

2008-09-18 Thread Christian Heimes
Guido van Rossum wrote: How about Capt'n Python? :-) Harr, harr! Geat name :) Christian ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/op

Re: [Python-Dev] call for help: C-API 2 to 3 porting guide

2008-09-27 Thread Christian Heimes
me hints and tell us about gotchas and tricks. 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] when is path==NULL?

2008-09-30 Thread Christian Heimes
r has removed sys.path with delattr(sys, 'path'). There are valid applications for removing sys.path. Christian ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.py

Re: [Python-Dev] RELEASED Python 2.6 final

2008-10-01 Thread Christian Heimes
Nice! Python 2.7 is waiting, let's get started! :) 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%4

Re: [Python-Dev] c99 comments in the 2.6 code base?

2008-10-02 Thread Christian Heimes
happening? Ouch! This shouldn't have happend. I'm going to discuss the matter on #python-dev. Perhaps --with-pydebug could add more restrict error checking to the Makefile like -std=c89 -pedantic -Werror Christian ___ Python-Dev mai

Re: [Python-Dev] c99 comments in the 2.6 code base?

2008-10-02 Thread Christian Heimes
ion but it compiles with -std=c89 -Werror after I've applied some patches. I've added a new make command to add extra checks. Maybe the build bots could use "make c89" instead of "make" to build Python? c89: $(MAKE) CFLAGS=

Re: [Python-Dev] c99 comments in the 2.6 code base?

2008-10-02 Thread Christian Heimes
quot; to CFLAGS. I don't think it's wise to add "-Werror" to the standard build target. However a new build target with extra checks should help to detect errors much sooner. Christian ___ Python-Dev mailing list Python-Dev@pytho

Re: [Python-Dev] for __future__ import planning

2008-10-03 Thread Christian Heimes
anning the next release we need to find a way to sync the development. Soon we have to apply fixes to up to four (again FOUR) branches: 2.6, 2.7, 3.0 and 3.1. We don't have to merge as many code as we did during the py3k phase. But it's still lots of work and we need all the (technical) hel

Re: [Python-Dev] [Fwd: In Python 2.6, bytes is str]

2008-10-07 Thread Christian Heimes
27;t read documentation in this case. Maybe the documentation isn't clear enough what purpose the bytes alias serves? I spent 5 minutes with the docs but I wasn't able to find a good explanation of the bytes alias Christian ___ Python-Dev

Re: [Python-Dev] python dll no longer in system directory?

2008-10-08 Thread Christian Heimes
for all users? 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] __getattr__ and new style classes

2008-10-08 Thread Christian Heimes
d alternative syntax for repr(). Somehow the `` got screwed up by either his mailer or the mailing list. Don't be ashamed that you aren't aware of the alternative syntax. We keep it locked up in the cellar and it has been removed from the new, shiny Python 3 world. >&

Re: [Python-Dev] __getattr__ and new style classes

2008-10-09 Thread Christian Heimes
folks checking it. I still think they are back ticks. Maybe the repr() function of new style classes is slower than the old style repr(). It might explain the difference. Christian ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/ma

Re: [Python-Dev] Documentation idea

2008-10-09 Thread Christian Heimes
n and some macro magic. File size and in memory size is still critical for embedders. Christian ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/p

Re: [Python-Dev] [Python-3000] Backporting multiprocessing?

2008-10-16 Thread Christian Heimes
account if you insist on one. 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] [Python-3000] Backporting multiprocessing?

2008-10-16 Thread Christian Heimes
as effective as hoped without patching the older versions of the interpreter. Oh h... Are you able to recall a list of the most important bug fixes? Maybe we can get the bug fixes into 2.5.3 before it's too late. Christian ___ Python-Dev mailing

Re: [Python-Dev] [Python-3000] Backporting multiprocessing?

2008-10-17 Thread Christian Heimes
[EMAIL PROTECTED] wrote: Christian> Oh h... Are you able to recall a list of the most important Christian> bug fixes? Maybe we can get the bug fixes into 2.5.3 before Christian> it's too late. Maybe doing the modest amount of translation required of the 2.6 unit tes

Re: [Python-Dev] [Python-3000] Backporting multiprocessing?

2008-10-22 Thread Christian Heimes
ect has no attribute 'recv_bytes_into' -- Ran 123 tests in 12.309s FAILED (errors=1) :) Christian ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.o

Re: [Python-Dev] Backporting multiprocessing?

2008-10-22 Thread Christian Heimes
support mmap with a negative file number. File ".../python-multiprocessing/Lib/multiprocessing/heap.py", line 56, in __init__ self.buffer = mmap.mmap(-1, size) EnvironmentError: [Errno 9] Bad file descriptor Christian ___ Python-Dev

<    5   6   7   8   9   10   11   12   13   >