Steve Holden wrote:
Michael Spencer wrote:
Andrew Dalke wrote:
I see you assume that only \w+ can fit inside of a %()
in a format string. The actual Python code allows anything
up to the balanced closed parens.
Gah! I guess that torpedoes the regexp approach, then.
Thanks for looking at this
'O', 'B_X', 'B_Y', 'I_Y', 'O', 'B_X', 'I_X', 'B_X'])
[['B_X'], ['B_Y', 'I_Y'], ['B_X', 'I_X'], ['B_X']]
>>>
>>> grp(['O', 'B_X', 'B_Y', 'I_Y', 'O', 'B_X', 'O', 'I_X', 'B_X'])
Traceback (most recent call last):
File "", line 1, in ?
File "\\CC1040907-A\MichaelDocuments\PyDev\Junk\BIO.py", line 32, in grp
raise ValueError('%s followed by %s' %
ValueError: O followed by I_X
Michael
--
http://mail.python.org/mailman/listinfo/python-list
low and deep copying is only relevant for
compound objects (objects that contain other objects, like lists or
class instances).
array does have a __deepcopy__ method, albeit not compatible with copy.deepcopy.
You can use this to make the (shallow) copy.
>>> b = a.__deepcopy__()
Michael
--
http://mail.python.org/mailman/listinfo/python-list
Michael Spencer wrote:
http://www.python.org/doc/2.3.3/lib/module-copy.html
deepcopy:
...
This version does not copy types like module, class, function, method,
stack trace, stack frame, file, socket, window, *array*, or any similar
types.
...
On reflection, I realize that this says that the
shell.timefunc(func, lst)
>>> timethem(L)
get_runsSB(...) 7877 iterations, 63.48usec per call
get_runsMS(...) 31081 iterations, 16.09usec per call
get_runsBR(...) 16114 iterations, 31.03usec per call
Michael
--
http://mail.python.org/mailman/listinfo/python-list
, 81], [300, 308]]
>>> lstcluster(lst1)
[[10, 27], [54, 55], [80, 80], [100, 105]]
>>> lstcluster(lst2)
[[1, 1009], [1, 10019]]
>>>
Michael
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
I started to read the postings on this list and was dismayed
> at the depth of rudeness on here.
I saw no evidence of rudeness whatsoever. Well, with the possible
exception of some posters calling others names like "rude."
--
Michael Hoffman
--
http://ma
gt;>> a += "world"
>>> a
['hello', 'w', 'o', 'r', 'l', 'd']
We get completely different behaviour. This strikes me as a bug - should I
log it as one, or is there a good reason for this behaviour?
Regards,
Michael.
--
http://mail.python.org/mailman/listinfo/python-list
; share that experience with me. I'm trying to minimize my "frustration" :)
Sure, happens, but it happens with any new languages. Keep using it,
and you'll get over it.
Mike
--
Michael P. Soulier <[EMAIL PROTECTED]>
http://www.digitaltorque.ca
http://opag.ca python -c 'import this'
--
http://mail.python.org/mailman/listinfo/python-list
/tracker/?func=detail&atid=105470&aid=848812&group_id=5470
I'm now wondering whether it should be posted as a bug, if it's not likely
to be solved short of Python 3000. (ie whether I should just consider it a
wart instead... :)
(If that's really the case I'd happily consider writing a doc patch as a
warning about the behaviour)
Michael.
--
http://mail.python.org/mailman/listinfo/python-list
e
def writeFile(ip,keyword):
...
Indeed. Use keyword as the argument to the string interpolation
>>> regex = re.compile('(.*)%s(.*)' % keyword)
but how would I construct expressions like
netmaskLineNum = conf.index(netmaskLine)
I think these should work unchanged. But
nes = []
for line in file("myfile.txt"):
if line == "line2\n":
line = "newline\n"
lines.append(line)
file("myfile.txt", "W").writelines(lines)
--
Michael Hoffman
--
http://mail.python.org/mailman/listinfo/python-list
or his family. He keeps praying and praying. He never
wins the lottery.
One day he is so angry, he goes to church and rants and raves to God
about not winning the lottery. Finally God comes and says to him "You
have to buy a ticket my son, for me to help you."
--
Michael Hoffman
--
http://mail.python.org/mailman/listinfo/python-list
.JPG images.
Have you tried converting the image objects to strings and back?
--
Michael Hoffman
--
http://mail.python.org/mailman/listinfo/python-list
tor protocol
>>> def func_with_state(state,a):
... state.append(a)
... return state
...
>>> f = func_with_state.__get__([])
>>> f(1)
[1]
>>> f(2)
[1, 2]
>>> f(3)
[1, 2, 3]
>>>
Michael
--
http://mail.python.org/mailman/listinfo/python-list
of those names which
will be imported by default through "from module import *."
That said, dir() is the function you are looking for. If you want to
restrict to only methods on the class, and not just all attributes,
you'll have to check the type of each attribute.
--
Michael H
thods inherited
from the builtin.
--
Michael Hoffman
--
http://mail.python.org/mailman/listinfo/python-list
to an older API.
But there is a Python interface to the older API. Here's an example:
http://www.microsoft.com/technet/scriptcenter/scripts/python/os/tasks/ostkpy01.mspx
--
Michael Hoffman
--
http://mail.python.org/mailman/listinfo/python-list
run.
b. What if you want to ship closed-source?
Mike
--
Michael P. Soulier <[EMAIL PROTECTED]>
http://www.digitaltorque.ca
http://opag.ca python -c 'import this'
--
http://mail.python.org/mailman/listinfo/python-list
easons, whereas
PyGTK's docs are up-to-date and well done, easy to work with.
Maybe the wxPython people think their docs are good, but likely
they've forgotten how well they already know the API. They need to
take the time to update them.
Mike
--
Michael P. Soulier <[EMAIL PROTECTED]
+=1
if count ==8:
yield chr(outchar)
outchar = count = 0
if count:
yield chr(outchar)
HTH
Michael
--
http://mail.python.org/mailman/listinfo/python-list
ass = hoursOld<12 and 'rssLinkNew' or 'rssLink'
>>>
reads better too
Michael
--
http://mail.python.org/mailman/listinfo/python-list
isn't going to be much learning left
in this for Andrea ;-)
and not recommended as efficient either way, esp the decode,
I expect that decoding by walking the coding tree is cleaner (not sure about
faster).
but it might
be illustrative of something for Andrea ;-)
Michael
--
http://mail.
temp directory generated 24 hours ago.
--
Michael Hoffman
--
http://mail.python.org/mailman/listinfo/python-list
Michael Hoffman wrote:
The easiest way, in my mind would be to store the files in a directory
according to the hour they were requested, for example, a file generated
between 2 p.m. and 3 p.m. today:
http://www.example.com/temp/20050428T14/d41d8cd98f00b204e9800998ecf8427e.html
Depending on the
e this:
def attrsetter(obj, name, 1):
def _return_func(value):
return setattr(obj, name, value)
return _return_func
Instead, I'd like to do something like this:
bind('a', foo.var = 1)
bind('b', foo.var = 2)
bind('a', attrsetter(foo, "var", 1))
bind('a', attrsetter(foo, "var", 2))
--
Michael Hoffman
--
http://mail.python.org/mailman/listinfo/python-list
ompile("[EMAIL PROTECTED]&*()_+-= ]+") #note escapes for []
>>> splitter.split("[EMAIL PROTECTED]@^%[wordA] [EMAIL PROTECTED]")
['', 'wordA', 'wordB', '']
>>>
is closer to what you had in mind
Michael
--
http://mail.python.org/mailman/listinfo/python-list
Dave Benjamin wrote:
I think you meant to write something like this:
def attrsetter(obj, name, value):
def _return_func():
return setattr(obj, name, value)
return _return_func
Sure did. Sorry.
--
Michael Hoffman
--
http://mail.python.org/mailman/listinfo/python-list
, **kwargs)
return _return_func
class Test1(object):
def __init__(self, x):
self.x = x
def method(self, a, b, c):
return self.x + a + b + c
t1 = Test1(42)
funccaller_result = funccaller(t1.method, 3, 4, c=5)
funccaller_result()
And this time I actually tested it, and it works! ;)
appreciated!
That's a very strange failure condition. Perhaps something is wrong with
your
Python installation. Have you edited any other system modules besides logging?
I would try a clean installation of the newest version and see if that fixes
it.
--
Michael Hoffman
--
http://mail.python.org/mailman/listinfo/python-list
fileinput
row_dicts = []
for row in csv.reader(fileinput.input()):
row_dict = dict(letter_type=row[0])
for col_index in xrange(1, len(row), 2):
row_dict[int(row[col_index])] = row[col_index+1]
row_dicts.append(row_dict)
Someone else might come up with something more elegant.
--
Michael Hoffman
--
http://mail.python.org/mailman/listinfo/python-list
one myself :)
> It is brand new and might still be buggy, but hopefully it will be
> usefull to some people. Feel free to join and upload any of your code.
> thanks
Something wrong with PyPi?
Mike
--
Michael P. Soulier <[EMAIL PROTECTED]>
http://www.digitaltorque.ca
http://opag.ca
4.1 installation was built from source.
Anyone having a clue? Thanks in advance.
Ciao, Michael.
--
http://mail.python.org/mailman/listinfo/python-list
Find a new release of python-ldap:
http://python-ldap.sourceforge.net/
python-ldap provides an object-oriented API to access LDAP directory
servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for
that purpose. Additionally it contains modules for other LDAP-related
stuff (e.g. p
John Machin wrote:
[Michael Hoffman]:
for row in csv.reader(fileinput.input()):
csv.reader requires that if the first arg is a file that it be opened
in binary mode.
fileinput.input() is not a file.
I have tested this code and it works fine for the provided example.
--
Michael Hoffman
--
http
John Machin wrote:
> [Michael Hoffman]:
John Machin wrote:
[Michael Hoffman]:
for row in csv.reader(fileinput.input()):
csv.reader requires that if the first arg is a file that it be opened
in binary mode.
fileinput.input() is not a file.
Hair-splitter.
Is name-calling really necessary?
It
David Murmann wrote:
Shane Hathaway wrote:
That was pretty fun. Good for a Friday. Too bad it comes to an abrupt
"temporary end".
Shane
P.S. I hope I didn't hammer your server on step 3. I was missing the
mark. :-)
Interestingly step 3 is actually wrong... there is an additional
solution, whic
Bengt Richter wrote:
Just thought None as the first argument would be both handy and mnemonic,
signifying no translation, but allowing easy expression of deleting characters,
e.g.,
s = s.translate(None, 'badcharshere')
Regards,
Bengt Richter
+1
Michael
--
http://mail.python.org/mailma
idered a Good Thing.
Let me ask you this, are you simply opposed to something like fileinput
in principle or is it only because of (1) no binary mode, and (2) poor
performance? Because those are both things that could be fixed. I think
fileinput is so useful that I'm willing to spend some time working on it
when I have some.
--
Michael Hoffman
--
http://mail.python.org/mailman/listinfo/python-list
ing rather than doing so. I simply enjoy the no-hassle
simplicity of fileinput.input() rather than worrying about whether my data
will be piped in, or in file(s) specified on the command line.
--
Michael Hoffman
--
http://mail.python.org/mailman/listinfo/python-list
'
>>> audioop.lin2lin(b'\xff', 1, 2)
b'\x00\xff'
Michael
--
https://mail.python.org/mailman/listinfo/python-list
On 11/24/2013 06:55 PM, Himanshu Garg wrote:
> I want that a script should only be executed when it is called from
> another script and should not be directly executable through linux
> command line.
>
> Like, I have two scripts "scrip1.py" and "script2.py" and there is a
> line in "script1.py" t
I only respond here, as unicode in general is an important concept that
the OP will to make sure his students understand in Python, and I don't
want you to dishonestly sow the seeds of uncertainty and doubt.
On 11/25/2013 03:12 AM, [email protected] wrote:
> Your paragraph is mixing different co
On 11/26/2013 08:41 AM, [email protected] wrote:
> I'm trying to figure out how to get python to access the properties
> section of an mp3 file. When you right click an mp3 file and go to
> properties you can edit the title, album, and things like that. I
> also want to be able to read the len
On 11/26/2013 10:10 AM, [email protected] wrote:
> I'm still a bit new to this. When I download a module like Mutagen
> and unzip it I have a folder and tons of files within folders? I see
> no file simply called mutagen? So how can I import the module?
Also you can install many things usin
On 11/25/2013 12:35 PM, Malte Forkel wrote:
> I have a Python application that communicates with a server via telnet.
> Host and port of the server are supplied by the user when the
> application is started.
>
> How can I determine from within the application whether the server's
> host actually i
On 11/26/2013 05:01 PM, Victor Hooi wrote:
> Hi,
>
> I'm trying to use Python's new style string formatting with a dict
> and string together.
>
> For example, I have the following dict and string variable:
>
> my_dict = { 'cat': 'ernie', 'dog': 'spot' } foo = 'lorem ipsum'
>
> If I want to jus
On 11/27/2013 11:05 AM, Pavel Volkov wrote:
> Thanks for all those references.
> There's this statement in the first article:
>
> "Got a switch statement? The Python translation is a hash table, not a bunch
> of if-then statments. Got a bunch of if-then's that wouldn't be a switch
> statement in
On 11/28/2013 08:08 AM, Chris Angelico wrote:
> Which is easier, fiddling around with your setup so you can post
> reasonably on Google Groups, or just getting a better client? With
> your setup, you have to drop out to another editor and press F9 for it
> to work. With pretty much any other newsre
On 11/28/2013 10:23 AM, Ned Batchelder wrote:
> Funny, I thought the sentiment of many here was, "let's just keep this
> as a newsgroup, why do we need the mailing list also?" but I'll admit to
> being confused about what people have been proposing for alternate
> topologies.
That may well be t
On 11/28/2013 11:37 AM, rusi wrote:
> Do you realize that that person was not using GG?
I do but he was using usenet.
> IOW we are unfortunately conflating two completely unrelated things:
> 1. GG has some technical problems which are fairly easy to solve
> 2. All kinds of people hop onto the lis
My point was that the list problems in general seem to be related to
usenet. GG formatting, spam, trolls. I guess I should have changed the
subject line. Ditching usenet solves the GG problem and a number of
other problems as well.
>> IOW we are unfortunately conflating two completely unrelated
On 12/02/2013 06:03 AM, Neil Cerutti wrote:
> I wish they'd never bought dejanews.
I wish Google hadn't bought a lot of things. Seems like they bye up a
lot of cool, nerd-centric apps and companies and then turned them into
apps that do less and do it poorly, but in a slick way that appeals to
th
On 12/02/2013 06:43 PM, Roy Smith wrote:
> In article ,
> Michael Torrie wrote:
>
>> I wish Google hadn't bought a lot of things. Seems like they bye up a
>> lot of cool, nerd-centric apps and companies and then turned them into
>> apps that do less and do it
On 12/03/2013 07:18 AM, Colin J. Williams wrote:
> On 03/12/2013 7:58 AM, Mark Lawrence wrote:
>> I thought this might be of interest
>> Http://www.kickstarter.com/projects/214379695/micro-python-python-for-microcontrollers
>>
>>
> Is this intended to be better than the Raspberry PI? RPi handles P
On 12/03/2013 09:04 AM, Travis Griggs wrote:
> Having forayed into the world of small small micro controllers myself
> this last year and a half, I’m kind of torn on whether this is a good
> idea or not. But I think it’s cool they’re trying. And I’d definitely
> try it to see how it worked out.
I'
On 12/04/2013 08:38 AM, [email protected] wrote:
> my question, can i make it in just a single line like,
>
> 1 2 3 4 5 6 (and so forth)
>
> Can I?
Yes of course. raw_input() is going to give you a string that you can
then parse any way you want.
--
https://mail.python.org/mailman/listinfo/py
Hi everyone,
I am developing a proprietary Python library. The library is currently
Windows-only, and I want to also make it available for other platforms (Linux &
Mac). I'm writing because I wanted to ask for your expert opinion on how to
best do this.
The library is currently shipped in the
On 12/04/2013 09:36 AM, Mark Lawrence wrote:
> On 04/12/2013 16:23, Michael Torrie wrote:
>> On 12/04/2013 08:38 AM, [email protected] wrote:
>>> my question, can i make it in just a single line like,
>>>
>>> 1 2 3 4 5 6 (and so forth)
>>>
>>>
On Thursday, December 5, 2013 11:56:16 AM UTC+1, rusi wrote:
> Wheel is the upcoming standard I think.
> http://www.python.org/dev/peps/pep-0427/
I hadn't known of Wheel - thanks for pointing it out!
--
https://mail.python.org/mailman/listinfo/python-list
esting point. Thank you very much for pointing out uncompyle. I had
always known that it was easy to decompile .pyc files, but hadn't imagined it
to be that easy. I just tried uncompyle with some of our proprietary .pyc
files. It took 5 minutes to set up and the results are near-perfect.
On Thursday, December 5, 2013 4:26:40 PM UTC+1, Kevin Walzer wrote:
> On 12/5/13, 5:14 AM, Michael Herrmann wrote:
> If your library and their dependencies are simply .pyc files, then I
> don't see why a zip collated via py2exe wouldn't work on other
> platforms. Obviously
On 12/05/2013 07:34 PM, Garthy wrote:
> - My fallback if I can't do this is to implement each instance in a
> dedicated *process* rather than per-thread. However, there is a
> significant cost to doing this that I would rather not incur.
What cost is this? Are you speaking of cost in terms of wh
On 12/06/2013 04:54 PM, Dan Stromberg wrote:
> Does anyone else feel like Python is being dragged too far in the direction
> of long, complex, multiline one-liners? Or avoiding temporary variables
> with descriptive names? Or using regex's for everything under the sun?
>
> What happened to using
On 12/06/2013 05:14 PM, Dan Stromberg wrote:
> I'm thinking mostly of stackoverflow, but here's an example I ran into (a
> lot of) on a job:
>
> somevar = some_complicated_thing(somevar) if
> some_other_complicated_thing(somevar) else somevar
>
> Would it really be so bad to just use an if statem
On 12/07/2013 09:13 AM, Rotwang wrote:
> On 07/12/2013 12:41, Jussi Piitulainen wrote:
>> [...]
>>
>>if tracks is None:
>> tracks = []
>
> Sorry to go off on a tangent, but in my code I often have stuff like
> this at the start of functions:
>
> tracks = something if tracks is Non
On 12/06/2013 08:27 PM, Roy Smith wrote:
> In article <[email protected]>,
> Steven D'Aprano wrote:
>
>> The ternary if is slightly unusual and unfamiliar
>
> It's only unusual an unfamiliar if you're not used to using it :-)
> Coming from a C/C++ background,
On 12/07/2013 09:56 AM, Michael Torrie wrote:
>> extracols = sorted(set.union(*(set(t.data.keys()) for t in tracks))) if
>> tracks else []
>
> This is a generator expressions, and ternary ifs are common and often
> needed in generator expressions.
Oops. This is not a genera
On 12/06/2013 12:32 PM, Nick Cash wrote:
> Nope:
>
> Python 3.3.0 (default, Sep 25 2013, 19:28:08)
> [GCC 4.7.2] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
import dis
dis.dis(lambda x: x*x)
> 1 0 LOAD_FAST0 (x)
>
On 12/10/2013 01:26 PM, Ben Finney wrote:
>> Movie ratings. EG G, PG, PG-13, etc.
>
> That tells me only that you want short strings. Based on what you've
> said so far, your requirements can be met with code like this:
>
> movie_ratings = ["G", "PG", "PG-13", …]
>
> which doesn't need a l
On 12/10/2013 08:56 PM, [email protected] wrote:
> Traceback (most recent call last):
> File "aaa.py", line 5, in
> from ccc.ddd import sss
> ImportError: No module named ccc.ddd
>
> directory structure as follows:
>
> ccc
> |
> ddd
>|
> aaa.py
> sss.py
This is because
On 12/10/2013 09:25 PM, Michael Torrie wrote:
> On 12/10/2013 08:56 PM, [email protected] wrote:
>> Traceback (most recent call last):
>> File "aaa.py", line 5, in
>> from ccc.ddd import sss
>> ImportError: No module named ccc.ddd
>>
&
On 12/11/2013 04:39 PM, Dan Stromberg wrote:
>> If you can, would you please turn off rich text posting when you post
>> here please?
> Apologies. I didn't realize gmail was doing this. I had thought it would
> only do so if I used the formatting options in the composer, but perhaps it
> does s
On 12/12/2013 11:14 AM, Ricardo Aráoz wrote:
> I need to use a tree structure. Is there a good and known library?
> Doesn't have to be binary tree, I need to have multiple children per node.
There are lots of types of tree structures that may or may not be
applicable to your problem. And it depen
On 12/14/2013 10:05 AM, Wolfgang Keller wrote:
> Tkinter is a bit "special" to use since it's not just a library, but
> uses some kind of RPC. It seems that "look and feel" have been greatly
> improved lately.
I know Tkinter originated with the Tcl/Tk language. With Tkinter in
Python is it still
On 12/14/2013 10:05 AM, Wolfgang Keller wrote:
> PyQt looks native everywhere, but it might be a bit overweight,
> depending on what you want to do and where your applications need to
> run.
>
> And then there's the licensing issue, since PyQt, unlike Qt itself, is
> not available under LGPL afaik
On 12/14/2013 10:42 AM, [email protected] wrote:
> The other big, widely-used GUI toolkit is PyQt. It runs on
> both Python2 and Python3. There is another version of it
> called PySide which is API compatible with PyQt but has
> different licensing terms. PyQt comes with a very good
> drag-and-
On 12/15/2013 08:33 AM, Wolfgang Keller wrote:
>> I think PyQt is slowly being pushed aside in favor of PySide, which is
>> more license-friendly for use in closed or open projects. I would
>> recommend using PySide unless PyQt is a requirement for your project.
>
> Except the issue that Pyside a
On 12/15/2013 05:34 PM, Tamer Higazi wrote:
> For wxPython there is a good book.
> You will feel convinient.
>
>
> But to be honest, I don't believe that Python is the best choice for GUI
> development, but it's only an opinion.
> Otherwise I would advise you going into C++ and code with wxWidge
On 12/15/2013 09:09 PM, Tamer Higazi wrote:
> However, I believe according wxWidgets it would be better coding in the
> native language the system had been developed.
> The other thing, specially if you would make a customer project, I don't
> know how to pack the app written in python in an inst
On 12/15/2013 09:51 PM, Michael Torrie wrote:
> And all modern web apps are a combination of many languages and
> domains, most of which are "compiled" in the traditional sense.
Meant to say, *not* compiled.
--
https://mail.python.org/
ith Selenium alone.
You can find more information and download Helium from http://heliumhq.com. Any
feedback would be highly appreciated.
Hoping to hear your thoughts and comments,
Michael Herrmann
heliumhq.com
--
https://mail.python.org/mailman/listinfo/python-list
On Monday, December 16, 2013 12:40:56 PM UTC+1, [email protected] wrote:
...
> Is this open source?
No. We quit our daytime jobs to work on this project and need the income to
sustain our development...
--
https://mail.python.org/mailman/listinfo/python-list
On 12/17/2013 08:00 AM, Wolfgang Keller wrote:
>> Python is sooo slow when it waits for the human.
>
> With Windows systems, I waste something like 90% of my work time waiting
> for that system to stop "Not Responding".
>
> And no, it's not a matter of hardware.
Something is wrong then. Win
On 12/17/2013 08:00 AM, Wolfgang Keller wrote:
>> Please check JYTHON and those ready-for-novice GUI tools in java.
>
> All Java GUI frameworks I know of are ridiculous garbage.
>
> Not only that Java per se is obscenely fat (and unresponsive), but the
> GUI frameworks leak like bottomless barrel
On 12/18/2013 02:37 AM, Jai wrote:
>
All capital letters, at least in English, is considered to be angry
yelling. As to you question, you won't find help with that here.
Please don't ask again.
--
https://mail.python.org/mailman/listinfo/python-list
On 12/18/2013 07:51 AM, Chris Angelico wrote:
> On Thu, Dec 19, 2013 at 1:48 AM, Joel Goldstick
> wrote:
>> So, what you need to do is show a small coding example of the problem you
>> are having. Give the OS, the python version, and copy the traceback if
>> there is an error.
>
> And give a goo
On 12/20/2013 02:44 PM, Gregory Ewing wrote:
> Serhiy Storchaka wrote:
>> 20.12.13 16:19, Roy Smith написав(ла):
>>
>>> http://xkcd.com/1306/
>>
>> QBASIC$, not $QBASIC.
>
> Or just QB$. (Most BASICs of that era only regarded
> the first two characters as significant.)
Maybe BASIC's of the 70s.
On 12/21/2013 01:17 AM, Chris Angelico wrote:
> GW-BASIC is what you're describing. Q-BASIC isn't the same as
> QuickBasic, though. Q-BASIC had subs and functions and stuff, but it
> was still, at its heart, BASIC. And you could DIM something with a
> type, but normally it was the adorning suffix t
On 12/22/2013 06:27 AM, Jean Dubois wrote:
> I was wrong writing idle_as_root worked this way. As a matter of fact,
> this method also does not work as expected, as can be seen from this
> message:
>
> X11 connection rejected because of wrong authentication.
>
> New 'X' desktop is raspberrypi:1
>
On 12/22/2013 10:20 AM, em rexhepi wrote:
> When I use my code it just displays nothing
>
> My code:
> #!/usr/local/bin/python3.1
>
> import cgitb;cgitb.enable()
>
> import urllib.request
> response = urllib.request.build_opener()
> response.addheaders = [('User-agent', 'Mozilla/5.0')]
> respons
On 12/22/2013 08:20 PM, Kevin Peterson wrote:
> Hi,
>
> I am trying to control Aeroplane mode on Android using Python code.
> I am running QPyPlus python. When I execute this code(that is widespread
> in the net),
>
> #!/usr/bin/python
> import android droid = android.Android()
> #
On 12/23/2013 07:06 AM, Jean Dubois wrote:
> I thought this would be something python-people are familiar with, after
> all idle is a Python IDE and running it as a root sometimes is necessary.
On most desktop distros like Fedora, sudo idle would indeed work.
The fact that it's not working on you
On 12/24/2013 11:27 AM, [email protected] wrote:
> Indeed this is code what I found on the web to read temperatures from
> 10 DS18B20 singlewire sensors.
>
> My only programming (little) experience is VBA (Excel mostly).
>
Definitely you'll want to learn python before you go much farther
Hi,
I use live Debian on VM and trying to compile this code.
import Tkinter
root = Tkinter.Tk()
root.title("Fenster 1")
root.geometry("100x100")
root.mainloop()
The shell gives out that kind of message:
File "test.py", line 5, in
root = Tkinter.Tk()
File "/usr/lib/python2.7/lib-tk/Tkint
On 01/05/2014 04:30 PM, Ben Finney wrote:
> In short: Everything that was good about OpenOffice is now called
> LibreOffice, which had to change its name only because the owners of
> that name refused to let it go.
Your information is a year or two out of date. OpenOffice.org is alive
and well, u
On 01/06/2014 08:53 AM, Grant Edwards wrote:
> Yea, I think laying out a book with something like MS Word or
> LibreOffice is nuts. Depending on her formatting needs, a
> lighter-weight mark-up language (something like asciidoc) might suite:
I've laid out a book with LibreOffice and it actually
On 01/07/2014 09:58 AM, Chris Angelico wrote:
> On Wed, Jan 8, 2014 at 3:45 AM, Michael Torrie wrote:
>> I tend to add my own [styles]
>> for quotes, captions, etc. After composing the document,
>> then you modify the styles to set the spacings, fonts, indentations,
>&
On 01/07/2014 10:14 AM, Chris Angelico wrote:
> On Wed, Jan 8, 2014 at 4:10 AM, Michael Torrie wrote:
>> LO does reference images if you would like. But I find embedding the
>> whole works is just more self-contained. And with multiple file
>> documents the chances of l
Apologies to the list for the noise! Should have replied off-list.
--
https://mail.python.org/mailman/listinfo/python-list
2201 - 2300 of 4899 matches
Mail list logo