count strangeness

2011-05-22 Thread James Stroud
tal 65% python2.7 Python 2.7.1 (r271:86832, May 21 2011, 22:52:14) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type help, copyright, credits or license for more information. py class C(object): ... def __init__(self): ... self.data = [] ... def doit(self, count=0): ... for c

Re: count strangeness

2011-05-22 Thread Chris Rebert
On Sat, May 21, 2011 at 11:02 PM, James Stroud jstr...@mbi.ucla.edu wrote: tal 65% python2.7 Python 2.7.1 (r271:86832, May 21 2011, 22:52:14) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type help, copyright, credits or license for more information. py class C(object): ...   def

Is there a better way to solve this?

2011-05-22 Thread Ganapathy Subramanium
Hello, I'm a new bie to python programming and on the processing of learning python programming. I have coded my first program of fibonnaci generation and would like to know if there are better ways of achieving the same. I still feel quite a few things to be improved. Just wanted experts

Re: count strangeness

2011-05-22 Thread Peter Otten
James Stroud wrote: tal 65% python2.7 Python 2.7.1 (r271:86832, May 21 2011, 22:52:14) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type help, copyright, credits or license for more information. py class C(object): ... def __init__(self): ... self.data = [] ... def

Re: count strangeness

2011-05-22 Thread James Stroud
Chris Rebert wrote: WTF? Assuming your question is Why is 1024 there twice?, the answer is The question is Why is 1024 there at all? It should be 10. James -- http://mail.python.org/mailman/listinfo/python-list

Re: count strangeness

2011-05-22 Thread James Stroud
Peter Otten wrote: James Stroud wrote: WTF? Put the code into a file, run it -- and be enlightened ;) tal 72% python2.7 eraseme.py 1 2 4 8tal 73% cat eraseme.py #! /usr/bin/env python class C: def __init__(self): self.data = [] def doit(self, count=0): for c in self.data:

Re: Is there a better way to solve this?

2011-05-22 Thread Chris Rebert
On Sat, May 21, 2011 at 11:28 PM, Ganapathy Subramanium sganapathy.subraman...@gmail.com wrote: Hello, I'm a new bie to python programming and on the processing of learning python programming. I have coded my first program of fibonnaci generation and would like to know if there are better

Re: count strangeness

2011-05-22 Thread James Stroud
James Stroud wrote: Chris Rebert wrote: WTF? Assuming your question is Why is 1024 there twice?, the answer is The question is Why is 1024 there at all? It should be 10. James I mean 11, not 10--but you get the point. James -- http://mail.python.org/mailman/listinfo/python-list

Re: count strangeness

2011-05-22 Thread Chris Rebert
On Sat, May 21, 2011 at 11:32 PM, James Stroud jstr...@mbi.ucla.edu wrote: Chris Rebert wrote: WTF? Assuming your question is Why is 1024 there twice?, the answer is The question is Why is 1024 there at all? It should be 10. Ah. This is why it's better to be more explicit about what your

Re: count strangeness

2011-05-22 Thread James Stroud
Peter Otten wrote: James Stroud wrote: WTF? Put the code into a file, run it -- and be enlightened ;) Compare the follower to the last. tal 77% cat eraseme.py #! /usr/bin/env python class C: def __init__(self): self.data = [] def doit(self, count=[0]): for c in self.data:

Re: count strangeness

2011-05-22 Thread James Stroud
Chris Rebert wrote: On Sat, May 21, 2011 at 11:32 PM, James Stroud jstr...@mbi.ucla.edu wrote: Chris Rebert wrote: WTF? Assuming your question is Why is 1024 there twice?, the answer is The question is Why is 1024 there at all? It should be 10. Ah. This is why it's better to be more

Re: count strangeness

2011-05-22 Thread Peter Otten
James Stroud wrote: Peter Otten wrote: James Stroud wrote: WTF? Put the code into a file, run it -- and be enlightened ;) tal 72% python2.7 eraseme.py 1 2 4 8tal 73% cat eraseme.py #! /usr/bin/env python class C: def __init__(self): self.data = [] def doit(self,

Re: Why did Quora choose Python for its development?

