Re: Testing (sorry)

2024-02-18 Thread Alex Kaye via Python-list
We see you Peter AK On Sun, Feb 18, 2024 at 2:41 PM Peter J. Holzer via Python-list < python-list@python.org> wrote: > [Replying to the list *and* Grant] > > On 2024-02-17 19:38:04 -0500, Grant Edwards via Python-list wrote: > > Today I noticed that nothing I've posted to python-list in past 3 >

Re: Is there a Python module to parse a date like the 'date' command in Linux?

2023-05-23 Thread Alex Pinkney
On Tue, 23 May 2023, 17:25 Chris Green, wrote: > Mike Dewhirst wrote: > > [-- multipart/mixed, encoding 7bit, 22 lines --] > > > > [-- text/plain, encoding base64, charset: UTF-8, 16 lines --] > > > > On 21/05/2023 5:53 am, Chris Green wrote: > > > I'm converting a bash script to python as i

Addition of a .= operator

2023-05-20 Thread Alex Jando
I have many times had situations where I had a variable of a certain type, all I cared about it was one of it's methods. For example: import hashlib hash = hashlib.sha256(b'word') hash = hash.hexdigest() ---

Re: What to use for finding as many syntax errors as possible.

2022-11-08 Thread Alex Hall
On Sunday, October 9, 2022 at 12:09:45 PM UTC+2, Antoon Pardon wrote: > I would like a tool that tries to find as many syntax errors as possible > in a python file. I know there is the risk of false positives when a > tool tries to recover from a syntax error and proceeds but I would > prefer th

( AI retail store inventory control.)

2021-09-02 Thread Alex Kaye
Looking for Python package to develop positive inventory control for a chain of stores. Alex kaye -- https://mail.python.org/mailman/listinfo/python-list

<< robot control >>

2021-03-12 Thread Alex Kaye
I am looking for a package or module that would use my Rasberry Pi 3 wirelessly to control a land vehicle or someone to consult with to discuss some of my options. Maybe with joystick commands. Alex -- https://mail.python.org/mailman/listinfo/python-list

Re: Python Mauritius Usergroup - End of Year report 2020

2021-01-03 Thread Alex Kaye
Super report, need more like it from others ! A.K. On Sun, Jan 3, 2021 at 2:06 AM Abdur-Rahmaan Janhangeer < arj.pyt...@gmail.com> wrote: > Greetings, > > ^^ Thanks! > > Kind Regards, > > Abdur-Rahmaan Janhangeer > about | blog >

Re: EuroPython videos all on archive.org

2020-11-28 Thread Alex Kaye
Without volunteers, the world would end, abruptly ! Thanks, Alex On Sat, Nov 28, 2020 at 5:48 AM M.-A. Lemburg wrote: > Over the last few weeks, Anthon van der Neut, our media work group chair > for EP2015 and EP2016, put in a lot of effort into getting all our > conference

Re: Phyton 32 or 64 bit?

2020-05-26 Thread Alex Kaye
To all: The only stupid question is one that wasn't asked ! Alex On Tue, May 26, 2020 at 12:42 PM MRAB wrote: > On 2020-05-26 19:13, R. A. Hoffman via Python-list wrote: > > > > Good afternoon, > > > > > > > > Please forgive what may be a stu

Re: EuroPython 2020: Going virtual / EuroPython 2021: Dublin, Ireland

2020-03-17 Thread Alex Kaye
Glad to read this. It is about time to benefit those of us that do not travel to events. AK On Tue, Mar 17, 2020 at 2:52 AM M.-A. Lemburg wrote: > In our blog post on the COVID-19 last week, we were still hopeful that > the situation would improve in time for the event in July. The last > few

IDLE missing !

2019-09-01 Thread Alex
them. They do get installed into the system but the IDLE is not installed. what should I do about it ? Regrards, Alex Sent from Mail for Windows 10 -- https://mail.python.org/mailman/listinfo/python-list

Re: Python resources recommendations

2019-03-09 Thread Alex Kaye
DL, Good advice. U of M is well done and interesting. One wonders what Arup plans to use Python for. I am dabbling and am relearning from DOS and machine language on AppleII. A K.

Re: My appreciation for python's great work to my country.

2019-02-11 Thread Alex Kaye
Kiyimba, In my community in Arizona ( pop 7000) I am the only one using Linux and the only one who is studying Python, no one is coding. So spread your knowledge among the youth of your commun ity. It is good for their future. Alex Kaye On Sat, Feb 9, 2019 at 1:34 PM Terry Reedy wrote: >

