Re: [Python-Dev] PEP 405 (built-in virtualenv) status

2012-06-02 Thread Christian Tismer
ly ;-) So please let's abandon the old 'if exists ...' pattern, at least this one time. By the explicit cfg file, the file can clearly say if there is a virtual env or not. Together with removing magic from the .dll, the situation at least for windows would greatly improve. ciao - c

Re: [Python-Dev] PEP 405 (built-in virtualenv) status

2012-06-03 Thread Christian Tismer
s what it needs. Am I somehow blinded, maybe? (yes, you all know that I am, so please be patient with me) -- Chris -- Christian Tismer :^)<mailto:tis...@stackless.com> tismerysoft GmbH : Have a break! Take a ride on Python's Karl-Liebknecht-Str. 12

Re: [Python-Dev] PEP 405 (built-in virtualenv) status

2012-06-04 Thread Christian Tismer
On 6/4/12 4:11 PM, Carl Meyer wrote: Hello Christian, On 06/03/2012 03:56 PM, Éric Araujo wrote: Le 02/06/2012 12:59, Christian Tismer a écrit : One urgent question: will this feature be backported to Python 2.7? Features are never backported to the stable versions. virtualenv still exists

[Python-Dev] VS 2012 Express will support desktop apps

2012-06-09 Thread Christian Heimes
-desktop.aspx 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 362: 4th edition

2012-06-15 Thread Christian Heimes
ts for builtin methods in a dict in each PyInterpreterState and use the qualname to reference the signature object. This ensures full isolation. Christian ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/py

Re: [Python-Dev] PEP 362: 4th edition

2012-06-15 Thread Christian Heimes
can't add a mutable attribute to builtin functions and types. It breaks the isolation between subinterpreters. Christian ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http:/

[Python-Dev] Raw string syntax inconsistency

2012-06-17 Thread Christian Heimes
ur"", br"", rb"" syntax error: ru"" Python 2.7: works: r"", ur"", br"" syntax error: ru"", rb"" The ru"" notation isn't necessary for Python 2 compatibility but it's still an inco

Re: [Python-Dev] Raw string syntax inconsistency

2012-06-20 Thread Christian Heimes
Am 18.06.2012 17:12, schrieb Guido van Rossum: > Ok, banning ru"..." and ur"..." altogether is fine too (assuming it's > fine with the originators of the PEP). It's gone for good. http://hg.python.org/cpython/rev/8e47e9af826e (My first push for a very long time. Man, that feels good!) ___

Re: [Python-Dev] Add os.path.resolve to simplify the use of os.readlink

2012-06-21 Thread Christian Heimes
t points to another relative symlink in a different directory that points to a file in a third directry? 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] Add os.path.resolve to simplify the use of os.readlink

2012-06-21 Thread Christian Heimes
duce the burden for developers. PEP mentions the a similar idea at http://www.python.org/dev/peps/pep-3151/#implementation but this was never implemented. Christian ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/lis

Re: [Python-Dev] Add os.path.resolve to simplify the use of os.readlink

2012-06-21 Thread Christian Heimes
Am 21.06.2012 14:55, schrieb Nick Coghlan: > On Thu, Jun 21, 2012 at 9:26 PM, Christian Heimes wrote: >> BTW Is there a better way than raise OSError(errno.ELOOP, >> os.strerror(errno.ELOOP), filename) to raise a correct OSError with >> errno, errno message and filenam

Re: [Python-Dev] A Desperate Plea For Introspection (aka: BDFAP Needed)

2012-06-22 Thread Christian Heimes
for builtin functions should be handled by a new PEP. We need a way to extract or define the signatures (perhaps parse the C code and parse PyArg_* signatures) and a secure way to store the signature (perhaps implement the signature class in C?). That's a LOT of

Re: [Python-Dev] A Desperate Plea For Introspection (aka: BDFAP Needed)

2012-06-22 Thread Christian Heimes
: * you get a sensible error message when you mistype the name of the attribute. hasattr(signature, 'return_annotatoin') is clearly an error, hard to notice with the naked eye and passes silently. * modern Python IDEs have code completion. "signature.re is not signature.em" sa

Re: [Python-Dev] A Desperate Plea For Introspection (aka: BDFAP Needed)

2012-06-22 Thread Christian Heimes
Am 22.06.2012 21:32, schrieb Larry Hastings: > > On 06/22/2012 12:21 PM, Christian Heimes wrote: >> The PEP is already complex enough and went to several incarnations. It >> was a wise decision to focus on the features that could be implemented >> before the first bet

