On Fri, Aug 7, 2015 at 4:07 AM, Terry Reedy wrote:
> Python has an extensive test suite run after each 'batch' of commits on a
> variety of buildbots. However, the Linux buildbots all (AFAIK) run
> 'headless', with gui's disabled. Hence the following
> test_tk test_ttk_guionly test_idle
> (and o
On Sun, Dec 14, 2014 at 1:14 AM, Nick Coghlan wrote:
[...]
> Barry, Petr, any of the other folks working on distro level C extension
> ports, perhaps one of you would be willing to consider an update to the C
> extension porting guide to be more in line with Brett's latest version o
Also keep in mind that not all Python libraries are on PyPI.
For non-Python projects with Python bindings (think video players,
OpenCV, systemd, Samba), distribution via PyPI doesn't make much
sense. And since the Python bindings are usually second-class
citizens, the porting doesn't have a high pr
= GPIO()
LED01 = gpio.pin04
LED01 = 1 # led diode is shining (or gpio pin 4 is set)
LED01 = 0 # led diode is off
General suggestions, how to organise this work are more then welcome.
Petr Jakes
--
http://mail.python.org/mailman/listinfo/python-list
> >>> import Image
> >>> im=Image.new('L', (100,100))
> >>> im=im.convert('1')
> >>> px=im.load()
> >>> px[0,0]
Thanks, load() method works great.
One more question.
Finally, I would like to store array in the datab
om this file, so I can switch LEDs ON/OFF accordingly.
--
Petr
--
http://mail.python.org/mailman/listinfo/python-list
can show me the direction
to go?
Regards
Petr
--
http://mail.python.org/mailman/listinfo/python-list
2009/7/2 Tim Chase :
>> Will this order at least be the same for that same query every time the
>> script is executed?
>
> I wouldn't count on it. The order is only defined for the one iteration
> (result of the keys() call). If the order matters, I'd suggest a
> double-dispatch with a non-dict (
2009/6/30 venutaurus...@gmail.com :
...
> Can you give some more explanation about how exactly this can be
> done..
Popen object enables you to run any program in a newly-created child
process, write to its standard input and read from its standard and
error outputs.
There is an example how your
Hi,
this can be done using module "subprocess"; there is also function
popen() in module "os" and module popen2, but they are deprecated
since Python 2.6.
PM
2009/6/30 venutaurus...@gmail.com :
> Hi all,
> I have to write an automted script which will test my c
> program. That program whe
Hi,
use %s instead of %d in SQL statements, because (AFAIK) conversions
(including SQL escaping) from Python values to SQL values are done
before the % operator is called - that value is not a number by that
point.
I hope you understood it, sorry for my English :-) You can also check
MySQLdb modu
ysql://me:topsec...@localhost/test?encoding=utf8". Is this what you
want to know?
Petr
--
http://mail.python.org/mailman/listinfo/python-list
What about Werkzeug? I like its simplicity (well, basically everything
I need are WSGI request/response objects :) + some templating
library).
Petr
2009/6/25 Private Private :
> Hi,
>
> I am looking for a python library which will allow me to do a simple
> web development. I need t
id characters may occur -
form feed (\x0c) character is one example.
I don't know what else is illegal in xml, so I've searched if there's
some method how to prepare strings for insertion to a xml doc before I
start research on a xml spec and write such function on my own.
Petr
--
http://mail.python.org/mailman/listinfo/python-list
I've
just overlooked something in the docs to this (imo) important task...
Petr
--
http://mail.python.org/mailman/listinfo/python-list
ux everything works
fine.
Do you have any idea what could be wrong?
Thanks,
Petr
--
http://mail.python.org/mailman/listinfo/python-list
oop and once in 5s period it has to trigger some
other stuff(function, method, action) to do.
Petr Jakes
--
http://mail.python.org/mailman/listinfo/python-list
(0.01)
seconds = time.time()
if not int(seconds % (5)):
if eventFlag:
print "5 seconds, hurray"
eventFlag = False
else:
eventFlag = True
Best regards
Petr Jakes
--
http://mail.python.org/mailman/listinfo/python-list
On 12 Kvě, 21:06, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote:
> On Mon, 12 May 2008 11:16:08 -0700 (PDT), [EMAIL PROTECTED] wrote:
> > [snip]
>
> >My script send me via 3883 port (VRPN) data, but only once. I need
> >listening this port countinously.
> >So I need make some loop to print data fr
On 12 Kvě, 19:16, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote:
> On Mon, 12 May 2008 09:19:48 -0700 (PDT), [EMAIL PROTECTED] wrote:
>
> > [snip]
>
> >> >Where is the mistake? I dont know.
>
> >> You cannot reconnect a socket. You need to create a new one for each
> >> connection. It's also almo
nteed that all
> the bytes written to the socket by the peer will be returned by such
> a call. Instead, you need a framing protocol to determine when all
> data has been received. For example, you might length prefix the
> data, or you might insert a delimiter (or a terminator) at the
mmy
raise error(EBADF, 'Bad file descriptor')
error: (9, 'Bad file descriptor')
Where is the mistake? I dont know.
thaks for help
Petr
--
http://mail.python.org/mailman/listinfo/python-list
Hello,
is it possibble listening on TCP port by python and how? I am trying
chilkat but poorly :(.
Thanks
--
http://mail.python.org/mailman/listinfo/python-list
Hello,
is there anybody who has experience with listening on TCP port with
python? I am looking for anything codes, tutorials,... .
Thanks for any information
--
http://mail.python.org/mailman/listinfo/python-list
#x27;, 'nextBar', 'this is
foo bar message')
except TransitionError, err:
print err
print err.args
import traceback, sys
print sys.exc_info()
traceback.print_exc()
= 8< snipp 8<
Thanks for your replies.
Petr Jakes
--
http://mail.python.org/mailman/listinfo/python-list
ck, sys
print sys.exc_info()
traceback.print_exc()
Thanks for your replies.
Petr Jakes
--
http://mail.python.org/mailman/listinfo/python-list
ot; )
q = MyTable.select()
for row in q:
print row.album, row.filepath
for row in MyTable.select(MyTable.q.album == "Pinkk Floyd"):
print row.album, row.filepath
HTH
Petr Jakes
--
http://mail.python.org/mailman/listinfo/python-list
Finaly, after few experiments, I am using pygame.
It comunicates directly with the framebuffer and the performance is
excellent.
Thanks for your help.
Petr Jakes
--
http://mail.python.org/mailman/listinfo/python-list
ll let you put the result of a SELECT into a new
> table.
>
> John Nagle
I agree,
maybe following can help
http://tinyurl.com/32colp
Petr Jakes
--
http://mail.python.org/mailman/listinfo/python-list
t))
It works, but it does not look very nice to me.
Is there some different/nicer/more pythonic way how to achieve above
mentioned?
regards
Petr Jakes
--
http://mail.python.org/mailman/listinfo/python-list
's helpers. So you mean, Pygame can
run without X?
BTW I have nothing against X, I just have not experiences on the GUI
field, so my feeling was it can run faster without X on the 500MHz AMD
Geode CPU.
Petr
--
http://mail.python.org/mailman/listinfo/python-list
irst posting. I know
the curses library ( http://pyncurses.sourceforge.net ). It AFIK
provides TUI (short for: Text User Interface or Textual User
Interface). My needs are GUI, I mean "a nice VGA pictures" on the VGA
LCD 10" display.
Petr
--
http://mail.python.org/mailman/listinfo/python-list
here for your opinions/experiences/advices.
Best regards
Petr Jakes
http://www.libsdl.org/
http://pyfltk.sourceforge.net/
http://www.pygame.org/news.html
http://pyui.sourceforge.net/
http://pyglet.org/
--
http://mail.python.org/mailman/listinfo/python-list
On Jan 4, 4:55 pm, [EMAIL PROTECTED] wrote:
> Petr thanks so much for your input. I'll try to learnSQL, especially
> if I'll do a lot of database work.
>
> I tried to do it John's way as en exercise and I'm happy to say I
> understand a lot more. Basi
can control Excel from Python using win32api, win32com
( http://tinyurl.com/2m3x3v )
HTH
Petr Jakes
#!/usr/bin/env python
# -*- coding: cp1250 -*-
import sqlite3
con = sqlite3.connect(":memory:")
cur = con.cursor()
normalizedInputData=[]
subCategories=[]
rawData = [['Italy
> So the data comes in as a long list. I'm dealing with some
> information on various countries with 6 pieces of information to
> pivot. Just to make it simple it's like a video store database. The
> data is like [Country, Category, Sub Category, Film Title, Director,
> Number of Copies]. data
):
for no in range(10):
yield no
myNo=property(getInfo)
gen=GenExample()
print gen.myNo.next()
print gen.myNo.next()
.
.
print gen.myNo.next()
--
Petr Jakes
--
http://mail.python.org/mailman/listinfo/python-list
tside class
definition).
The meaning of my question was:
Is it possible to define some general sort of set/get/del/doc rules
for the attributes which are defined in the code AFTER the
instantiation of an object.
I am sending this question even I feel such a "on the fly" creation of
th
et/del/doc function
calls upon access to defined attribute).
My question is: is it possible to set the "property" for any attribute
when I do not know what will be the name of the attribute in the
future?
Thanks for your reply
Petr Jakes
--
http://mail.python.org/mailman/listinfo/python-list
e this part of the task already)?
Petr
--
http://mail.python.org/mailman/listinfo/python-list
to
pivot tabel in Python?
Petr
--
http://mail.python.org/mailman/listinfo/python-list
What about to let SQL to work for you.
HTH
Petr Jakes
Tested on Python 2.5.1
8<--
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sqlite3
con = sqlite3.connect(":memory:")
cur = con.cursor()
inputData=(
('Bob', 'Morn', 240),
('
n to offend somebody here and I am really grateful for all
replies.
Thank you
Petr Jakes
--
http://mail.python.org/mailman/listinfo/python-list
. Such a "reports" can be read by user using web browser later
on.
I was just trying to find if somebody here can point me to the
existing tool, which is suitable for such a task.
Anyway thank you for trying me help.
Petr Jakes
--
http://mail.python.org/mailman/listinfo/python-list
ific cells.
Googling for a while I have found only this tool:
http://pasko.net/PyHtmlTable/
Your tips to some other tools or/and your suggestion how to solve
above mentioned will be very helpful.
Thanks and regards
Petr Jakes
--
http://mail.python.org/mailman/listinfo/python-list
Thanks, it works.
And thanks for your comments which are worth to think about :)
Petr
> This has nothing to do with your previous problem. Use
>
> from __main__ import myFunction, myOtherFunction, ...
>
> or
>
> from __main__ import *
>
> if you prefer "namespace
thod calling.
Do you think there is a way how to protect the text file contents
against such a "assigning hell"?
Petr
--
http://mail.python.org/mailman/listinfo/python-list
s bellow).
When I run "python displeje_pokus.py" I am getting an error (see
below) which I am not able to eliminate.
thanks for your reply
Petr Jakes
==
displeje_pokus.py
==
from sqlobject import *
class TextyDispleje(SQLObject):
pass
if __
On Jul 24, 10:10 am, Stargaming <[EMAIL PROTECTED]> wrote:
> On Tue, 24 Jul 2007 03:19:53 -0700, bearophileHUGS wrote:
> > There are various things I like about the D language that I think Python
> > too may enjoy. Here are few bits (mostly syntactical ones):
>
> > 1) (we have discussed part of thi
ever, the __init__()
> method only takes integers (which means I'd be forced to parse the
> string myself). Does anyone know of a way I can make it use the
> string? Thanks.
http://pleac.sourceforge.net/pleac_python/datesandtimes.html
the part "http://pleac.sourceforge.net
lyse music stream form
the PC radio card to get the signal: "first tones of Frozen were
played after Sacrifice, call to the studio" :-)
Of course, the calling can be made by PC as well, but this is the
easiest part of the task :)
Thanks for your tips and comments
Petr Jakes
PS: both, Linux
On 23 ec, 14:23, westymatt <[EMAIL PROTECTED]> wrote:
> linux primarily still a little lost in how to implementent this,
> however I understand what you are saying.
maybe you can use this:
http://tinyurl.com/2zyfmw
HTH
Petr Jakes
--
http://mail.python.org/mailman/listinfo/python-list
Maybe you can try python binding for gammu, which works great for me.
HTH
Petr Jakes
http://cihar.com/gammu/python/
--
http://mail.python.org/mailman/listinfo/python-list
en't used Tkinter a lot, only looked at it. And I didn't like it much.
I would really suggest PyQt. (with a big IMHO :)
Petr
--
http://mail.python.org/mailman/listinfo/python-list
"Alex Martelli" wrote
> Steve Holden wrote:
>...
> > >> Get yourself a stuffed bear, and next time you have this kind of
problem
> > >> spend a few minutes explaining to the bear exactly how your
program
> > >> can't possibly be wrong. Works like a charm.
> > >
> > > A rubber ducky works muc
Sorry for the mess,
The message should have been sent to the Czech
Python mailing list. My fault.
pepr
"Petr Prikryl" wrote...
> Ahoj všeci,
> Tak nějak prakticky poprvé se dostávám k tomu,
> jak přečíst unicode řetězce ze souboru, který
> je uložen ve formátu UTF-8 se s
Ahoj všeci,
Tak nějak prakticky poprvé se dostávám k tomu,
jak přečíst unicode řetězce ze souboru, který
je uložen ve formátu UTF-8 se signaturou
na začátku (BOM). Nějak se mi nedaří.
Mám takovýto soubor.txt v UTF-8 s BOM
=
První řádek.
Druhý řádek.
Třetí řáde
ds to some of your looping...
>
> s = ... #somewhere you had to open the serial port
>
> g = gzip.GzipFile("/root/foofile.gz", "w")
> while True:
> data = s.readline()
> if not data: break
> g.write(data)
> g.close()
what I am trying to say is g.close() does not close the g file (try to
add the line "print g" after g.close())
Petr
--
http://mail.python.org/mailman/listinfo/python-list
Maybe I am missing something. Expect data is comming continually to the
serial port for the period say 10min. (say form the GPS), than it stops
for 1 minute and so on over and over. I would like to log such a data
to the different gzip files.
My example was written just for the simplicity (I was tr
serial port. It looks like g.close() does not close the gz
file.
I was reading in the doc:
Calling a GzipFile object's close() method does not close fileobj,
since you might wish to append more material after the compressed
data...
so I am completely lost now...
thanks for your comments.
Do you think that the following could became PEP (pre PEP).
Please, read it, comment it, reformulate it,...
Abstract
Introduction of the mechanism for language extensions via
modules written using other languages. Extensions of
Python could be done via special interpreter extensions.
F
unicode object.
>> I am trying to use ChartDirector for Python (charts for Python) and the
>> method "layer.addDataSet()" needs above mentioned syntax otherwise it
>> returns an Error.
JM> Care to tell us which error???
you can see the Error description and author com
looks strange, I have to use str(a) syntax even I know the "a"
variable is a string.
I am trying to use ChartDirector for Python (charts for Python) and the
method "layer.addDataSet()" needs above mentioned syntax otherwise it
returns an Error.
layer.addDataSet(data, colour,
Hi
my script is working well when I am running it from the terminal
window. While I am trying to start it as a Cron job, I am getting an
Error described bellow:
My configuration: Pentium III, Python 2.4.1, Fedora Core4
Thanks for your comments.
Petr Jakes
File "/root/eric/analyza_da
Thanks a lot. It works flawlessly and I have learned few new Python
"tricks" as well.
Petr Jakes
--
http://mail.python.org/mailman/listinfo/python-list
comments
Regards
Petr Jakes
--
http://mail.python.org/mailman/listinfo/python-list
J> Is there a Python packaging that is specifically for
J> embedded systems? ie, very small and configurable so the
J> user gets to select what modules to install?
J> For Linux-based embedded systems in particular?
J> I'm thinking of running it on the Linksys's Linux-based open
J> source router W
"zefciu" wrote in message news:[EMAIL PROTECTED]
> Where can I find a good explanation when does an interpreter copy the
> value, and when does it create the reference. I thought I understand
> it, but I have just typed in following commands:
>
> >>> a=[[1,2],[3,4]]
> >>> b=a[1]
> >>> b=[5,6]
> >>
"yaru22" wrote in message
news:[EMAIL PROTECTED]
> In one of the examples in the book I'm reading, it says:
>
> def __init__(self):
> ...
> return
>
> It has nothing after "return". I expected it to have some number like 0
> or 1. What does it mean to have nothing after return?
Yes, it ha
v> Thanks,
v> But I need to to do complicated job in the xterm consoles for servers.
what does it mean, complicated job? Can you be more specific, please?
v> So I need
v> to open many xterm consoles and I just want to save my time from
v> telneting...usr/pwd...
v> Network Ninja wrote:
>> valpa wr
in.com/
You can manage cluster of servers at once.
Petr Jakes
--
http://mail.python.org/mailman/listinfo/python-list
to solve some "problems"
Petr Jakes
JH>> that documentation i have already read, but it wouldn`t help me for my
JH>> problem!
JH>> i know, how i can read the first line an print them on the screen!
JH>> but...how can i say python, delete the first line?!
JH>> t
for i in range(len(listing)):
item = listing[i]
numbers.append(item[len(dir) + len(new_file_name) + 1:])
return new_file_name + '.' + max(numbers)
cheers
Petr
--
http://mail.python.org/mailman/listinfo/python-list
extension is (depending on the "when" value): "timestamp" or
"date+hour+minutes" or "date+hours" or "date".
Regards
Petr Jakes
--
http://mail.python.org/mailman/listinfo/python-list
t;debugging" purposes. Finally you
will remove it.
For example you can put:
print "starting the strt function", "mynum = ", mynum, "yournum =",
yournum
on the first row of your strt function, so you will see the code is
going through there.
Finally:
Try to thi
urnum < 101"
you should test if the input is an integer as well..
http://tinyurl.com/j468c
Other suggested here which way to go.
Good luck :)
Petr Jakes
--
http://mail.python.org/mailman/listinfo/python-list
o the
> kit ? TIAMR
You can try:
Dialog
http://invisible-island.net/dialog/
HTH
Petr Jakes
--
http://mail.python.org/mailman/listinfo/python-list
o my less elegant
> co-workers can figure out what I was trying to accomplish.
>
> Sam Schulenburg
+1
Petr Jakes
--
http://mail.python.org/mailman/listinfo/python-list
hacker1017 wrote:
> im just asking out of curiosity.
a vending machine controlled from the PC (peripherals connected using
I2C bus (SMBus) and the MDB coin change-giver and the bill acceptor
connected to the serial port).
Petr Jakes
--
http://mail.python.org/mailman/listinfo/python-list
specific answers to the above
mentioned code example.
Regards
Petr Jakes
--
http://mail.python.org/mailman/listinfo/python-list
"Chris Uppal" wrote:
> Petr Prikryl wrote:
>
> > for element in aCollection:
> > if element > 0:
> > return True
> > return False
>
> [I'm not sure whether this is supposed to be an example of
"Chris Uppal" wrote...
> Alex Martelli wrote:
>
> > I think it's reasonable to make a name a part of functions, classes and
> > modules because they may often be involved in tracebacks (in case of
> > uncaught errors): to me, it makes sense to let an error-diagnosing
> > tracebacks display package
"Alex Martelli" wrote...
> Joe Marshall wrote:
>...
> > If you language allows unnamed integers, unnamed strings, unnamed
> > characters, unnamed arrays or aggregates, unnamed floats, unnamed
> > expressions, unnamed statements, unnamed argument lists, etc. why
> > *require* a name for trivia
s well, so it can not "sleep" for 60 seconds :).
Regards
Petr
--
http://mail.python.org/mailman/listinfo/python-list
irst occur of sec==0 only!! polling
10x a second
minutes=min
print "Eureca"
time.sleep(0.1)
Regards
Petr Jakes
--
http://mail.python.org/mailman/listinfo/python-list
I think you can get the answer on
http://www.die-offenbachs.de/detlev/eric3-mailinglist.html
rather then here.
HTH
Petr Jakes
--
http://mail.python.org/mailman/listinfo/python-list
off).
Petr Jakes
--
http://mail.python.org/mailman/listinfo/python-list
/kinterbasdb-3.2_pre_20060503.win32-FB-2.0-py2.4.exe
Petr Jakes
--
http://mail.python.org/mailman/listinfo/python-list
I am using following code which I have found on
http://www.ibiblio.org/obp/py4fun/ few months ago. It works well for my
purposes. Another way is to use Curses library.
HTH
Petr Jakes
#!/usr/local/bin/python
#
# t t y L i n u x . p y
#
# getLookAhead reads lookahead chars from the keyboard
Firebird CS 1.5, Python 2.4.1,
KInterbasDB 3.2b1
Thanks for your advices.
Petr Jakes
--
http://mail.python.org/mailman/listinfo/python-list
Thank you very much, Steve.
Petr Jakes
--
http://mail.python.org/mailman/listinfo/python-list
I have got Steven's book of course (it is excellent IMHO). I was just
thinking some new approaches can be found in the tutorial.
Petr Jakes
--
http://mail.python.org/mailman/listinfo/python-list
I would like to know if anybody can point me to the site, where it is
possible to find the tutorial "Using Databases in Python" which is
mentioned by Steve Holden here: http://tinyurl.com/ectj8
Thanks
Petr Jakes
--
http://mail.python.org/mailman/listinfo/python-list
Eric3 is great IMHO.
http://www.die-offenbachs.de/detlev/eric3.html
--
http://mail.python.org/mailman/listinfo/python-list
"Fredrik Lundh" wrote:
> Alex Martelli wrote:
>
> > > But of course that only does it once, and I don't want to have to copy
> > > and paste the append line. Perhaps there's a better way than this.
> >
> > def makeseries(N):
> > series = [N]
> > append = series.append
> > for tailer in xrang
I have added some spaces guessing how the original was formatted.
See the simplified example and the explanation below...
"Sean Givan" wrote...
> Hi. I'm new to Python [...] something strange.
> This code:
>
> def outer():
> val = 10
> def inner():
> print val
> inner()
> outer()
>
> ..pr
rainbow.cougar wrote in message
> okay wrote:
> > To Archbishop Christodoulos Paraskevaides of the Greek Orthodox Church
> > in Athens and Greece Archbishop,
> > I talked with a Greek Orthodox believer in Australia and he told me two
>
> I'm thinking a list comprehension...
Possibly some filter(m
"John Salerno" wrote...
[...]
> So a class method is specifically for using the class name itself as an
> object in the method? If that's the case, then it makes some sense now.
> I guess the reason I didn't get it before is that this is a feature of
> dynamic languages, right? And something that
"Aahz" wrote...
> Bruno Desthuilliers wrote:
> >Aahz a écrit :
[...]
> >>>Please repeat this 101 times each morning:
> >>>"thou shall not use old-style classes for they are deprecated".
> >> Classic classes are *NOT* deprecated.
> >Perhaps not *officially* yet...
>
> Not even unofficially. The poi
Jarek, I am using it always like in the following example to connect to
the remote host and it works for me flawlessly.
Petr Jakes
import kinterbasdb as k
con = k.connect(
host='router.maren.cz',
database='/data/sysdat01.gdb',
user='SYS
1 - 100 of 144 matches
Mail list logo