Re: get the terminal's size

2019-01-15 Thread Alex Ternaute
smthlike: cs.tty.ttysize(0) WinSize(rows=50, columns=100) anotherTty=open('/dev/pts/3', 'rw') cs.tty.ttysize(anotherTty) WinSize(rows=43, columns=199) It runs :) I do not need that today but one day orother it could help. Cheers -- Alex -- https://mail.python.org/mailman/listinfo/python-list

Re: get the terminal's size

2019-01-15 Thread Alex Ternaute
om/questions/1396820/apt-like-column-output- python-library/1446973#1446973 Fine, but It meets much more needs than my present one. But thanks too. Bye -- Alex -- https://mail.python.org/mailman/listinfo/python-list

Re: get the terminal's size

2019-01-15 Thread Alex Ternaute
n argument. I tried : P = Popen(['stty', '-a'], stdout=subprocess.PIPE, universal_newlines=True) and it runs fine too, so the output seems not really related to that fd. Btw I did not know about namedtuple, thanks for that too. > Hope this helps. Greatly. Cheers, -- Alex -- https://mail.python.org/mailman/listinfo/python-list

Re: get the terminal's size

2019-01-14 Thread Alex Ternaute
order to use get_terminal_size(). Bye -- Alex -- https://mail.python.org/mailman/listinfo/python-list

Re: get the terminal's size

2019-01-14 Thread Alex Ternaute
ows the windows resizings. Whenever I consider forking to Python3, this would be my 1st step. >> Please, is there something similar for python2 ? > I suspect there is some solution in the curses module... I did dir(curse) but I could not see if something goes this way. Bye -- Alex -- https:/

Re: get the terminal's size

2019-01-14 Thread Alex Ternaute
Hi, Peter Otten : >> In a terminal, I type $ echo $COLUMNS 100 >> But in Python, os.getenv("COLUMNS") gets nothing. >> I feel that I'm missing something but what ? > $ export COLUMNS Thank you very much ! -- Aelx -- https://mail.python.org/mailman/listinfo/python-list

get the terminal's size

2019-01-14 Thread Alex Ternaute
subprocess. I feel that I'm missing something but what ? Looking on the internet for a hint, I see that python3 has an os.get_terminal_size(). Please, is there something similar for python2 ? Cheers -- Alex -- https://mail.python.org/mailman/listinfo/python-list

Re: ANN: Python Meeting Düsseldorf - 07.11.2018

