python-utmp 0.8
===
python-utmp provides 3 modules to access utmp and wtmp records:
* utmpaccess is lowlevel module written in C, wrapping/emulating glibc
functions
* UTMPCONST provides useful constants
* utmp is module build on top of utmpaccess module, providing object oriented
I'm proud to release version 1.4.9 of Roundup which fixes some bugs:
- fixed action taken in response to invalid GET request
- fixed classic tracker template to submit POST requests when
appropriate
- fix problems with french and german locale files (issue 2550546)
- Run each message of the
We're pleased to announce a new venue for our Python classes.
Python author and trainer Mark Lutz will be teaching a 3-day
Python class on October 20-22, in Sarasota, Florida. Come
spend 3 days mastering Python, and enjoy all that Florida and
its Gulf Coast have to offer while you're here.
Thank you Dennis
I'm using 2 differents editor, which may be the cause of such a mess
in the indentation.
I must admitt that I lazily rely on those (not so bad indeed) editors.
If indentation whas bad they would have tell me
Too bad am i
Won't post misindeted code anymore.
--
Carl Banks wrote:
IOW it's an error-prone mess. It would be better if Python (like C)
treated \ consistently as an escape character. (And in raw strings,
consistently as a literal.)
Agreed. For one thing, if another escape character ever has to be
added to the language, that may change
On Sun, 09 Aug 2009 17:56:55 -0700, Douglas Alan wrote:
Steven D'Aprano wrote:
Why should a backslash in a string literal be an error?
Because in Python, if my friend sees the string foo\xbar\n, he has no
idea whether the \x is an escape sequence, or if it is just the
characters \x,
On Sun, 09 Aug 2009 18:34:14 -0700, Carl Banks wrote:
Why should a backslash in a string literal be an error?
Because the behavior of \ in a string is context-dependent, which means
a reader can't know if \ is a literal character or escape character
without knowing the context, and it means
On Sun, 09 Aug 2009 22:48:31 -0700, AlF wrote:
Steven D'Aprano wrote:
On Sun, 09 Aug 2009 20:43:41 -0700, AlF wrote:
Hi,
what is the best way to reload the module imported using 'from ...
import ...'
Have you tried from ... import ... again?
I have not because of an assumption
On Sun, 09 Aug 2009 23:03:14 -0700, John Nagle wrote:
if another escape character ever has to be
added to the language, that may change the semantics of previously
correct strings.
And that's the only argument in favour of prohibiting non-special
backslash sequences I've seen yet that is
On Aug 10, 2:03 am, Steven D'Aprano
ste...@remove.this.cybersource.com.au wrote:
On Sun, 09 Aug 2009 17:56:55 -0700, Douglas Alan wrote:
Because in Python, if my friend sees the string foo\xbar\n, he has no
idea whether the \x is an escape sequence, or if it is just the
characters \x,
On Aug 9, 11:10 pm, Steven D'Aprano
ste...@remove.this.cybersource.com.au wrote:
On Sun, 09 Aug 2009 18:34:14 -0700, Carl Banks wrote:
Why should a backslash in a string literal be an error?
Because the behavior of \ in a string is context-dependent, which means
a reader can't know if \ is
On Aug 10, 2:10 am, Steven D'Aprano
I've never had any errors caused by this.
But you've seen an error caused by this, in this very discussion.
I.e., foo\xbar.
\xba isn't an escape sequence in any other language that I've used,
which is one reason I made this error... Oh, wait a minute -- it
7stud a écrit :
(snip)
class Wrapper(object):
def __init__(self, obj, func):
self.obj = obj
self.func = func
def __call__(self, *args):
return self.func(*args)
def __getattr__(self, name):
return object.__getattribute__(self.obj, name)
This should
On Mon, 10 Aug 2009 00:37:33 -0700, Carl Banks wrote:
On Aug 9, 11:10 pm, Steven D'Aprano
ste...@remove.this.cybersource.com.au wrote:
On Sun, 09 Aug 2009 18:34:14 -0700, Carl Banks wrote:
Why should a backslash in a string literal be an error?
Because the behavior of \ in a string is
I use Debian Lenny and I tried to install the tarball packaging of the lastest
python realease (http://www.python.org/download/, release 3.1). After read
README file I launch standard Makefile commands. But at the end of make
command, I have got this message:
...
Python build finished, but the
On Mon, 10 Aug 2009 00:57:18 -0700, Douglas Alan wrote:
On Aug 10, 2:10 am, Steven D'Aprano
I've never had any errors caused by this.
But you've seen an error caused by this, in this very discussion. I.e.,
foo\xbar.
Your complaint is that invalid escapes like \y resolve to a literal
250KB :)
So why do you bother?
Its just HTTP1.1 has everything for making ftp like file transfers
possible.
When I write it to a file then I am back at square one because I still
need to load it completely to get it into a blob.
Well, the blob is nothing but datat in the file-system. If
Piet van Oostrum wrote:
[snip]
Thanks for your detailed reply!
- Fencer
--
http://mail.python.org/mailman/listinfo/python-list
Douglas Alan darkwate...@gmail.com wrote:
\xba isn't an escape sequence in any other language that I've used,
which is one reason I made this error... Oh, wait a minute -- it *is*
an escape sequence in JavaScript. But in JavaScript, while \xba is a
special character, \xb is synonymous with
Steven D'Aprano ste...@remove.this.cybersource.com.au wrote:
Or perhaps they should follow bash's lead, and map \C to C for every
character. If there were no special escapes at all, Windows
programmers wouldn't keep getting burnt when they write
C:\\Documents\today\foo and end up with
Frédéric Léger frederic.le...@contactoffice.net wrote:
I use Debian Lenny and I tried to install the tarball packaging of the
lastest python realease (http://www.python.org/download/, release
3.1). After read README file I launch standard Makefile commands. But
at the end of make command, I
Here I attached the setup.py and setup.cfg file.This is for your reference.
I have changed the exception line.
Even though I got the following error while running the python setup.py
build
running build
running build_py
running build_ext
error: No such file or directory
Thank you both for the explanation.
As a matter of fact RTFM doesn't -always- help. Sometimes I'm just
thick and I can read the manual 10 times and still not understand, as
it happened on this particular matter. Your contribution focused my
attention on the right bit of the manual which I somehow
On Mon, 10 Aug 2009 00:32:30 -0700, Douglas Alan wrote:
In C++, if I know that the code I'm looking at compiles, then I never
need worry that I've misinterpreted what a string literal means.
If you don't know what your string literals are, you don't know what your
program does. You can't
Stefan Behnel wrote:
Diez B. Roggisch wrote:
I'm trying to build a Cython-extension as Egg.
However, this doesn't work - I can either use distutils to build the
extension, creating a myextension.c-file on the way.
If that's there, I can use setuptools to build the egg.
But when I
Dear Group,
I am using Python26 on WindowsXP with service pack2. My GUI is IDLE.
I am using Hindi resources and get nice output like:
एक
where I can use all the re functions and other functions without doing
any transliteration,etc.
I was trying to use Bengali but it is giving me output like:
Hi,
A html page contains 'anchor' elements with 'href' attribute having
a semicolon in the url , while fetching the page using
urllib2.urlopen, all such href's containing 'semicolons' are
truncated.
For example the href
Steven D'Aprano wrote:
On Sun, 09 Aug 2009 17:56:55 -0700, Douglas Alan wrote:
[snip]
My point of view is that
every language has *some* warts; Python just has a bit fewer than most.
It would have been nice, I should think, if this wart had been fixed
in Python 3, as I do consider it to be a
joy99 wrote:
[...] it is giving me output like:
'\xef\xbb\xbf\xe0\xa6\x85\xe0\xa6\xa8\xe0\xa7\x87\xe0\xa6\x95'
These three bytes encode the byte-order marker (BOM, Unicode uFEFF) as
UTF-8, followed by codepoint u09a8 (look it up on unicode.org what that
is).
In any case, if
On Aug 10, 4:39 pm, jitu nair.jiten...@gmail.com wrote:
Hi,
A html page contains 'anchor' elements with 'href' attribute having
a semicolon in the url , while fetching the page using
urllib2.urlopen, all such href's containing 'semicolons' are
truncated.
For example the
Hi
I am trying to create a COM object of picalo functionalities so that I can use
it into my VB application but I am getting the following error [Errno 9] bad
file descriptor.
Can you please suggest me what is supposed to do to avoid this problem?
This is my code
class Test(object):
On Aug 8, 5:50 pm, Pouya Khankhanian kpo...@gmail.com wrote:
On Aug 8, 11:49 am, Sharath sharath20...@gmail.com wrote:
On Aug 8, 11:33 am, Pouya Khankhanian kpo...@gmail.com wrote:
On Aug 8, 11:17 am, Martin v. Löwis mar...@v.loewis.de wrote:
This is probably a stupid question, but
On Fri, Aug 7, 2009 at 2:08 PM, Tim Golden m...@timgolden.me.uk wrote:
Kevin Holleran wrote:
Long story short, I am using _winreg to do this.
hKey = _winreg.OpenKey (keyPath, path, 0, _winreg.KEY_SET_VALUE)
value,type = _winreg.QueryValueEx(hKey, item)
if (value == wrongValue):
Hello,
I was wondering if it possible to specify a compression level when I
tar/gzip a file in Python using the tarfile module. I would like to
specify the highest (9) compression level for gzip.
Ideally:
t = tarfile.open(tar_file_name+'.tar.gz', mode='w:gz:9')
When I create a simple tar
On Mon, Aug 10, 2009 at 10:41 PM, Christopher nadiasver...@gmail.comwrote:
Actually, it appears to be down again.
Nope, works for me, just a little slow.
-Xav
--
http://mail.python.org/mailman/listinfo/python-list
On Mon, Aug 10, 2009 at 8:50 AM, Esmailebo...@hotmail.com wrote:
Hello,
I was wondering if it possible to specify a compression level when I
tar/gzip a file in Python using the tarfile module. I would like to
specify the highest (9) compression level for gzip.
Ideally:
t =
Benjamin Kaplan wrote:
On Mon, Aug 10, 2009 at 8:50 AM, Esmailebo...@hotmail.com wrote:
I was wondering if it possible to specify a compression level when I
tar/gzip a file in Python using the tarfile module. I would like to
specify the highest (9) compression level for gzip.
Ideally:
t =
On Mon, Aug 10, 2009 at 9:37 AM, Esmailebo...@hotmail.com wrote:
Benjamin Kaplan wrote:
On Mon, Aug 10, 2009 at 8:50 AM, Esmailebo...@hotmail.com wrote:
I was wondering if it possible to specify a compression level when I
tar/gzip a file in Python using the tarfile module. I would like to
On Mon, Aug 10, 2009 at 08:50:21AM -0400, Esmail wrote:
I was wondering if it possible to specify a compression level when I
tar/gzip a file in Python using the tarfile module. I would like to
specify the highest (9) compression level for gzip.
tarfile uses gzip.GzipFile() internally,
On Aug 8, 8:48 am, MRAB pyt...@mrabarnett.plus.com wrote:
...(snip)
Bothwww.python.organd svn.python.org are down. They're hosted on
the same machine, and it seems to have run into disk problems and
hasn't rebooted even after power-cycling. Thomas Wouters will be
visiting the machine
On Aug 9, 10:02 pm, David Lyon david.l...@preisshare.net wrote:
...
Before you do that, you should clearly work out in your own mind
how you think things need to improve. It's not good enough just
saying this or that is bad without having specific ideas on what
needs to change.
'''
He did.
r wrote:
On Aug 8, 8:48 am, MRAB pyt...@mrabarnett.plus.com wrote:
...(snip)
Bothwww.python.organd svn.python.org are down. They're hosted on
the same machine, and it seems to have run into disk problems and
hasn't rebooted even after power-cycling. Thomas Wouters will be
visiting the machine
On Aug 10, 4:37 am, Steven D'Aprano
There is at least one good reason for preferring an error, namely that it
allows Python to introduce new escape codes without going through a long,
slow process. But the rest of these complaints are terribly unconvincing.
What about:
o Beautiful is
On Aug 7, 4:39 pm, horos11 horo...@gmail.com wrote:
ps - I just realized that it isn't enough to do:
python -c 'import /path/to/script'
since that actually executes any statement inside of the script
(wheras all I want to do is check syntax)
So - let me reprhase that - exactly how can you
...that is the question!
I have a module which exports a type. It also exports a function that
returns instances of that type. Now, the reason for my question is that
while users will directly use instances of the type, they will not create
instances of the type themselves.
So, the type is a
Hi Gabriel
Thanks for the detailed and useful reply.
On Aug 7, 1:37 am, Gabriel Genellina gagsl-...@yahoo.com.ar wrote:
En Thu, 06 Aug 2009 12:49:30 -0300, IronyOfLife mydevfor...@gmail.com
escribió:
On Aug 5, 4:18 pm, Gabriel Genellina gagsl-...@yahoo.com.ar wrote:
En Tue, 04 Aug
Benjamin Kaplan wrote:
I can't find tarfile.gzopen in the tarfile docs, I'm looking here:
http://docs.python.org/library/tarfile.html
Am I looking at the wrong page?
My mistake. It isn't a function of the tarfile module, it's a class
method of tarfile.TarFile. I was looking at the
Lokesh Maremalla wrote:
snip
Code:
mlogger = logging.getLogger(simpleExample)
def a_view(request):
mlogger.debug(a_view called)
if request.method== POST :
mlogger.debug(post function)
else:
mlogger.debug(serve function)
Execution:
step1: Executed the code and got the
Douglas Alan wrote:
So, what's the one obvious right way to express foo\zbar? Is it
foo\zbar
or
foo\\zbar
And if it's the latter, what possible benefit is there in allowing the
former? And if it's the former, why does Python echo the latter?
Actually, if we were designing from fresh
10-08-2009 Ulrich Eckhardt eckha...@satorlaser.com wrote:
So, the type is a part of the public API, but its constructor is not.
Should
I mark the type as private (with a leading underscore) or not?
IMHO you shouldn't (i.e. name should be marked public) because of
possible usage of e.g.
On 7 Aug, 16:02, MRAB pyt...@mrabarnett.plus.com wrote:
ma3mju wrote:
On 3 Aug, 09:36, ma3mju matt.u...@googlemail.com wrote:
On 2 Aug, 21:49, Piet van Oostrum p...@cs.uu.nl wrote:
MRAB pyt...@mrabarnett.plus.com (M) wrote:
M I wonder whether one of the workers is raising an exception,
Is there maybe a method bounded to the class SpinCtrl() that could
hide the widget. One that is maybe also implemented in any other
control.
self.spcKvadDo = wx.SpinCtrl(id=-1, initial=0, max=100, min=0,
name='spcKvadDo', parent=self.pnlFilteri, pos=wx.Point(10, 10),
size=wx.Size(118, 21),
We're pleased to announce a new venue for our Python classes.
Python author and trainer Mark Lutz will be teaching a 3-day
Python class on October 20-22, in Sarasota, Florida. Come
spend 3 days mastering Python, and enjoy all that Florida and
its Gulf Coast have to offer while you're here.
This
Hi Lars,
Lars Gustäbel wrote:
How much smaller is it? I did a test with a recent Linux kernel source tree
which made an archive of 337MB. Command-line gzip was ahead of Python's
GzipFile() by just 20200 bytes(!) with an archive of about 74MB.
Is the only way to accomplish the higher rate to
Steven D'Aprano ste...@remove.this.cybersource.com.au (SD) wrote:
SD On Sun, 09 Aug 2009 22:48:31 -0700, AlF wrote:
Steven D'Aprano wrote:
On Sun, 09 Aug 2009 20:43:41 -0700, AlF wrote:
Hi,
what is the best way to reload the module imported using 'from ...
import ...'
Have you
Hi,
I'm a quite fresh python programmer, (6 Month python experience).
Today I found something I absolotly don'nt understand:
given the following function:
def test_effect(class_id=None,class_ids=[]):
if class_id is not None:
if class_id not in class_ids:
Cornelius Keller wrote:
Hi,
I'm a quite fresh python programmer, (6 Month python experience).
Today I found something I absolotly don'nt understand:
given the following function:
def test_effect(class_id=None,class_ids=[]):
if class_id is not None:
if class_id not in
On Aug 9, 11:02 pm, David Lyon david.l...@preisshare.net wrote:
Since you're talking about documentation, which is a part of python,
don't you think you should be discussing it on python-dev ?
Yea, them's be a friendly bunch to noob ideas ;). Hey i got a better
idea, lets go to the IRS and see
On Aug 10, 10:58 am, Scott David Daniels scott.dani...@acm.org
wrote:
The string rules reflect C's rules, and I see little
excuse for trying to change them now.
No they don't. Or at least not C++'s rules. C++ behaves exactly as I
should like.
(Or at least g++ does. Or rather *almost* as I
On Aug 9, 9:41 am, Steven D'Aprano st...@remove-this-
cybersource.com.au wrote:
On Sun, 09 Aug 2009 06:13:38 -0700,samwysewrote:
Here's what I have so far:
import urllib
class AppURLopener(urllib.FancyURLopener):
version = App/1.7
referrer = None
def __init__(self,
ma3mju wrote:
On 7 Aug, 16:02, MRAB pyt...@mrabarnett.plus.com wrote:
ma3mju wrote:
On 3 Aug, 09:36, ma3mju matt.u...@googlemail.com wrote:
On 2 Aug, 21:49, Piet van Oostrum p...@cs.uu.nl wrote:
MRAB pyt...@mrabarnett.plus.com (M) wrote:
M I wonder whether one of the workers is raising an
On Aug 10, 5:12 pm, Diez B. Roggisch de...@nospam.web.de wrote:
Cornelius Keller wrote:
Hi,
I'm a quite fresh python programmer, (6 Month python experience).
Today I found something I absolotly don'nt understand:
given the following function:
def
On 10 Aug., 17:12, Diez B. Roggisch de...@nospam.web.de wrote:
Cornelius Keller wrote:
[snip]
http://effbot.org/zone/default-values.htm
Diez
Ok thank you.
I' understand now why.
I still think this is very confusing, because default values don't
behave like most people would expect without
Now I have this patch applied to the M2Crypto SVN branch
--
http://mail.python.org/mailman/listinfo/python-list
joy99 subhakolkata1...@gmail.com (j) wrote:
j Dear Group,
j I am using Python26 on WindowsXP with service pack2. My GUI is IDLE.
j I am using Hindi resources and get nice output like:
j एक
j where I can use all the re functions and other functions without doing
j any transliteration,etc.
j I was
Kiki wrote:
Thank you Dennis
I'm using 2 differents editor, which may be the cause of such a mess
in the indentation.
I must admitt that I lazily rely on those (not so bad indeed) editors.
If indentation whas bad they would have tell me
Too bad am i
Won't post misindeted code anymore.
On Aug 10, 9:13 am, MRAB pyt...@mrabarnett.plus.com wrote:
r wrote:
On Aug 8, 8:48 am, MRAB pyt...@mrabarnett.plus.com wrote:
...(snip)
Bothwww.python.organdsvn.python.org are down. They're hosted on
the same machine, and it seems to have run into disk problems and
hasn't rebooted even
Hello once again
Now I have the extension-patch [0] applied to the M2Crypto SVN branch
(revision 704). Creating a root and an subRoot CA certificate now works
great including the SKID/AKID extensions.
I am also able to verify those created certificates using:
$ openssl verify -CAfile
geturl - this returns the real URL of the page fetched. This is
useful because urlopen (or the opener object used) may have followed a
redirect. The URL of the page fetched may not be the same as the URL
requested. from
http://www.voidspace.org.uk/python/articles/urllib2.shtml#info-and-geturl
It
Francesco Bochicchio wrote:
On Aug 10, 5:12 pm, Diez B. Roggisch de...@nospam.web.de wrote:
Cornelius Keller wrote:
Hi,
I'm a quite fresh python programmer, (6 Month python experience).
Today I found something I absolotly don'nt understand:
given the following function:
def
On Aug 10, 10:39 am, Diez B. Roggisch de...@nospam.web.de wrote:
250KB :)
So why do you bother?
Its just HTTP1.1 has everything for making ftp like file transfers
possible.
When I write it to a file then I am back at square one because I still
need to load it completely to get it into
Cornelius Keller wrote:
[snip]
I still think this is very confusing, because default values don't
behave like most people would expect without reading the docs.
- Cornelius
Why would you expect to become a good programmer of _any_ language
without reading its docs?
~Ethan~
--
What about using the reimport library?
http://code.google.com/p/reimport/
Cheers,
William
From: AlF spamgrinder.tryla...@ggmail.com
To: python-list@python.org
Sent: Monday, August 10, 2009 1:48:31 AM
Subject: Re: reloading the module imported as 'from ...
On Aug 10, 7:37 am, Ulrich Eckhardt eckha...@satorlaser.com wrote:
...that is the question!
I have a module which exports a type. It also exports a function that
returns instances of that type. Now, the reason for my question is that
while users will directly use instances of the type, they
On Aug 10, 4:41 am, MRAB pyt...@mrabarnett.plus.com wrote:
Steven D'Aprano wrote:
On Sun, 09 Aug 2009 17:56:55 -0700, Douglas Alan wrote:
[snip]
My point of view is that
every language has *some* warts; Python just has a bit fewer than most.
It would have been nice, I should think, if
I have a cmd.py-derived program (with a wxPython GUI) and want to
execute python statements for lines that are not my own special commands.
So basically it's either:
def do_somecommand(self,arg):
...
or
def default(self,arg):
exec arg in globals(),self.cmdlocals
(where
On Aug 10, 1:37 am, Steven D'Aprano
ste...@remove.this.cybersource.com.au wrote:
On Mon, 10 Aug 2009 00:37:33 -0700, Carl Banks wrote:
On Aug 9, 11:10 pm, Steven D'Aprano
ste...@remove.this.cybersource.com.au wrote:
On Sun, 09 Aug 2009 18:34:14 -0700, Carl Banks wrote:
Why should a
Are there issues with the python documentation servers?
http://docs.python.org/
The site has been really slow to respond all weekend.
--
http://mail.python.org/mailman/listinfo/python-list
Il Mon, 10 Aug 2009 07:55:42 -0700 (PDT), azrael ha scritto:
Is there maybe a method bounded to the class SpinCtrl() that could
hide the widget. One that is maybe also implemented in any other
control.
AFAIK, any widget can be made invisibile calling the .Show(False) method of
the container
What you're trying to do and what's not working isn't
entirely clear to me.
But if I had a wxPython application and I wanted to
execute user input (note the _if_) I'd just pop up a window
(I forget how ShowModal is spelled in wx right now)
with a text box and an Execute button and a Cancel
On Aug 9, 9:46 pm, Mensanator mensana...@aol.com wrote:
On Aug 9, 3:26 pm, Lee Harr miss...@hotmail.com wrote:
pybotwar is a fun and educational game where players
create computer programs to control simulated robots
to compete in a battle arena.
http://pybotwar.googlecode.com/
Why is
On Mon, 2009-08-10 at 08:46 -0700, Cornelius Keller wrote:
On 10 Aug., 17:12, Diez B. Roggisch de...@nospam.web.de wrote:
Cornelius Keller wrote:
[snip]
http://effbot.org/zone/default-values.htm
Diez
Ok thank you.
I' understand now why.
I still think this is very confusing,
[snip]
r slayer of the galactic-ly stupid!
Can I assume from this that you intend killing yourself, on the grounds
that some 10 days ago you couldn't successfully use a windows compiled
help file?
--
Kindest regards.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
On Aug 10, 12:53 pm, Roy Hyunjin Han
starsareblueandfara...@gmail.com wrote:
Are there issues with the python documentation servers?http://docs.python.org/
The site has been really slow to respond all weekend.
try this thread
jitu nair.jiten...@gmail.com (j) wrote:
j Hi,
j A html page contains 'anchor' elements with 'href' attribute having
j a semicolon in the url , while fetching the page using
j urllib2.urlopen, all such href's containing 'semicolons' are
j truncated.
j For example the href
MRAB pyt...@mrabarnett.plus.com (M) wrote:
M r wrote:
On Aug 8, 8:48 am, MRAB pyt...@mrabarnett.plus.com wrote:
...(snip)
Bothwww.python.organd svn.python.org are down. They're hosted on
the same machine, and it seems to have run into disk problems and
hasn't rebooted even after
Kee Nethery wrote:
As someone trying to learn the language I want to say that the tone on
this list towards people who are trying to learn Python feels like it
has become anti-newbies.
Learning a new language is difficult enough without seeing other
newbies getting shamed for not knowing
On Aug 10, 11:13 am, Ethan Furman et...@stoneleaf.us wrote:
(snip)
As someone who relies heavily on the docs I will also say that the idea
of giving the ability to modify the official documentation to somebody
who is /learning/ the language is, quite frankly, terrifying.
(snip)
Ethan,
I think
On Aug 10, 1:35 pm, r rt8...@gmail.com wrote:
Sure, there is no documentation
http://www.mensanator.com/mensanator/PythonTurtle/paper.htm
--
http://mail.python.org/mailman/listinfo/python-list
Thanks for your comment.
The purpose of the application is to automate the manipulation of large
numbers of files. For automation I want to be able to have scripts that
I can use for various purposes.
On input, cmd.py handles calling do_ methods for known commands;
for the rest I want
Is there an easy way to merge two numpy arrays with different rank
sizes (terminology?). I want to make a single array by concatenating
two arrays along a given direction and filling the excess cells with a
dummy variable. numpy concatenate works well as long as the two
arrays have the same
Christian Heimes schrieb:
Johannes Janssen wrote:
class A(object):
def __init__(self, mod=__name__):
self.mod = mod
won't work. In this case mod would always be foo.
You have to inspect the stack in order to get the module of the
caller. The implementation of
In article 5a744bd6-6b9a-4f46-97c1-bb7fd65b8...@l5g2000pra.googlegroups.com,
Michael Mossey michaelmos...@gmail.com wrote:
I have a simple application that needs one thread to manage networking
in addition to the main thread that does the main job. It's not
working right. I know hardly anything
On Mon, 10 Aug 2009 09:13:34 -0700, Ethan Furman et...@stoneleaf.us
wrote:
As someone who relies heavily on the docs I will also say that the idea
of giving the ability to modify the official documentation to somebody
who is /learning/ the language is, quite frankly, terrifying.
What is
r rt8...@gmail.com writes:
Whilst writing any tutorial on any subject matter please remember, you
may be an expert, but mostly *non-experts* will be reading your
material... pssft, this may come as a surprise, but tutorials are
meant for *NON-EXPERTS*!
I think the Python tutorial is aimed at
En Mon, 10 Aug 2009 11:48:31 -0300, IronyOfLife mydevfor...@gmail.com
escribió:
Why different results in IIS and appweb? [...]
This is fairly easy to explain. When I configured IIS to execute
python scripts, as per the documentation I pass two command line
arguments. Appweb works this way. It
Hi,
kind of a newbie here, but I have two questions that are probably pretty simple.
1. I need to get rid of duplicate values that are associated with different
keys in a dictionary. For example I have the following code.
s={}
s[0]=[10,2,3]
s[10]=[22,23,24]
s[20]=[45,5]
s[30]=[2,4]
On Mon, 2009-08-10 at 22:11 -0400, Krishna Pacifici wrote:
Hi,
kind of a newbie here, but I have two questions that are probably
pretty simple.
1. I need to get rid of duplicate values that are associated with
different keys in a dictionary. For example I have the following
code.
s={}
On Mon, 10 Aug 2009 08:21:03 -0700, Douglas Alan wrote:
But you're right, it's too late to change this now.
Not really. There is a procedure for making non-backwards compatible
changes. If you care deeply enough about this, you could agitate for
Python 3.2 to raise a PendingDepreciation
On Mon, 10 Aug 2009 16:37:25 +0200, Ulrich Eckhardt wrote:
...that is the question!
I have a module which exports a type. It also exports a function that
returns instances of that type. Now, the reason for my question is that
while users will directly use instances of the type, they will
1 - 100 of 142 matches
Mail list logo