IPythonQt and IPythonZMQ projects

2010-04-17 Thread Gerardo Gutierrez
Hi all. I'm writting to tell you about some projects we're developing for you and the entire python programmers community. Read some of the documentation of the proposals and please tell us what are your ideas and what do you want or expect to see of this. I'm going to leave you a summary and

Re: Reactive programming in Python ?

2010-04-17 Thread Stefan Behnel
pca, 16.04.2010 22:02: On Apr 16, 8:28 pm, Stefan Behnel wrote: pca, 16.04.2010 17:18: In fact, I have seeded an open-source project, Yoopf, that enables programming by formula within Python, with the goal of dramatically accelerating the development of the model view in the MVC model.

Re: Striving for PEP-8 compliance

2010-04-17 Thread Gregory Ewing
Steven D'Aprano wrote: On Wed, 14 Apr 2010 22:10:28 +0200, Hans Mulder wrote: Anybody who invents another brace-delimited language should be beaten. You always end up with a big problem trying to make sure the braces are consistent with the program logic. Anybody who invents another

Re: getting a string as the return value from a system command

2010-04-17 Thread CHEN Guang
Catherine Moroney wrote: Hello, I want to call a system command (such as uname) that returns a string, and then store that output in a string variable in my python program. What is the recommended/most-concise way of doing this? I could always create a temporary file, call the

An open source AI research project

2010-04-17 Thread David Zhang
Hello! I have started an open source project to develop human-level Artificial Intelligence, using Python and Java as programming language, OpenCog and OpenWonderland as basement. If you are interested in this,or want to know more, please feel free to give me a reply. Thanks! David Zhang --

Re: Reactive programming in Python ?

2010-04-17 Thread pca
On Apr 17, 8:09 am, Stefan Behnel stefan...@behnel.de wrote: pca, 16.04.2010 22:02: On Apr 16, 8:28 pm, Stefan Behnel wrote: pca, 16.04.2010 17:18: In fact, I have seeded an open-source project, Yoopf, that enables programming by formula within Python, with the goal of dramatically

Re: extract substring by regex from a text file

2010-04-17 Thread Alessio
On Apr 15, 3:25 pm, Neil Cerutti ne...@norwich.edu wrote: On 2010-04-15, Alessio alessio...@gmail.com wrote: Hi, I'm facing the problem in the subject: - I have a text file that I need to parse for producing a specifical Thank you, I forgot to say that I already solved. I used readlines()

Re: extract substring by regex from a text file

2010-04-17 Thread Stefan Behnel
Alessio, 17.04.2010 10:19: I used readlines() to read my text file, then with a for cicle I extract line by line the substrings I need by regular expressions (re.findall()) Note that it's usually more efficient to just run the for-loop over the file object, rather than using readlines()

Re: extract substring by regex from a text file

2010-04-17 Thread Peter Otten
Alessio wrote: I used readlines() to read my text file, then with a for cicle I extract line by line the substrings I need by regular expressions Just in case you didn't know: for line in instream: ... looks better, uses less memory, and may be a tad faster than for line in

Re: Incorrect scope of list comprehension variables

2010-04-17 Thread Dave Angel
Steven D'Aprano wrote: On Fri, 16 Apr 2010 08:48:03 -0700, Aahz wrote: In article 4bb92850$0$8827$c3e8...@news.astraweb.com, Steven D'Aprano st...@remove-this-cybersource.com.au wrote: Nevertheless, it is a common intuition that the list comp variable should *not* be exposed outside

class instance customization

2010-04-17 Thread Alexander
Hi, list. I've some nontrivial class implementation MyClass and its instance my: my = MyClass(args) MyClass uses in internals some variable which is not defined in MyClass itself. I want to extend instance of MyClass at runtime defining this variable and making new instance. It is like a class

Re: Incorrect scope of list comprehension variables

2010-04-17 Thread Alain Ketterlin
Steven D'Aprano st...@remove-this-cybersource.com.au writes: On Fri, 16 Apr 2010 08:48:03 -0700, Aahz wrote: Nevertheless, it is a common intuition that the list comp variable should *not* be exposed outside of the list comp, and that the for-loop variable should. Perhaps it makes no sense, but

