ANN: RPyC v3.1.0

2011-03-22 Thread Tomer Filiba
RPyC, or Remote Python Call, is a transparent and symmetrical python library for remote procedure calls, clustering and distributed-computing. RPyC makes use of object-proxying, a technique that employs python's dynamic nature, to overcome the physical boundaries between processes and

ANN: mock 0.7.0 final release

2011-03-22 Thread Fuzzyman
Yay for conference driven development, I got the final release of mock 0.7.0 done in time for PyCon. No api changes since the release candidate. The only changes are documentation improvements (double yay!) * http://pypi.python.org/pypi/mock/ (download) * http://www.voidspace.org.uk/python/mock/

Re: how to install the PLY (Python Lex-Yacc) package in windows

2011-03-22 Thread Chris Rebert
On Mon, Mar 21, 2011 at 10:53 PM, Sachin Kumar Sharma ssharm...@slb.com wrote: BB, I downloaded PLY (Python Lex-Yacc) package for a script use it for parsing and looking to install under windows. It has setup.py file, and the command mentioned for installation is Python setup.py install

Problem with keyboard up/down arrows in Python 2.4 interpreter

2011-03-22 Thread Julien
Hi, I'm having problems when typing the up/down arrows in the Python 2.4 interpreter (exact version: Python 2.4.6 (#1, Mar 3 2011, 15:45:53) [GCC 4.2.1 (Apple Inc. build 5664)] on darwin). When I press the up arrow it outputs ^[[A and when I press the down arrow it outputs ^[[B. I've google it

Re: Problem with keyboard up/down arrows in Python 2.4 interpreter

2011-03-22 Thread Benjamin Kaplan
On Tue, Mar 22, 2011 at 2:27 AM, Julien jpha...@gmail.com wrote: Hi, I'm having problems when typing the up/down arrows in the Python 2.4 interpreter (exact version: Python 2.4.6 (#1, Mar  3 2011, 15:45:53) [GCC 4.2.1 (Apple Inc. build 5664)] on darwin). When I press the up arrow it outputs

Re: Proxy authentication required

2011-03-22 Thread gervaz
On 22 Mar, 00:02, Chris Rebert c...@rebertia.com wrote: On Mon, Mar 21, 2011 at 2:38 AM, gervaz ger...@gmail.com wrote: Hi all, I've got to download some web pages but I'm behind a proxy. So far this is what I've used without any successful result receiving the error:

Re: Free Software University - Python Certificate

2011-03-22 Thread News123
Hi Juan, On 03/22/2011 04:54 AM, Giovani wrote: Hi all, my name is Juan and I suscribed to this website called Free Software University, opened recently. One of the goals of this website is making some free high quality courses, one of them about Python. I want to say this message is not

Re: Decorator Syntax

2011-03-22 Thread Laurent Claessens
And I'm willing to bet that there are plenty of scripts out there that use dec as a name for Decimal objects. You won. I owe you a beer ;) Laurent -- http://mail.python.org/mailman/listinfo/python-list

Re: Proxy authentication required

2011-03-22 Thread gervaz
On 22 Mar, 09:34, gervaz ger...@gmail.com wrote: On 22 Mar, 00:02, Chris Rebert c...@rebertia.com wrote: On Mon, Mar 21, 2011 at 2:38 AM, gervaz ger...@gmail.com wrote: Hi all, I've got to download some web pages but I'm behind a proxy. So far this is what I've used without any

Re: Free Software University - Python Certificate

2011-03-22 Thread Giovani
I don't know whether this site is useful or not. Assuming this site is serious: If you are already subscribed you might be able to give some feedback. One can't even see the list of courses without regsitering. This is very unprofessional and might indicate, that they just want to reap

Re: Decorator Syntax

2011-03-22 Thread Rafe Kettler
On Mar 21, 8:59 pm, Mike Patterson mikepatterso...@gmail.com wrote: In my Python class the other day, the professor was going over decorators and he briefly mentioned that there had been this huge debate about the syntax and using the @ sign to signify decorators. I read about the alternative