Re: [Python-Dev] 3.3 release plans

2012-06-23 Thread Christian Heimes
se the _hashlib module isn't available without openssl and a new module for a single function is kinda overkill. Christian ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http:

Re: [Python-Dev] Restricted API versioning

2012-06-23 Thread Christian Heimes
Am 23.06.2012 23:41, schrieb Antoine Pitrou: > Perhaps something more user-friendly than the hexversion? IMHO 0x0303 for 3.0.0 is user-friendly enough. A macro like PY_VERSION(3, 0, 0) could be added, too. Christian ___ Python-Dev mailing l

Re: [Python-Dev] Restricted API versioning

2012-06-23 Thread Christian Heimes
Am 24.06.2012 01:11, schrieb Larry Hastings: > On 06/23/2012 03:08 PM, "Martin v. Löwis" wrote: >> On 23.06.2012 23:41, Antoine Pitrou wrote: >>> Perhaps something more user-friendly than the hexversion? >> Please propose something. I think the hexversion *is* user-friendly, > > +1 to the idea, an

Re: [Python-Dev] Restricted API versioning

2012-06-23 Thread Christian Heimes
pilers, linkers, dynamic library loaders and calling conventions are limited and don't support fancy stuff like OOP. Christian ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://m

Re: [Python-Dev] os.path.exists() / os.path.isdir() inconsistency when dealing with gvfs directories

2012-06-27 Thread Christian Heimes
home directories have either 0700 or 0750. A user needs the 'x' bit enter or traverse through a directory (mnemonic: exec -> enter), the 'r' bit to read the content of a directory (e.g. listdir) and the 'w' bit to write (create or delete files unless the sticky bit

Re: [Python-Dev] PEP 0424: A method for exposing a length hint

2012-07-15 Thread Christian Heimes
can't be materialized as finite containers. +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 0424: A method for exposing a length hint

2012-07-15 Thread Christian Heimes
alue for infinite. > a) Don't want to return any value or "don't know": return NotImplemented +1 > b) For infinite iterators: raise an OverflowError -1, I'm for -1. ;) I'm not a fan of using exception for valid and correct return values. > c) All other

Re: [Python-Dev] datetime nanosecond support

2012-07-25 Thread Christian Heimes
I [2] instead of UTC as TAI doesn't have leap seconds. DJB's daemontools specifies a tai64n log format [3] that is similar to your idea. Christian [1] http://en.wikipedia.org/wiki/Julian_Day_Number [2] http://en.wikipedia.org/wiki/International_Atomic_Time [3] ht

Re: [Python-Dev] datetime nanosecond support

2012-07-25 Thread Christian Heimes
to pico seconds resolution (57bits) in the future. 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] datetime nanosecond support

2012-07-25 Thread Christian Heimes
Am 25.07.2012 14:11, schrieb Nick Coghlan: > 1. For the reasons presented, I think it's worth attempting to define > a common API that is based on datetime, but is tailored towards high > precision time operations (at least using a different internal > representation, perhaps supporting TAI). This

Re: [Python-Dev] datetime nanosecond support

2012-07-26 Thread Christian Heimes
27;s a major PITB! > TBH I'm more worried about years >= 1. :-) Why life in the past? The future is ... err the future! :) Christian ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev

Re: [Python-Dev] Should urlencode() sort the query parameters (if they come from a dict)?

2012-08-18 Thread Christian Heimes
arameter order to group parameters. Therefore I propose that the query string is only sorted when the query is exactly a dict and not some subclass or class that has an items() method. if type(query) is dict: query = sorted(query.items())

Re: [Python-Dev] Python 2.7: only Visual Studio 2008?

2012-08-21 Thread Christian Heimes
ension compiled with VS 2010 won't be able to use the PyErr_SetFromErrno*() function correctly. That's much harder to debug than a FILE pointer mismatch because it usually doesn't cause a segfault. Christian ___ Python-Dev mailing list P

[Python-Dev] Coverity scan

2012-09-03 Thread Christian Heimes
also be placed on the Python infrastructure and I don't have access. Secondly somebody has to contact Coverity to apply for an upload account. I tried my user account without success. It be nice if we get Coverity scans up and running this week to check the upcoming release candidate fo

Re: [Python-Dev] Coverity scan

2012-09-03 Thread Christian Heimes
Am 03.09.2012 16:27, schrieb Antoine Pitrou: > You could ask infrastruct...@python.org for an account on an existing > machine (dinsdale perhaps, it looks much less loaded now that some > services have been migrated). Thanks Antoine! I've contacted the infrastructure te

