Re: (a==b) ? 'Yes' : 'No'

2010-04-11 Thread Steven D'Aprano
On Sun, 11 Apr 2010 21:35:49 -0700, Aahz wrote: > In article , Steve > Holden wrote: >> >>It exists because people nagged Guido mercilessly until, against his >>better judgment, he capitulated. > > No, the ternary exists because he became convinced that it was the > lesser evil compared with le

Re: Python question

2010-04-11 Thread DreiJane
Rereading my sent answer i wondered, what the variable s was used for besides that "find" and found nothing. Without it also the layout is better: if os.environ['PATH'].find(gtkBinDir) == -1: os.putenv("PATH", os.getenv("PATH")+ os.pathsep + gtkBinDir) -- http://mail.python.org/mailman/listi

Re: Python question

2010-04-11 Thread DreiJane
Hello, Python and gtk are "ambulant" (portable plus intallable by mere copying without admin rights). gtk only needs to have the path to its / bin on the PATH . The latter could - and possibly should be - done by the Python scripts using it, for example: s = os.environ['PATH'] if s.find(gtkBinDir

Re: 2.7 beta 1

2010-04-11 Thread Martin P. Hellwig
On 04/12/10 06:57, Mensanator wrote: On Apr 11, 6:08 pm, Steven D'Aprano wrote: On Sun, 11 Apr 2010 11:54:04 -0700, Mensanator wrote: On Apr 11, 11:53 am, Steven D'Aprano wrote: On Sat, 10 Apr 2010 21:08:44 -0700, Mensanator wrote: Maybe because I'm a user, not a developer. You write co

Re: 2.7 beta 1

2010-04-11 Thread Mensanator
On Apr 11, 6:08 pm, Steven D'Aprano wrote: > On Sun, 11 Apr 2010 11:54:04 -0700, Mensanator wrote: > > On Apr 11, 11:53 am, Steven D'Aprano > cybersource.com.au> wrote: > >> On Sat, 10 Apr 2010 21:08:44 -0700, Mensanator wrote: > >> >> > 3.x won't be adopted by developers until it's fixed. As of

Re: 2.7 beta 1

2010-04-11 Thread Mensanator
On Apr 11, 11:33 pm, Lie Ryan wrote: > On 04/12/10 04:54, Mensanator wrote: > > > On Apr 11, 11:53 am, Steven D'Aprano > cybersource.com.au> wrote: > >> On Sat, 10 Apr 2010 21:08:44 -0700, Mensanator wrote: > > 3.x won't be adopted by developers until it's fixed. As of now, it's > > serio

Re: A 'foolproof' way to query inheritance tree? numbers.Real in 2.6)

2010-04-11 Thread Chris Rebert
On Sun, Apr 11, 2010 at 10:46 AM, wrote: > Generally, if I want to know the inheritance tree of a class, I either > use inspect.getmro or __bases__ > > However, after reading about the new numbers module / class tower in > Python 2.6/3.0, I realized that both of these will fail to show that > the

Re: (a==b) ? 'Yes' : 'No'

2010-04-11 Thread Aahz
In article , Steve Holden wrote: > >It exists because people nagged Guido mercilessly until, against his >better judgment, he capitulated. No, the ternary exists because he became convinced that it was the lesser evil compared with letting the abomination of A and B or C remain the "Pythonic"

Re: 2.7 beta 1

2010-04-11 Thread Lie Ryan
On 04/12/10 04:54, Mensanator wrote: > On Apr 11, 11:53�am, Steven D'Aprano cybersource.com.au> wrote: >> On Sat, 10 Apr 2010 21:08:44 -0700, Mensanator wrote: > 3.x won't be adopted by developers until it's fixed. As of now, it's > seriously broken and unsuitable for production. >> I

Re: [Edu-sig] [ANNC] pynguin-0.7 (python turtle graphics application)

2010-04-11 Thread Edward Cherlin
On Sun, Apr 11, 2010 at 21:52, kirby urner wrote: > 2010/4/11 Lee Harr : >> >> Pynguin is a python-based turtle graphics application. >>     It combines an editor, interactive interpreter, and >>     graphics display area. >> > > I like the idea of using turtles to plot graphs. Illustrated at htt

Re: [Edu-sig] [ANNC] pynguin-0.7 (python turtle graphics application)

2010-04-11 Thread Edward Cherlin
2010/4/11 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://pyn