argparse and filetypes

2011-03-22 Thread Bradley Hintze
Hi, I just started with argparse. I want to simply check the extension of the file that the user passes to the program. I get a ''file' object has no attribute 'rfind'' error when I use os.path.splitext(args.infile). Here is my code. import argparse, sys, os des = 'Get restraint definitions

Separating design from code

2011-03-22 Thread Νικόλαος Κούρας
Hello, in this page http://www.superhost.gr/hosting.html at the bottom end i decided to create a textarea for the user to enter some comments related to the page that i want to submit to a mysql database table. Now i have seperated the design from the code: http://www.superhost.gr/hosting.html

Re: os.stat bug?

2011-03-22 Thread Laszlo Nagy
I guess that the code is running in kernel mode. I think this because I can send a KILL signal to it and the state changes to the following: What's your operating system and file system? A better file system or system setting may increase your performance a lot. XFS or ext3 / ext4 with hashed

Re: argparse and filetypes

2011-03-22 Thread Alex Willmer
On Mar 22, 2:06 pm, Bradley Hintze bradle...@aggiemail.usu.edu wrote: I just started with argparse. I want to simply check the extension of the file that the user passes to the program. I get a ''file' object has no attribute 'rfind'' error when I use os.path.splitext(args.infile).  Here is my

Re: puzzle about file Object.readlines()

2011-03-22 Thread Gabriel Genellina
On 19 mar, 16:05, Dave Angel da...@ieee.org wrote: On 01/-10/-28163 02:59 PM, MRAB wrote: On 19/03/2011 13:15, 林桦 wrote: i use python 2.5. os is window 7. the puzzle is :python don't read the leave text when meet character: chr(26) the code is: /fileObject=open('d:\\temp\\1.txt','w')

Re: How to build and upload eggs to pypi?

2011-03-22 Thread Gabriel Genellina
On 21 mar, 08:53, morphex morp...@gmail.com wrote: Hi, I have a couple of project which are on PyPi, and now I'd like to update some of them.  Is there a good howto somewhere, showing how to add new versions (instead of updating one that's already there) etc? There is a tutorial:

os.stat UnicodeEncodeError:

2011-03-22 Thread Sandy Oz
Hello everyone, I'm running into a problem with file names containing Unicode chars. Here is the error that I get when calling os.path.isfile: File /usr/lib/python2.6/genericpath.py, line 29, in isfile st = os.stat(path) UnicodeEncodeError: 'ascii' codec can't encode characters in

problem installing a module

2011-03-22 Thread luca72
Hello i try to install pyvisa under winxp sp3 i get this error: home_dir =os.environ['HOME'] return self.data[key.upper()] key error : 'HOME' i have installed a lot of tyme pyvisa and this is the first time that i get this error. Thanks Luca --

Re: argparse and filetypes

2011-03-22 Thread Alex Willmer
On Mar 22, 2:06 pm, Bradley Hintze bradle...@aggiemail.usu.edu wrote: Hi, I just started with argparse. I want to simply check the extension of the file that the user passes to the program. I get a ''file' object has no attribute 'rfind'' error when I use os.path.splitext(args.infile).

Re: Free Software University - Python Certificate

2011-03-22 Thread Noah Hall
On Tue, Mar 22, 2011 at 11:30 AM, Giovani elgrana...@gmail.com wrote: I don't know whether this site is useful or not. Assuming this site is serious: If you are already subscribed you might be able to give some feedback. One can't even see the list of courses without regsitering. This is

SQLObject 0.15.1

2011-03-22 Thread Oleg Broytman
Hello! I'm pleased to announce version 0.15.1, a bugfix release of branch 0.15 of SQLObject. What is SQLObject = SQLObject is an object-relational mapper. Your database tables are described as classes, and rows are instances of those classes. SQLObject is meant to be easy to

Re: Problem with keyboard up/down arrows in Python 2.4 interpreter

