Everyone,
I'm pleased to annouce the release both a production and
experimental release of GMPY. GMPY is a wrapper for the
MPIR or GMP multiple-precision arithmetic library. GMPY
is available for download from:
http://code.google.com/p/gmpy/
Production release
--
GMPY 1.12 is
On Jun 26, 5:36 pm, Terry Reedy tjre...@udel.edu wrote:
Rick, I am one of the all-too-few people who review tracker issues and
occasionally close them. I do not 'hate' you and have never
'brow-beaten' you.
Yes and i never said you did, i am sorry if you felt my words were
directed towards
I am happy to announce the 0.9 release of Pymazon.
http://code.google.com/p/pymazon/
Pymazon is a Python implemented downloader for the Amazon MP3 store.
This release is a near-full rewrite which brings a brand new GUI design and
a host of new features:
Notably:
- Pymazon now supports MP3
In message mailman.2141.1277567901.32709.python-l...@python.org, Stefan
Reich wrote:
My complaint is about changing the syntax of print.
I never use print, so I don’t appreciate the problem. It seems to be useful
only for noddy I/O.
--
http://mail.python.org/mailman/listinfo/python-list
On Sat, Jun 26, 2010 at 8:31 PM, Lawrence D'Oliveiro
l...@geek-central.gen.new_zealand wrote:
Except I only needed two calls to SQLString, while you need two dozen
instances of that repetitive items.c boilerplate.
As a human, being repetitive is not my job. That’s what the computer is for.
I didn't notice this level of angst when Python made equally significant
changes going from 1.5 to 2.0...
I think the *level* was about the same (IIRC). People would say that
they ignore 2.x for years, and that it is important to continue
supporting 1.5.2 for a long time (about until 2.4 was
On Sun, Jun 27, 2010 at 9:47 AM, Lawrence D'Oliveiro
l...@geek-central.gen.new_zealand wrote:
In message roy-854954.20435125062...@news.panix.com, Roy Smith wrote:
I recently fixed a bug in some production code. The programmer was
careful to use snprintf() to avoid buffer overflows. The only
On 6/26/2010 9:30 PM, python-list-requ...@python.org wrote:
Today's Topics:
2. Re: Python interface problem with Windows (Benjamin Kaplan)
Message: 2
Date: Sat, 26 Jun 2010 16:26:47 -0700
From: Benjamin Kaplan benjamin.kap...@case.edu
To: python-list@python.org
Subject: Re:
On Jun 27, 5:52 am, Kermit Rose ker...@polaris.net wrote:
On 6/26/2010 9:30 PM, python-list-requ...@python.org wrote:
I do not know how to import code from any other directory than the
default, C:\Python26.
Kermit,
There are a couple of ways to import python modules from various
places. But
In message nbmdnerwl6kaibjrnz2dnuvz_q2dn...@rcn.net, Alan G Isaac wrote:
Surprising for a moment, if you don't
immediatelyrecognize it as a chained comparison.
Bugger. So much for a Python version of this
http://www.codecodex.com/wiki/Interval_Comparison_With_Wraparound, then
...
--
In message mailman.2184.1277626565.32709.python-l...@python.org, Kushal
Kumaran wrote:
On Sun, Jun 27, 2010 at 9:47 AM, Lawrence D'Oliveiro
l...@geek-central.gen.new_zealand wrote:
In message roy-854954.20435125062...@news.panix.com, Roy Smith wrote:
I recently fixed a bug in some
P.S. Am I the only one who has never, ever, even *seen* a 'print'
statement in non-toy or non-bash-script-style code in any application
or even third-party library I looked at? Except, on occasion, for
quick and dirty debugging. Perhaps because I'm more used to
cross-platform to windows
In message mailman.2183.1277623909.32709.python-l...@python.org, Ian Kelly
wrote:
On Sat, Jun 26, 2010 at 8:31 PM, Lawrence D'Oliveiro
l...@geek-central.gen.new_zealand wrote:
Except I only needed two calls to SQLString, while you need two dozen
instances of that repetitive items.c
http://niceyapchat.blogspot.com/
--
http://mail.python.org/mailman/listinfo/python-list
http://niceyapchat.blogspot.com/
--
http://mail.python.org/mailman/listinfo/python-list
On 06/27/2010 01:45 PM, Lawrence D'Oliveiro wrote:
In message nbmdnerwl6kaibjrnz2dnuvz_q2dn...@rcn.net, Alan G Isaac wrote:
Surprising for a moment, if you don't
immediatelyrecognize it as a chained comparison.
Bugger. So much for a Python version of this
On 06/27/2010 01:46 PM, rantingrick wrote:
P.S. Am I the only one who has never, ever, even *seen* a 'print'
statement in non-toy or non-bash-script-style code in any application
or even third-party library I looked at? Except, on occasion, for
quick and dirty debugging. Perhaps because I'm
WANG Cong a écrit :
On 06/25/10 15:34, Bruno Desthuilliers
bruno.42.desthuilli...@websiteburo.invalid wrote:
WANG Cong a écrit :
Hi, list!
I have a doubt about the design of dynamic attribute creation by
assignments in Python.
As we know, in Python, we are able to create a new
On Sun, Jun 27, 2010 at 4:54 PM, Martin v. Loewis mar...@v.loewis.de wrote:
I didn't notice this level of angst when Python made equally significant
changes going from 1.5 to 2.0...
I think the *level* was about the same (IIRC). People would say that
they ignore 2.x for years, and that it is
WANG Cong a écrit :
(snip)
The point is why making metaprogramming easy is wonderful?
Because it makes life easier ?-)
AND, even if
it were wonderful, why only this one, i.e. creating attributes by
assignments, not other things?
Like :
class Test(object):
a = 1
del Test.a
?-)
2)
WANG Cong a écrit :
On 06/25/10 17:25, Steven D'Aprano st...@remove-this-cybersource.com.au
wrote:
On Fri, 25 Jun 2010 14:15:12 +0100, WANG Cong wrote:
(snip)
4) Also, this will _somewhat_ violate the OOP princples, in OOP, this is
and should be implemented by inherence.
Perhaps, and
WANG Cong a écrit :
On 06/26/10 00:11, Neil Hodgson nyamatongwe+thun...@gmail.com wrote:
WANG Cong:
4) Also, this will _somewhat_ violate the OOP princples, in OOP,
this is and should be implemented by inherence.
Most object oriented programming languages starting with Smalltalk
have
quote:
I didn't notice this level of angst when Python made equally significant
changes going from 1.5 to 2.0... admittedly Python 1.5 code would work
unchanged in 2.0, but the 2.x series introduced MUCH bigger additions to
Python than anything 3.0 and 3.1 have added, and anyone taking
In comp.lang.c++ nanothermite911fbibustards
nanothermite911fbibusta...@gmail.com wrote:
http://www.ae911truth.org/newsletter/2010/06/index.php#cdi
Explosive Evidence at WTC Cited by Former CDI Employee
News - News Releases By AE911Truth
Written by Darcy Wearing and Richard Gage, AIA
Hi,
The latex print function in sympy only can make latex code for math
expression which includes at least a variable. If we input an
expression without any variable like latex('2**2/3'), we will get
'$1$' instead of '$\\frac{1}{3} 2^{2}$'.
Is there a python package I can use to output latex code
On Sun, 27 Jun 2010 14:36:10 +1200, Lawrence D'Oliveiro wrote:
In any case, you're still trying to make arguments about whether it's easy
or hard to get it right, which completely misses the point. Eliminating
the escaping entirely makes it impossible to get it wrong.
Except nobody has yet
David Cournapeau schreef op de 27e dag van de zomermaand van het jaar 2010:
I doubt porting is easier than you think will convince many people
if they don't know what the gain will be. For example, porting numpy
and scipy to py3k has been easier than I thought, but besides making
it easier
On Sun, Jun 27, 2010 at 11:46 PM, Peter Kleiweg p.c.j.klei...@rug.nl wrote:
David Cournapeau schreef op de 27e dag van de zomermaand van het jaar 2010:
I doubt porting is easier than you think will convince many people
if they don't know what the gain will be. For example, porting numpy
and
On Jun 27, 6:45 am, Juha Nieminen nos...@thanks.invalid wrote:
In comp.lang.c++ nanothermite911fbibustards
nanothermite911fbibusta...@gmail.com wrote:
http://www.ae911truth.org/newsletter/2010/06/index.php#cdi
Explosive Evidence at WTC Cited by Former CDI Employee
News - News Releases By
On Sun, 27 Jun 2010 16:21:25 +1200, Lawrence D'Oliveiro wrote:
In message mailman.2077.1277482235.32709.python-l...@python.org, Ian Kelly
wrote:
I use cron.
Con: Most cron implementations have a maximum frequency of once per
minute.
Another con is: what happens if a run takes longer
On 6/27/10 5:16 AM, Thomas Jollans wrote:
On 06/27/2010 01:46 PM, rantingrick wrote:
P.S. Am I the only one who has never, ever, even *seen* a 'print'
statement in non-toy or non-bash-script-style code in any application
or even third-party library I looked at? Except, on occasion, for
quick
On Jun 27, 7:16 am, Thomas Jollans tho...@jollans.com wrote:
Granted, some use print to emit warnings (aifc for example). This isn't
perfectly clean, of course, but it's not used a whole lot either. Mostly
rather old code too, I think.
And some (abc for example) use print in what looks like
On 6/27/2010 6:52 AM, Kermit Rose wrote:
I do not know how to import code from any other directory than the
default, C:\Python26.
I personally took the easy way. I put my package of modules in
pthonxy/Lib/site-packages, which is already on the search path
from package import mymod
from
:
Islam is an Arabic word, it means that you totally surrender to God,
and worship Him only.
Here also I must explain what does worship means? It doesn't mean that
you only pray, its meaning is much much wider, to worship God is that
you look at Him as your ONLY master, no other master controlling
On Sun, 27 Jun 2010 02:45:37 +0100 Nobody nob...@nowhere.com wrote:
On Sat, 26 Jun 2010 21:08:48 +0200, Martin v. Loewis wrote:
I think that's not true. If enough people want to support Python 2
it might be possible to advance Python 2.
That won't be sufficient: enough people wanting
On 6/27/10 9:26 AM, rantingrick wrote:
That being said, Stephen's statement was very broad, but I think it's
true: print is primarily used in small scripts, or script-like testing
functions/methods.
No, Stephen's comments were NOT general in any way and they where in
fact very specific... If
Hi All,
According to this page
http://msdn.microsoft.com/en-us/library/system.windows.controls.stackpanel.aspx
StackPanel is in the System.Windows.Controls Namespace
When I try and set up a reference to that Namespace I get a Could not
add reference to assembly
System.Windows.Controls error
On Sun, Jun 27, 2010 at 10:36 AM, Ian Hobson i...@ianhobson.co.uk wrote:
Hi All,
According to this page
http://msdn.microsoft.com/en-us/library/system.windows.controls.stackpanel.aspx
StackPanel is in the System.Windows.Controls Namespace
When I try and set up a reference to that
On Sat, 2010-06-26, Lawrence D'Oliveiro wrote:
In message slrni297ec.1m5.grahn+n...@frailea.sa.invalid, Jorgen Grahn
wrote:
I thought it was well-known that the solution is *not* to try to
sanitize the input -- it's to switch to an interface which doesn't
involve generating an intermediate
On 6/27/2010 8:41 AM, David Cournapeau wrote:
I think one point which needs to be emphasized more is what does
python 3 bring to people. The what's new in python 3 page gives the
impression that python 3 is about removing cruft. That's a very poor
argument to push people to switch.
Python3 is
On Jun 26, 10:02 pm, small Pox smallpox...@gmail.com wrote:
Roman Polansky RAPED Semantha Geimer Orally, Analy and Vaginally -
TRAUMA for victim is so much that she wants it to be out of sight from
her
Full Court Declaration of ROMAN POLANSKY
Add references to:
PresentationCore
and PresentationFramework
for the System.Windows and System.Windows.Controls etc namespace.
Ian Hobson wrote:
Where is StackPanel in IronPython / .Net 4?
27-Jun-10
Hi All,
According to this page
It should be
PresentationCore
and PresentationFramework.
For some reason, that first part got deleted in my reply.
Jimmy Cao wrote:
Wrong reference
27-Jun-10
Add references to:
PresentationCore
and PresentationFramework
for the System.Windows and System.Windows.Controls etc namespace.
For some reason, PresentationCore doesn't show up...
PresentationCore
PresentationCore
PresentationCore
PresentationCore
PresentationCore
Jimmy Cao wrote:
Wrong reference
27-Jun-10
Add references to:
PresentationCore
and PresentationFramework
for the System.Windows and System.Windows.Controls
Am 25.06.2010 17:13, schrieb Peter Kleiweg:
How do I set the string encoding for os.system to anything other then UTF-8?
You shouldn't have to set it, as it should use your locale's encoding.
In 3.1.2, it will.
For the moment, you can encode the string explicitly, and pass a byte
string.
I agree that there may be not much reason to port custom proprietary
apps that are working fine and which would hardly benefit from, let
alone need, and new Py3 features.
In the long run, there will be a benefit: at some point in the future
(surely years from now), /usr/bin/python will be
On Fri, 2010-06-25, Nobody wrote:
On Fri, 25 Jun 2010 12:15:08 +, Jorgen Grahn wrote:
I don't do SQL and I don't even understand the terminology properly
... but the discussion around it bothers me.
Do those people really do this?
Yes. And then some.
Among web developers, the median
Martin v. Loewis schreef op de 27e dag van de zomermaand van het jaar 2010:
Am 25.06.2010 17:13, schrieb Peter Kleiweg:
How do I set the string encoding for os.system to anything other then UTF-8?
You shouldn't have to set it, as it should use your locale's encoding.
In 3.1.2, it will.
Hi Benjamin - and thanks for your reply.
I'm now really confused.
On 27/06/2010 20:05, Benjamin Kaplan wrote:
You don't add references to namespaces. You add references to
assemblies and you then you import the namespace.
From the documentation:
'''
Namespace: System.Windows.Controls
On Sun, 2010-06-27, Lawrence D'Oliveiro wrote:
In message roy-854954.20435125062...@news.panix.com, Roy Smith wrote:
I recently fixed a bug in some production code. The programmer was
careful to use snprintf() to avoid buffer overflows. The only problem
is, he wrote something along the
In contrast to java or c python seems not be able to use a random
delimiter.
In java, you can do:
Code:
import java.util.Scanner
Scanner sc = new Scanner(System.in).useSeperator( )
int a = sc.nextInt()
But in python there seems to be no other option then waiting until you
see a newline.
I
For the moment, you can encode the string explicitly, and pass a byte
string.
That doesn't work
I only have 3.1.2 to test at the moment. I suggest trying to use the
subprocess module instead.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
On Sun, 2010-06-27 at 22:41 +0200, Laurent Verweijen wrote:
In contrast to java or c python seems not be able to use a random
delimiter.
In java, you can do:
Code:
import java.util.Scanner
Scanner sc = new Scanner(System.in).useSeperator( )
int a = sc.nextInt()
But in python
On 28 juuni, 00:12, nanothermite911fbibustards
nanothermite911fbibusta...@gmail.com wrote:
On Jun 27, 1:33 pm, Peter Keller psil...@cs.wisc.edu wrote:
nanothermite911fbibustards nanothermite911fbibusta...@gmail.com wrote:
A single bound pdf document of all the tutorial slides in one SINGLE
I have a large list of package files to import. I'm using a try/except
test to verify the import. Looks like:
try:
import abc
except ImportError:
print( Error importing abc )
I've got many of those segments. I want to try and refactor this part
of the code.
Trying:
On Jun 24, 6:02 pm, Roy Smith r...@panix.com wrote:
In article i00t2k$l0...@lust.ihug.co.nz,
Lawrence D'Oliveiro l...@geek-central.gen.new_zealand wrote:
I construct ad-hoc queries all the time. It really isn’t that hard to do
safely. All you have to do is read the documentation
I get
On 06/28/2010 12:06 AM, GrayShark wrote:
I have a large list of package files to import. I'm using a try/except
test to verify the import. Looks like:
try:
import abc
except ImportError:
print( Error importing abc )
I've got many of those segments. I want to try and
In article
14e44c9c-04d9-452d-b544-498adfaf7...@d8g2000yqf.googlegroups.com,
Carl Banks pavlovevide...@gmail.com wrote:
Seriously, almost every other kind of library uses a binary API. What
makes databases so special that they need a string-command based API?
How about this instead (where
On Jun 27, 5:18 pm, Thomas Jollans tho...@jollans.com wrote:
On 06/28/2010 12:06 AM, GrayShark wrote:
I have a large list of package files to import. I'm using a try/except
test to verify the import. Looks like:
snip code
(1) Don't. If you need the module, there's no reason to check for
On Jun 27, 2:09 pm, Martin v. Loewis mar...@v.loewis.de wrote:
I agree that there may be not much reason to port custom proprietary
apps that are working fine and which would hardly benefit from, let
alone need, and new Py3 features.
In the long run, there will be a benefit: at some point
On 06/28/2010 12:48 AM, rantingrick wrote:
On Jun 27, 5:18 pm, Thomas Jollans tho...@jollans.com wrote:
On 06/28/2010 12:06 AM, GrayShark wrote:
I have a large list of package files to import. I'm using a try/except
test to verify the import. Looks like:
snip code
(1) Don't. If you need
On Sun, Jun 27, 2010 at 4:03 PM, eric_dex...@msn.com
eric_dex...@msn.com wrote:
On Jun 27, 2:09 pm, Martin v. Loewis mar...@v.loewis.de wrote:
I agree that there may be not much reason to port custom proprietary
apps that are working fine and which would hardly benefit from, let
alone need,
I managed to get the program running and the menu options are
appearing on the list but the programs are not running. I suspect it
is my onexecutemethod
# Get the GUI stuff
import wx
# We're going to be handling files and directories
import os
menufile = open('menufile.txt','r')
# Set up some
On 6/27/10 4:03 PM, eric_dex...@msn.com wrote:
On Jun 27, 2:09 pm, Martin v. Loewismar...@v.loewis.de wrote:
The same happened with other kinds of deprecations and removals through
the life of 2.x. Some applications where tied to a specific Python
release, or to a specific feature that had
On Jun 27, 2:33 pm, Peter Keller psil...@cs.wisc.edu wrote:
nanothermite911fbibustards nanothermite911fbibusta...@gmail.com wrote:
That guys intention is not to spread tutorial, but its a commercial. I
clarified its true nature.
Fair enough.
Your ilk has special skill in turning white
On Jun 27, 4:20 pm, nanothermite911fbibustards
nanothermite911fbibusta...@gmail.com wrote:
On Jun 27, 2:33 pm, Peter Keller psil...@cs.wisc.edu wrote:
nanothermite911fbibustards nanothermite911fbibusta...@gmail.com wrote:
That guys intention is not to spread tutorial, but its a commercial.
Hello,
I know that the help text for an object will give a description of
every method based on the doc string. Is there a way to add
something to this text, specific to an object, but generated at run-
time? I have an object that reads a file, and I would like part of
that file to be
In comp.lang.lisp nanothermite911fbibustards
nanothermite911fbibusta...@gmail.com wrote:
TROLL is that mythical creature who is looking for gold ?
Nope, they are the ones that jump out from under bridges and scare little
children cause they feel bad about themselves and need someone else to
Carl Banks pavlovevide...@gmail.com writes:
Seriously, almost every other kind of library uses a binary API.
Except for the huge number that deal with text protocols or languages.
What makes databases so special that they need a string-command based
API?
Because SQL is a text language.
--
Stefan Reich wertiges.prod...@googlemail.com wrote:
Consider Java as a better example: JDK 1.6 still runs and compiles
everything written for JDK 1.0. That is proper management.
And Python has the same management. Python 2.6 still runs and compiles
everything written for Python 2.0. If there
eric_dex...@msn.com wrote:
I managed to get the program running and the menu options are
appearing on the list but the programs are not running. I suspect it
is my onexecutemethod
[snip]
#add execute files from the text file list
idtool = 400
for e in menuoptions:
On Jun 27, 6:09 pm, Thomas Jollans tho...@jollans.com wrote:
import Tkinter as tk
try:
import Image #from PIL
print 'Using high quality images :)'
except ImportError:
print 'Using low quality images :('
As such, that still appears rather useless - the following code
On Jun 27, 4:26 pm, Peter Keller psil...@cs.wisc.edu wrote:
In comp.lang.lisp nanothermite911fbibustards
nanothermite911fbibusta...@gmail.com wrote:
TROLL is that mythical creature who is looking for gold ?
Nope, they are the ones that jump out from under bridges and scare little
children
Some people appear to not understand the purpose of Python3 or more
specifically, of the changes that break Python2 code. I attempt here to
give a relatively full explanation.
SUMMARY: Python3 completes (or makes progress in) several transitions
begun in Python2.
In particular, Python3
On 2010-06-27, Benjamin Kaplan benjamin.kap...@case.edu wrote:
It should be easier to have a large number of python versions on one
machine... ?I am realy fond of 2.5 so I am probily going to start
compiling them or just include the python2.5 exe if I port stuff and
settle it that way..
Terry Reedy wrote:
Some people appear to not understand the purpose of Python3 or more
specifically, of the changes that break Python2 code. I attempt here to
give a relatively full explanation.
SUMMARY: Python3 completes (or makes progress in) several transitions
begun in Python2.
In
On Sun, Jun 27, 2010 at 8:50 PM, Grant Edwards inva...@invalid.invalid wrote:
On 2010-06-27, Benjamin Kaplan benjamin.kap...@case.edu wrote:
It should be easier to have a large number of python versions on one
machine... ?I am realy fond of 2.5 so I am probily going to start
compiling them or
In message 4c24c152$0$31381$4fafb...@reader1.news.tin.it, superpollo
wrote:
suppose i work in a linux environment, but i would like to ship a
win/dos executable file from time to time, just for test purposes (my
testers are windows users and don't want to go through the hassle of
installing
On 6/27/10 6:09 PM, MRAB wrote:
Terry Reedy wrote:
Another would have been to add but never remove anthing, with the
consequence that Python would become increasingly difficult to learn
and the interpreter increasingly difficult to maintain with
volunteers. I think 2.7 is far enough in that
On 6/27/10 6:11 PM, geremy condra wrote:
On Sun, Jun 27, 2010 at 8:50 PM, Grant Edwardsinva...@invalid.invalid wrote:
If you install a real shell on Windows, then the hash-bang line works
fine. :)
Might as well spare yourself the trouble and install linux or *bsd. It's
probably easier.
Not
geremy condra debat...@gmail.com writes:
On Sun, Jun 27, 2010 at 8:50 PM, Grant Edwards inva...@invalid.invalid
wrote:
On 2010-06-27, Benjamin Kaplan benjamin.kap...@case.edu wrote:
It should be easier to have a large number of python versions on one
machine... ?I am realy fond of 2.5 so I
On 2010-06-28, geremy condra debat...@gmail.com wrote:
On Sun, Jun 27, 2010 at 8:50 PM, Grant Edwards inva...@invalid.invalid
wrote:
On 2010-06-27, Benjamin Kaplan benjamin.kap...@case.edu wrote:
It should be easier to have a large number of python versions on one
machine... ?I am realy
On 2010-06-28, Lawrence D'Oliveiro l...@geek-central.gen.new_zealand wrote:
In message 4c24c152$0$31381$4fafb...@reader1.news.tin.it, superpollo
wrote:
suppose i work in a linux environment, but i would like to ship a
win/dos executable file from time to time, just for test purposes (my
On Jun 27, 5:56 pm, MRAB pyt...@mrabarnett.plus.com wrote:
eric_dex...@msn.com wrote:
I managed to get the program running and the menu options are
appearing on the list but the programs are not running. I suspect it
is my onexecutemethod
[snip]
#add execute files from the
Stephen Hansen wrote:
On 6/27/10 6:09 PM, MRAB wrote:
Terry Reedy wrote:
Another would have been to add but never remove anthing, with the
consequence that Python would become increasingly difficult to learn
and the interpreter increasingly difficult to maintain with
volunteers. I think 2.7 is
On 2010-06-26 22:33:57 -0400, Lawrence D'Oliveiro said:
In message 2010062522560231540-angrybald...@gmailcom, Owen Jacobson wrote:
It's not hard. It's just begging for a visit from the fuckup fairy.
That’s the same fallacious argument I pointed out earlier.
In the sense that using correct
On Jun 27, 7:46 pm, MRAB pyt...@mrabarnett.plus.com wrote:
Stephen Hansen wrote:
On 6/27/10 6:09 PM, MRAB wrote:
Terry Reedy wrote:
Another would have been to add but never remove anthing, with the
consequence that Python would become increasingly difficult to learn
and the interpreter
On Sun, Jun 27, 2010 at 9:16 PM, Lawrence D'Oliveiro
l...@geek-central.gen.new_zealand wrote:
In message 4c24c152$0$31381$4fafb...@reader1.news.tin.it, superpollo
wrote:
suppose i work in a linux environment, but i would like to ship a
win/dos executable file from time to time, just for test
I need to test an argument for a few different types.
I'm calling my function like this
arf = MyFunc(list)
What I want to do is to test for whether something is a string, tuple, list or
function. It's that last one that's causing me a problem.
if isinstance(arg, (str, tuple, list)):
No
Terry Reedy tjre...@udel.edu writes:
On 6/27/2010 8:41 AM, David Cournapeau wrote:
I think one point which needs to be emphasized more is what does
python 3 bring to people.
[…]
Python3 is about finishing transitions. The last stage in a transition
that replaces something old with
On Sun, Jun 27, 2010 at 6:51 PM, eric dexter irc.dex...@gmail.com wrote:
On Jun 27, 7:46 pm, MRAB pyt...@mrabarnett.plus.com wrote:
Stephen Hansen wrote:
On 6/27/10 6:09 PM, MRAB wrote:
Terry Reedy wrote:
Another would have been to add but never remove anthing, with the
consequence that
On Sun, Jun 27, 2010 at 9:25 PM, John Bokma j...@castleamber.com wrote:
geremy condra debat...@gmail.com writes:
On Sun, Jun 27, 2010 at 8:50 PM, Grant Edwards inva...@invalid.invalid
wrote:
On 2010-06-27, Benjamin Kaplan benjamin.kap...@case.edu wrote:
It should be easier to have a large
eric dexter wrote:
On Jun 27, 5:56 pm, MRAB pyt...@mrabarnett.plus.com wrote:
eric_dex...@msn.com wrote:
I managed to get the program running and the menu options are
appearing on the list but the programs are not running. I suspect it
is my onexecutemethod
[snip]
#add execute
On Sun, Jun 27, 2010 at 9:46 PM, MRAB pyt...@mrabarnett.plus.com wrote:
Stephen Hansen wrote:
On 6/27/10 6:09 PM, MRAB wrote:
Terry Reedy wrote:
Another would have been to add but never remove anthing, with the
consequence that Python would become increasingly difficult to learn
and the
On 6/27/10 7:09 PM, Steven W. Orr wrote:
So, my question is, what value can I use as the 2nd arg to isinstance to see if
foo is a function? And while I'm on the subject, what types does isinstance not
support?
Does it have to be a function? -- There's quite a few things which are
function-y
Steven W. Orr wrote:
I need to test an argument for a few different types.
I'm calling my function like this
arf = MyFunc(list)
What I want to do is to test for whether something is a string, tuple, list or
function. It's that last one that's causing me a problem.
if isinstance(arg, (str,
geremy condra debat...@gmail.com writes:
On Sun, Jun 27, 2010 at 9:25 PM, John Bokma j...@castleamber.com wrote:
geremy condra debat...@gmail.com writes:
On Sun, Jun 27, 2010 at 8:50 PM, Grant Edwards inva...@invalid.invalid
wrote:
On 2010-06-27, Benjamin Kaplan benjamin.kap...@case.edu
Read you doc file and set the __doc__ attr of the object you want to change.
On Monday, June 28, 2010, Brian Blais bbl...@bryant.edu wrote:
Hello,
I know that the help text for an object will give a description of every
method based on the doc string. Is there a way to add something to this
On Jun 27, 4:35 pm, Ben Finney ben+pyt...@benfinney.id.au wrote:
Carl Banks pavlovevide...@gmail.com writes:
Seriously, almost every other kind of library uses a binary API.
Except for the huge number that deal with text protocols or languages.
No, not really. Almost all types of libraries
On 6/27/10 7:35 PM, John Bokma wrote:
On top of that, I don't think it's that hard to make a small program
that one associates with .py files which checks the first line and feeds
the .py to the correct version of Python based on the information in the
aformentioned first line.
1 - 100 of 185 matches
Mail list logo