Re: Generating a rainbow?

2010-04-11 Thread Peter Parker
Robert Kern wrote: On 2010-04-11 12:54 , Peter Parker wrote: Tobiah wrote: You should use different variables for the two loops. Actually it is closing the divs that makes it work in FireFox: Hah. I new that the rainbow wasn't complete and that it didn't work in Opera. I just fizzled on the

2010 Congress on Computer Applications and Computational Science, Singapore [EI Compendex,ISTP,IEEE Xplore]

2010-04-11 Thread Andrew
[ Please forward to those who may be interested. Thanks. ] == 2010 International Congress on Computer Applications and Computational Science CACS 2010 http://irast.org/conferences/CACS/2010 4-6 December 2010, Singapore

Re: [Edu-sig] [ANNC] pynguin-0.7 (python turtle graphics application)

2010-04-11 Thread kirby urner
2010/4/11 Lee Harr : > > Pynguin is a python-based turtle graphics application. >     It combines an editor, interactive interpreter, and >     graphics display area. > I like the idea of using turtles to plot graphs. Replacing graphing calculators with Python is easier when there are simple plot

It's a fact not lost on the opportunity to see yourself

2010-04-11 Thread a m
http://www.google.com/url?sa=D&q=http://osamah2000.jeeran.com/daauageralmuslmeen1.htm&usg=AFQjCNGQhhGz-1TGv9Y7gE8zKwHHustJCg -- http://mail.python.org/mailman/listinfo/python-list

Re: universal newlines and utf-16

2010-04-11 Thread Antoine Pitrou
Le Sun, 11 Apr 2010 16:16:45 +0100, Baz Walter a écrit : > On 11/04/10 15:37, Stefan Behnel wrote: >> The codecs module does not support universal newline parsing (see the >> docs). You need to use the new io module instead. > > thanks. > > i'd completely overlooked the io module - i thought it w

Re: 2.7 beta 1

2010-04-11 Thread alex23
Mensanator wrote: > Planning to buy a Toyota? Did we just start playing Questions? -- http://mail.python.org/mailman/listinfo/python-list

Re: Confused by slash/escape in regexp

2010-04-11 Thread MRAB
andrew cooke wrote: Is the third case here surprising to anyone else? It doesn't make sense to me... Python 2.6.2 (r262:71600, Oct 24 2009, 03:15:21) [GCC 4.4.1 [gcc-4_4-branch revision 150839]] on linux2 Type "help", "copyright", "credits" or "license" for more information. from re import com

Re: Tough sorting problem: or, I'm confusing myself

2010-04-11 Thread Paul McGuire
On Apr 9, 10:03 am, david jensen wrote: > Hi all, > > I'm trying to find a good way of doing the following: > > Each n-tuple in combinations( range( 2 ** m ), n ) has a corresponding > value n-tuple (call them "scores" for clarity later). I'm currently > storing them in a dictionary, by doing: > >

Re: Confused by slash/escape in regexp

2010-04-11 Thread andrew cooke
On Apr 11, 7:18 pm, Paul McGuire wrote: [...] > > So I would say the surprise isn't that case 3 didn't match, but that > case 2 matched. > > Unless I just don't get what you were testing, not being an RE wiz. Case 2 is the regexp engine interpreting escapes that appear as literal strings. It's w

Re: Confused by slash/escape in regexp

2010-04-11 Thread Paul McGuire
On Apr 11, 5:43 pm, andrew cooke wrote: > Is the third case here surprising to anyone else?  It doesn't make > sense to me... > > Python 2.6.2 (r262:71600, Oct 24 2009, 03:15:21) > [GCC 4.4.1 [gcc-4_4-branch revision 150839]] on linux2 > Type "help", "copyright", "credits" or "license" for more in

Re: Confused by slash/escape in regexp

2010-04-11 Thread andrew cooke
On Apr 11, 8:12 pm, Lie Ryan wrote: > In the first case, *python* will unescape the string literal '\x62' into > letters 'b'. In the second case, python will unescape the double > backslash '\\' into a single slash '\' and *regex* will unescape the > single-slash-62 into 'b'. In the third case, *p

Re: Confused by slash/escape in regexp

2010-04-11 Thread Lie Ryan
On 04/12/10 08:43, andrew cooke wrote: > > Is the third case here surprising to anyone else? It doesn't make > sense to me... > > Python 2.6.2 (r262:71600, Oct 24 2009, 03:15:21) > [GCC 4.4.1 [gcc-4_4-branch revision 150839]] on linux2 > Type "help", "copyright", "credits" or "license" for more

