On Fri, Nov 25, 2011 at 3:49 PM, Dennis Lee Bieber
wrote:
> On 25 Nov 2011 00:04:04 GMT, Steven D'Aprano
> declaimed the following in
> gmane.comp.python.general:
>
>
>> My Linux system includes compilers or interpreters for C, Pascal,
>> Haskell, Forth, Python, Ruby, PHP, Javascript, Java, bash,
I'm pleased to announce a new release of Mailinglogger.
Mailinglogger provides two handlers for the standard python
logging framework that enable log entries to be emailed either as the
entries are logged or as a summary at the end of the running process.
The handlers have the following features
On Fri, Nov 25, 2011 at 5:52 PM, ZhouPeng wrote:
> I am sure listen is not None and can be accessed properly.
>
> But print bool(listen) is False
> if not listen is True
Casting something to boolean follows strict rules derived from the
notion that emptiness is false and nonemptiness is true. Fo
On 25/11/2011 03:47, alex23 wrote:
Tim Golden wrote:
The interpreter inherits the command shell's history function:
Open a cmd window and then a Python session. Do some stuff.
Ctrl-Z to exit to the surrounding cmd window.
Do some random cmd stuff: dir, cd, etc.
Start a second Python session.
On Fri, 25 Nov 2011 14:52:25 +0800, ZhouPeng wrote:
> Hi all,
>
> In my program, I get a listen element by listen =
> graphics.find("listen")
What is a listen element? It is not a standard Python object. What
library is it from?
> print listen is print type listen is 'instance'> I am sure l
ZhouPeng wrote:
> In my program, I get a listen element by
> listen = graphics.find("listen")
>
> print listen is
> print type listen is
> I am sure listen is not None and can be accessed properly.
>
> But print bool(listen) is False
> if not listen is True
bool(listen) is False here means t
Thanks all.
I am a c/c++ programer before,
So I directly think it is the same roughly between
if not obj: (in python) and if (!obj) {(in c/c++)
/ if obj: (in python) and if (obj) {(in c/c++)
That if obj is not None, 'if obj:' goes true branch, 'if not obj:'
goes false branch,
and I don't need t
On Fri, Nov 25, 2011 at 5:08 AM, Matt Joiner wrote:
> I haven't heard of you before, but feel like I've missed out on something.
>
> Do you (or someone else) care to link to some of your more contentious work?
Ignore him, he's a troll with an unjustly inflated ego.
--
http://mail.python.org/mail
On Fri, Nov 25, 2011 at 9:09 PM, ZhouPeng wrote:
> Thanks all.
> if not obj: (in python) and if (!obj) {(in c/c++)
>
> / if obj: (in python) and if (obj) {(in c/c++)
>
> Yea, you are right.
> And I got it later, when I run my program in python 2.7.2,
> It complains:
> FutureWarning: The behavior
On Nov 22, 1:37 pm, Alan Meyer wrote:
> On 11/20/2011 7:46 PM, Travis Parks wrote:
>
> > Hello:
>
> > I am currently working on designing a new programming language. ...
>
> I have great respect for people who take on projects like this.
>
> Your chances of popularizing the language are small. Th
On Fri, Nov 25, 2011 at 9:55 PM, Travis Parks wrote:
> I have been thinking about compiling into a
> language like C++ or C instead of assembler for my first time through.
Yep, or any other language you feel like using as an intermediate. Or
alternatively, just start with an interpreter - whateve
Given a project with many eggs, I would like to make it easy to have all
the version numbers synchronized
to the upper level SVN version.
So for example I might have svn tags
0.1,
0.2
and a development version.
The development version should get version -dev, and the others 0.1 and 0.2
I found
Am 25.11.2011 04:49, schrieb alex23:
On Nov 24, 6:51 pm, Tim Golden wrote:
The Ctrl-Z thing is what *exits* the interpreter on Windows
(a la Ctrl-D on Linux).
With ActivePython, Ctrl-D works as well, which is a godsend as I'm
constantly working across Windows& linux.
In short - on Windows,
In a Makefile (or sometimes inside python) I need the path to the
root of the Python standard lib folder used by "env python".
e.g. /usr/lib/python2.6/ orC:\Python27\Lib\
what is the best/canonical way to get that?
--
http://mail.python.org/mailman/listinfo/python-list
On 25/11/2011 10:37, Ulrich Eckhardt wrote:
Am 25.11.2011 04:49, schrieb alex23:
On Nov 24, 6:51 pm, Tim Golden wrote:
The Ctrl-Z thing is what *exits* the interpreter on Windows
(a la Ctrl-D on Linux).
With ActivePython, Ctrl-D works as well, which is a godsend as I'm
constantly working acro
Hi,
I want to change the file creation timestamp using python, but I can not
find a solution to do it.
I know the way to change the file creation timestamp in C under Windows,
but I want to change it using python.
I really need help!
Regards,
Liu Zhenhai
--
http://mail.python.org/mailman/listinfo
Hi everyone,
in my project I have the following directory structure:
plugins
|
-- wav_plug
|
-- __init__.py
-- WavPlug.py
-- mp3_plug
|
-- __init__.py
-- Mp3Plug.py
...
-- etc_plug
|
-- __init__.py
On 11/25/2011 06:24 AM, user wrote:
In a Makefile (or sometimes inside python) I need the path to the root
of the Python standard lib folder used by "env python".
e.g. /usr/lib/python2.6/ orC:\Python27\Lib\
what is the best/canonical way to get that?
You could look at sys.executable.
On 11/25/2011 08:00 AM, Massi wrote:
Hi everyone,
in my project I have the following directory structure:
plugins
|
-- wav_plug
|
-- __init__.py
-- WavPlug.py
-- mp3_plug
|
-- __init__.py
-- Mp3Plug.py
...
--
On Fri, Nov 25, 2011 at 6:24 AM, user wrote:
> In a Makefile (or sometimes inside python) I need the path to the root of
> the Python standard lib folder used by "env python".
>
> e.g. /usr/lib/python2.6/ or C:\Python27\Lib\
>
> what is the best/canonical way to get that?
This should get yo
Massi wrote:
Hi everyone,
in my project I have the following directory structure:
plugins
|
-- wav_plug
|
-- __init__.py
-- WavPlug.py
-- mp3_plug
|
-- __init__.py
-- Mp3Plug.py
...
-- etc_plug
|
--
import os
import time
from stat import *
#returns a list of all the files on the current directory
files = os.listdir('.')
for f in files:
#my folder has some jpegs and raw images
if f.lower().endswith('jpg') or f.lower().endswith('crw'):
st = os.stat(f)
atime = st[ST_ATIME] #access t
I'm converting JSON data to XML using the standard library's json and
xml.dom.minidom modules. I get the input this way:
input_source = codecs.open(input_file, 'rb', encoding='UTF-8', errors='replace')
big_json = json.load(input_source)
input_source.close()
Then I recurse through the contents of
On 25-11-2011 12:15, Andrea Crotti wrote:
> Given a project with many eggs, I would like to make it easy to have all the
> version
> numbers synchronized
> to the upper level SVN version.
>
> So for example I might have svn tags
> 0.1,
> 0.2
> and a development version.
> The development version
Find a new release of python-ldap:
http://pypi.python.org/pypi/python-ldap/2.4.4
python-ldap provides an object-oriented API to access LDAP directory
servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for
that purpose. Additionally it contains modules for other LDAP-related
stu
On Mon, 14 Nov 2011 21:55:43 +1100, Chris Angelico wrote:
> On Mon, Nov 14, 2011 at 9:41 PM, Tracubik wrote:
>> Hi all,
>> i'm developing a new program.
>> Mission: learn a bit of database management
>
> If your goal is to learn about databasing, then I strongly recommend a
> real database engin
On Sat, Nov 26, 2011 at 2:44 AM, HoneyMonster wrote:
> Just for information, PostgreSQL works very well indeed with Psycopg (a
> PostgreSQL adapter for Python), but for learning purposes straightforward
> PSQL is best to start with.
Thanks for that. I've used PgSQL from C++ (using libpqxx), PHP,
You can try
PYLIB = $(shell python -c 'import distutils.sysconfig; print
distutils.sysconfig.get_python_lib()')
(or pack the long command line in a script).
--
http://mail.python.org/mailman/listinfo/python-list
On Nov 24, 10:49 pm, Dennis Lee Bieber wrote:
> On 25 Nov 2011 00:16:06 GMT, Steven D'Aprano
> declaimed the following in
> gmane.comp.python.general:
>
> > As far as I can tell, nobody running the 64-bit version of Windows 7 has
> > chimed in to either confirm or refute W. eWatson's claim that I
On Nov 14, 3:41 pm, Tracubik wrote:
> Hi all,
> i'm developing a new program.
> Mission: learn a bit of database management
> Idea: create a simple, 1 window program that show me a db of movies i've
> seen with few (<10) fields (actors, name, year etc)
> technologies i'll use: python + gtk
> db: t
In article
<581dab49-e6b0-4fea-915c-4a41fa887...@p7g2000pre.googlegroups.com>,
rusi wrote:
> First you must figure out how to structure data -- jargon is
> normalization. After that you can look at transactions, ACID,
> distribution and all the other good stuff.
And when you're all done with
On Nov 21, 5:46 am, Travis Parks wrote:
> Hello:
>
> I am currently working on designing a new programming language. It is
> a compiled language, but I still want to use Python as a reference.
> Python has a lot of similarities to my language, such as indentation
> for code blocks, lambdas, non-lo
On 25/11/2011 10:13, Noah Hall wrote:
On Fri, Nov 25, 2011 at 5:08 AM, Matt Joiner wrote:
I haven't heard of you before, but feel like I've missed out on something.
Do you (or someone else) care to link to some of your more contentious work?
Ignore him, he's a troll with an unjustly inflated
On 22/11/2011 18:32, Rob Richardson wrote:
My company has been using the log4py library for a long time. A co-worker
recently installed Python 3.2, and log4py will no longer compile. (OK, I know
that's the wrong word, but you know what I mean.) What logging package should
be used now?
How
Am 25.11.2011 01:16, schrieb Steven D'Aprano:
As far as I can tell, nobody running the 64-bit version of Windows 7 has
chimed in to either confirm or refute W. eWatson's claim that IDLE
doesn't show up, so we have no way of telling whether it doesn't show up
due to a lack in the installer, or be
> Except that, intriguingly, I'm also using an ActiveState distro
> and it neither adds Ctrl-D nor prevents history. But I'm
> fairly sure that pyreadline does both of those things.
>
> TJG
In python I can spawn a process to run python byte code that will produce a
file with results. Easy to av
Hi Alec
Thanks for your help.
I want to change the creation timestamp. the code that you give is to
change the modification and access time.
I already find a solution using pywin32's win32file module
import win32file
filehandle = win32file.CreateFile(file_name, win32file.GENERIC_WRITE,
On 25.11.2011 05:49, Dennis Lee Bieber wrote:
On Fri, 25 Nov 2011 01:32:08 +0100, Alexander Kapps
declaimed the following in gmane.comp.python.general:
The main difference here is, that Linux makes it easy to seperate
administrative accounts from end-user accounts,
So does Win7... He
On Nov 25, 6:58 pm, Tim Golden wrote:
> Do you have the pyreadline module installed? ISTR that that takes
> over from the standard cmd processing...
I'm pretty sure I do.
It's really not an issue, though, as I tend to stick to linux &
iPython where possible :)
--
http://mail.python.org/mailman
On Nov 25, 11:00 pm, Massi wrote:
> plugins
> |
> -- wav_plug
> |
> -- __init__.py
> -- WavPlug.py
> -- mp3_plug
> |
> -- __init__.py
> -- Mp3Plug.py
> ...
> -- etc_plug
> |
> -- __init__.py
>
I'm looking at a variation on this theme. I currently use
Flex/ActionScript for client side work, but there is pressure to move
toward HTML5+Javascript and or iOS. Since I'm an old hand at Python, I
was wondering if there is a way to use it to model client side logic,
then generate the javascript
On Nov 25, 11:52 am, Sibylle Koczian wrote:
> Am 25.11.2011 01:16, schrieb Steven D'Aprano:
>
> > As far as I can tell, nobody running the 64-bit version of Windows 7 has
> > chimed in to either confirm or refute W. eWatson's claim that IDLE
> > doesn't show up, so we have no way of telling whethe
On Nov 25, 10:16 pm, Roy Smith wrote:
> In article
> <581dab49-e6b0-4fea-915c-4a41fa887...@p7g2000pre.googlegroups.com>,
>
> rusi wrote:
> > First you must figure out how to structure data -- jargon is
> > normalization. After that you can look at transactions, ACID,
> > distribution and all the
On Sat, 26 Nov 2011 00:51:34 +1100, Alec Taylor wrote:
> import os
> import time
> from stat import *
>
> #returns a list of all the files on the current directory files =
> os.listdir('.')
>
> for f in files:
> #my folder has some jpegs and raw images if f.lower().endswith('jpg')
> or f.low
44 matches
Mail list logo