[ANN] Karrigell-3.0.4 released

2010-02-28 Thread Pierre Quentel
Hi, A new version of the web framework Karrigell has been released. The main changes are : - more robust session management in multi-threaded and multi-process environments - Unicode management in HTMLTags - Unicode management and error reports in Karrigell Templates - more of MySQL : can be

First Lalita release: 0.1.1

2010-02-28 Thread Facundo Batista
Python Argentina is pleased to announce the 0.1.1 release of Lalita. https://edge.launchpad.net/lalita/trunk/pre-alpha-1 Lalita is yet another IRC bot, one where new functionality is simple to create by just adding easy-to-write plugins. This is a pre-alpha release, our first release, but

IMDbPY 4.5

2010-02-28 Thread Davide Alberani
IMDbPY 4.5 is available (tgz, rpm, exe) from: http://imdbpy.sourceforge.net/ IMDbPY is a Python package useful to retrieve and manage the data of the IMDb movie database about movies, people, characters and companies. In this release, important fixes to access the remote data and some

Re: stripping fields from xml file into a csv

2010-02-28 Thread Stefan Behnel
Hal Styli, 27.02.2010 21:50: I have a sed solution to the problems below but would like to rewrite in python... Note that sed (or any other line based or text based tool) is not a sensible way to handle XML. If you want to read XML, use an XML parser. They are designed to do exactly what you

Paper Presentation Topics

2010-02-28 Thread jaagar
Paper Presentation Topics. Our database posses huge collection of topics for paper presentations in all areas. Check all our paper presentation topics at http://pptcontent.blogspot.com/ Topics for Paper Presentation : Paper presentation topics for ece. Paper presentation topics for cse.

Re: Python dos2unix one liner

2010-02-28 Thread Steven D'Aprano
On Sat, 27 Feb 2010 19:37:50 -0800, staticd wrote: Amusing how long those Python toes can be. In several replies I have noticed (often clueless) opinions on Perl. When do people learn that a language is just a tool to do a job? When do people learn that language makes a difference?  I used

Re: help with Python installation

2010-02-28 Thread John Yeung
On Feb 28, 12:51 am, gujax rjngrj2...@gmail.com wrote: I agree with you. I have a CD of Xubuntu. I tried booting up with the CD and was impressed. I noticed few problems with screen resolution, window size etc. Though it may be worth working out any niggling problems to switch to Linux, I

Re: Is this secure?

2010-02-28 Thread Paul Rubin
a...@pythoncraft.com (Aahz) writes: Are you sure? I haven't done a lot of research, but my impression was that Windows didn't have anything built in. I don't know much about the windows but there is the CAPI and then there is all the TCPA (i.e. DRM) stuff. Maybe it can be used somehow. --

getting rpy2 from repository

2010-02-28 Thread Stephen Tucker
Hi all, I have Enthought Python 4.3 installed on my OS X 10.5. When I do $ easy_install rpy2 Searching for rpy2 No matching release version found. Searching for latest development version. Reading http://www.enthought.com/repo/epd/eggs/MacOSX/10.4_x86/ Please enter credentials to access this

Re: Python dos2unix one liner

2010-02-28 Thread Stefan Behnel
Steven D'Aprano, 28.02.2010 09:48: There ought to be some kind of competition for the least efficient solution to programming problems That wouldn't be very interesting. You could just write a code generator that spits out tons of garbage code including a line that solves the problem, and then

Re: scope of generators, class variables, resulting in global na

2010-02-28 Thread dontspamleo
...and really means this... class C:   x = 1   def f(self,y): return T.x + y I don't understand what T is. Did you mean C? Yes, I meant C. Thanks. If so, you are wrong. self.x is not the same as class.x due to inheritance rules. Consider one example: example snipped see thread/

Re: Python dos2unix one liner

2010-02-28 Thread Martin P. Hellwig
On 02/28/10 11:05, Stefan Behnel wrote: Steven D'Aprano, 28.02.2010 09:48: There ought to be some kind of competition for the least efficient solution to programming problems That wouldn't be very interesting. You could just write a code generator that spits out tons of garbage code including

