On Tue, 16 Jul 2013 15:43:45 -0700, John Ladasky wrote:
> The kids all claim to be interested. They all want to write the next
> great 3D video game. Thus, I'm a little surprised that the kids don't
> actually try to sit down and code without me prompting them. I think
> that they're disappoint
On 17/07/2013 8:43 AM, John Ladasky wrote:
The kids all claim to be interested. They all want to write the next great 3D
video game. Thus, I'm a little surprised that the kids don't actually try to
sit down and code without me prompting them. I think that they're disappointed
when I show th
Le mardi 16 juillet 2013 08:55:58 UTC+2, Mohan L a écrit :
> Dear All,
>
>
>
> Here is my script :
>
>
>
> #!/usr/bin/python
>
>
> import re
>
>
>
>
> # A string.
> logs = "date=2012-11-28 time=21:14:59"
>
>
>
> # Match with named groups.
> m =
> re.match("(?P(date=(?P[^\s]+))\s+(ti
Noted on the quoting thing.
Regarding the threading, well, first, I'm not so much a programmer as someone
who knows a bit of how to program.
And it seems that the only way to update a tkinter window is to use the
.update() method, which is what I was experimenting with. Start up a new thread
t
On 07/16/2013 09:51 PM, fronag...@gmail.com wrote:
If you are going to use googlegroups, then at least bypass its worst
bugs, like double-spacing everything it quotes.
http://wiki.python.org/moin/GoogleGroupsPython
Yeah, I understand that tkinter isn't really designed for 'logic is runn
On Wednesday, July 17, 2013 9:40:15 AM UTC+8, Dave Angel wrote:
> On 07/16/2013 08:57 PM, fronag...@gmail.com wrote:
>
> > Hm. So I've written a GUI in tkinter. I've found two performance issues, I
> > was hoping someone could point me in the right direction.
>
> >
>
> > Firstly, I'm using an i
On 07/16/2013 08:57 PM, fronag...@gmail.com wrote:
Hm. So I've written a GUI in tkinter. I've found two performance issues, I was
hoping someone could point me in the right direction.
Firstly, I'm using an image as a border, namely:
This works, yes, but is annoyingly laggy on an older
On Tue, Jul 16, 2013 at 9:32 PM, David Hutto wrote:
> I've had a similar problem with a tkinter/3D app. right now I'm looking
> toward Blender, and the Python API, but there is also wxpython, and the
> usual python's library gtk.
>
> There is also matplotlib with the ion window. but, I, personall
On Wed, Jul 17, 2013 at 10:53 AM, Joel Goldstick
wrote:
> There is a book : http://inventwithpython.com/ Invent Your Own Computer
> Games with Python
> which claims to teach people to program games in python. I haven't read it,
> but it seems to be for beginning programmers. Take a look.. Maybe
I've had a similar problem with a tkinter/3D app. right now I'm looking
toward Blender, and the Python API, but there is also wxpython, and the
usual python's library gtk.
There is also matplotlib with the ion window. but, I, personally, am going
to go with Blender, and Python API, with maybe a fe
Hm. So I've written a GUI in tkinter. I've found two performance issues, I was
hoping someone could point me in the right direction.
Firstly, I'm using an image as a border, namely:
from tkinter import *
from tkinter import ttk
root_frame = Tk()
root_frame.configure(background = 'black')
img1
On Wed, Jul 17, 2013 at 10:51 AM, Dennis Lee Bieber
wrote:
> On Tue, 16 Jul 2013 22:43:35 +0300, ??? declaimed
> the following:
>
>>
>>Lest say i embed inside my index.html the Javascript Geo Code.
>>
>>Is there a way to pass Javascript's outcome to my Python cgi script somehow?
>>
>>Can Java
On Tue, Jul 16, 2013 at 8:40 PM, Chris Angelico wrote:
> On Wed, Jul 17, 2013 at 8:43 AM, John Ladasky
> wrote:
> > I think that they're disappointed when I show them how much they have to
> understand just to write a program that plays Tic Tac Toe.
>
>
> The disillusionment of every novice prog
On Wed, Jul 17, 2013 at 8:43 AM, John Ladasky
wrote:
> I think that they're disappointed when I show them how much they have to
> understand just to write a program that plays Tic Tac Toe.
The disillusionment of every novice programmer, I think. It starts out
as "I want to learn programming and
On 7/16/2013 1:29 PM, Daniel Kersgaard wrote:
I'm having a little trouble, tried Googling it, but to no avail.
> Currently, I'm working on making a snake game, however
> I'm stuck on a simple border.
To give a variation of the other answers, it would be easier if you drew
the four sides more s
On 16/07/2013 12:48 PM, Michael Torrie wrote:
I've posted a link to detailed information on this no less than three
times, yet Nikos has not read any of it, sadly.
Just a quick reminder for everyone:
"Ferrous Cranus is utterly impervious to reason, persuasion and new
ideas, and when engaged i
Any program, to me, is just like speaking english. The class, or function
name might not fully mesh with what your cognitive structure assumes it to
be.read through the imports first, and see the classes and functions come
alive with experience comes intuition of what it does, and the instances
tha
You have to utilize a set curriculum to teach. Look at several books like
Dive Into Python, and such, then work with the student on an individualized
project for each one. For 3D you go with pygame and trig, or go with
Blender's python API
or matplotlib. Just at first show the basic types of data,
On 7/16/2013 2:04 PM, Ian Kelly wrote:
The documentation appears to be wrong. It says:
"""
If a name binding operation occurs anywhere within a code block, all
uses of the name within the block are treated as references to the
current block. This can lead to errors when a name is used within a
Hi folks,
No, I'm not asking for YOU to help ME with a Python homework assignment!
Previously, I mentioned that I was starting to teach my son Python.
https://groups.google.com/d/msg/comp.lang.python/I7spp6iC3tw/8lxUXfrL-9gJ
He just took a course at his high school called Web Technology and D
On Tue, Jul 16, 2013 at 3:43 PM, Νικόλας wrote:
> Στις 14/7/2013 1:57 πμ, ο/η Michael Torrie έγραψε:
>
>> On 07/13/2013 12:23 PM, Νικόλας wrote:
>>
>>> Do you know a way of implementing anyone of these methods to a script?
>>>
>>
>> Yes. Modern browsers all support a location API in the browser
Στις 14/7/2013 1:57 πμ, ο/η Michael Torrie έγραψε:
On 07/13/2013 12:23 PM, Νικόλας wrote:
Do you know a way of implementing anyone of these methods to a script?
Yes. Modern browsers all support a location API in the browser for
javascript. See this:
http://diveintohtml5.info/geolocation.htm
On 07/16/2013 01:29 PM, Daniel Kersgaard wrote:
I'm having a little trouble, tried Googling it, but to no avail. Currently, I'm
working on making a snake game, however I'm stuck on a simple border. The only
thing I need help with is when you run the program, the bottom right corner of
the bord
> Literally any idea will help, pen and paper, printing off all the code
and doing some sort of highlighting session - anything!
> I keep reading bits of code and thinking "well where the hell has that
been defined and what does it mean" to find it was inherited from 3
modules up the chain.
>
I didn't even think about that! I added one more draw and it worked like a
charm, thanks so much! I'm not sure why I couldn't think of that!
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, Jul 17, 2013 at 3:29 AM, Daniel Kersgaard
wrote:
> def drawWalls(surface):
>
> #left and right walls
> for y in range(HEIGHT):
> surface.blit(wallblock, (0, y * BLOCK_SIZE))
> surface.blit(wallblock, (WIDTH * BLOCK_SIZE, y * BLOCK_SIZE))
>
> for x in range(W
On Tue, Jul 16, 2013 at 9:25 AM, Jack Bates wrote:
> Ah, thank you Chris Angelico for explaining how this is like what happens
> with default arguments to a function and Joshua Landau for pointing out how
> assignments inside class bodies refer to properties of "self" on the LHS. It
> makes sense
I'm having a little trouble, tried Googling it, but to no avail. Currently, I'm
working on making a snake game, however I'm stuck on a simple border. The only
thing I need help with is when you run the program, the bottom right corner of
the border is missing. I'm not sure why. And I know I'm no
16.07.13 15:04, Chris Angelico написав(ла):
Piece of extreme oddity, this.
help(sys.float_info)
... lots of other info ...
| max_exp
| DBL_MAX_EXP -- maximum int e such that radix**(e-1) is representable
|
| min_exp
| DBL_MIN_EXP -- minimum int e such that radix**(e-1) is
On 16 July 2013 16:38, MRAB wrote:
> On 16/07/2013 11:18, Mohan L wrote:
>>
>> I using another third party python script. It takes the regex from
>> configuration file. I can't write any code. I have to do all this in
>> single regex.
>>
> A capture group captures a single substring.
>
> What you'
On 16/07/2013 11:18, Mohan L wrote:
On Tue, Jul 16, 2013 at 2:12 PM, Joshua Landau mailto:jos...@landau.ws>> wrote:
On 16 July 2013 07:55, Mohan L mailto:l.mohan...@gmail.com>> wrote:
>
> Dear All,
>
> Here is my script :
>
> #!/usr/bin/python
> import r
On 15/07/13 09:13 AM, Joshua Landau wrote:
On 15 July 2013 16:50, Jack Bates wrote:
Hello,
Is the following code supposed to be an UnboundLocalError?
Currently it assigns the value 'bar' to the attribute baz.foo
foo = 'bar'
class baz:
foo = foo
If so, then no. Assignments ins
Ben Last wrote:
north_american_number_re = (RE().start
.literal('(').followed_by.exactly(3).digits.then.literal(')')
.then.one.literal("-").then.exactly(3).digits
.then.one.dash.followed_by.exactly(4).digits.then.end
.as
On Tue, Jul 16, 2013 at 2:12 PM, Joshua Landau wrote:
> On 16 July 2013 07:55, Mohan L wrote:
> >
> > Dear All,
> >
> > Here is my script :
> >
> > #!/usr/bin/python
> > import re
> >
> > # A string.
> > logs = "date=2012-11-28 time=21:14:59"
> >
> > # Match with named groups.
> > m =
> >
> re.m
Am 16.07.2013 14:04, schrieb Chris Angelico:
> Piece of extreme oddity, this.
>
help(sys.float_info)
> lots of other info ...
> | max_exp
> | DBL_MAX_EXP -- maximum int e such that radix**(e-1) is representable
> |
> | min_exp
> | DBL_MIN_EXP -- minimum int e such that r
ANNOUNCING
eGenix EuroPython 2013 Talks & Videos
This announcement is also available on our web-site for online reading:
http://www.egenix.com/company/news/EuroPython-2013-Presentations.html
On Tue, Jul 16, 2013 at 9:43 PM, Marco wrote:
> Hi all, why the maximum and minimum exp values are 1024 and -1021?:
>
sys.float_info
> sys.float_info(max=1.7976931348623157e+308, max_exp=1024, max_10_exp=308,
> min=2.2250738585072014e-308, min_exp=-1021, min_10_exp=-307, dig=15,
> mant_dig=53
Hi all, why the maximum and minimum exp values are 1024 and -1021?:
>>> sys.float_info
sys.float_info(max=1.7976931348623157e+308, max_exp=1024,
max_10_exp=308, min=2.2250738585072014e-308, min_exp=-1021,
min_10_exp=-307, dig=15, mant_dig=53, epsilon=2.220446049250313e-16,
radix=2, rounds=1)
Am 07/12/2013 07:16 PM, schrieb MRAB:
On 12/07/2013 23:16, Tim Delaney wrote:
On 13 July 2013 03:58, Devyn Collier Johnson mailto:devyncjohn...@gmail.com>> wrote:
Thanks for the thorough response. I learned a lot. You should write
articles on Python.
I plan to spend some time opti
Am 13.07.2013 10:53, schrieb Simfake Fake:
> Hi. I'm trying to connect to a bluetooth serial adaptor using python
> 3.x. However, in python 3.3.2 win x32, I get "AttributeError: module has
> no attribute AF_..." when trying to use socket.AF_BLUETOOTH, despite the
> docs http://docs.python.org/3.3/l
- Original Message -
> Thanks for all the suggestions, I'm afraid I didn't get a chance to
> view them over the weekend but I will get started with them this
> morning. I'm currently using sublime 2 for my text editor and tried
> to create a UML diagram using Pylint to try and get a map ove
On 16 July 2013 07:55, Mohan L wrote:
>
> Dear All,
>
> Here is my script :
>
> #!/usr/bin/python
> import re
>
> # A string.
> logs = "date=2012-11-28 time=21:14:59"
>
> # Match with named groups.
> m =
> re.match("(?P(date=(?P[^\s]+))\s+(time=(?P[^\s]+)))",
> logs)
>
> # print
> print m.groupdic
On 15 July 2013 23:21, Ben Last wrote:
> Hi all
>
> I'd be interested in comments on a fluent regular expression generator I've
> been playing with (inspired by the frustrations of a friend of mine who's
> learning).
>
> The general use case is to be able to construct RE strings such as:
>
> r'^\(
On 7/16/2013 1:44 AM, Vito De Tullio wrote:
Hi
I was writing a decorator and lost half an hour for a stupid bug in my code,
but honestly the error the python interpreter returned to me doesn't
helped...
$ python3
Python 3.3.0 (default, Feb 24 2013, 09:34:27)
[GCC 4.7.2] on linux
Type "help", "c
On Tue, Jul 16, 2013 at 3:52 PM, Simfake Fake wrote:
> Just bumping this, but has anybody have any personal experience with
> bluetooth in python 3? Perhaps my issue is that the windows version doesn't
> include it?
I haven't worked with Bluetooth in Python, but my reading of the
socket module do
Dear All,
Here is my script :
#!/usr/bin/python
import re
# A string.
logs = "date=2012-11-28 time=21:14:59"
# Match with named groups.
m =
re.match("(?P(date=(?P[^\s]+))\s+(time=(?P[^\s]+)))",
logs)
# print
print m.groupdict()
Output:
{'date': '2012-11-28', 'datetime': '*date=2012-
Just bumping this, but has anybody have any personal experience with
bluetooth in python 3? Perhaps my issue is that the windows version doesn't
include it?
On Sat, Jul 13, 2013 at 6:23 PM, Simfake Fake wrote:
> Hi. I'm trying to connect to a bluetooth serial adaptor using python 3.x.
> However,
Hi all
I'd be interested in comments on a fluent regular expression generator I've
been playing with (inspired by the frustrations of a friend of mine who's
learning).
The general use case is to be able to construct RE strings such as:
r'^\(\d{3,3}\)-{1,1}\d{3,3}\-{1,1}\d{4,4}$' (intended to mat
Hi,
I am not so familiar with Python, I just want to use the multicorn external
data wrapper and plpythonu2 language with PostgreSQL, my question is which
option to specify when build Python 3.3 with shared libraries from source.
Regards,
Xiaobo Gu--
http://mail.python.org/mailman/listinfo/
49 matches
Mail list logo