[ANN] Lupa 0.6 - Lua in Python

2010-07-19 Thread Stefan Behnel
Hi all, I'm happy to announce the release of Lupa 0.6. http://pypi.python.org/pypi/lupa/0.6 What is Lupa? -- Lupa integrates the LuaJIT2 runtime [1] into CPython. It is a rewrite of LunaticPython in Cython. Features - * separate Lua runtime states through a

Re: rstrip()

2010-07-19 Thread News123
Dennis Lee Bieber wrote: On Sun, 18 Jul 2010 17:49:11 +0100, MRAB pyt...@mrabarnett.plus.com declaimed the following in gmane.comp.python.general: How about 'strip_str', 'lstrip_str' and 'rstrip_str', or something Not sure what the first would do... unless one is envisioning

Re: Difference between import in script and from interpreter

2010-07-19 Thread News123
Edward Diener wrote: In a python script a: from xxx.yyy.zzz import aaa fails with the message: ImportError: No module named xxx.yyy.zzz but from within the python interpreter the same line succeeds. What would be the causes of that ? From within the python interpreter I have

Emacs Time Line, Graphical Chart by Jamie Zawinski - Valuable Resource for Newbies - written: 8-Mar-1999, updated: 29-Oct-2007

2010-07-19 Thread bolega
Many newbies would find this one by Jamie Zawinski, of immense help http://www.jwz.org/doc/emacs-timeline.html written: 8-Mar-1999, updated: 29-Oct-2007 For more detail about the early days, please see Bernie Greenberg's paper, Multics Emacs: The History, Design and Implementation. I've drawn

Re: why is this group being spammed?

2010-07-19 Thread Stephen Hansen
On 7/17/10 10:01 PM, be.krul wrote: why is this group being spammed? Because while God created the Internet, the Devil twisted it by creating spammers. What do you expect? Adam just didn't pay enough attention when Eve made him a waldorf salad; we descendants of Seth have gone and tried to

Re: Fascinating interview by Richard Stallman on Russia TV

2010-07-19 Thread Nick Keighley
On 18 July, 09:38, Emmy Noether emmynoeth...@gmail.com wrote: On Jul 18, 1:09 am, Nick 3-nos...@temporary-address.org.uk wrote: Emmy Noether emmynoeth...@gmail.com writes: snip In this video, Stall man makes 4 promises to public but stalls on 2nd of them. I have no idea of the rights

