Re: [Python-Dev] robots exclusion file on the buildbot pages?

2010-05-15 Thread Maciej Fijalkowski
For us at least no branch specified builds the default branch (trunk) and does not end up with exception in buildbot code. How about specifying the default branch in config file? On Sat, May 15, 2010 at 1:55 PM, Antoine Pitrou wrote: > On Sat, 15 May 2010 21:49:07 +0200 > "Martin v. Löwis" wrote

[Python-Dev] PyPy 1.3 released

2010-06-25 Thread Maciej Fijalkowski
ents have been added to the JIT code, as well as a great speedup of compiling time. Cheers, Maciej Fijalkowski, Armin Rigo, Alex Gaynor, Amaury Forgeot d'Arc and the PyPy team ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.or

Re: [Python-Dev] [pypy-dev] PyPy 1.3 released

2010-07-01 Thread Maciej Fijalkowski
On Fri, Jun 25, 2010 at 11:27 PM, Maciej Fijalkowski > wrote: >> >> === >> PyPy 1.3: Stabilization >> === >> >> Hello. >> >> We're please to announce release of PyPy 1.3. This release has two major >&g

Re: [Python-Dev] Can Python implementations reject semantically invalid expressions?

2010-07-01 Thread Maciej Fijalkowski
On Fri, Jul 2, 2010 at 12:31 AM, Stefan Behnel wrote: > Glyph Lefkowitz, 02.07.2010 06:43: >> >> On Jul 2, 2010, at 12:28 AM, Steven D'Aprano wrote: >> >>> This question was inspired by something asked on #python today. Consider >>> it a hypothetical, not a serious proposal. >>> >>> We know that m

Re: [Python-Dev] Can Python implementations reject semantically invalid expressions?

2010-07-02 Thread Maciej Fijalkowski
On Fri, Jul 2, 2010 at 1:20 AM, "Martin v. Löwis" wrote: > Am 02.07.2010 08:55, schrieb Craig Citro: >>> This question has an easy answer - can you possibly tell the difference? >>> >> >> Ok, I'm obviously being silly here, but sure you can: > > The dis module is deliberately (*) not part of the P

Re: [Python-Dev] Can Python implementations reject semantically invalid expressions?

2010-07-05 Thread Maciej Fijalkowski
On Fri, Jul 2, 2010 at 10:35 PM, Steven D'Aprano wrote: > On Sat, 3 Jul 2010 11:39:07 am Greg Ewing wrote: >> Stefan Behnel wrote: >> > So, would it still be Python if it folded >> > >> >     1 + "1" >> > >> > into >> > >> >     raise TypeError() >> > >> > at compile time? >> >> It would have to b

Re: [Python-Dev] What to do with languishing patches?

2010-07-19 Thread Maciej Fijalkowski
On Sun, Jul 18, 2010 at 10:32 PM, Paul Moore wrote: > On 18 July 2010 20:57, Glyph Lefkowitz wrote: >> >> On Jul 18, 2010, at 1:46 PM, Alexander Belopolsky wrote: >> >> We already have "posponed" and "remind" resolutions, but these are >> exclusive of "accepted".   I think there should be a clear

Re: [Python-Dev] Unladen swallow status

2010-07-21 Thread Maciej Fijalkowski
On Wed, Jul 21, 2010 at 6:50 PM, Reid Kleckner wrote: > On Wed, Jul 21, 2010 at 8:11 AM, Tim Golden wrote: >> Brett suggested that >> the Unladen Swallow merge to trunk was waiting for some work to complete >> on the JIT compiler and Georg, as release manager for 3.2, confirmed that >> Unladen Sw

Re: [Python-Dev] Unladen swallow status

2010-07-21 Thread Maciej Fijalkowski
On Wed, Jul 21, 2010 at 11:45 PM, Collin Winter wrote: > On Wed, Jul 21, 2010 at 2:43 PM, Maciej Fijalkowski wrote: >> On Wed, Jul 21, 2010 at 6:50 PM, Reid Kleckner >> wrote: >>> On Wed, Jul 21, 2010 at 8:11 AM, Tim Golden wrote: >>>> Brett suggested th

Re: [Python-Dev] Python Language Summit EuroPython 2010

2010-07-22 Thread Maciej Fijalkowski
On Thu, Jul 22, 2010 at 9:51 AM, Brett Cannon wrote: > > > On Wed, Jul 21, 2010 at 16:58, Antoine Pitrou wrote: >> >> On Wed, 21 Jul 2010 11:42:00 -0400 >> Jesse Noller wrote: >> > On Wed, Jul 21, 2010 at 11:11 AM, Tim Golden >> > wrote: >> > [...snip...] >> > > A messy discussion turned on the

Re: [Python-Dev] Thoughts fresh after EuroPython

2010-07-26 Thread Maciej Fijalkowski
On Mon, Jul 26, 2010 at 12:02 PM, Michael Foord wrote: > On 26/07/2010 04:42, Guido van Rossum wrote: >> >> On Sun, Jul 25, 2010 at 8:31 PM, Peter Portante >>  wrote: >> >>> >>> FWIW: We use Python at Tabblo, straddled across Python 2.5.4 and 2.6.5. >>> They >>> work. And they work well. But we m

Re: [Python-Dev] GIL musings (was Re: Thoughts fresh after EuroPython)

2010-07-29 Thread Maciej Fijalkowski
On Thu, Jul 29, 2010 at 6:53 AM, Greg Ewing wrote: > On 28/07/10 23:12, Antoine Pitrou wrote: > >> It should be noted, though, that a full GC can be detrimental to >> real-time applications. Kristján has already explained how some of his >> software disabled the cyclic GC, and took care of breakin

