CodeInvestigator 0.19.0 was released on November 20.
Bug fixes:
An issue with 'from module import *'.
Functionality change:
Removal of most of the items on the Entry Points screen:
Indirect calls are now logged against the originating line.
These calls were clogging up the
I'm wondering if there is something similar to list comprehension for
dict (please see the example code below).
d = dict(one=1, two=2)
print d
def fun(d):#Is there a way similar to list comprehension to change the
argument d so that d is changed?
d=dict(three=3)
fun(d)
print d
def fun1(d):
Steven D'Aprano wrote:
I don't know what the state of the art on Mac is
these days, but in 1984s Macs had a standard keyboard layout that let you
enter most available characters via the keyboard, using sensible
mnemonics. E.g. on a US keyboard layout, you could get ≠ by holding down
the
Daniel Dalton schrieb:
Hi,
Here is my situation:
I'm using the command line, as in, I'm not starting gnome or kde (I'm on
linux.)
I have a string of text attached to a variable,. So I need to use one of
the browsers on linux, that run under the command line, eg. lynx,
elinks, links, links2 and
Peng Yu schrieb:
On Wed, Nov 18, 2009 at 9:12 PM, Tim Chase
python.l...@tim.thechases.com wrote:
There are many special characters listed on
http://docs.python.org/library/re.html
I'm wondering if there is a convenient function that can readily
convert a string with the special characters to
hong zhang schrieb:
List,
I want to input hex number instead of int number. in type=int in following,
parser.add_option(-F, --forcemcs, dest=force_mcs, type=int, default=0,
help=index of 11n mcs table. Default: 0.)
How can I do it?
You can't. You can get a string, and convert that with
I have a READ.me file for real.py, but where could I get that module? I use
Python 3.+
I hope that sombody can help me
mailto: jo...@mail.dk
--
http://mail.python.org/mailman/listinfo/python-list
André:
Apparently the error is caused by cx_Oracle not being able to find the
Oracle client DLLs (oci.dll and others). The client home path and the
client home path bin directory are in the PATH System Variable and
oci.dll is there.
Open the cx_Oracle extension with Dependency Walker
On 10月13日, 下午9时42分, Jean-Michel Pichavant jeanmic...@sequans.com
wrote:
Antoon Pardon wrote:
I have been looking forpexpect. The links I find like
http://pexpect.sourceforge.netall end up at
http://www.noah.org/wiki/Pexpectwhich produces a 404 not
found problem.
Does someone know the
On 11月17日, 上午11时40分, yuzhichang yuzhich...@gmail.com wrote:
Pexpect2.4 is only available at Pypi. Both the homepage
ofpexpect(http://www.noah.org/wiki/Pexpect) and download page
(http://sourceforge.net/projects/pexpect/files/) are outdated. The
repository on Github
Diez B. Roggisch wrote:
- save a reference to sys.stdout *before* invoking the server
- compare to it after interruption. If it has changed, you at least know
that somebody messed with it, and can beat him or whatever you see fit.
Thanks for the help. Finally, I dropped python-scgi module
Jean-Michel Pichavant wrote:
I guess the world is split in two categories, those how come back to fix
the TODO, and those how don't. I for myself belong to the second, that
is why I never write TODO comments, I either do the stuff or consider
this is not important enough to waste time on it.
On 18 Nov, 23:56, Kevin Walzer k...@codebykevin.com wrote:
wxWidgets (the C++ library) has support for a lot of things other than
UI bits, as well. wxPython itself is mainly a GUI library because the
additional features of wxWidgets in C++ are redundant in Python.
That is true. Nobody uses
hong zhang wrote:
I want to input hex number instead of int number. in type=int in
following,
parser.add_option(-F, --forcemcs, dest=force_mcs, type=int,
default=0, help=index of 11n mcs table. Default: 0.)
How can I do it?
Workaround for the lazy: '0xff' on the command line instead of
Who is your target audience?
From: Alf P. Steinbach al...@start.no
Someone intelligent who doesn't know anything or very much about
programming and wants to learn general programming.
I think of what a computer *does* as data processing, and then
programing is simply telling the computer
On Nov 18, 7:13 pm, Terry Reedy tjre...@udel.edu wrote:
It amounts to duplicating raise x...exception x as break xcontinue x
in the name of aesthetics and supposed efficiency. There would be no new
functionality nor any abbreviation of code. The semantics of
there would be abbreviation:
On Thu, 19 Nov 2009 09:50:44 +0100, Hans Larsen wrote:
I have a READ.me file for real.py, but where could I get that module? I
use Python 3.+
I hope that sombody can help me
Have you googled for real.py?
--
Steven
--
http://mail.python.org/mailman/listinfo/python-list
On 18 Nov, 22:11, Stef Mientki stef.mien...@gmail.com wrote:
Simon Hibbs wrote:
On 18 Nov, 07:51, sturlamolden sturlamol...@yahoo.no wrote:
GPL
PyQT is GPL for now, but Qt itself is available under the LGPL as is
PySide. Eventualy PySide, which tracks the PyQT API, will supplant it
Gregory Ewing greg.ew...@canterbury.ac.nz writes:
Steven D'Aprano wrote:
I don't know what the state of the art on Mac is these days, but in
1984s Macs had a standard keyboard layout that let you enter most
available characters via the keyboard, using sensible mnemonics.
E.g. on a US
On Nov 19, 12:20 am, Gregory Ewing greg.ew...@canterbury.ac.nz
wrote:
Steven D'Aprano wrote:
I don't know what the state of the art on Mac is
these days, but in 1984s Macs had a standard keyboard layout that let you
enter most available characters via the keyboard, using sensible
Carl Banks pavlovevide...@gmail.com writes:
On Nov 19, 12:20 am, Gregory Ewing greg.ew...@canterbury.ac.nz
wrote:
They all still seem to work -- presumably generating the appropriate
unicode characters now instead of MacRoman.
³It¹s about time.²
I � Unicode.
(lrf, gung *vf* qryvorengr,
On Nov 18, 12:25 pm, Jean-Michel Pichavant jeanmic...@sequans.com
wrote:
Hi python fellows,
I'm currently inspecting my Linux process list, trying to parse it in
order to get one particular process (and kill it).
I ran into an annoying issue:
The stdout display is somehow truncated (maybe a
everything works just fine, but one thing bothers me. All prints after
try-except block are executed twice after the Ctrl+C is pressed!
test.py:
#-
from scgi.scgi_server import SCGIServer
n = 0
print Starting server.
try:
SCGIServer().serve()
except
Hello,
Thanks for the suggestions and information Diez!
On Nov 18, 9:38 am, Diez B. Roggisch de...@nospam.web.de wrote:
You are aware that the coding-declaration only affects unicode-literals (the
ones like ui'm unicode)? So the above insert-statement is *not* unicode,
it's a byte-string in
Jean-Michel Pichavant jeanmic...@sequans.com writes:
Hi python fellows,
I'm currently inspecting my Linux process list, trying to parse it in
order to get one particular process (and kill it).
I ran into an annoying issue:
The stdout display is somehow truncated (maybe a terminal length
Does Python 3.x support Unicode-named attributes?
There are several modules which operate on HTML and try to
hammer HTML/XML into Python object attributes. I've had
BeautifulSoup and urllib blow up at various times when
running on non-English HTML/XML.
Got this error today:
PyGUI 2.1.1 is available:
http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/
This is an emergency bugfix release to repair some major
breakage in the gtk version. Also corrects some other
problems.
What is PyGUI?
--
PyGUI is a cross-platform GUI toolkit designed to be
In article mailman.680.1258599841.2873.python-l...@python.org,
Chris Rebert c...@rebertia.com wrote:
How the heck someone sets their account email to a mailinglist, I'll
never figure out.
This probably is not Jaime's fault. LinkedIn has an expletive b0rken
implementation where they randomly
In article mailman.506.1258388595.2873.python-l...@python.org,
Terry Reedy tjre...@udel.edu wrote:
Some usenet newsgroups were/are moderated either by a robot, a person,
or a team (as you suggested). But a particular newsgroup has to be set
up that way from the beginning. Last I knew, it
In article ff92db5b-9cb0-4a72-b339-2c5ac02fb...@p36g2000vbn.googlegroups.com,
Steve Ferg steve.ferg.bitbuc...@gmail.com wrote:
Does anybody know a language with this kind of syntax for
ifThenElseEndif?
Several templating systems, including Cheetah.
--
Aahz (a...@pythoncraft.com) *
In article mailman.224.1257933469.2873.python-l...@python.org,
Robert P. J. Day rpj...@crashcourse.ca wrote:
http://groups.google.com/group/unladen-swallow/browse_thread/thread/4edbc406f544643e?pli=1
thoughts?
Haven't seen this elsewhere in the thread:
In article hdt6tb$9d...@reader1.panix.com,
Grant Edwards inva...@invalid.invalid wrote:
You've really got to try pretty hard to create one. But if you
want to, here's how to do it:
1) Start by complaining that your program doesn't work because
of a bug in Python.
[...]
Post of the
The current implementation of Python (2.6.4, 3.1.1) treats \bar as a
relative path but reports it as an absolute path.
ntpath.isabs('\\bar')
True
ntpath.abspath('\\bar')
'C:\\bar'
os.chdir('d:\\')
ntpath.abspath('\\bar')
'd:\\bar'
os.chdir('server\\share')
ntpath.abspath('\\bar')
On Thu, 19 Nov 2009 06:21:09 -0800, Bas wrote:
Below is the script I use to automatically kill firefox if it is not
behaving, maybe you are looking for something similar.
lines = os.popen('ps ax|grep firefox').readlines()
This isn't robust. It will kill any process with firefox anywhere in
Дамјан Георгиевски wrote:
SCGIServer().serve() forks, so it seems that there are 2 python
processes continuing to run after SCGIServer().serve()
I noticed that which makes it unusable to me. Also, it took me almost
whole day to realize this. I'm adopting a huge application to work with
SCGI
The prime goal of 'phileas' is to enable html code to be seamlessly
included in python code in a natural looking syntax, without resorting
to templatng language.
see:
http://larry.myerscough.nl/phileas_project/
I intend to submit phileas to the python.announce forum within the
next few days.
On Nov 19, 10:53 am, papa hippo hippost...@gmail.com wrote:
The prime goal of 'phileas' is to enable html code to be seamlessly
included in python code in a natural looking syntax, without resorting
to templatng language.
see:
http://larry.myerscough.nl/phileas_project/
I intend to submit
Does Python 3.x support Unicode-named attributes?
Most certainly, yes. All identifiers (and thus all attribute
names) are Unicode strings in Python 3.x.
There are several modules which operate on HTML and try to
hammer HTML/XML into Python object attributes. I've had
BeautifulSoup
The CPython 3.1.1 language reference §4.1 says
Each command typed interactively is a block.
It also says
If a name is bound in a block, it is a local variable of that block, unless
declared as nonlocal
Even with a non-literal try-for-best-meaning reading I can't get this to mesh
with
On Thu, 19 Nov 2009 21:37:17 +0100, Alf P. Steinbach wrote:
The CPython 3.1.1 language reference §4.1 says
Each command typed interactively is a block.
It also says
If a name is bound in a block, it is a local variable of that block,
unless
declared as nonlocal
Even
On Wed, 18 Nov 2009 18:47:34 -0800, Chris Rebert wrote:
On Wed, Nov 18, 2009 at 6:27 PM, Peng Yu pengyu...@gmail.com wrote:
http://www.python.org/dev/peps/pep-0008/
The above webpage states the following naming convention. Such a
variable can be an internal variable in a class. I'm wondering
On Thu, 19 Nov 2009 02:00:58 -0800, Robert Maas, http://tinyurl.com/uh3t
wrote:
My proposed no-syntax
IDE *also* gets rid of the need to bother with any programming-language
syntax. I've been proposing it for years, but nobody has shown any
interest
I'm interested. No-syntax IDE? How is this
* Steven D'Aprano:
On Thu, 19 Nov 2009 21:37:17 +0100, Alf P. Steinbach wrote:
The CPython 3.1.1 language reference §4.1 says
Each command typed interactively is a block.
It also says
If a name is bound in a block, it is a local variable of that block,
unless
declared as
On Nov 18, 8:57 pm, Ping-Hsun Hsieh hsi...@ohsu.edu wrote:
Hi,
I would like to compare values in two table with same column and row names,
but with different orders in column and row names.
For example, table_A in a file looks like the follows:
AA100 AA109 AA101 AA103 AA102
BB1
On Tue, 17 Nov 2009 13:46:25 -0500, Nick Stinemates wrote:
At least with Gentoo, there's a command to recompile all of the plugins
you have installed when upgrading python versions.
Your issue is probably related to that. I don't think VIM uses hardcoded
locations for scripts at the core.
I couldn't find a library providing a bijective map data structure
(allowing for constant-time lookups by value) in the few minutes I
looked, so I took a few more minutes to code one up:
http://bitbucket.org/jab/toys/src/tip/bijection.py
Is this at all worth releasing? Comments and suggestions
On Wednesday 18 November 2009 11:47, Snouffy wrote:
I've been trying to do some syntax highlighting using PyQt4. I ported
the example given in the documentation of Qt4 to Python. It works fine
on my computer at work (which has PyQt4 version 4.3.3) but doesn't on
my home computer (which has
On Thu, 19 Nov 2009 15:24:46 -0800, Joshua Bronson wrote:
I couldn't find a library providing a bijective map data structure
(allowing for constant-time lookups by value) in the few minutes I
looked, so I took a few more minutes to code one up:
On Thursday 19 November 2009 11:50, Simon Hibbs wrote:
I don't think a list like this is a great way to do that. There are
plenty of examples and tutorials available for each option.
This site has a selection of tutorials that can be used to compare
API and code styles:
http://zetcode.com/
On Nov 19, 7:05 pm, Steven D'Aprano st...@remove-this-
cybersource.com.au wrote:
If I want a mapping a - b, I generally just create a dict {a:b, b:a}.
What is the advantages or disadvantages of your code over the simplicity
of the dict approach?
Well for one, you don't have to manually update
On Sun, 15 Nov 2009 00:17:43 -0800, Mary wrote:
Whom Must We Worship
many lines of insane drivel deleted
The Decision is yours!
Thank you, I got that.
I choose Python. Thanks for sharing.
ciao,
f
--
aa #2301
...The word that separates that which is dead from that which is
livingIn
On Nov 19, 3:24 pm, Joshua Bronson jabron...@gmail.com wrote:
I couldn't find a library providing a bijective map data structure
(allowing for constant-time lookups by value) in the few minutes I
looked, so I took a few more minutes to code one
Carl Banks pavlovevide...@gmail.com writes:
On Nov 19, 3:24 pm, Joshua Bronson jabron...@gmail.com wrote:
I couldn't find a library providing a bijective map data structure
(allowing for constant-time lookups by value) in the few minutes I
looked, so I took a few more minutes to code one
On Nov 19, 9:17 pm, Carl Banks pavlovevide...@gmail.com wrote:
Apart from the GPL
what Ben said :)
it seems perfectly fine to release, and looks like
an interesting strategy. I've wanted one of those once in a while,
never enough to bother looking for one or writing one myself.
glad to
Jonathan Fine wrote:...
A big thanks to Armin Ronacher and Raymond Hettinger for
PEP 372: Adding an ordered dictionary to collections
... I prototyped (in about an hour).
I then thought - maybe someone has been down this path before
So all that I want has been done already, and will be
Keith Hughitt wrote:
Hi all,
I ran into a problem recently when trying to add support for earlier
versions of Python (2.4 and 2.5) to some database related code which
uses MySQLdb, and was wondering if anyone has any suggestions.
With later versions of Python (2.6), inserting Unicode is very
MRAB wrote:
u'\u240D' isn't a carriage return (that's u'\r') but a symbol (a visible
CR graphic) for carriage return. Windows programs normally expect
lines to end with '\r\n'; just use u'\n' in programs and open the text
files in text mode ('r' or 'w').
rant
This is the one thing from
Michel Claveau - MVPenleverlesx_xx...@xmclavxeaux.com.invalid wrote:
Hi!
You forget to write urwid do not run under Windows.
He also forgot to write urwid do not run under CP/M or OS/360. Why did
you feel compelled to post this three times? If it supported Windows, it
would say so. The fact
elca, 18.11.2009 19:04:
these day im making python script related with DOM.
problem is these day many website structure is very complicate .
[...]
what is best method to check can extract such like following info quickly?
This should help:
papa hippo, 19.11.2009 19:53:
The prime goal of 'phileas' is to enable html code to be seamlessly
included in python code in a natural looking syntax, without resorting
to templatng language.
I assume you know XIST, ElementTree's ElementMaker, and all those other
ways of generating XML/HTML
On Nov 20, 4:18 am, Peng Yu pengyu...@gmail.com wrote:
I'm wondering if there is something similar to list comprehension for
dict
Yes, but only in Python 3:
{(i, x) for i, x in enumerate('abc')}
{(0, 'a'), (1, 'b'), (2, 'c')}
--
http://mail.python.org/mailman/listinfo/python-list
Peng Yu, 20.11.2009 04:18:
I'm wondering if there is something similar to list comprehension for
dict (please see the example code below).
A list comprehension is an expression that produces a list, e.g.
[ i**2 for i in range(10) ]
Your example below uses a slice assignment.
def
Stefan Behnel, 20.11.2009 09:24:
You can use d.update(...)
It accepts both another dict as well as a generator expression that
produces item tuples, e.g.
d.update( (i, i**2) for i in range(10) )
This also works, BTW:
d = {}
d.update(value=5)
d
{'value': 5}
Stefan
On Thu, Nov 19, 2009 at 8:14 PM, Ethan Furman et...@stoneleaf.us wrote:
No I'm well aware that there is no deep copy of the objects and the lists
only keep references to the objects and in essence they have the same
objects in there. But this doesn't mean they are the same list.
Modifications
Peng Yu wrote:
I'm wondering if there is something similar to list comprehension for
dict (please see the example code below).
Do you mean something like this:
{i:i+1 for i in [1,2,3,4]}
{1: 2, 2: 3, 3: 4, 4: 5}
This works in python3, but not in python2
- Patrick
--
Patrick Sabin patrick.just4...@gmail.com writes:
Peng Yu wrote:
I'm wondering if there is something similar to list comprehension for
dict (please see the example code below).
Do you mean something like this:
{i:i+1 for i in [1,2,3,4]}
{1: 2, 2: 3, 3: 4, 4: 5}
This works in python3, but
Peng Yu wrote:
I'm wondering if there is something similar to list comprehension for
dict (please see the example code below).
Python 3 has list, set, and dict comprehensions.
Don't know about 2.6/7
--
http://mail.python.org/mailman/listinfo/python-list
On Fri, Nov 20, 2009 at 4:18 AM, Peng Yu pengyu...@gmail.com wrote:
I'm wondering if there is something similar to list comprehension for
dict (please see the example code below).
d = dict(one=1, two=2)
print d
def fun(d):#Is there a way similar to list comprehension to change the
Disclaimer: this is for exploring and debugging only. Really.
I can check type or __class__ in the interactive interpreter:
Python 2.6.2 (r262:71600, Jun 16 2009, 16:49:04)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-44)] on linux2
Type help, copyright, credits or license for more information.
import
Aahz wrote:
In article mailman.224.1257933469.2873.python-l...@python.org,
Robert P. J. Day rpj...@crashcourse.ca wrote:
http://groups.google.com/group/unladen-swallow/browse_thread/thread/4edbc406f544643e?pli=1
thoughts?
Haven't seen this elsewhere in the thread:
The prime goal of 'phileas' is to enable html code to be seamlessly
included in python code in a natural looking syntax, without resorting
to templatng language.
see:
http://larry.myerscough.nl/phileas_project/
I intend to submit phileas to the python.announce forum within the
next few
Michele Simionato wrote:
On Nov 20, 4:18 am, Peng Yu pengyu...@gmail.com wrote:
I'm wondering if there is something similar to list comprehension for
dict
Yes, but only in Python 3:
{(i, x) for i, x in enumerate('abc')}
{(0, 'a'), (1, 'b'), (2, 'c')}
Although the 2.x syntax is hardly
Peng Yu wrote:
I'm wondering if there is something similar to list comprehension for
dict (please see the example code below).
d = dict(one=1, two=2)
print d
def fun(d):#Is there a way similar to list comprehension to change the
argument d so that d is changed?
d=dict(three=3)
fun(d)
print
2009/11/20 Michele Simionato michele.simion...@gmail.com:
Yes, but only in Python 3:
{(i, x) for i, x in enumerate('abc')}
{(0, 'a'), (1, 'b'), (2, 'c')}
In Python 2.x, you can do:
dict((i, x) for i, x in enumerate('abc'))
{0: 'a', 1: 'b', 2: 'c'}
(Works in 2.5 - I can't remember when
Hello,
r=re.compile(r'(?:[a-zA-Z]:)([\\/]\w+)+')
r.search(r'c:/tmp/spam/eggs').groups()
('/eggs',)
Obviously, I would like to capture all groups:
('/tmp', '/spam', '/eggs')
But it seems that re captures only the last group. Is there any way to
capture all groups with repeat following it,
On Thu, Nov 19, 2009 at 5:01 PM, Kev Dwyer kevin.p.dw...@gmail.com wrote:
On Thu, 19 Nov 2009 11:28:37 -0400, Victor Subervi wrote:
Hello Victor,
There are some pages on the internet that suggest that this problem my be
caused by a module named email.py (or email.pyc) in your pythonpath.
On Thu, Nov 19, 2009 at 4:42 PM, Alf P. Steinbach al...@start.no wrote:
* Steven D'Aprano:
On Thu, 19 Nov 2009 21:37:17 +0100, Alf P. Steinbach wrote:
The CPython 3.1.1 language reference §4.1 says
Each command typed interactively is a block.
It also says
If a name is bound in a
Hi,
I'm delighted to announce that a new edition of my Python 3 book is
now available in the U.S.
Programming in Python 3 (Second Edition):
A Complete Introduction to the Python Language
ISBN 0321680561
http://www.qtrac.eu/py3book.html
The book has been fully revised and updated and now covers
My proposed no-syntax
IDE *also* gets rid of the need to bother with any programming-language
syntax. I've been proposing it for years, but nobody has shown any
interest
From: Steven D'Aprano st...@remove-this-cybersource.com.au
I'm interested. No-syntax IDE? How is this even possible?
Hi all,
these days i make depikt, a python C-extension for building apps with
gtk. It was a challenge for me and big fun. From its short description
on sourceforge.net:
Python-3 wrappers for GTK. A minimalistic approach - just suited for
GUI-building of apps, in no way for widget-building.
NB: I wondered about about dict(one=1, two=2) - why not d = {one:1,
two:2} ? Since you do not write L=list((1, 2)) either. These composed
objects as basic building blocks make Python code so dense and
beautiful, thus using {} means embracing the language's concept.
--
On 19 nov, 20:18, Steve Howell showel...@yahoo.com wrote:
On Nov 19, 10:53 am, papa hippo hippost...@gmail.com wrote:
The prime goal of 'phileas' is to enable html code to be seamlessly
included in python code in a natural looking syntax, without resorting
to templatng language.
see:
On 20 nov, 09:02, Stefan Behnel stefan...@behnel.de wrote:
papa hippo, 19.11.2009 19:53:
The prime goal of 'phileas' is to enable html code to be seamlessly
included in python code in a natural looking syntax, without resorting
to templatng language.
I assume you know XIST, ElementTree's
DreiJane schrieb:
NB: I wondered about about dict(one=1, two=2) - why not d = {one:1,
two:2} ? Since you do not write L=list((1, 2)) either. These composed
because it's not working.
{one : 1}
Traceback (most recent call last):
File stdin, line 1, in module
NameError: name 'one' is not
On 19 Nov, 01:14, Doug caldwelli...@verizon.net wrote:
Thanks for your help!!
A carriage return in unicode is
u\r
how this is written as bytes is dependent on the encoder.
Don't try to outsmart the UTF-8 codec, it knows how to translate \r
to UTF-8.
Sturla Molden
--
On 10:10 am, mrk...@gmail.com wrote:
Disclaimer: this is for exploring and debugging only. Really.
I can check type or __class__ in the interactive interpreter:
Python 2.6.2 (r262:71600, Jun 16 2009, 16:49:04)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-44)] on linux2
Type help, copyright, credits or
On Fri, 20 Nov 2009 07:58:55 -0500, Victor Subervi wrote:
On Thu, Nov 19, 2009 at 5:01 PM, Kev Dwyer kevin.p.dw...@gmail.com
wrote:
On Thu, 19 Nov 2009 11:28:37 -0400, Victor Subervi wrote:
Hello Victor,
There are some pages on the internet that suggest that this problem my
be caused by
Try looking at the function 'isinstance', so for example
if isinstance(obj, str):
print object is a string..
elif isinstance(obj, int):
print object is an integer..
-Original Message-
From: python-list-bounces+billy.earney=gmail@python.org
Victor Subervi wrote:
On Thu, Nov 19, 2009 at 5:01 PM, Kev Dwyer kevin.p.dw...@gmail.com
mailto:kevin.p.dw...@gmail.com wrote:
On Thu, 19 Nov 2009 11:28:37 -0400, Victor Subervi wrote:
Hello Victor,
There are some pages on the internet that suggest that this problem
my
* Benjamin Kaplan:
On Thu, Nov 19, 2009 at 4:42 PM, Alf P. Steinbach al...@start.no wrote:
* Steven D'Aprano:
I feel that there's still something lacking in my understanding though, like
how/where the really actually just pure local not also global is defined
for function definition, but it's
Hi;
At one point Dennis Lee Bieber helped me with the following slightly
modified code:
#!/usr/bin/python
import sys,os
sys.path.append(os.getcwd())
import MySQLdb
from login import login
import re, string
def printTree(aTree, level=0):
tree = []
for name in sorted(aTree.keys()):
On Fri, Nov 20, 2009 at 11:05 AM, Kev Dwyer kevin.p.dw...@gmail.com wrote:
I ran your script on a CentOS vm (5.2 server 32bit, not quite the same as
yours but also running python 2.4.3). It ran without error. So I
suspect that either you have a rogue email module/package on your machine
or
On 2009-11-20, mk mrk...@gmail.com wrote:
Hello,
r=re.compile(r'(?:[a-zA-Z]:)([\\/]\w+)+')
r.search(r'c:/tmp/spam/eggs').groups()
('/eggs',)
Obviously, I would like to capture all groups:
('/tmp', '/spam', '/eggs')
You'll have to do something else, for example:
s =
On Fri, Nov 20, 2009 at 11:14 AM, Carsten Haese carsten.ha...@gmail.comwrote:
Kevin neglected to mention that the new interpreter session must be
started in the same directory as the one you're in when you run your
testMail.py script. Since he didn't mention that, we can't be sure that
that's
Alf P. Steinbach wrote:
* Benjamin Kaplan:
On Thu, Nov 19, 2009 at 4:42 PM, Alf P. Steinbach al...@start.no wrote:
I feel that there's still something lacking in my understanding
though, like
how/where the really actually just pure local not also global is
defined
for function definition,
mk mrk...@gmail.com wrote in message news:he60ha$iv...@ger.gmane.org...
Hello,
r=re.compile(r'(?:[a-zA-Z]:)([\\/]\w+)+')
r.search(r'c:/tmp/spam/eggs').groups()
('/eggs',)
Obviously, I would like to capture all groups:
('/tmp', '/spam', '/eggs')
But it seems that re captures only the last
On 18 Nov, 22:18, David Bolen db3l@gmail.com wrote:
With that said, for various reasons I still prefer wxPython to Qt, and
at the moment, find wxFormBuilder the best fit for my own designs
(even before the direct Python support, just using XRC).
Personally I prefer wxFormBuilder over
I have a class which holds a connection to a server and a bunch of
services.
In this class I have methods that need to work with that connection
and services.
Right now there are about 50 methods some of which can be quite long.
From an organizational standpoint, I'd like to have method
On Fri, Nov 20, 2009 at 9:15 PM, Victor Subervi victorsube...@gmail.comwrote:
Hi;
At one point Dennis Lee Bieber helped me with the following slightly
modified code:
#!/usr/bin/python
import sys,os
sys.path.append(os.getcwd())
import MySQLdb
from login import login
import re, string
Hi;
I'm building a new server after many years hiatus. I currently can only
serve python pages chown'd to root. How do I change this?
TIA,
Victor
--
http://mail.python.org/mailman/listinfo/python-list
1 - 100 of 201 matches
Mail list logo