Re: [Python-Dev] Coverity scan

2012-09-05 Thread Christian Heimes
Am 03.09.2012 15:59, schrieb Christian Heimes: > It be nice if we get Coverity scans up and running this week to check > the upcoming release candidate for issues. Updates: - Noah has set up a VM for me on the PSF infrastructure. I've installed the Coverity tools, build dependencie

Re: [Python-Dev] Coverity scan

2012-09-05 Thread Christian Heimes
Am 05.09.2012 14:45, schrieb Brett Cannon: > I have not for no other reason than I had not thought about it. Whatever, I wasn't even sure if Stefan has contacted you or asked for a account in a public message. He might have proclaimed his wish in a private mail. C

Re: [Python-Dev] Coverity scan

2012-09-05 Thread Christian Heimes
Am 05.09.2012 14:43, schrieb Christian Heimes: > I try to get everything in place by tomorrow so we have some time to > check for bugs before the next RC is deployed. The people at Coverity are even faster than I hoped. I'm now in the possession of the Project password which mean I can

Re: [Python-Dev] Coverity scan

2012-09-05 Thread Christian Heimes
Am 05.09.2012 18:56, schrieb Brett Cannon: > And a thanks to Christian and Stefan for picking this up and running > with it. I have not been the best keeper of this stuff as of late, but > now that Christian, Stefan, and I all have admin access to the data we > can spread the load so

Re: [Python-Dev] Coverity scan

2012-09-07 Thread Christian Heimes
sue and set the Action to "Claimed, being worked on". In case you got curious about Coverity I've created a screenshot for you http://imm.io/Duel . Christian ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/

Re: [Python-Dev] Python 2.7: only Visual Studio 2008?

2012-09-07 Thread Christian Heimes
x27;t introduce three or more new methods. Can we still implement the feature for 3.3.0 or is it too late? > Anything else that you are aware of? AFAIK each CRT has its own thread local storage. But that's not an issue for us as we already have an API for TLS access. Christian _

Re: [Python-Dev] Coverity scan

2012-09-08 Thread Christian Heimes
ed from hg and a build is triggere when changes are detected. 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] cpython (2.7): Issue #15591 and Issue #11715: silence output of setup.py when make is run with

2012-09-08 Thread Christian Heimes
Am 08.09.2012 16:52, schrieb Antoine Pitrou: > On Fri, 7 Sep 2012 02:27:25 +0200 (CEST) > christian.heimes wrote: >> http://hg.python.org/cpython/rev/8cd6acffbcb9 >> changeset: 78871:8cd6acffbcb9 >> branch: 2.7 >> parent: 78867:2587aeb616b6 >> us

Re: [Python-Dev] cpython: Fixed out-of-bounce write to rawmode buffer. The fixed size buffer wasn't

2012-09-10 Thread Christian Heimes
Am 10.09.2012 03:50, schrieb christian.heimes: > http://hg.python.org/cpython/rev/85cb90f79cbf > changeset: 78946:85cb90f79cbf > user:Christian Heimes > date:Mon Sep 10 03:50:48 2012 +0200 > summary: > Fixed out-of-bounce write to rawmode buffer. The fixed

[Python-Dev] issues found by Coverity

2012-09-11 Thread Christian Heimes
a list of commits with just regressions so you can cherry pick them? Or do you want to pull all memory leak fixes? Christian ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.

Re: [Python-Dev] Release of astoptimizer 0.3

2012-09-11 Thread Christian Heimes
eep up the good work! 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-checkins] cpython (merge 3.2 -> default): Fix out of bounds read in long_new() for empty bytes with an explicit base.

2012-09-12 Thread Christian Heimes
Am 12.09.2012 16:22, schrieb Stefan Krah: > This is a false positive: > > > > Assumption: string ==

Re: [Python-Dev] [Python-checkins] cpython (merge 3.2 -> default): Closed reference leak of variable 'k' in function ste_new which wasn't decrefed

2012-09-12 Thread Christian Heimes
Am 12.09.2012 17:42, schrieb Stefan Krah: > I think 'k' is owned by the PySTEntryObject after it is assigned here: > > ste->ste_id = k; > > > So ste_dealloc() will call Py_XDECREF(k) a second time. You are right. I missed that ste steals the reference to k and does its own cleanup. I've fixed t

