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
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
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
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
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
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
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
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"
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
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
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
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
[ 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
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
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
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
Mensanator wrote:
> Planning to buy a Toyota?
Did we just start playing Questions?
--
http://mail.python.org/mailman/listinfo/python-list
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
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:
>
>
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
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
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
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
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
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.
>>
>>
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
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
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
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
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
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
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:
>
>
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
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
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
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:
>>
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
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
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
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
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
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
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
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
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
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
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
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
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
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\
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
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(
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
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
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
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
--
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
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
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
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
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
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
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.
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
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
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
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
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
--
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
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
70 matches
Mail list logo