Places are still available at the following courses:
September 13 and 14, 2008
Python für Wissenschaftler und Ingenieure (in German)
http://www.python-academy.de/Kurse/python_kurs_wissenschaftler.html
October 6 and 7, 2008
Python Training for Cheminformatics (by Andrew Dalke)
In Python 2.5.2, I notice that, in the interpreter or in a script, I can exit
with:
exit()
But I don't see exit() mentioned as a built-in function; rather the Python
Library Reference says we should use sys.exit(). Also, the reference says
sys.exit() is like raising SystemExit. But so is
Gary Robinson wrote:
In Python 2.5.2, I notice that, in the interpreter or in a script, I can exit
with:
exit()
The exit callable is defined in the site module. Check out site.py! It
shouldn't be used in code. It was added to help newbies to 'escape' from
an interactive Python shell.
On Mon, Sep 8, 2008 at 9:03 AM, Eric Wertman [EMAIL PROTECTED] wrote:
Perhaps the wrong idea of what the group is. I would have thought
that
if one had a sufficiently developed idea and wanted to have it /
formally/
rejected, rather than merely sniped at, then writting a PEP would be
more
On Mon, 08 Sep 2008 21:03:48 +0200, Christian Heimes [EMAIL PROTECTED] wrote:
Gary Robinson wrote:
In Python 2.5.2, I notice that, in the interpreter or in a script, I can
exit with:
exit()
The exit callable is defined in the site module. Check out site.py! It
shouldn't be used in
On Sep 8, 8:54 am, Boris Borcic [EMAIL PROTECTED] wrote:
David C. Ullrich wrote:
(ii) If A is a subset of B then we should have
max(A) = max(B). This requires that max(empty set)
be something that's smaller than everything else.
So we give up on that.
Er, what about instances of
On Sep 8, 11:23 am, Dan Upton [EMAIL PROTECTED] wrote:
On Sun, Sep 7, 2008 at 10:59 PM, castironpi [EMAIL PROTECTED] wrote:
On Sep 7, 7:34 pm, MRAB [EMAIL PROTECTED] wrote:
On Sep 7, 11:28 pm, Eric Wertman [EMAIL PROTECTED] wrote:
+1 Bot
I think it's like duck typing: it doesn't matter
On Sep 8, 2:04 pm, Chris Rebert [EMAIL PROTECTED] wrote:
On Mon, Sep 8, 2008 at 9:03 AM, Eric Wertman [EMAIL PROTECTED] wrote:
Perhaps the wrong idea of what the group is. I would have thought
that
if one had a sufficiently developed idea and wanted to have it /
formally/
rejected,
On 2008-09-08, Chris Rebert [EMAIL PROTECTED] wrote:
On Mon, Sep 8, 2008 at 9:03 AM, Eric Wertman [EMAIL PROTECTED] wrote:
To expand on this a little bit, I've been subscribed to this
group for a couple of months, but there seems to be a bit more
gray area between what would go to a
On Sep 6, 1:00 pm, [EMAIL PROTECTED] (Ville M. Vainio) wrote:
Background: PyOS_InputHook is something that gets run when python is
doing raw_input. TkInter and friends use it to run their event loops,
so that their events are handled while python is doing raw_input.
What I'd like to do is run
brianrpsgt1 wrote:
I have attempted downloading and installing several different version
of the win32api from Source Forge,
Whe win32 tools come bundled with ActiveState's python distribution.
Maybe that'll move you forward...
Emile
however, each time I try to install
I get the following
I want to create a class derived from a Borg class that can
instantiated as part of a script or be contained in other classes.
When methods from the Borg class are called, I would like to know the
name of the class that contains the Borg class.
I've played a bit with inspect and _getframe from
On Sep 8, 10:20 am, John Machin [EMAIL PROTECTED] wrote:
On Sep 8, 10:47 am, MK Bernard [EMAIL PROTECTED] wrote:
On Sep 7, 3:37 pm, John Machin [EMAIL PROTECTED] wrote:
On Sep 8, 7:51 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hello...
I have a dict of key/values and I want
Chris Rebert wrote:
On Mon, Sep 8, 2008 at 9:03 AM, Eric Wertman [EMAIL PROTECTED] wrote:
To expand on this a little bit, I've been subscribed to this group
for a couple of months, but there seems to be a bit more gray area
between what would go to a 'python-dev' group and a 'python-user'
The simplest solution would be to use a font that is able to handle all
encodings that I need.
My OpenOffice on WinXP uses a unicode font, I believe Lucida Sans
Unicode, that seems to cover the entire BMP. I don't know whether it
was already installed or installed by OO or how one would
[EMAIL PROTECTED] wrote:
John Machin:
Consider this: hash(123) == hash(123.0) == hash(123L)
True
Right... Can you explain me why Python designers have chosen to build
a hash() like that?
Because that's the kind of hash that dicts expect. If two objects are equal
(i.e. (x==y) is True), they
KLEIN Stéphane wrote:
Hi,
for example, in http://svn.zope.org/zc.buildout/trunk/src/zc/buildout/
tests.py?rev=89831view=auto test file, there is this doctests :
def develop_verbose():
We should be able to deal with setup scripts that aren't setuptools based.
mkdir('foo')
Hi, Pythoners.
I would like to know that in some class, it uses __XX__ but in some it
uses only XX
for example,
class Test:
def __som__(self):
...
def som(self):
...
What does __XX__ make the method different from XX?
Thanks in advance
Aonlazio
--
Hi Jean-Paul,
Jean-Paul Calderone wrote:
On Mon, 08 Sep 2008 21:03:48 +0200, Christian Heimes [EMAIL PROTECTED]
wrote:
Gary Robinson wrote:
In Python 2.5.2, I notice that, in the interpreter or in a script, I
can exit with:
exit()
The exit callable is defined in the site module. Check
Hi again pythoners,
I notice in the class of a code having (object) and (type) attached to
the name of the class.
I know that in other cases, that means the class inherits methods and
properties from other but
In this case, what does it mean?
For example,
class PY(object):
def
Hi,
This is convention only
and typically used to denote
that a particular class attribute
is private. Though note,
there is really no such thing in
Python.
cheers
James
On Tue, Sep 9, 2008 at 7:31 AM, AON LAZIO [EMAIL PROTECTED] wrote:
Hi, Pythoners.
I would like to know that in some
Hi,
Perhaps you might want to
try out using a sample spider
I wrote and base your code of
this ?
See:
http://hg.shortcircuit.net.au/index.wsgi/pymills/file/b9936ae2525c/examples/spider.py
cheers
James
On Tue, Sep 9, 2008 at 2:24 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hi,
I can read
AON LAZIO wrote:
Hi, Pythoners.
I would like to know that in some class, it uses __XX__ but in some it
uses only XX
for example,
class Test:
def __som__(self):
...
def som(self):
...
What does __XX__ make the method different from XX?
Thanks in advance
To All,
Has anyone worked with the F2PY generator? This is something that is
supposedly built within numpy and scipy for the Python environment. I
was wondering if anyone has encountered any issues with this
environment?? This is important to find the answers to these questions.
Thanks,
Le Mon, 08 Sep 2008 12:51:04 +, Steven D'Aprano a écrit :
On Mon, 08 Sep 2008 12:15:15 +, KLEIN Stéphane wrote:
Hi,
for example, in http://svn.zope.org/zc.buildout/trunk/src/zc/buildout/
tests.py?rev=89831view=auto test file, there is this doctests :
[snip]
Subclassing 'object' makes the class new-style as opposed to
old-style. object is the ultimate superclass of all new-style classes.
Old-style classes are deprecated and will be removed in Python 3.0,
but they're currently the default for backward-compatibility reasons.
See
On Thu, Sep 4, 2008 at 10:22 AM, Alexander Schmolck
[EMAIL PROTECTED] wrote:
It's amazing that after over half a century of computing we still can't denote
numbers with more than 4 digits readably in the vast majority of contexts.
I agree. So did Forth's early designers. That is why Forth's
Peter Anderson wrote:
Stef Mientki said: In PyScripter, you should run wxPython in the plain
remote machine (not the wxPython remote),and you should set reset
before run flag or reset the remote machine each time yourself.
Stef,
Thanks for the help! It has taken several hours to find and
Pauli,
Yes, I am utilizing the windows environment. I cannot install f2py.
I obtain the following error when I try to execute the setup.py file
within the f2py folder located within the numpy master folder:
Warning: Assuming default configuration
(lib\parser/{setup_parser,setup}.py was
Eric Wertman wrote:
Perhaps the wrong idea of what the group is. I would have thought
that
if one had a sufficiently developed idea and wanted to have it /
formally/
rejected, rather than merely sniped at, then writting a PEP would be
more
apposite than posting to c.l.py.
It's fine to post
On Sep 9, 6:12 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
[big snip]
In the interests of academia (although this isn't homework :)) I'll
answer some of those questions:
Understanding your own requirements is , I would have thought, not
much to do with academia but a very practical idea.
On Mon, 08 Sep 2008 22:04:29 +, KLEIN Stéphane wrote:
You found the ls() function in a docstring from Zope. The doctest seems
to be testing ls(). That suggests to me that ls() is defined in Zope,
not doctest.
Well, ls() is one test utility function defined in zc.buildout.testing
BigTable looks great! There's a 3% performance hit for these types of
databases. However it makes up for it in other ways.
Dive Into Python seems to suggest there is less busy work, but I am
still looking into the GUI components of Python. Say, a grid of 10x10
tiles of PNGs.
On Sep 8, 7:19 pm, Blubaugh, David A. [EMAIL PROTECTED] wrote:
Pauli,
Yes, I am utilizing the windows environment. I cannot install f2py.
I obtain the following error when I try to execute the setup.py file
within the f2py folder located within the numpy master folder:
You shouldn't
On Sep 8, 2:41 pm, Emile van Sebille [EMAIL PROTECTED] wrote:
brianrpsgt1 wrote:
I have attempted downloading and installing several different version
of the win32api from Source Forge,
Whe win32 tools come bundled with ActiveState's python distribution.
Maybe that'll move you forward...
I built python-2.5.1 from source using Visual Studio 2005, and am also
trying to build my extension using distutils and Visual Studio 2005.
Distutils complains about python being built with VS 2003, which is
not on my system, and the only python binaries I have on my system are
the ones I built
On 3 Sep, 18:52, ToPostMustJoinGroup22 [EMAIL PROTECTED]
wrote:
I'm coming from a .NET, VB, C background.
Any suggestions for someone new to the scene like me?
Welcome! Unfortunately, you probably have a lot of bad habits to
unlearn. Don't use Python like another C, VB or Java. It will cause
Hi
What do you mean by a 3% performance hit? And compared to what ?
Any performance hit or for that matter
a performance improvement would very much dependant on the problem
domain
, how it maps to the data store and what you are trying to do with it,
and
your choice of algorithms.
T
On Sep
Terry Reedy [EMAIL PROTECTED] wrote:
My OpenOffice on WinXP uses a unicode font, I believe Lucida Sans
Unicode, that seems to cover the entire BMP.
Lucida Sans Unicode only covers a small subset of Unicode. It may seem
to cover a wider range because Windows (and possibly OpenOffice) will
Ross Ridge wrote:
Terry Reedy [EMAIL PROTECTED] wrote:
My OpenOffice on WinXP uses a unicode font, I believe Lucida Sans
Unicode, that seems to cover the entire BMP.
Lucida Sans Unicode only covers a small subset of Unicode. It may seem
to cover a wider range because Windows (and possibly
On Mon, Sep 8, 2008 at 01:51, Laszlo Nagy wrote:
possible to use UTF 8 strings but there is a problem with the font.
Use Code2000
http://www.code2000.net/
xan
jonathon
--
http://mail.python.org/mailman/listinfo/python-list
All:
A year or so ago, I read a tutorial on writing self-voicing apps using
python. It also covered other a11y issues.
However, I didn't bookmark it, and it doesn't show up in the first
1000 hits on the Google search I did.
Can somebody point me to either that, or any other tutorials on
i couldn't find any binary distribution of tix8.4.So i think i have to
reinstall python.
i also have numpy and PIL installed.If i reinstall python on top of
the current python directory will i lose them?
You should run a repair installation. In Add-and-remove-programs,
select Python, then
On Sep 8, 2:21 pm, Grant Edwards [EMAIL PROTECTED] wrote:
On 2008-09-08, Chris Rebert [EMAIL PROTECTED] wrote:
On Mon, Sep 8, 2008 at 9:03 AM, Eric Wertman [EMAIL PROTECTED] wrote:
To expand on this a little bit, I've been subscribed to this
group for a couple of months, but there seems
On Mon, 08 Sep 2008 20:41:55 -0700, jonathon wrote:
All:
A year or so ago, I read a tutorial on writing self-voicing apps using
python. It also covered other a11y issues. However, I didn't bookmark
it, and it doesn't show up in the first 1000 hits on the Google search I
did.
While Google
Diez B. Roggisch wrote:
W. eWatson wrote:
Apparently, use of strptime of datetime needs a workaround in Python 2.4
to work properly. The workaround is d =
datetime.datetime(*(time.strptime(date_string, format)[0:5])). However,
when I try to use it, or even use it the regular way, it fails with
On Mon, Sep 8, 2008 at 21:02, Steven D'Aprano wrote:
I'm guessing that you'd probably have more success asking on ally mailing
lists
I'm on a couple of a11y mailing lists.
My experience with them has been, disappointing.
Have you checked out this? http://live.gnome.org/Orca
Not cross
I have two dates, ts1, ts2 as below in the sample program. I know the clock
drift in seconds per day. I would like to calculate the actual date of ts2.
See my question at the end of the program.
# time differences with addition of drift
from datetime import datetime, timedelta
import time
thanks Fredrik, yeah it works !!!
On Mon, Sep 8, 2008 at 8:11 PM, Fredrik Lundh [EMAIL PROTECTED]wrote:
abhilash pp wrote:
I don't know if this question will fit on this section,
any way my query is , i have used one script demork.py to extract details
from Firefox history.dat file
and
W. eWatson wrote:
drift = 4.23 # seconds per day
format = '%Y%m%d_%H%M%S'
ts1 = 20080901_12 # base date-time
ts2 = 20080904_18
d1 = datetime(*(time.strptime(ts1, format)[0:6]))
d2 = datetime(*(time.strptime(ts2, format)[0:6]))
#d += timedelta(seconds=sec)
delta = d2-d1
# delta format
Hi all,
I don't know if this question will fit on this section,
any way my query is , i have used one script demork.py to extract details
from Firefox history.dat file
and now the problem is how to convert the TIMESTAMP given by that to normal
date and time.
example timestams are like this,
I can't for the life of me figure out how to set a callback in
Python. I have a class, which wraps another class. The second class
needs a callback assigned. I don't want to use globals for it.
Here's what I'd like to do:
class MyWrapper:
def get_login(self, username):
return
catsclaw wrote in news:d797403a-e492-403f-933a-bd18ef53d5c0
@k13g2000hse.googlegroups.com in comp.lang.python:
I can't for the life of me figure out how to set a callback in
Python. I have a class, which wraps another class. The second class
needs a callback assigned. I don't want to use
catsclaw schrieb:
I can't for the life of me figure out how to set a callback in
Python. I have a class, which wraps another class. The second class
needs a callback assigned. I don't want to use globals for it.
Here's what I'd like to do:
class MyWrapper:
def get_login(self, username):
catsclaw wrote:
I can't for the life of me figure out how to set a callback in
Python. I have a class, which wraps another class. The second class
needs a callback assigned. I don't want to use globals for it.
Here's what I'd like to do:
class MyWrapper:
def get_login(self, username):
[EMAIL PROTECTED] schrieb:
Hi all, I'm having some issues getting a spotlight search to work
similar to the program demonstrated here:
http://pyobjc.sourceforge.net/examples/pyobjc-framework-Cocoa/AppKit/PredicateEditorSample/
Here is my class, complete with the code I am trying to use it with
hey guys! I have this site www.drachensee.info and i keep posting on
the ubuntu, the latest open soruce buzz.. i post on stuff like editing
the grub menu and other linux related stuff.. so drop in and drop ur
comments ;-]
--
http://mail.python.org/mailman/listinfo/python-list
Matthias Huening wrote:
Hi,
- - Connection.enable_load_extension(enabled) to allow/disallow extension
loading. Allows you to use fulltext search extension, for example ;-)
The following code (from the docs) produces an error:
from pysqlite2 import dbapi2 as sqlite3
con =
Hi folks,
I am new to Python... so am not too sure about how the type conversion
works.
I have to read a file that contains hexadecimal data and use the data
further to do some arithmetic calculations.
A sample of the input is : 20E032F8400022005E
The problem I am facing
On Sep 8, 10:47 am, MK Bernard [EMAIL PROTECTED] wrote:
On Sep 7, 3:37 pm, John Machin [EMAIL PROTECTED] wrote:
On Sep 8, 7:51 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hello...
I have a dict of key/values and I want to change the keys in it, based
on another mapping
Laszlo Nagy [EMAIL PROTECTED] writes:
I could not find any free TTF font that can do latin1, latin2,
arabic, chinese and other languages at the same time. Is there a
single font that is able to handle these languages?
The GNU Unifont URL:http://en.wikipedia.org/wiki/GNU_Unifont
Apparently, use of strptime of datetime needs a workaround in Python 2.4 to
work properly. The workaround is d =
datetime.datetime(*(time.strptime(date_string, format)[0:5])). However, when
I try to use it, or even use it the regular way, it fails with
AttributeError: type object
Gerhard Häring (08.09.2008 10:12):
Error is:
con.execute(select load_extension('./fts3.so'))
pysqlite2._sqlite.OperationalError: Das angegebene Modul wurde nicht
gefunden.
Where should I look for the module?
The sources are in ext/fts3 in the SQLite source tree. I haven't found
any
On Sep 8, 9:14 am, James Mills [EMAIL PROTECTED] wrote:
On Mon, Sep 8, 2008 at 8:59 AM, John Machin [EMAIL PROTECTED] wrote:
What do you mean by this right? Perhaps the Divine Right of OPs,
managers, examiners, business analysts, etc never to give a complete
spec up front and never to
On 2008-09-07 15:00, Mike Hostetler wrote:
I built and installed mx-experimental 3.0.0 from source and it seemed to go
fine. But when I try to import it, I get this:
localhost% python -c import mx.Tidy
Traceback (most recent call last):
File string, line 1, in ?
File
Hi,
I'm using the subprocess module's Popen() to start a batch file. This
batch file basically calls an exe which also gets started.
Unfortunately, this does not produce any results. I looked into the
Task bar that this exe has started but it does not consume and cpu so
I believet that this exe
Apparently, use of strptime of datetime needs a workaround in Python
2.4 to work properly. The workaround is d =
datetime.datetime(*(time.strptime(date_string,
format)[0:5])). However, when I try to use it, or even use it the
regular way, it fails with AttributeError:
On Sep 8, 2:31 pm, John Machin [EMAIL PROTECTED] wrote:
On Sep 8, 7:05 pm, Praveena P [EMAIL PROTECTED] wrote:
Hi folks,
I am new to Python... so am not too sure about how the type conversion
works.
I have to read a file that contains hexadecimal data and use the data
further to do
I have a Python script expecting 11 or 12 input parameters. How do I
use execfile to execute the Python script in my new Python script? How
do I pass in the input parameters?
Yours sincerely,
David
This email has been scanned for all viruses by the MessageLabs Email
Security System.--
On Mon, Sep 8, 2008 at 11:50 AM, [EMAIL PROTECTED] wrote:
Hi,
I'm using the subprocess module's Popen() to start a batch file. This
batch file basically calls an exe which also gets started.
Unfortunately, this does not produce any results. I looked into the
Task bar that this exe has
Matthias Huening wrote:
Gerhard Häring (08.09.2008 10:12):
Error is:
con.execute(select load_extension('./fts3.so'))
pysqlite2._sqlite.OperationalError: Das angegebene Modul wurde nicht
gefunden.
Where should I look for the module?
The sources are in ext/fts3 in the SQLite source tree.
Hi,
for example, in http://svn.zope.org/zc.buildout/trunk/src/zc/buildout/
tests.py?rev=89831view=auto test file, there is this doctests :
def develop_verbose():
We should be able to deal with setup scripts that aren't setuptools based.
mkdir('foo')
write('foo', 'setup.py',
On Sep 7, 8:54 pm, [EMAIL PROTECTED] wrote:
I'm working on a remote object system, something kinda like Pyro.
For the purposes of caching I need to be able to tell if a given
dict / list / set has been modified.
Ideally what I'd like is for them to have a modification count
variable that
Hi,
a = [1,2,3]
b = [3,2,1,4]
a = set(a)
b = set(b)
a.intersection(b)
set([1, 2, 3])
Is this what you want ?
cheers
James
On 9/8/08, mathieu [EMAIL PROTECTED] wrote:
Hi there,
I am trying to write something very simple to test if a list
contains another one:
a = [1,2,3]
b =
Laszlo Nagy [EMAIL PROTECTED] writes:
I could not find any free TTF font that can do latin1, latin2,
arabic, chinese and other languages at the same time. Is there a
single font that is able to handle these languages?
The GNU Unifont URL:http://en.wikipedia.org/wiki/GNU_Unifont
[EMAIL PROTECTED] wrote:
On Sep 7, 8:54 pm, [EMAIL PROTECTED] wrote:
I'm working on a remote object system, something kinda like Pyro.
For the purposes of caching I need to be able to tell if a given
dict / list / set has been modified.
Ideally what I'd like is for them to have a
On Sep 7, 8:55 pm, Patrick Maupin [EMAIL PROTECTED] wrote:
On Sep 7, 5:41 pm, Mars creature [EMAIL PROTECTED] wrote:
Hi guys,
I am new to Python, and thinking about migrating to it from matlab
as it is a really cool language. Right now, I am trying to figure out
how to control read and
W. eWatson wrote:
Apparently, use of strptime of datetime needs a workaround in Python 2.4
to work properly. The workaround is d =
datetime.datetime(*(time.strptime(date_string, format)[0:5])). However,
when I try to use it, or even use it the regular way, it fails with
AttributeError: type
I need to create multi lingual invoices from reportlab. I think it is
possible to use UTF 8 strings but there is a problem with the font. I
could not find any free TTF font that can do latin1, latin2, arabic,
chinese and other languages at the same time. Is there a single font
that is able to
On Mon, 08 Sep 2008 12:15:15 +, KLEIN Stéphane wrote:
Hi,
for example, in http://svn.zope.org/zc.buildout/trunk/src/zc/buildout/
tests.py?rev=89831view=auto test file, there is this doctests :
[snip]
ls('develop-eggs')
I wonder where does the ls('develop-eggs') command come
Hi All
i have a CSV file that i'm reading in and each line has the look of
the below
{None: ['User-ID', 'Count']}
{None: ['576460847178667334', '1']}
{None: ['576460847178632334', '8']}
i want to make a dictionary of items in the form
{576460847178667334:1, 576460847178632334:8, . } for all
mathieu a écrit :
Hi there,
I am trying to write something very simple to test if a list
contains another one:
a = [1,2,3]
b = [3,2,1,4]
but 'a in b' returns False.
Indeed. Lists are not sets, and the fact that all elements of list a
happens to also be part of list b doesn't make the
mathieu wrote:
Hi there,
I am trying to write something very simple to test if a list
contains another one:
a = [1,2,3]
b = [3,2,1,4]
but 'a in b' returns False. How do I check that a is indeed contained
in b ?
Use sets:
a = [1,2,3]
b = [3,2,1,4]
set(a).issubset(set(b))
True
On Sep 8, 9:32 am, Bruno Desthuilliers
[EMAIL PROTECTED] wrote:
mathieu a écrit :
Hi there,
I am trying to write something very simple to test if a list
contains another one:
a = [1,2,3]
b = [3,2,1,4]
but 'a in b' returns False.
Indeed. Lists are not sets, and the fact that
On Sep 8, 2:05 pm, Praveena P [EMAIL PROTECTED] wrote:
Hi folks,
I am new to Python... so am not too sure about how the type conversion
works.
I have to read a file that contains hexadecimal data and use the data
further to do some arithmetic calculations.
A sample of the input is :
Hi there,
I am trying to write something very simple to test if a list
contains another one:
a = [1,2,3]
b = [3,2,1,4]
but 'a in b' returns False. How do I check that a is indeed contained
in b ?
thanks
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
This seems to be an old question, and I've read back a bit, but rather
than assume the answer is you can't do that, I'd thought I'd post my
version of the question along with a reproducible error to illustrate
my confusion.
My problem is that I'm using Python inside XSI (a 3D graphics
On Sep 8, 7:05 pm, Praveena P [EMAIL PROTECTED] wrote:
Hi folks,
I am new to Python... so am not too sure about how the type conversion
works.
I have to read a file that contains hexadecimal data and use the data
further to do some arithmetic calculations.
A sample of the input is :
The GNU Unifont URL:http://en.wikipedia.org/wiki/GNU_Unifont
URL:http://unifoundry.com/unifont.html covers an impressive range of
the Unicode Basic Multilingual Plane.
Unifont is originally a bitmap font, but was recently made available
in TrueType format
I'm trying to implement a file server using the code below. However
the locking doesn't work. I can delete while put'ing a file.
Anyone got an idea about why?
best regards,
seb
#! /usr/bin/env python
import Pyro.core, Pyro.naming
from Pyro.errors import PyroError, NamingError
import sys
On 9/6/2008 5:17 AM James Pilling apparently wrote:
Hi im currently starting to learn python in sixth form at school any tips?
The books suggestions of others are quite good.
Here is another approach: pick an easily understandable
application, and work doing things with it.
Perhaps
On 7 Sep, 12:54, [EMAIL PROTECTED] wrote:
I'm working on a remote object system, something kinda like Pyro.
For the purposes of caching I need to be able to tell if a given
dict / list / set has been modified.
Ideally what I'd like is for them to have a modification count
variable that
Mike P a écrit :
Hi All
i have a CSV file that i'm reading in and each line has the look of
the below
{None: ['User-ID', 'Count']}
{None: ['576460847178667334', '1']}
{None: ['576460847178632334', '8']}
This doesn't look like a CSV file at all... Is that what you actually
have in the file,
David C. Ullrich wrote:
(ii) If A is a subset of B then we should have
max(A) = max(B). This requires that max(empty set)
be something that's smaller than everything else.
So we give up on that.
Er, what about instances of variations/elaborations on
class Smaller(object) : __cmp__ = lambda
Few solutions, not much tested:
data = {None: ['User-ID', 'Count']}
{None: ['576460847178667334', '1']}
{None: ['576460847178632334', '8']}
lines = iter(data.splitlines())
lines.next()
identity_table = .join(map(chr, xrange(256)))
result = {}
for line in lines:
parts =
Bruno Desthuilliers:
This doesn't look like a CSV file at all... Is that what you actually
have in the file, or what you get from the csv.reader ???
I presume you are right, the file probably doesn't contain that stuff
like I have assumed in my silly/useless solutions :-)
Bye,
bearophile
--
[EMAIL PROTECTED] a écrit :
Bruno Desthuilliers:
This doesn't look like a CSV file at all... Is that what you actually
have in the file, or what you get from the csv.reader ???
I presume you are right, the file probably doesn't contain that stuff
like I have assumed in my silly/useless
abhilash pp wrote:
I don't know if this question will fit on this section,
any way my query is , i have used one script demork.py to extract
details from Firefox history.dat file
and now the problem is how to convert the TIMESTAMP given by that to
normal date and time.
example timestams are
Thanks for the solution above,
The raw data looked like
User-ID,COUNTS
576460840144207854,6
576460821700280307,2
576460783848259584,1
576460809027715074,3
576460825909089607,1
576460817407934470,1
and i used
CSV_INPUT1 = C:/Example work/Attr_model/Activity_test.csv
fin1 = open(CSV_INPUT1, rb)
Dear all
I have tkinkter based frontend to a Fortran based program. I use
subprocess to launch the fortran program as a child process and I wish
to see the output of the fortran program as it is created in the
console.
The fortran program can take up to 20 minuttes to finish and at the
moment
1 - 100 of 180 matches
Mail list logo