[Q] Function Point Analysis (FPA) - Equivalent lines of code of Python

2010-09-09 Thread Nicholas
Hi, In FPA, there are tables which shows equivalent lines of code for each Function Point (FP) for a number of programming languages. e.g. http://www.qsm.com/?q=resources/function-point-languages-table/index.html However, I have yet to find the figures for Python. Is someone able to

Re: are there pros or contras, keeping a connection to a (sqlite) database ?

2010-09-09 Thread News123
On 09/09/2010 12:29 AM, CM wrote: On Sep 8, 1:09 pm, Stef Mientki stef.mien...@gmail.com wrote: hello, I wrap my database in some class, and on creation of the instance, a connection to the database is created, and will stay connected until the program exists, something like this:

Re: [Q] Function Point Analysis (FPA) - Equivalent lines of code of Python

2010-09-09 Thread Paul Rubin
Nicholas yue.nicho...@gmail.com writes: e.g. http://www.qsm.com/?q=resources/function-point-languages-table/index.html However, I have yet to find the figures for Python. Is someone able to advise the closest language equivalent. That table looks pretty bogus, but of the languages on

SendKeys and Python 2.7

2010-09-09 Thread Jakson A. Aquino
Hi, I would like to send code from Vim [1] to R [2] on Microsoft Windows. Vim needs python 2.7 but the pre-compiled SendKeys module [3] is only avaiable for python 2.6. How can I make SendKeys work with python 2.7? I don't know how to compile python code. Is there an alternative to SendKeys? I'm

Re: [Tutor] Arguments from the command line

2010-09-09 Thread Martin Gregorie
On Wed, 08 Sep 2010 21:58:49 -0700, Dennis Lee Bieber wrote: On Thu, 09 Sep 2010 12:38:04 +1200, Lawrence D'Oliveiro l...@geek-central.gen.new_zealand declaimed the following in gmane.comp.python.general: In message mailman.501.1283789339.29448.python-l...@python.org, Hugo Arts wrote:

cath a timeout of httplib (Python 2.6.5)

2010-09-09 Thread Mauricio Martinez Garcia
Hi!. I have a problem with httplib and timeout. (I use python 2.6.5 and httplib) I have the next code for the http connection (its a WebService Client). === def ejecutaComandos(self,opcion, URL, commandString, conn, id):

32 bit bdist_wininst vs x64 platform

2010-09-09 Thread Robin Becker
A reportlab user is using 32 bit python on x64 win 2003. he has a problem installing our bdist_wininst exe because the installer cannot find python. Apparently the installer is looking at HKLM\Software to locate python, but on x64 32 bit program requests get redirected to

Re: SendKeys and Python 2.7

