Re: [Python-Dev] UTF8 in the PEP branch
Facundo Batista wrote: > In the PEP text (example: > > http://svn.python.org/view/peps/trunk/pep-0002.txt?rev=56077&view=auto > > ), it says "Last-Modified: $Date$". That $Date$ is being translated in > the checkout or update by subversion. Maybe there is a $C-locale-Date$ > for subversion to automatically put the date there using C locale and > not the one of the user. > > I don't know if it exists, though. > It currently does not. You are not the first person to notice this problem. I know of a number of projects that are currently avoiding the use of subversion keywords for this very reason. Anyways, the issue is open on subversion's tracker (since 2005): http://subversion.tigris.org/issues/show_bug.cgi?id=2332 -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED] -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED] ___ Python-Dev mailing list [email protected] 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 developers are in demand
>I wonder if we should start maintaining a list of Python developers >for hire somewhere on python.org, beyond the existing Jobs page. Is >anyone interested in organizing this? What about something a little less formal - a mailing list such as python-jobs? -- Andrew McNamara, Senior Developer, Object Craft http://www.object-craft.com.au/ ___ Python-Dev mailing list [email protected] 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 developers are in demand
>> I wonder if we should start maintaining a list of Python developers >> for hire somewhere on python.org, beyond the existing Jobs page. Is >> anyone interested in organizing this? Andrew> What about something a little less formal - a mailing list such Andrew> as python-jobs? How about just creating a page on the wiki and letting those people participate who are interested? Skip ___ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
[Python-Dev] C Decimal - is there any interest?
Hi!
I've been working on C decimal project during gSoC 2006. After year
of idling (I had extremely busy first year on University, but well, most
of us are extremely busy) I decided, that I will handle further
developing (there is still much development needed, and updating to most
recent standard is just the beginning). I understand, that chances of
merging C Decimal with main tree are much lower than year ago, so I
would like to know if there is still interest in C version of Decimal.
If so - should I write PEP, or just code and 'we'll see later'?
I've made a little benchmark - given loan amount, assets and months that
it's meant to be payed off, find minimal monthly loan cost (It's just
first idea that came to me for use Decimal in financial 'application'
:>) [This solution has complexity O(log(amount) * months) which is far
from optimal, but it's meant to benchmark Decimal, not python itself].
Code:
from _decimal import *
import sys
gc = getcontext();
def check(loan, percent, monthly):
ret = 0
mult = 1 + (percent / 1200)
if (loan - monthly) * mult >= loan:
return -1 #you cannot payoff loan ;(
while loan > 0:
loan = loan - monthly
loan = loan * mult
ret += 1
return ret
def minimize_monthly(loan, percent, months):
lower = Decimal(0)
upper = Decimal(loan)
while(upper > lower + Decimal("1e-3")):
mid = (upper + lower)/2
ret = check(loan, percent, mid)
if(ret > months or ret == -1):
lower = mid
else:
upper = mid
return lower
gc.prec = int(sys.argv[4])
gc.rounding = ROUND_UP
print minimize_monthly(Decimal(sys.argv[1]), Decimal(sys.argv[2]),
int(sys.argv[3]))
and timings (1mln loan, for 15 years, 2% year assets, and precision = 10
:>):
[EMAIL PROTECTED]:~/programy/python/decimal/decimal-c$ time
../../pyth/python/python loan.py 100 2 180 10
6424.37955
real0m0.068s
user0m0.064s
sys 0m0.004s
[EMAIL PROTECTED]:~/programy/python/decimal/decimal-c$ time
../../pyth/python/python loan2.py 100 2 180 10
6424.37955
real0m2.168s
user0m2.148s
sys 0m0.016s
Please don't misunderstand me - I don't want to show python Decimal is
slow, I want to show that C Decimal is worth effort. I am also aware of
simplicity of this benchmark. (This python have been of course compiled
with -O3).
Best regards,
Mateusz Rukowicz.
___
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
[Python-Dev] C Decimal - is there any interest?
Hi!
I've been working on C decimal project during gSoC 2006. After year
of idling (I had extremely busy first year on University, but well, most
of us are extremely busy) I decided, that I will handle further
developing (there is still much development needed, and updating to most
recent standard is just the beginning). I understand, that chances of
merging C Decimal with main tree are much lower than year ago, so I
would like to know if there is still interest in C version of Decimal.
If so - should I write PEP, or just code and 'we'll see later'?
I've made a little benchmark - given loan amount, assets and months that
it's meant to be payed off, find minimal monthly loan cost (It's just
first idea that came to me for use Decimal in financial 'application'
:>) [This solution has complexity O(log(amount) * months) which is far
from optimal, but it's meant to benchmark Decimal, not python itself].
Code:
from _decimal import *
import sys
gc = getcontext();
def check(loan, percent, monthly):
ret = 0
mult = 1 + (percent / 1200)
if (loan - monthly) * mult >= loan:
return -1 #you cannot payoff loan ;(
while loan > 0:
loan = loan - monthly
loan = loan * mult
ret += 1
return ret
def minimize_monthly(loan, percent, months):
lower = Decimal(0)
upper = Decimal(loan)
while(upper > lower + Decimal("1e-3")):
mid = (upper + lower)/2
ret = check(loan, percent, mid)
if(ret > months or ret == -1):
lower = mid
else:
upper = mid
return lower
gc.prec = int(sys.argv[4])
gc.rounding = ROUND_UP
print minimize_monthly(Decimal(sys.argv[1]), Decimal(sys.argv[2]),
int(sys.argv[3]))
and timings (1mln loan, for 15 years, 2% year assets, and precision = 10
:>):
[EMAIL PROTECTED]:~/programy/python/decimal/decimal-c$ time
../../pyth/python/python loan.py 100 2 180 10
6424.37955
real0m0.068s
user0m0.064s
sys 0m0.004s
[EMAIL PROTECTED]:~/programy/python/decimal/decimal-c$ time
../../pyth/python/python loan2.py 100 2 180 10
6424.37955
real0m2.168s
user0m2.148s
sys 0m0.016s
Please don't misunderstand me - I don't want to show python Decimal is
slow, I want to show that C Decimal is worth effort. I am also aware of
simplicity of this benchmark. (This python have been of course compiled
with -O3).
Best regards,
Mateusz Rukowicz.
___
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] C Decimal - is there any interest?
Mateusz Rukowicz wrote:
>Hi!
>
>I've been working on C decimal project during gSoC 2006. After year
>of idling (I had extremely busy first year on University, but well, most
>of us are extremely busy) I decided, that I will handle further
>developing (there is still much development needed, and updating to most
>recent standard is just the beginning). I understand, that chances of
>merging C Decimal with main tree are much lower than year ago, so I
>would like to know if there is still interest in C version of Decimal.
>If so - should I write PEP, or just code and 'we'll see later'?
>
>I've made a little benchmark - given loan amount, assets and months that
>it's meant to be payed off, find minimal monthly loan cost (It's just
>first idea that came to me for use Decimal in financial 'application'
>:>) [This solution has complexity O(log(amount) * months) which is far
>from optimal, but it's meant to benchmark Decimal, not python itself].
>
>Code:
>
>from _decimal import *
>import sys
>gc = getcontext();
>
>def check(loan, percent, monthly):
>ret = 0
>mult = 1 + (percent / 1200)
>if (loan - monthly) * mult >= loan:
>return -1 #you cannot payoff loan ;(
>
>while loan > 0:
>loan = loan - monthly
>loan = loan * mult
>ret += 1
>return ret
>
>def minimize_monthly(loan, percent, months):
>lower = Decimal(0)
>upper = Decimal(loan)
>
>while(upper > lower + Decimal("1e-3")):
>mid = (upper + lower)/2
>ret = check(loan, percent, mid)
>if(ret > months or ret == -1):
>lower = mid
>else:
>upper = mid
>
>
>return lower
>
>
>
>gc.prec = int(sys.argv[4])
>gc.rounding = ROUND_UP
>print minimize_monthly(Decimal(sys.argv[1]), Decimal(sys.argv[2]),
>int(sys.argv[3]))
>
>and timings (1mln loan, for 15 years, 2% year assets, and precision = 10
>:>):
>[EMAIL PROTECTED]:~/programy/python/decimal/decimal-c$ time
>../../pyth/python/python loan.py 100 2 180 10
>6424.37955
>
>real0m0.068s
>user0m0.064s
>sys 0m0.004s
>[EMAIL PROTECTED]:~/programy/python/decimal/decimal-c$ time
>../../pyth/python/python loan2.py 100 2 180 10
>6424.37955
>
>real0m2.168s
>user0m2.148s
>sys 0m0.016s
>
>Please don't misunderstand me - I don't want to show python Decimal is
>slow, I want to show that C Decimal is worth effort. I am also aware of
>simplicity of this benchmark. (This python have been of course compiled
>with -O3).
>
>Best regards,
>Mateusz Rukowicz.
>___
>Python-Dev mailing list
>[email protected]
>http://mail.python.org/mailman/listinfo/python-dev
>Unsubscribe:
>http://mail.python.org/mailman/options/python-dev/mateusz.rukowicz%40vp.pl
>
>
>
Sorry for two messages, thunderbird told me first message hadn't been send.
___
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
[Python-Dev] XP Buildbot
Greetings, Long, long ago, I had mentioned dedicating a laptop of mine to the python project as a buildbot. Well, I finally made it around to cleaning off my box and putting it all together. I prepared my laptop with everything (I think...) needed to become a buildbot. The system specifications are as follows: OS Name: Microsoft Windows XP Professional OS Version: 5.1.2600 Service Pack 2 Build 2600 Processor: x86 Family 15 Model 2 Stepping 4 GenuineIntel ~1195Mhz Total Physical Memory: 1,023MB I have the trunk built with VS2005 and I am doing a clean run of rt.bat right now to verify everything is reasonably good. I would like to seek insight from the team as to what steps I could take next to verify my box is ready to go and make it be used. Thank You, Joseph Armbruster ___ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] C Decimal - is there any interest?
+1 from me. If you update it to the most recent Decimal standard I think
its worth it.
anyone else agree?
On 10/15/07, Mateusz Rukowicz <[EMAIL PROTECTED]> wrote:
>
> Hi!
>
> I've been working on C decimal project during gSoC 2006. After year
> of idling (I had extremely busy first year on University, but well, most
> of us are extremely busy) I decided, that I will handle further
> developing (there is still much development needed, and updating to most
> recent standard is just the beginning). I understand, that chances of
> merging C Decimal with main tree are much lower than year ago, so I
> would like to know if there is still interest in C version of Decimal.
> If so - should I write PEP, or just code and 'we'll see later'?
>
> I've made a little benchmark - given loan amount, assets and months that
> it's meant to be payed off, find minimal monthly loan cost (It's just
> first idea that came to me for use Decimal in financial 'application'
> :>) [This solution has complexity O(log(amount) * months) which is far
> from optimal, but it's meant to benchmark Decimal, not python itself].
>
> Code:
>
> from _decimal import *
> import sys
> gc = getcontext();
>
> def check(loan, percent, monthly):
> ret = 0
> mult = 1 + (percent / 1200)
> if (loan - monthly) * mult >= loan:
> return -1 #you cannot payoff loan ;(
>
> while loan > 0:
> loan = loan - monthly
> loan = loan * mult
> ret += 1
> return ret
>
> def minimize_monthly(loan, percent, months):
> lower = Decimal(0)
> upper = Decimal(loan)
>
> while(upper > lower + Decimal("1e-3")):
> mid = (upper + lower)/2
> ret = check(loan, percent, mid)
> if(ret > months or ret == -1):
> lower = mid
> else:
> upper = mid
>
>
> return lower
>
>
>
> gc.prec = int(sys.argv[4])
> gc.rounding = ROUND_UP
> print minimize_monthly(Decimal(sys.argv[1]), Decimal(sys.argv[2]),
> int(sys.argv[3]))
>
> and timings (1mln loan, for 15 years, 2% year assets, and precision = 10
> :>):
> [EMAIL PROTECTED]:~/programy/python/decimal/decimal-c$ time
> ../../pyth/python/python loan.py 100 2 180 10
> 6424.37955
>
> real0m0.068s
> user0m0.064s
> sys 0m0.004s
> [EMAIL PROTECTED]:~/programy/python/decimal/decimal-c$ time
> ../../pyth/python/python loan2.py 100 2 180 10
> 6424.37955
>
> real0m2.168s
> user0m2.148s
> sys 0m0.016s
>
> Please don't misunderstand me - I don't want to show python Decimal is
> slow, I want to show that C Decimal is worth effort. I am also aware of
> simplicity of this benchmark. (This python have been of course compiled
> with -O3).
>
> Best regards,
> Mateusz Rukowicz.
> ___
> Python-Dev mailing list
> [email protected]
> http://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe:
> http://mail.python.org/mailman/options/python-dev/greg%40krypto.org
>
___
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
[Python-Dev] Anyone using ctags with Vim?
I just noticed that the 'tags' Makefile target does not work with ctags 5.7 since the -t option no longer exists. So question 1 is whether anyone is using the 'tags' target. If the answer is no, then if you have your own way of generating the tags, let me know and I will update the target. Otherwise I might just rip it out. -Brett ___ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
[Python-Dev] SSL 1.8
I've added in some code that Chris Stawarz contributed to allow the use of non-blocking sockets, with the program thread allowed to do other things during the handshake while waiting for the peer to respond. http://pypi.python.org/pypi/ssl If this is OK with everyone, I'd like to now port this back to 2.6 aand 3K. Bill ___ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] SSL 1.8
+1 from me. sounds like a good idea. On 10/15/07, Bill Janssen <[EMAIL PROTECTED]> wrote: > > I've added in some code that Chris Stawarz contributed to allow the > use of non-blocking sockets, with the program thread allowed to do > other things during the handshake while waiting for the peer to > respond. > > http://pypi.python.org/pypi/ssl > > If this is OK with everyone, I'd like to now port this back to 2.6 > aand 3K. > > Bill > ___ > Python-Dev mailing list > [email protected] > http://mail.python.org/mailman/listinfo/python-dev > Unsubscribe: > http://mail.python.org/mailman/options/python-dev/greg%40krypto.org > ___ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
