On Tue, 05 Jun 2007 18:18:51 +0200, <[EMAIL PROTECTED]> wrote:
> Hi everybody.
>
> I have this code snippet that shows a window without a titlebar (using
> overrideredirect) and two buttons on it: one quits and the other one
> brings up a simple tkMessageBox.
> On Windows (any flavour) the tkMessa
人言落日是天涯,望极天涯不见家 wrote:
> The follow statement comes from the Python 2.5 documentation
> --
> encode( [encoding[,errors]])
>
> Return an encoded version of the string. Default encoding is the
> current default string encoding. errors may be given to set a
> different error handling sch
On 6 Jun, 00:58, "W. Watson" <[EMAIL PROTECTED]> wrote:
> is there a Tkinter intro manual somewhere
Take a look at http://www.pythonware.com/library/tkinter/introduction
Glenn
--
http://mail.python.org/mailman/listinfo/python-list
Hi
I have a problem with encoding non-ascii characters in a web
application. The application uses Paste and Mako.
The code is here: http://www.webudkast.dk/demo.txt
The main points are:
After getting some user generated input using
paste.request.parse_formvars, how should this be correctly save
ZioMiP a écrit :
...
> I think is like a "live browser"... not only render HTML because the
> webpage got a bit of javascript inside...
Does the rendering absolutely need to be in your own GUI ?
Else you can use the *webbrowser* module and simply call user preffered
browser to display data and
In <[EMAIL PROTECTED]>, Steven
D'Aprano wrote:
> Is there a general Pythonic idiom for efficiently walking over part of a
> sequence without copying it first? Should there be?
What about using `itertools.islice()`:
for e in islice(a, 4):
pass
Ciao,
Marc 'BlackJack' Rintsch
--
http
ok ok , thanks to everybody ^_^
This HTML page that I need to put in my GUI is a little page with
JavaScript that run something like banners...
not gif or animated gif... but text... text randomly choosen by a
database that I can't control...
so, I need to put this "piece of browser" for looki
[EMAIL PROTECTED] wrote:
> Hi
>
> I have a problem with encoding non-ascii characters in a web
> application. The application uses Paste and Mako.
>
> The code is here: http://www.webudkast.dk/demo.txt
>
> The main points are:
>
> After getting some user generated input using
> paste.request.parse
On Jun 4, 1:47 pm, Mark Carter <[EMAIL PROTECTED]> wrote:
> walterbyrd wrote:
> > Anything else? Finance? Web-analytics? SEO? Digital art?
>
> I played with NodeBox a little while
> ago:http://nodebox.net/code/index.php/Home
> "NodeBox is a Mac OS X application that lets you create 2D visuals
> (s
hello again
i have another stupid question.
How i can set a qpushbutton invisible?
thanks Luca
--
http://mail.python.org/mailman/listinfo/python-list
On Wednesday 06 June 2007 9:32 am, luca72 wrote:
> hello again
> i have another stupid question.
> How i can set a qpushbutton invisible?
> thanks Luca
Call its hide() method.
Phil
--
http://mail.python.org/mailman/listinfo/python-list
> This completely loses me; what do you mean by "draw its own icon",
> and what does that have to do with rendering Web pages?
maybe "draw its own icons" wasn't the best (or the most accurate way)
of putting it. what i meant by that is this (from wikipedia):
"Qt uses its own paint engine and cont
Rob Wolfe wrote:
>
> You have to know the encoding of user input and then you
> can use ``input_encoding`` and ``output_encoding`` parameters
> of ``Template``. Mako internally handles everything as Python unicode
> objects.
> For example:
>
> t = Template(filename="templ.mako", input_encoding="i
Hi all,
I wanted to solve a small problem, and I have a function that is
typically meant only as a function belonging inside another function.
>From the inner function I want to access a variable from the outer
function like;
def A():
some_var = 1
def B():
some_var += 1
B()
But this
* Stef Mientki (Tue, 05 Jun 2007 23:57:15 +0200)
> after cleaning up a PC,
Uou purposely deleted things you had no clue about?!
> Python can't find any libraries anymore.
> But happily I've still one PC, where Python is running perfect.
> Now I always read about the environment variable "PYTHONPA
Jorgen Bodde wrote:
> Hi all,
>
> I wanted to solve a small problem, and I have a function that is
> typically meant only as a function belonging inside another function.
>>From the inner function I want to access a variable from the outer
> function like;
>
> def A():
> some_var = 1
> def B
Hello,
this is my first post to the list :-) I've looked around a bit before
asking, and since I haven't found... I'm here to ask my question.
I'm trying to ovveride attribute setting, but I haven't still found
the right way to use all the fancy __get__, __set__ and
__getattribute__ :-)
I would l
Hello,
My soft passively listen to a device sending +- 300 bytes of data each
second. After several hours of work, the soft abruptly stops receiving
data without any error, (while the device sends properly, of course)
and I need to restart it (the python soft) to "reactivate" the ports.
I read th
Giuseppe Di Martino wrote:
> Il Tue, 05 Jun 2007 23:57:15 +0200, Stef Mientki ha scritto:
>
>
>> hello,
>>
>> after cleaning up a PC, Python can't find any libraries anymore.
>> But happily I've still one PC, where Python is running perfect.
>> Now I always read about the environment variable "P
Thorsten Kampe wrote:
> * Stef Mientki (Tue, 05 Jun 2007 23:57:15 +0200)
>
>> after cleaning up a PC,
>>
>
> Uou purposely deleted things you had no clue about?!
>
Yes,
but you should have seen what a "professional" package like LabView /
LabWindows,
all had installed on my PC ;-)
>
In <[EMAIL PROTECTED]>, Francesco
Guerrieri wrote:
> Now the question is this:
> I would like to initialize such an object in this way:
> a = myList()
> a = [[1, 2, 3], [4, 5, 6, 7]]
> a.pad()
> # and now a _should_ contain [[1, 2, 3, ""], [4, 5, 6, 7]]
>
>
> Obviously this doesn't work, because
On 6/6/07, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote:
> In <[EMAIL PROTECTED]>, Francesco
> Guerrieri wrote:
>
> > Now the question is this:
> > I would like to initialize such an object in this way:
> > a = myList()
> > a = [[1, 2, 3], [4, 5, 6, 7]]
> > a.pad()
> > # and now a _should_ co
Hello All,
I'm using numpy to calculate determinants of matrices that look like
this (13x13):
[[ 0. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1.]
[ 1. 0. 1. 4. 1. 9. 4. 4. 1. 1. 4. 9. 4. 9.]
[ 1. 1. 0. 1. 4. 4. 9. 9. 4. 4. 1. 4. 1. 4.]
[ 1. 4. 1. 0. 9.
Neil Cerutti a écrit :
> On 2007-06-04, Michael Hoffman <[EMAIL PROTECTED]> wrote:
>> Wildemar Wildenburger wrote:
>>> While that is true, I guess it is commonplace to use i, j, k
>>> and n (maybe others) in constructs like
>>>
>>> for i in range(len(data)):
>>>do_stuff(data[i])
>>>
>>> Or shou
Hi Diez,
Thanks, I thought it worked similar to C++ where a higher compound
could access a lower section. But as it is not straight forward, I
think it is better to embed the functionality inside a class, and make
it a member variable .. now why didn't I think of that ;-)
Thanks,
- Jorgen
On 6/6
On 6 jun 2007, at 13.10, James Stroud wrote:
> Hello All,
>
> I'm using numpy to calculate determinants of matrices that look like
> this (13x13):
>
> [[ 0. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1.]
> [ 1. 0. 1. 4. 1. 9. 4. 4. 1. 1. 4. 9. 4. 9.]
> [ 1. 1. 0. 1. 4.
On 6 Jun., 05:44, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote:
> Python lists and tuples are "generic" containers: both can contain any
> kind of object, and each item may be of a different type: (1, 2.0, 3+0j,
> "four", u"Fünf", file("six")) is a tuple containing 6 items, all of
> differe
the otsu filter is a filter that takes a image and from its histogram
calculates the values at which the image should be thresholded to
acomplish an optimal seperation of a foregtround and background
object.
I didn't hear about, but I used it through the ImageJ tool. It gave me
optimal results. I'm
On Jun 6, 6:40 am, "Jorgen Bodde" <[EMAIL PROTECTED]> wrote:
> Hi Diez,
>
> Thanks, I thought it worked similar to C++ where a higher compound
> could access a lower section.
It can 'access a lower section'; what it can't do is *change* that
'lower section'; in your example case with an int, this
Ninereeds a écrit :
> Google Groups appears to have thrown away my original reply, so sorry
> if this appears twice...
>
> On Jun 4, 9:51 pm, "[EMAIL PROTECTED]"
> <[EMAIL PROTECTED]> wrote:
>
>> 'i' and 'j' are the canonical names for for loops indices in languages
>> that don't support proper i
Il Wed, 06 Jun 2007 12:01:13 +0200, stef ha scritto:
>>
> I ran your program but it didn't solve the problem (running Python,
> embedded in Delphi).
> I'm beginning to get the feeling that Python installation is a very
> complex case.
> Anyway thanks.
>
In the original post you don't mentio
Den Tue, 05 Jun 2007 17:41:47 -0500 skrev Michael Bentley:
> On Jun 5, 2007, at 5:13 PM, Michael Bentley wrote:
>
>
>> On Jun 5, 2007, at 4:17 PM, Thomas Dybdahl Ahle wrote:
>>
>>> Den Tue, 05 Jun 2007 15:46:39 -0500 skrev Michael Bentley:
>>>
But actually *that* is an orphan process. When
On 2007-06-06, Bruno Desthuilliers
<[EMAIL PROTECTED]> wrote:
> Neil Cerutti a écrit :
>> On 2007-06-04, Michael Hoffman <[EMAIL PROTECTED]> wrote:
>>> Wildemar Wildenburger wrote:
>>> I agree with Bruno that i and j should be used only for
>>> indices, but I'm usually less terse than that.
>>
>>
On Wed, 06 Jun 2007 00:22:40 +, Grant Edwards wrote:
>> I know that WxPython work only under Windows and PyGTK work only under
>> Linux...
>
> You 'know' wrong.
>
> wxPython works fine under Windows, Linux and OSX.
wxPython emulates Gtk (though using some native widgets, it also uses
some
On Jun 6, 8:55 am, "Eric Brunel" <[EMAIL PROTECTED]> wrote:
> Apparently:
Eric,
first of all, thanks!
> def hello(self):
> self.root.after_idle(self.root.lower)
> tkMessageBox.showinfo("Popup", "Hello!")
Well, this lowers the background frame but I want to keep it visible
under the pop
>File "build/bdist.linux-i686/egg/MySQLdb/cursors.py", line 147, in execute
>charset = db.character_set_name()
>
>InterfaceError: (0, '')
We got it working. It was caused by passing a database connection to a
module:
import MySQLdb
import module_name
connection = MySQLdb.connect(
': .' means ': ...' (its an outlook thing)
--
http://mail.python.org/mailman/listinfo/python-list
Hallo Gregor,
I have just come across your note "Reaching the real world" I have been
trying to program the ELV M232 with VB, but so far without success. I
would be very interested in your Python code if you still have it
available.
Would you please email it to: [EMAIL PROTECTED]
James Stroud je napisao/la:
> Hello All,
>
> I'm using numpy to calculate determinants of matrices that look like
> this (13x13):
>
> [[ 0. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1.]
> [ 1. 0. 1. 4. 1. 9. 4. 4. 1. 1. 4. 9. 4. 9.]
> [ 1. 1. 0. 1. 4. 4. 9. 9. 4. 4
I find 3 elements contribute significantly to becoming competent in python
1. a decent IDE so you can see the big picture (multiple files and
directories). I use Eclipse + PyDev because Eclipse supports other goodies
like CVS. I'm sure other IDE's are as good if not better, but who has time
to c
walterbyrd ha scritto:
> I mean other than sysadmins, programmers, and web-site developers?
>
> I have heard of some DBAs who use a lot of python.
>
> I suppose some scientists. I think python is used in bioinformatics. I
> think some math and physics people use python.
>
> I suppose some people
On Jun 6, 2007, at 7:11 AM, Thomas Dybdahl Ahle wrote:
> Den Tue, 05 Jun 2007 17:41:47 -0500 skrev Michael Bentley:
>
>> On Jun 5, 2007, at 5:13 PM, Michael Bentley wrote:
>>
>>
>>> On Jun 5, 2007, at 4:17 PM, Thomas Dybdahl Ahle wrote:
>>>
Den Tue, 05 Jun 2007 15:46:39 -0500 skrev Michael B
> but why is everybody alwasy talking about the "environment variable
> PYTHONPATH" ??
Because that variable can be used to additionally customize the search path.
But that doesn't imply that it is _all_ there is about python search
paths - and it would be pretty crappy if it was, because you can
ZioMiP wrote:
> I know that WxPython work only under Windows
WxPython works everywhere for me. I have some screenshots from Windows
98 - Vista, Mac OSX, and Debian GNU/Linux... all running the exact same
Python & wxPython code:
http://filebox.vt.edu/users/rtilley/public/find_ssns/index.html
"W. Watson" schrieb
> I have about a 1600 line Pythron program I'd like to
> make some simple mods to, but have really just a nodding
> acquaintance with Python and Tkinter.
> [...]
> Let's change that.
>
The book "Learning Python" from O'Reilly is excellent.
If you are into scientific progr
[EMAIL PROTECTED] wrote:
> I have read through the ACL instructions on MoinMoin's site, but I
> don't understand how to make it work. See
> http://moinmoin.wikiwikiweb.de/HelpOnAccessControlLists
>
> To me it seems to be saying that you have to create a page before you
> can set the ACL for it.
On Jun 4, 3:37 pm, walterbyrd <[EMAIL PROTECTED]> wrote:
> I mean other than sysadmins, programmers, and web-site developers?
>
> I have heard of some DBAs who use a lot of python.
>
> I suppose some scientists. I think python is used in bioinformatics. I
> think some math and physics people use py
On Wed, 06 Jun 2007 14:26:12 +0200, <[EMAIL PROTECTED]> wrote:
>> As an aside, having a window with overrideredirect(1) creating "normal"
>> windows such as the one created via tkMessageBox.showinfo is asking for
>> problems. What are you trying to do here?
>
> I just need a window without the titl
> I mean other than sysadmins, programmers, and web-site developers?
>
You might try the Python Success Stories
for a good source for finding a wide variety
of Python users and usage
http://pythonology.org/success
--
Stanley C. Kitching
Human Being
Phoenix, Arizona
---
Giuseppe Di Martino wrote:
> Il Wed, 06 Jun 2007 12:01:13 +0200, stef ha scritto:
>
>
>>>
>>>
>> I ran your program but it didn't solve the problem (running Python,
>> embedded in Delphi).
>> I'm beginning to get the feeling that Python installation is a very
>> complex case.
>> Anyw
Thanks for your responses. I've located the URL from the post above and will
check out the two books mentioned here. I used to do a lot of scientific
programming, but now just concentrate on science.
Martin Blume wrote:
> "W. Watson" schrieb
>> I have about a 1600 line Pythron program I'd like t
Can os.path.isfile(x) ever return True after os.remove(x) has
successfully completed? (Windows 2003, Python 2.3)
We had a couple of failures in a server application that we cannot yet
reproduce in a simple case. Analysis of the code suggests that the
only possible explanation is that the followin
On 2007-06-06, Samuel <[EMAIL PROTECTED]> wrote:
> On Wed, 06 Jun 2007 00:22:40 +, Grant Edwards wrote:
>
>>> I know that WxPython work only under Windows and PyGTK work only under
>>> Linux...
>>
>> You 'know' wrong.
>>
>> wxPython works fine under Windows, Linux and OSX.
>
> wxPython emulat
I know basic Python, have basic experience using FTP... but haven't really
used the ftplib before. Am trying to read the 18.8 and 7.2 docs but
struggling.
I'm trying to figure out how to use FTP/SSL (FTPS) - just as a client. Can I
do this in Python? Is everything I need in ftplib? Where else do
On 6/6/07, Samuel <[EMAIL PROTECTED]> wrote:
> On Wed, 06 Jun 2007 00:22:40 +, Grant Edwards wrote:
>
> >> I know that WxPython work only under Windows and PyGTK work only under
> >> Linux...
> >
> > You 'know' wrong.
> >
> > wxPython works fine under Windows, Linux and OSX.
>
> wxPython emulat
[EMAIL PROTECTED] wrote:
> Can os.path.isfile(x) ever return True after os.remove(x) has
> successfully completed? (Windows 2003, Python 2.3)
>
> We had a couple of failures in a server application that we cannot yet
> reproduce in a simple case. Analysis of the code suggests that the
> only poss
[EMAIL PROTECTED] wrote:
> Can os.path.isfile(x) ever return True after os.remove(x) has
> successfully completed? (Windows 2003, Python 2.3)
As an afterthought, have you tried NTFS auditing, or
directory monitoring, such as:
http://timgolden.me.uk/python/win32_how_do_i/watch_directory_for_chang
On Wed, 06 Jun 2007 14:43:35 +, Grant Edwards wrote:
> On 2007-06-06, Samuel <[EMAIL PROTECTED]> wrote:
>> On Wed, 06 Jun 2007 00:22:40 +, Grant Edwards wrote:
>>> wxPython works fine under Windows, Linux and OSX.
>>
>> wxPython emulates Gtk
>
> What? On some platforms (Linux), wxPython
On 6/6/07, Samuel <[EMAIL PROTECTED]> wrote:
> On Wed, 06 Jun 2007 14:43:35 +, Grant Edwards wrote:
>
> > On 2007-06-06, Samuel <[EMAIL PROTECTED]> wrote:
> >> On Wed, 06 Jun 2007 00:22:40 +, Grant Edwards wrote:
> >>> wxPython works fine under Windows, Linux and OSX.
> >>
> >> wxPython emu
[EMAIL PROTECTED] wrote:
>
> The application is multithreaded so it is possible that another thread
> writes to the file between the "remove" and the "isfile", but at the
> end of the failure the file is actually not on the filesystem and I
> don't believe there is a way that the file could be r
On Jun 6, 6:47 am, Tommy Nordgren <[EMAIL PROTECTED]> wrote:
> On 6 jun 2007, at 13.10, James Stroud wrote:
>
>
>
> > Hello All,
>
> > I'm using numpy to calculate determinants of matrices that look like
> > this (13x13):
>
> > [[ 0. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1.]
> > [ 1.
On Wed, 06 Jun 2007 09:45:48 -0500, Chris Mellon wrote:
> On 6/6/07, Samuel <[EMAIL PROTECTED]> wrote:
> In the general case, wxWidgets wraps (not emulates) Gtk. I don't believe
> that there are any common controls left which are still emulated (maybe
> the list control? I'm not sure - I don't fol
hi,
can i append a item to a list using criterias:
- UNIQUE - if there already exist don't append
and/or
- SORTED - INSERT in the correct place using some criteria?
tks in advance
--
http://mail.python.org/mailman/listinfo/python-list
rhXX wrote:
> hi,
>
> can i append a item to a list using criterias:
>
> - UNIQUE - if there already exist don't append
> - SORTED - INSERT in the correct place using some criteria?
Both can be accomplished using the bisect-module. It will give you the
leftmost/rightmost insertion point for
[EMAIL PROTECTED] wrote:
> Can os.path.isfile(x) ever return True after os.remove(x) has
> successfully completed? (Windows 2003, Python 2.3)
>
> We had a couple of failures in a server application that we cannot yet
> reproduce in a simple case. Analysis of the code suggests that the
> only po
On 2007-06-06, rhXX <[EMAIL PROTECTED]> wrote:
> hi,
>
> can i append a item to a list using criterias:
>
> - UNIQUE - if there already exist don't append
Consult the Python Docs about sets.
> and/or
>
> - SORTED - INSERT in the correct place using some criteria?
Consult the Python Docs about th
On 6/6/07, Samuel <[EMAIL PROTECTED]> wrote:
> On Wed, 06 Jun 2007 09:45:48 -0500, Chris Mellon wrote:
>
> > On 6/6/07, Samuel <[EMAIL PROTECTED]> wrote:
> > In the general case, wxWidgets wraps (not emulates) Gtk. I don't believe
> > that there are any common controls left which are still emulated
Thanks for the quick and detailed response!
> The most likely bet would seem to be a race condition
> as you suggest below. Doesn't have to be from a thread
> in your program, although I assume you know best about
> your own filesystem ;)
My first thought, after discounting the os.remove early r
walterbyrd wrote:
> I mean other than sysadmins, programmers, and web-site developers?
> Anything else? Finance? Web-analytics? SEO? Digital art?
IT Security Analysts use it... see code and screenshots... these are not
professional programmers:
http://filebox.vt.edu/users/rtilley/public/find_ss
On Jun 6, 7:49 am, azrael <[EMAIL PROTECTED]> wrote:
> the otsu filter is a filter that takes a image and from its histogram
> calculates the values at which the image should be thresholded to
> acomplish an optimal seperation of a foregtround and background
> object.
So I learned from the PDF I l
Thanks for the response!
>
> I'd take the time to really examine the multiple threads of work you're
> running
> to make sure one of them isn't removing the file just as another creates it.
> Better still, use a locking semaphore around the code the creates/deletes the
> file
> to guarantee mutu
>
> Is the file on a network drive by any chance?
>
> Diez
No, but the server is actually a VMWare VM and the drive is a virtual
drive.
I'm thinking that this may be significant as it may be that the VMWare
VHD driver is the "flashy software running which intercepts OS file-
manipulation calls" t
> Don't suppose you've got some kind of flashy software
> running which intercepts OS file-manipulation calls for
> Virus or Archiving purposes?
>
> TJG
As I mentioned in another reply, this server is virtual and so is the
drive. I'm wondering if this might also be significant.
Paul
--
http://
Neil Cerutti wrote:
> On 2007-06-06, rhXX <[EMAIL PROTECTED]> wrote:
>> and/or
>>
>> - SORTED - INSERT in the correct place using some criteria?
>
> Consult the Python Docs about the heapq module.
Heaps (as produced by heapq) are not sorted. This will not produce
correct results unless one then
Michel Claveau wrote:
> Hi!
>
> This image show IronPython.
> But... what is it?
>
> Link :
> http://msdn2.microsoft.com/en-us/vstudio/bb510103.vss_IronPython_large.jpg
What is generally referred to as "Python", available from python.org, is
really the 'CPython' runtime and associated libraries
Hi all,
I'm using ftplib to transfer large files to remote sites. The process
seems to work perfectly with small files, but when the file gets to
large ~20GB I begin getting errors that sometimes seem to be non-
fatal, and other times the transfer does not complete. I've debugged
the hell out of
Hello all ...
Sorry for jumping in and askig with 0 lurk-time.
I am trying to do what (I think) should be fairly straightforward. I have a
list of items that i want to sort into buckets. in item 1 of each line is the
object I want to sort and in item 2 is the name of the bucket. I am making it
On Jun 6, 6:35 pm, Josiah Carlson <[EMAIL PROTECTED]>
wrote:
ok, tks to all for ur help and comments!!!
> Neil Cerutti wrote:
> > On 2007-06-06, rhXX <[EMAIL PROTECTED]> wrote:
> >> and/or
>
> >> - SORTED - INSERT in the correct place using some criteria?
>
> > Consult the Python Docs about the he
On 2007-06-06, Josiah Carlson <[EMAIL PROTECTED]> wrote:
> Neil Cerutti wrote:
>> On 2007-06-06, rhXX <[EMAIL PROTECTED]> wrote:
>>> and/or
>>>
>>> - SORTED - INSERT in the correct place using some criteria?
>>
>> Consult the Python Docs about the heapq module.
>
> Heaps (as produced by heapq) are
[EMAIL PROTECTED] wrote:
> Can os.path.isfile(x) ever return True after os.remove(x) has
> successfully completed? (Windows 2003, Python 2.3)
Yes. If another application has opened the file with FILE_SHARE_DELETE,
os.remove succeeds but the file doesn't actually disappear until the last open
ha
I read that when the serial port encounters an error (frame error or
so, I imagine?) it stop receiving data until the library function
"getCommError()" is called.
Troels:
I think you are right
Am I on the good track? Can I call this function from my pyserial
code?
Why pyserial does'nt raise a s
James Stroud wrote:
> Hello All,
>
> I'm using numpy to calculate determinants of matrices that look like
> this (13x13):
>
> [[ 0. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1.]
[snip]
> But I have a feeling I'm exceeding the capacity of floats here. Does
> anyone have an idea for how to
Hi,
I'm quite a newbee on Python and have started developing apps on
PythonCE.
My .pyc files are running fine under windows mobile 5 but I'm a bit
stuck on how to generate single file executable packages under such
platform, nor I've found a lot of reference about it - seems to be
quite a niche.
I am trying to use the advisory locking with fcntl over NFS (thus, me
choosing fcntl instead of flock and friends).
I have the following code:
lockdata = struct.pack ("hhllhh", fcntl.F_RDLCK, 0, 0, 0, 0, 0)
print self.fd, type (self.fd), len (lockdata), type (lockdata)
ret = fcntl.fcntl (self.fd,
On Jun 6, 12:30 pm, "Roger Upole" <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > Can os.path.isfile(x) ever return True after os.remove(x) has
> > successfully completed? (Windows 2003, Python 2.3)
>
> Yes. If another application has opened the file with FILE_SHARE_DELETE,
> os.remove
James Stroud wrote:
> Hello All,
>
> I'm using numpy to calculate determinants of matrices that look like
> this (13x13):
>
> [[ 0. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1.]
> [ 1. 0. 1. 4. 1. 9. 4. 4. 1. 1. 4. 9. 4. 9.]
> [ 1. 1. 0. 1. 4. 4. 9. 9. 4. 4. 1.
On 6/5/07, abhiee <[EMAIL PROTECTED]> wrote:
> Hello , I have just begun learning python...and I'm loving it...Just
> wanted to ask you that how much time would it take me to learn python
> completely and which languages should i learn alongwith python to be a
> good professional programmer?...Now
We used Python with wxPython GUI Toolkit to build this simple image
uploader:
http://www.mytago.com/uploader/
Even with no previous Python or wxPython experience at all, we could
get it working in a very short time.
--
www.mytago.com
--
http://mail.python.org/mailman/listinfo/python-list
In <[EMAIL PROTECTED]>, Mike Meyer <[EMAIL PROTECTED]> typed:
> In 2.5.1 (and 2.[45], but not 2.3):
Sigh. Sorry 'bout that. Since I started it, the breakage is:
Python 2.5.1 (r251:54863, May 15 2007, 15:31:37)
[GCC 3.4.6 [FreeBSD] 20060305] on freebsd6
Type "help", "copyright", "credits" or "lic
In 2.5.1 (and 2.[45], but not 2.3):
--
Mike Meyer <[EMAIL PROTECTED]> http://www.mired.org/consulting.html
Independent Network/Unix/Perforce consultant, email for more information.
--
http://mail.python.org/mailman/listinfo/python-list
James Stroud wrote:
> I'm using numpy to calculate determinants of matrices that look like
> this (13x13):
>
> [[ 0. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1.]
> [ 1. 0. 1. 4. 1. 9. 4. 4. 1. 1. 4. 9. 4. 9.]
> [ 1. 1. 0. 1. 4. 4. 9. 9. 4. 4. 1. 4. 1. 4.]
>
Marco Aloisio <[EMAIL PROTECTED]> writes:
> Hi, I'm a Python newbie;
> I have to write a simple webserver, and I need to
> implement a basic authentication as specified in the RFC2617.
> I wonder if there is a Python library for doing that.
twisted.web2 is one.
John
--
http://mail.python.org
On Jun 6, 5:57 am, Michele Simionato <[EMAIL PROTECTED]>
wrote:
>
> IMO there is a third way: use wsgiref and/or paste.
>
> Michele Simionato
Yes, Paste can handle request and sessions among other things.
Also i can recommend Mako for templating.
WSGI is a bit lowlevel.
/Martin
--
http://
On Jun 6, 1:19 pm, Marco <[EMAIL PROTECTED]> wrote:
> Hi,
> I'm quite a newbee on Python and have started developing apps on
> PythonCE.
>
> My .pyc files are running fine under windows mobile 5 but I'm a bit
> stuck on how to generate single file executable packages under such
> platform, nor I've
En Wed, 06 Jun 2007 13:24:54 -0300, Jason White <[EMAIL PROTECTED]>
escribió:
> I am trying to do what (I think) should be fairly straightforward. I
> have a list of items that i want to sort into buckets. in item 1 of each
> line is the object I want to sort and in item 2 is the name of the
En Wed, 06 Jun 2007 13:39:57 -0300, <[EMAIL PROTECTED]> escribió:
> I'm using ftplib to transfer large files to remote sites. The process
> seems to work perfectly with small files, but when the file gets to
> large ~20GB I begin getting errors that sometimes seem to be non-
> fatal, and other ti
En Wed, 06 Jun 2007 16:20:09 -0300, Mike Meyer <[EMAIL PROTECTED]> escribió:
> In 2.5.1 (and 2.[45], but not 2.3):
Care to tell some details?
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
James Stroud wrote:
> For this matrix, I'm getting this with numpy:
>
> 2774532095.971
>
> But I have a feeling I'm exceeding the capacity of floats here.
> Does anyone have an idea for how to treat this?
Not if you don't state your requirements more precisely. E. g. what
precision do you n
Thanks in advance,
Hi, I am trying to put tkSnack's Minwave.py demo into Pmw
Scrollcanvas, without success.
I have included the sample, the error message and the documentation
tkSnack says should work.
Can someone tell me what I am doing wrong? and If someone has some
sample code it would be great
"Thomas Jollans" <[EMAIL PROTECTED]> writes:
> "Adam Atlas" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > As far as I know, there isn't a standard idiom to do this, but it's
> > still a one-liner. Untested, but I think this should work:
> >
> > import re
> > from htmlentitydef
1 - 100 of 128 matches
Mail list logo