2011-05-22 Thread Octavian Rasnita
From: Hansmeet Singh hansmeetsch...@gmail.com i think we should end our butchering of perl on a light note (you may have already read this): EXTERIOR: DAGOBAH -- DAY With Yoda strapped to his back, Luke climbs up one of the many thick vines that grow in the swamp until he reaches the Dagobah

more than just ipython broken in windows

2011-05-22 Thread rusi
Earlier I asked about a problem with ipython in windows which does not seem to be there in linux. Now I find that a similar problem surfaces with turtle -- so it seemingly is not so much an ipython problem. The problem can be seen thus: Lets say I want to try out some turtle commands such as:

Re: Why did Quora choose Python for its development?

2011-05-22 Thread Daniel Kluev
On Sun, May 22, 2011 at 6:44 PM, Octavian Rasnita orasn...@gmail.com wrote: Because of its flexibility, Perl offers more advanced modules and libraries which are not available for Python. What 'flexibility' are you talking about? This seem to be very biased statement, based on lack of

Re: checking if a list is empty

2011-05-22 Thread Ian
On 12/05/2011 04:51, Chris Angelico wrote: On Thu, May 12, 2011 at 7:02 AM, Ianhobso...@gmail.com wrote: In the real world lists of zero items do not exist. You don't go shopping with a shopping list of zero items. Actually, yes you do. You maintain your shopping list between trips; whenever

Re: how to get PID from subprocess library

2011-05-22 Thread Kushal Kumaran
On Sat, May 21, 2011 at 6:20 PM, TheSaint nob...@nowhere.net.no wrote: Kushal Kumaran wrote: That's how it is able to give you the status.  So, if you are using getstatusoutput, you will have only one instance of your command running. My intent is to launch only one program instance, which

Re: Why did Quora choose Python for its development?

2011-05-22 Thread Octavian Rasnita
From: Daniel Kluev dan.kl...@gmail.com On Sun, May 22, 2011 at 6:44 PM, Octavian Rasnita orasn...@gmail.com wrote: Because of its flexibility, Perl offers more advanced modules and libraries which are not available for Python. What 'flexibility' are you talking about? This seem to be very

Re: count strangeness

2011-05-22 Thread Roy Smith
In article ira8ti$6no$1...@dont-email.me, James Stroud jstr...@mbi.ucla.edu wrote: tal 65% python2.7 Python 2.7.1 (r271:86832, May 21 2011, 22:52:14) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type help, copyright, credits or license for more information. py class C(object): ...

Hotshoting recursive function