Re: [Python-Dev] [Python-checkins] cpython (merge 3.2 -> default): Fix out of bounds read in long_new() for empty bytes with an explicit base.

2012-09-12 Thread Christian Heimes
Am 12.09.2012 18:14, schrieb Terry Reedy: > On 9/12/2012 10:22 AM, Stefan Krah wrote: >> christian.heimes wrote: >>> Fix out of bounds read in long_new() for empty bytes with an explicit >>> base. >>> int(b'', somebase) calls PyLong_FromString() with char* of length 1 > > I don't know what happen

Re: [Python-Dev] Better HTTP 1.1 support in http.server?

2012-09-24 Thread Christian Heimes
Am 24.09.2012 17:27, schrieb Antoine Pitrou: > > Hello, > > I was wondering if it would be worth providing better HTTP 1.1 support > in http.server. The way I envision it, there would be a separate > HTTP11RequestHandler which would provide: > > - a smart wfile with automatic chunk encoding (whi

Re: [Python-Dev] Stdlib and timezones, again

2012-09-30 Thread Christian Heimes
Am 30.09.2012 14:47, schrieb Lennart Regebro: > What do you say? Is this a path worth pursuing? +1 I'm eager to read your PEP! ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mai

Re: [Python-Dev] Stdlib and timezones, again

2012-09-30 Thread Christian Heimes
ly if an update tz db is installed } PYTHON_TZDB = "integrated" or "system" or "update" With this setup users get the full benefit of system updates but can use the integrated or update database if they don't like the operating system's data. 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] [RELEASED] Python 3.3.0

2012-10-01 Thread Christian Heimes
Am 30.09.2012 14:01, schrieb Oleg Broytman: >Many kudos to the team and to all contributors! > >Linux Weekly News regularly publishes tables "Who done what in Linux > Kernel": http://lwn.net/Articles/507986/ > http://lwn.net/SubscriberLink/517564/bec11e6ace6ad699/ > >It would be inter

Re: [Python-Dev] Proposed schedule for Python 3.4

2012-10-04 Thread Christian Heimes
ykeccak/ is almost ready and just needs some cleanup and more tests. Once it's done I'll remove the Python 3.2 and 2.x compatibility code and integrate it into 3.4. Christian ___ Python-Dev mailing list Python-Dev@python.org http://mail.

Re: [Python-Dev] Proposed schedule for Python 3.4

2012-10-04 Thread Christian Heimes
Am 04.10.2012 12:49, schrieb Dirkjan Ochtman: > On Thu, Oct 4, 2012 at 12:32 PM, Christian Heimes > wrote: >> Two days ago NIST announced the SHA-3 contest winner. My wrapper of >> keccak https://bitbucket.org/tiran/pykeccak/ is almost ready and just >> needs some clea

Re: [Python-Dev] cpython: Force 32bit Keccak implementation on SPARC. It look like the Solaris CC

2012-10-14 Thread Christian Heimes
Am 14.10.2012 12:36, schrieb Antoine Pitrou: > I think SPARC (the architecture) disallows unaligned accesses to > memory. I don't think it is specific to the Solaris CC compiler. I've updated the comment accordingly. Unaligned access is just used by the opt64 implementation of Keccak. opt32 is mor

Re: [Python-Dev] [Python-checkins] cpython (merge 3.3 -> default): Merge issue #15936: Add link from os.urandom to random.SystemRandom

2012-10-16 Thread Christian Heimes
Am 16.10.2012 12:43, schrieb Larry Hastings: > On 10/16/2012 11:23 AM, Hynek Schlawack wrote: >> Am 16.10.2012 um 12:15 schrieb andrew.svetlov : >> >>> + For easy to use interface to system randomness please see >>> + :class:`random.SystemRandom`. >> Is it just my non-native speaker ears, or sh

Re: [Python-Dev] return type of __complex__

2012-10-19 Thread Christian Heimes
a Python complex number to a C Py_complex structure. In order to fix the bug the code in PyComplex_AsCComplex() must be altered to support float as return type from __complex__(). That's a major change. Christian ___ Python-Dev mailing lis

Re: [Python-Dev] cpython: Build the _sha3 module with VS 2008.

2012-10-21 Thread Christian Heimes
Am 21.10.2012 17:23, schrieb antoine.pitrou: > http://hg.python.org/cpython/rev/ce9c9cbd1b11 > changeset: 79875:ce9c9cbd1b11 > user:Antoine Pitrou > date:Sun Oct 21 17:21:04 2012 +0200 > summary: > Build the _sha3 module with VS 2008. For VS 2010 I decided against this approac