Re: Sharing: member type deduction for member pointers (Alf's device?)

2010-07-19 Thread Vladimir Jovic
Alf P. Steinbach /Usenet wrote: #include progrock/cppy/PyClass.h // PyWeakPtr, PyPtr, PyModule, PyClass using namespace progrock; namespace { using namespace cppy; struct Noddy { PyPtr first; PyPtr last; int number; Noddy(

Re: Sharing: member type deduction for member pointers (Alf's device?)

2010-07-19 Thread Alf P. Steinbach /Usenet
* Vladimir Jovic, on 19.07.2010 09:41: Alf P. Steinbach /Usenet wrote: #include progrock/cppy/PyClass.h // PyWeakPtr, PyPtr, PyModule, PyClass using namespace progrock; namespace { using namespace cppy; struct Noddy { PyPtr first; PyPtr last;

Re: Fascinating interview by Richard Stallman on Russia TV

2010-07-19 Thread geremy condra
On Sun, Jul 18, 2010 at 7:53 AM, David Kastrup d...@gnu.org wrote: snip rant and anti-rant    File: elisp,  Node: Writing Emacs Primitives,  Next: Object Internals,   Prev: Memory Usage,  Up: GNU Emacs Internals    E.5 Writing Emacs Primitives        Lisp

Re: Difference between import in script and from interpreter

2010-07-19 Thread Jean-Michel Pichavant
Steven D'Aprano wrote: On Mon, 19 Jul 2010 00:53:56 -0400, Edward Diener wrote: In a python script a: from xxx.yyy.zzz import aaa fails with the message: ImportError: No module named xxx.yyy.zzz but from within the python interpreter the same line succeeds. What would be the causes of

how to copy and move file with its attribute?

2010-07-19 Thread oyster
I mean writeonly, hidden, system and so on attributes I use windows, but if possible, is there any method to do so in a crossplatfrom way? thanks -- http://mail.python.org/mailman/listinfo/python-list

Accumulate function in python

2010-07-19 Thread dhruvbird
Hello, I have a list of integers: x = [ 0, 1, 2, 1, 1, 0, 0, 2, 3 ] And would like to compute the cumulative sum of all the integers from index zero into another array. So for the array above, I should get: [ 0, 1, 3, 4, 5, 5, 5, 7, 10 ] What is the best way (or pythonic way) to get this.

Re: how to copy and move file with its attribute?

2010-07-19 Thread Peter Otten
oyster wrote: I mean writeonly, hidden, system and so on attributes I use windows, but if possible, is there any method to do so in a crossplatfrom way? I can't check, but shutil.copy2() may do what you want. Peter -- http://mail.python.org/mailman/listinfo/python-list

Re: how to copy and move file with its attribute?

2010-07-19 Thread Vlastimil Brom
2010/7/19 oyster lepto.pyt...@gmail.com: I mean writeonly, hidden, system and so on attributes I use windows, but if possible, is there any method to do so in a crossplatfrom way? thanks -- http://mail.python.org/mailman/listinfo/python-list You may check to see several possibilities

Re: Accumulate function in python

2010-07-19 Thread Nitin Pawar
Hi, you may want to do like this array=[0,1,2] sumArray = [] for element in range(0,len(array)): if element == 0 : sumArray.append(array[element]) else: sumArray.append((array[element] + sumArray[element-1])) and then you can recheck it Thanks, nitin On Mon, Jul 19,

Re: Accumulate function in python

2010-07-19 Thread Peter Otten
dhruvbird wrote: I have a list of integers: x = [ 0, 1, 2, 1, 1, 0, 0, 2, 3 ] And would like to compute the cumulative sum of all the integers from index zero into another array. So for the array above, I should get: [ 0, 1, 3, 4, 5, 5, 5, 7, 10 ] What is the best way (or pythonic way)

Re: Accumulate function in python

2010-07-19 Thread Vlastimil Brom
2010/7/19 dhruvbird dhruvb...@gmail.com: Hello,  I have a list of integers: x = [ 0, 1, 2, 1, 1, 0, 0, 2, 3 ]  And would like to compute the cumulative sum of all the integers from index zero into another array. So for the array above, I should get: [ 0, 1, 3, 4, 5, 5, 5, 7, 10 ]  What is

Re: Accumulate function in python

2010-07-19 Thread Mick Krippendorf
Am 19.07.2010 13:18, dhruvbird wrote: Hello, I have a list of integers: x = [ 0, 1, 2, 1, 1, 0, 0, 2, 3 ] And would like to compute the cumulative sum of all the integers from index zero into another array. So for the array above, I should get: [ 0, 1, 3, 4, 5, 5, 5, 7, 10 ] What is

decimal.Decimal formatting

2010-07-19 Thread python
I have various decimals which eventually are written to an XML file. Requirements indicate a precision of 11. I am currently having some 'issues' with Decimal(0). When using quantize(decimal.Decimal(1e-11)) the result is not 0.000, but 1e-11. Personally I agree 1e-11 is a better notation

CPython 3.1.1 docs error in noddy3 example?

2010-07-19 Thread Alf P. Steinbach /Usenet
Extending and Embedding the Python Interpreter §2.1.2, the noddy3 extension module example, uses S as format character for string arguments in its call to PyArg_ParseTupleAndKeywords. This causes Noddy to only accept bytes as arguments, instead of strings (format U). I suspect this is a

Re: timing

2010-07-19 Thread Alex A.
You could use pycallgraph module Regards, Alex Abushkevich -- http://mail.python.org/mailman/listinfo/python-list

Different python versions confusion under Windows Vista x64

2010-07-19 Thread Edward Diener
In Windows Vista x64 I have installed python 2.6 64-bit version and python 3.1 64-bit version to separate folders. Within the command interpreter I add python 2.6 to the PATH. In the command interpreter, When I type python somescript.py with an import sys print (sys.version) in the script,

Re: Different python versions confusion under Windows Vista x64

2010-07-19 Thread Alf P. Steinbach /Usenet
* Edward Diener, on 19.07.2010 14:53: In Windows Vista x64 I have installed python 2.6 64-bit version and python 3.1 64-bit version to separate folders. Within the command interpreter I add python 2.6 to the PATH. In the command interpreter, When I type python somescript.py with an import sys

Re: [ANN] Lupa 0.6 - Lua in Python

2010-07-19 Thread Fabrizio Milo aka misto
This is very very interesting. Do you have any direct application of it ? I know games like World of Warcraft uses Lua as scripting language. Thanks. Fabrizio -- Luck favors the prepared mind. (Pasteur) -- http://mail.python.org/mailman/listinfo/python-list

Re: Accumulate function in python

2010-07-19 Thread Andre Alexander Bell
On 07/19/2010 01:18 PM, dhruvbird wrote: Hello, I have a list of integers: x = [ 0, 1, 2, 1, 1, 0, 0, 2, 3 ] And would like to compute the cumulative sum of all the integers from index zero into another array. So for the array above, I should get: [ 0, 1, 3, 4, 5, 5, 5, 7, 10 ] What is

ANN: pyTenjin 0.9.0 - very fast and full-featured template engine

2010-07-19 Thread Makoto Kuwata
I released pyTenjin 0.9.0 http://www.kuwata-lab.com/tenjin/ http://pypi.python.org/pypi/Tenjin/ This release contains a lot of enhancements and changes. Also you should read planned changes in the next release (1.0.0). See

Re: Accumulate function in python

2010-07-19 Thread Steven D'Aprano
On Mon, 19 Jul 2010 04:18:48 -0700, dhruvbird wrote: Hello, I have a list of integers: x = [ 0, 1, 2, 1, 1, 0, 0, 2, 3 ] And would like to compute the cumulative sum of all the integers from index zero into another array. So for the array above, I should get: [ 0, 1, 3, 4, 5, 5, 5, 7, 10

Re: decimal.Decimal formatting

2010-07-19 Thread Stefan Krah
pyt...@lists.fastmail.net pyt...@lists.fastmail.net wrote: I have various decimals which eventually are written to an XML file. Requirements indicate a precision of 11. I am currently having some 'issues' with Decimal(0). When using quantize(decimal.Decimal(1e-11)) the result is not

Re: Fascinating interview by Richard Stallman at KTH on emacs history and internals

2010-07-19 Thread Pascal J. Bourguignon
Kenneth Tilton kentil...@gmail.com writes: What we do not have is any interesting amount of free as in speech software, because no one uses the GPL. I do. So far, I resist to calls to put my software in a less freedom-promoting license. Hey everybody! Switch from MIT or BSD to GPL! Now!

Email für Dich

2010-07-19 Thread Wolfgang Meiners
Liebe Kirsten, ich liebe dich und freue mich, dass du bald auch Ferien hast. Wolfgang -- http://mail.python.org/mailman/listinfo/python-list

Re: Accumulate function in python

2010-07-19 Thread Brian Victor
dhruvbird wrote: Hello, I have a list of integers: x = [ 0, 1, 2, 1, 1, 0, 0, 2, 3 ] And would like to compute the cumulative sum of all the integers from index zero into another array. So for the array above, I should get: [ 0, 1, 3, 4, 5, 5, 5, 7, 10 ] What is the best way (or

Re: Email für Dich

2010-07-19 Thread Deadly Dirk
On Mon, 19 Jul 2010 17:52:56 +0200, Wolfgang Meiners wrote: Liebe Kirsten, ich liebe dich und freue mich, dass du bald auch Ferien hast. Wolfgang Und die ganze Python gruppe liebt dich auch. -- The missionaries go forth to Christianize the savages - as if the savages weren't

mod_python load cx_Oracle error

2010-07-19 Thread li wang
It's quite weird when I import cx_Oracle in python interactive shell, it works perfectly. but when I import cx_Oracle in a *,py script, handled by mod_python.publisher, it keep reportint : ImportError: libclntsh.so.10.1: cannot open shared object file: No such file or directory Can I anyone have

ANNOUNCING Tahoe, the Least-Authority File System, v1.7.1

2010-07-19 Thread Zooko O'Whielacronx
Folks: This innovative distributed filesystem is written entirely in Python. Well, actually we rely on some C/C++ extension code in Python packages like zfec and pycryptopp for some mathematical heavy lifting, but all of the code in the tahoe-lafs package is actually pure Python. Regards, Zooko

Re: how to copy and move file with its attribute?

2010-07-19 Thread Alban Nona
Hello, About this one. I tried the os.system copy. But it seems I cant find the right syntax. *os.system (xcopy /s %s %s % (dirname1, dirname2))* This one seems to not working. Is there anyway I can do this way: localpath= c:\ networkpath=g:\ os.system(copy localpath networkpath) I tried

Re: how to copy and move file with its attribute?

2010-07-19 Thread MRAB
Alban Nona wrote: Hello, About this one. I tried the os.system copy. But it seems I cant find the right syntax. *os.system (xcopy /s %s %s % (dirname1, dirname2))* This one seems to not working. In what way doesn't it work? If the names contain spaces then you need to quote them:

Re: Accumulate function in python

2010-07-19 Thread dhruvbird
On Jul 19, 9:12 pm, Brian Victor homeusen...@brianhv.org wrote: dhruvbird wrote: Hello,   I have a list of integers: x = [ 0, 1, 2, 1, 1, 0, 0, 2, 3 ]   And would like to compute the cumulative sum of all the integers from index zero into another array. So for the array above, I should

Re: Accumulate function in python

2010-07-19 Thread dhruvbird
On Jul 19, 4:28 pm, Peter Otten __pete...@web.de wrote: dhruvbird wrote:   I have a list of integers: x = [ 0, 1, 2, 1, 1, 0, 0, 2, 3 ]   And would like to compute the cumulative sum of all the integers from index zero into another array. So for the array above, I should get: [ 0, 1, 3,

Re: why is this group being spammed?

2010-07-19 Thread John Bokma
be.krul be.k...@gmail.com writes: why is this group being spammed? Do you report those spammers? While Google is extremely lazy with dealing with spammers, if sufficient people report them action might be taken. Also make sure to report those spammers with their ISP; posts via GG contain the

CPython Signal Handler Check for SIGKILL

2010-07-19 Thread Scott McCarty
All, I just want to understand the C/Python piece better because I am writing a tutorial on signals and I am using python to demonstrate. I thought it would be fun to show that the SIGKILL is never processed, but instead python errors out. There is something in Python checking the SIGKILL signal

Re: Accumulate function in python

2010-07-19 Thread Duncan Booth
dhruvbird dhruvb...@gmail.com wrote: On Jul 19, 4:28 pm, Peter Otten __pete...@web.de wrote: dhruvbird wrote:   I have a list of integers: x = [ 0, 1, 2, 1, 1, 0, 0, 2, 3 ]   And would like to compute the cumulative sum of all the integers from index zero into another array. So for the

Re: how to copy and move file with its attribute?

2010-07-19 Thread Alban Nona
Hello Mrab, Thank you very much for this informations. Homever, Im still stuck with a problem: import os import sys import threading import shutil source= C://Production// dest= D://Production// os.system('xcopy /E /I /Q %s %s' % (source, dest)) It seems that it wont copy the files File not

Re: CPython Signal Handler Check for SIGKILL

2010-07-19 Thread Thomas Jollans
On 07/19/2010 07:28 PM, Scott McCarty wrote: All, I just want to understand the C/Python piece better because I am writing a tutorial on signals and I am using python to demonstrate. I thought it would be fun to show that the SIGKILL is never processed, but instead python errors out. There is

Re: CPython Signal Handler Check for SIGKILL

2010-07-19 Thread Antoine Pitrou
Hello, I am not asking about the signals, I understand them, I am asking about the registration of the SIGNAL handler and how it knows that you are trying to register SIGKILL, you get an error like this. ./signal-catcher.py Traceback (most recent call last): File ./signal-catcher.py,

Re: how to copy and move file with its attribute?

2010-07-19 Thread MRAB
Alban Nona wrote: Hello Mrab, Thank you very much for this informations. Homever, Im still stuck with a problem: import os import sys import threading import shutil source= C://Production// dest= D://Production// os.system('xcopy /E /I /Q %s %s' % (source, dest)) It seems that it wont copy

Re: Fascinating interview by Richard Stallman at KTH on emacs history and internals

2010-07-19 Thread Rui Maciel
Kenneth Tilton wrote: What we do not have is any interesting amount of free as in speech software, because no one uses the GPL. You appear to be either confused or out of touch with reality. If that wasn't enough, your comment becomes a bit more amusing once we check your post's user agent.

Re: mod_python load cx_Oracle error

2010-07-19 Thread Mladen Gogala
On Mon, 19 Jul 2010 09:12:20 -0700, li wang wrote: It's quite weird when I import cx_Oracle in python interactive shell, it works perfectly. but when I import cx_Oracle in a *,py script, handled by mod_python.publisher, it keep reportint : ImportError: libclntsh.so.10.1: cannot open shared

Re: why is this group being spammed?

2010-07-19 Thread Jia Hu
I use Gmail. When I receive spams, I will click Report Spam. In addition, I will not empty the spam box of my email immediately. When I receive about 25 spams, I will click Filter messages like these to filter all the spams and let gmail automatically delete them. On Mon, Jul 19, 2010 at 1:20

Re: CPython Signal Handler Check for SIGKILL

2010-07-19 Thread Scott McCarty
Yes, yes, thank you both. That is exactly what I didn't understand, I knew it was some how linked to the C library and wasn't exactly being handled or decided at the Python layer, I just didn't understand the C part good enough. I have found the CPython source code that checks. I see what you are

Re: why is this group being spammed?

2010-07-19 Thread Nobody
On Sun, 18 Jul 2010 15:18:59 -0700, sturlamolden wrote: why is this group being spammed? There used to be bots that issued cancel messages against spam, but I don't think they are actively maintained anymore. Mostly because cancel messages are invariably ignored nowadays. --

Pyglet being extremely slow

2010-07-19 Thread Joshua Landau
I've just tried Pyglet on my computer, a lower-end laptop at that, and going though the Pyglet tutorials I've tried this: import pyglet window = pyglet.window.Window() @window.event def on_key_press(symbol, modifiers): print 'A key was pressed' @window.event def on_draw():

Re: Accumulate function in python

2010-07-19 Thread Paul Rubin
Brian Victor homeusen...@brianhv.org writes: def running_sum(result, current_value): return result + [result[-1]+current_value if result else current_value] reduce(running_sum, x, []) That is not really any good because Python lists are actually vectors, so result+[...] actually copies

Re: how to copy and move file with its attribute?

2010-07-19 Thread Nobody
On Mon, 19 Jul 2010 17:57:31 +0100, MRAB wrote: About this one. I tried the os.system copy. But it seems I cant find the right syntax. *os.system (xcopy /s %s %s % (dirname1, dirname2))* This one seems to not working. In what way doesn't it work? If the names contain spaces then

Re: CPython Signal Handler Check for SIGKILL

2010-07-19 Thread Nobody
On Mon, 19 Jul 2010 20:06:16 +0200, Antoine Pitrou wrote: So, in short, Python doesn't check SIGKILL by itself. It's just forbidden by the underlying C standard library, Actually, it's forbidden by the kernel. The C library just passes along the error to Python, which just passes it to the

Re: why is this group being spammed?

2010-07-19 Thread Jia Hu
Hi noboby: How can you make the current email and name hidden? On Mon, Jul 19, 2010 at 2:42 PM, Nobody nob...@nowhere.com wrote: On Sun, 18 Jul 2010 15:18:59 -0700, sturlamolden wrote: why is this group being spammed? There used to be bots that issued cancel messages against spam, but I

ANN: PiCloud's Python Platform is now open to the Public!

2010-07-19 Thread Ken Elkabany
After 5 months in private beta, PiCloud, a cloud computing platform for the Python Programming Language, is now open to the general public. PiCloud enables Python users to leverage the power of an on-demand, high performance, and auto scaling compute cluster with as few as two lines of code! No

parmiko problem

2010-07-19 Thread George Trojan
)) t.connect(username='gtrojan') # , password='a-passwd']) sftp = paramiko.SFTPClient.from_transport(t) sftp.close() t.close() results in the following output in /tmp/paramiko: DEB [20100719-19:58:22.497] thr=1 paramiko.transport: starting thread (client mode): 0xb81e1150L INF [20100719-19:58:22.501

Re: parmiko problem

2010-07-19 Thread George Trojan
= paramiko.Transport(('alice', 22)) t.connect(username='gtrojan') # , password='a-passwd']) sftp = paramiko.SFTPClient.from_transport(t) sftp.close() t.close() results in the following output in /tmp/paramiko: DEB [20100719-19:58:22.497] thr=1 paramiko.transport: starting thread (client mode): 0xb81e1150L INF

Re: Different python versions confusion under Windows Vista x64

2010-07-19 Thread Edward Diener
On 7/19/2010 9:15 AM, Alf P. Steinbach /Usenet wrote: * Edward Diener, on 19.07.2010 14:53: In Windows Vista x64 I have installed python 2.6 64-bit version and python 3.1 64-bit version to separate folders. Within the command interpreter I add python 2.6 to the PATH. In the command

Re: Accumulate function in python

2010-07-19 Thread Joel Goldstick
Peter Otten wrote: dhruvbird wrote: I have a list of integers: x = [ 0, 1, 2, 1, 1, 0, 0, 2, 3 ] And would like to compute the cumulative sum of all the integers from index zero into another array. So for the array above, I should get: [ 0, 1, 3, 4, 5, 5, 5, 7, 10 ] What is the best way

How is memory managed in python?

2010-07-19 Thread Vishal Rana
Hi, In my web application (Django) I call a function for some request which loads like 500 MB data from the database uses it to do some calculation and stores the output in disk. I just wonder even after this request is served the apache / python process is still shows using that 500 MB, why is

How to pass the shell in Python

2010-07-19 Thread Ranjith Kumar
Hi Folks, Can anyone tell me how to run shell commands using python script. -- Cheers Ranjith, http://ranjith10z.wordpress.com -- http://mail.python.org/mailman/listinfo/python-list

Re: How to pass the shell in Python

2010-07-19 Thread MRAB
Ranjith Kumar wrote: Hi Folks, Can anyone tell me how to run shell commands using python script. Use the 'subprocess' module. -- http://mail.python.org/mailman/listinfo/python-list

Re: Different python versions confusion under Windows Vista x64

2010-07-19 Thread Edward Diener
On 7/19/2010 5:45 PM, Edward Diener wrote: On 7/19/2010 9:15 AM, Alf P. Steinbach /Usenet wrote: * Edward Diener, on 19.07.2010 14:53: In Windows Vista x64 I have installed python 2.6 64-bit version and python 3.1 64-bit version to separate folders. Within the command interpreter I add python

[issue7229] Manual entry for time.daylight can be misleading

2010-07-19 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Please do! -- assignee: georg.brandl - belopolsky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7229 ___

[issue2813] No float formatting in PyString_FromFormat

2010-07-19 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Jean may have no interest in moving this forward, but I do. (Which is why I assigned the issue to me.) -- resolution: out of date - status: closed - open ___ Python tracker

[issue9288] Disambiguate :option: and :cmdoption:

2010-07-19 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: The docs on :option: should now be clear in r82961. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9288

[issue8265] test_float fails on ARM Linux EABI with soft floating point

2010-07-19 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: I notice (again) that these failures occur on the 2.6 and 3.1 buildslaves (where the debug build includes the -O2 compilation flag), but not the 2.7 or py3k buildslaves. So again this looks like a compiler optimization bug. This should

[issue4111] Add Systemtap/DTrace probes

2010-07-19 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: On 19 Jul, 2010, at 1:07, Alexander Belopolsky wrote: Alexander Belopolsky belopol...@users.sourceforge.net added the comment: If any RedHat/Fedora people are tuned in, can you give us an update on Systemtap/DTrace support in

[issue9299] os.mkdir() and os.makedirs() add a keyword argument to suppress File exists exception.

2010-07-19 Thread Ray.Allen
New submission from Ray.Allen ysj@gmail.com: As discussed in python-dev mailing list, something should be add to os.mkdir() and os.makedirs() to simulate the shell's mkdir -p function, that is, suppress the OSError exception if the target directory exists. Here is a patch against py3k,

[issue9299] os.mkdir() and os.makedirs() add a keyword argument to suppress File exists exception.

2010-07-19 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9299 ___ ___

[issue9299] os.mkdir() and os.makedirs() add a keyword argument to suppress File exists exception.

2010-07-19 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: I don't think this can go into 2.7. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9299 ___

[issue9299] os.mkdir() and os.makedirs() add a keyword argument to suppress File exists exception.

2010-07-19 Thread Ray.Allen
Changes by Ray.Allen ysj@gmail.com: Removed file: http://bugs.python.org/file18059/mkdir_py3k.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9299 ___

[issue9299] os.mkdir() and os.makedirs() add a keyword argument to suppress File exists exception.

2010-07-19 Thread Ray.Allen
Ray.Allen ysj@gmail.com added the comment: I update the patch since an problem is found in doc/library/os.rst. -- Added file: http://bugs.python.org/file18060/mkdir_py3k.diff ___ Python tracker rep...@bugs.python.org

[issue9300] c/profile Profile class is not documented

2010-07-19 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' g.rod...@gmail.com: http://docs.python.org/library/profile.html ...while it is, for example, for hotshot module: http://docs.python.org/library/hotshot.html#hotshot.Profile Profile class contains some useful methods which are surely worth mentioning, like

[issue9301] urllib.quote(None) returns None in 2.7 (raised TypeError before)

2010-07-19 Thread Dirkjan Ochtman
New submission from Dirkjan Ochtman dirk...@ochtman.nl: Rejecting invalid input seems better in this case. This was changed in issue1285086. Can we preface the normal fast path with something like: if s is None: raise TypeError('can only quote strings') It used to raise:

[issue9301] urllib.quote(None) returns None in 2.7 (raised TypeError before)

2010-07-19 Thread Dirkjan Ochtman
Changes by Dirkjan Ochtman dirk...@ochtman.nl: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9301 ___ ___ Python-bugs-list

[issue9302] Distutils document problem?

2010-07-19 Thread Ray.Allen
New submission from Ray.Allen ysj@gmail.com: The distutils api document for class Extension: http://docs.python.org/dev/py3k/distutils/apiref.html#distutils.core.Extension Among the argument, in fact, the type of the arguments sources, include_dirs, library_dirs, libraries,

[issue9301] urllib.quote(None) returns None in 2.7 (raised TypeError before)

2010-07-19 Thread Ray.Allen
Changes by Ray.Allen ysj@gmail.com: -- nosy: +ysj.ray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9301 ___ ___ Python-bugs-list mailing list

[issue9301] urllib.quote(None) returns None in 2.7 (raised TypeError before)

2010-07-19 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: The fast path was intended to return the empty string. When s is None, it should return a TypeError. -- assignee: - orsenthil resolution: - accepted ___ Python tracker rep...@bugs.python.org

[issue9300] c/profile Profile class is not documented

2010-07-19 Thread Ray.Allen
Ray.Allen ysj@gmail.com added the comment: I guess this is intended not documented: http://docs.python.org/dev/py3k/library/profile.html#extensions-deriving-better-profilers Here it said: The Profile class of both modules, profile and cProfile, were written so that derived classes could

[issue9185] os.getcwd causes infinite loop on solaris

2010-07-19 Thread Zsolt Cserna
Zsolt Cserna zsolt.cse...@morganstanley.com added the comment: I confirm that test_posix passes after applying the patch issue9185-2.patch on solaris 8. Thank you. Now solaris and openbsd have a clean os.getcwd() implementation. -- ___ Python

[issue9036] Simplify Py_CHARMASK

2010-07-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Antoine, I understood that you would prefer to leave the mask. Could I apply the second version of the patch? It looks ok to me. -- ___ Python tracker rep...@bugs.python.org

[issue8917] Segmentation error happens in Embedding Python.

2010-07-19 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: I think this issue is duplicates of Issue6869. So I'm closing... -- nosy: +ocean-city resolution: - duplicate status: open - closed ___ Python tracker rep...@bugs.python.org

[issue6869] Embedded python crashed on 4th run, if ctypes is used

2010-07-19 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: -- nosy: +tanaga ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6869 ___ ___

[issue1712522] urllib.quote throws exception on Unicode URL

2010-07-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Senthil, have you read my comment on python-checkins? Couldn't this have been fixed without introducing a new API in a bugfix branch? -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org

[issue1712522] urllib.quote throws exception on Unicode URL

2010-07-19 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: I just checked your comment in the checkins list. I saw this is as bug-fix, which was leading to change in the signature of the quote function, still in backward compatible way. Should we still not do it? I understood only feature

[issue1712522] urllib.quote throws exception on Unicode URL

2010-07-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I understood only feature requests and behavior changes are disallowed in bug-fix branch. Well, isn't it a new feature you're adding? -- ___ Python tracker rep...@bugs.python.org

[issue1712522] urllib.quote throws exception on Unicode URL

2010-07-19 Thread Matt Giuca
Matt Giuca matt.gi...@gmail.com added the comment: From http://mail.python.org/pipermail/python-checkins/2010-July/095350.html: Looking at the issue (which in itself was quite old), you could as well have fixed the robotparser module instead. It isn't an issue with robotparser. The original

[issue1712522] urllib.quote throws exception on Unicode URL

2010-07-19 Thread Matt Giuca
Matt Giuca matt.gi...@gmail.com added the comment: Well, isn't it a new feature you're adding? You had a function which raised a confusing and unintentional KeyError when given non-ASCII Unicode input. Now it doesn't. That's the bug fix part. What I assume you're referring to as a new

[issue1712522] urllib.quote throws exception on Unicode URL

2010-07-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: It's definitely a bug in urllib A bug in what way? Up to 2.6 (*), the docs state nothing about the type of the string parameter. (*) http://docs.python.org/release/2.6.5/library/urllib.html#urllib.quote I think everyone assumed that the

[issue9301] urllib.quote(None) returns None in 2.7 (raised TypeError before)

2010-07-19 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +merwok ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9301 ___ ___ Python-bugs-list mailing

[issue9300] c/profile Profile class is not documented

2010-07-19 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Oh right, I didn't notice that. Closing this out as invalid. -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9300

[issue1712522] urllib.quote throws exception on Unicode URL

2010-07-19 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: Well, my understanding was Type:behavior was a bug fix and Type: feature request was a new feature request, which may change some underlying behavior. I thought this issue was on the border. The robotparser using this might be just one

[issue1712522] urllib.quote throws exception on Unicode URL

2010-07-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Well, my understanding was Type:behavior was a bug fix and Type: feature request was a new feature request, which may change some underlying behavior. I thought this issue was on the border. The original issue is against robotparser, and

[issue9303] Migrate sqlite3 module to _v2 API to enhance performance

2010-07-19 Thread Michael Schwarz
New submission from Michael Schwarz michi.schw...@gmail.com: The Python sqlite module currently uses some deprecated API [0] of SQLite. These are functions that have a counterpart with _v2 appended to their name. The SQLite query planner will not use certain optimizations when using the old

[issue1712522] urllib.quote throws exception on Unicode URL

2010-07-19 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: On Mon, Jul 19, 2010 at 11:25:30AM +, Antoine Pitrou wrote: If we were following you, we would add encoding and errors arguments to any str-accepting 2.x function, so that it can also accept unicode strings. That's certainly not a

[issue9303] Migrate sqlite3 module to _v2 API to enhance performance

2010-07-19 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- assignee: - ghaering nosy: +ghaering stage: - needs patch versions: +Python 3.2 -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9303

[issue9303] Migrate sqlite3 module to _v2 API to enhance performance

2010-07-19 Thread Gerhard Häring
Gerhard Häring g...@ghaering.de added the comment: Yes, the sqlite module uses the old API, and is written to work with older SQLite releases and their respective bugs as well. Using the new API will mean requiring newer SQLite releases. If we do this, then this is the chance to remove all

[issue9302] Distutils document problem?

2010-07-19 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +tarek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9302 ___ ___ Python-bugs-list

  1   2   3   >