On Sat, Mar 31, 2012 at 8:27 AM, Lennart Regebro wrote:
> So, how about time.timer()?
That seems like a bad idea; it would be too easy to confuse with (or misspell
as) time.time().
Out of the big synonym list Guido posted, I rather like time.stopwatch() - it
makes it more explicit that the purpo
On 31 Mar 2012, at 07:32, Lennart Regebro wrote:
> On Fri, Mar 30, 2012 at 12:38, Serhiy Storchaka wrote:
>> I don't understand why Python may not include the pytz. The Olson tz
>> database is not part of pytz.
>
> Yes it is.
>
>> Python can depend on a system tz database
>
> That works on Un
Updated NEWS as Terry Reedy recommended.
Thank you, Terry.
On Sat, Mar 31, 2012 at 12:59 AM, Terry Reedy wrote:
> On 3/30/2012 2:31 PM, Andrew Svetlov wrote:
>>
>> Thank you for mentoring.
>>
>> I will fix NEWS if you help me with better text.
>
>
> I believe a succint message would be
>
> Issue
The frozendict builtin type was rejected, but we are going to add
types.MappingProxyType: see issue #14386.
types.MappingProxyType(mydict.copy()) is very close to the frozendict
builtin type.
Victor
Thanks, Victor. :)
Will this mean the new dict subclass for CPython will not expose
dictprox
On Sat, Mar 31, 2012 at 12:28, Michael Foord wrote:
> *However*, doesn't Windows have its own system database?
Yeah, but it sucks.
> The problem is that in order to not include the olsen database, pytz
> would need to be modified to use the system database on Windows.
Quite a lot too, I'd guess
Hi
Has anyone used Cython for developing a module to be used from
postgreSQL/pl/python.
Something that calls back to PostgreSQL internals.
---
Hannu Krosing
PostgreSQL Unlimited Scalability and Performance Consultant
2ndQuadrant Nordic
PG Admin Book: http://www.2ndQuadrant.com/books/
_
Hannu Krosing, 31.03.2012 14:22:
> Has anyone used Cython for developing a module to be used from
> postgreSQL/pl/python.
>
> Something that calls back to PostgreSQL internals.
Note that this is the CPython core developers mailing list, for which your
question is off-topic. Please ask on the cyth
On Sat, 2012-03-31 at 14:41 +0200, Stefan Behnel wrote:
> Hannu Krosing, 31.03.2012 14:22:
> > Has anyone used Cython for developing a module to be used from
> > postgreSQL/pl/python.
> >
> > Something that calls back to PostgreSQL internals.
>
> Note that this is the CPython core developers mail
Hi,
Does anyone object if I submit my patches sxs.patch and errnomodule.patch?
These allow python to work correctly when built with vs2010.
There is also the PCBuild10.patch, but that can wait. I'm sure a number of
people are regularly building python using vs2010 using their own modified
s
Hi there.
Antoine Pitroue requested that this topic (http://bugs.python.org/issue14310)
be discussed by python-dev before moving further.
I'm adding a windows-only api to "share" sockets between processes to _socket
in the canonical way.
Multiprocessing already has code for this (using unsuppo
Hannu Krosing writes:
> Has anyone used Cython for developing a module to be used from
> postgreSQL/pl/python.
>
> Something that calls back to PostgreSQL internals.
Are you aware that PostgreSQL has long provided Python as a language for
writing stored procedures in the database?
http://ww
On Sun, 2012-04-01 at 00:44 +1100, Ben Finney wrote:
> Hannu Krosing writes:
>
> > Has anyone used Cython for developing a module to be used from
> > postgreSQL/pl/python.
> >
> > Something that calls back to PostgreSQL internals.
>
> Are you aware that PostgreSQL has long provided Python as a l
2012/3/31 Kristján Valur Jónsson :
> Hi,
>
> Does anyone object if I submit my patches sxs.patch and errnomodule.patch?
>
> These allow python to work correctly when built with vs2010.
>
>
>
> There is also the PCBuild10.patch, but that can wait. I'm sure a number of
> people are regularly buildin
On Sat, 31 Mar 2012 07:43:28 -0400, Etienne Robillard
wrote:
> Yet I might miss how this "new dict" type could potentially induce a
> RuntimeError unless in python 3.3 a new dict proxy alias is introduced
> to perform invariant operations in non thread-safe code.
Etienne, again: issue 14417 ha
On Thu, Mar 29, 2012 at 1:48 PM, R. David Murray wrote:
> On Thu, 29 Mar 2012 16:31:03 -0400, "R. David Murray"
> wrote:
>> On Thu, 29 Mar 2012 13:09:17 -0700, Guido van Rossum
>> wrote:
>> > My original assessment was that this only affects dicts whose keys
>> > have a user-implemented __hash
On Sat, Mar 31, 2012 at 9:21 PM, Andrew Svetlov
wrote:
> Updated NEWS as Terry Reedy recommended.
> Thank you, Terry.
Thanks to you both :)
Cheers,
Nick.
--
Nick Coghlan | ncogh...@gmail.com | Brisbane, Australia
___
Python-Dev mailing list
P
On Sun, Apr 1, 2012 at 2:09 AM, Guido van Rossum wrote:
> Here's a different puzzle. Has anyone written a demo yet that provokes
> this RuntimeError, without cheating? (Cheating would be to mutate the
> dict from *inside* the __eq__ or __hash__ method.) If you're serious
> about revisiting this, I
Does anyone object if I submit my patches sxs.patch and errnomodule.patch?
These allow python to work correctly when built with vs2010.
Please see my review: "allow to work correctly" is not a good explanation
of what it does, and why it does that. As it is highly counter-intuitive,
it needs at
Can you recommend a similar place for asking the same queston about
ctypes ?
That is using ctypes for calling back to "outer" c application which
embeds the python interpreter.
ISTM that Postgres lists should be the best place for this kind of question.
Alternatively, try python-list or db-sig.
On Sun, 01 Apr 2012 03:03:13 +1000, Nick Coghlan wrote:
> On Sun, Apr 1, 2012 at 2:09 AM, Guido van Rossum wrote:
> > Here's a different puzzle. Has anyone written a demo yet that provokes
> > this RuntimeError, without cheating? (Cheating would be to mutate the
> > dict from *inside* the __eq__
On 3/31/2012 6:28 AM, Michael Foord wrote:
On 31 Mar 2012, at 07:32, Lennart Regebro wrote:
On Fri, Mar 30, 2012 at 12:38, Serhiy
Storchaka wrote:
I don't understand why Python may not include the pytz. The Olson
tz database is not part of pytz.
Yes it is.
Python can depend on a system t
On Sat, Mar 31, 2012 at 10:20 PM, Terry Reedy wrote:
> So I think we should define correct behavior of pytz as use with the latest
> Olson database. Use with an older version would then be a 'bug' subject to
> being fixed. On Windows, we could update as needed with every bugfix
> release. (And gi
Try reducing sys.setcheckinterval().
--Guido van Rossum (sent from Android phone)
On Mar 31, 2012 10:45 AM, "R. David Murray" wrote:
> On Sun, 01 Apr 2012 03:03:13 +1000, Nick Coghlan
> wrote:
> > On Sun, Apr 1, 2012 at 2:09 AM, Guido van Rossum
> wrote:
> > > Here's a different puzzle. Has an
2012/3/31 Guido van Rossum :
> Try reducing sys.setcheckinterval().
setcheckinterval() is a no-op since the New-GIL. sys.setswitchinterval
has superseded it.
--
Regards,
Benjamin
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.or
On 03/31/2012 12:47 AM, Victor Stinner wrote:
Can you go into more detail about QPC()'s issues?
Yes, see the PEP:
http://www.python.org/dev/peps/pep-0418/#windows-queryperformancecounter
FYI, Victor, the PEP is slightly incomplete. Not that this is your
fault--you've done your homework. Bu
On Apr 1, 2012 8:54 AM, "Benjamin Peterson" wrote:
>
> 2012/3/31 Guido van Rossum :
> > Try reducing sys.setcheckinterval().
>
> setcheckinterval() is a no-op since the New-GIL. sys.setswitchinterval
> has superseded it
Ah, that's at least one thing wrong with my initial attempt - I was still
thi
> FYI, Victor, the PEP is slightly incomplete.
Sure. What should be added to the PEP?
> But there's another problem: the TSC frequency actually *does*
> change when SpeedStep kicks in. I know someone who complained bitterly
> about running Half-Life 2 on their shiny new laptop, and when it'd ove
> If we provide a way to check if the monotonic clock is monotonic (or
> not), I agree to drop the flag from time.monotonic(fallback=True) and
> always fallback. I was never a fan of the "truly monotonic clock".
>
> time.clock_info('monotonic')['is_monotonic'] is a good candidate to
> store this in
On Sat, Mar 31, 2012 at 11:10 PM, kristjan.jonsson
wrote:
> diff --git a/Misc/ACKS b/Misc/ACKS
> --- a/Misc/ACKS
> +++ b/Misc/ACKS
> @@ -507,6 +507,7 @@
> Richard Jones
> Irmen de Jong
> Lucas de Jonge
> +Kristján Valur Jónsson
> Jens B. Jorgensen
> John Jorgensen
> Sijin Joseph
*blinks*
T
On Sat, Mar 31, 2012 at 7:37 PM, Victor Stinner
wrote:
>> If we provide a way to check if the monotonic clock is monotonic (or
>> not), I agree to drop the flag from time.monotonic(fallback=True) and
>> always fallback. I was never a fan of the "truly monotonic clock".
>>
>> time.clock_info('monot
30 matches
Mail list logo