Re: 2.7 beta 1

2010-04-11 Thread Steven D'Aprano
On Sun, 11 Apr 2010 11:54:04 -0700, Mensanator wrote: > On Apr 11, 11:53�am, Steven D'Aprano cybersource.com.au> wrote: >> On Sat, 10 Apr 2010 21:08:44 -0700, Mensanator wrote: >> >> > 3.x won't be adopted by developers until it's fixed. As of now, >> >> > it's seriously broken and unsuitable for

Re: 2.7 beta 1

2010-04-11 Thread Steven D'Aprano
On Sun, 11 Apr 2010 10:34:50 -0700, Joaquin Abian wrote: > On Apr 11, 6:53 pm, Steven D'Aprano cybersource.com.au> wrote: >> >> In any case, IDLE is one IDE out of many, and not really up to >> professional quality -- it's clunky and ugly. It isn't Python, it is a >> tool written in Python. >> >>

Confused by slash/escape in regexp

2010-04-11 Thread andrew cooke
Is the third case here surprising to anyone else? It doesn't make sense to me... Python 2.6.2 (r262:71600, Oct 24 2009, 03:15:21) [GCC 4.4.1 [gcc-4_4-branch revision 150839]] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from re import compile >>> p1 = comp

Re: How to read file during module import?

2010-04-11 Thread HigStar
I have had trouble with the __file__ attribute in the past, when using py2exe (i.e. on the windows platform) and using the bundle feature (which zips all files). Using os.path.realpath( __file__ ) resolves to something like .../ library.zip/packageName/fileName Then when trying to perform an open o

Re: Generating a rainbow?

2010-04-11 Thread Robert Kern
On 2010-04-11 12:54 , Peter Parker wrote: Tobiah wrote: You should use different variables for the two loops. Actually it is closing the divs that makes it work in FireFox: Hah. I new that the rainbow wasn't complete and that it didn't work in Opera. I just fizzled on the closing of the divs

[ANNC] pynguin-0.7 (python turtle graphics application)

2010-04-11 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 release c

Re: Refresh Problem

2010-04-11 Thread Tim Chase
On 04/11/2010 02:53 PM, MRAB wrote: Victor Subervi wrote: Hi; I send variables to a script. The script adds appropriate lines into a database of an order to my shopping cart. When I refresh the screen, as no doubt some customers will do, it re-ads those orders. Now, I can delete them, but that's

Re: Refresh Problem

2010-04-11 Thread MRAB
Victor Subervi wrote: Hi; I send variables to a script. The script adds appropriate lines into a database of an order to my shopping cart. When I refresh the screen, as no doubt some customers will do, it re-ads those orders. Now, I can delete them, but that's not the point. I don't want it to

Re: Tough sorting problem: or, I'm confusing myself

2010-04-11 Thread Raymond Hettinger
On Apr 9, 8:03 am, david jensen wrote: > Hi all, > > I'm trying to find a good way of doing the following: > > Each n-tuple in combinations( range( 2 ** m ), n ) has a corresponding > value n-tuple (call them "scores" for clarity later). I'm currently > storing them in a dictionary, by doing: > >

Re: 2.7 beta 1

2010-04-11 Thread Mensanator
On Apr 11, 12:00�pm, Terry Reedy wrote: > On 4/11/2010 12:08 AM, Mensanator wrote: > > > On Apr 10, 7:15 pm, Chris Rebert �wrote: > >> On Sat, Apr 10, 2010 at 4:47 PM, Mensanator �wrote: > >>> 3.x won't be adopted by developers until it's fixed. As of now, it's > >>> seriously broken and unsuitabl

Re: [Python-Dev] [RELEASED] 2.7 beta 1

2010-04-11 Thread Lennart Regebro
On Sat, Apr 10, 2010 at 20:52, Benjamin Peterson wrote: > On behalf of the Python development team, I'm merry > to announce the first beta release of Python 2.7. Cool! -- Lennart Regebro: Python, Zope, Plone, Grok http://regebro.wordpress.com/ +33 661 58 14 64 -- http://mail.python.org/mail

Re: 2.7 beta 1