Re: [Python-Dev] cpython: Build the _sha3 module with VS 2008.

2012-10-21 Thread Christian Heimes
Am 21.10.2012 20:53, schrieb Antoine Pitrou: > I don't know. If it breaks VS 2010 then it should be reverted. On the > other hand I'd like to continue building Python under Windows without > needing to install yet another MSVC version. I backed out your commit and committed a _sha3.vcproj file ins

Re: [Python-Dev] cpython: Build the _sha3 module with VS 2008.

2012-10-21 Thread Christian Heimes
to increase the main python.dll from 2.7 MB to almost 3 MB. We may have to ship our own SHA-3 code for quite a while. OpenSSL hasn't even began to include SHA-3. The bugs.python.org entry about Keccak is still the number one hit of a Google search about "openssl keccak". Chri

Re: [Python-Dev] Segmentaion fault with wrongly set PYTHONPATH on Windows

2012-10-22 Thread Christian Heimes
Am 22.10.2012 15:31, schrieb anatoly techtonik: > Could anybody reopen http://bugs.python.org/issue8766 ? I can't. > Reproducible 100% with Python 3.2 and 3.3 (3.1 didn't test). > >> set PYTHONHOME=C:\ >> python The segfault isn't caused by faulty code but by a call to abort() in Py_FatalError().

Re: [Python-Dev] Segmentaion fault with wrongly set PYTHONPATH on Windows

2012-10-22 Thread Christian Heimes
Am 22.10.2012 16:18, schrieb Barry Warsaw: > This is caused by the VMware player installer playing games with $PYTHONHOME > to try to point it at its own *Python 2* runtime, and trying to call > lsb_release (a Python 3 script on Ubuntu 12.10) while $PYTHONHOME is pointing > at the wrong runtime. >

Re: [Python-Dev] Segmentaion fault with wrongly set PYTHONPATH on Windows

2012-10-22 Thread Christian Heimes
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Am 22.10.2012 16:43, schrieb Barry Warsaw: > On Oct 22, 2012, at 04:30 PM, Christian Heimes wrote: > >> I think it's a bug in lsb_release, too. It should use the -E >> option in its shebang: > > Indeed, thanks! I&#x

Re: [Python-Dev] Segmentaion fault with wrongly set PYTHONPATH on Windows

2012-10-22 Thread Christian Heimes
th forcedly shut down the process immediately. 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] Setting project home path the best way

2012-11-11 Thread Christian Tismer
Hi friends, I have a project that has its root somewhere on my machine. This project has many folders and contains quite some modules. There is a common root of the module tree, and I want to use - either absolute imports - relative imports with '.' Problem: - I want to run any module inside

[Python-Dev] Relatwd: py3 import strategy (was: Setting project home path the best way(

2012-11-11 Thread Christian Tismer
is another reason why I dislike the absence of __init__. : Rhere is no longer an indicator that pretty clearly defines the root of my module heirarchy. Cheers, hoping for enlightment - chris Sent from my Ei4Steve On Nov 11, 2012, at 21:31, Christian Tismer wrote: > Hi friends, > >

Re: [Python-Dev] Relatwd: py3 import strategy

2012-11-11 Thread Christian Tismer
Hi Eric, On 11.11.12 22:45, Eric Snow wrote: On Sun, Nov 11, 2012 at 1:53 PM, Christian Tismer mailto:tis...@stackless.com>> wrote: Once again on this: With the introduction of module folders without __init__, it has become even harder to deduce a sensible projec

Re: [Python-Dev] Setting project home path the best way SOLVED

2012-11-12 Thread Christian Tismer
s great when people help me to leave a dead-lock in my brain :-) cheers - Chris -- Christian Tismer :^) <mailto:tis...@stackless.com> Software Consulting : Have a break! Take a ride on Python's Karl-Liebknecht-Str. 121 :*Starship* http://starship.p

Re: [Python-Dev] Setting project home path the best way

2012-11-15 Thread Christian Tismer
on looks. > > K > > >> -Original Message- >> From: Python-Dev [mailto:python-dev- >> bounces+kristjan=ccpgames@python.org] On Behalf Of Christian Tismer >> Sent: 11. nóvember 2012 20:31 >> To: python-dev@python.org >> Subject: [Python-Dev] Set

[Python-Dev] Generally boared by installation (Re: Setting project home path the best way)

