Pydev 1.6.5 Released

2011-02-04 Thread Fabio Zadrozny
Hi All, Pydev 1.6.5 has been released Details on Pydev: http://pydev.org Details on its development: http://pydev.blogspot.com Release Highlights: --- * Syntax highlighting now has options to have {}, [] and () as well as operators in different colors * Code

pyCologne Python User Group Cologne - Meeting, February 9, 2011, 6.30pm

2011-02-04 Thread Andi Albrecht
The next meeting of pyCologne will take place: Wednesday, February, 9th starting about 6.30 pm - 6.45 pm at Room 0.14, Benutzerrechenzentrum (RRZK-B) University of Cologne, Berrenrather Str. 136, 50937 Köln, Germany On this months schedule: - What's New in MoinMoin 2.0 (Reimar Bauer) -

JSONBOT 0.6.1 RELEASED

2011-02-04 Thread Bart Thate
Hello every human out there ! i'm pleased to announce the release of JSONBOT 0.6.1 FINAL, a release that saw a lot of work into the shell side of things and no changes to GAE. 0.6.1 has the following changes: * the ! char is not used instead of | in a pipeline. This is to make it easier to use

Cython 0.14.1 has been released

2011-02-04 Thread robertwb
Cython 0.14.1 has just been released. This release is primarily a bug fix release building on top of 0.14. Download: http://cython.org/release/Cython-0.14.1rc3.tar.gz == New Features == - The gdb debugging support was extended to include all major Cython features, including closures. raise

Re: code structure advise for a model