2011-03-22 Thread Sridhar Ratnakumar
On Monday, March 21, 2011 at 11:37 PM, Benjamin Kaplan wrote: On Tue, Mar 22, 2011 at 2:27 AM, Julien jpha...@gmail.com wrote: Hi, I'm having problems when typing the up/down arrows in the Python 2.4 interpreter (exact version: Python 2.4.6 (#1, Mar 3 2011, 15:45:53) [GCC 4.2.1 (Apple

Re: Switching between Python releases under Windows

2011-03-22 Thread Sridhar Ratnakumar
On Tue, Mar 8, 2011 at 8:03 AM, Tim Golden m...@timgolden.me.uk wrote: On 08/03/2011 15:58, Tim Golden wrote: On 08/03/2011 14:55, Edward Diener wrote: I have multiple versions of Python installed under Vista. Is there any easy way of switching between them so that invoking python and file

Re: problem installing a module

2011-03-22 Thread Emile van Sebille
On 3/22/2011 8:19 AM luca72 said... Hello i try to install pyvisa under winxp sp3 i get this error: home_dir =os.environ['HOME'] Installation is clearly expecting a HOME environment variable that isn't there. You'll need to set it then install. HTH, Emile return

Re: interrupted system call w/ Queue.get

2011-03-22 Thread Philip Winston
On Feb 18, 10:23 am, Jean-Paul Calderone calderone.jeanp...@gmail.com wrote: The exception is caused by a syscall returning EINTR.  A syscall will return EINTR when a signal arrives and interrupts whatever that syscall was trying to do.  Typically a signal won't interrupt the syscall unless

Problem with re module

2011-03-22 Thread John Harrington
I'm trying to use the following substitution, lineList[i]=re.sub(r'(\\begin{document})([^$])',r'\1\n\n \2',lineList[i]) I intend this to match any string \begin{document} that doesn't end in a line ending. If there's no line ending, then, I want to place two carriage returns between the

Re: argparse and filetypes

2011-03-22 Thread Robert Kern
On 3/22/11 9:06 AM, Bradley Hintze wrote: Hi, I just started with argparse. I want to simply check the extension of the file that the user passes to the program. I get a ''file' object has no attribute 'rfind'' error when I use os.path.splitext(args.infile). Here is my code. import argparse,

Re: Problem with re module

2011-03-22 Thread John Bokma
John Harrington beartiger@gmail.com writes: I'm trying to use the following substitution, lineList[i]=re.sub(r'(\\begin{document})([^$])',r'\1\n\n \2',lineList[i]) I intend this to match any string \begin{document} that doesn't end in a line ending. If there's no line ending,

best practice to resolve module dependency within a reusable application

2011-03-22 Thread Marc Aymerich
Hi, I'm developing a reusable app splited into modules. The end user chooses what modules wants to keep installed. Most of this modules are quite independent from each other, but I have one of them (called moduleP) with a pretty strong dependency with another another(called moduleBase). So I need

Re: Problem with re module

2011-03-22 Thread Peter Otten
John Harrington wrote: I'm trying to use the following substitution, lineList[i]=re.sub(r'(\\begin{document})([^$])',r'\1\n\n \2',lineList[i]) I intend this to match any string \begin{document} that doesn't end in a line ending. If there's no line ending, then, I want to place two

Re: Problem with re module

2011-03-22 Thread John Harrington
On Mar 22, 11:16 am, John Bokma j...@castleamber.com wrote: John Harrington beartiger@gmail.com writes: I'm trying to use the following substitution,      lineList[i]=re.sub(r'(\\begin{document})([^$])',r'\1\n\n \2',lineList[i]) I intend this to match any string \begin{document}

Re: Re: Calling C++ Modules in Python

2011-03-22 Thread zxpatric
Dan, Recently I am trying out both the SWIG and BOOST, maybe Cython later. However, I didn't get lucky with the combination of the latest SWIGwin 2.0.2 and Python3.2. No matter I build _example.pyd, example.pyd or _example.dll, or example.dll, it just doesn't get imported as said in the