Re: stripping fields from xml file into a csv

2010-02-28 Thread Roland Mueller
Hello, 2010/2/28 Stefan Behnel stefan...@behnel.de Hal Styli, 27.02.2010 21:50: I have a sed solution to the problems below but would like to rewrite in python... Note that sed (or any other line based or text based tool) is not a sensible way to handle XML. If you want to read XML, use

Re: stripping fields from xml file into a csv

2010-02-28 Thread Stefan Behnel
Roland Mueller, 28.02.2010 13:01: The stylesheet is test.xsl and the insput data test.xml. The following Python code the applies the stylesheet on the input data and puts the output into foo. Python code: #!/usr/bin/python import sys import libxml2 import libxslt styledoc =

Method / Functions - What are the differences?

2010-02-28 Thread Michael Rudolf
Out of curiosity I tried this and it actually worked as expected: class T(object): x=[] foo=x.append def f(self): return self.x t=T() t.f() [] T.foo(1) t.f() [1] At first I thought hehe, always fun to play around with python. Might be

Re: problem with floats and calculations

2010-02-28 Thread Albert van der Horst
In article mailman.2549.1266184509.28905.python-l...@python.org, Dennis Lee Bieber wlfr...@ix.netcom.com wrote: On Sun, 14 Feb 2010 10:33:54 +0100, Karsten Goen karsten.g...@googlemail.com declaimed the following in gmane.comp.python.general: Maybe anyone can help me with this problem, I don't

Re: stripping fields from xml file into a csv

2010-02-28 Thread Roland Mueller
2010/2/28 Stefan Behnel stefan...@behnel.de Roland Mueller, 28.02.2010 13:01: The stylesheet is test.xsl and the insput data test.xml. The following Python code the applies the stylesheet on the input data and puts the output into foo. Python code: #!/usr/bin/python import sys

Re: Python dos2unix one liner

2010-02-28 Thread John Bokma
Steven D'Aprano st...@remove-this-cybersource.com.au writes: On Sat, 27 Feb 2010 11:27:04 -0600, John Bokma wrote: When do people learn that a language is just a tool to do a job? When do people learn that there are different sorts of tools? A professional wouldn't use a screwdriver when

Re: Method / Functions - What are the differences?

2010-02-28 Thread Alf P. Steinbach
* Michael Rudolf: Out of curiosity I tried this and it actually worked as expected: class T(object): x=[] foo=x.append def f(self): return self.x t=T() t.f() [] T.foo(1) t.f() [1] At first I thought hehe, always fun to play around with python. Might be

Re: Method / Functions - What are the differences?

2010-02-28 Thread Rob Williscroft
Michael Rudolf wrote in news:hmdo3m$28...@news.urz.uni-heidelberg.de in comp.lang.python: Note that all I did was moving the list and foo into the instance. Still no self and no cls, but also no static behaviour any more. Yes in the first case foo was an attribute of the class, and in the

cpan for python?

2010-02-28 Thread Someone Something
Is there something like cpan for python? I like python's syntax, but I use perl because of cpan and the tremendous modules that it has. -- http://mail.python.org/mailman/listinfo/python-list

Re: cpan for python?

2010-02-28 Thread sstein...@gmail.com
On Feb 28, 2010, at 9:28 AM, Someone Something wrote: Is there something like cpan for python? I like python's syntax, but I use perl because of cpan and the tremendous modules that it has. -- Please search the mailing list archives. This subject has been discussed to absolute death.

Printing the arguments of an attribute in a class

2010-02-28 Thread vsoler
I have a class that is a wrapper: class wrapper: def __init__(self, object): self.wrapped = object def __getattr__(self, attrname): print 'Trace: ', attrname #print arguments to attrname, how? return getattr(self.wrapped, attrname) I can run it this way:

Re: Printing the arguments of an attribute in a class

2010-02-28 Thread Alf P. Steinbach
* vsoler: I have a class that is a wrapper: class wrapper: def __init__(self, object): self.wrapped = object def __getattr__(self, attrname): print 'Trace: ', attrname #print arguments to attrname, how? return getattr(self.wrapped, attrname) I can run it