2011-02-04 Thread Marco Nawijn
On Feb 4, 3:43 am, Martin De Kauwe mdeka...@gmail.com wrote: Hi, I am translating some c++ code to python and just wanted to ask some advise on structure. The original has everything declared globally and nothing passed via function (I assume, but don't know, that this isn't just standard

Re: IDLE: A cornicopia of mediocrity and obfuscation.

2011-02-04 Thread flebber
On Feb 3, 7:41 am, Corey Richardson kb1...@aim.com wrote: On 2/2/2011 2:44 PM, rantingrick wrote: Will you be forking IDLE and setting up some sort of tracker for improvements? +1 for this. Enough talk ratingrick where is your feature and request tracker for your idle fork? How can people

Re: code structure advise for a model

2011-02-04 Thread Peter Otten
Martin De Kauwe wrote: I am translating some c++ code to python and just wanted to ask some advise on structure. The original has everything declared globally and nothing passed via function (I assume, but don't know, that this isn't just standard c++ practice!). So given this, I have a

Re: socket.rcv timeout while-loop

2011-02-04 Thread Jean-Michel Pichavant
Stephen Hansen wrote: On 2/3/11 9:56 AM, Dwayne Blind wrote: However I would like to set timeout on the socket rcv method, so that the while loop stops exactly after 3 seconds. Is this possible ? I rarely do low-level socket stuff -- [snip] Good point. Python has a module for

Deadlock and a rather weird stacktrace

2011-02-04 Thread Vincent van Beveren
Hi everyone, I'm currently working on a multithreaded GUI system in Python 2.6. In this system I use conditions to coordinate synchronization. However, one condition suddenly locks, without any cause. As a last resort I have written a small routine to dump all the stack traces. def

How to debug a problem with python crashing under windows

2011-02-04 Thread gelonida
Hi, I have a python application, which occasionally crashes. With crashing I mean, that windows pops up a screen saying, that python.exe failed. I do not have any usable trace on stdout / stderr. What are the best means to analyze such errors? Is there any way to get something like a core dump

Re: socket.rcv timeout while-loop

2011-02-04 Thread Dwayne Blind
Thanks to all of you. @ Jean-Michel Pichavant I am writing a small multiplayer game. Several clients are connected to the server. Games last, say, 20 seconds. You can think of the game as a small chat lasting 20 seconds. All the data received by the server is sent back to the clients. @ Stephen

Re: socket.rcv timeout while-loop

2011-02-04 Thread Jean-Michel Pichavant
Dwayne Blind wrote: Thanks to all of you. @ Jean-Michel Pichavant I am writing a small multiplayer game. Several clients are connected to the server. Games last, say, 20 seconds. You can think of the game as a small chat lasting 20 seconds. All the data received by the server is sent back to

Re: Reassign or discard Popen().stdout from a server process

2011-02-04 Thread John O'Hagan
On Thu, 3 Feb 2011, Nobody wrote: On Tue, 01 Feb 2011 08:30:19 +, John O'Hagan wrote: I can't keep reading because that will block - there won't be any more output until I send some input, and I don't want it in any case. To try to fix this I added: proc.stdout = os.path.devnull

Re-installing 2.6.6 to build shared library

2011-02-04 Thread octopusgrabbus
In order to accommodate a mod_wsgi build problem, I need to have a Python shared library. What is the best way to re-install Python to do this? Many thanks. cmn -- http://mail.python.org/mailman/listinfo/python-list

Re: Use the Source Luke

2011-02-04 Thread rusi
On Feb 2, 12:32 am, OKB (not okblacke) brennospamb...@nobrenspambarn.net wrote: Tim Wintle wrote: (2) is especially important IMO - under half of the python developers I have regularly worked with would feel comfortable reading C - so for the other half reading C source code probably

Converging Multiple Classes

2011-02-04 Thread Wanderer
I have a bunch of cameras I want to run tests on. They each have different drivers and interfaces. What I want to do is create python wrappers so that they all have a common interface and can be called by the same python test bench program. I'm not sure what to call it. I don't think it's

Re: How to debug a problem with python crashing under windows

2011-02-04 Thread Miki Tebeka
With crashing I mean, that windows pops up a screen saying, that python.exe failed. I do not have any usable trace on stdout / stderr. What are the best means to analyze such errors? You can use sys.excepthook to catch uncaught exceptions. See

Re: Converging Multiple Classes

2011-02-04 Thread George Silva
Take a look at the strategy pattern. But with python being a dinamic language, you probably won't need to implement it like that. http://en.wikipedia.org/wiki/Strategy_pattern Example: # import all you need CAMERAS = ['A','B','C'] def capture_A: pass def capture_B: pass def capture_C: pass

Re: socket.rcv timeout while-loop

2011-02-04 Thread Stephen Hansen
On 2/4/11 6:55 AM, Dwayne Blind wrote: @ Jean-Michel Pichavant I am writing a small multiplayer game. Several clients are connected to the server. Games last, say, 20 seconds. You can think of the game as a small chat lasting 20 seconds. All the data received by the server is sent back to the

Re: Use the Source Luke

2011-02-04 Thread rusi
On Feb 4, 9:34 pm, rusi rustompm...@gmail.com wrote: [PS Does not read properly in google docs though it reads ok in acroread and evince ] Sorry google docs does not like the pdf Heres a ps https://docs.google.com/leaf?id=0B3gsacOF56PxOWUxZTVmOTQtYWIxNy00ZGFjLWEwODUtZDVkM2MyZGI5ZmRkhl=en --

shared python module ?

2011-02-04 Thread km
Hi all, I have two version of python 2.6 and 2.7. Now Is there any way that I install a python module (from pypi) and import it across both the versions ? regards, KM -- http://mail.python.org/mailman/listinfo/python-list

Re: Converging Multiple Classes

2011-02-04 Thread Jean-Michel Pichavant
Wanderer wrote: I have a bunch of cameras I want to run tests on. They each have different drivers and interfaces. What I want to do is create python wrappers so that they all have a common interface and can be called by the same python test bench program. I'm not sure what to call it. I don't

Re: Converging Multiple Classes

2011-02-04 Thread Wanderer
On Feb 4, 12:07 pm, Jean-Michel Pichavant jeanmic...@sequans.com wrote: Wanderer wrote: I have a bunch of cameras I want to run tests on. They each have different drivers and interfaces. What I want to do is create python wrappers so that they all have a common interface and can be called

Re: socket.rcv timeout while-loop

2011-02-04 Thread Dwayne Blind
Thank you very much Jean-Michel Pichavant and Stephen Hansen. @ Jean-Michel Pichavant I will have a look at Pyro. @ Stephen Hansen Now I am pretty much worried. :'( 2011/2/4 Stephen Hansen me+list/pyt...@ixokai.io On 2/4/11 6:55 AM, Dwayne Blind wrote: @ Jean-Michel Pichavant I am

Re: socket.rcv timeout while-loop

2011-02-04 Thread Stephen Hansen
On 2/4/11 9:16 AM, Dwayne Blind wrote: @ Stephen Hansen Now I am pretty much worried. :'( Why? This is all sounding like a problem that isn't actually a problem. I think you may have over-analyzed yourself into a corner and think you have something to solve which doesn't really need solving.

Re: IDLE: A cornicopia of mediocrity and obfuscation.

2011-02-04 Thread rantingrick
On Feb 3, 11:15 am, rantingrick rantingr...@gmail.com wrote: If anyone would like to see a good example of how IDLE code should be written. I highly suggest you check out the source for PyShell and PyCrust which is located in roughly... HOME\PythonXX\Lib\site-packages\wx-2.8-msw-ansi\wx\py:  

Re: IDLE: A cornicopia of mediocrity and obfuscation.

2011-02-04 Thread rantingrick
On Feb 4, 3:55 am, flebber flebber.c...@gmail.com wrote: Enough talk ratingrick where is your feature and request tracker for your idle fork? How can people assist you in your new idle fork project? What are your stated project goals timeline? I am ready flebber but we have a problem. An old

Re: IDLE: A cornicopia of mediocrity and obfuscation.

2011-02-04 Thread Stephen Hansen
On 2/4/11 10:34 AM, rantingrick wrote: But we need to receive the old idlefork or have them delete the old idle fork as too much confusion will spread with when two idleforks exists. This is nonsense. And probably just another excuse for you to rant instead of actually doing something of any

Re: Use the Source Luke

2011-02-04 Thread OKB (not okblacke)
rusi wrote: On Feb 2, 12:32 am, OKB (not okblacke)         I think, in general, the less anyone needs to know C even exists, the better for Python; likewise, the more that people have to mention the existence of C in a Python context, the worse for Python.  This may be a somewhat extreme

Create classes at runtnime

2011-02-04 Thread Marc Aymerich
Hi! I need to create a pretty complex class at runtime. something like this one: (note: means that the number of attributes can be variable) class VirtualUserLimitForm(ModelForm): swap_limit = forms.CharField(max_length=100, initial=monitor1.default_limit) memory_limit =

Re: How to debug a problem with python crashing under windows

2011-02-04 Thread Terry Reedy
On 2/4/2011 11:41 AM, Miki Tebeka wrote: With crashing I mean, that windows pops up a screen saying, that python.exe failed. I do not have any usable trace on stdout / stderr. What are the best means to analyze such errors? You can use sys.excepthook to catch uncaught exceptions. See

Re: Download an attachment from an IMAP email

2011-02-04 Thread Vincent Davis
hgc On Thu, Feb 3, 2011 at 6:52 PM, Kushal Kumaran kushal.kumaran+pyt...@gmail.com kushal.kumaran%2bpyt...@gmail.com wrote: On Fri, Feb 4, 2011 at 3:44 AM, Vincent Davis vinc...@vincentdavis.net wrote: I have a few emails I am trying to download from my google account. I seem to be

using attributes as defaults

2011-02-04 Thread Wanderer
I want to give the option of changing attributes in a method or using the current values of the attributes as the default. class MyClass(): my Class def __init__(self): initialize self.a = 3 self.b = 4 def MyMethod(self, a =

Re: using attributes as defaults

2011-02-04 Thread Stephen Hansen
On 2/4/11 1:08 PM, Wanderer wrote: I want to give the option of changing attributes in a method or using the current values of the attributes as the default. class MyClass(): my Class def __init__(self): initialize self.a = 3

Re: using attributes as defaults

2011-02-04 Thread Emile van Sebille
On 2/4/2011 1:08 PM Wanderer said... I want to give the option of changing attributes in a method or using the current values of the attributes as the default. class MyClass(): my Class def __init__(self): initialize self.a = 3

Re: using attributes as defaults

2011-02-04 Thread Peter Otten
Wanderer wrote: I want to give the option of changing attributes in a method or using the current values of the attributes as the default. class MyClass(): my Class def __init__(self): initialize self.a = 3 self.b = 4

Re: Create classes at runtnime

2011-02-04 Thread Peter Otten
Marc Aymerich wrote: I need to create a pretty complex class at runtime. something like this one: I have a hunch that you've never heard the famous Kernighan quote: Everyone knows that debugging is twice as hard as writing a program in the first place. So if you're as clever as you can be

Re: Create classes at runtnime

2011-02-04 Thread Carl Banks
On Feb 4, 1:32 pm, Peter Otten __pete...@web.de wrote: Marc Aymerich wrote: I need to create a pretty complex class at runtime. something like this one: I have a hunch that you've never heard the famous Kernighan quote: Everyone knows that debugging is twice as hard as writing a program

Re: Create classes at runtnime

2011-02-04 Thread Carl Banks
On Feb 4, 11:17 am, Marc Aymerich glicer...@gmail.com wrote: Hi! I need to create a pretty complex class at runtime. something like this one: (note: means that the number of attributes can be variable) class VirtualUserLimitForm(ModelForm):     swap_limit =

Re: Create classes at runtnime

2011-02-04 Thread Ian
On Feb 4, 2:32 pm, Peter Otten __pete...@web.de wrote: (note: means that the number of attributes can be variable) class VirtualUserLimitForm(ModelForm):     swap_limit = forms.CharField(max_length=100, initial=monitor1.default_limit)     memory_limit =

Re: IDLE: A cornicopia of mediocrity and obfuscation.

2011-02-04 Thread rantingrick
On Feb 4, 12:49 pm, Stephen Hansen me+list/pyt...@ixokai.io wrote: On 2/4/11 10:34 AM, rantingrick wrote: But we need to receive the old idlefork or have them delete the old idle fork as too much confusion will spread with when two idleforks exists. This is nonsense. And probably just

itertools.groupby usage to get structured data

2011-02-04 Thread Slafs
Hi there! I'm having trouble to wrap my brain around this kind of problem: What I have : 1) list of dicts 2) list of keys that i would like to be my grouping arguments of elements from 1) 3) list of keys that i would like do aggregation on the elements of 1) with some function e.g. sum

Re: IDLE: A cornicopia of mediocrity and obfuscation.

2011-02-04 Thread Stephen Hansen
On 2/4/11 3:01 PM, rantingrick wrote: Put your money where your mouth is. ditto! I thought as much. My money is where my mouth is: but that is not IDLE, as I have no use for it and no interest in it at all. The status quo with regards to IDLE is satisfactory to me. You're the one talking so

Re: shared python module ?

2011-02-04 Thread Westley Martínez
On Fri, 2011-02-04 at 22:36 +0530, km wrote: Hi all, I have two version of python 2.6 and 2.7. Now Is there any way that I install a python module (from pypi) and import it across both the versions ? regards, KM Simply install it twice, for each version, e.g.: % cd source directory

Re: using attributes as defaults

2011-02-04 Thread Westley Martínez
On Fri, 2011-02-04 at 13:08 -0800, Wanderer wrote: I want to give the option of changing attributes in a method or using the current values of the attributes as the default. class MyClass(): my Class def __init__(self): initialize

Plumber, an alternative to mixin-based subclassing

2011-02-04 Thread Florian Friesdorf
An alternative to mixin-based subclassing: http://pypi.python.org/pypi/plumber -- Florian Friesdorf f...@chaoflow.net GPG FPR: 7A13 5EEE 1421 9FC2 108D BAAF 38F8 99A3 0C45 F083 Jabber/XMPP: f...@chaoflow.net IRC: chaoflow on freenode,ircnet,blafasel,OFTC --

Re: Algorithm for generating pitch-class sets in prime form

2011-02-04 Thread Charles Turner
Hi- Do you knowof Christopher Ariza's AthenaCL? http://www.flexatone.net/athenaInfo.html#athenaFeatAnalytic HTH, Charles -- http://mail.python.org/mailman/listinfo/python-list

Re: Create classes at runtnime

2011-02-04 Thread Steven D'Aprano
On Fri, 04 Feb 2011 11:17:39 -0800, Marc Aymerich wrote: Hi! I need to create a pretty complex class at runtime. something like this one: (note: means that the number of attributes can be variable) class VirtualUserLimitForm(ModelForm): swap_limit =

Re: Create classes at runtnime

2011-02-04 Thread Ian
On Feb 4, 5:49 pm, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: Just add in the class attributes you want after creating the class. class VirtualUserLimitForm(ModelForm):     pass f = forms.CharField  # alias for brevity for name, value in [     ('swap_limit',

Tk Tablelist embedded window

2011-02-04 Thread - -
I have some really Tcl code which I would like to run in Python: package require Tk package require Tablelist proc main {} { tablelist::tablelist .t -columns {0 Test} -stretch 1 .t insert end {{} {}} .t cellconfigure end,0 -window {createWindow} .t insert end {{} {}} .t cellconfigure end,0

Re: Create classes at runtnime

2011-02-04 Thread Steven D'Aprano
On Fri, 04 Feb 2011 17:19:23 -0800, Ian wrote: On Feb 4, 5:49 pm, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: Just add in the class attributes you want after creating the class. [...] This would probably cause some problems with the Django metaclass. It inspects the class

Re: itertools.groupby usage to get structured data

2011-02-04 Thread Steven D'Aprano
On Fri, 04 Feb 2011 15:14:24 -0800, Slafs wrote: Hi there! I'm having trouble to wrap my brain around this kind of problem: Perhaps you should consider backing up and staring from somewhere else with different input data, or changing the requirements. Just a thought. What I have : 1)

Re: Create classes at runtnime

2011-02-04 Thread Chris Rebert
On Fri, Feb 4, 2011 at 6:10 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Fri, 04 Feb 2011 17:19:23 -0800, Ian wrote: On Feb 4, 5:49 pm, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: Just add in the class attributes you want after creating the class. [...]

Re: itertools.groupby usage to get structured data

2011-02-04 Thread Paul Rubin
Slafs slaf...@gmail.com writes: What i want to have is: a big nested dictionary with 'g1' values as 1st level keys and a dictionary of aggregates and subgroups in it I was looking for a solution that would let me do that kind of grouping with variable lists of 2) and 3) i.e. having also

Re: Use the Source Luke

2011-02-04 Thread rusi
On Feb 5, 12:11 am, OKB (not okblacke) brennospamb...@nobrenspambarn.net wrote:         Very interesting, thanks.  I think Python has its own warts comparable to some of those you mention, but not all.  What bothers me most is when practicality beats purity is invoked, with practicality

Re: Use the Source Luke

2011-02-04 Thread Stefan Behnel
OKB (not okblacke), 04.02.2011 20:11: I think Python has its own warts comparable to some of those you mention, but not all. What bothers me most is when practicality beats purity is invoked, with practicality defined as doing it this way is faster in C. Most of that should be gone in Python

[issue7980] time.strptime not thread safe

2011-02-04 Thread Carlos Corbacho
Carlos Corbacho cathec...@gmail.com added the comment: As per my comments on Issue11108 - I suspect that PyImport_ImportModuleNoBlock is a bit of a red herring here - in Python 2.5 and earlier versions (well before PyImport_ImportModuleNoBlock was added), we have occasionally seen

[issue11067] Py_LIMITED_API breaks most PySomething_Check() functions

2011-02-04 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11067 ___ ___

[issue11113] html.entities mapping dicts need updating?

2011-02-04 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Supporting the ones in HTML 5 would be fine with me. Supporting those of xml-entity-names would be inappropriate - it's not clear (to me, at least) that all of them are really meant for use in HTML. -- nosy: +loewis

[issue11114] file.tell extremely slow

2011-02-04 Thread Laurens
New submission from Laurens 3.14159265...@xs4all.nl: file.tell() has become extremely slow in version 3.2, both rc1 and rc2. This problem did not exist in version 2.7.1, nor in version 3.1. It could be reproduced both on mac and windows xp. -- components: IO messages: 127874 nosy:

[issue11112] UDPTimeoutTest derives from SocketTCPTest

2011-02-04 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Thanks for the report. That does indeed seem to be a bug in the test: UDPTimeoutTest(SocketTCPTest) should be UDPTimeoutTest(SocketUDPTest) As the 3.2 release is in its final release candidate stage and this is not a release critical issue, the fix

[issue11115] csv readers and writers should be context managers

2011-02-04 Thread Dirkjan Ochtman
New submission from Dirkjan Ochtman dirk...@ochtman.nl: The context managers should simply forward to the underlying file object. -- components: Library (Lib) messages: 127876 nosy: djc priority: normal severity: normal status: open title: csv readers and writers should be context

[issue11114] file.tell extremely slow

2011-02-04 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: Do you have a benchmark program you can post? -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4 ___

[issue11115] csv readers and writers should be context managers

2011-02-04 Thread Dirkjan Ochtman
Changes by Dirkjan Ochtman dirk...@ochtman.nl: -- type: - feature request versions: -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5 ___

[issue10994] implementation details in sys module

2011-02-04 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I can propose a specification of getsizeof: if you somehow manage to traverse all objects (without considering an object twice), and sum up the getsizeof results, you should end up with something close to, but smaller than the actual

[issue10664] xml.sax.expatreader should support namespace prefixes

2011-02-04 Thread Nicolas Delaby
Nicolas Delaby delaby.nico...@gmail.com added the comment: the PyXML sax parser support this feature. May be it can be backported into stdlib ? -- nosy: +Nicolas.Delaby ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10664

[issue11116] mailbox and email errors

2011-02-04 Thread Steffen Daode Nurpmeso
New submission from Steffen Daode Nurpmeso sdao...@googlemail.com: Following Issue 9124 discussion: it took longer than i thought, but now i could rework my thing and got errors. I've also tried Lib/test/test_mailbox.py, and that produces 0xA errors and 0xA failures. I'll attach the entire

[issue11114] file.tell extremely slow

2011-02-04 Thread Laurens
Laurens 3.14159265...@xs4all.nl added the comment: Correction: the problem also exists in version 3.1. I created a benchmark program an ran it on my machine (iMac, snow leopard 10.6), with the following results: -- 2.6.6 (r266:84292, Dec 30 2010,

[issue11116] mailbox and email errors

2011-02-04 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: Oops - please be aware that these outputs were saved at the end of a frustrating session. I'm doing things to show *you* what's passed around and the like, i.e. that the message is indeed a mboxMessage etc. The error which

[issue10271] warnings.showwarning should allow any callable object

2011-02-04 Thread lekma
lekma lekma...@gmail.com added the comment: brett, is there any chance for this to make it in? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10271 ___

[issue11116] mailbox and email errors

2011-02-04 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: This simplemost patch (email_header.patch) seems to work at first glance. It heals *everything* (except for babyl format, see issue 11062). (I feel a bit like Charlie Chaplin and i think you know what i mean.) --

[issue11116] mailbox and email errors

2011-02-04 Thread Steffen Daode Nurpmeso
Changes by Steffen Daode Nurpmeso sdao...@googlemail.com: Removed file: http://bugs.python.org/file20673/email_mbox.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6 ___

[issue11116] (mailbox and) email (errors) - patch

2011-02-04 Thread Steffen Daode Nurpmeso
Changes by Steffen Daode Nurpmeso sdao...@googlemail.com: -- title: mailbox and email errors - (mailbox and) email (errors) - patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6 ___

[issue11116] (mailbox and) email (errors) - patch

2011-02-04 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6 ___ ___

[issue11116] (mailbox and) email (errors) - patch

2011-02-04 Thread SilentGhost
SilentGhost ghost@gmail.com added the comment: The patch would be better to say: if not lines: continue However, it could be even simpler to do: for string, charset in self._chunks: if not string: continue -- nosy: +SilentGhost ___

[issue9756] Crash with custom __getattribute__

2011-02-04 Thread Andreas Stührk
Andreas Stührk andy-pyt...@hammerhartes.de added the comment: See also issue #10922. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9756 ___ ___

[issue11115] csv readers and writers should be context managers

2011-02-04 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: There is no underlying file object. I presume you mean the reader/writer object? Which have no close method, so there is no point in making them a context manager. There is zero benefit and positive cost (an additional nesting

[issue11114] file.tell extremely slow

2011-02-04 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: I found that adding infile._CHUNK_SIZE = 20 makes the test much faster - 'only' 5 times slower than 2.7. -- nosy: +amaury.forgeotdarc, pitrou ___ Python tracker rep...@bugs.python.org

[issue11116] mailbox and email errors

2011-02-04 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Steffen, I appreciate your testing this. Your error report doesn't have enough information for me to reproduce the problem. Can you post a short test case, including a sample email/mailbox file if needed, that reproduces the problem

[issue11116] mailbox and email errors

2011-02-04 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- assignee: - r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6 ___ ___

[issue11116] mailbox and email errors

2011-02-04 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Perhaps your problem with test_mailbox is that you are running the test_mailbox from a checkout, but using an installed python3 that is not RC2, rather than the python3 built from the checkout? --

[issue11114] file.tell extremely slow

2011-02-04 Thread DSM
DSM dsm...@users.sourceforge.net added the comment: With a similar setup (OS X 10.6) I see the same problem. It seems to go away if the file is opened in binary mode for reading. @Laurens, can you confirm? -- nosy: +dsm001 ___ Python tracker

[issue11114] file.tell extremely slow

2011-02-04 Thread DSM
DSM dsm...@users.sourceforge.net added the comment: (By go away I mean stop being pathological, not stop differing: I still see a factor of 2.) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4

[issue11114] file.tell extremely slow

2011-02-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: That's expected. seek() and tell() on text (unicode) files are slow by construction. You should open your file in binary mode instead, if you want to do any seeking. Maybe I should add a note in

[issue11104] distutils sdist ignores MANIFEST

2011-02-04 Thread John Dennis
John Dennis jden...@redhat.com added the comment: No, I don't think I'm going to turn the tarball into a unit test, etc. I didn't break the code but I did report the problem, researched the history, provided a clear explanation, a reproducer and a patch to fix the problem. I think I've done

[issue11082] ValueError: Content-Length should be specified

2011-02-04 Thread William Wu
William Wu willie...@gmail.com added the comment: So, what's the decision to be taken? I'm willing to provide patches (if I need to), but I need to know *the reasonable behaviors*. :) -- ___ Python tracker rep...@bugs.python.org

[issue11082] ValueError: Content-Length should be specified

2011-02-04 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: For this particular issue, I think, it is good idea to disallow str explicitly, instead of letting it go through the Iterable and raise a ValueError with a different message. -- ___ Python

[issue11117] Implementing Async IO

2011-02-04 Thread Jesús Cea Avión
New submission from Jesús Cea Avión j...@jcea.es: This issue is a placeholder for exposing Async IO thru Python. The relevant mail thread is at: http://mail.python.org/pipermail/python-dev/2010-October/104770.html Relevant resources:

[issue11117] Implementing Async IO

2011-02-04 Thread Brian Curtin
Changes by Brian Curtin cur...@acm.org: -- nosy: +brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7 ___ ___ Python-bugs-list

[issue11117] Implementing Async IO

2011-02-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: From the python-dev thread: http://mail.python.org/pipermail/python-dev/2010-October/104782.html “os._exit is useful. os.open is useful. aio_* are *not* useful. For anything. If there's anything you think you want to use them for, you're wrong.

[issue10994] implementation details in sys module

2011-02-04 Thread Armin Rigo
Armin Rigo ar...@users.sourceforge.net added the comment: Martin: I kind of agree with you, although I guess that for pratical reasons if you don't have a reasonable sys.getsizeof() implementation then it's better to raise TypeError than return 0 (like CPython, which may raise TypeError: Type

[issue11114] TextIOWrapper.tell extremely slow

2011-02-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: That said, I think it is possible to make algorithmic improvements to TextIOWrapper.tell() so that at least performance becomes acceptable. -- stage: - needs patch title: file.tell extremely slow - TextIOWrapper.tell extremely slow

[issue10891] Tweak sorting howto to eliminate redundancy

2011-02-04 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I do think that list.sort() method of a list is a bit too much. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10891

[issue11117] Implementing Async IO

2011-02-04 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7 ___ ___

[issue11110] Py_DECREF-Py_XDECREF in Module/_sqlite/module.c

2011-02-04 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Either one of these fixes (I prefer Brett's since it's shorter) should make it into 3.2. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue0

[issue11082] ValueError: Content-Length should be specified

2011-02-04 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Then let us do that. Senthil, what about urlencode of bytes values returning a str? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11082

[issue10736] test_ttk_guionly fails on OS X using ActiveState Tcl 8.5.9 (Cocoa)

2011-02-04 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I would prefer just letting the tests fail. Disabled tests are usually forgotten, and never re-enabled. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10736

[issue3367] Uninitialized value read in parsetok.c

2011-02-04 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: No need to bump the version, it can go into 3.2.1. But seeing the history of this case, I don't want to play around here before 3.2 final. -- ___ Python tracker rep...@bugs.python.org

[issue11114] TextIOWrapper.tell extremely slow

2011-02-04 Thread Laurens
Laurens 3.14159265...@xs4all.nl added the comment: First of all, thanks to all for your cooperation, it is very much appreciated. I made some minor changes to the benchmark program. Conclusions are: * setting file._CHUNK_SIZE to 20 has a dramatic effect, changing execution time in 3.2rc2

[issue11114] TextIOWrapper.tell extremely slow

2011-02-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: opening file binary has a dramatic effect as well, I would say. After 2 minutes I stopped execution of the program Hint: b'' is not equal to '' ;) -- ___ Python tracker rep...@bugs.python.org

  1   2   >