[Python-Dev] PyPy 1.4 released

2010-11-26 Thread Maciej Fijalkowski
,18,19,20&env=1&hor=false&bas=2%2B35&chart=normal+bars Cheers, Carl Friedrich Bolz, Antonio Cuni, Maciej Fijalkowski, Amaury Forgeot d'Arc, Armin Rigo and the PyPy team ___ Python-Dev mailing list Python-Dev@python.org http:/

Re: [Python-Dev] gc ideas -- sparse memory

2010-12-03 Thread Maciej Fijalkowski
On Sat, Dec 4, 2010 at 6:34 AM, James Y Knight wrote: > On Dec 3, 2010, at 10:50 PM, Terry Reedy wrote: >> On 12/3/2010 7:46 PM, James Y Knight wrote: >> >>> Sure they are. This is what Java provides you, for example. If you >>> have fixed, but potentially non-unique ids (in Java you get this >>>

Re: [Python-Dev] gc ideas -- sparse memory

2010-12-04 Thread Maciej Fijalkowski
On Sat, Dec 4, 2010 at 1:37 PM, Antoine Pitrou wrote: > On Sat, 4 Dec 2010 15:06:45 +1100 > Cameron Simpson wrote: >> On 03Dec2010 18:15, James Y Knight wrote: >> | On Dec 3, 2010, at 6:04 PM, Terry Reedy wrote: >> | > gc is implementation specific. CPython uses ref counting + cycle >> | > gc. A

Re: [Python-Dev] Possible optimization for LOAD_FAST ?

2010-12-31 Thread Maciej Fijalkowski
> OK, but is it mandatory? For example, in the above code, I can unroll the > loop because I found that range is the usual built-in, 5 is a low-enough > constant, How do you know xrange is xrange and not something else? Cheers, fijal ___ Python-Dev mail

Re: [Python-Dev] Possible optimization for LOAD_FAST ?

2010-12-31 Thread Maciej Fijalkowski
On Fri, Dec 31, 2010 at 12:00 PM, Maciej Fijalkowski wrote: >> OK, but is it mandatory? For example, in the above code, I can unroll the >> loop because I found that range is the usual built-in, 5 is a low-enough >> constant, > > How do you know xrange is xrange and not so

Re: [Python-Dev] Possible optimization for LOAD_FAST ?

2011-01-05 Thread Maciej Fijalkowski
How about not changing semantics and still making this optimization possible? PyPy already has CALL_LIKELY_BUILTIN which checks whether builtins has been altered (by keeping a flag on the module dictionary) and if not, loads a specific builtin on top of value stack. From my current experience, I w

Re: [Python-Dev] r88178 - python/branches/py3k/Lib/test/crashers/underlying_dict.py

2011-01-25 Thread Maciej Fijalkowski
On Tue, Jan 25, 2011 at 1:26 PM, Antoine Pitrou wrote: > On Tue, 25 Jan 2011 01:00:28 +0100 (CET) > benjamin.peterson wrote: >> Author: benjamin.peterson >> Date: Tue Jan 25 01:00:28 2011 >> New Revision: 88178 >> >> Log: >> another pretty crasher served up by pypy > > Some comments would be nice

Re: [Python-Dev] Summer of Code: call for ideas and mentors

2011-03-04 Thread Maciej Fijalkowski
On Fri, Mar 4, 2011 at 10:35 AM, "Martin v. Löwis" wrote: > Google Summer of Code is coming up again, and we will again > be participating. Arc Riley will setup infrastructure later > today, and we need to start thinking about possible projects. > > Traditionally, people (students and other projec

Re: [Python-Dev] VM and Language summit info for those not at Pycon (and those that are!)

2011-03-12 Thread Maciej Fijalkowski
On Sat, Mar 12, 2011 at 1:14 PM, "Martin v. Löwis" wrote: >> >> http://www.boredomandlaziness.org/2011/03/python-vm-summit-rough-notes.html >> >> http://www.boredomandlaziness.org/2011/03/python-vm-summit-somewhat-coherent.html > > Wrt. the remark that other implementations should be referenced mo

Re: [Python-Dev] VM and Language summit info for those not at Pycon (and those that are!)

2011-03-21 Thread Maciej Fijalkowski
[skipping the whole long discussion] > > Cython is meant to compile Python code. A "cython version" would just be a > pure Python module, usable with all other implementations, but with type > annotations that make it compile to more optimal C code. Type annotations > can be provided in an externa

Re: [Python-Dev] GSoC: speed.python.org

2011-03-21 Thread Maciej Fijalkowski
On Mon, Mar 21, 2011 at 12:33 PM, DasIch wrote: > Hello Guys, > I'm interested in participating in the Google Summer of Code this year > and I've been looking at projects in the Wiki, particularly > speed.pypy.org[1] as I'm very interested in the current VM > development. However given my knowledg

Re: [Python-Dev] GSoC: speed.python.org

2011-03-21 Thread Maciej Fijalkowski
On Mon, Mar 21, 2011 at 2:24 PM, DasIch wrote: > On Mon, Mar 21, 2011 at 7:48 PM, Antoine Pitrou wrote: >> On Mon, 21 Mar 2011 19:33:55 +0100 >> DasIch wrote: >>> >>> 3. Several benchmarks (at least the Django and Twisted ones) have >>> dependencies which are not (yet) ported to 3.x and porting

Re: [Python-Dev] GSoC: speed.python.org

2011-03-21 Thread Maciej Fijalkowski
On Mon, Mar 21, 2011 at 4:27 PM, Antoine Pitrou wrote: > Le lundi 21 mars 2011 à 16:21 -0600, Maciej Fijalkowski a écrit : >> The original idea was to converge and have the >> common repo on hg.python.org, but since unladen run out of steam, >> nobody bothered to update the

Re: [Python-Dev] Dict access with double-dot (syntactic sugar)

2011-03-24 Thread Maciej Fijalkowski
On Thu, Mar 24, 2011 at 11:50 AM, Guido van Rossum wrote: > On Thu, Mar 24, 2011 at 10:37 AM, Jameson Quinn > wrote: >> OK, fair enough. People don't like this. So let me back up a step. > >> Clearly this is intended for using with things that you get as a dictionary, >> but which really should

Re: [Python-Dev] PEP 399: Pure Python/C Accelerator Module Compatibiilty Requirements

2011-04-06 Thread Maciej Fijalkowski
> No worries, it wasn't even my code.  Someone > donated it.  The was a discusion on python-dev > and collective agreement to allow it to have > semantic differences that would let it run faster. > IIRC, the final call was made by Uncle Timmy. > The bug link is here: http://bugs.python.org/issue3

Re: [Python-Dev] Policy for making changes to the AST

2011-04-07 Thread Maciej Fijalkowski
> AFAIK the AST is > CPython-specific so should be treated with the same attitude as > changes to the bytecode. That means, do it conservatively, since there > *are* people who like to write tools that manipulate or analyze this, > and while they know they're doing something CPython and > version-s

Re: [Python-Dev] [GSoC] Developing a benchmark suite (for Python 3.x)

2011-04-07 Thread Maciej Fijalkowski
On Fri, Apr 8, 2011 at 3:29 AM, Jesse Noller wrote: > On Thu, Apr 7, 2011 at 7:52 PM, Michael Foord > wrote: >> On 08/04/2011 00:36, Anthony Scopatz wrote: >> >> On Thu, Apr 7, 2011 at 6:11 PM, Michael Foord >> wrote: >>> >>> On 07/04/2011 22:41, Antoine Pitrou wrote: On Thu, 07 Apr 2

Re: [Python-Dev] [GSoC] Developing a benchmark suite (for Python 3.x)

2011-04-08 Thread Maciej Fijalkowski
On Fri, Apr 8, 2011 at 11:22 AM, Stefan Behnel wrote: > Jesse Noller, 07.04.2011 22:28: >> >> On Thu, Apr 7, 2011 at 3:54 PM, Anthony Scopatz wrote: >>> >>> Hi Daniel, >>> Thanks for putting this together.  I am a huge supporter of benchmarking >>> efforts.  My brief comment is below. >>> >>> On W

Re: [Python-Dev] [GSoC] Developing a benchmark suite (for Python 3.x)

2011-04-08 Thread Maciej Fijalkowski
On Fri, Apr 8, 2011 at 12:18 PM, Stefan Behnel wrote: > Maciej Fijalkowski, 08.04.2011 11:41: >> >> On Fri, Apr 8, 2011 at 11:22 AM, Stefan Behnel >>  wrote: >>> >>> Jesse Noller, 07.04.2011 22:28: >>>> >>>> On Thu, Apr 7

Re: [Python-Dev] [GSoC] Developing a benchmark suite (for Python 3.x)

2011-04-11 Thread Maciej Fijalkowski
On Fri, Apr 8, 2011 at 11:22 AM, Stefan Behnel wrote: > Jesse Noller, 07.04.2011 22:28: >> >> On Thu, Apr 7, 2011 at 3:54 PM, Anthony Scopatz wrote: >>> >>> Hi Daniel, >>> Thanks for putting this together.  I am a huge supporter of benchmarking >>> efforts.  My brief comment is below. >>> >>> On W

Re: [Python-Dev] [GSoC] Developing a benchmark suite (for Python 3.x)

2011-04-11 Thread Maciej Fijalkowski
On Mon, Apr 11, 2011 at 12:43 PM, Stefan Behnel wrote: > Maciej Fijalkowski, 11.04.2011 11:39: >> >> On Fri, Apr 8, 2011 at 11:22 AM, Stefan Behnel >>  wrote: >>> >>> Jesse Noller, 07.04.2011 22:28: >>>> >>>> On Thu, Apr 7

Re: [Python-Dev] PEP 399: Pure Python/C Accelerator Module Compatibiilty Requirements

2011-04-18 Thread Maciej Fijalkowski
On Sun, Apr 17, 2011 at 4:19 AM, Raymond Hettinger wrote: > > On Apr 16, 2011, at 2:45 PM, Brett Cannon wrote: > > > On Sat, Apr 16, 2011 at 14:23, Stefan Krah wrote: >> >> Brett Cannon wrote: >> > In the grand python-dev tradition of "silence means acceptance", I >> > consider >> > this PEP fin

Re: [Python-Dev] PEP 399: Pure Python/C Accelerator Module Compatibiilty Requirements

2011-04-18 Thread Maciej Fijalkowski
On Mon, Apr 18, 2011 at 6:32 PM, Éric Araujo wrote: > Hi, > >> We try very hard to optimize for usual python idioms. They're very >> often much better than specific cpython hacks. Unless you mean things >> like rebiding a global into default a "pythonic idiom". We had to >> rewrite places in stand

Re: [Python-Dev] PEP 399: Pure Python/C Accelerator Module Compatibiilty Requirements

2011-04-19 Thread Maciej Fijalkowski
On Tue, Apr 19, 2011 at 10:57 AM, Nick Coghlan wrote: > On Tue, Apr 19, 2011 at 3:06 PM, Stefan Behnel wrote: >> I think this social problem of the PEP can only be solved if the CPython >> project stops doing the major share of the stdlib maintenance, thus freeing >> its own developer capacities

Re: [Python-Dev] PEP 399: Pure Python/C Accelerator Module Compatibiilty Requirements

2011-04-19 Thread Maciej Fijalkowski
On Tue, Apr 19, 2011 at 12:01 PM, Stefan Behnel wrote: > Nick Coghlan, 19.04.2011 10:57: >> >> On Tue, Apr 19, 2011 at 3:06 PM, Stefan Behnel wrote: >>> >>> I think this social problem of the PEP can only be solved if the CPython >>> project stops doing the major share of the stdlib maintenance, t

Re: [Python-Dev] PEP 399: Pure Python/C Accelerator Module Compatibiilty Requirements

2011-04-19 Thread Maciej Fijalkowski
> > Once this move is made/accepted, I would expect the other > implementation to rapidly move away from their custom implementations > of the stdlib and contribute to the shared code base and > documentation. Yes, this places a burden on CPython, but in the long > term in benefits *all* of the pro

Re: [Python-Dev] Proposal for a common benchmark suite

2011-04-28 Thread Maciej Fijalkowski
On Thu, Apr 28, 2011 at 11:10 PM, Stefan Behnel wrote: > M.-A. Lemburg, 28.04.2011 22:23: >> >> Stefan Behnel wrote: >>> >>> DasIch, 28.04.2011 20:55: the CPython benchmarks have an extensive set of microbenchmarks in the pybench package >>> >>> Try not to care too much about p

Re: [Python-Dev] the role of assert in the standard library ?

2011-04-29 Thread Maciej Fijalkowski
On Fri, Apr 29, 2011 at 9:55 AM, Holger Krekel wrote: > On Fri, Apr 29, 2011 at 12:31 AM, Raymond Hettinger > wrote: >> >> On Apr 28, 2011, at 3:07 PM, Guido van Rossum wrote: >> >>> On Thu, Apr 28, 2011 at 2:53 PM, Raymond Hettinger >>> wrote: On Apr 28, 2011, at 1:27 PM, Holger Kreke

Re: [Python-Dev] CPython optimization: storing reference counters outside of objects

2011-05-24 Thread Maciej Fijalkowski
On Sun, May 22, 2011 at 1:57 AM, Artur Siekielski wrote: > Hi. > The problem with reference counters is that they are very often > incremented/decremented, even for read-only algorithms (like traversal > of a list). It has two drawbacks: > 1. CPU cache lines (64 bytes on X86) containing a beginnin

[Python-Dev] Language summit writeup anyone?

2011-06-20 Thread Maciej Fijalkowski
Hi. Unfortunately I'm missing Europython (and language summit) this year. Did anyone do a writeup on what was discussed? Cheers, fijal ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: htt

Re: [Python-Dev] Is there any fun with benchmarks

2011-06-22 Thread Maciej Fijalkowski
On Wed, Jun 22, 2011 at 3:24 PM, Nick Coghlan wrote: > On Wed, Jun 22, 2011 at 10:47 PM, anatoly techtonik > wrote: >> I wonder if upcoming speed.python.org has any means to validate these >> claims for different Python releases? >> Is there any place where I can upload my two to compare perform

Re: [Python-Dev] making socket.getaddrinfo use cached dns

2011-07-16 Thread Maciej Fijalkowski
On Thu, Jul 7, 2011 at 7:59 PM, Oleg Broytman wrote: > Hello. > >   We are sorry but we cannot help you. This mailing list is to work on > developing Python (adding new features to Python itself and fixing bugs); Well, it seems this post is about adding a new feature isn't it? Cheers, fijal

[Python-Dev] os.tmpfile() problem

2007-08-07 Thread Maciej Fijalkowski
I've got slight problem with os.tmpfile(). What I would like to do is to get the filedesc of tmpfile. First approach: os.tmpfile().fileno() of course does not work out, because fileno() does not keep object alive. The solution is to keep os.tmpfile() result somewhere for an arbitrary amount of ti

[Python-Dev] Segfault

2007-08-20 Thread Maciej Fijalkowski
IMHO this shouldn't segfault: import thread while 1: f = open("/tmp/dupa", "w") thread.start_new_thread(f.close, ()) f.close() while it does on cpython 2.5.1, linux box. May I consider this a bug? ___ Python-Dev mailing list Python-Dev@pyt

Re: [Python-Dev] Segfault

2007-08-27 Thread Maciej Fijalkowski
Honestly, the argument that this code is already gone in 3.0 is not very valid. 2.x version would be probably used for many years. Cheers, fijal ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscr

Re: [Python-Dev] on Python's tests (and making them better)

2008-06-05 Thread Maciej Fijalkowski
On Thu, Jun 5, 2008 at 6:23 PM, Benjamin Peterson <[EMAIL PROTECTED]> wrote: > Hi, > This summer, I am going to be revamping Python's test suite. Major > things I plan to do include > - rewriting regrtest.py to be a simple test driver > - implementing CPython only decorators > - moving skipping dat

[Python-Dev] bug or a feature?

2008-06-10 Thread Maciej Fijalkowski
What do you think about this code: class A: locals()[42] = 98 Seems people rely on it working. Do we consider it part of python language? (Note that you cannot do the same with getattr/setattr which checks if argument is a string) Cheers, fijal ___

Re: [Python-Dev] bug or a feature?

2008-06-10 Thread Maciej Fijalkowski
On Wed, Jun 11, 2008 at 3:36 AM, Scott Dial <[EMAIL PROTECTED]> wrote: > Maciej Fijalkowski wrote: >> >> What do you think about this code: >> >> class A: >> locals()[42] = 98 >> >> Seems people rely on it working. > > I apologize f

Re: [Python-Dev] bug or a feature?

2008-06-11 Thread Maciej Fijalkowski
On Thu, Jun 12, 2008 at 2:32 AM, Terry Reedy <[EMAIL PROTECTED]> wrote: > > "Scott Dial" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > || If non-string keys are not allowed in __dict__, then the AddOns library > | should be changed to add another dict to the object of interest to

Re: [Python-Dev] Opcode frequency

2008-06-19 Thread Maciej Fijalkowski
On Thu, Jun 19, 2008 at 1:03 AM, Raymond Hettinger <[EMAIL PROTECTED]> wrote: >> Maciej Fijalkowski did an opcode analysis for PyPy, >> it also shows the relative frequency of opcodes following a >> specifc one: >> >> http://codespeak.net/svn/user/fijal/opcodes.

Re: [Python-Dev] the explicit self

2008-08-27 Thread Maciej Fijalkowski
You can provide selfless class as a class with special metaclass that overloads __new__ and changes signature of each method. Not sure how good is this, but requires no changes to the language and will work as you want. Cheers, fijal On Wed, Aug 27, 2008 at 8:46 AM, Kilian Klimek <[EMAIL PROTECTE

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

2008-09-19 Thread Maciej Fijalkowski
PyPy offers sandboxing interpreter without compromising language features itself. Here are docs: http://codespeak.net/pypy/dist/pypy/doc/sandbox.html Also, are you aware of directory Lib/test/crashers (in python's svn) which contains some possible ways to segfault cpython? (which can lead to compr

[Python-Dev] What this code should do?

2008-09-19 Thread Maciej Fijalkowski
Hello, I'm a little clueless about exact semantics of following snippets: http://paste.pocoo.org/show/85698/ is this fine? or shall I fill the bug? (the reason to ask is because a) django is relying on this b) pypy implements it differently) cheers, fijal ___

Re: [Python-Dev] What this code should do?

2008-09-19 Thread Maciej Fijalkowski
On Fri, Sep 19, 2008 at 9:30 PM, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote: > On Fri, 19 Sep 2008 18:26:05 +0200, Amaury Forgeot d'Arc > <[EMAIL PROTECTED]> wrote: >> >> Hello Maciej, >> >> Maciej Fijalkowski wrote: >>> >>&

Re: [Python-Dev] Fwd: Removal of GIL through refcounting removal.

2008-11-01 Thread Maciej Fijalkowski
> ... > > We know it is the plan for PyPy to work in this way, and also that > Jython and Ironpython works like that (using the host vm's GC), so it > seems to be somehow agreeable with the python semantics (perhaps not > really with __del__ but they are not really nice anyway). > PyPy has a semi

Re: [Python-Dev] Taint Mode in Python 3.0 RC3

2008-11-28 Thread Maciej Fijalkowski
I get 404 object not found. On Thu, Nov 27, 2008 at 11:57 PM, Nicole King <[EMAIL PROTECTED]> wrote: > Dear All, > > Apologies that web site was not working earlier. I believe that I've now fixed > it. The patch can still be found at > http://www.cats-muvva.net/software/Python-taint-diff-3.0rc3.ta

Re: [Python-Dev] Taint Mode in Python 3.0

2008-12-04 Thread Maciej Fijalkowski
When I try to run this, I get: Fatal Python error: Py_Initialize: can't initialize sys standard streams Traceback (most recent call last): File "/home/fijal/lang/python/Python30/Lib/encodings/__init__.py", line 31, in File "/home/fijal/lang/python/Python30/Lib/codecs.py", line 1060, in Taint

Re: [Python-Dev] Taint Mode in Python 3.0

2008-12-04 Thread Maciej Fijalkowski
Hello, The thing is pypy's taint code is broken. Basically you don't only need to patch all places that return pyobject, but also all places that might modify anything. (All side effects) For example innocently looking call to addition might end up calling arbitrary python code (and have arbitrary

Re: [Python-Dev] Trap SIGSEGV and SIGFPE

2008-12-11 Thread Maciej Fijalkowski
> > If we could calculate how much stack is left we'd have a much more > robust way of doing recursion limits. I suppose this could be done by > reading a byte from each page with a temporary SIGSEGV handler > installed, but I'm not convinced you can't ask the platform directly > somehow. I'd als

Re: [Python-Dev] __del__ and tp_dealloc in the IO lib

2009-01-23 Thread Maciej Fijalkowski
> That would be break so much code that I doubt that, in practice, you can > slip it through within a release. Besides, being able to write simpler > code like "for L in open("foo.txt")" is per-se a good reason *not to* > put file objects in cycles; so you will probably need more than one good > re

Re: [Python-Dev] GIL removal question

2011-08-10 Thread Maciej Fijalkowski
On Wed, Aug 10, 2011 at 1:43 PM, Guido van Rossum wrote: > On Wed, Aug 10, 2011 at 7:32 AM, David Beazley wrote: >> >> On Aug 10, 2011, at 6:15 AM, Nick Coghlan wrote: >> >>> On Wed, Aug 10, 2011 at 9:09 PM, David Beazley wrote: You're forgetting step 5. 5. Put fine-grain locks ar

Re: [Python-Dev] GIL removal question

2011-08-10 Thread Maciej Fijalkowski
On Wed, Aug 10, 2011 at 7:19 PM, Raymond Hettinger wrote: > > On Aug 10, 2011, at 4:15 AM, Nick Coghlan wrote: > > After implementing the aforementioned step 5, you will find that the > performance of everything, including the threaded code, will be quite a bit > worse.  Frankly, this is probably

[Python-Dev] PyPy 1.6 released

2011-08-18 Thread Maciej Fijalkowski
`bug tracker`_, not counting the numerous bugs that were found and reported through other channels than the bug tracker. Cheers, Hakan Ardo, Carl Friedrich Bolz, Laura Creighton, Antonio Cuni, Maciej Fijalkowski, Amaury Forgeot d'Arc, Alex Gaynor, Armin Rigo and the PyPy te

Re: [Python-Dev] Python 3 optimizations continued...

2011-09-02 Thread Maciej Fijalkowski
> > For a comparative real world benchmark I tested Martin von Loewis' > django port (there are not that many meaningful Python 3 real world > benchmarks) and got a speedup of 1.3 (without IIS). This is reasonably > well, US got a speedup of 1.35 on this benchmark. I just checked that > pypy-c-late

Re: [Python-Dev] Python 3 optimizations continued...

2011-09-02 Thread Maciej Fijalkowski
On Fri, Sep 2, 2011 at 9:20 PM, Stefan Behnel wrote: > Maciej Fijalkowski, 02.09.2011 20:42: >>> >>> For a comparative real world benchmark I tested Martin von Loewis' >>> django port (there are not that many meaningful Python 3 real world >>> bench

Re: [Python-Dev] RFC: Add a new builtin strarray type to Python?

2011-10-01 Thread Maciej Fijalkowski
On Sat, Oct 1, 2011 at 5:21 PM, Antoine Pitrou wrote: > On Sat, 1 Oct 2011 22:06:11 +0200 > Victor Stinner wrote: >> >> > I'm writing this email to ask you if this type solves a real issue, or if >> > we can just prove the super-fast str.join(list of str). >> >> Hum, it looks like "What is the mo

Re: [Python-Dev] Python Core Tools

2011-10-02 Thread Maciej Fijalkowski
On Sun, Oct 2, 2011 at 5:02 AM, anatoly techtonik wrote: > Hello, > > I've stumbled upon Dave Beazley's article [1] about trying ancient GIL > removal patch at > http://dabeaz.blogspot.com/2011/08/inside-look-at-gil-removal-patch-of.html > and looking at the output of Python dis module thought tha

Re: [Python-Dev] Python Core Tools

2011-10-02 Thread Maciej Fijalkowski
On Sun, Oct 2, 2011 at 8:05 AM, Maciej Fijalkowski wrote: > On Sun, Oct 2, 2011 at 5:02 AM, anatoly techtonik wrote: >> Hello, >> >> I've stumbled upon Dave Beazley's article [1] about trying ancient GIL >> removal patch at >> http://dabeaz.blogspot.c

Re: [Python-Dev] SimpleHTTPServer slashdot (Was: Python Core Tools)

2011-10-07 Thread Maciej Fijalkowski
On Fri, Oct 7, 2011 at 3:57 PM, anatoly techtonik wrote: > On Sun, Oct 2, 2011 at 3:17 PM, Maciej Fijalkowski wrote: >> On Sun, Oct 2, 2011 at 8:05 AM, Maciej Fijalkowski wrote: >>> On Sun, Oct 2, 2011 at 5:02 AM, anatoly techtonik >>> wrote: >>>> H

[Python-Dev] Disabling cyclic GC in timeit module

2011-10-07 Thread Maciej Fijalkowski
Hi Can we disable by default disabling the cyclic gc in timeit module? Often posts on pypy-dev or on pypy bugs contain usage of timeit module which might change the performance significantly. A good example is json benchmarks - you would rather not disable cyclic GC when running a web app, so enco

Re: [Python-Dev] Disabling cyclic GC in timeit module

2011-10-07 Thread Maciej Fijalkowski
On Fri, Oct 7, 2011 at 11:47 PM, Nick Coghlan wrote: > On Fri, Oct 7, 2011 at 4:50 PM, Maciej Fijalkowski wrote: >> Hi >> >> Can we disable by default disabling the cyclic gc in timeit module? >> Often posts on pypy-dev or on pypy bugs contain usage of timeit modul

Re: [Python-Dev] Disabling cyclic GC in timeit module

2011-10-07 Thread Maciej Fijalkowski
On Sat, Oct 8, 2011 at 1:47 AM, Antoine Pitrou wrote: > On Sat, 8 Oct 2011 00:13:40 +0200 > Maciej Fijalkowski wrote: >> On Fri, Oct 7, 2011 at 11:47 PM, Nick Coghlan wrote: >> > On Fri, Oct 7, 2011 at 4:50 PM, Maciej Fijalkowski >> > wrote: >> >>

Re: [Python-Dev] Disabling cyclic GC in timeit module

2011-10-07 Thread Maciej Fijalkowski
On Sat, Oct 8, 2011 at 2:18 AM, Antoine Pitrou wrote: > >> > >> > In CPython, looking for reference cycles is a parasitic task that >> > interferes with what you are trying to measure. It is not critical in >> > any way, and you can schedule it much less often if it takes too much >> > CPU, withou

Re: [Python-Dev] Bring new features to older python versions

2011-10-08 Thread Maciej Fijalkowski
On Sat, Oct 8, 2011 at 8:35 PM, "Martin v. Löwis" wrote: >> The first one is about licensing. >> What I would be doing is basically copy&  paste pieces of the python >> stdlib modules (including tests) and, where needed, adjust them so >> that they work with older python versions. >> Would this re

[Python-Dev] PyPy 1.7 - widening the sweet spot

2011-11-21 Thread Maciej Fijalkowski
== PyPy 1.7 - widening the sweet spot == We're pleased to announce the 1.7 release of PyPy. As became a habit, this release brings a lot of bugfixes and performance improvements over the 1.6 release. However, unlike the previous relea

Re: [Python-Dev] PyPy 1.7 - widening the sweet spot

2011-11-22 Thread Maciej Fijalkowski
On Tue, Nov 22, 2011 at 3:15 PM, Stefan Behnel wrote: > Giampaolo Rodolà, 22.11.2011 10:21: >> >> 2011/11/21 Terry Reedy: >>> >>> I strongly recommend that where it makes a difference, the pypy python3 >>> project target 3.3. In particular, don't reproduce the buggy narrow-build >>> behavior of 3.

Re: [Python-Dev] PyPy 1.7 - widening the sweet spot

2011-11-24 Thread Maciej Fijalkowski
On Wed, Nov 23, 2011 at 11:13 PM, Philip Jenvey wrote: > > On Nov 22, 2011, at 12:43 PM, Amaury Forgeot d'Arc wrote: > >> 2011/11/22 Philip Jenvey >> One reason to target 3.2 for now is it's not a moving target. There's >> overhead involved in managing modifications to the pure python standard l

Re: [Python-Dev] PEP 380

2011-11-25 Thread Maciej Fijalkowski
On Sat, Nov 26, 2011 at 6:39 AM, Nick Coghlan wrote: > On Sat, Nov 26, 2011 at 8:14 AM, Michael Foord > wrote: >> >> On 24 Nov 2011, at 04:06, Nick Coghlan wrote: >> >>> On Thu, Nov 24, 2011 at 10:28 AM, Guido van Rossum wrote: Mea culpa for not keeping track, but what's the status of PEP 3

Re: [Python-Dev] A new dict for Xmas?

2011-12-17 Thread Maciej Fijalkowski
On Fri, Dec 16, 2011 at 11:32 PM, Terry Reedy wrote: > On 12/16/2011 5:03 AM, Mark Shannon wrote: > >> Of course using __slots__ saves more memory, >> but people don't use them much. > > > Do you think the stdlib should be using __slots__ more? Note that unlike some other more advanced approaches

Re: [Python-Dev] A new dict for Xmas?

2011-12-17 Thread Maciej Fijalkowski
On Sat, Dec 17, 2011 at 2:31 PM, Dirkjan Ochtman wrote: > On Sat, Dec 17, 2011 at 12:53, Maciej Fijalkowski wrote: >> Note that unlike some other more advanced approaches, slots do change >> semantics. There are many cases out there where people would stuff >> arbitrary thi

Re: [Python-Dev] cpython (3.2): don't mention implementation detail

2011-12-20 Thread Maciej Fijalkowski
On Tue, Dec 20, 2011 at 10:51 AM, Antoine Pitrou wrote: > On Mon, 19 Dec 2011 22:42:43 +0100 > benjamin.peterson wrote: >> http://hg.python.org/cpython/rev/d85efd73b0e1 >> changeset:   74088:d85efd73b0e1 >> branch:      3.2 >> parent:      74082:71e5a083f9b1 >> user:        Benjamin Peterson >>

Re: [Python-Dev] cpython (3.2): don't mention implementation detail

2011-12-20 Thread Maciej Fijalkowski
On Tue, Dec 20, 2011 at 12:14 PM, Dirkjan Ochtman wrote: > On Tue, Dec 20, 2011 at 11:08, Antoine Pitrou wrote: >>> If this documentation is to be used by other python implementations, >>> then mentions of performance are outright harmful, since the >>> performance characteristics differ quite dr

Re: [Python-Dev] Anyone still using Python 2.5?

2011-12-22 Thread Maciej Fijalkowski
On Thu, Dec 22, 2011 at 11:56 AM, Antoine Pitrou wrote: > On Thu, 22 Dec 2011 09:44:32 + > Tim Wintle wrote: >> >> 2.5 apps are the speed-critical ones. Our tests showed the performance >> was different enough between 2.5 and 2.6 for me to not update. > > Really? Where's the regression? > > R

Re: [Python-Dev] A new dict for Xmas?

2011-12-22 Thread Maciej Fijalkowski
> - I wonder whether the shared keys could be computed at compile >  time, considering all attribute names that get assigned for >  self. The compiler could list those in the code object, and >  class creation could iterate over all methods (taking base >  classes into account). This is hard, beca

Re: [Python-Dev] Hash collision security issue (now public)

2012-01-04 Thread Maciej Fijalkowski
On Wed, Jan 4, 2012 at 12:02 AM, Bill Janssen wrote: > Christian Heimes wrote: > >> Am 29.12.2011 12:13, schrieb Mark Shannon: >> > The attack relies on being able to predict the hash value for a given >> > string. Randomising the string hash function is quite straightforward. >> > There is no ne

Re: [Python-Dev] Hash collision security issue (now public)

2012-01-05 Thread Maciej Fijalkowski
On Thu, Jan 5, 2012 at 3:39 PM, Antoine Pitrou wrote: > On Thu, 5 Jan 2012 15:26:27 +1100 > Andrew Bennetts wrote: >> >> I don't think that's news either. >> http://mail.python.org/pipermail/python-dev/2003-May/035907.html and >> http://twistedmatrix.com/pipermail/twisted-python/2003-June/004339.

[Python-Dev] Python 3 benchmarks

2012-01-28 Thread Maciej Fijalkowski
Hi Something that's maybe worth mentioning is that the "official" python benchmark suite http://hg.python.org/benchmarks/ has a pretty incomplete set of benchmarks for python 3 compared to say what we run for pypy: https://bitbucket.org/pypy/benchmarks I think a very worthwhile project would be to

[Python-Dev] PyPy 1.8 released

2012-02-10 Thread Maciej Fijalkowski
PyPy 1.8 - business as usual We're pleased to announce the 1.8 release of PyPy. As habitual this release brings a lot of bugfixes, together with performance and memory improvements over the 1.7 release. The main highlight of the release is

Re: [Python-Dev] CPU vs Wall time Profiling

2012-02-21 Thread Maciej Fijalkowski
On Tue, Feb 21, 2012 at 2:00 PM, Sümer Cip wrote: > Hi all, > > Is there a reason behind the fact that the Python profilers work with Wall > time by default? There are OS-dependent ways to get the CPU time of a > thread, and giving that choice to the user _somehow_ ( to use wall vs cpu > time) mig

Re: [Python-Dev] The ultimate question of life, the universe, and everything

2012-02-22 Thread Maciej Fijalkowski
On Wed, Feb 22, 2012 at 9:59 AM, wrote: > What is the hash of "ePjNTUhitHkL"? > > Regards, > Martin > > P.S. It took me roughly 86h to compute 150 strings colliding for the 64-bit > hash function. You should have used pypy, should have been faster. ___

Re: [Python-Dev] The ultimate question of life, the universe, and everything

2012-02-22 Thread Maciej Fijalkowski
On Wed, Feb 22, 2012 at 11:55 AM, "Martin v. Löwis" wrote: > Am 22.02.2012 19:46, schrieb Maciej Fijalkowski: >> On Wed, Feb 22, 2012 at 9:59 AM,   wrote: >>> What is the hash of "ePjNTUhitHkL"? >>> >>> Regards, >>> Martin >>

Re: [Python-Dev] Sandboxing Python

2012-03-03 Thread Maciej Fijalkowski
On Sat, Mar 3, 2012 at 1:37 PM, Victor Stinner wrote: > Hi, > > Le 03/03/2012 20:13, Armin Rigo a écrit : > I challenge anymore to break pysandbox! I would be happy if anyone breaks it because it would make it more stronger. >> >> >> I tried to run the files from Lib/test/crashers and --

Re: [Python-Dev] Sandboxing Python

2012-03-03 Thread Maciej Fijalkowski
On Sat, Mar 3, 2012 at 6:51 PM, Guido van Rossum wrote: > On Sat, Mar 3, 2012 at 6:02 PM, Maciej Fijalkowski wrote: >> On Sat, Mar 3, 2012 at 1:37 PM, Victor Stinner >> wrote: >>> Hi, >>> >>> Le 03/03/2012 20:13, Armin Rigo a écrit : >>> >

Re: [Python-Dev] Defending against stack overflow (was Sandboxing Python)

2012-03-04 Thread Maciej Fijalkowski
On Sun, Mar 4, 2012 at 12:35 PM, "Martin v. Löwis" wrote: >> So, how to handle stack overflows (of the C stack)? >> To prevent a stack overflow an exception must be raised before >> the VM runs out C stack. To do this we need 2 pieces of info: >> a) How much stack we've used >> b) How much stack i

Re: [Python-Dev] Sandboxing Python

2012-03-05 Thread Maciej Fijalkowski
On Mon, Mar 5, 2012 at 1:21 PM, Greg Ewing wrote: > Armin Rigo wrote: >> >> For example, let's assume we can decref >> a object to 0 before its last usage, at address x.  All you need is >> the skills and luck to arrange that the memory at x becomes occupied >> by a new bigger string object alloca

Re: [Python-Dev] Sandboxing Python

2012-03-05 Thread Maciej Fijalkowski
On Mon, Mar 5, 2012 at 3:40 PM, "Martin v. Löwis" wrote: >> I strongly disagree that sandbox is secure because it's "just >> segfaults" and "any code is exploitable that way". Finding segfaults >> in CPython is "easy". As in all you need is armin, a bit of coffee and >> a free day. Reasons for thi

Re: [Python-Dev] Non-string keys in type dict

2012-03-07 Thread Maciej Fijalkowski
On Wed, Mar 7, 2012 at 5:42 PM, Benjamin Peterson wrote: > 2012/3/7 Victor Stinner : >> So my question is: what is the use case of such dict? Why do we still >> support it? > > Probably a side-effect of implementation. > >> Can't we simply raise an error if the dict contains >> non-string keys? >

Re: [Python-Dev] PEP 414 - some numbers from the Django port

2012-03-08 Thread Maciej Fijalkowski
On Wed, Mar 7, 2012 at 2:36 PM, Vinay Sajip wrote: > Armin Ronacher active-4.com> writes: > >> What are you trying to argue?  That the overall Django testsuite does >> not do a lot of string processing, less processing with native strings? >> >> I'm surprised you see a difference at all over the

<    1   2   3   4   >