Re: Printing the arguments of an attribute in a class

2010-02-28 Thread vsoler
On Feb 28, 4:00 pm, Alf P. Steinbach al...@start.no wrote: * vsoler: I have a class that is a wrapper: class wrapper:     def __init__(self, object):         self.wrapped = object     def __getattr__(self, attrname):         print 'Trace: ', attrname         #print arguments to

Re: cpan for python?

2010-02-28 Thread Daniel Fetchinson
Is there something like cpan for python? I like python's syntax, but I use perl because of cpan and the tremendous modules that it has. It's called PyPI or Cheese Shop: http://pypi.python.org/pypi OFF Is it only me or others also mentally read C-SPAN when somebody writes CPAN? /OFF Cheers,

Re: Challenge: escape from the pysandbox

2010-02-28 Thread Victor Stinner
Le samedi 27 février 2010 18:37:22, Daniel Fetchinson a écrit : It's google's hosting solution called app engine, for python web applications: http://code.google.com/appengine/docs/python/gettingstarted/ I guess they also have some kind of a sandbox if they let people run python on their

Re: stripping fields from xml file into a csv

2010-02-28 Thread Hai Vu
On Feb 28, 12:05 am, Stefan Behnel stefan...@behnel.de wrote: Hal Styli, 27.02.2010 21:50: I have a sed solution to the problems below but would like to rewrite in python... Note that sed (or any other line based or text based tool) is not a sensible way to handle XML. If you want to read

Re: Docstrings considered too complicated

2010-02-28 Thread Mel
Gregory Ewing wrote: Mel wrote: You could think of it as a not bad use of the design principle Clear The Simple Stuff Out Of The Way First. Destinations are commonly a lot simpler than sources Calculations for immediate values could be just about anything. Mel. --

Re: Method / Functions - What are the differences?

2010-02-28 Thread Michael Rudolf
Am 28.02.2010 15:08, schrieb Alf P. Steinbach: Hello.upper built-in method upper of str object at 0x00BA16E0 f = Hello.upper f built-in method upper of str object at 0x00BA16E0 f() 'HELLO' f.__self__ 'Hello' Holy hand grenade. You have no Idea how enlightened I feel right

Re: Printing the arguments of an attribute in a class

2010-02-28 Thread Arnaud Delobelle
vsoler vicente.so...@gmail.com writes: I have a class that is a wrapper: class wrapper: def __init__(self, object): self.wrapped = object def __getattr__(self, attrname): print 'Trace: ', attrname #print arguments to attrname, how? return

Re: Challenge: escape from the pysandbox

2010-02-28 Thread Aahz
In article mailman.330.1267292249.4577.python-l...@python.org, Daniel Fetchinson fetchin...@googlemail.com wrote: I guess they also have some kind of a sandbox if they let people run python on their machines, I'm not sure if it's open source though. Thing is, I'm sure that Google uses a

Py2exe - Bad File Descriptor

2010-02-28 Thread T
I have a Python script, which is a Windows Service, that I created an EXE of via py2exe. As part of the program, it calls some external binaries, one of which restarts the computer. When I'm logged in, this works fine. However, if I log out, the service stops and logs the following error in the

Re: Updates about Tk

2010-02-28 Thread Fabiano
rantingrick ha scritto: On Feb 27, 11:11 am, Kevin Walzer k...@codebykevin.com wrote: (...snip...) Kevin Walzer Code by Kevinhttp://www.codebykevin.com Great post Kevin! The only thing i would like to add are my two favorite references for learning Tkinter. They are not geared around

Re: stripping fields from xml file into a csv

2010-02-28 Thread Stefan Behnel
Hai Vu, 28.02.2010 17:41: By the way, Stefan, I am using Python 2.6. Do you know the differences between ElementTree and cElementTree? Use cElementTree, it's implemented in C and a lot faster and more memory friendly. http://effbot.org/zone/celementtree.htm#benchmarks

Re: Upgrading Py2exe App