2018-11-13 Thread Alex Kaye
Is anyone conducting Python webinars ? It would be helpful to us beginners. It could become a worldwide connector for Python users. Alex On Tue, Nov 13, 2018 at 3:21 AM eGenix Team: M.-A. Lemburg wrote: > > [This announcement is in German since it targets a local user group > m

Re: Anaconda with Python 3.7

2018-09-05 Thread Alex Kaye
When one downloads Anaconda, doesn't it bring Pyhon with it ? AK On Mon, Sep 3, 2018 at 6:13 AM Thomas Jollans wrote: > On 2018-09-03 11:38, gvim wrote: > > Anyone have any idea when Anaconda might ship a version compatible with > > Python 3.7. I sent them 2 emails but no reply. > > > > gvim >

Re: Anaconda with Python 3.7

2018-09-05 Thread Alex Kaye
Sorry bad typing. AK On Mon, Sep 3, 2018 at 7:07 AM Alex Kaye wrote: > When one downloads Anaconda, doesn't it > bring Pyhon with it ? > > AK > > On Mon, Sep 3, 2018 at 6:13 AM Thomas Jollans wrote: > >> On 2018-09-03 11:38, gvim wrote: >> > Anyone

Re: Anaconda with Python 3.7

2018-09-03 Thread Alex Kaye
When one downloads Anaconda, doesn't it bring Pyhon with it ? AK On Mon, Sep 3, 2018 at 6:13 AM Thomas Jollans wrote: > On 2018-09-03 11:38, gvim wrote: > > Anyone have any idea when Anaconda might ship a version compatible with > > Python 3.7. I sent them 2 emails but no reply. > > > > gvim >

Re: Anaconda with Python 3.7

2018-09-03 Thread Alex Kaye
Sorry bad typing. AK On Mon, Sep 3, 2018 at 7:07 AM Alex Kaye wrote: > When one downloads Anaconda, doesn't it > bring Pyhon with it ? > > AK > > On Mon, Sep 3, 2018 at 6:13 AM Thomas Jollans wrote: > >> On 2018-09-03 11:38, gvim wrote: >> > Anyone

RE: [Python-Dev] [RELEASE] Python 2.7.15

2018-05-01 Thread Alex Walters
I've gotten some mixed signals on the status of this release, notably from the BDFL: https://twitter.com/gvanrossum/status/991170064417153025 "Python 2.7.15 released -- the last 2.7 release!" (and a link to this thread) I was under the impression that 2.7 was being supported until 2020. If this

RE: concurrent-log-handler 0.9.6 released

2017-08-02 Thread Alex Walters
Pypiwin32 exists to allow pywin32 to be installed through pip (thanks to Glyph and the Twisted project for supporting that) > -Original Message- > From: Python-announce-list [mailto:python-announce-list-bounces+tritium- > list=sdamon@python.org] On Behalf Of Preston Landers > Sent: Sun

K-means Python code analyse

2016-11-23 Thread Alex
Can please anyone explaine me what do each of these code lines and how k-means algorithm works? from scipy.cluster.vq import * from scipy.misc import imresize from pylab import * from PIL import Image steps = 500 im = array(Image.open("empire.jpg")) dx = im.shape[0] / steps dy = im.shape[1] / s

Re: PyCon Keynote

2016-06-18 Thread alex wright
I enjoyed it. Skipped most of the intro video but I enjoyed the content of his talk. Shared with a co-worker as well. On Jun 18, 2016 5:23 PM, "Chris Angelico" wrote: > On Sun, Jun 19, 2016 at 7:14 AM, Quivis wrote: > > On Thu, 09 Jun 2016 12:53:37 -0700, Ethan Furman wrote: > > > >>https:

Re: movie from pictures

2016-06-10 Thread alex wright
I find shlex.split to be most useful to make my arguments a list in these cases. On Jun 9, 2016 3:28 PM, "MRAB" wrote: > On 2016-06-09 19:58, Peter Otten wrote: > >> Nev wrote: >> >> Thank you for your reply. I tried something like this in python code: >>> >>> from subprocess import call >>> call

Re: Django Girls workshop at EuroPython 2016

2016-05-26 Thread alex wright
From the link: "If you are a woman, know English and have a laptop you can apply for a pass!" So it would appear so. On Thu, May 26, 2016 at 5:39 AM, Karim wrote: > > > On 26/05/2016 10:58, M.-A. Lemburg wrote: > >> We’re pleased to announce a Django Girls workshop on Sunday, July 17, >> the f

Re: How to put back a number-based index

2016-05-14 Thread alex wright
I have recently been going through "Data Science From Scratch" which may be interesting. There is a podcast with the author on talk python to me. https://talkpython.fm/episodes/show/56/data-science-from-scratch On Sat, May 14, 2016 at 10:33 AM, Michael Selik wrote: > You might also be interest

Re: Python is an Equal Opportunity Programming Language

2016-05-06 Thread alex wright
It seems like it would be equal opportunity between sexes. 1:1 opportunity to ask based on apparent sex. It is not equal representation necessarily. On May 6, 2016 5:53 PM, "beliavsky--- via Python-list" < python-list@python.org> wrote: > On Friday, May 6, 2016 at 5:07:28 PM UTC-4, Ethan Furman

Re: How to become more motivated to learn Python

2016-05-04 Thread alex wright
Beyond motivation, it's not likely just reading a flat text will be retained meaningfully without creative problem solving. Personal projects are the best route in my opinion. I like reading technical books but I figure I retain a small percentage of the specifics. On May 4, 2016 6:32 AM, "mvilja

Re: Guido sees the light: PEP 8 updated

2016-04-16 Thread alex wright
The 80 column limit probably helps protect us from the singularity. Once the robots take over we will have code with a digestible amount of logic per line and can fix what we have caused. In other words, Java is only armoring the robots against us for the inevitable battle. On Sat, Apr 16, 2016

Re: Guido sees the light: PEP 8 updated

2016-04-16 Thread alex wright
We employ a pretty hard limit of 100. This way I can reliably have 1 module split vertically with a test or configuration file open or 3 separate modules, etc. I find 80 to be a bit strict, although in the past I've been in unfortunate environments where it was helpful. The rest of PEP8 is large

Re: HTTPSConnection from http.client?

2015-11-17 Thread Alex Naumov
Hello Peter, thanks for your reply. >>> import ssl Works well in python2 and 3. Maybe somebody know another way to create a SSL connection (username/password)? I just need to log in and log out. Thanks, Alex On Tue, Nov 17, 2015 at 2:24 PM, Peter Otten <__pete...@web.de> wrote

Re: HTTPSConnection from http.client?

2015-11-17 Thread Alex Naumov
On Tue, Nov 17, 2015 at 12:22 PM, Peter Otten <__pete...@web.de> wrote: > Alex Naumov wrote: > >> Hello, >> >> does anybody know how to create a HTTPS connections in python2 or python3? >> I tried second day to do that with http.client[1], but every time get >

HTTPSConnection from http.client?

2015-11-17 Thread Alex Naumov
? I use openSUSE 13.1 x86_64. Thank you, Alex [1] https://docs.python.org/3/library/http.client.html -- https://mail.python.org/mailman/listinfo/python-list

Re: why does id(multiprocessing.Process.start) == id(multiprocessing.Process.start)?

2015-08-17 Thread alex . flint
On Monday, August 17, 2015 at 3:24:22 PM UTC-7, alex@gmail.com wrote: > using Python 2.7.9, I get the following: > > >>> id(multiprocessing.Process.start) == id(multiprocessing.Process.start) > True > > But on the other hand: > > >

why does id(multiprocessing.Process.start) == id(multiprocessing.Process.start)?

2015-08-17 Thread alex . flint
using Python 2.7.9, I get the following: >>> id(multiprocessing.Process.start) == id(multiprocessing.Process.start) True But on the other hand: >>> multiprocessing.Process.start is multiprocessing.Process.start False I thought that these two expressions were equivalent. Can somebody help me to

Re: How to model government organization hierarchies so that the list can expand and compress

2015-08-17 Thread Alex Glaros
- can have multiple parents 2. adjacent_parent_id (FK to above table) Thanks to all for the assistance. Led me to some great articles including http://explainextended.com/2009/09/24/adjacency-list-vs-nested-sets-postgresql/ Alex -- https://mail.python.org/mailman/listinfo/python-list

Re: How to model government organization hierarchies so that the list can expand and compress

2015-08-14 Thread Alex Glaros
with that now. Of course some agencies will be at equal levels; will ignore for now. 3. Could not find Laura's response. Was it deleted? 4. Solution will expressed in the DB, not Python. Much appreciated! Alex -- https://mail.python.org/mailman/listinfo/python-list

How to model government organization hierarchies so that the list can expand and compress

2015-08-13 Thread Alex Glaros
anizational list. Am using Postgres, not graph database. I'm hoping someone else has worked on this problem, probably not with government agency names, but perhaps the same principle with other objects. Thanks! Alex Glaros -- https://mail.python.org/mailman/listinfo/python-list

Re: ANN: eGenix PyRun - One file Python Runtime 2.1.0

2015-07-17 Thread Alex
> Laura > > In a message of Thu, 16 Jul 2015 18:58:37 -0400, Alex writes: > >Do you have Python 2.7 64bit versions available for Solaris (10/11) > >x86/SPARC, AIX, and HP-UX IA/RISC? I've had the displeasure of having to > >install 64bit Python on Solaris and AIX an

Re: ANN: eGenix PyRun - One file Python Runtime 2.1.0

2015-07-16 Thread Alex
Do you have Python 2.7 64bit versions available for Solaris (10/11) x86/SPARC, AIX, and HP-UX IA/RISC? I've had the displeasure of having to install 64bit Python on Solaris and AIX and it's an experience I would not recommend even though OpenCSW and Perzl have done much of the legwork already. I'd

Re: ImportPython Newsletter

2015-05-04 Thread Alex McFerron
I had the same problem just now Sent from my iPhone > On May 3, 2015, at 11:00 AM, Terry Reedy wrote: > >> On 5/3/2015 12:01 PM, Ankur Gupta wrote: >> Hey Guys, >> >> Just like to draw attention to ImportPython a weekly Python >> newsletter. This is the 30th issue of the newsletter >> http://i

Отв: Python on armv7l router: C++ exceptions issue

2015-01-29 Thread Alex Potapenko
Found a solution myself. It looks like you have to explicitly link python with libgcc_s during build time to solve this problem. This looks like a uClibc bug Regards,Alex среда, 28 января 2015 19:44 Alex Potapenko писал(а): I run Python on an arm-brcm-linux-uclibcgnueabi router

Python on armv7l router: C++ exceptions issue

2015-01-28 Thread Alex Potapenko
y help is greatly appreciated! Thanks in advance, Alex module.cpp Description: Binary data -- https://mail.python.org/mailman/listinfo/python-list

To automate email login through browser

2014-08-29 Thread subin alex
Hi Guys, I am very new to python and am trying to learn python. I want to automate my email login through browser,in a way that when my computer boots up,it must be automatically logged into my mailbox. Please provide your suggestions on this :) Thanks & Regards, Subin Alex. -- h