Re: Problem with re module

2011-03-22 Thread Benjamin Kaplan
On Tue, Mar 22, 2011 at 2:40 PM, John Harrington beartiger@gmail.com wrote: On Mar 22, 11:16 am, John Bokma j...@castleamber.com wrote: John Harrington beartiger@gmail.com writes: I'm trying to use the following substitution,      

help porting an open source toolkit to Mac and Windows/Cygwin

2011-03-22 Thread bobicanprogram
I am the facilitator for the SIMPL open source project (http:// www.icanprogram.com/simpl). The SIMPL toolkit project started over 10 years ago as a way to bring Send/Receive/Reply (QNX style) messaging to Linux. A SIMPL application consists of two or more interacting SIMPL modules. Those

Re: Problem with re module

2011-03-22 Thread John Harrington
On Mar 22, 12:07 pm, Benjamin Kaplan benjamin.kap...@case.edu wrote: On Tue, Mar 22, 2011 at 2:40 PM, John Harrington beartiger@gmail.com wrote: On Mar 22, 11:16 am, John Bokma j...@castleamber.com wrote: John Harrington beartiger@gmail.com writes: I'm trying to use the

Re: os.utime

2011-03-22 Thread Dan Stromberg
On Mon, Mar 21, 2011 at 2:43 AM, Christian Heimes li...@cheimes.de wrote: I'm sorry if I offended you in any way. I had to clarify the meaning of st_ctime many times in the past because people confused it for the creation ts of the file. Apologies if I got too defensive. I agree that it was

RE: Python 3.2 Debug build

2011-03-22 Thread Willis Cheung
Thanks for your answers. Just to make sure I do it correctly, is it the CPython package on http://hg.python.org the one which I should be downloading? Thanks again Willis From: Santoso Wijaya [mailto:santoso.wij...@gmail.com] Sent: Thursday, March 17, 2011 6:05 PM To: Willis Cheung Cc:

Re: Calling C++ Modules in Python

2011-03-22 Thread Stefan Behnel
zxpat...@gmail.com, 11.03.2011 23:16: On Mar 11, 2011 4:59pm, Dan Stromberg wrote: On Fri, Mar 11, 2011 at 1:15 PM, Patrick wrote: I saw in the Beginner document that •Is easily extended by adding new modules implemented in a compiled language such as C or C++. . While to my investigation, it

PyCObject_FromVoidPtr etc.

2011-03-22 Thread Fons Adriaensen
Hello all, Upgrading to 3.2 has provided some sort of cold shower. I have hundreds of extensions that fail to install due to PyCObject_FromVoidPtr() and PyCObject_AsVoidPtr() not longer being available, and I'm looking for a (hopefully) simple solution. In all cases, these are extensions that

May I discuss here issues on Machine Learning?

2011-03-22 Thread joy99
Dear Group, My apology to pose this non python question in this forum. I am trying to develop one Naive Bayes Classifier and one HMM with Python. But my question is not related to Python, rather to these two models, whether I am choosing right parameters, etc for these models. Python is a chosen

Re: Problem with re module

2011-03-22 Thread Ethan Furman
John Harrington wrote: Here's a script that illustrates the problem. Any help would be appreciated!: #BEGIN SCRIPT import re outlist = [] myfile = raw.tex fin = open(myfile, r) lineList = fin.readlines() fin.close() for i in range(0,len(lineList)):

Re: os.stat bug?

2011-03-22 Thread Dan Stromberg
On Mon, Mar 21, 2011 at 1:32 AM, Laszlo Nagy gand...@shopzeus.com wrote: Hi All, I have a Python program that goes up to 100% CPU. Just like this (top): PID USERNAME THR PRI NICE SIZERES STATE C TIME WCPU COMMAND 80212 user1 2 440 70520K 16212K select 1

Re: Python 3.2 Debug build

2011-03-22 Thread Benjamin Kaplan
On Tue, Mar 22, 2011 at 6:25 PM, Willis Cheung wche...@pdftron.com wrote: Thanks for your answers. Just to make sure I do it correctly, is it the CPython package on http://hg.python.org the one which I should be downloading? Thanks again Wilis If you want to compile your own copy of

Re: Proxy authentication required

2011-03-22 Thread Chris Rebert
On Tue, Mar 22, 2011 at 3:57 AM, gervaz ger...@gmail.com wrote: On 22 Mar, 09:34, gervaz ger...@gmail.com wrote: On 22 Mar, 00:02, Chris Rebert c...@rebertia.com wrote: On Mon, Mar 21, 2011 at 2:38 AM, gervaz ger...@gmail.com wrote: Hi all, I've got to download some web pages but I'm

Re: PyCObject_FromVoidPtr etc.

2011-03-22 Thread Martin v. Loewis
Is there a way to keep things (almost) as simple as this using the 'Capsules' ?? Most certainly. Instead of PyCObject_FromVoidPtr, use PyCapsule_New. Either pass NULL as a name, or the class name for additional type-safety. Instead of PyCObject_AsVoidPtr, use PyCapsule_GetPointer. The only

file print extra spaces

2011-03-22 Thread monkeys paw
When i open a file in python, and then print the contents line by line, the printout has an extra blank line between each printed line (shown below): f=open('authors.py') i=0 for line in f: print(line) i=i+1 if i 14: break author_list = {

Re: file print extra spaces

2011-03-22 Thread bruce bushby
Run your script and pipe the output to | od -c the octal dumper will show you what characters you're printing.I'm guessing python's print is adding one and each line in your file contains another. You can also use a , in python I forget the exact syntax, something like print(line), to

Re: file print extra spaces

2011-03-22 Thread Alex Willmer
On Mar 23, 1:33 am, monkeys paw mon...@joemoney.net wrote: When i open a file in python, and then print the contents line by line, the printout has an extra blank line between each printed line (shown below):   f=open('authors.py')   i=0   for line in f:         print(line)         i=i+1

Re: file print extra spaces

2011-03-22 Thread Thomas L. Shinnick
At 08:33 PM 3/22/2011, monkeys paw wrote: When i open a file in python, and then print the contents line by line, the printout has an extra blank line between each printed line (shown below): f=open('authors.py') i=0 for line in f: print(line) i=i+1 if i 14:

Re: file print extra spaces

2011-03-22 Thread MRAB
On 23/03/2011 01:33, monkeys paw wrote: When i open a file in python, and then print the contents line by line, the printout has an extra blank line between each printed line (shown below): f=open('authors.py') i=0 for line in f: print(line) i=i+1 if i 14: break author_list = {

Re: file print extra spaces

2011-03-22 Thread MRAB
On 23/03/2011 01:54, Thomas L. Shinnick wrote: At 08:33 PM 3/22/2011, monkeys paw wrote: When i open a file in python, and then print the contents line by line, the printout has an extra blank line between each printed line (shown below): f=open('authors.py') i=0 for line in f: print(line)

Re: May I discuss here issues on Machine Learning?

2011-03-22 Thread Ben Finney
joy99 subhakolkata1...@gmail.com writes: My apology to pose this non python question in this forum. I am trying to develop one Naive Bayes Classifier and one HMM with Python. But my question is not related to Python, rather to these two models, whether I am choosing right parameters, etc for

Re: having both dynamic and static variables

2011-03-22 Thread John Ladasky
On Mar 5, 9:44 pm, John Nagle na...@animats.com wrote:     All functions in Python can be replaced dynamically. While they're running. From another thread.  Really. Indeed, and I find this feature VERY useful when coding. Two places I've used it are: 1) in GUI coding (say, when I have a

[issue11561] coverage of Python regrtest cannot see initial import of libs

2011-03-22 Thread Sandro Tosi
Changes by Sandro Tosi sandro.t...@gmail.com: -- nosy: +sandro.tosi ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11561 ___ ___ Python-bugs-list

[issue11629] Reference implementation for PEP 397

2011-03-22 Thread Mark Hammond
New submission from Mark Hammond skippy.hamm...@gmail.com: A tracking bug for the reference implementation of PEP397 - A Python launcher for Windows. -- assignee: mhammond components: Documentation files: pep-0397-reference.py messages: 131723 nosy: mhammond priority: normal severity:

[issue11623] Distutils is reporting OSX 10.6 w/ XCode 4 as universal

2011-03-22 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: Issue11485 is related to this. As Ned noted Ned and I will look into this. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11623

[issue11393] Integrate faulthandler module into Python 3.3

2011-03-22 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: STINNER Victor wrote: STINNER Victor victor.stin...@haypocalc.com added the comment: It would be nice if it were enabled by default for fatal errors (and asserts perhaps?). That would mean that the module should be a builtin module,

[issue11625] Typo in collections.abc docs

2011-03-22 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: -- nosy: +eli.bendersky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11625 ___ ___ Python-bugs-list

[issue11630] refleak in test_import

2011-03-22 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: Introduced by ef2b6305d395. -- assignee: haypo messages: 131727 nosy: haypo, pitrou priority: normal severity: normal status: open title: refleak in test_import type: resource usage versions: Python 3.3

[issue11618] Locks broken wrt timeouts on Windows

2011-03-22 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Martin: I wouldn't worry too much about replacing a Mutex with a Semaphore. There is no reason to believe that they behave in any way different scheduling wise, and if they did, then any python code that this would affect would

[issue11626] Py_LIMITED_API on windows: unresolved symbol __imp___PyArg_ParseTuple_SizeT

2011-03-22 Thread Rainer Schaaf
Rainer Schaaf r...@pdflib.com added the comment: fixing this for the next version of course would be acceptable. As I can use the extension (not setting Py_LIMITED_API) even with 3.2.0 it is not a big problem. I only loose the benefit of Py_LIMITED_API and will have to release another

[issue11393] Integrate faulthandler module into Python 3.3

2011-03-22 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Le mardi 22 mars 2011 à 09:01 +, Marc-Andre Lemburg a écrit : Perhaps you could consider adding a similar approach (raising an exception instead of writing a traceback) to the module. We could then port our code to use your

[issue11631] Python 2.7.1 64bit, Win7 64bit problem to read and write with UDP.

2011-03-22 Thread Kristoffer Nilsson
New submission from Kristoffer Nilsson novaf...@gmail.com: Running Windows 7 Enterprise 64 bit, and Python 7.2.1 64 bit Python failed to read and send UDP packages when ran in cmd.exe. This is not the case when ran with IDLE. Example; two simple programs. First one listening to a UDP port

[issue11618] Locks broken wrt timeouts on Windows

2011-03-22 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Sbt: I re-read the code and while I still maintain that the evaluation in line 50 is meaningless, I agree that the worst that can happen is an incorrect timeout. It is probably harmless because this state is only encountered for

[issue11393] Integrate faulthandler module into Python 3.3

2011-03-22 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: STINNER Victor wrote: STINNER Victor victor.stin...@haypocalc.com added the comment: Le mardi 22 mars 2011 à 09:01 +, Marc-Andre Lemburg a écrit : Perhaps you could consider adding a similar approach (raising an exception instead

[issue11630] refleak in test_import

2011-03-22 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 3114f26d5d54 by Victor Stinner in branch 'default': Issue #11630, issue #3080: Fix refleak introduced by ef2b6305d395 http://hg.python.org/cpython/rev/3114f26d5d54 -- nosy: +python-dev

[issue11630] refleak in test_import

2011-03-22 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11630 ___

[issue11632] difflib.unified_diff loses context

2011-03-22 Thread Brice Videau
New submission from Brice Videau brice.vid...@gmail.com: unified_diff seems to lose the context when comparing the 2 files contained in the attached archive using this script : import difflib b1 = open(out1.short,r).read().splitlines(True) b2 = open(out2.short,r).read().splitlines(True)

[issue11633] regression: print buffers output when end=''

2011-03-22 Thread anatoly techtonik
New submission from anatoly techtonik techto...@gmail.com: print() function for some reason buffers output on Windows if end!='\n'. In attached examples Processing.. string is shown in Python 3.2 only after the actual processing is finished, while in Python 2.6 it is shown before.

[issue11633] regression: print buffers output when end=''

2011-03-22 Thread anatoly techtonik
Changes by anatoly techtonik techto...@gmail.com: Added file: http://bugs.python.org/file21334/printtest2.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11633 ___

[issue11633] regression: print buffers output when end=''

2011-03-22 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: printtest2.py displays directly Processing.. on Windows, but not on Linux. It looks like stdout is not buffered on Windows, which looks like a bug to bug :-) I think that it is safer to always call sys.stdout.flush() to ensure

[issue11633] regression: print buffers output when end=''

2011-03-22 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: From my perspective it is a regression on Windows and a bug in Linux version of Python 2.x, which unfortunately can not be fixed, because of 2.x release process. If the fact that print statement doesn't output anything when called is

[issue11633] regression: print buffers output when end=''

2011-03-22 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: From my perspective it is a regression on Windows and a bug in Linux version of Python 2.x, which unfortunately can not be fixed, because of 2.x release process. Line buffering is used by default on most operating systems (ok,

[issue11627] segfault raising an arbitrary object as an exception

2011-03-22 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Note that this test code: def raise_(): raise MyException self.assertRaises(TypeError, raise_) can be simplified to: with self.assertRaises(TypeError): raise MyException in all currently

[issue11633] regression: print buffers output when end=''

2011-03-22 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: How about making print() user-friendly with flushing after every call, and if you want explicitly want speed - use buffered sys.stdout.write/flush()? -- ___ Python tracker

[issue11633] regression: print buffers output when end=''

2011-03-22 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: How about making print() user-friendly with flushing after every call, and if you want explicitly want speed - use buffered sys.stdout.write/flush()? This is exactly the -u option of Python 2: use it if you would like a completly

[issue11633] regression: print buffers output when end=''

2011-03-22 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: You must realize that the most common use case for print(..., end!='\n') is when you want to notify user about intermediate progress of a very long operation. Making documentation for simple print() statement overloaded with low level

[issue11618] Locks broken wrt timeouts on Windows

2011-03-22 Thread sbt
sbt shibt...@gmail.com added the comment: krisvale wrote: So, I suggest a change in the comments: Do not claim that the value is never an underestimate, and explain how falsely returning a WAIT_TIMEOUT is safe and only occurs when the lock is heavily contented. Sorry for being so

[issue11618] Locks broken wrt timeouts on Windows

2011-03-22 Thread sbt
Changes by sbt shibt...@gmail.com: Removed file: http://bugs.python.org/file21335/locktimeout3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11618 ___

[issue11618] Locks broken wrt timeouts on Windows

2011-03-22 Thread sbt
sbt shibt...@gmail.com added the comment: krisvale wrote: So, I suggest a change in the comments: Do not claim that the value is never an underestimate, and explain how falsely returning a WAIT_TIMEOUT is safe and only occurs when the lock is heavily contented. Sorry for being so

[issue11622] Documentation

2011-03-22 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: Removed file: http://bugs.python.org/file21331/roberto_derenzi.vcf ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11622 ___

[issue11287] Add context manager support to dbm modules

2011-03-22 Thread Ray.Allen
Ray.Allen ysj@gmail.com added the comment: patch updated. -- Added file: http://bugs.python.org/file21337/issue_11287.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11287 ___

[issue11623] Distutils is reporting OSX 10.6 w/ XCode 4 as universal

2011-03-22 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for taking care of this. I’ll be here to review distutils-related changes, if any are needed. -- assignee: tarek - ronaldoussoren ___ Python tracker rep...@bugs.python.org

[issue11591] python -S should be robust against e.g. from site import addsitedir

2011-03-22 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: The Remote hg repo field was just empty when I made my latest comment Looks like this field is always empty: its goal is to add a repo, just like the File field is always empty unless you add a file. The existing files and repositories are

[issue11623] Distutils is reporting OSX 10.6 w/ XCode 4 as universal

2011-03-22 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: I haven't put much thought in a solution yet, but at this point I'd go for three changes: 1) Give a clear warning when python was configured for i386/ppc and Xcode4 is installed (instead of giving a vague compiler crash due to

[issue11634] misleading comment on PyBytes_FromStringAndSize

2011-03-22 Thread Eli Bendersky
New submission from Eli Bendersky eli...@gmail.com: The comment string above the implementation of _PyBytes_FromStringAndSize in Objects/bytesobject.c starts with: /* For both PyBytes_FromString() and PyBytes_FromStringAndSize(), the parameter `size' denotes number of characters to

[issue11634] misleading comment on PyBytes_FromStringAndSize

2011-03-22 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Could you write a patch to fix this comment? -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11634 ___

[issue11625] Typo in collections.abc docs

2011-03-22 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset a56cd7aeac5e by Raymond Hettinger in branch '2.7': Issue #11625: Fix Typo http://hg.python.org/cpython/rev/a56cd7aeac5e -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org

[issue11625] Typo in collections.abc docs

2011-03-22 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 3aec82018a18 by Raymond Hettinger in branch '3.1': Issue #11625: Fix Typo http://hg.python.org/cpython/rev/3aec82018a18 New changeset 461e5c60fbdf by Raymond Hettinger in branch '3.2': Issue #11625: Fix Typo

[issue11625] Typo in collections.abc docs

2011-03-22 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11625 ___

[issue10694] zipfile.py end of central directory detection not robust

2011-03-22 Thread bcroq
Changes by bcroq bertrand.c...@gmail.com: -- nosy: +bcroq ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10694 ___ ___ Python-bugs-list mailing

[issue10694] zipfile.py end of central directory detection not robust

2011-03-22 Thread Bertrand Croq
Bertrand Croq bertrand.c...@gmail.com added the comment: The last patch (manually applied to Python 2.6) fixed the problem with a ZIP file used in my project. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10694

[issue10694] zipfile.py end of central directory detection not robust

2011-03-22 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +amaury.forgeotdarc versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10694 ___

[issue11633] regression: print buffers output when end=''

2011-03-22 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: We are talking about different things here: - When python is run from a console, sys.stdout is line buffered. sys.stdout.write() flushes if there is a carriage return. No need to change anything here. - print() could call

[issue11629] Reference implementation for PEP 397

2011-03-22 Thread Brian Curtin
Changes by Brian Curtin br...@python.org: -- nosy: +brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11629 ___ ___ Python-bugs-list

[issue11635] concurrent.futures uses polling

2011-03-22 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: concurrent.futures uses polling in its worker threads and processes (with a timeout of 0.1). It means that: 1) this prevents CPUs to enter low power states durably 2) it incurs latency when calling shutdown() on an executor (this seems to be

[issue8420] Objects/setobject.c contains unsafe code

2011-03-22 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: This looks okay. On the first lines for set_merge() where there is: key = entry-key; also do: hash = entry-key; so that the two get handled in a parallel fashion. Thanks for doing the backporting. -- assignee:

[issue11244] Negative tuple elements produce inefficient code.

2011-03-22 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: rhettinger - mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11244 ___

[issue11636] fh is not defined in npyio.py fromregex

2011-03-22 Thread William Dawson
New submission from William Dawson williamanthonydaw...@gmail.com: NameError: global name 'fh' is not defined File /Users/williamdawson/Programs/fat_wip.py, line 263, in module header_gal = readheader(gal_cat) File /Users/williamdawson/Programs/tools.py, line 96, in readheader

  1   2   3   >