2010-02-28 Thread Aahz
In article mailman.201.1267054217.4577.python-l...@python.org, Ryan Kelly r...@rfk.id.au wrote: On Wed, 2010-02-24 at 15:05 -0800, Aahz wrote: In article mailman.2807.1266614926.28905.python-l...@python.org, Ryan Kelly r...@rfk.id.au wrote: Yes. The idea of having a bootstrapping exe is that

[ANNC] pynguin-0.1 (python-based turtle graphics application)

2010-02-28 Thread Lee Harr
pynguin is a python-based turtle graphics application.     It combines an editor, interactive interpreter, and     graphics display area. It is meant to be an easy environment for introducing     some programming concepts to beginning programmers. http://pynguin.googlecode.com/ This is the

PyQt4.7 and PyQwt5.2.0

2010-02-28 Thread Gib Bogle
I installed the latest PyQt (4.7-1), then PyQwt 5.2.0, which was built with PyQt4.5.4. This line import PyQt4.Qwt5 as Qwt fails to load the DLL. Could this be the result of not using PyQt4 4.5.4? -- http://mail.python.org/mailman/listinfo/python-list

Re: Py2exe - Bad File Descriptor

2010-02-28 Thread T
On Feb 28, 3:48 pm, Dennis Lee Bieber wlfr...@ix.netcom.com wrote: On Sun, 28 Feb 2010 10:35:23 -0800 (PST), T misceveryth...@gmail.com declaimed the following in gmane.comp.python.general: I have a Python script, which is a Windows Service, that I created an EXE of via py2exe.  As part of

Earn Money Online without Investment

2010-02-28 Thread ranga...............
Earn Money Online without Investment Now anyone can earn money online with out any investment by using some genuine websites. The detailed information of some of the genuine everseen good earnings website information are presented clealy for free at

Re: Docstrings considered too complicated

2010-02-28 Thread Aahz
In article 4b889e3d$0$27844$c3e8...@news.astraweb.com, Steven D'Aprano st...@remove-this-cybersource.com.au wrote: On Fri, 26 Feb 2010 21:51:17 -0600, Tim Daneliuk wrote: The only possible exception to this I can think of is when there is some non-obvious side-effect (i.e. language and/or

Re: help with Python installation

2010-02-28 Thread gujax
On Feb 27, 10:14 pm, Arnaud Delobelle arno...@googlemail.com wrote: On 28 Feb, 01:48, gujax rjngrj2...@gmail.com wrote: Hi, I have been trying to install python on my Win ME system for over two years - gave up for a while and now I am back with a resolve to solve the problem. I tried all

Re: Challenge: escape from the pysandbox

2010-02-28 Thread Daniel Fetchinson
I guess they also have some kind of a sandbox if they let people run python on their machines, I'm not sure if it's open source though. Thing is, I'm sure that Google uses a critical backstop to any Python-based sandbox: something like a chroot jail. The Python sandbox is mostly there to

Re: Quoting quotes

2010-02-28 Thread candide
OK, now I see the point. I was mistaken because I was supposing that every quote strictly _inside_ the string have to match another quote od the same type. Thanks to all for yours responses. -- http://mail.python.org/mailman/listinfo/python-list

Re: Use eval() safely?