Re: cross-platform coloured text in terminal

2010-04-17 Thread Jonathan Hartley
On Apr 16, 5:59 pm, Lie Ryan lie.1...@gmail.com wrote: On 04/16/10 19:28, Jonathan Hartley wrote: I'm playing with ideas of what API to expose. My favourite one is to simply embed ANSI codes in the stream to be printed. Then this will work as-is on Mac and *nix. To make it work on Windows,

Re: Creating a standalone application

2010-04-17 Thread Lawrence D'Oliveiro
In message fbdf4a20-1fe2-4c23-9ee2- c6e739362...@12g2000yqi.googlegroups.com, Jonathan Hartley wrote: On Apr 13, 10:42�pm, Lawrence D'Oliveiro l...@geek-central.gen.new_zealand wrote: In message kz4xn.868$i8@news.indigo.ie, Luis Quesada wrote: I am getting an expected string without

Re: Creating a standalone application

2010-04-17 Thread Lawrence D'Oliveiro
In message 4bc4ec17.3040...@4c.ucc.ie, Luis Quesada wrote: Lawrence D'Oliveiro wrote: In message kz4xn.868$i8@news.indigo.ie, Luis Quesada wrote: I am getting an expected string without null bytes error when using cxfreeze for creating a standalone application (in Linux-Ubuntu). Why

Re: when should I explicitly close a file?

2010-04-17 Thread Lawrence D'Oliveiro
In message d48b70da-5384-4dc6-9527-46c6b735c...@r1g2000yqb.googlegroups.com, gelonida wrote: I've been told, that following code snippet is not good. open(myfile,w).write(astring) ... I do that for reads, but never for writes. For writes, you want to give a chance for write errors to

Re: Striving for PEP-8 compliance

2010-04-17 Thread Lie Ryan
On 04/17/10 16:20, Gregory Ewing wrote: Steven D'Aprano wrote: On Wed, 14 Apr 2010 22:10:28 +0200, Hans Mulder wrote: Anybody who invents another brace-delimited language should be beaten. You always end up with a big problem trying to make sure the braces are consistent with the program

Re: when should I explicitly close a file?

2010-04-17 Thread Lie Ryan
On 04/17/10 21:23, Lawrence D'Oliveiro wrote: In message d48b70da-5384-4dc6-9527-46c6b735c...@r1g2000yqb.googlegroups.com, gelonida wrote: I've been told, that following code snippet is not good. open(myfile,w).write(astring) ... I do that for reads, but never for writes. For

My first project

