Anyone has any info if there's something similar to Newt lib for win32?
Thanks
Gabriel
--
http://mail.python.org/mailman/listinfo/python-list
In one of my python programs has a data file I need to load. My solution
was to say:
if os.path.exists(os.path.join(os.getcwd(), "config.xml")):
self.cfgfile = os.path.join(os.getcwd(), "config.xml")
Which works fine... as long as you're *in* the script's home directory
when yo
vary from 1 to 600 (it's not linear as items got deleted the
idx should not be reused)
will it still be an easy solution or just a waste of resources (having
a 600-sized list for 100 elements)
I'm very new to python and apreciate any hints on that.
Thanks
Gabriel
--
http://mail.
ssion on them for custom data...
Tupples? the tutorial mentions one of it's uses 'employee records from
a database' but unfortunatly don't go for it...
i think the 'ideal' data model should be something like
({'id': 0, 'desc': 'dog food', 'price': '12,20'}, ...)
But i have no idea how i'd find some item by the ID within it withouy
using some loops
Thanks!
Gabriel
--
http://mail.python.org/mailman/listinfo/python-list
I'm starting to write a POS application UI's module.
There's no mouse, just a bunch of global shortcuts.
the problem is that TK doesn't have global shortcuts! Is there a
work-around or i will have to attach 80 or so bindings for every input
element?
Thanks,
Gabriel
--
ht
Is it just me that can't find a full reference in the docs?
I wanted a list of all the methods of dict for example... where can i find it?
Thanks, and sorry if this question is just dumb, i really can't find it
--
http://mail.python.org/mailman/listinfo/python-list
Max M wrote:
If it's not to learn, and you simply want it to work, try out this
library:
http://zope.org/Members/chrisw/StripOGram/readme
>>> stripogram.html2safehtml('''first > last''',valid_tags=('i','a','br'))
'first > last'
>>> stripogram.html2safehtml('''first < last''',valid_tags=('i','a',
com. The risk of
devious programming is too high to bother. So I pay Verisign or
Authorizenet one cent on the dollar. In exchange, my clients' identities
aren't being stolen.
Hope this help,
Gabriel.
--
http://mail.python.org/mailman/listinfo/python-list
is
optimized to only load a module into memory once, I can never make more
than one connection from the same Python script.
Any ideas to work around this would be great.
Gabriel
--
http://mail.python.org/mailman/listinfo/python-list
look into the csv module. (for comma-separated-value text files.)
Tom Strickland wrote:
>I have a file that contains many lines, each of which consists of a string
>of comma-separated variables, mostly floats but some strings. Each line
>looks like an obvious tuple to me. How do I save each lin
> > users. For example, from their FAQ, it seems that no precompiled
> > binaries will be provided. Support for comercial compilers will not be
> > built in, only for gcc (through Cygwin?).
>
> Isn't this just the same thing with a different spin. There was always
> an available distribution for
On Mon, 07 Feb 2005 20:56:44 -0800, Courageous <[EMAIL PROTECTED]> wrote:
> Follow the copyright holder's wishes.
>
> That's fair. After all, it's free, so they're doing you a damn
> big favor.
I'm terrible sorry to extend this topic even furter, but it's silly,
not to say dull to think like that
> >>Considering the fact that the Qt DLL exist by themselves, that the
> >>version used is the one provided by Qt, and that the EXE uses a
> >>standard, open way to communicate with it, the above does seem to say
> >>this use would be valid.
> >>
> >>
> >
> >http://www.gnu.org/licenses/gpl-faq.
Jussi Jumppanen wrote:
The latest release of the Zeus for Windows programmer's
editor is now available.
So is this mentioned here on the Python mailing list because Zeus was
written in Python, or is this just targeted spam for a commerical product?
--
http://mail.python.org/mailman/listinfo/python
> However, imagine simple situation:
> 1. I write proprietary program with open plugin api. I even make the api
> itself public domain. Program works by itself, does not contain any
> GPL-ed code.
No need to continue. You write something that uses a plugin, Eolas
sues you. Don't have to mind about
g i looked
into it was the pack method and it talked about the grid only
...i'm still using "practical programing in Tcl and Tk" for my tk needs :)
thanks again,
Gabriel
--
http://mail.python.org/mailman/listinfo/python-list
7;m i exagerating or do you people also comes to this some times?
The other choice i think i had was to use semantic names instead of
semantic and hierarchical ones.
Gabriel
PS: i resisted the force of make an example using
ButtonSpamSpamSpamSpamSpamEggsSpam
--
http://mail.python.org/mailman/lis
I've made UPS and FedEx shipping rate request modules in python using
XML. Is there an interest in putting this on the web?
--
http://mail.python.org/mailman/listinfo/python-list
i'm using almost every widget property from my pyTk programs in the
form of resources, like:
self.tk.option_add ( "*InputClass*background", "White" )
In the widget creation i have only the Class and the Command
attribute, but i'm having to add some tk options to the geometry
method, in the case,
27;t for F10 showing nothing.
I get the return code just to use the same function (and same biding)
for the 12 buttons since i can't pass arguments to the Command option
in tk. ...And i'm already considering adding a L1 and L2 check instead
of F11 and F12 and a 'empty' check for the F10... But that would be
plain ugly.
Thanks,
Gabriel
--
http://mail.python.org/mailman/listinfo/python-list
On Sat, 12 Feb 2005 19:44:25 -0600, Jeff Epler <[EMAIL PROTECTED]> wrote:
> The reason that F10 does nothing is because there is already a binding
> on all for . [...]
> If you want to get rid of this binding, you would do it with something
> like
> w.bind_all("", "")
> for some widget w.
That
It took me no less than an hour and likely more just to find
the documentation pages on each site. As for putting them up on the web,
I should be able to get them up by the end of the week.
Gabriel.
--
http://mail.python.org/mailman/listinfo/python-list
one so far.
Gabriel.
--
http://mail.python.org/mailman/listinfo/python-list
t like that.
Thanks,
Gabriel
--
http://mail.python.org/mailman/listinfo/python-list
Jonas Meurer wrote:
def i_update(image, imgid):
image = "%s" % (image)
sql_exec = """UPDATE Images SET Image='%s' WHERE ImgID = '%s'
""" % (image, imgid)
o = open("/tmp/file.jpg", "w")
o.write(image)
o.close()
db_connect.cursor.execute(sql_e
i'm writting an application that will use Tinker in a newer future.
Now it's console only. I simply ommit some data on the display,
print() some other and go on. The problem is that i can't test the
actions tiggered by special keys, like Page Up/Down or the F1...12
Right now i'm using raw_input()
red from sourceforge!
Thanks,
Gabriel.
--
http://mail.python.org/mailman/listinfo/python-list
to double-click
on any page element with a big block-border around it, right? If so,
nothing happened for me. :(
Gabriel.
--
http://mail.python.org/mailman/listinfo/python-list
Robert Brewer wrote:
I assume you're using the demo? My copy of Firefox has an error browser
under Tools->Javascript Console. Does the double-click report any error
there? Make sure you clear the list before trying, since errors from all
other webpages gt dumped in the same list.
I was using th
GMane Python wrote:
Hello
I was wondering if there is an existing function that would let me
determine the difference in time.
For a more robust solution, checkout Python's profile module.
http://docs.python.org/lib/profile.html
--
http://mail.python.org/mailman/listinfo/python-list
I would recommend looking into sorting like objects with the
__getitem__ method.
http://groups-beta.google.com/group/comp.lang.python/browse_thread/thread/b2d0580792b94a7/a707054ec3302a6e
has a lively discussion on this topic.
Search google for "__getitem__" and "sort" for more information.
Ron_Adam wrote:
To me ":=" could mean to create a copy of an object... or should it
be "=:" ?
Or how about ":=)" to mean is equal and ":=(" to mean it's not.
Then there is ";=)", to indicate 'True', and ':=O' to indicate 'False'
Not to mention "(_ | _)" for asserts!
--
http://mail.python.org/m
On Apr 10, 2005 11:08 PM, Bengt Richter <[EMAIL PROTECTED]> wrote:
> On Sat, 9 Apr 2005 19:22:16 +0200, "Fredrik Lundh" <[EMAIL PROTECTED]> wrote:
> open('mywidget_v2.txt','w').write(repr(mywidget.textview)
How about a pickle hook?
You'd just unpack the pickle data, and end up with a pointer
Usually when I access db search results it's something like this:
cursor.execute("select A1,A2,A3,A4 from B where C")
for (a1,a2,a3,a4) in cursor.fetchall():
stuff()
But sometimes the point at which I use the data returned is not with the
search, and so having the ability to access the results
Simon Brunning wrote:
On Apr 12, 2005 4:32 PM, Gabriel Cooper <[EMAIL PROTECTED]> wrote:
Usually when I access db search results it's something like this:
cursor.execute("select A1,A2,A3,A4 from B where C")
for (a1,a2,a3,a4) in cursor.fetchall():
stuff
Given the multidimensional list l:
l = [ {'v1': 1, 'v2': 2},
[ {'v1':4, 'v2': 7},
{'v1': 9, 'v2': 86},
[ {'v1': 77, 'v2': 88}]
]
]
I want to access specific items the indices of which are stored in
another list. For now, I created a function
unt < 5:
count += 1
print "%s: %s" % (ThreadName, time.ctime(time.time()) )
eventlet.sleep(delay)
print 'Before call threads'
evt1 = eventlet.spawn(mainOfSyncrepl, "Thread-1",)
evt2 = eventlet.spawn(print_time, "Thread-2",)
e
x27;)
Please advise me how to fix this issue.
Kind regards.
2016-01-18 12:03 GMT+01:00 David Gabriel :
> Dears,
>
> I have an issue when I use eventlet Api to create parallel threads.
> In fact, when I run the below code, only the program dealing with the
> synchronozation with
Hey there,
I just started out python and I was doing a activity where im trying to find
the max and min of a list of numbers i inputted.
This is my code..
num=input("Enter list of numbers")
list1=(num.split())
maxim= (max(list1))
minim= (min(list1))
print(minim, maxim)
So the problem is th
Sorry for the multiple questions but my while loop is not working as intended.
Here is the code :
n = 1
list1 = []
count = 0 #amount of times program repeats
steps = 0 # amount of steps to reach 1
step_list = []
while n!=0:
n= int(input())
list1.append(n)
length = len(list1)
while count
Hello,
I need some help in downloading videos from flash applications in web using
python. Is there any lib to deal with flash player using python?
The videos I need to download are, in fact, live streaming content.
You can see an example here:
http://vejoaovivo.com.br/sc/itapema/avenida-nereu
Thanks for the Hint... But it seems not to support the website i mentioned...
Is there a way to make it possible for any kind of video player in the net?
Flash player... Since it's not a ordinary video... I'm trying to record &
download a live streaming video!!
Thx
--
https://mail.python.org/
I appreciate your help. I'm just afraid that Youtube-DL doesn't allow me to
record or download a LIVE STREAMING VIDEO. Do you guys think it is possible,
since I make some adjustments into the code of the library?
--
https://mail.python.org/mailman/listinfo/python-list
Hi Paul, I presume the stream operator doesn't want to prevent me from
downloading or recording the videos. I just wanna know more about some lib that
could be used to deal with Flash Player Applications... Or possibly, anything
that could lead me to be able to get those streaming videos.
Thx
-
The original plan was doing it using python. But, anyway, I should build a
robot program to do that task for me... Because I need to capture hundreds of
hours of different videos... You mean that is difficult because it's Python...
or it's difficult because it's a Flash Application?
Thx
--
htt
Mark Lawrence wrote:
> I don't actually know, but could you please provide some context and
> write in plain English, those damn ... things are extremely annoying.
>
Hi, Mark.
I am developing a research project, which includes video analysis (computer
vision, big data, data mining, etc). Th
odule' object has no attribute '_extension_registry'
Looking at cPickle.c, it imports the copy_reg module and then looks for
its "_extension_registry" attribute. Maybe your copy_reg.py is broken, or
you have another copy_reg.py hiding the standard one.
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
STORE_NAME 0 (foo)
9 LOAD_CONST 1 (None)
12 RETURN_VALUE
To get at the actual function code, one should use
f.func_code.co_consts[0]; this would be the 'code' parameter for
types.FunctionType. Very complicated, really; nothing can beat the 'def'
statement for defining a function ;)
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
2.6.7 (or apply
only the .py changes)
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
set the PYTHONPATH environment variable, or edit the site.py
standard module. This may be fine in your development environment, but I
would never do that in production.
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
invalid and knows she cannot
re-use the received body and has to issue the second request and waits
again and ...
Try with different URLs for each request:
http://localhost:8080/a
http://localhost:8080/b
http://localhost:8080/c
and you'll see they all are processed in parallel.
--
Ga
block, or perhaps locals();
# modify accordingly
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
user who can read the
database file can connect to it.
sqlite does not have internal users, and does not implement GRANT/REVOKE
statements.
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
ments is encoded in its 'format'
parameter, and is not stored anywhere.
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
En Fri, 07 Oct 2011 03:23:57 -0300, selahattin ay
escribió:
hi all. I want to get my ftp list and send the list to my mail adress...
my codes are
And your problem is...?
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
s a string. retrlines, by default, outputs to stdout, isn't
very useful. Try this:
def posta_olustur():
...
lines = []
baglanti.retrlines("LIST", lines.append)
text = '\n'.join(lines)
posta.attach(MIMEText(text))
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
1)
I'd say it's a problem with the _socket module; did the unit tests flag
anything when you built Python?
On Windows, Python 2.7.1:
server_address=('lepton', 1)
sock.bind(server_address)
sock.getsockname()
('127.0.0.1', 1)
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
open.
[1]
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/openfiles.mspx
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
ng, and stops as soon as it sees the '\0' following
the 'T' in 'Testing'. Either use wprintf("Testing..."), or encode the
Unicode object into a byte string before calling:
printf("Testing...".encode(sys.stdout.encoding)), or tell ctypes about
the right parameter type:
printf = msvcrt.printf
printf.argtypes = [c_char_p]
printf("Testing\n")
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
s
print list(itertools.islice(my_generator(), 10))
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
the Python version you're using. Also, a small, complete,
runnable code example showing the problem would be very valuable. Usually,
in building such example, you may well find out where your problem is.
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
el módulo
PYTHON24.DLL de 016f:1e0ab51f.
Registros:
EAX=1e19d1af CS=016f EIP=1e0ab51f EFLGS=00010206
EBX=00841f80 SS=0177 ESP=0071e6ec EBP=
ECX=73962000 DS=0177 ESI=1e06a1b0 FS=1a07
EDX=1e19d1b0 ES=0177 EDI= GS=
Any ideas?
Gabriel Genellina
Softlab SRL
--
http://mail.python.org/mailman/listinfo/python-list
irly easy.
All that would be needed is a flag with each variable.
Just my tupence,
Gabriel.
--
/---\
| Any intelligent fool can make things bigger, more complex,|
| or more violent. It takes a touch of genius - and a
I understand the Wikipedia article on Polymorphism
( http://en.wikipedia.org/wiki/Polymorphism_%28computer_science%29 )
that it doesn't make sense to talk about polymorphism in a fully dynamically
typed language -- does the Python community agree?
cheers,
ga
Andrew MacIntyre ha escrito:
> Gabriel Genellina wrote:
> > File "C:\Apps\Python\Lib\threading.py", line 218, in wait
> > remaining = endtime - _time()
> > IOError: [Errno 2] No such file or directory
> >
> > The error appears to be insi
Hi,
At the company I work for we've embedded Python 2.4.1 in a C++
application. We execute multiple scripts concurrenlty, each one in its
own interpreter (created using Py_NewInterpreter()).
We are sharing a certain instance between interpreters because its to
expensive to instantiate that class ev
Hello, I'm looking for a regular _expression_ which will match strings as follows: if there are symbols a, b, c and d, then any pattern is valid if it begins with a and ends with d and proceeds in order through the symbols. However, at any point the pattern may reset to an earlier position in the s
go on this list.
But does anyone know of a complete discussion/analysis of patterns in
Python? Books, articles, web pages...
Unfortunately the pattern-SIG is now defunct...
Gabriel Genellina
Softlab SRL
__
Pre
At Saturday 5/8/2006 22:22, Alex Martelli wrote:
> But does anyone know of a complete discussion/analysis of patterns in
> Python? Books, articles, web pages...
Thanks to all of you for your pointers on this subject!
Gabriel Genellina
Softl
mitted, and then build a compatible Request.
On many sites you don't even need to *get* the login page -nor parse
it-, just posting the right Request is enough to log in successfully.
Gabriel Genellina
'@'.join(('gagsl-
At Tuesday 8/8/2006 12:39, Dieter Deyke wrote:
> Is there a way to access yahoo mail via its web interface? If so, can
> someone give some pointers?
www.freepops.org
Very generic almost-anything-to-pop3, but it's not written in Python,
uses LUA instead.
Gabriel Genellina
ot;images" instead of just the file name. See, when
I go to use a particular image name later on, it won't do me much good
if I don't have the path to it.
Look at os.path.join()
Gabriel Genellina
Softlab SRL
__
if dirnames[i].startswith('.'): del dirnames[i]
return imageList
reversed() because you need to modify dirnames in-place, so it's
better to process the list backwards.
Gabriel Genellina
Softlab SRL
__
idence (in fact it isn't...)
URLs dont necesarily point to a real file on a real file system (Zope
is an example).
Gabriel Genellina
Softlab SRL
__
Preguntá. Respondé. Descubrí.
Todo lo que querí
(tok)>0:
self.append(tok)
tok = ''
return tok
ls = mylist()
and use: tok = ls.addTok(tok) whenever the original code says addTok(tok)
Gabriel Genellina
Softlab SRL
__
Preguntá. R
n't seem to find the answer. [...]
When I run the Two.py file, I get the expected output but I'd like to
eliminate the from line in two.py.
Embody the Zen of Python:
http://www.python.org/dev/peps/pep-0020/
print "Hello world!"
if kbhit(): stop = getch()=='q'
kbhit() is used to detect when a keypress is waiting, so the next
getch() will not block.
Gabriel Genellina
Softlab SRL
__
Preguntá
real interoperability, maybe just extending to support long
integers could be easier...
I remember extending once to support NaN's, moving to SOAP
was too much effort for that application.
Gabriel Genellina
S
es library...
print '\x1b[34m%8s\x1b[0m' % 'TEST'
Gabriel Genellina
Softlab SRL
__
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuest
ter than the network overhead, and the
associated multiple db calls...
should... are you sure?
How many rows on the database? how many rows to compare? network overhead?
Do some timing/performance tests to evaluate that. Things aren't
always as you expect.
Gabr
true in general for any language, not only Python.
> Assuming this is true, how do i find where the
> tabs are in the file so that I can distinguish between the different criteria?
>Assuming this is not true, does anyone suggest another way to do it?
Look at the csv module: http://docs.
you could use:
import MyPackage
MyPackage.printHelloWorld()
Note: In order to be able to import MyPackage, the directory
MyPackage must be a subdir of anything listed on sys.path. It's
unlikely that C:\MyPackage would work. Try using
python\lib\site-packages instea
R, Y = a
if poly(10, M,O,N,E,Y) == poly(10, S,E,N,D) + poly(10, M,O,R,E):
which is infinitely more legible (and a bit compact, too).
(poly is left as an exercise: def poly(x, *args): )
And a,b,s are too short names...
Gabriel Genellina
Softlab SRL
ython book, but all
take a very introductory approach.
Any recommendation would be appreciated.
I think you need an SQL/database course rather than a Python one.
Gabriel Genellina
Softlab SRL
__
Preguntá. Res
you tried os.system("cabel.py")
Gabriel Genellina
Softlab SRL
__
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
¡Probalo ya!
htt
At Monday 14/8/2006 10:22, 3KWA wrote:
# ... but the actual message sending in a loop to send one email each
(didn't work)
Specify "didn't work" at least... see
http://www.catb.org/~esr/faqs/smart-questions.html
Gabriel G
At Monday 14/8/2006 12:35, zxo102 wrote:
Thanks for your guys. I got it. I thought Queue can be used anywhere
in the code and the second b.get() would return a "None".
You can use a list as a generic queue, with append (== push) and pop(0)
Gabriel Genellina
S
?
They are "true" and "real" international standards. Do you know what
ISO is? HTML 4.01 is ISO/IEC 15445; see https://www.cs.tcd.ie/15445/15445.html
Gabriel Genellina
Softlab SRL
__
Preguntá. Resp
Hi,,,
Is possible disable the close button in KDE management window? Using
python+qt?
thanks
--
http://mail.python.org/mailman/listinfo/python-list
At Thursday 17/8/2006 00:25, subramanian2003 wrote:
From where can I get the python tutorial for arcgis customisation?.
Tried google?
Gabriel Genellina
Softlab SRL
__
Preguntá. Respondé. Descubrí.
Todo
lorer -some misbehaving context menu
extension-. See
<http://groups.google.com/group/microsoft.public.windowsxp.basics/browse_frm/thread/5d7a111f31fa7901>
But, maybe next time, you could try and exclude all other variables
(wxWindows, py2exe...) to keep things simple...
Gabriel Genell
o use
your custom HTTPConnection.
Pass your custom HTTPHandler to build_opener and it will use it.
Gabriel Genellina
Softlab SRL
__
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imagi
example -function with no keyword arguments- use the much
simpler implementation from
<http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/325205> NOT
the original recipe but the comment by Chris Spencer titled "A
working example".
Gabriel Genel
unique object used as "nothing" or "no value".
Try reading the Python tutorial, it's easy and you will learn a lot of things.
Gabriel Genellina
Softlab SRL
__
Preguntá. Respondé. Desc
erate now the docs for pychart:
python c:\apps\python\lib\pydoc.py -w c:\apps\python\lib\site-packages\pychart
Gabriel Genellina
Softlab SRL
__
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo qu
#x27;s a pretty
standard mantra.
Gabriel Genellina
Softlab SRL
__
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
¡Probalo ya!
http://www.yahoo.co
line 49, in __call__
object = self.cache[args] = self.fn(self.instance, *args)
AttributeError: 'Memoize' object has no attribute 'instance'
For a standalone function, you should remove __del__ and
self.instance, but I haven't
* for *all* names would be ridiculous - objects
would never get garbage collected, by example. And
99.% of programs don't need that behavior at all.
So just implement that for your use case - if you have any!
Gabriel Genellina
Softla
HI,
I am talking about the close button "X", that appears when I execute
my application (pyQt), in kde.
Thanks..
David Boddie escreveu:
> Gabriel - BR wrote:
> > Hi,,,
> > Is possible disable the close button in KDE management window? Using
> > python+qt?
>
your items come from, but usually None is
used to represent an empty/null value. It's not the same as "".
Gabriel Genellina
Softlab SRL
__
Preguntá. Respondé. Descubrí.
Todo lo que querías saber
101 - 200 of 5091 matches
Mail list logo