2010-02-28 Thread W. Martin Borgert
Gregory Ewing wrote: I posted a demonstration of this earlier in this thread. As you wrote, your example does not work when using eval() like in my original post with second and third parameter to eval(): import math eval([c for c in (0).__class__.__bases__[0].__subclasses__() if c.__name__

Re: cpan for python?

2010-02-28 Thread Steven D'Aprano
On Sun, 28 Feb 2010 17:27:22 +0100, Daniel Fetchinson wrote: OFF Is it only me or others also mentally read C-SPAN when somebody writes CPAN? /OFF No, it's not just you. This is the first time I've realised it wasn't C-SPAN. -- Steven --

Re: Python dos2unix one liner

2010-02-28 Thread Steven D'Aprano
On Sun, 28 Feb 2010 12:05:12 +0100, Stefan Behnel wrote: Steven D'Aprano, 28.02.2010 09:48: There ought to be some kind of competition for the least efficient solution to programming problems That wouldn't be very interesting. You could just write a code generator that spits out tons of

Re: stripping fields from xml file into a csv

2010-02-28 Thread Hal Styli
On 28 Feb, 19:20, Stefan Behnel stefan...@behnel.de wrote: Hai Vu, 28.02.2010 17:41: By the way, Stefan, I am using Python 2.6. Do you know the differences between ElementTree and cElementTree? Use cElementTree, it's implemented in C and a lot faster and more memory friendly.

Starting Python from the terminal with no welcome message

2010-02-28 Thread candide
Hi, Does exist some option I could send to the python interpreter during an interactive session in order to avoid the printing of the introductory message just above the top prompt ? In my case, the welcome message is the following : Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52) [GCC 4.2.3

Multiple console windows for a single program?

2010-02-28 Thread Blake B
Hello, I'm wanting to write a program with multiple objects, each in a thread. Both will be doing output (with the print statement) almost constantly, so I'd like to be able to separate their outputs. What I want to do is have a separate window for each. Is my only option to make my own console

Re: Starting Python from the terminal with no welcome message

2010-02-28 Thread alex goretoy
On Sun, Feb 28, 2010 at 5:23 PM, candide cand...@free.invalid wrote: Hi, Does exist some option I could send to the python interpreter during an interactive session in order to avoid the printing of the introductory message just above the top prompt ? In my case, the welcome message is

Sample code usable Tkinter listbox

2010-02-28 Thread Alf P. Steinbach
In case Someone Else(TM) may need this. This code is just how it currently looks, what I needed for my code, so it's not a full-fledged or even tested class. But it works. code language=Py3 import tkinter as t import tkinter.simpledialog import tkinter.messagebox t.askstring =

Re: Multiple console windows for a single program?

2010-02-28 Thread alex goretoy
On Sun, Feb 28, 2010 at 5:27 PM, Blake B bl...@randomresources.com wrote: Hello, I'm wanting to write a program with multiple objects, each in a thread. Both will be doing output (with the print statement) almost constantly, so I'd like to be able to separate their outputs. What I want to do

Re: Starting Python from the terminal with no welcome message

2010-02-28 Thread Tim Chase
candide wrote: Does exist some option I could send to the python interpreter during an interactive session in order to avoid the printing of the introductory message just above the top prompt ? In my case, the welcome message is the following : Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52)

Draft PEP on RSON configuration file format

2010-02-28 Thread Patrick Maupin
All: Finding .ini configuration files too limiting, JSON and XML to hard to manually edit, and YAML too complex to parse quickly, I have started work on a new configuration file parser. I call the new format RSON (for Readable Serial Object Notation), and it is designed to be a superset of JSON.

Re: Draft PEP on RSON configuration file format

2010-02-28 Thread Paul Rubin
Patrick Maupin pmau...@gmail.com writes: I have started work on a new configuration file parser The documentation is in rst PEP form, at:... N not another... there are too many already. :-( -1 -- http://mail.python.org/mailman/listinfo/python-list

Re: Sample code usable Tkinter listbox

2010-02-28 Thread rantingrick
On Feb 28, 6:30 pm, Alf P. Steinbach al...@start.no wrote: In case Someone Else(TM) may need this. This code is just how it currently looks, what I needed for my code, so it's not a full-fledged or even tested class. Thanks for sharing Alf, Thats works fine as-is but what about inheriting

Re: Draft PEP on RSON configuration file format

2010-02-28 Thread Steven D'Aprano
On Sun, 28 Feb 2010 20:09:30 -0600, Patrick Maupin wrote: All: Finding .ini configuration files too limiting, JSON and XML to hard to manually edit, and YAML too complex to parse quickly, I have started work on a new configuration file parser. I call the new format RSON (for Readable

Re: Sample code usable Tkinter listbox

2010-02-28 Thread Alf P. Steinbach
* rantingrick: On Feb 28, 6:30 pm, Alf P. Steinbach al...@start.no wrote: In case Someone Else(TM) may need this. This code is just how it currently looks, what I needed for my code, so it's not a full-fledged or even tested class. Thanks for sharing Alf, Thats works fine as-is but what

Re: Draft PEP on RSON configuration file format

2010-02-28 Thread John Nagle
Patrick Maupin wrote: All: Finding .ini configuration files too limiting, JSON and XML to hard to manually edit, and YAML too complex to parse quickly, I have started work on a new configuration file parser. You're not supposed to edit those formats manually.

Re: Draft PEP on RSON configuration file format

2010-02-28 Thread Chris Rebert
On Sun, Feb 28, 2010 at 10:39 PM, John Nagle na...@animats.com wrote: Patrick Maupin wrote: All: Finding .ini configuration files too limiting, JSON and XML to hard to manually edit, and YAML too complex to parse quickly, I have started work on a new configuration file parser.   You're

Re: Sample code usable Tkinter listbox

2010-02-28 Thread rantingrick
On Feb 28, 9:57 pm, Alf P. Steinbach al...@start.no wrote: * rantingrick: I just hate overriding all the paths to each listbox method. How about just overideing the Listboxe's geomerty methods once an your done? #-- start script --# import Tkinter as tk from Tkconstants import * import

Re: stripping fields from xml file into a csv

2010-02-28 Thread Stefan Behnel
Hal Styli, 01.03.2010 00:15: Stefan, I was happy to see such concise code. Your python worked with only very minor modifications. Hai's test xml data *without* the first and last line is close enough to the data I am using: order customer=john product=eggs quantity=12 / order

[issue7242] Forking in a thread raises RuntimeError

2010-02-28 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: Using issue7242-gps01.diff on release26-maint and a freshly downloaded opensolaris 2009-06 VM test_thread, test_threading and test_subprocess all pass for me both before -and- after the patch. Nor does the original thread_test.py cause the

[issue7232] Support of 'with' statement fo TarFile class

2010-02-28 Thread Lars Gustäbel
Lars Gustäbel l...@gustaebel.de added the comment: Another version of the patch (issue7232.6.diff) that checks if the TarFile object is still open in the __enter__() method (plus a test for that). I removed the docstrings as Eric suggested. This is common practice in the standard library.

[issue8029] bug in 2to3 dealing with print FOO, followed by sys.stdout.write('')

2010-02-28 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8029 ___ ___

[issue7242] Forking in a thread raises RuntimeError

2010-02-28 Thread Greg Jednaszewski
Greg Jednaszewski jednaszew...@gmail.com added the comment: The problem only seems to appear on Solaris 9 and earlier. I'll try to test the updated patch tonight or tomorrow and let you know what I find. -- ___ Python tracker rep...@bugs.python.org

[issue7839] Popen should raise ValueError if pass a string when shell=False or a list when shell=True

2010-02-28 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Because the shell argument provides important functionality. Or are you suggesting that passing a list implies shell=False and passing a string implies shell=True? That is a possibility, but I think it would not be a good idea,

[issue7839] Popen should raise ValueError if pass a string when shell=False or a list when shell=True

2010-02-28 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: I think the better design is to have 2 distinct APIs: Popen_shell and Popen_exec. I'm not wild about the name Popen_exec, suggestions welcome. Neither of these would accept a shell parameter. For starters these could be convenience APIs that

[issue7839] Popen should raise ValueError if pass a string when shell=False or a list when shell=True

2010-02-28 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: That seems reasonable. We already have subprocess.call, the thin wrapper around Popen. Maybe add this as subprocess.call_shell and call_exec? -- nosy: +brian.curtin ___ Python tracker

[issue7839] Popen should raise ValueError if pass a string when shell=False or a list when shell=True

2010-02-28 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Hmm. I liked Eric's idea, and it would be easier to get in, but 'call' is actually an argument against it. It would mean that in addition to PopenExec and PopenShell we'd need call_exec and call_shell, and check_call_exec and

[issue7232] Support of 'with' statement fo TarFile class

2010-02-28 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: This is common practice in the standard library. This doesn't necessarily mean it is a correct practice :-). All kidding aside, I think the assumption that the standard documentation on '__enter__' and '__exit__' is sufficient is a bad one.

[issue7242] Forking in a thread raises RuntimeError

2010-02-28 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: If you have a chance tonight that'd be awesome. I'd love to get this in before 2.6.5rc1 (being cut tomorrow) but as its platform specific (and a pretty-old platform at that) its not worth holding up the release. --

[issue8030] documentation bugs and improvements

2010-02-28 Thread Christopher the Magnificent
New submission from Christopher the Magnificent ultimate.mac.fana...@gmail.com: Help for list looks like this: help(list) class list(object) | list() - new list | list(sequence) - new list initialized from sequence's items | Help for dict looks like this:

[issue7481] Failing to start a thread leaves zombie thread in initial state

2010-02-28 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: fixed in trunk r78517 and release26-maint r78518. still needs merging into py3k and release31-maint -- resolution: - accepted ___ Python tracker rep...@bugs.python.org

[issue7232] Support of 'with' statement fo TarFile class

2010-02-28 Thread Lars Gustäbel
Lars Gustäbel l...@gustaebel.de added the comment: IMO it is okay for __enter__() and __exit__() not to have docstrings. I cannot see what's so special about the behaviour of __enter__() and __exit__(). __enter__() raises IOError only if the TarFile object has been already closed. This is

[issue7481] Failing to start a thread leaves zombie thread in initial state

2010-02-28 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: r78519 r78520 for py3k and 3.1. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7481 ___

[issue5802] The security descriptors of python binaries in Windows are not strict enough

2010-02-28 Thread Hong Chen
Hong Chen cn.hongc...@gmail.com added the comment: Sorry for the delay, it's been a busy month. I just tried python 3.1 If installed under c:\program files, the access control list would be correct, only system administrator accounts get the modify privilege. The default installation is to

[issue7245] better Ctrl-C support in pdb (program can be resumed) (issue216067)

2010-02-28 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: Reviewers: gregory.p.smith, Benjamin, ilya.sandler, Message: Also, can you take a look at how the pdb unittests work and see if you can come up with a way to unittest the KeyboardInterrupt behavior? Particular for the 4 scenarios you outlined

[issue7832] assertSameElements([0, 1, 1], [0, 0, 1]) does not fail

2010-02-28 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: fwiw - The documentation was updated in trunk, py3k and release31-maint to mention this behavior of assertSameElements. Assigning to Michael for a decision on whether or not to add to the API. python-unittest-backport has since been

[issue8031] Can't get f2py to work at all

2010-02-28 Thread Peter Jones
New submission from Peter Jones pjon...@hughes.net: I am user 11943. OS is Windows Vista Ultimate. I have followed the instructions on how to use f2py and get this error when I try it (is this a known bug? It appears that there is bug in f2py): C:\Python26\Scriptspython f2py.py Traceback

[issue8032] Add gdb7 hooks to make it easier to debug Python

2010-02-28 Thread Dave Malcolm
New submission from Dave Malcolm dmalc...@redhat.com: gdb 7 can be extended with Python code, allowing the writing of domain-specific pretty-printers and commands. I've been working on gdb 7 hooks to make it easier to debug python itself, as mentioned here:

[issue8032] Add gdb7 hooks to make it easier to debug Python

2010-02-28 Thread Dave Malcolm
Changes by Dave Malcolm dmalc...@redhat.com: -- keywords: +patch Added file: http://bugs.python.org/file16403/add-gdb7-python-hooks-to-trunk.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8032

[issue8031] Can't get f2py to work at all

2010-02-28 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: This is a 3rd party package problem. Please ask the maintainers of it. -- nosy: +benjamin.peterson resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org

[issue8031] Can't get f2py to work at all

2010-02-28 Thread Peter Jones
Peter Jones pjon...@hughes.net added the comment: I would like to recall this bug report. What happend was I went to the f2py web site and dowloaded the latest version and installed it over Pythoh x,y. So I uninstalled P x,y and resinstalled and the f2py works OK now. Some one should make it

[issue7242] Forking in a thread raises RuntimeError

2010-02-28 Thread Greg Jednaszewski
Greg Jednaszewski jednaszew...@gmail.com added the comment: I tested the updated patch, and the new unit test passes on my Sol 8 sparc, but the test_threading test still hangs on my system. However, given that the test is skipped on several platforms and it does work on more relevant versions

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

2010-02-28 Thread David Watson
David Watson bai...@users.sourceforge.net added the comment: Thanks for your interest! I'm actually still working on the patch I posted, docs and a test suite, and I'll post something soon. Yes, you could just use b.join() with sendmsg() (and get slightly annoyed because it doesn't accept

[issue3892] bsddb: test01_basic_replication fails sometimes

2010-02-28 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: r.david.murray - sounds like a good idea. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3892 ___

[issue8033] sqlite: broken long integer handling for arguments to user-defined functions

2010-02-28 Thread Fred Fettinger
New submission from Fred Fettinger fetti...@gmail.com: Handling of long integers is broken for arguments to sqlite functions created with the create_function api. Integers passed to a sqlite function are always converted to int instead of long, which produces an incorrect value for integers

[issue8033] sqlite: broken long integer handling for arguments to user-defined functions

2010-02-28 Thread Fred Fettinger
Fred Fettinger fetti...@gmail.com added the comment: I've never really looked at the python source before, but this is my best guess at the problem: For the standard SELECT query: In Modules/_sqlite/cursor.c, _pysqlite_fetch_one_row() has this code: PY_LONG_LONG intval; ... } else if (coltype

[issue6729] Add support for ssize_t

2010-02-28 Thread Ryan Coyner
Ryan Coyner rcoy...@gmail.com added the comment: You don't want to do c_size_t = c_void_p because that will prevent type checking. We want c_size_t to be integers; setting it to c_void_p will accept other values. The lines that define c_size_t are doing a sizeof check to determine how many

[issue8031] Can't get f2py to work at all

2010-02-28 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Hello This is indeed a problem with f2py. Please tell its maintaines that they can’t name an object “as” since it’s a reserved keyword in Python 2.6 and higher. Testing with 2.5 (previous stable version, released in 2006) would have shown it:

[issue8031] Can't get f2py to work at all

2010-02-28 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: While I’m thinking about this, is there a way to make the syntax error traceback more informative, i.e. adding “'{}' is a reserved keyword” in such cases? -- ___ Python tracker rep...@bugs.python.org

[issue7849] Improve test_support.check_warnings()

2010-02-28 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: lazy sounds like a bad name for that parameter. It makes me think of lazy evaluation, not error checking. There's also the problem that check_py3k_warnings() will check all DeprecationWarnings, not only py3k-specific ones. We need a

[issue8032] Add gdb7 hooks to make it easier to debug Python

2010-02-28 Thread Gregory P. Smith
Changes by Gregory P. Smith g...@krypto.org: -- nosy: +gregory.p.smith priority: - normal ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8032 ___

[issue6926] socket module missing IPPROTO_IPV6, IPPROTO_IPV4

2010-02-28 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: In PC/pyconfig.h we #define Py_WINVER to _WIN32_WINNT_WIN2K (0x500) for 32bit builds. I think we should update this to _WIN32_WINNT_WINXP (0x501) for all builds, not just 64bit. Assigning to loewis as he does our windows release builds

[issue6926] socket module missing IPPROTO_IPV6, IPPROTO_IPV4

2010-02-28 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Bumping the API level to XP might mean that we stop supporting Windows 2000; I'm not sure whether we agreed to that yet. I'd be curious to find out why the constants were defined in Python 2.5. --

[issue6926] socket module missing IPPROTO_IPV6, IPPROTO_IPV4

2010-02-28 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: extended support for windows 2000 server ends in a few months, mainstream support ended 5 years ago: http://support.microsoft.com/lifecycle/?LN=en-usx=8y=9p1=7274 That, IMNSHO, implies that python 2.7 and 3.2 should not bother supporting