2012-11-15 Thread Christian Tismer
ng > up the hierarchy and finding the proper root. > site.py is there to merely import sitecustomize.py, in case a site.py is not > found in all the default places python looks. > > K > > >> -Original Message- >> From: Python-Dev [mailto:python-dev- >>

Re: [Python-Dev] Setting project home path the best way

2012-11-16 Thread Christian Tismer
having __main__.py as python scripts? Daniel Holth On Nov 15, 2012, at 4:43 PM, Christian Tismer wrote: Hi Kristjan, does that mean that your scheme simply works, without any config step necessary after I did my checkout? This would in fact be an interesting alternative to Python

Re: [Python-Dev] Generally boared by installation (Re: Setting project home path the best way)

2012-11-20 Thread Christian Tismer
o reference it? Maybe there could be some auxiliary info page with proper keywords that collects links to relevant discussions like this. Do we have such a thing already? ciao - chris -- Christian Tismer :^) <mailto:tis...@stackless.com> Software Consulting : Have a bre

Re: [Python-Dev] More compact dictionaries with faster iteration

2012-12-09 Thread Christian Heimes
on modern CPUs with lots of L1 and L2 cache and in an average case scenario. A worst case scenario with lots of collisions might be measurable slower for large dicts and small CPU cache. But this is pure speculation and my guts could be terrible wrong. :) I'm +1

Re: [Python-Dev] More compact dictionaries with faster iteration

2012-12-10 Thread Christian Heimes
g to donate a couple of ARM boards to Snakebite. I'm thinking of Raspberry Pi (ARMv6), Pandaboard (ARMv7 Cortex-A9) and similar. Christian ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe

Re: [Python-Dev] Draft PEP for time zone support.

2012-12-12 Thread Christian Heimes
Am 12.12.2012 01:58, schrieb Nick Coghlan: > Ick, why a new module? Why not just add this directly to datetime? (It > doesn't need to be provided by the C accelerator, it can go straight in > the pure Python part). +1 for something like datetime.timezone How well does hg handle files renames? The

Re: [Python-Dev] Draft PEP for time zone support.

2012-12-12 Thread Christian Tismer
the exception to be raised, or a callable to handle this case? Sloppy coding can be dangerous. So maybe the warning module could be helpful as well: If None is passed and no explicit flag/exception/callable given, bother the user with a warning message ;-) cheers - chris -- Christian Tismer

Re: [Python-Dev] Draft PEP for time zone support.

2012-12-13 Thread Christian Heimes
functions as all other third-party PyPI > packages. +1 This PEP does fine without any auto-updatefeature. Please let Lennart concentrate on the task at hand. If an auto-update system is still wanted, it can and should be designed by somebody else as a separate PEP. IMHO it'

Re: [Python-Dev] Draft PEP for time zone support.

2012-12-14 Thread Christian Heimes
should it be released? One other thing, the zoneinfo database should be compatible with zipfile distributions. The module should be able to load the files from a stdlib zipfile. The feature is important for freeze, py2exe and py2app. Christian ___ Python

[Python-Dev] PEPs in progress

2013-01-01 Thread Christian Heimes
t facilities to the standard library. Regards, 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] PEPs in progress

2013-01-02 Thread Christian Heimes
Am 02.01.2013 10:49, schrieb Antoine Pitrou: > Le Wed, 2 Jan 2013 09:18:17 +0100, > Dirkjan Ochtman a écrit : >> On Wed, Jan 2, 2013 at 7:14 AM, Christian Heimes >> wrote: >>> The second PEP addresses key derivation functions for secure >>> password hashi

Re: [Python-Dev] PEPs in progress

2013-01-02 Thread Christian Heimes
Am 02.01.2013 11:11, schrieb Antoine Pitrou: >> PKCS #1 support should be implemented on top of OpenSSL or NaCl. I'm >> planing to use OpenSSL as primary implementation and additional code >> as fallback implementation of PBKDF2-HMAC-SHA-1, PBKDF2-HMAC-SHA-256 >> and PBKDF2-HMAC-SHA-512. > > Does

Re: [Python-Dev] Why no venv in existing directory?

2013-01-06 Thread Christian Tismer
Minor correction: On 06.01.13 19:10, Christian Tismer wrote: Yes, you can do the upgrade, but there are a few flaws which keep me from using this: It is pretty common to use virtualenv inside a mercurial checkout. With venv, installation with python3 -m venv my-repos complains that the

Re: [Python-Dev] Why no venv in existing directory?