2010-04-11 Thread Mensanator
On Apr 11, 11:53�am, Steven D'Aprano wrote: > On Sat, 10 Apr 2010 21:08:44 -0700, Mensanator wrote: > >> > 3.x won't be adopted by developers until it's fixed. As of now, it's > >> > seriously broken and unsuitable for production. > > >> In what ways do you consider it broken? > > > Issue 8093. Re

A 'foolproof' way to query inheritance tree? numbers.Real in 2.6)

2010-04-11 Thread pythonlist . calin79
Generally, if I want to know the inheritance tree of a class, I either use inspect.getmro or __bases__ However, after reading about the new numbers module / class tower in Python 2.6/3.0, I realized that both of these will fail to show that the 'float' type actually inherits from numbers.Real: >>

Re: Generating a rainbow?

2010-04-11 Thread Peter Parker
Tobiah wrote: You should use different variables for the two loops. Actually it is closing the divs that makes it work in FireFox: Hah. I new that the rainbow wasn't complete and that it didn't work in Opera. I just fizzled on the closing of the divs. I also don't get why it worke

Re: 2.7 beta 1

2010-04-11 Thread Joaquin Abian
On Apr 11, 6:53 pm, Steven D'Aprano wrote: > > In any case, IDLE is one IDE out of many, and not really up to > professional quality -- it's clunky and ugly. It isn't Python, it is a > tool written in Python. > > -- > Steven But this is a tool that is a part of the python distribution and often r

Refresh Problem

2010-04-11 Thread Victor Subervi
Hi; I send variables to a script. The script adds appropriate lines into a database of an order to my shopping cart. When I refresh the screen, as no doubt some customers will do, it re-ads those orders. Now, I can delete them, but that's not the point. I don't want it to re-ad the orders. How do I

Re: SEC proposes the use of Python and XML

2010-04-11 Thread Patrick Maupin
On Apr 11, 3:12 am, Cameron Simpson wrote: > On 10Apr2010 23:05, Chris Rebert wrote: > | On Sat, Apr 10, 2010 at 9:13 PM, Ted Larson Freeman| > wrote: > > | > This week the SEC proposed new requirements for asset-backed > | > securities that include the use of XML and Python: > | > > | > "The a

Re: SEC proposes the use of Python and XML

2010-04-11 Thread Terry Reedy
On 4/11/2010 12:13 AM, Ted Larson Freeman wrote: This week the SEC proposed new requirements for asset-backed securities that include the use of XML and Python: "The asset-level information would be provided according to proposed standards and in a tagged data format using eXtensible Markup Lang

SQLObject 0.12.3

2010-04-11 Thread Oleg Broytman
Hello! I'm pleased to announce version 0.12.3, a minor bugfix release of branch 0.12 of SQLObject. What is SQLObject = SQLObject is an object-relational mapper. Your database tables are described as classes, and rows are instances of those classes. SQLObject is meant to be eas

SQLObject 0.11.5

2010-04-11 Thread Oleg Broytman
Hello! I'm pleased to announce version 0.11.5, a minor bugfix release of 0.11 branch of SQLObject. What is SQLObject = SQLObject is an object-relational mapper. Your database tables are described as classes, and rows are instances of those classes. SQLObject is meant to be eas

ACE RSA Authentication Manager

2010-04-11 Thread @ Rocteur CC
Hi, Anyone out there writing Jython for RSA Authentication Manager ? I'm fairly new to Python but I see it is possible to write Jython scripts for user administration. I'm also very interested in writing scripts for monitoring and basically everything else related to RSA but in Jython, i.e

Re: 2.7 beta 1

2010-04-11 Thread Terry Reedy
On 4/11/2010 12:08 AM, Mensanator wrote: On Apr 10, 7:15�pm, Chris Rebert wrote: On Sat, Apr 10, 2010 at 4:47 PM, Mensanator wrote: 3.x won't be adopted by developers until it's fixed. As of now, it's seriously broken and unsuitable for production. Not. Many though will wait until 3.2 and

Re: 2.7 beta 1

2010-04-11 Thread Steven D'Aprano
On Sat, 10 Apr 2010 21:08:44 -0700, Mensanator wrote: >> > 3.x won't be adopted by developers until it's fixed. As of now, it's >> > seriously broken and unsuitable for production. >> >> In what ways do you consider it broken? > > Issue 8093. Remarkably, this apparently hasn't been noticed before

Twisted and txJSON-RPC