2010-09-09 Thread Albert Hopkins
On Thu, 2010-09-09 at 07:07 -0300, Jakson A. Aquino wrote: Vim needs python 2.7 From where do you base this assertion? I have been using vim 7.3 (with embedded python) with python 2.6 pretty much since it has been released. :version VIM - Vi IMproved 7.3 (2010 Aug 15, compiled

importing module

2010-09-09 Thread Holzwarth, Dominique (Berne Branch)
Hi all Lets assume I have the following structure of directories and python modules: Root-dir |_dir1 |_ script1.py |_dir2 |_ script2.py |_sudir2 |_ script3.py Is it possible to import script1 into script2 and script3? Or do have to put script1.py into the Lib\site-packages folder of

Catching a SIGSEGV signal on an import

2010-09-09 Thread Ryan
Is there anyway to catch a SIGSEGV signal that results from an import? I'd like to get a list of all modules on the sys.path. The module pkgutil has a nice method, walk_packages, to do just that. But, there is a third party extension that throws a SIGSEGV when imported. I tried to create a signal

Re: importing module

2010-09-09 Thread Peter Otten
Holzwarth, Dominique (Berne Branch) wrote: Hi all Lets assume I have the following structure of directories and python modules: Root-dir |_dir1 |_ script1.py |_dir2 |_ script2.py |_sudir2 |_ script3.py Is it possible to import script1 into script2 and script3? Or do

Re: [Tutor] Arguments from the command line

2010-09-09 Thread Mel
Dennis Lee Bieber wrote: On Thu, 09 Sep 2010 12:38:04 +1200, Lawrence D'Oliveiro l...@geek-central.gen.new_zealand declaimed the following in gmane.comp.python.general: In message mailman.501.1283789339.29448.python-l...@python.org, Hugo Arts wrote: sys.argv is a list of all arguments

Re: [Tutor] Arguments from the command line

2010-09-09 Thread Giacomo Boffi
Dennis Lee Bieber wlfr...@ix.netcom.com writes: FORTRAN just differentiates by having the main file start with PROGRAM random_name whereas subfiles are all either (or both) SUBROUTINE another_name(args) FUNCTION that_other_name(args) no

Re: cPickle segfault with nested dicts in threaded env

2010-09-09 Thread Kenneth Dombrowski
On Wed, Sep 8, 2010 at 6:55 PM, Paul Rubin no.em...@nospam.invalid wrote: Carl Banks pavlovevide...@gmail.com writes: Since Python 2.7 is released, Python 2.5 is no longer accepting bug fixes, only security fixes.  So be aware. Segfaults should be treated as security holes unless there's

Python script for repairing .mov file ?

2010-09-09 Thread ctops.legal
Jave is much better; http://yfrog.com/naattempt1hj -- http://mail.python.org/mailman/listinfo/python-list

how to extract an implicit dict expression (with statement return)

2010-09-09 Thread Fritz Loseries
Hi, I do not know how to subject my problem in a better way. I have the following statement: return [ dict(x1 = elem.x1, x2 = elem.x2, x3 = elem.x3,) for elem in method(in_values) ] How can I transform it to an explicit description: result = ...

Re: how to extract an implicit dict expression (with statement return)

2010-09-09 Thread Benjamin Kaplan
On Thu, Sep 9, 2010 at 11:20 AM, Fritz Loseries fr...@loseries.info wrote: Hi, I do not know how to subject my problem in a better way. I have the following statement:    return [ dict(x1 = elem.x1, x2 = elem.x2, x3 = elem.x3,)                for elem in method(in_values)              ]

Re: [Python-ideas] with statement syntax forces ugly line breaks?

2010-09-09 Thread Mark Lawrence
On 08/09/2010 20:30, MRAB wrote: On 08/09/2010 19:07, Georg Brandl wrote: Thus spake the Lord: Thou shalt indent with four spaces. No more, no less. Four shall be the number of spaces thou shalt indent, and the number of thy indenting shall be four. Eight shalt thou not indent, nor either

Re: Slice a list of lists?

2010-09-09 Thread Mark Lawrence
On 08/09/2010 21:23, Jonno wrote: On Wed, Sep 8, 2010 at 3:18 PM, Jonnojonnojohn...@gmail.com wrote: On Wed, Sep 8, 2010 at 3:06 PM, Jonnojonnojohn...@gmail.com wrote: On Wed, Sep 8, 2010 at 2:11 PM, Benjamin Kaplan benjamin.kap...@case.edu wrote: On Wed, Sep 8, 2010 at 2:55 PM,

Re: [Python-ideas] with statement syntax forces ugly line breaks?

2010-09-09 Thread MRAB
On 09/09/2010 17:07, Mark Lawrence wrote: On 08/09/2010 20:30, MRAB wrote: On 08/09/2010 19:07, Georg Brandl wrote: Thus spake the Lord: Thou shalt indent with four spaces. No more, no less. Four shall be the number of spaces thou shalt indent, and the number of thy indenting shall be four.

Re: Slice a list of lists?

2010-09-09 Thread Jonno
On Thu, Sep 9, 2010 at 10:58 AM, Robert Kern robert.k...@gmail.com wrote: Please keep responses on the mailing list. However, I will reply below this one time. On Thu, Sep 9, 2010 at 10:35, Jonno jonnojohn...@gmail.com wrote: On Wed, Sep 8, 2010 at 4:26 PM, Robert Kern robert.k...@gmail.com

Re: Difference between queues and pipes in multiprocessing

2010-09-09 Thread Ethan Furman
James Mills wrote: On Wed, Aug 4, 2010 at 7:20 PM, Navkirat Singh navkir...@gmail.com wrote: I was wondering what are the differences between queues and pipes implemented using multiprocessing python module. Am I correct if I say, in pipes, if another process writes to one receiving end

Printing the name of a variable

2010-09-09 Thread Stephen Boulet
Does an arbitrary variable carry an attribute describing the text in its name? I'm looking for something along the lines of: x = 10 print x.name 'x' Perhaps the x.__getattribute__ method? Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: Printing the name of a variable

2010-09-09 Thread Albert Hopkins
On Thu, 2010-09-09 at 12:43 -0700, Stephen Boulet wrote: Does an arbitrary variable carry an attribute describing the text in its name? I'm looking for something along the lines of: x = 10 print x.name 'x' Perhaps the x.__getattribute__ method? Thanks. Variables are not objects and so

Why does linecache avoid stdin? How can I get equivalent of inspect.getsource() for an interactive session?

2010-09-09 Thread Mark Hirota
Here's my goal: To enable a function for interactive session use that, when invoked, will put source code for a specified object into a plaintext file. Based on some initial research, this seems similar to ipython's %save magic command (?) Example: def put(filename, object): f =

Re: SendKeys and Python 2.7

2010-09-09 Thread Michel Claveau - MVP
Hi! Example for send ^V (with PyWin32): import time,win32api,win32con win32api.keybd_event(win32con.VK_CONTROL, 0, 0, 0) win32api.keybd_event(ord('V'), 0, win32con.KEYEVENTF_EXTENDEDKEY | 0, 0) time.sleep(0.05) win32api.keybd_event(ord('V'), 0, win32con.KEYEVENTF_EXTENDEDKEY |

Re: Difference between queues and pipes in multiprocessing

2010-09-09 Thread Nobody
On Thu, 09 Sep 2010 12:23:17 -0700, Ethan Furman wrote: basically a Queue is a syncronization primitive used to share and pass data to and from parent/child processes. A pipe is as the name suggests, a socket pair connected end-to-end allowing for full-duplex communications. Isn't a

Re: accessing a text file

2010-09-09 Thread Nobody
On Wed, 08 Sep 2010 03:30:00 -0700, Baba wrote: Who is licensed to judge what can and cannot be posted as a question? Exactly the same set of people who are licensed to judge what can and cannot be posted as an answer. If you don't like the responses you get here, you could try posting your

Re: Catching a SIGSEGV signal on an import

2010-09-09 Thread Nobody
On Thu, 09 Sep 2010 05:23:14 -0700, Ryan wrote: But, since SIGSEGV is asynchronous SIGSEGV is almost always synchronous. In general, is there anyway to catch a SIGSEGV on import? No. If SIGSEGV is raised, it often indicates that memory has been corrupted. At that point, you can't assume

Re: accessing a text file

2010-09-09 Thread Paul Rubin
Nobody nob...@nowhere.com writes: If you don't like the responses you get here, you could try posting your questions on 4chan. If nothing else, that will give you a whole new perspective on what an unfriendly response really looks like. +1 QOTW --

analysis of algoritms

2010-09-09 Thread Baba
Hi In below code the outer loop test in step 4 will execute ( n + 1 ) times (note that an extra step is required to terminate the for loop, hence n + 1 and not n executions), which will consume T4( n + 1 ) time. (from http://en.wikipedia.org/wiki/Analysis_of_algorithms) 1get a positive

Re: Printing the name of a variable

2010-09-09 Thread Terry Reedy
On 9/9/2010 3:43 PM, Stephen Boulet wrote: In Python, 'variable' is a synonym for name and identifier,' An object can have 0 to many names attached to it. An object can also be a member of 0 to many collections. Modules, classes, and functions have 'definition name' strings attached to them

how to kill a subprocess

2010-09-09 Thread cerr
Hi There, I'm calling a python script from a php script which again calls a perl script with subprocess.popen(). This seems to work fine so far only that once the python script completed it is becoming a zombie because the perl script in the background is still running... so before i exit the

Re: analysis of algoritms

2010-09-09 Thread Almar Klein
On 9 September 2010 23:39, Baba raoul...@gmail.com wrote: Hi In below code the outer loop test in step 4 will execute ( n + 1 ) times (note that an extra step is required to terminate the for loop, hence n + 1 and not n executions), which will consume T4( n + 1 ) time. (from

[ANN] ACCU 2011 Conference Call for Proposals -- deadline approaching

2010-09-09 Thread aspro
Hi all, This is a reminder that the deadline for the ACCU 2011 CfP is approaching fast--26th of September 2010. If you have not sent your proposals yet, below there are more details on how to do so. Call for Proposals - ACCU 2011 April 13-16, 2011. Barcelo Oxford Hotel, Oxford, UK Submission

Re: analysis of algoritms

2010-09-09 Thread Robert Kern
On 9/9/10 4:39 PM, Baba wrote: Hi In below code the outer loop test in step 4 will execute ( n + 1 ) times (note that an extra step is required to terminate the for loop, hence n + 1 and not n executions), which will consume T4( n + 1 ) time. (from

Re: are there pros or contras, keeping a connection to a (sqlite) database ?

2010-09-09 Thread Gerhard Häring
On Thu, Sep 9, 2010 at 12:29 AM, CM cmpyt...@gmail.com wrote: [...] I'm not even sure what a connection really is; I assumed it was nothing more than a rule that says to write to the database with the file named in the parentheses. [...] The following list is not exclusive, but these are the

Re: are there pros or contras, keeping a connection to a (sqlite) database ?

2010-09-09 Thread CM
On Sep 9, 4:41 am, News123 news1...@free.fr wrote: On 09/09/2010 12:29 AM, CM wrote: On Sep 8, 1:09 pm, Stef Mientki stef.mien...@gmail.com wrote:  hello, I wrap my database in some class, and on creation of the instance, a connection to the database is created, and will stay

Re: Why does linecache avoid stdin? How can I get equivalent of inspect.getsource() for an interactive session?

2010-09-09 Thread Thomas Jollans
On Thursday 09 September 2010, it occurred to Mark Hirota to exclaim: Here's my goal: To enable a function for interactive session use that, when invoked, will put source code for a specified object into a plaintext file. Based on some initial research, this seems similar to ipython's %save

Re: Queue cleanup

2010-09-09 Thread John Nagle
On 9/8/2010 6:20 PM, Paul Rubin wrote: What tricks on tricks? Even the fanciest GC's are orders of magnitude less complicated than any serious database, optimizing compiler, OS kernel, file system, etc. Real-world software is complicated. Get used to that fact, and look for ways to manage the

Re: analysis of algoritms

2010-09-09 Thread Alain Ketterlin
Baba raoul...@gmail.com writes: In below code the outer loop test in step 4 will execute ( n + 1 ) times (note that an extra step is required to terminate the for loop, hence n + 1 and not n executions), which will consume T4( n + 1 ) time. (from

Re: analysis of algoritms

2010-09-09 Thread Dave Angel
On 2:59 PM, Baba wrote: Hi In below code the outer loop test in step 4 will execute ( n + 1 ) times (note that an extra step is required to terminate the for loop, hence n + 1 and not n executions), which will consume T4( n + 1 ) time. (from http://en.wikipedia.org/wiki/Analysis_of_algorithms)

Re: Difference between queues and pipes in multiprocessing

2010-09-09 Thread Ethan Furman
Nobody wrote: On Thu, 09 Sep 2010 12:23:17 -0700, Ethan Furman wrote: basically a Queue is a syncronization primitive used to share and pass data to and from parent/child processes. A pipe is as the name suggests, a socket pair connected end-to-end allowing for full-duplex communications.

Re: how to kill a subprocess

2010-09-09 Thread Alain Ketterlin
cerr ron.egg...@gmail.com writes: I'm calling a python script from a php script which again calls a perl script with subprocess.popen(). This seems to work fine so far only that once the python script completed it is becoming a zombie because the perl script in the background is still

Re: how to kill a subprocess

2010-09-09 Thread cerr
On Sep 9, 3:29 pm, Alain Ketterlin al...@dpt-info.u-strasbg.fr wrote: cerr ron.egg...@gmail.com writes: I'm calling a python script from a php script which again calls a perl script with subprocess.popen(). This seems to work fine so far only that once the python script completed it is

Re: how to kill a subprocess

2010-09-09 Thread MRAB
On 09/09/2010 23:52, cerr wrote: On Sep 9, 3:29 pm, Alain Ketterlinal...@dpt-info.u-strasbg.fr wrote: cerrron.egg...@gmail.com writes: I'm calling a python script from a php script which again calls a perl script with subprocess.popen(). This seems to work fine so far only that once the

Re: SendKeys and Python 2.7

2010-09-09 Thread Jakson A. Aquino
On Thu, Sep 9, 2010 at 5:40 PM, Michel Claveau - MVP enleverlesx_xx...@xmclavxeaux.com.invalid wrote: Hi! Example for send ^V  (with PyWin32):  import time,win32api,win32con  win32api.keybd_event(win32con.VK_CONTROL, 0, 0, 0)  win32api.keybd_event(ord('V'), 0, win32con.KEYEVENTF_EXTENDEDKEY

Re: analysis of algoritms

2010-09-09 Thread Wayne Brehaut
On Thu, 09 Sep 2010 18:26:52 -0400, Dave Angel da...@ieee.org wrote: On 2:59 PM, Baba wrote: Hi In below code the outer loop test in step 4 will execute ( n + 1 ) times (note that an extra step is required to terminate the for loop, hence n + 1 and not n executions), which will consume T4(

reading multiple files

2010-09-09 Thread Mag Gam
I have 3 files which are constantly being updated therefore I use tail -f /var/log/file1, tail -f /var/log/file2, and tail -f /var/log/file3 For 1 file I am able to manage by tail -f /var/log/file1 | python prog.py prog.py looks like this: f=sys.stdin for line in f: print line But how can I

Re: how to kill a subprocess

2010-09-09 Thread Alain Ketterlin
cerr ron.egg...@gmail.com writes: x.terminate() (and then x.wait()) where x is the value returned by subprocess.Popen(). Well, this is what I have: writelog(starting GPS simulator) commandlist=[GPSsim,proto,GPSfile] writelog(commandlist[0]+ +commandlist[1]+ +commandlist[2])

weighted mean; weighted standard error of the mean (sem)

2010-09-09 Thread C Barrington-Leigh
I am looking for some reaally basic statistical tools. I have some sample data, some sample weights for those measurements, and I want to calculate a mean and a standard error of the mean. Here are obvious places to look: numpy scipy.stats statsmodels It seems to me that numpy's mean and

Re: Speed-up for loops

2010-09-09 Thread BartC
Stefan Behnel stefan...@behnel.de wrote in message news:mailman.563.1283921317.29448.python-l...@python.org... BartC, 08.09.2010 03:45: Getting back to the OP's code again (trivial and pointless as it might seem), I got these results: C (gcc 3.4.5 -O3) 0.8 secs C (DMC-o) 2.3 secs C (lccwin32

Re: reading multiple files

2010-09-09 Thread Alain Ketterlin
Mag Gam magaw...@gmail.com writes: I have 3 files which are constantly being updated therefore I use tail -f /var/log/file1, tail -f /var/log/file2, and tail -f /var/log/file3 For 1 file I am able to manage by tail -f /var/log/file1 | python prog.py prog.py looks like this: f=sys.stdin

Re: weighted mean; weighted standard error of the mean (sem)

2010-09-09 Thread Tim Leslie
On 10 September 2010 10:36, C Barrington-Leigh cpblpub...@gmail.com wrote: Most immediately, I'd love to get code for weighted sem. I'll write it otherwise, but if I do I'd love to know whom to bug to get it incorporated into numpy.sem ... The best place to ask about numpy related stuff is

How Python works: What do you know about support for negative indices?

2010-09-09 Thread Raymond Hettinger
Hello Folks. It doesn't seem to be common knowledge when and how a[x] gets translated to a[x+len(x)]. So, here's a short info post on how Python supports negative indices for sequences. I've put the answer below, but if you want to quickly test your own knowledge, ask yourself which of these

Re: weighted mean; weighted standard error of the mean (sem)

2010-09-09 Thread C Barrington-Leigh
The best place to ask about numpy related stuff is the numpy mailing list at: http://mail.scipy.org/mailman/listinfo/numpy-discussion This is also the best place to present a patch if you have code to contribute. In my experience the numpy devs are always happy to have new contributors,

Re: weighted mean; weighted standard error of the mean (sem)

2010-09-09 Thread Tim Leslie
On 10 September 2010 11:43, C Barrington-Leigh cpblpub...@gmail.com wrote: The best place to ask about numpy related stuff is the numpy mailing list at: http://mail.scipy.org/mailman/listinfo/numpy-discussion This is also the best place to present a patch if you have code to contribute. In

Re: Printing the name of a variable

2010-09-09 Thread Ben Finney
Albert Hopkins mar...@letterboxes.org writes: On Thu, 2010-09-09 at 12:43 -0700, Stephen Boulet wrote: Does an arbitrary variable carry an attribute describing the text in its name? Variables are not objects and so they have no attributes. Another way of thinking about is that there are

Re: How Python works: What do you know about support for negative indices?

2010-09-09 Thread Ben Finney
Raymond Hettinger pyt...@rcn.com writes: It doesn't seem to be common knowledge when and how a[x] gets translated to a[x+len(x)]. So, here's a short info post on how Python supports negative indices for sequences. Thanks for this. Could you post your messages using a channel that doesn't

Re: reading multiple files

2010-09-09 Thread Mag Gam
Thanks for your response. I was going by this thread, http://mail.python.org/pipermail/tutor/2009-January/066101.html makes you wonder even if its possible. I will try your first solution by doing mkfifo on the files. On Thu, Sep 9, 2010 at 9:19 PM, Alain Ketterlin

Re: Printing the name of a variable

2010-09-09 Thread Mel
Stephen Boulet wrote: Does an arbitrary variable carry an attribute describing the text in its name? I'm looking for something along the lines of: x = 10 print x.name 'x' Perhaps the x.__getattribute__ method? Thanks. Hmm. Recent scholarship suggests that the Iliad and the Odyssey may

Re: How Python works: What do you know about support for negativeindices?

2010-09-09 Thread Mark Tolonen
Ben Finney ben+pyt...@benfinney.id.au wrote in message news:874ody9w3v@benfinney.id.au... Raymond Hettinger pyt...@rcn.com writes: It doesn't seem to be common knowledge when and how a[x] gets translated to a[x+len(x)]. So, here's a short info post on how Python supports negative

[issue9810] bzip2 build sometimes fails (VS8.0)

2010-09-09 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: bzip2 project sometimes fails to build pyd file. This is because (snip) nmake /nologo /f makefile.msc lib (snip) nmake /nologo /f makefile.msc clean is run by bzip2.vcproj, but lib command won't create bzip2.exe nor

[issue9609] make cProfile multi-stack aware

2010-09-09 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9609 ___ ___ Python-bugs-list

[issue9622] Allow to set profile/trace function globally

2010-09-09 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9622 ___ ___ Python-bugs-list

[issue9116] test_capi.test_no_FatalError_infinite_loop crash on Windows

2010-09-09 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Here is the patch. On VS8.0 or above, * Avoid DebugBreak() call by IsDebuggerPresent(). * Tell abort() not to print message to console or window. -- keywords: +patch Added file:

[issue9733] Can't iterate over multiprocessing.managers.DictProxy

2010-09-09 Thread Ask Solem
Ask Solem a...@opera.com added the comment: I expected I could iterate over a DictProxy as I do over a regular dict. DictProxy doesn't support iterkeys(), itervalues(), or iteritems() either. So while iter(d) could do iter(d.keys()) behind the scenes, it would mask the fact that

[issue9811] strftime strips '%' from unknown format codes on OS X

2010-09-09 Thread Sverre Johansen
New submission from Sverre Johansen sverre.johan...@gmail.com: There seems to be a platform difference in the way stftime handles unknown format codes. In OSX Python removes the percentage sign from the returned string when the format code is unknown. In Linux it leaves it. Look at the

[issue9796] Add summary tables for unittest API

2010-09-09 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: This has been on my 'todo list' for a long time. Feel free to get to it before me. Please *don't* include the now deprecated assert* methods in the table. I'd like to move all the deprecated methods to a separate section of the

[issue9799] Compilation error for branch py3k on AIX 6

2010-09-09 Thread Sébastien Sablé
Sébastien Sablé sa...@users.sourceforge.net added the comment: OK for me to close it as a compiler bug since there is a workaround. It would be great if we could detect this compiler and deactivate this optimization automatically, but I am too lazy to search the xlc compiler documentation for

[issue9811] strftime strips '%' from unknown format codes on OS X

2010-09-09 Thread Sverre Johansen
Sverre Johansen sverre.johan...@gmail.com added the comment: This is because of differences in GNU and BSD C stdlib; I get the same results using the BSD and GNU versions of `date`. $ date +%q What does Python typically do in cases like this? --

[issue9799] Compilation error for branch py3k on AIX 6

2010-09-09 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9799 ___ ___ Python-bugs-list

[issue9804] ascii() does not always join surrogate pairs

2010-09-09 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: New patch with tests. -- Added file: http://bugs.python.org/file18810/backslashsurrogates2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9804

[issue3125] test_multiprocessing causes test_ctypes to fail

2010-09-09 Thread Ask Solem
Ask Solem a...@opera.com added the comment: As no one has been able to confirm that this is still an issue, I'm closing it as out of date. The issue can be reopened if necessary. -- resolution: accepted - out of date status: open - closed ___ Python

[issue3111] multiprocessing ppc Debian/ ia64 Ubuntu compilation error

2010-09-09 Thread Ask Solem
Ask Solem a...@opera.com added the comment: As no one is able to confirm that this is still an issue, I'm closing it. It can be reopened if necessary. -- resolution: - out of date ___ Python tracker rep...@bugs.python.org

[issue9757] Add context manager protocol to memoryviews

2010-09-09 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Sounds good - I'd say just commit whenever you're happy with it then. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9757 ___

[issue9738] Document the encoding of functions bytes arguments of the C API

2010-09-09 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: #6543 changed the encoding of the filename argument of PyRun_SimpleFileExFlags() (and all functions based on PyRun_SimpleFileExFlags) and c_filename attribute of the compiler (private) structure in Python 3.1.3: use utf-8 in

[issue9713] Py_CompileString fails on non decode-able paths.

2010-09-09 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: #6543 changed the encoding of the filename argument of PyRun_SimpleFileExFlags() (and all functions based on PyRun_SimpleFileExFlags) and c_filename attribute of the compiler (private) structure in Python 3.1.3: use utf-8 in

[issue8611] Python3 doesn't support locale different than utf8 and an non-ASCII path (POSIX)

2010-09-09 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: See also #9713 (Py_CompileString fails on non decode-able paths) and #9738 (Document the encoding of functions bytes arguments of the C API). -- ___ Python tracker rep...@bugs.python.org

[issue9757] Add context manager protocol to memoryviews

2010-09-09 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Committed in r84649. Thanks for the comments! -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue9609] make cProfile multi-stack aware

2010-09-09 Thread Daniel Stutzbach
Changes by Daniel Stutzbach dan...@stutzbachenterprises.com: -- nosy: +stutzbach ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9609 ___ ___

[issue9808] Implement os.getlogin on Windows

2010-09-09 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: After a quick glance the patch looks alright, just cleaned a few things up in issue9808.diff (moved the #include up with others, removed 'is not None' from tests). The test skip decorator could also be moved to the LoginTests class level. Is

[issue2745] Add support for IsWow64Process

2010-09-09 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: See also Issue7860. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2745 ___

[issue9811] strftime strips '%' from unknown format codes on OS X

2010-09-09 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Python's strftime is a thin wrapper around the system strftime. This means, for example, that a slightly different set of % codes is supported on windows vs linux. So, from Python's point of view this is at *most* a doc bug. That

[issue9805] Documentation on old-style formatting of dicts is overly restrictive

2010-09-09 Thread Ken Basye
Ken Basye ken.ba...@gmail.com added the comment: I think Eric is correct; it's a dupe. And I was wrong about not otherwise being able to format an empty dictionary - %s % (d,) will always work and is arguably the right thing to do anyway. -- type: behavior - versions: -Python 3.1,

[issue9812] cPickle segfault with nested dicts in threaded env

2010-09-09 Thread Kenneth Dombrowski
New submission from Kenneth Dombrowski kdombrow...@gmail.com: FreeBSD 8.0-RELEASE-p2 Python 2.5.5 amd64 attached diff provides a test for cpickle which reproduces a segfault when pickling 15 nested dicts in a threaded environment cpickle.patch attached to http://bugs.python.org/issue3640

[issue9809] Wrong Registery Entries on win64

2010-09-09 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: Wow6432Node registry entries are for applications running WOW - aka 32-bit applications on a 64-bit platform. The 64-bit Python installer is placing its entries in the appropriate location. See the winreg documentation for information that might

[issue9805] Documentation on old-style formatting of dicts is overly restrictive

2010-09-09 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- resolution: - duplicate stage: needs patch - committed/rejected status: open - closed superseder: - %-formatting and dicts ___ Python tracker rep...@bugs.python.org

[issue9811] strftime strips '%' from unknown format codes on OS X

2010-09-09 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: I think there have been some rumblings about writing our own strftime Yes, see issue #3173. Another related issue is #9650 which discusses how to properly document strftime codes. --

[issue9808] Implement os.getlogin on Windows

2010-09-09 Thread Jon Anglin
Jon Anglin jang...@fortresgrand.com added the comment: I can't answer that for the 'LOGNAME' environment variable on non-Windows systems, I was just keying off of what the docs claimed. As for Windows, I just came across this article http://support.microsoft.com/kb/273633 that shows we can

[issue9609] make cProfile multi-stack aware

2010-09-09 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Here is a new patch. When 'allthreads' is specified to cProfile.Profile.enable(), profling is enabled on all threads. The testsuite tests to see that all threads do indeed register, it does not attempt to validate the timings.

[issue9609] make cProfile multi-stack aware

2010-09-09 Thread Daniel Stutzbach
Changes by Daniel Stutzbach dan...@stutzbachenterprises.com: -- nosy: +georg.brandl stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9609 ___

[issue9808] Implement os.getlogin on Windows

2010-09-09 Thread Jon Anglin
Jon Anglin jang...@fortresgrand.com added the comment: Here is an updated patch with the updated test. This test does not use either the LOGNAME or USERNAME environment variables. -- Added file: http://bugs.python.org/file18814/issue9808.diff ___

[issue9812] cPickle segfault with nested dicts in threaded env

2010-09-09 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Python has several known crashers, they are not considered as security holes. It seems that FreeBSD has a small stack size for threads (64k); did you try to increase it with thread.stack_size(10**6)? -- nosy:

[issue9410] Add Unladen Swallow's optimizations to Python 3's pickle.

2010-09-09 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The patch was finally committed in r84653. Thanks to everyone who participated in this. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker

[issue9807] deriving configuration information for different builds with the same prefix

2010-09-09 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: IMO there should not be any need to fetch information from config.h or the Makefile. What about a sys.build_config dictionary containing all the necessary data? -- nosy: +amaury.forgeotdarc

[issue7300] Unicode arguments in str.format()

2010-09-09 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7300 ___ ___ Python-bugs-list

[issue8556] Confusing string formatting examples

2010-09-09 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8556 ___ ___ Python-bugs-list

[issue9804] ascii() does not always join surrogate pairs

2010-09-09 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: I agree with the feature and the patch, with two minor nits: - Py_UCS4 should be used in place of unsigned long - *p = 0xD800 is the most selective test and should be the first -- nosy: +amaury.forgeotdarc

[issue8913] Document that datetime.__format__ is datetime.strftime

2010-09-09 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8913 ___ ___ Python-bugs-list

  1   2   >