2010-04-17 Thread Someone Something
This is my first large-scale (sort of) project in python. It is still under daily development, but the core is pretty stable (although, I'm still adding features). Here's the code: http://github.com/Poincare/PyEventLoop or http://code.google.com/p/pyeventloop/ Tell me what you guys think of it

Re: cross-platform coloured text in terminal

2010-04-17 Thread Someone Something
That sounds like a nice idea, try it out and see what you make of it. (It may have been done before but probably not as a standalone module as it doesn't require that much code) On Sat, Apr 17, 2010 at 6:52 AM, Jonathan Hartley tart...@tartley.comwrote: On Apr 16, 5:59 pm, Lie Ryan

Calling a class method

2010-04-17 Thread vsoler
I have the following script: class TTT(object): def duplica(self): self.data *= 2 def __init__(self, data): self.data = data TTT.duplica(self.data) def __str__(self): return str(self.data) print obj=TTT(7) print obj And I want 14 printed (twice 7) I

Re: Calling a class method

2010-04-17 Thread Xavier Ho
On Sat, Apr 17, 2010 at 11:09 PM, vsoler vicente.so...@gmail.com wrote: I have the following script: class TTT(object): def duplica(self): self.data *= 2 def __init__(self, data): self.data = data TTT.duplica(self.data) You're calling duplica with the class,

Can someone please make it more pythonic or better?

2010-04-17 Thread Oltmans
Greetings Python superstars, I've a directory structure like following tests / __init__.py testfile.py testfile.py contains following code import unittest class Calculator(unittest.TestCase): def test_add(self): print 'just add' def test_divide(self):

Re: Calling a class method

2010-04-17 Thread Andreas Waldenburger
On Sat, 17 Apr 2010 06:09:21 -0700 (PDT) vsoler vicente.so...@gmail.com wrote: I got the following error: TypeError: unbound method duplica() must be called with TTT instance as first argument (got int instance instead) What am I doing wrong? Not reading the error message. You need to

Re: How to run program in Linux

2010-04-17 Thread Jim Byrnes
Dave Angel wrote: Jim Byrnes wrote: Dave Angel wrote: Jim Byrnes wrote: div class=moz-text-flowed style=font-family: -moz-fixedI am just learning Python and am new to Linux so I am probably doing something to trip myself up. I am trying to run an example GUI program that fetches a record from

Re: Calling a class method

2010-04-17 Thread Andreas Waldenburger
On Sat, 17 Apr 2010 06:09:21 -0700 (PDT) vsoler vicente.so...@gmail.com wrote: [snip actual question] Oh and a note on vocabulary: A class method is a somewhat advanced topic and quite probably not what you want here. They are not used very often. What I proposed in the other post was an

Re: Calling a class method

2010-04-17 Thread Andreas Waldenburger
On Sat, 17 Apr 2010 15:44:56 +0200 Andreas Waldenburger use...@geekmail.invalid wrote: On Sat, 17 Apr 2010 06:09:21 -0700 (PDT) vsoler vicente.so...@gmail.com wrote: I got the following error: TypeError: unbound method duplica() must be called with TTT instance as first argument (got

Re: An open source AI research project

2010-04-17 Thread Simon Brunning
On 17 April 2010 09:03, David Zhang david...@gmail.com wrote: I have started an open source project to develop human-level Artificial Intelligence... Have you people never seen Terminator? Sheesh. -- Cheers, Simon B. -- http://mail.python.org/mailman/listinfo/python-list

Re: Calling a class method

2010-04-17 Thread Steven D'Aprano
On Sat, 17 Apr 2010 15:44:56 +0200, Andreas Waldenburger wrote: On Sat, 17 Apr 2010 06:09:21 -0700 (PDT) vsoler vicente.so...@gmail.com wrote: I got the following error: TypeError: unbound method duplica() must be called with TTT instance as first argument (got int instance instead)

Re: Calling a class method

2010-04-17 Thread Walter Brameld IV
vsoler wrote: I have the following script: class TTT(object): def duplica(self): self.data *= 2 def __init__(self, data): self.data = data TTT.duplica(self.data) def __str__(self): return str(self.data) print obj=TTT(7) print obj And I want 14

Re: An open source AI research project

2010-04-17 Thread Lie Ryan
On 04/18/10 00:13, Simon Brunning wrote: On 17 April 2010 09:03, David Zhang david...@gmail.com wrote: I have started an open source project to develop human-level Artificial Intelligence... Have you people never seen Terminator? Sheesh. Ssshhh, you're disclosing our top-secret plan... --

Re: Calling a class method

2010-04-17 Thread Walter Brameld IV
vsoler wrote: I have the following script: class TTT(object): def duplica(self): self.data *= 2 def __init__(self, data): self.data = data TTT.duplica(self.data) def __str__(self): return str(self.data) print obj=TTT(7) print obj And I want 14

Re: Incorrect scope of list comprehension variables

2010-04-17 Thread Steven D'Aprano
On Sat, 17 Apr 2010 12:05:03 +0200, Alain Ketterlin wrote: I don't know of any language that creates a new scope for loop variables, but perhaps that's just my ignorance... I think Pascal and Modula-2 do this, Fortran does this, as well as Ada. Pascal doesn't do this. [st...@sylar pascal]$

Re: class instance customization

2010-04-17 Thread Steven D'Aprano
On Sat, 17 Apr 2010 13:09:43 +0400, Alexander wrote: Hi, list. I've some nontrivial class implementation MyClass and its instance my: my = MyClass(args) MyClass uses in internals some variable which is not defined in MyClass itself. I want to extend instance of MyClass at runtime

Re: How to run program in Linux

2010-04-17 Thread Dave Angel
Jim Byrnes wrote: Dave Angel wrote: Jim Byrnes wrote: Dave Angel wrote: Jim Byrnes wrote: div class=moz-text-flowed style=font-family: -moz-fixedI am just learning Python and am new to Linux so I am probably doing something to trip myself up. I am trying to run an example GUI program that

Re: Incorrect scope of list comprehension variables

2010-04-17 Thread Alain Ketterlin
Steven D'Aprano st...@remove-this-cybersource.com.au writes: On Sat, 17 Apr 2010 12:05:03 +0200, Alain Ketterlin wrote: I don't know of any language that creates a new scope for loop variables, but perhaps that's just my ignorance... I think Pascal and Modula-2 do this, Fortran does this,

Re: How to run program in Linux

2010-04-17 Thread Jim Byrnes
Dave Angel wrote: Jim Byrnes wrote: Dave Angel wrote: Jim Byrnes wrote: Dave Angel wrote: Jim Byrnes wrote: div class=moz-text-flowed style=font-family: -moz-fixedI am just learning Python and am new to Linux so I am probably doing something to trip myself up. I am trying to run an example

Re: class instance customization

2010-04-17 Thread Alexander
On 17.04.2010 18:32, Steven D'Aprano wrote: On Sat, 17 Apr 2010 13:09:43 +0400, Alexander wrote: Hi, list. I've some nontrivial class implementation MyClass and its instance my: my = MyClass(args) MyClass uses in internals some variable which is not defined in MyClass itself. I want

Re: extract substring by regex from a text file

2010-04-17 Thread Alessio
On Apr 17, 11:05 am, Peter Otten __pete...@web.de wrote: Just in case you didn't know:     for line in instream:         ... looks better, uses less memory, and may be a tad faster than     for line in instream.readlines():         ... Peter Thanks for your suggestions, they are

Re: getting a string as the return value from a system command

2010-04-17 Thread Robert Kern
On 2010-04-17 01:49 , CHEN Guang wrote: Catherine Moroney wrote: Hello, I want to call a system command (such as uname) that returns a string, and then store that output in a string variable in my python program. What is the recommended/most-concise way of doing this? I could

Python Learning Environment

2010-04-17 Thread Vijay Shanker Dubey
Hi, My Linux box is ubuntu system. I want to create a development environment on my system for python programing language. I got to see there are two versions of python language 1. python 2.5.6 2. python 3.1.2 To find out what version i look in to my /usr/bin folder. There are many entries for

Re: Python Learning Environment

2010-04-17 Thread Krister Svanlund
On Sat, Apr 17, 2010 at 6:32 PM, Vijay Shanker Dubey vijay.s...@gmail.com wrote: Hi, My Linux box is ubuntu system. I want to create a development environment on my system for python programing language. I got to see there are two versions of python language 1. python 2.5.6 2. python 3.1.2

Re: An open source AI research project

2010-04-17 Thread Someone Something
I would like to know more please. Does it have a website? On Sat, Apr 17, 2010 at 4:03 AM, David Zhang david...@gmail.com wrote: Hello! I have started an open source project to develop human-level Artificial Intelligence, using Python and Java as programming language, OpenCog and

Re: Python Learning Environment

2010-04-17 Thread Krister Svanlund
On Sat, Apr 17, 2010 at 7:06 PM, Vijay Shanker Dubey vijay.s...@gmail.com wrote: Yes you are right about symlink thing. So what should I do for a clever developer environment? Should I change that python link to python3 or python3.1? Regards, Vijay Shanker Dubey It all depends on what you

Re: Python Learning Environment

2010-04-17 Thread Vijay Shanker Dubey
Thanks friend, Got the point. Regards, Vijay Shanker Dubey On Sat, Apr 17, 2010 at 11:31 PM, Krister Svanlund krister.svanl...@gmail.com wrote: On Sat, Apr 17, 2010 at 7:06 PM, Vijay Shanker Dubey vijay.s...@gmail.com wrote: Yes you are right about symlink thing. So what should I do

Re: My first project

2010-04-17 Thread Someone Something
no one cares? :( On Sat, Apr 17, 2010 at 8:41 AM, Someone Something fordhai...@gmail.comwrote: This is my first large-scale (sort of) project in python. It is still under daily development, but the core is pretty stable (although, I'm still adding features). Here's the code:

Usable street address parser in Python?

2010-04-17 Thread John Nagle
Is there a usable street address parser available? There are some bad ones out there, but nothing good that I've found other than commercial products with large databases. I don't need 100% accuracy, but I'd like to be able to extract street name and street number for at least 98% of US

Re: Incorrect scope of list comprehension variables

2010-04-17 Thread Ethan Furman
There's no RightAnswer(tm), just our best guess as to what is the most useful behavior for the most number of people. +1 QOTW -- http://mail.python.org/mailman/listinfo/python-list

Nested list problem - please...

2010-04-17 Thread Martin Hvidberg
Dear list I have this code, it builds up a data structure of nested lists, and filling data in them. My problem is that it seems that one of the lists SA[1] is not a list of unique instances but rather individual links to the same variable. In the example below I assign 'X' to what I intended

Re: Nested list problem - please...

2010-04-17 Thread Chris Rebert
On Sat, Apr 17, 2010 at 12:40 PM, Martin Hvidberg mar...@hvidberg.net wrote: I have this code, it builds up a data structure of nested lists, and filling data in them. My problem is that it seems that one of the lists SA[1] is not a list of unique instances but rather individual links to the

Re: Incorrect scope of list comprehension variables

2010-04-17 Thread Steven D'Aprano
On Sat, 17 Apr 2010 17:23:45 +0200, Alain Ketterlin wrote: Steven D'Aprano st...@remove-this-cybersource.com.au writes: On Sat, 17 Apr 2010 12:05:03 +0200, Alain Ketterlin wrote: I don't know of any language that creates a new scope for loop variables, but perhaps that's just my

Python 2.7b1 and argparse's version action

2010-04-17 Thread Tobias Herp
Hi, all, I notice that Python 2.7 beta 1 now contains the argparse module, which might be a good thing. The code has been cleaned up, too. But there is still one issue with argparse: Completely unnecessarily, the 'version' constructor argument is now deprecated. This fact doesn't solve any

Re: Python 2.7b1 and argparse's version action

2010-04-17 Thread Chris Rebert
On Sat, Apr 17, 2010 at 6:53 PM, Tobias Herp bruno-der-fragwuerd...@arcor.de wrote: Hi, all, I notice that Python 2.7 beta 1 now contains the argparse module, which might be a good thing.  The code has been cleaned up, too. But there is still one issue with argparse: Completely

Re: Python 2.7b1 and argparse's version action

2010-04-17 Thread Tobias Herp
Am 18.04.2010 04:09, schrieb Chris Rebert: On Sat, Apr 17, 2010 at 6:53 PM, Tobias Herp bruno-der-fragwuerd...@arcor.de wrote: Hi, all, I notice that Python 2.7 beta 1 now contains the argparse module, which might be a good thing. The code has been cleaned up, too. But there is still one

Python at BerkeleyTIP-Global meeting on Sunday April 18 12N-3P, April 27

2010-04-17 Thread giovanni_re
Come discuss python. :) Join via VOIP or come to Berkeley http://sites.google.com/site/berkeleytip/voice-voip-conferencing FSCafe at Moffitt at UCBerkeley, opens 1pm, but can connect from outside at 12N. Hot topics: Ubuntu 10.04, Free Culuture, VOIP, Set up the web server mail list

Cheap Wholesale Adidas Shoes (paypal payment)

2010-04-17 Thread world-trade
Cheap Wholesale UGG Shoes (paypal payment) (http://www.jordanonline06.com/) Cheap Wholesale Ugg Boots (paypal payment) Cheap Wholesale Gucci Shoes (paypal payment) (http://www.jordanonline06.com/) Cheap Wholesale GUCCI Boots Cheap Wholesale Lacoste Shoes Cheap Wholesale LV

[issue8418] Crash 0xc0000417 STATUS_INVALID_CRUNTIME_PARAMETER on program exit

2010-04-17 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: That's because 7681 is closed. (That said, I consider it a bug in the tracker that it defaults to searching only open issues...and I think I filed an issue in the metatracker for that, too. Maybe I'll get around to fixing it if I can

[issue7332] python script segment fault at PyMarshal_ReadLastObjectFromFile in import_submodule

2010-04-17 Thread Charles-Francois Natali
Changes by Charles-Francois Natali neolo...@free.fr: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7332 ___ ___

[issue7384] curses crash on FreeBSD

2010-04-17 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: One oddity: In Mark's test case, the error only shows if readline is imported _before_ curses. The other way around it's fine. On FreeBSD 8.0 amd64, with the _default_ libcurses, the Valgrind output for py3k looks like this: [...]

[issue7384] curses crash on FreeBSD

2010-04-17 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: I take that back. With the curses from /usr/ports/devel/ncurses, Mark's test case is fine, but ./python Lib/test/regrtest.py -uall test_curses fails again. -- ___ Python tracker

[issue7384] curses crash on FreeBSD

2010-04-17 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Alas, after installing curses from /usr/ports/devel/ncurses I did not recompile Modules/_curses_panel.c. So, after a proper build ./python Lib/test/regrtest.py -uall test_curses shows no errors. --

[issue8299] Improve GIL in 2.7

2010-04-17 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: I'm not trying to be a pain here, but do you have any explanation as to why, with fair scheduling, the observed execution time of multiple CPU-bound threads is substantially worse than with unfair scheduling? Yes. This is because

[issue8299] Improve GIL in 2.7

2010-04-17 Thread David Beazley
David Beazley d...@dabeaz.com added the comment: I'm definitely sure that semaphores were being used in my test---I stuck a print statement inside the code that creates locks just to make sure it was using the semaphore version :-). Unfortunately, at this point I think most of this discussion

[issue8428] buildbot: test_multiprocessing timeout

2010-04-17 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Same issue on sparc solaris10 gcc 3.x: http://www.python.org/dev/buildbot/builders/sparc solaris10 gcc 3.x/builds/639/steps/test/logs/stdio -- ___ Python tracker rep...@bugs.python.org

[issue8299] Improve GIL in 2.7

2010-04-17 Thread David Beazley
David Beazley d...@dabeaz.com added the comment: As a followup, since I'm not sure anyone actually here actually tried a fair GIL on Linux, I incorporated your suggested fairness patch to the condition-variable version of the GIL (using this pseudocode you wrote as a guide): with gil.cond:

[issue8430] test_site failure with non-ASCII directory

2010-04-17 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: r80137 (PEP 3147) introduced a test in test_site. The test fails on non-ASCII directory because stdout uses ASCII whereas the directories contains non-ASCII characters. http://www.python.org/dev/buildbot/builders/AMD64 Ubuntu

[issue8431] buildbot: test_tokenize and test_io hung on ARMv4 Debian 3.x

2010-04-17 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: test_tokenize and test_io does sometimes hung on buildbot ARMv4 Debian 3.x. It looks to be related to #8429. http://www.python.org/dev/buildbot/builders/ARMv4 Debian 3.x/builds/52/steps/test/logs/stdio - ...

[issue8401] Strange behavior of bytearray slice assignment

2010-04-17 Thread Eugene Kapun
Eugene Kapun abacabadabac...@gmail.com added the comment: -1 on special-casing string without an encoding. Current code does (almost) this: ... if argument_is_a_string: if not encoding_is_given: # Special case raise TypeError(string argument without an encoding)

[issue8429] buildbot: test_subprocess timeout

2010-04-17 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +doko ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8429 ___ ___ Python-bugs-list mailing list

[issue8431] buildbot: test_tokenize and test_io hung on ARMv4 Debian 3.x

2010-04-17 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I don't know about test_tokenize, but test_io is quite heavy and a couple of individual tests launch many threads. On a slow CPU with little RAM, the test could simply be still running (swapping?) after 1800s... -- nosy: +doko, pitrou

[issue8430] test_site failure with non-ASCII directory

2010-04-17 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- assignee: - barry nosy: +barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8430 ___ ___

[issue5650] Obsolete RFCs should be removed from doc of urllib.urlparse

2010-04-17 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: Fixed in revision 80146 and merged into other branches release26-maint: r80147 py3k: r80148 release31-maint: r80149 -- assignee: georg.brandl - orsenthil resolution: - fixed stage: needs patch - committed/rejected status: open -

[issue7332] python script segment fault at PyMarshal_ReadLastObjectFromFile in import_submodule

2010-04-17 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I agree that we can consider dropping the static buffer and always using PyMem_MALLOC(). It looks a bit strange for this bug to happen, though. Does Ubuntu use a small stack size? -- nosy: +pitrou, tim_one

[issue7332] python script segment fault at PyMarshal_ReadLastObjectFromFile in import_submodule

2010-04-17 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Oh, and the record of the original patch conversation (when this optimization was added) can be found here: http://mail.python.org/pipermail/patches/2001-January/003500.html -- priority: normal - high versions: +Python 2.7, Python 3.1,

[issue7332] python script segment fault at PyMarshal_ReadLastObjectFromFile in import_submodule

2010-04-17 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: A small benchmark shows no difference in startup time when disabling the stack buffer. (this is on Linux: of course, the problem might be that the glibc is heavily optimized) The benchmark was a simple: $ time ./python -E -c import logging,

[issue7332] python script segment fault at PyMarshal_ReadLastObjectFromFile in import_submodule

2010-04-17 Thread Dave Malcolm
Changes by Dave Malcolm dmalc...@redhat.com: -- nosy: +dmalcolm ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7332 ___ ___ Python-bugs-list

[issue7332] python script segment fault at PyMarshal_ReadLastObjectFromFile in import_submodule

2010-04-17 Thread Charles-Francois Natali
Charles-Francois Natali neolo...@free.fr added the comment: It looks a bit strange for this bug to happen, though. Does Ubuntu use a small stack size? There are other possible reasons: - the programs that crash (or the libraries they're using) use the stack a lot - somehow,

[issue8432] build: test_send_signal of test_subprocess failure

2010-04-17 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: http://www.python.org/dev/buildbot/builders/x86 FreeBSD 3.x/builds/211/steps/test/logs/stdio Example: == FAIL: test_send_signal

[issue2987] RFC2732 support for urlparse (IPv6 addresses)

2010-04-17 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I posted this to the checkins list, but for reference, the following invalid URL should be added to the test cases: http://[::1/foo/bar]/bad -- nosy: +r.david.murray ___ Python tracker

[issue8433] buildbot: test_curses failure

2010-04-17 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: http://www.python.org/dev/buildbot/builders/sparc Debian 3.x/builds/62/steps/test/logs/stdio test_curses [?1049h(B[?7h[?5h[?5l[?12l[?25habc[?1000h[?1000l(B[?1049l

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-04-17 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: If everyone agrees on error: [Errno 0] Error being a legitimate alias for a connection closed event condition then I'd say the test server looks good, even if I think that expecting a ssl.SSLError derived exception would have made more

[issue8433] buildbot: test_curses failure, getmouse() returned ERR

2010-04-17 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- title: buildbot: test_curses failure - buildbot: test_curses failure, getmouse() returned ERR ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8433

[issue8322] test_ssl failures with OpenSSL 1.0.0

2010-04-17 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Committed in r80151 (trunk), r80154 (py3k). -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-04-17 Thread Nir Aides
Nir Aides n...@winpdb.org added the comment: the scheduling function bfs_find_task returns the first task that has an expired deadline. since an expired deadline probably means that the scheduler hasn't run for a while, it might be worth it to look for the thread with the oldest deadline

[issue8433] buildbot: test_curses failure, getmouse() returned ERR

2010-04-17 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Other example: http://www.python.org/dev/buildbot/builders/alpha Debian 3.x/builds/63/steps/test/logs/stdio test_curses

[issue8371] Add a command to download distributions

2010-04-17 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: There is a ready-to-use public domain code with a progress bar if you'll need it. http://pypi.python.org/pypi/wget/ -- nosy: +techtonik ___ Python tracker rep...@bugs.python.org

[issue7332] python script segment fault at PyMarshal_ReadLastObjectFromFile in import_submodule

2010-04-17 Thread Charles-Francois Natali
Charles-Francois Natali neolo...@free.fr added the comment: Ok, I've done too some trivial benchmarking on my Linux box, and I get this: right now: $ time ./python /tmp/test_import.py real0m1.258s user0m1.111s sys 0m0.101s with mmap: $ time ./python /tmp/test_import.py real

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-04-17 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: If everyone agrees on error: [Errno 0] Error being a legitimate alias for a connection closed event condition then I'd say the test server looks good, even if I think that expecting a ssl.SSLError derived exception would have made more

[issue7332] python script segment fault at PyMarshal_ReadLastObjectFromFile in import_submodule

2010-04-17 Thread Charles-Francois Natali
Changes by Charles-Francois Natali neolo...@free.fr: Removed file: http://bugs.python.org/file16960/marshal_stack.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7332 ___

[issue2987] RFC2732 support for urlparse (IPv6 addresses)

2010-04-17 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: Moving the Bad URL check to a higher level can be detect the bad urls much better. Once I the netloc is parsed and obtained, invalid URL can be checked. I am attaching an update with the new test included. If you have any comments, please

[issue8434] buildbot: test_gdb failure on sparc Ubuntu trunk

2010-04-17 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: http://www.python.org/dev/buildbot/builders/sparc Ubuntu trunk/builds/76/steps/test/logs/stdio test_gdb test test_gdb failed -- multiple errors occurred; run in verbose mode for details Re-running test 'test_gdb' in verbose mode

[issue8384] Distutils C extension build with MinGW on Windows fails

2010-04-17 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: To me a better option would be an ability to specify a path to compiler from command line. --compiler-path=./mingw/bin/gcc.exe -- nosy: +techtonik ___ Python tracker rep...@bugs.python.org

[issue8431] buildbot: hung on ARM Debian

2010-04-17 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: There are other hung on trunk (output of bbreport): ARMv4 Debian trunk 80129, 80120, 80101, 80098, 80085, 80129: # hung for 30 min: test_ast 80120: # hung for 30 min: test_descr

[issue8434] buildbot: test_gdb failure on sparc Ubuntu trunk

2010-04-17 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Related issue: #8281 (For gdb7, a python-gdb.py file is added to the build, allowing to use advanced gdb features when debugging Python.) -- ___ Python tracker rep...@bugs.python.org

[issue8434] buildbot: test_gdb failure on sparc Ubuntu trunk

2010-04-17 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8434 ___ ___

[issue8420] Objects/setobject.c contains unsafe code

2010-04-17 Thread Eugene Kapun
Eugene Kapun abacabadabac...@gmail.com added the comment: I've found more unsafe code in Objects/setobject.c. This code makes Python 3.1.2 segfault by using a bug in function set_merge: class bad: def __eq__(self, other): if be_bad: set2.clear()

[issue4814] ftplib does not honour timeout parameter for active data connections

2010-04-17 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- assignee: - giampaolo.rodola nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4814 ___

[issue6789] ftplib storelines does not honor strings returned in fp.readline

2010-04-17 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Closed as a duplicate of 6822 which provides a patch. -- nosy: +giampaolo.rodola resolution: - duplicate status: open - closed ___ Python tracker rep...@bugs.python.org

[issue8435] It is possible to observe a mutating frozenset

2010-04-17 Thread Eugene Kapun
New submission from Eugene Kapun abacabadabac...@gmail.com: This code shows that frozensets aren't really immutable. The same frozenset is printed twice, with different content. Buggy functions are set_contains, set_remove and set_discard, all in Objects/setobject.c class bad: def

[issue8420] Objects/setobject.c contains unsafe code

2010-04-17 Thread Eugene Kapun
Changes by Eugene Kapun abacabadabac...@gmail.com: -- type: - crash ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8420 ___ ___ Python-bugs-list

  1   2   >