2013-01-06 Thread Christian Tismer
for this: http://bugs.python.org/issue15776 Stefan On 23.07.2012, at 09:09, Stefan H. Holek wrote: The feature certainly is on *my* wish-list but I might be alone here. ;-) -- Christian Tismer :^) <mailto:tis...@stackless.com> Software Consulting : Have a break! Take a

Re: [Python-Dev] fork or exec?

2013-01-10 Thread Christian Heimes
Am 10.01.2013 11:48, schrieb Antoine Pitrou: > Having an official afterfork facility would still help. I currently > rely on multiprocessing.util.register_after_fork(), even though it's an > undocumented API (and, of course, it works only for those child > processes launched by multiprocessing, not

Re: [Python-Dev] Daily reference leaks (aef7db0d3893): sum=287

2013-01-11 Thread Christian Heimes
Am 11.01.2013 07:09, schrieb Nick Coghlan: > On Fri, Jan 11, 2013 at 2:57 PM, wrote: >> results for aef7db0d3893 on branch "default" >> >> >> test_dbm leaked [2, 0, 0] references, sum=2 >> test_dbm leaked [2, 2, 1] memory blocks, sum=5 > > Hmm, I'm st

Re: [Python-Dev] Daily reference leaks (aef7db0d3893): sum=287

2013-01-11 Thread Christian Heimes
Am 11.01.2013 18:19, schrieb Andrea Griffini: > On Fri, Jan 11, 2013 at 5:08 PM, Christian Heimes > wrote: >> It has more issues. Coverity has sent me some complains, see attachment. > > The second complaint seems a false positive; if self->extra is null > then

Re: [Python-Dev] cpython (3.2): Issue #16335: Fix integer overflow in unicode-escape decoder.

2013-01-21 Thread Christian Heimes
Am 21.01.2013 10:46, schrieb serhiy.storchaka: > http://hg.python.org/cpython/rev/7625866f8127 > changeset: 81622:7625866f8127 > branch: 3.2 > parent: 81610:260a9afd999a > user:Serhiy Storchaka > date:Mon Jan 21 11:38:00 2013 +0200 > summary: > Issue #16335: Fix integ

Re: [Python-Dev] Usage of += on strings in loops in stdlib

2013-02-12 Thread Christian Heimes
ation of bound method objects. If speed is of the essence, code can cache the method object locally: strio = io.StringIO() write = strio.write for element in elements: write(element) result = strio.getvalue() Christian ___ Python-Dev mailing list Python-

[Python-Dev] efficient string concatenation (yep, from 2004)

2013-02-12 Thread Christian Tismer
ed all over the place and became a very common pattern since introduced. /How ironic that a foreseen problem occurs _now_, and _there_ :-)// / cheers -- chris (*) http://pypy.readthedocs.org/en/latest/cpython_differences.html http://pypy.org/compat.html http://pypy.org/performance.html -- Chr

Re: [Python-Dev] Usage of += on strings in loops in stdlib

2013-02-12 Thread Christian Tismer
thon": There are obviously good things, but "obvious" is the finest liar. -- Christian Tismer :^) <mailto:tis...@stackless.com> Software Consulting : Have a break! Take a ride on Python's Karl-Liebknecht-Str. 121 :*Starship* http://star

Re: [Python-Dev] Usage of += on strings in loops in stdlib

2013-02-12 Thread Christian Tismer
ct was, if any at all. Would ropes be an answer (and a simple way to cope with string mutation patterns) as an alternative implementation, and therefore still justify the usage of that pattern? -- Christian Tismer :^) <mailto:tis...@stackless.com> Software Consulting

Re: [Python-Dev] efficient string concatenation (yep, from 2004)

2013-02-13 Thread Christian Tismer
en traps in larger code bases, documentation is needed that clearly gives a warning saying "don't do that", like CS students learn for most other languages. cheers - chris -- Christian Tismer :^) <mailto:tis...@stackless.com> Software Consulting

Re: [Python-Dev] efficient string concatenation (yep, from 2004)

2013-02-13 Thread Christian Tismer
On 13.02.13 13:10, Steven D'Aprano wrote: On 13/02/13 10:53, Christian Tismer wrote: Hi friends, _efficient string concatenation_ has been a topic in 2004. Armin Rigo proposed a patch with the name of the subject, more precisely: /[Patches] [ python-Patches-980695 ] efficient s

Re: [Python-Dev] Usage of += on strings in loops in stdlib