Re: Re: PyQt4 - Issue with deleting a QWidget from a QGridLayout

2014-08-20 Thread Alex Murray
> Please do not post in HTML it makes everything an unreadable mess > (I have left you original post above so you can see what I mean.) Sorry, here's the original e-mail in plain text: Hi, I've discovered some very strange behaviour when trying to delete a QWidget from a QGridLayout. The followi

PyQt4 - Issue with deleting a QWidget from a QGridLayout

2014-08-19 Thread Alex Murray
Hi,   I've discovered some very strange behaviour when trying to delete a QWidget from a QGridLayout. The following code demonstrates this behaviour:   >>> from PyQt4 import QtGui >>> import sys >>> app = QtGui.QApplication(sys.argv) >>> grid_layout = QtGui.QGridLayout() >>> grid_layout.addW

Re: Coding challenge: Optimise a custom string encoding

2014-08-18 Thread Alex Willmer
On Monday, 18 August 2014 21:16:26 UTC+1, Terry Reedy wrote: > On 8/18/2014 3:16 PM, Alex Willmer wrote: > > A challenge, just for fun. Can you speed up this function? > > You should give a specification here, with examples. You should perhaps Sorry, the (informal) spec w

Coding challenge: Optimise a custom string encoding

2014-08-18 Thread Alex Willmer
in byteseq} def plus_encode(s): """Encode a unicode string with only ascii letters, digits, _, -, @, + """ bytemap_ = bytemap s_utf8 = s.encode('utf-8') return ''.join([bytemap[byte] for byte in s_utf8]) On my machine (Ubuntu

Re: dict to boolean expression, how to?

2014-08-01 Thread Alex van der Spek
On Fri, 01 Aug 2014 12:45:12 +, Alex van der Spek wrote: > With a dict like so: > > cond = {'a': 1, 'b': 1, 'c': 1, > 'A': 0, 'B', 0, 'C':0} > > how would you make a boolean expression like

dict to boolean expression, how to?

2014-08-01 Thread Alex van der Spek
27;B' == 0) | ('c' == 1) & ('C' == 0)) The fact that lowercase and uppercase keys are stringed together with & is intentional albeit the actual condition is a bit more tricky. I've tried several approaches using eval() on a string built from the dict but landed with just spelling it out literally. Any pointers welcome. Alex -- https://mail.python.org/mailman/listinfo/python-list

Re: Proposal: === and !=== operators

2014-07-10 Thread Alex Burke
no equality special cases to explain * make potentially meaningless comparisons immediately clear * if you really want to compare NaNs you can catch the case and return math.isnan(left) and math.isnan(right) The obvious issue is possibility of exceptions from arbitrary == comparisons. PS hoping

Re: error handling when opening files

2014-07-09 Thread Alex Burke
> Interestingly, did you know that even *closing* a file can fail? No I didn't, interesting piece on information for sure! I thought close() is usually made to always succeed regardless if it actually hosed up. Any idea what the context manager will do in that case? (I ask as that else-with form l

Re: error handling when opening files

2014-07-09 Thread Alex Burke
> If that's what you're expecting, then your message is wrong, because > you say "file never opened" - but you possibly DID open it, and maybe > read something from it. The choice between the two forms should be > based on whether you want to distinguish between errors on opening and > errors on re

error handling when opening files

2014-07-07 Thread Alex Burke
and if the with block succeeds set it to some other value thus being able to do an if not None check afterward. That's probably enough conflated questioning for now.. who'd have thought opening a file could be such a poser! Yep, it's always the error handling :) Thanks in advance,

Python MSI Repo

2014-06-12 Thread Alex Rodrigues
Is there a public repository for the python windows installer? I'd like to play around with it. - Alex -- https://mail.python.org/mailman/listinfo/python-list

Re: ctypes: returning an array from a subroutine

2014-04-20 Thread Alex van der Spek
Many hours later I found a working solutions in ctypes: The below makes sense to me but I am still at a loss why the first solution did not work. Anybody willing to explain for my better understanding? Regards, Alex van der Spek _snns

ctypes: returning an array from a subroutine

2014-04-20 Thread Alex van der Spek
rint outdat +++ This executes but leaves the outdat array unchanged. Obviously I haven't understood ctypes well enough. Returning arrays from FORTRAN I routinely do through a string_buffer. That works very well but did not work here at all. Any and all help we

Re: Deep vs. shallow copy?

2014-03-12 Thread Alex van der Spek
On Wed, 12 Mar 2014 10:00:09 -0500, Zachary Ware wrote: > On Wed, Mar 12, 2014 at 9:25 AM, Alex van der Spek > wrote: >> I think I understand the difference between deep vs. shallow copies but >> I was bitten by this: >> >> with open(os.path.join('path',

Deep vs. shallow copy?

2014-03-12 Thread Alex van der Spek
ppend does complete. The below works: with open(os.path.join('path', 'foo.txt', 'rb') as txt: reader = csv.reader(txt) data = [row + [year] for row in reader] However in this context I am baffled. If someone can explain what is going on here, I would be m

Re: What's the best way to extract 2 values from a CSV file from each row systematically?

2013-09-24 Thread Alex Lee
Thanks for the help guys! I'll definitely read up on the csv module documentation. Tim, that's incredibly helpful, thanks a lot! :) My CSV file doesn't have headers, but I'm sure I can just as easily add it in manually. -- https://mail.python.org/mailman/listinfo/python-list

Re: Reading File Into 2D List

2013-07-09 Thread alex . hanga
> Replace te **start line with something like: > > > > object_data.append([]) > > i += 1 > > > > This assumes a few missing lines, which must have been there or you > > would have already had runtime errors. For example, you'll need i=0 > > before the loop. > >

Reading File Into 2D List

2013-07-09 Thread alex . hanga
Hello! I'm new here and fairly new to Python. I am attempting to read a data file into python and adding it to a 2D list to make it easy to use further down the line. My data file is just 7 numbers in a row seperated by commas and each bulk of data is seperated by the sign @ to indicate that th

Re: newbie question about subprocess.Popen() arguments

2013-05-23 Thread Alex Naumov
Thank you very much, Peter! It works! On Thu, May 23, 2013 at 9:32 AM, Peter Otten <__pete...@web.de> wrote: > Alex Naumov wrote: > > > I'm trying to call new process with some parameters. The problem is that > > the last parameter is a "string"

newbie question about subprocess.Popen() arguments

2013-05-23 Thread Alex Naumov
make it without additional saving? import subprocess as sp rc = sp.Popen(["prog", "--options", "<", msg], stdin=sp.PIPE, stdout=sp.PIPE) stdout = rc.communicate()[0] print stdout Thank you, Alex p.s. type(msg) => -- http://mail.python.org/mailman/listinfo/python-list

Re: in need of some help...

2013-05-12 Thread Alex Norton
On Saturday, 11 May 2013 23:20:13 UTC+1, Jens Thoms Toerring wrote: > Alex Norton wrote: > > > On Wednesday, 1 May 2013 13:15:28 UTC+1, Jens Thoms Toerring wrote: > > > > Of course, it might be nicer to have a "result" label some- > > > > where i

in need of some help regarding my rock paper scissors game

2013-05-12 Thread Alex Norton
im new to python and im in the middle of making a RPS game for a college unit. i have used PyQt to create the GUI and i have received help regarding adding the code to the buttons. but its missing something as the error 'Traceback (most recent call last): File "C:\Users\Me\Desktop\testy.py", lin

Re: in need of some help...

2013-05-10 Thread Alex Norton
On Wednesday, 1 May 2013 13:15:28 UTC+1, Jens Thoms Toerring wrote: > Alex Norton wrote: > > > thanks... ill take a look at the Qt event handling > > > > It's rather simple: instead of the program running through a > > sequence of steps, the program norma

Collision of Two Rect

2013-05-03 Thread Alex Gardner
When rect A collides with rect B they stick when I am wanting A to bounce off of B. I have tried different methods, but none seem to work. My source is here: http://pastebin.com/CBYPcubL The collision code itself is below: -- # Bounce off of the paddle if paddle_rect.colliderect(ball_rect

Re: in need of some help...

2013-05-01 Thread Alex Norton
Thank you very much for the specific detail. I have already done the signal for the finish button so that the app closes when clicked -- http://mail.python.org/mailman/listinfo/python-list

Re: in need of some help...

2013-05-01 Thread Alex Norton
On Wednesday, 1 May 2013 05:37:34 UTC+1, Chris Angelico wrote: > On Wed, May 1, 2013 at 9:20 AM, Alex Norton wrote: > > > the teacher actually cant teach anything, he as the knowledge of Vb but his > > teaching methods are abysmal and severely lacking, but he said we can use

Re: in need of some help...

2013-04-30 Thread Alex Norton
On Wednesday, 1 May 2013 00:02:51 UTC+1, Ian wrote: > On Tue, Apr 30, 2013 at 4:30 PM, Alex Norton wrote: > > > oh FYI its for my college course.. i didnt really want to use Visual Basic > > so the teacher cannot help > > > > If the course is being taught i

Re: in need of some help...

2013-04-30 Thread Alex Norton
On Tuesday, April 30, 2013 11:13:24 PM UTC+1, Chris Angelico wrote: > On Wed, May 1, 2013 at 8:06 AM, Alex Norton wrote: > > > > > > hi, > > > > > > i am currently trying to make a rock paper scissors game based on a game. > > > > > >

in need of some help...

2013-04-30 Thread Alex Norton
hi, i am currently trying to make a rock paper scissors game based on a game. the code for the game itself works fine, it does what i need it to do the issue i am having is that i haven't a clue how to combine the game code i have with the QT GUI code i have. -- http://mail.python.org/mailm

Re: Using SciPy in application

2013-04-24 Thread Alex van der Spek
have done that for a number of the dierckx routines. No problems at all. Hope this helps, Alex van der Spek > On Wednesday, April 24, 2013 11:13:45 AM UTC+2, Roozbeh wrote: >> Hi all, I want to use spline interpolation function from SciPy in an >> application and at the same tim

Re: Why does 1**2**3**4**5 raise a MemoryError?

2013-03-31 Thread Alex
Chris Angelico wrote: > > Opening paragraph, "... exponentiation, which groups from right to > left". It follows the obvious expectation from mathematics. (The OP is > using Python 2, but the same applies.) Thanks. I did miss that parenthetical comment in para 6.15, and that would have been the

Re: Why does 1**2**3**4**5 raise a MemoryError?

2013-03-31 Thread Alex
s reasonable in expecting Python to do the operation left-to-right. Am I missing something written somewhere else in the docs? Are the docs I quoted wrong? Please help me understand the discrepancy I am perceiving here. Alex -- http://mail.python.org/mailman/listinfo/python-list

Re: problem with function

2013-03-21 Thread Alex
leonardo selmi wrote: > hi all, > > i wrote the following code: > > def find(word, letter): > index = 0 > while index < len(word): > if word[index] == letter: > return index > index = index + 1 > return -1 > > if i run the program i get this error: name '

Re: Pygame mouse cursor load/unload

2013-03-18 Thread Alex Gardner
On Monday, March 18, 2013 3:24:57 PM UTC-5, Alex Gardner wrote: > On Saturday, March 2, 2013 7:56:31 PM UTC-6, Alex Gardner wrote: > > > I am in the process of making a pong game in python using the pygame > > library. My current problem is that when I move the mouse, it turn

Re: Pygame mouse cursor load/unload

2013-03-18 Thread Alex Gardner
On Saturday, March 2, 2013 7:56:31 PM UTC-6, Alex Gardner wrote: > I am in the process of making a pong game in python using the pygame library. > My current problem is that when I move the mouse, it turns off as soon as > the mouse stops moving. The way I am doing this is by m

Re: Pygame mouse cursor load/unload

2013-03-14 Thread Alex Gardner
On Saturday, March 2, 2013 7:56:31 PM UTC-6, Alex Gardner wrote: > I am in the process of making a pong game in python using the pygame library. > My current problem is that when I move the mouse, it turns off as soon as > the mouse stops moving. The way I am doing this is by m

Re: Pygame mouse cursor load/unload

2013-03-14 Thread Alex Gardner
On Saturday, March 2, 2013 7:56:31 PM UTC-6, Alex Gardner wrote: > I am in the process of making a pong game in python using the pygame library. > My current problem is that when I move the mouse, it turns off as soon as > the mouse stops moving. The way I am doing this is by m

Re: Pygame mouse cursor load/unload

2013-03-12 Thread Alex Gardner
On Saturday, March 2, 2013 7:56:31 PM UTC-6, Alex Gardner wrote: > I am in the process of making a pong game in python using the pygame library. > My current problem is that when I move the mouse, it turns off as soon as > the mouse stops moving. The way I am doing this is by m

Re: Pygame mouse cursor load/unload

2013-03-11 Thread Alex Gardner
On Saturday, March 2, 2013 7:56:31 PM UTC-6, Alex Gardner wrote: > I am in the process of making a pong game in python using the pygame library. > My current problem is that when I move the mouse, it turns off as soon as > the mouse stops moving. The way I am doing this is by m

Re: Pygame mouse cursor load/unload

2013-03-11 Thread Alex Gardner
On Saturday, March 2, 2013 7:56:31 PM UTC-6, Alex Gardner wrote: > I am in the process of making a pong game in python using the pygame library. > My current problem is that when I move the mouse, it turns off as soon as > the mouse stops moving. The way I am doing this is by m

Re: Pygame mouse cursor load/unload

2013-03-11 Thread Alex Gardner
On Monday, March 11, 2013 12:00:37 PM UTC-5, Alex Gardner wrote: > On Monday, March 11, 2013 11:57:49 AM UTC-5, Alex Gardner wrote: > > > On Saturday, March 2, 2013 7:56:31 PM UTC-6, Alex Gardner wrote: > > > > > > > I am in the process of making a pon

Re: Pygame mouse cursor load/unload

2013-03-11 Thread Alex Gardner
On Monday, March 11, 2013 11:57:49 AM UTC-5, Alex Gardner wrote: > On Saturday, March 2, 2013 7:56:31 PM UTC-6, Alex Gardner wrote: > > > I am in the process of making a pong game in python using the pygame > > library. My current problem is that when I move the mouse, it turn

Re: Pygame mouse cursor load/unload

2013-03-11 Thread Alex Gardner
On Saturday, March 2, 2013 7:56:31 PM UTC-6, Alex Gardner wrote: > I am in the process of making a pong game in python using the pygame library. > My current problem is that when I move the mouse, it turns off as soon as > the mouse stops moving. The way I am doing this is by m

Re: Pygame mouse cursor load/unload

2013-03-10 Thread Alex Gardner
On Saturday, March 2, 2013 7:56:31 PM UTC-6, Alex Gardner wrote: > I am in the process of making a pong game in python using the pygame library. > My current problem is that when I move the mouse, it turns off as soon as > the mouse stops moving. The way I am doing this is by m

Re: Pygame mouse cursor load/unload

2013-03-09 Thread Alex Gardner
On Saturday, March 2, 2013 7:56:31 PM UTC-6, Alex Gardner wrote: > I am in the process of making a pong game in python using the pygame library. > My current problem is that when I move the mouse, it turns off as soon as > the mouse stops moving. The way I am doing this is by m

Re: Pygame mouse cursor load/unload

2013-03-09 Thread Alex Gardner
On Saturday, March 2, 2013 7:56:31 PM UTC-6, Alex Gardner wrote: > I am in the process of making a pong game in python using the pygame library. > My current problem is that when I move the mouse, it turns off as soon as > the mouse stops moving. The way I am doing this is by m

Re: Pygame mouse cursor load/unload

2013-03-03 Thread Alex Gardner
On Saturday, March 2, 2013 7:56:31 PM UTC-6, Alex Gardner wrote: > I am in the process of making a pong game in python using the pygame library. > My current problem is that when I move the mouse, it turns off as soon as > the mouse stops moving. The way I am doing this is by m

Re: Pygame mouse cursor load/unload

2013-03-03 Thread Alex Gardner
On Saturday, March 2, 2013 7:56:31 PM UTC-6, Alex Gardner wrote: > I am in the process of making a pong game in python using the pygame library. > My current problem is that when I move the mouse, it turns off as soon as > the mouse stops moving. The way I am doing this is by m

Re: Pygame mouse cursor load/unload

2013-03-02 Thread Alex Gardner
On Saturday, March 2, 2013 9:08:18 PM UTC-6, Ian wrote: > On Sat, Mar 2, 2013 at 6:56 PM, Alex Gardner wrote: > > > I am in the process of making a pong game in python using the pygame > > library. My current problem is that when I move the mouse, it turns off as > >

Pygame mouse cursor load/unload

2013-03-02 Thread Alex Gardner
I am in the process of making a pong game in python using the pygame library. My current problem is that when I move the mouse, it turns off as soon as the mouse stops moving. The way I am doing this is by making the default cursor invisible and using .png files as replacements for the cursor.

  1   2   3   4   5   6   7   8   9   10   >