[EMAIL PROTECTED] wrote:
>
>In xp when I try os.path.getmtime("%userprofile/dir/file%") Python
>bites back with "cannot find the path specified" Since my script has
>to run on machines where the username is unspecified I need a fix.
For the record, the %PERCENT% syntax for looking up an environmen
Le Wednesday 11 June 2008 06:20:14 cirfu, vous avez écrit :
> pat = re.compile("(\w* *)*")
> this matches all sentences.
> if fed the string "are you crazy? i am" it will return "are you
> crazy".
>
> i want to find a in a big string a sentence containing Zlatan
> Ibrahimovic and some other text.
>
[EMAIL PROTECTED] wrote:
>The python community is very helpful to newbies like me. I did however
>manage to solve my problem in the meantime. I needed the modification
>time of certain files on various computers, but I didn't know the
>usernames ahead of time, so I used windows %userprofile% meth
Le Wednesday 11 June 2008 09:08:53 Maric Michaud, vous avez écrit :
> "this is zlatan example.'
> compare with 'this is zlatan example', 'z'=='.', false
> compare with 'this is zlatan ', 'z'=='e', false
> compare with 'this is zlatan', 'z'==' ', false
> compare with 'this is ', "zlatan"=="zlatan",
Gabriel Genellina wrote:
En Tue, 10 Jun 2008 09:44:13 -0300, Gabriel Rossetti
<[EMAIL PROTECTED]> escribió:
I wanted to use the h2py.py script (Tools/scripts/h2py.py) and it
didn't like char litterals :
Skipping: PC_ERROR = ord()
where my *.h file contained :
#define PC_ERROR '0'
I search
This laptop comes with Intel 1.6GHz Dual Core Processor, 1GB RAM and
120GB HDD. It has a DVD Writer, 15.4-inch widescreen display with a
resolution of 1280 x 800 dpi. The laptop also has an integrated ATI
X300 video card, integrated modem and sound card, Wifi, Touchpad
mouse, in-built speakers, 4 U
On Jun 11, 8:11 am, "Russ P." <[EMAIL PROTECTED]> wrote:
> On Jun 10, 11:58 am, Jonathan Gardner
>
> > Who cares what the type of an object is? Only the machine. Being able
> > to tell, in advance, what the type of a variable is is a premature
> > optimization. Tools like psyco prove that computers
Hi everybody, I wrote a small http client I'm using to download and analyze
some web pages.I used urllib and the examples on the doc to create the http
client, but I have some problems with the encoding of the returned data.
Where can I find a good example about how to manage encoding for http
On Jun 11, 6:20 am, cirfu <[EMAIL PROTECTED]> wrote:
> pat = re.compile("(\w* *)*")
> this matches all sentences.
> if fed the string "are you crazy? i am" it will return "are you
> crazy".
>
> i want to find a in a big string a sentence containing Zlatan
> Ibrahimovic and some other text.
> ie ret
How can I monitor with a Python script how much memory does a process
use in Windows? I want to do statistics about memory consumption of
processes like Firefox, Antivirus, etc. When I search in Google I only
find information about how to monitor this in linux or how to reduce
Python programs memor
Russ P. a écrit :
On Jun 10, 1:04 am, Bruno Desthuilliers wrote:
If you hope to get a general agreement here in favor of a useless
keyword that don't bring anything to the language, then yes, I'm afraid
you're wasting your time.
Actually, what I hope to do is to "take something away" from th
Gandalf <[EMAIL PROTECTED]> wrote:
> I'm trying to convert mysql database to sqlite. is their any free tool
> that does that?
> I can convert my mysql db to XML file through phpmyadmin, will it be
> easier to convert from XML to SQlite then from Mysql?
I'd probably create the sqlite tables f
Russ P. a écrit :
On Jun 10, 11:58 am, Jonathan Gardner
(snip)
Who cares about private declarations, or interface declarations at
all? It is only a message to the developers. If you have a problem
with your users doing the right thing, that is a social problem, not a
technical one, and the sol
Thanks again for an informative reply :-)
I finished that small app I mentioned last time (before reading the
the last reply to this thread). A few points (apologies for the
length):
I added a few integration tests, to test features which unit tests
weren't appropriate for. The main thing they do
On Jun 11, 10:32 am, MRAB <[EMAIL PROTECTED]> wrote:
> On Jun 10, 10:57 pm, "Steven Clark" <[EMAIL PROTECTED]> wrote:
>
> > > for 1 in oids, vals head_oids:
> > > SyntaxError: can't assign to literal
> > > --
>
> > 1 is a literal, you can't assign it to something. Are you trying to
> > use it as a
On Jun 10, 10:57 pm, "Steven Clark" <[EMAIL PROTECTED]> wrote:
> > for 1 in oids, vals head_oids:
> > SyntaxError: can't assign to literal
> > --
>
> 1 is a literal, you can't assign it to something. Are you trying to
> use it as a variable name?
Slightly OT, but is there an editor that can displa
Le Wednesday 11 June 2008 08:11:02 Russ P., vous avez écrit :
> http://www.sofcheck.com
>
> Here is an excerpt from their website:
>
> "SofCheck’s advanced static error detection solutions find bugs in
> programs before programs are run. By mathematically analyzing every
> line of software, conside
"Florencio Cano" <[EMAIL PROTECTED]> wrote:
> How can I monitor with a Python script how much memory does a process
> use in Windows? I want to do statistics about memory consumption of
> processes like Firefox, Antivirus, etc. When I search in Google I only
> find information about how to monitor
Hi,
I'm trying to create a regular expression for matching some particular XML
strings. I want to extract the contents of a particular XML tag, only if it
follows one tag, but not follows another tag. Complicating this, is that
there can be any number of other tags in between.
So basically, my re
On 11 Jun, 10:10, Bruno Desthuilliers wrote:
> Russ P. a écrit :
>
> > You may be right to an extent for small or medium-sized non-critical
> > projects, but you are certainly not right in general. I read something
> > a while back about the flight software for the Boeing 777. I think it
> > was s
Thanks to all for the various replies. They have all helped me to
refine my ideas on the subject. These are my latest thoughts.
Firstly, the Decimal type exists, it clearly works well, it is written
by people much cleverer than me, so I would need a good reason not to
use it. Speed could be a good
On 2008-06-10, Rhamphoryncus <[EMAIL PROTECTED]> wrote:
> On Jun 10, 1:55 am, Antoon Pardon <[EMAIL PROTECTED]> wrote:
>> On 2008-06-09, Rhamphoryncus <[EMAIL PROTECTED]> wrote:
>>
>>
>>
>> > On Jun 9, 5:33 am, Antoon Pardon <[EMAIL PROTECTED]> wrote:
>> >> On 2008-06-07, Rhamphoryncus <[EMAIL PROT
On 2008-06-10, Peter Hunt <[EMAIL PROTECTED]> wrote:
> Hi everyone -
>
> I like playing around with language syntax and semantics. I'm thinking
> about pulling down the PyPy code and messing around to see what I can
> accomplish. My first idea is most succinctly described by example:
>
> class IBlo
Hi,
I am running a program using Parallel Python and I wonder if there is a
way/module to know in which CPU/core the process is running in. Is that
possible?
Ángel
--
http://mail.python.org/mailman/listinfo/python-list
Tim van der Leeuw wrote:
Hi,
I'm trying to create a regular expression for matching some particular
XML strings. I want to extract the contents of a particular XML tag,
only if it follows one tag, but not follows another tag. Complicating
this, is that there can be any number of other tags in
On Jun 11, 1:58 am, Tim Roberts <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
>
> >In xp when I try os.path.getmtime("%userprofile/dir/file%") Python
> >bites back with "cannot find the path specified" Since my script has
> >to run on machines where the username is unspecified I need a fix.
Thor wrote:
Hi,
I am running a program using Parallel Python and I wonder if there is a
way/module to know in which CPU/core the process is running in. Is that
possible?
This is of course OS-specific. On Linux, you can parse the proc filesystem:
>>> open("/proc/%i/stat" % os.getpid()).read().
On Jun 11, 1:59 am, Rhamphoryncus <[EMAIL PROTECTED]> wrote:
> Why not use a normal Queue, put a dummy value (such as None) in when
> you're producer has finished, and have the main thread use the normal
> Thread.join() method on all your child threads?
I just gave two reasons:
- Concurrency / in
On Jun 11, 3:32 pm, MRAB <[EMAIL PROTECTED]> wrote:
> On Jun 10, 10:57 pm, "Steven Clark" <[EMAIL PROTECTED]> wrote:
>
> > > for 1 in oids, vals head_oids:
> > > SyntaxError: can't assign to literal
> > > --
>
> > 1 is a literal, you can't assign it to something. Are you trying to
> > use it as a v
On Jun 11, 1:58 am, asdf <[EMAIL PROTECTED]> wrote:
> I have a python script whose output i want to dynamically display
> on a webpage which will be hosted using Apache. How do I do that?
>
> thanks
def index(req):
return "Page"
u cant run it on lighttpd also, which is much faster then Apache
Alexnb wrote:
I don't think you understand it doesn't matter how the variable gets there
But it *does* matter. Compare this:
py> filename = "C:\Somewhere\01 - Some Song.mp3"
py> print filename
C:\Somewhere - Some Song.mp3
To this:
py> filename = raw_input("Enter the filename: ")
Enter the fi
Greetings,
I want to make a dynamic dashboard, something like:
http://examples.adobe.com/flex3/labs/dashboard/main.html#
but using python. Is it possible ?
Thanks in advance.
Best regards,
Gabriela Soares.
--
http://mail.python.org/mailman/listinfo/python-list
I have a set of numpy arrays which I would like to save to a gzip
file. Here is an example without gzip:
b=numpy.ones(100,dtype=numpy.uint8)
a=numpy.zeros(100,dtype=numpy.uint8)
fd = file('test.dat','wb')
a.tofile(fd)
b.tofile(fd)
fd.close()
This works fine. However, this does not:
fd
I understand very well that a service is a software which is accessed
through a network.
And the description given on Wikipedia [1] is "A 'Web service' (also
Web Service) is defined by the W3C as "a software system designed to
support interoperable Machine to Machine interaction over a network."
Frank Millman wrote:
Thanks to all for the various replies. They have all helped me to
refine my ideas on the subject. These are my latest thoughts.
Firstly, the Decimal type exists, it clearly works well, it is written
by people much cleverer than me, so I would need a good reason not to
use it
On Jun 11, 10:07 am, Alexnb <[EMAIL PROTECTED]> wrote:
> I don't think you understand it doesn't matter how the variable gets there,
> the same code is run regardless, I have no problem with the GUI, but you
> asked, and so I told you. the code os.startfile( is run if there is a
> GUI or it is
George Sakkis wrote:
On Jun 10, 11:47 pm, Larry Bates <[EMAIL PROTECTED]> wrote:
I had a little trouble understanding what exact problem it is that you are
trying to solve but I'm pretty sure that you can do it with one of two methods:
Ok, let me try again with a different example: I want to d
Gerhard Häring wrote:
> This is of course OS-specific. On Linux, you can parse the proc
> filesystem:
>
> >>> open("/proc/%i/stat" % os.getpid()).read().split()[39]
>
> You can use the "taskset" utility to query or set CPU affinity on Linux.
>
It is going to be in Linux (mainly) I was thinking
On Jun 11, 9:16 am, asdf <[EMAIL PROTECTED]> wrote:
> On Wed, 11 Jun 2008 11:20:48 +1000, Aidan wrote:
> > asdf wrote:
> >>> Well, there's a few ways you could approach it.
>
> >>> You could create a cgi program from your script - this is probably the
> >>> solution you're looking for.
>
> >> Outpu
On Wed, Jun 11, 2008 at 10:28 AM, Kless <[EMAIL PROTECTED]> wrote:
> I understand very well that a service is a software which is accessed
> through a network.
>
> And the description given on Wikipedia [1] is "A 'Web service' (also
> Web Service) is defined by the W3C as "a software system designe
On Wed, 11 Jun 2008 01:05:45 +, asdf wrote:
>> Well, there's a few ways you could approach it.
>>
>> You could create a cgi program from your script - this is probably the
>> solution you're looking for.
>>
>>
> Output from the script does come up very often. There is a new output
> every 1
On Jun 11, 6:56 am, Rhamphoryncus <[EMAIL PROTECTED]> wrote:
> On Jun 10, 3:41 pm, Fuzzyman <[EMAIL PROTECTED]> wrote:
>
> > On Jun 10, 2:03 am, Rhamphoryncus <[EMAIL PROTECTED]> wrote:
> > > So how does .NET deal with the sys.stdout corruption? Does it?
>
> > That has never been an issue for us.
> I understand very well that a service is a software which is accessed
> through a network.
No, you obviously don't understand. A service is something that is offered
to you, for free or not, and that you might use on the terms the service
provider lays down.
Some examples?
Pizza delivery servi
> Sounds like a sentinel would work for this. The producer puts a
> specific object (say, None) in the queue and the consumer checks for
> this object and stops consuming when it sees it. But that seems so
> obvious I suspect there's something else up.
There's a decent implementation of thi
On Jun 11, 9:57 am, Aidan <[EMAIL PROTECTED]> wrote:
> asdf wrote:
> > On Wed, 11 Jun 2008 11:20:48 +1000, Aidan wrote:
>
> >> asdf wrote:
> Well, there's a few ways you could approach it.
>
> You could create a cgi program from your script - this is probably the
> solution you're lo
On Tue, 10 Jun 2008 22:46:37 -0700 (PDT), George Sakkis <[EMAIL PROTECTED]>
wrote:
On Jun 10, 11:47 pm, Larry Bates <[EMAIL PROTECTED]> wrote:
I had a little trouble understanding what exact problem it is that you are
trying to solve but I'm pretty sure that you can do it with one of two metho
On Jun 11, 4:39 pm, Ethan Furman <[EMAIL PROTECTED]> wrote:
> Frank Millman wrote:
> > Thanks to all for the various replies. They have all helped me to
> > refine my ideas on the subject. These are my latest thoughts.
>
> Out of curiosity, what is the purpose of these numbers? Do they
> represen
Lie wrote:
In most GUI toolkits (including Tkinter) and raw_input() function,
when you input a string (using the textbox, a.k.a Entry widget) it
would automatically be escaped for you, so when you input 'path\path
\file.txt', the GUI toolkit would convert it into 'path\\path\
\file.txt'.
That's
Hi,
I'm very new with classes. I still reading something around ;)
I got started to try a concatenation of 2 type of string, which have a
particular property to start with A or D.
My class here:
""" Small class to join some strings according to the leading first
letter"""
def __init
Pyrex 0.9.8.4 is now available:
http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/
This version fixes a bug introduced by the last change
to unsigned integer indexing.
What is Pyrex?
--
Pyrex is a language for writing Python extension modules.
It lets you freely mix opera
On Jun 11, 2:53 am, maehhheeyy <[EMAIL PROTECTED]> wrote:
> this is stopping my program from running properly. is there something
> wrong in my code when that happens?
That simply means you did something like this:
'hello' = 'another'
123 = 'kilo'
[12, 'asd] = 123
Sometimes it's not that obvious
On 16:47, mercoledì 11 giugno 2008 Chris wrote:
> SciTE and Notepad++
Pype, spe, just to point it out. Jedit, but rather a bloatware.
I'd like to know which is the litest multi platform and indipendent.
Pype is very good when compiled in exe, but not doing in Linux in that way.
--
Mailsweeper Ho
Hello people,
I would like to get some advice on the method that i should use to
develop a cyber billing wxpython app.I had started but i hit a snag
when i realised i could not launch or fiddle with properties of a
Frame object within another frame object, what i had intended to do
was to first l
On Jun 11, 7:59 am, Lie <[EMAIL PROTECTED]> wrote:
> You can't make the browser refresh automatically in the server side,
Yes you can. I don't know how to do it in Python, but here's an
example in Flaming Thunder of a small, fast, light compiled server
side CGI that delivers dynamic content every
On Jun 11, 9:14 pm, Carsten Haese <[EMAIL PROTECTED]> wrote:
> Lie wrote:
> > In most GUI toolkits (including Tkinter) and raw_input() function,
> > when you input a string (using the textbox, a.k.a Entry widget) it
> > would automatically be escaped for you, so when you input 'path\path
> > \file.
Lie <[EMAIL PROTECTED]> at Mittwoch 11 Juni 2008 16:04:
> FYI: AJAX is just a very fancy name for Javascript
AJAX is not just a "name", it's a _religion_
SCNR
--
Freedom is always the freedom of dissenters.
(Rosa Luxemburg)
--
http://mail.python.org/mailm
On Jun 11, 9:36 am, uo <[EMAIL PROTECTED]> wrote:
> Hello people,
> I would like to get some advice on the method that i should use to
> develop a cyber billing wxpython app.I had started but i hit a snag
> when i realised i could not launch or fiddle with properties of a
> Frame object within an
I used sqliteadmin to manage my sqlite database and I copy past
queries translated from mysql phpmyadmin output it worked (little
slowly but worked...), the only problem now is that sqliteadmin stored
my hebrew char as ANSI instead of UTF-8 and now I don't know how to
search data from this table.
On 12:20, mercoledì 11 giugno 2008 cirfu wrote:
> patzln = re.compile("(\w* *)* zlatan ibrahimovic (\w* *)*")
I think that I shouldn't put anything around the phrase you want to find.
patzln = re.compile(r'.*(zlatan ibrahimovic){1,1}.*')
this should do it for you. Unless searching into a specia
QOTW: "You could use exec. Probably if you find yourself doing this a
lot, you're better off using a dictionary." - Erik Max Francis
Python books for programmers:
http://groups.google.com/group/comp.lang.python/browse_thread/thread/83d2bc376f6a5c69/
Determining in whic
MRAB wrote:
On Jun 10, 10:57 pm, "Steven Clark" <[EMAIL PROTECTED]> wrote:
for 1 in oids, vals head_oids:
SyntaxError: can't assign to literal
--
1 is a literal, you can't assign it to something. Are you trying to
use it as a variable name?
Slightly OT, but is there an editor that can disp
How ?
Any references ?
On Wed, Jun 11, 2008 at 4:18 PM, W W <[EMAIL PROTECTED]> wrote:
> On Wed, Jun 11, 2008 at 8:03 AM, Gabriela Soares
> <[EMAIL PROTECTED]> wrote:
> > Greetings,
> >
> > I want to make a dynamic dashboard, something like:
> >
> > http://examples.adobe.com/flex3/labs/dashboard/
On Tue, 10 Jun 2008 21:20:14 -0700 (PDT), cirfu <[EMAIL PROTECTED]> wrote:
> pat = re.compile("(\w* *)*")
> this matches all sentences.
> if fed the string "are you crazy? i am" it will return "are you
> crazy".
>
> i want to find a in a big string a sentence containing Zlatan
> Ibrahimovic and som
On Wed, Jun 11, 2008 at 10:18 AM, Gabriela Soares
<[EMAIL PROTECTED]> wrote:
> How ?
That's an extremely broad question, and shows little initiative, and
offers little information. Most of us are happy to help you solve
problems for free, but few, if any, are willing to write your programs
for fre
On 00:15, giovedì 12 giugno 2008 Ethan Furman wrote:
> I like Vim (Vi Improved)
What about justifying text ?
--
Mailsweeper Home : http://it.geocities.com/call_me_not_now/index.html
--
http://mail.python.org/mailman/listinfo/python-list
On Jun 11, 10:04 am, Gandalf <[EMAIL PROTECTED]> wrote:
> I used sqliteadmin to manage my sqlite database and I copy past
> queries translated from mysql phpmyadmin output it worked (little
> slowly but worked...), the only problem now is that sqliteadmin stored
> my hebrew char as ANSI instead of
I have a large data file of upto 1 million x,y,z coordinates of
points. I want to identify which points are within 0.01 mm from each
other. I can compare the distance from each point to every other
point , but this takes 1 million * 1 million operations, or forever!
Any quick way to do it, perhaps
On Wed, 11 Jun 2008 22:16:56 +0800, TheSaint <[EMAIL PROTECTED]> wrote:
> Hi,
> I'm very new with classes. I still reading something around ;)
>
> I got started to try a concatenation of 2 type of string, which have a
> particular property to start with A or D.
>
> My class here:
> """ Small cl
Hello,
With all respect, I posed the question as a noob who has NO ideia how to
solve the problem at hand.
All I asked for were some references, such as known applications that use
such technology to guide me to where I should focus.
It never crossed my mind to ask for code. If I wanted to do so,
On Jun 11, 11:35 am, [EMAIL PROTECTED] wrote:
> I have a large data file of upto 1 million x,y,z coordinates of
> points. I want to identify which points are within 0.01 mm from each
> other. I can compare the distance from each point to every other
> point , but this takes 1 million * 1 million op
[EMAIL PROTECTED] wrote:
I have a large data file of upto 1 million x,y,z coordinates of
points. I want to identify which points are within 0.01 mm from each
other. I can compare the distance from each point to every other
point , but this takes 1 million * 1 million operations, or forever!
Any
On Jun 10, 8:21 pm, Miki <[EMAIL PROTECTED]> wrote:
> Hello,
>
> > Hi. I'm stretching my boundaries in programming with a little python
> > shell-script which is going to loop through a list of domain names,
> > grab the whois record, parse it, and put the results into a csv.
>
> > I've got the res
Frank Millman <[EMAIL PROTECTED]> wrote:
> Thanks to all for the various replies. They have all helped me to
> refine my ideas on the subject. These are my latest thoughts.
>
> Firstly, the Decimal type exists, it clearly works well, it is written
> by people much cleverer than me, so I would
On Jun 7, 6:30 am, Nick Craig-Wood <[EMAIL PROTECTED]> wrote:
> Here is an attempt at a killable thread
>
> http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/496960
>
> and
>
> http://sebulba.wikispaces.com/recipe+thread2
I use this recipe in paste.httpserver to kill wedged threads, and it
TheSaint wrote:
On 00:15, giovedì 12 giugno 2008 Ethan Furman wrote:
I like Vim (Vi Improved)
What about justifying text ?
Do you mean indenting, or wrapping? Vim has excellent indenting
support, and Python files already included that support proper
indenting, syntax coloring, etc.
I
I have a program that writes a log file as it is running to give status of
the job. I would like to read that file, pull certain lines of text from
it, and write to a new file. Because I am such a novice user, I was hoping
someone had covered this before and could let me know of your methods. If
On Jun 11, 9:17 am, Sean Davis <[EMAIL PROTECTED]> wrote:
> I have a set of numpy arrays which I would like to save to a gzip
> file. Here is an example without gzip:
>
> b=numpy.ones(100,dtype=numpy.uint8)
> a=numpy.zeros(100,dtype=numpy.uint8)
> fd = file('test.dat','wb')
> a.tofile(fd)
On Jun 11, 1:40 am, Rhamphoryncus <[EMAIL PROTECTED]> wrote:
> On Jun 10, 8:15 pm, George Sakkis <[EMAIL PROTECTED]> wrote:
>
>
>
> > I'm baffled with a situation that involves:
> > 1) an instance of some class that defines __del__,
> > 2) a thread which is created, started and referenced by that
I have a program that writes a log file as it is running to give status of
the job. I would like to read that file, pull certain lines of text from
it, and write to a new file. Because I am such a novice user, I was hoping
someone had covered this before and could let me know of your methods. If
Dear all,
This might be off group but I am looking for a python library that can
help me to find a sense of a word in a text and eventually a list of
synonyms of that term. I searched the web and found one but it is
written in perl (http://www.d.umn.edu/~tpederse/senserelate.html) :(
I appreciate
i cant find a web2py mailing list or forum, not by googling and not on
the web2py homepage.
(yes thats right im asking about web2py not webpy).
this framework seems great and i installed and it seems like all i
wished for.
easy to install, easy to use, fast, etc. just an overall better,
complete
I'm a little unclear about import / __import__
I'm exploring dynamically importing modules for a project, and ran
into this behavior
works as expected:
app = __import__( myapp )
appModel = __import__( myapp.model )
but...
appname= 'myapp'
app = __import__( "%s" % appname )
ap
Okay, so as a response to all of you, I will be using the Entry() widget in
Tkinter to get this path. and the repr() function just makes all my
backslashes 4 instead of just 1, and it still screwes it up with the numbers
and parenthesis is has been since the first post. Oh and I know all about
esc
On Jun 10, 8:50 pm, Mike Driscoll <[EMAIL PROTECTED]> wrote:
> Evan,
>
>
>
>
>
> > > I finally figured out how to check out the code. I'm at work now,
> > > where I only have VS2008 installed so I'll have to wait until I get
> > > home this evening to try compiling it. I'll let you know if I have
W W wrote:
> On Wed, Jun 11, 2008 at 10:18 AM, Gabriela Soares
> <[EMAIL PROTECTED]> wrote:
> > How ?
>
> That's an extremely broad question, and shows little initiative, and
> offers little information. Most of us are happy to help you solve
> problems for free, but few, if any, are willing to wri
Jonathan Vanasco schrieb:
I'm a little unclear about import / __import__
I'm exploring dynamically importing modules for a project, and ran
into this behavior
works as expected:
app = __import__( myapp )
appModel = __import__( myapp.model )
but...
appname= 'myapp'
app = __impor
On Jun 11, 7:56 am, Fuzzyman <[EMAIL PROTECTED]> wrote:
> On Jun 11, 6:56 am, Rhamphoryncus <[EMAIL PROTECTED]> wrote:
>
>
>
> > On Jun 10, 3:41 pm, Fuzzyman <[EMAIL PROTECTED]> wrote:
>
> > > On Jun 10, 2:03 am, Rhamphoryncus <[EMAIL PROTECTED]> wrote:
>
> > How does that protect code like this?
>
On Jun 11, 6:00 am, George Sakkis <[EMAIL PROTECTED]> wrote:
> On Jun 11, 1:59 am, Rhamphoryncus <[EMAIL PROTECTED]> wrote:
>
> > Why not use a normal Queue, put a dummy value (such as None) in when
> > you're producer has finished, and have the main thread use the normal
> > Thread.join() method o
On Jun 11, 10:43 am, George Sakkis <[EMAIL PROTECTED]> wrote:
> On Jun 11, 1:40 am, Rhamphoryncus <[EMAIL PROTECTED]> wrote:
> > The trick here is that calling proxy.sleep(0.01) first gets a strong
> > reference to the Mystery instance, then holds that strong reference
> > until it returns.
>
> Ah,
Alexnb wrote:
Okay, so as a response to all of you, I will be using the Entry() widget in
Tkinter to get this path. and the repr() function just makes all my
backslashes 4 instead of just 1, and it still screwes it up with the numbers
and parenthesis is has been since the first post. Oh and I kno
@Mike and the others yesterday
I did think after I posted that code (the string substitution thing) that it
might do that. Thanks for clarifying that it was rubbish :P
@ Alexnb
I'm do a lot of support on a community forum that uses Python as it's
language - I can tell you from experience tha
What should the encoding be for PKG-INFO? PEP 241, 301, 314, and 345 do not
specify.
I notice PKG-INFO must comply with an RFC that predates Unicode, and I
notice I get a traceback if I try to put a non-ascii character into my
Python 2.4.3 setup.py description. (I eventually decided to just
.encod
On 2008-06-11, Alexnb <[EMAIL PROTECTED]> wrote:
> Okay, so as a response to all of you, I will be using the Entry() widget in
> Tkinter to get this path.
OK.
> and the repr() function just makes all my backslashes 4
> instead of just 1, and it still screwes it up with the numbers
> and parenthe
On Jun 11, 12:38 pm, [EMAIL PROTECTED] wrote:
> On Jun 10, 8:50 pm, Mike Driscoll <[EMAIL PROTECTED]> wrote:
>
>
>
> > Evan,
>
> >
>
> > > > I finally figured out how to check out the code. I'm at work now,
> > > > where I only have VS2008 installed so I'll have to wait until I get
> > > > home th
Greetings,
Being extremely new to Python, I haven't got the experience to figure
this one out on my own and frankly I am not sure I would know where to
look.
Basically, what I am trying to do is get a list of each file's
attributes within a directory. Basically, the information that the 'l
Have a look at os.listdir and os.stat. I've never worked with 1.5, so
I don't know what will work with it and what won't,. but I'd imagine
the following ought to be fine, though.
stat_list = []
for dirent in os.listdir('your_directory'):
stat_list.append(os.stat(dirent))
Jeff
On Wed, Jun
Printing dollar is a copyright violation
I recently heard that the USA government or the unfederal reserve is
printing dollars. Is this a copyright violation ?
Is this also a theft ?
Is there a scheme to print dollars in such a way to selectiv
On Jun 10, 11:33 pm, George Sakkis <[EMAIL PROTECTED]> wrote:
> I pasted my current solution athttp://codepad.org/FXF2SWmg. Any
> feedback, especially if it has to do with proving or disproving its
> correctness, will be appreciated.
It seems like you're reinventing the wheel. The Queue class do
On Jun 11, 6:49 pm, Rhamphoryncus <[EMAIL PROTECTED]> wrote:
> On Jun 11, 7:56 am, Fuzzyman <[EMAIL PROTECTED]> wrote:
>
>
>
> > On Jun 11, 6:56 am, Rhamphoryncus <[EMAIL PROTECTED]> wrote:
>
> > > On Jun 10, 3:41 pm, Fuzzyman <[EMAIL PROTECTED]> wrote:
>
> > > > On Jun 10, 2:03 am, Rhamphoryncus <
"Frank Millman" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
| Thanks to all for the various replies. They have all helped me to
| refine my ideas on the subject. These are my latest thoughts.
|
| Firstly, the Decimal type exists, it clearly works well, it is written
| by people mu
1 - 100 of 168 matches
Mail list logo