2013-02-13 Thread Christian Tismer
is more than 3 and some of them are literal strings. Fixed: x = ('%s' * len(abcd)) % abcd Which becomes in the new formatting style x = ('{}' * len(abcd)).format(*abcd) hmm, hmm, not soo nice -- Christian Tismer :^) <mailto:tis...@stackless.

Re: [Python-Dev] Usage of += on strings in loops in stdlib

2013-02-13 Thread Christian Tismer
es, it's jitted. How about the .format() style: Is that jitted as well? In order to get people to prefer .format over __mod__, it would be nice if PyPy made this actually _faster_ :-) -- Christian Tismer :^) <mailto:tis...@stackless.com> Software Consulting :

Re: [Python-Dev] efficient string concatenation (yep, from 2004)

2013-02-13 Thread Christian Tismer
Hey Nick, On 13.02.13 15:44, Nick Coghlan wrote: On Wed, Feb 13, 2013 at 10:06 PM, Christian Tismer wrote: To avoid such hidden traps in larger code bases, documentation is needed that clearly gives a warning saying "don't do that", like CS students learn for most other langu

Re: [Python-Dev] Usage of += on strings in loops in stdlib

2013-02-13 Thread Christian Tismer
reader not to use in-place add when it is not optimized. If += is anyway a bit slower than other ways, forget it. I would then maybe add a commend somewhere that says "avoiding '+=' because it is not reliable" or something. cheers - chris -- Christian Tismer :^) &l

Re: [Python-Dev] efficient string concatenation (yep, from 2004)

2013-02-13 Thread Christian Tismer
Hi Lennart, Sent from my Ei4Steve On Feb 13, 2013, at 8:42, Lennart Regebro wrote: >> Something is needed - a patch for PyPy or for the documentation I guess. > > Not arguing that it wouldn't be good, but I disagree that it is needed. > > This is only an issue when you, as in your proof, have

Re: [Python-Dev] efficient string concatenation (yep, from 2004)

2013-02-13 Thread Christian Tismer
7;m shutting up, intentionally.) -- Christian Tismer :^) <mailto:tis...@stackless.com> Software Consulting : Have a break! Take a ride on Python's Karl-Liebknecht-Str. 121 :*Starship* http://starship.python.net/ 14482 Potsdam: PGP key -> http

Re: [Python-Dev] The other Py2.4 issue

2004-12-11 Thread Christian Tismer
eded is a simple but secure notification method. Probably I need one windows machine which is always online. ciao - chris -- Christian Tismer :^) <mailto:[EMAIL PROTECTED]> tismerysoft GmbH : Have a break! Take a ride on Python's Johannes-Niemeyer-

[Python-Dev] Ann: PyPy Sprint before PYCON 2005 in Washington

2005-02-14 Thread Christian Tismer
if applicable. Registered Participants --- all days: Jacob Hallén Armin Rigo Holger Krekel Samuele Pedroni Anders Chrigström Bea Düring Christian Tismer Richard Emslie -- Christian Tismer :^) <mailto:[EMAIL

Re: [Python-Dev] Python 3000 Process

2006-03-19 Thread Christian Tismer
Guido van Rossum wrote: ... > Please don't respond with answers to these questions -- each of them > is worth several threads. Instead, ponder them, and respond with a +1 > or -1 on the creation of the python-3000 mailing list. We'll start > discussing the issues there -- or here, if the general s

Re: [Python-Dev] Adding Python-Native Threads

2005-06-30 Thread Christian Tismer
ke some background monitoring or other stuff which is not really involved in you control/data flow. ciao - chris -- Christian Tismer :^) <mailto:[EMAIL PROTECTED]> tismerysoft GmbH : Have a break! Take a ride on Python's Johannes-Niemeyer-Weg 9A

Re: [Python-Dev] Alternative name for str.partition()

2005-09-21 Thread Christian Stork
I know I'm coming too late to this discussion, but just for completeness sake let me mention that the OCaml standard List module uses 'partition' already in the sense that most mathematically educated people would understand it: val partition : ('a -> bool) -> 'a list -> 'a list * 'a list

Re: [Python-Dev] Conditional Expression Resolution

2005-09-29 Thread Christian Tismer
like a bot. Please shut down and get adjusted. Guidos don't say that. :-) -- Christian Tismer :^) <mailto:[EMAIL PROTECTED]> tismerysoft GmbH : Have a break! Take a ride on Python's Johannes-Niemeyer-Weg 9A :*Starship* http://starship.python.ne

<    7   8   9   10   11   12   13   >