2010-04-11 Thread writeson
Hi all, I'm modifying a Twisted project and I'd like to implement the txJSON- RPC code show here: https://launchpad.net/txjsonrpc However, when I try to install this with this command line: sudo easy_install txJSON-RPC I get an error message: error: docs/PRELUDE.txt: No such file or directory

Re: universal newlines and utf-16

2010-04-11 Thread Baz Walter
On 11/04/10 15:37, Stefan Behnel wrote: The codecs module does not support universal newline parsing (see the docs). You need to use the new io module instead. thanks. i'd completely overlooked the io module - i thought it was only in python 2.7/3.x. -- http://mail.python.org/mailman/listin

Re: 2.7 beta 1

2010-04-11 Thread Mensanator
On Apr 10, 11:51�pm, alex23 wrote: > Mensanator wrote: > > 3.x won't be adopted by WINDOWS developers WHO USE IDLE until it's fixed. > > I think you left your hyperbole level too high so I turned it down for > you. I don't know of _anyone_ who uses IDLE to run production code, > nor do I follow h

Re: universal newlines and utf-16

2010-04-11 Thread Stefan Behnel
Baz Walter, 11.04.2010 16:12: i am using python 2.6 on a linux box and i have some utf-16 encoded files with crlf line-endings which i would like to open with universal newlines. so far, i have been unable to get this to work correctly. for example: >>> open('test.txt', 'w').write(u'a\r\nb\r\

Re: finding objects in a piece of functional code ?

2010-04-11 Thread Stefan Behnel
Stef Mientki, 10.04.2010 18:08: I would like to translate some functional description into some standard class object, so it can be used as a basic building brick into a larger piece of code. Suppose the functional description is: Name = 'Test_Function' Out = 3 * In Ok, so you want to impleme

universal newlines and utf-16

2010-04-11 Thread Baz Walter
i am using python 2.6 on a linux box and i have some utf-16 encoded files with crlf line-endings which i would like to open with universal newlines. so far, i have been unable to get this to work correctly. for example: >>> open('test.txt', 'w').write(u'a\r\nb\r\n'.encode('utf-16')) >>> repr(

Re: Striving for PEP-8 compliance

2010-04-11 Thread Grant Edwards
On 2010-04-11, Lawrence D'Oliveiro wrote: > The problem isn?t that it?s ?incorrectly? indented, it?s two > different pieces of code (correctly) indented according to two > different conventions, and how you reconcile them without introducing > logic errors into the code. I've never run into that

Re: Python does not allow a variable named "pass"

2010-04-11 Thread BJ Swope
urllib.urlencode({'pass' : 'foo'}) > 'pass=foo' > > > --- Giampaolo > http://code.google.com/p/pyftpdlib > http://code.google.com/p/psutil > -- > http://mail.python.org/mailman/listinfo/python-list > Thank you! -- http://mail.python.org/mailman/listinfo/python-list

Re: [Possibly OT] Comments on PyPI

2010-04-11 Thread exarkun
On 09:24 am, st...@remove-this-cybersource.com.au wrote: On Sun, 11 Apr 2010 10:13:16 +0200, Martin v. Loewis wrote: Steven D'Aprano wrote: How do I leave comments on PyPI? There's a checkbox "Allow comments on releases" which I have checked, but no obvious way to actually post a comment. Yo

Re: Python does not allow a variable named "pass"

2010-04-11 Thread Xavier Ho
On Sun, Apr 11, 2010 at 11:40 PM, BJ Swope wrote: > Other than asking the website owner to change the name of the field > how can I go about passing that field in the form post? > How about: >>> urllib.urlencode({'pass' : 'foo'}) And so on? What is your problem in this context? Cheers, Xav --

Re: Python does not allow a variable named "pass"

2010-04-11 Thread Duncan Booth
BJ Swope wrote: > Other than asking the website owner to change the name of the field > how can I go about passing that field in the form post? > > dev:~$ python > Python 2.5.2 (r252:60911, Jan 24 2010, 14:53:14) > [GCC 4.3.2] on linux2 > Type "help", "copyright", "credits" or "license" for more

Re: Python does not allow a variable named "pass"

2010-04-11 Thread Giampaolo Rodola'
On 11 Apr, 15:40, BJ Swope wrote: > I am trying to automate access to a web page that has forms based > authentication.  The password field is named "pass" which python is > not going to like. > > Other than asking the website owner to change the name of the field > how can I go about passing that

Python does not allow a variable named "pass"

2010-04-11 Thread BJ Swope
I am trying to automate access to a web page that has forms based authentication. The password field is named "pass" which python is not going to like. Other than asking the website owner to change the name of the field how can I go about passing that field in the form post? dev:~$ python Python

Re: finding objects in a piece of functional code ?

2010-04-11 Thread CHEN Guang
PythoidC (http://pythoidc.googlecode.com or http://pythoidc.sf.net ) took the similar technique "finding objects in a piece of functional C code with Python" In the thread "Re: braceless and semicolonless", I discussed some details. May be of some help. - Original Message - From: Ste

Re: ftp and python

2010-04-11 Thread Giampaolo Rodola'
On 8 Apr, 07:24, John Nagle wrote: > Tim Chase wrote: > > Matjaz Pfefferer wrote: > >> What would be the easiest way to copy files from one ftp > >> folder to another without downloading them to local system? > > > As best I can tell, this isn't well-supported by FTP[1] which doesn't > > seem to h

Re: Striving for PEP-8 compliance

2010-04-11 Thread Duncan Booth
Lawrence D'Oliveiro wrote: >> The same goes for indentation. In python it's not possible to write >> a program to correctly indent code that isn't alaready correctly >> indented. > > The problem isn’t that it’s “incorrectly” indented, it’s two > different pieces of code (correctly) i

Re: Striving for PEP-8 compliance

2010-04-11 Thread Lawrence D'Oliveiro
In message , Grant Edwards wrote: > On 2010-04-10, Lawrence D'Oliveiro > wrote: > >> In message , Grant Edwards wrote: >> >>> On 2010-04-10, Lawrence D'Oliveiro >>> wrote: >>> In message , Grant Edwards wrote: > Anybody who invents another brace-delimited language should be beaten.

Re: Striving for PEP-8 compliance

2010-04-11 Thread Lawrence D'Oliveiro
In message <87sk73jxl0@benfinney.id.au>, Ben Finney wrote: > What happens whe you're trying to reconcile two different > block-delimiter conventions? For example? -- http://mail.python.org/mailman/listinfo/python-list

Re: On Class namespaces, calling methods

2010-04-11 Thread Duncan Booth
Steven D'Aprano wrote: > On Sat, 10 Apr 2010 16:35:29 +, Duncan Booth wrote: > >> Anyway, the moral is never, ever to use old-style classes in Python >> 2.x. You will get weird and unexpected results. > > That's a bit strong. They're only weird and unexpected if you're not > expecting them

Re: [Possibly OT] Comments on PyPI

2010-04-11 Thread Steven D'Aprano
On Sun, 11 Apr 2010 10:13:16 +0200, Martin v. Loewis wrote: > Steven D'Aprano wrote: >> How do I leave comments on PyPI? There's a checkbox "Allow comments on >> releases" which I have checked, but no obvious way to actually post a >> comment. > > You need to login in order to rate or comment. I

Re: doctests working both in Python 2.X and Python 3.X

2010-04-11 Thread Shashwat Anand
On Sun, Apr 11, 2010 at 1:59 PM, Michele Simionato < michele.simion...@gmail.com> wrote: > I do not want to write two documentations for a module working both in > Python 2.X and Python 3.X. > There are modules which work in both 2.x and 3.x but still behave differently. How will you handle those

doctests working both in Python 2.X and Python 3.X

2010-04-11 Thread Michele Simionato
I do not want to write two documentations for a module working both in Python 2.X and Python 3.X. To avoid that, I would need the ability to interpret doctests according to the used Python version. I mean something like that: """ Documentation of the module --

Re: [Possibly OT] Comments on PyPI

2010-04-11 Thread Martin v. Loewis
Steven D'Aprano wrote: > How do I leave comments on PyPI? There's a checkbox "Allow comments on > releases" which I have checked, but no obvious way to actually post a > comment. You need to login in order to rate or comment. A more specific place to ask PyPI questions is catalog-...@python.org

Re: SEC proposes the use of Python and XML

2010-04-11 Thread Cameron Simpson
On 10Apr2010 23:05, Chris Rebert wrote: | On Sat, Apr 10, 2010 at 9:13 PM, Ted Larson Freeman | wrote: | > This week the SEC proposed new requirements for asset-backed | > securities that include the use of XML and Python: | > | > "The asset-level information would be provided according to propos