2011-05-22 Thread Selvam
Hi, I am using hotshot module to profile my python function. I used the details from ( http://code.activestate.com/recipes/576656-quick-python-profiling-with-hotshot/ ). The function I profile is a recursive one and I am getting the following error, ProfilerError: profiler already active I

Re: how to get PID from subprocess library

2011-05-22 Thread TheSaint
Kushal Kumaran wrote: You could look for a way to make aria2c not become a daemon and use subprocess.Popen to start it. That gives you the PID and ways to see if the process is still running I see. It's a step that I've to get on my account. Unfortunately I'll have to study it some more.

Re: TK program problem

2011-05-22 Thread rantingrick
On May 21, 7:03 pm, bvdp b...@mellowood.ca wrote: IIRC, I used the class method since it nicely encapsulates a set of operations:    - create/raise a window    - list a set of configurable options    - have cancel and save buttons, both of which destroy the window. Ok NOW we are getting

Re: TK program problem

2011-05-22 Thread Chris Angelico
On Mon, May 23, 2011 at 12:03 AM, rantingrick rantingr...@gmail.com wrote: ... was about as effective as the orb of confusion on Patrick... *drool* That sounds like a Dungeons and Dragons artifact item... invoking the orb of confusion is a standard action that does not provoke an Attack of

Re: List of WindowsError error codes and meanings

2011-05-22 Thread Andrew Berg
On 2011.05.21 06:46 AM, John J Lee wrote: Since Python 2.5, the errno attribute maps the Windows error to error codes that match the attributes of module errno. I was able to whip up a nifty little function that takes the output of sys.exc_info() after a WindowsError and return the error code. I

Re: how to get PID from subprocess library

2011-05-22 Thread GMail Felipe
On 22/05/2011, at 10:41, TheSaint nob...@nowhere.net.no wrote: Kushal Kumaran wrote: You could look for a way to make aria2c not become a daemon and use subprocess.Popen to start it. That gives you the PID and ways to see if the process is still running I see. It's a step that I've to

Re: Abandoning Python

2011-05-22 Thread John J Lee
Daniel Kluev dan.kl...@gmail.com writes: On Sun, May 22, 2011 at 2:49 AM, John J Lee j...@pobox.com wrote: Here's my wishlist (not really in any order): How come pony is not listed there? Language cannot be better than python without pony! Pony, absolutely. I took that as read.  * An

Re: Abandoning Python

2011-05-22 Thread John Lee
Bill Allen wallenpb at gmail.com writes: You have ideas, a text editor, and a computer - best get to coding. What's stopping you? You largely want Python, with modifications. Join the development team and help implement those changes, or fork your own flavor and do what you wish. Right?

Re: Abandoning Python

2011-05-22 Thread John Lee
Dan Stromberg drsalists at gmail.com writes: On Sat, May 21, 2011 at 8:49 AM, John J Lee jjl at pobox.com wrote: /troll I still like Python after using it for over a decade, but there are things I don't like. What are your favourite up-and-coming languages of the moment? Here's my wishlist

Re: List of WindowsError error codes and meanings

2011-05-22 Thread John Lee
Genstein genstein at invalid.invalid writes: Andrew Bergbahamutzero8825 at gmail.com writes: Since Python 2.5, the errno attribute maps the Windows error to error codes that match the attributes of module errno. Good point, I completely misread that. At least the Windows error code

Re: Abandoning Python

2011-05-22 Thread Stefan Behnel
John J Lee, 22.05.2011 17:58: Daniel Kluev writes: Also, most of these complaints could be solved by using correct python dialect for particular task - RPython, Cython and so on. Different topic. Why? Stefan -- http://mail.python.org/mailman/listinfo/python-list

Re: Abandoning Python

2011-05-22 Thread John Lee
Stefan Behnel stefan_ml at behnel.de writes: John J Lee, 22.05.2011 17:58: Daniel Kluev writes: Also, most of these complaints could be solved by using correct python dialect for particular task - RPython, Cython and so on. Different topic. Why? The intended focus was things

Dealing with name clashes in pypi

2011-05-22 Thread Patrick Sabin
I wanted to register my project (epdb) in pypi. Unfortunately there already exists a project with the same name. It is not possible for me to change the name of the project, because I used it in multiple writings. Any ideas how I can deal with the situation? Is it possible to register a

and becomes or and or becomes and

2011-05-22 Thread Stef Mientki
hello, must of us will not use single bits these days, but at first sight, this looks funny : a=2 b=6 a and b 6 a b 2 a or b 2 a | b 6 cheers, Stef -- http://mail.python.org/mailman/listinfo/python-list

Re: Abandoning Python

2011-05-22 Thread Ed Keith
Have you looked at Falcon (http://www.falconpl.org/)? It seems to have a lot of what you are looking for. I do not have much experience with it but I like what I've seen so far, except that there are not any third party tools or libraries libraries. Which is where Python shines. -EdK Ed

Tkinter FileDialog

2011-05-22 Thread Alex van der Spek
Trying to bring up a simple File or Directory chooser using Tkinter. Right now I use pywin32 as Mark Hammond's extensions are somewhat more familiar to an (ex)VB programmer who started way back with Fortran. On Windows Vista with Python 2.7. The examples from Mark Lutz' book Programming

Re: English Idiom in Unix: Directory Recursively

2011-05-22 Thread Xah Lee
Xah wrote: «In the emacs case: “Recursive delete of xx? (y or n) ”, what could it possibly mean by the word “recursive” there? Like, it might delete the directory but not delete all files in it? » Jonathan de Boyne Pollard wrote: It might *try* to delete the directory but not any of its

Re: Abandoning Python

2011-05-22 Thread Dan Stromberg
On Sun, May 22, 2011 at 10:33 AM, John Lee j...@pobox.com wrote: Dan Stromberg drsalists at gmail.com writes: On Sat, May 21, 2011 at 8:49 AM, John J Lee jjl at pobox.com wrote: /troll I still like Python after using it for over a decade, but there are things I don't like. What are

Re: checking if a list is empty

2011-05-22 Thread Thomas Rachel
Am 11.05.2011 23:02 schrieb Ian: On 11/05/2011 20:13, Hans Georg Schaathun wrote: Lists do not have truth values in the application domain, and therefore truth values in the implementation domain is complicated. Exactly. Its just a convention. If it exists, its true, if if doesn't its

Re: Abandoning Python

2011-05-22 Thread John Lee
Dan Stromberg drsalists at gmail.com writes: [...] Pylint does type inferencing - I find it very valuable on large projects, and even some not-so-large projects.I doubt Pylint's been integrated into any IDE's, [...] That's interesting, thanks. I see this is a different pylint than the old

Re: Multiprocessing: don't push the pedal to the metal?

2011-05-22 Thread John Ladasky
Following up to my own post... Flickr informs me that quite a few of you have been looking at my graphs of performance vs. the number of sub-processes employed in a parallelizable task: On May 21, 8:58 pm, John Ladasky lada...@my-deja.com wrote:

Re: Abandoning Python

2011-05-22 Thread John Lee
Ed Keith e_d_k at yahoo.com writes: Have you looked at Falcon (http://www.falconpl.org/)? It seems to have a lot of what you are looking for. I'm more interested in other people's opinions than my own looking fors. What *should* I be looking for (other than Python itself)? What's

Re: TK program problem

2011-05-22 Thread Terry Reedy
On 5/21/2011 10:20 PM, bvdp wrote: One of the purposes and advantages of Python 3 is having only one class system. Best to always use new-style classes in Python 2.2+ unless you understand and need old-style classes (and need should be never for most people). Thanks for this. I'll keep it

Re: Abandoning Python

2011-05-22 Thread John Lee
John Lee jjl at pobox.com writes: [...] That's interesting, thanks. I see this is a different pylint than the old logilab pylint. Unfortunate choice of name, since it makes it hard to find IDE integration work that's already done. Hmm, I see the last release was in 2003 :-( John --

Re: Dealing with name clashes in pypi

2011-05-22 Thread Terry Reedy
On 5/22/2011 2:34 PM, Patrick Sabin wrote: I wanted to register my project (epdb) in pypi. Unfortunately there already exists a project with the same name. It is not possible for me to change the name of the project, because I used it in multiple writings. Any ideas how I can deal with the

Re: and becomes or and or becomes and

2011-05-22 Thread Thomas 'PointedEars' Lahn
Stef Mientki wrote: must of us will not use single bits these days, but at first sight, this looks funny : a=2 b=6 a and b 6 a b 2 a or b 2 a | b 6 Change the order of the operands and see what happens. -- PointedEars Bitte keine Kopien per E-Mail. / Please do not Cc: me. --

Re: Why did Quora choose Python for its development?

2011-05-22 Thread Terry Reedy
On 5/22/2011 3:44 AM, Octavian Rasnita wrote: I've noticed that on many Perl mailing lists the list members talk very rarely about Python, Interesting. I learned about Python on comp.lang.perl, but that was over a decade ago. but only on this Python mailing list I read many discussions

Re: and becomes or and or becomes and

2011-05-22 Thread Terry Reedy
On 5/22/2011 5:57 PM, Thomas 'PointedEars' Lahn wrote: Stef Mientki wrote: must of us will not use single bits these days, but at first sight, this looks funny : a=2 b=6 a and b 6 a b 2 a or b 2 a | b 6 Change the order of the operands and see what happens. or change a,b to 1,2

Re: and becomes or and or becomes and

2011-05-22 Thread Tim Roberts
Stef Mientki stef.mien...@gmail.com wrote: must of us will not use single bits these days, but at first sight, this looks funny : a=2 b=6 a and b 6 a b 2 a or b 2 a | b 6 That IS funny. Interesting how a careful choice of arugments will fool us. One of my favorite math jokes is like

Strange behaviour of input() function (Python 3.2)

2011-05-22 Thread sunrrrise
Hello, this is my first post. I'm trying to learn Python language which I find great, but I have a big problem with its editors/IDEs. I have tested IDLE (which installed with Python3 from ActiveState), Notepad++ and finally Komodo EDIT. I don't like IDLE GUI, but Notepad++ and Komodo EDIT

Re: English Idiom in Unix: Directory Recursively

2011-05-22 Thread Chris Angelico
On Mon, May 23, 2011 at 6:22 AM, Xah Lee xah...@gmail.com wrote: Xah wrote: «In the emacs case: “Recursive delete of xx? (y or n) ”, what could it possibly mean by the word “recursive” there? Like, it might delete the directory but not delete all files in it? » Jonathan de Boyne Pollard

Re: Strange behaviour of input() function (Python 3.2)

2011-05-22 Thread Chris Angelico
On Mon, May 23, 2011 at 8:43 AM, sunrrrise sunrrr...@gmail.com wrote: Hello, this is my first post. I'm trying to learn Python language which I find great, but I have a big problem with its editors/IDEs. Welcome! b to:  Wprowadz zmienna b: 2 This looks wrong. Are you copying and pasting

Functional Programing: stop using recursion, cons. Use map vectors

2011-05-22 Thread Xah Lee
this is important but i think most lispers and functional programers still don't know it. Functional Programing: stop using recursion, cons. Use map vectors. 〈Guy Steele on Parallel Programing〉 http://xahlee.org/comp/Guy_Steele_parallel_computing.html btw, lists (as cons, car, cdr) in the

Odp: Re: Strange behaviour of input() function (Python 3.2)

2011-05-22 Thread sunrrrise
Thank you for quick response! English is not my native language so I'm going to keep my explanations simple. This really simple script asks me for two variables called a and b. For example, I type 4 for a and 3 for b and IDLE gives me that: Wprowadz zmienna a: 4 Wprowadz zmienna b: 3 a to: 4

Re: Abandoning Python

2011-05-22 Thread Brendan Simon (eTRIX)
On 23/05/11 7:17 AM, python-list-requ...@python.org wrote: Subject: Re: Abandoning Python From: John Lee j...@pobox.com Date: Sun, 22 May 2011 21:13:44 + (UTC) Have you looked at Falcon (http://www.falconpl.org/)? It seems to have a lot of what you are looking for. I'm

Re: Abandoning Python

2011-05-22 Thread Daniel Kluev
On Mon, May 23, 2011 at 4:33 AM, John Lee j...@pobox.com wrote: Pylint?  Does it provide some kind of guessed-at-type that has been integrated with IDEs? WingIDE Pro has both Pylint integration and advanced type-guessing. -- With best regards, Daniel Kluev --

Re: English Idiom in Unix: Directory Recursively

2011-05-22 Thread Xah Lee
On May 22, 3:46 pm, Chris Angelico ros...@gmail.com wrote: On Mon, May 23, 2011 at 6:22 AM, Xah Lee xah...@gmail.com wrote: Xah wrote: «In the emacs case: “Recursive delete of xx? (y or n) ”, what could it possibly mean by the word “recursive” there? Like, it might delete the directory

Re: Re: Strange behaviour of input() function (Python 3.2)

2011-05-22 Thread Chris Angelico
On Mon, May 23, 2011 at 8:59 AM, sunrrrise sunrrr...@gmail.com wrote: Thank you for quick response! English is not my native language so I'm going to keep my explanations simple. No problem, your English is far better than my Polish. (I used Google Translate to figure out what Wprowadz zmienna

Re: and becomes or and or becomes and

2011-05-22 Thread Chris Angelico
On Mon, May 23, 2011 at 8:39 AM, Tim Roberts t...@probo.com wrote: That IS funny.  Interesting how a careful choice of arugments will fool us. One of my favorite math jokes is like that.  A teacher asked a student to reduce the following fraction:  16    64 He says all I have to do is

Re: English Idiom in Unix: Directory Recursively

2011-05-22 Thread Chris Angelico
On Mon, May 23, 2011 at 9:17 AM, Xah Lee xah...@gmail.com wrote: the context is this: In emacs directory manager (aka dired), when you call dired-do-delete on a directory, emacs prompts, this way: “Recursive delete of xx? (y or n)” But in order to make your point (such as it is), you are

Re: Why did Quora choose Python for its development?

2011-05-22 Thread Daniel Kluev
On Sun, May 22, 2011 at 11:47 PM, Octavian Rasnita orasn...@gmail.com wrote: From: Daniel Kluev dan.kl...@gmail.com I am talking about that flexibility which was criticized in the previous messages telling that this flexibility allows any programmer to use his own way. Perl doesn't force

Re: Why did Quora choose Python for its development?

2011-05-22 Thread John Bokma
Terry Reedy tjre...@udel.edu writes: I forget the exact question you asked, but this list is not the doc. The doc section on dicts gives dict(list_of_key_value_pairs) as the one true way, given such an input. The Perl way cannot be clearer and can only be shorted if it uses something shorter

Re: Multiprocessing: don't push the pedal to the metal?

2011-05-22 Thread Chris Angelico
On Mon, May 23, 2011 at 7:06 AM, John Ladasky lada...@my-deja.com wrote: If I spawn N worker sub-processes, my application in fact has N+1 processes in all, because there's also the master process itself. This would definitely be correct. How much impact the master process has depends on how

Re: and becomes or and or becomes and

2011-05-22 Thread Steven D'Aprano
On Sun, 22 May 2011 15:39:33 -0700, Tim Roberts wrote: Stef Mientki stef.mien...@gmail.com wrote: must of us will not use single bits these days, but at first sight, this looks funny : a=2 b=6 a and b 6 a b 2 a or b 2 a | b 6 That IS funny. Interesting how a careful choice of

Re: Abandoning Python

2011-05-22 Thread Gregory Ewing
Ed Keith wrote: Have you looked at Falcon (http://www.falconpl.org/)? This paragraph on the first page doesn't exactly fire me with enthuiasm: Falcon provides six integrated programming paradigms: procedural, object oriented, prototype oriented, functional, tabular and message oriented. And

[no subject]

2011-05-22 Thread Chris Jones
-- http://mail.python.org/mailman/listinfo/python-list

[no subject]

2011-05-22 Thread Chris Jones
-- http://mail.python.org/mailman/listinfo/python-list

Re: Functional Programing: stop using recursion, cons. Use map vectors

2011-05-22 Thread Deeyana
On Sun, 22 May 2011 15:47:53 -0700, Xah Lee wrote: this is important but i think most lispers and functional programers still don't know it. Functional Programing: stop using recursion, cons. Use map vectors. 〈Guy Steele on Parallel Programing〉

Writing multiple files with with-context

2011-05-22 Thread Shunichi Wakabayashi
To write onto multiple files on the same time (a number of files are variable), I'd like to code as follows, for example, IF I can do, LIST_LEN = 4 with [ open('list_%d.txt' % i, 'w') for i in range(LIST_LEN) ] as fobjlist: for i in range(1000):

Building Python: static library 3.2m

2011-05-22 Thread Chris Angelico
Hi! Just a quickie, I hope, where someone will probably be able to answer off the top of his head. I downloaded the 3.2 sources with the intention of building that instead of using Ubuntu's default Python 2.6.6. Ran ./configure, make, sudo make install, and then fiddled with a few things like

Re: Building Python: static library 3.2m

2011-05-22 Thread Ned Deily
In article BANLkTi=t+txtoadn2ts7rxpncqaufno...@mail.gmail.com, Chris Angelico ros...@gmail.com wrote: Question: Why 3.2m? What does that m mean? It seems to have come up a couple of times in the build process. It's a new feature in Python 3.2 to allow multiple versions of shared C object

Re: Building Python: static library 3.2m

2011-05-22 Thread Chris Angelico
On Mon, May 23, 2011 at 2:01 PM, Ned Deily n...@acm.org wrote: It's a new feature in Python 3.2 to allow multiple versions of shared C object files that differ in configure options (i.e. ones that affect the Python C ABI) to co-exist in one Python installation.  m means that they were built

Re: Building Python: static library 3.2m

2011-05-22 Thread Chris Angelico
On Mon, May 23, 2011 at 2:08 PM, Chris Angelico ros...@gmail.com wrote: Currently I'm puzzling over an inordinate number of symbol-not-found errors, even though it does seem to be finding the header files. It's weird. And I think I've just figured out why. PyString_* functions are no

[issue8898] The email package should defer to the codecs module for all aliases

2011-05-22 Thread Michele Orrù
Michele Orrù maker...@gmail.com added the comment: Well, actually encodings.aliases links to the encoding _module name_, as described in the doc: Encoding Aliases Support This module is used by the encodings package search function to map encodings names to module names. So I've

[issue8898] The email package should defer to the codecs module for all aliases

2011-05-22 Thread Michele Orrù
Changes by Michele Orrù maker...@gmail.com: Added file: http://bugs.python.org/file22058/fail_tactis.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8898 ___

[issue8898] The email package should defer to the codecs module for all aliases

2011-05-22 Thread Michele Orrù
Changes by Michele Orrù maker...@gmail.com: Added file: http://bugs.python.org/file22059/issue8898_withtests.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8898 ___

[issue8898] The email package should defer to the codecs module for all aliases

2011-05-22 Thread Michele Orrù
Changes by Michele Orrù maker...@gmail.com: Added file: http://bugs.python.org/file22060/fail_mcbs.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8898 ___

[issue12147] smtplib.send_message does not implement corectly rfc 2822

2011-05-22 Thread Nicolas Estibals
New submission from Nicolas Estibals nicolas.estib...@gmail.com: smtplib.send_message permits to send messages that are in python Message representation by selecting smtp's from and to in the message headers. Most of the time the implementation is correct but if the message is bounced

[issue12148] Clarify or-ing together doctest option flags

2011-05-22 Thread ekorn
New submission from ekorn jono...@gmail.com: Combining multiple option flags to doctest.testmod(optionflags=...) requires the bitwise or operator |, not plain or. I therefore suggest rewording or-ing together individual option flags. to or-ing together individual option flags, using the

[issue1441530] socket read() can cause MemoryError in Windows

2011-05-22 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Digging a little deeper, here's the conclusion: - with py3k, fragmentation is less likely: the buffered reader returned by makefile() ensures that we can allocate only one result buffer for the total number of bytes read() (thanks to

[issue1441530] socket read() can cause MemoryError in Windows

2011-05-22 Thread Charles-François Natali
Changes by Charles-François Natali neolo...@free.fr: Added file: http://bugs.python.org/file22063/imaplib_recv_27.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1441530 ___

[issue1441530] socket read() can cause MemoryError in Windows

2011-05-22 Thread Charles-François Natali
Changes by Charles-François Natali neolo...@free.fr: Removed file: http://bugs.python.org/file22044/imaplib_read.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1441530 ___

[issue1441530] socket read() can cause MemoryError in Windows

2011-05-22 Thread Charles-François Natali
Changes by Charles-François Natali neolo...@free.fr: Removed file: http://bugs.python.org/file22051/imaplib_ssl_makefile.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1441530 ___

[issue8898] The email package should defer to the codecs module for all aliases

2011-05-22 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Michele Orrù wrote: Michele Orrù maker...@gmail.com added the comment: Well, actually encodings.aliases links to the encoding _module name_, as described in the doc: Encoding Aliases Support This module is used by the encodings

[issue5715] listen socket close in SocketServer.ForkingMixIn.process_request()

2011-05-22 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5715 ___ ___

[issue12012] _ssl module doesn't compile with OpenSSL 1.0.0d: SSLv2_method is missing

2011-05-22 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset d5771ed4ec4e by Victor Stinner in branch '2.7': Issue #12012: test_ssl uses test_support.import_module() http://hg.python.org/cpython/rev/d5771ed4ec4e -- ___ Python tracker

[issue12012] _ssl module doesn't compile with OpenSSL 1.0.0d: SSLv2_method is missing

2011-05-22 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Victor, you broke the Solaris gcc buildbot on 2.7. It should be fixed by d5771ed4ec4e. -- status: open - closed ___ Python tracker rep...@bugs.python.org

[issue8898] The email package should defer to the codecs module for all aliases

2011-05-22 Thread Michele Orrù
Michele Orrù maker...@gmail.com added the comment: So, what do you prefer? Add a check for sys.platform, or just skip it? discussion on python-dev. So I'm +1 for just skipping it for now (with a XXX comment on the right maybe). -- title: The email package should defer to the codecs

[issue8898] The email package should defer to the codecs module for all aliases

2011-05-22 Thread Michele Orrù
Michele Orrù maker...@gmail.com added the comment: Sorry, I was told that email the bugtracker could not work properly. - mcbs has something broken in its imports; mbcs is only available on Windows. So, what do you prefer? Add a check for sys.platform, or just skip it? - tactis module

[issue8898] The email package should defer to the codecs module for all aliases

2011-05-22 Thread Michele Orrù
Changes by Michele Orrù maker...@gmail.com: Removed file: http://bugs.python.org/file22057/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8898 ___

[issue12079] decimal.py: TypeError precedence in fma()

2011-05-22 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 825b4278a055 by Mark Dickinson in branch 'default': Issue #12079: Decimal(0).fma(Decimal('inf'), 'not a number') should give a TypeError, not a Decimal.InvalidOperation http://hg.python.org/cpython/rev/825b4278a055 -- nosy:

[issue12079] decimal.py: TypeError precedence in fma()

2011-05-22 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: It turns out that this is as simple as moving the _convert_other call to the top of the Decimal.fma method. (For some reason I was confusing this with the subtleties involved in making sure that an InvalidOperation arising from the

[issue8898] The email package should defer to the codecs module for all aliases

2011-05-22 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Michele Orrù wrote: Michele Orrù maker...@gmail.com added the comment: Sorry, I was told that email the bugtracker could not work properly. - mcbs has something broken in its imports; mbcs is only available on Windows. So,

[issue6560] socket sendmsg(), recvmsg() methods

2011-05-22 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +charles-francois.natali, rosslagerwall versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6560 ___

[issue8898] The email package should defer to the codecs module for all aliases

2011-05-22 Thread Michele Orrù
Michele Orrù maker...@gmail.com added the comment: unittest.skip* are decorators, so useless in this case; also, AFAIS Lib/test/ uses sys.platform. I would suggest to put a try statement in encodings.mbcs, and raise an error in case the imported modules imported are not found. But this is

[issue8898] The email package should defer to the codecs module for all aliases

2011-05-22 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Something like: if name == 'mbcs' and not sys.platform.startswith('win'): continue should be enough. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8898

[issue8898] The email package should defer to the codecs module for all aliases

2011-05-22 Thread Michele Orrù
Changes by Michele Orrù maker...@gmail.com: Removed file: http://bugs.python.org/file22065/issue8898_skip.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8898 ___

[issue8898] The email package should defer to the codecs module for all aliases

2011-05-22 Thread Michele Orrù
Changes by Michele Orrù maker...@gmail.com: Added file: http://bugs.python.org/file22066/issue8898_skip.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8898 ___

[issue8898] The email package should defer to the codecs module for all aliases

2011-05-22 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: I suggest to: 1) remove the alias for tactis; 2) add the aliases for latin_* and the tests for the aliases; 3) fix the email.charset to use the new aliases instead of its own dict. 2) and 3) should go on 3.3 only, 1) could be

[issue12148] Clarify or-ing together doctest option flags

2011-05-22 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I think adding the word 'bitwise' in front of or'ed and linking it to that section would be sufficient. -- nosy: +r.david.murray versions: +Python 3.2, Python 3.3 ___ Python tracker

[issue12073] regrtest: use faulthandler to dump the tracebacks on SIGUSR1

2011-05-22 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Update the patch and describe the new feature in regrtest doc (--help). -- Added file: http://bugs.python.org/file22067/regrtest_sigusr1-2.patch ___ Python tracker rep...@bugs.python.org

  1   2   >