Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: capita training UK
Post: capita training UK

been a bedroom coder all my life. Never converted the skills I've got to industry. My CV with 20 years hobby coding just doesn't interest employers. Now I've got an offer from Capita to get trained on...
meems Jobs 1 2,716 May-03-2018, 11:12 PM
    Thread: attempted multithread doesn't multithread
Post: RE: attempted multithread doesn't multithread

i think mine's better. because it requires less concepts, keeps the language simpler. I don't understand why the python writers invoked *args and **kwargs when they already had objects like lists. In...
meems General Coding Help 4 3,337 Dec-10-2017, 03:55 PM
    Thread: attempted multithread doesn't multithread
Post: RE: attempted multithread doesn't multithread

thx. That works. After a a bit of head scratching seems I've got a wrong idea on how python handles function args. def times(x,y): return y*x def apply_func(f,x): return f(x) print (apply_func(times...
meems General Coding Help 4 3,337 Dec-10-2017, 02:56 PM
    Thread: attempted multithread doesn't multithread
Post: attempted multithread doesn't multithread

import threading,time def simple_task(s):       for j in range(5):           print(s)           time.sleep(0.5) n=5 thread_list=[] for i in range(n):      t=threading.Thread(target=simple_task(i)) ...
meems General Coding Help 4 3,337 Dec-10-2017, 12:55 PM
    Thread: pycharm doesn't offer option to run code
Post: RE: pycharm doesn't offer option to run code

hi. Plz excuse the long hiatus. The issue has been fixed, sorta, I worked around it. I just created a new project on the new C drive and copy pasted all the project files into the new cloned project. ...
meems General Coding Help 9 9,962 Jul-29-2017, 08:01 PM
    Thread: pycharm doesn't offer option to run code
Post: RE: pycharm doesn't offer option to run code

not working, get this [Image: http://i.imgur.com/vVaaBn9.png] Why is it complaining about a Software Dev Kit when it asks for an interpreter file address and I give it the interpreter file address? (...
meems General Coding Help 9 9,962 Jul-20-2017, 08:09 PM
    Thread: pycharm doesn't offer option to run code
Post: RE: pycharm doesn't offer option to run code

[Image: http://i.imgur.com/cVLrNnl.png] >Did you create a new python file under the current working directory? I did, but since then I've swapped my C and E harddisks around , and its causing fil...
meems General Coding Help 9 9,962 Jul-20-2017, 08:51 AM
    Thread: pycharm doesn't offer option to run code
Post: pycharm doesn't offer option to run code

So I'm looking at some code in the PyCharm IDE code editor, and I'd like to run it... so I click on run in the drop down menu and it just comes up with 0. edit configurations. I think its something ...
meems General Coding Help 9 9,962 Jul-19-2017, 11:03 PM
    Thread: help with lxml
Post: RE: halp with lxml

thx for the answers, you've got me unstuck and I'm moving forward again
meems Web Scraping & Web Development 8 7,582 Apr-28-2017, 09:09 AM
    Thread: help with lxml
Post: help with lxml

Hi, anyone here good with lxml? I'm trying to learn it. page = requests.get('http://econpy.pythonanywhere.com/ex/001.html') tree = html.fromstring(page.content) buyers = tree.xpath('//div[@title="bu...
meems Web Scraping & Web Development 8 7,582 Apr-27-2017, 10:13 PM
    Thread: Help with formatting
Post: RE: Help with formatting

Hi Hellboy. I just tried your code and it works for me, except I had to use 'SimpleEncryption.file_name' where you have just used ' file_name ', it is a class variable. You could try copy pasting thi...
meems General Coding Help 4 4,089 Feb-02-2017, 12:39 AM
    Thread: Help with formatting
Post: RE: Help with formatting

I have the same problem with pycharm Its always throwing up errors wrt to 4 blank spaces vs tabs. I can fix it by copying by retyping a substantial part of the code around the error, using the return...
meems General Coding Help 4 4,089 Feb-01-2017, 11:55 PM
    Thread: meta array question
Post: RE: meta array question

awesome. In my training, it never came up that dictionary keys could be integers or tuples. We only used strings as dictionary keys.
meems Data Science 5 4,610 Jan-21-2017, 05:15 PM
    Thread: meta array question
Post: RE: meta array question

>Are you asking how to do that? Yes. The idea is to list objects in each cubical. But at the start the space will be sparely populated. I thought maybe a dictionary would be better i.e. cubic = ...
meems Data Science 5 4,610 Jan-19-2017, 01:00 AM
    Thread: meta array question
Post: meta array question

I'm modelling a 3D space. I'd like to create a large multi dim array , like numpy.empty((720,720,720),dtype=object) in size, but anticipate for most of the program run time, few of the array elements...
meems Data Science 5 4,610 Jan-18-2017, 10:03 PM
    Thread: best python specialization to career at home with?
Post: best python specialization to career at home with?

hihi, I've been learning python for about a month, and I'm starting to feel confident about self sufficient learning. i.e. I'm capable learning most of the stuff by myself atm. Not that that's always...
meems Bar 0 3,170 Dec-21-2016, 02:04 AM
    Thread: a 'simple' program, hard as .... to understand
Post: RE: a 'simple' program, hard as .... to understand

thanks, your analysis of the code has helped me understand it. I hadn't realised the code lines up 8 queens on the 1st rank. This makes it a bit easier to understand. But before I fully go thru it ag...
meems General Coding Help 3 5,098 Dec-04-2016, 10:59 PM
    Thread: a 'simple' program, hard as .... to understand
Post: a 'simple' program, hard as .... to understand

Hi, I'm learning python and I went thru some code that was under the title 'simple python programs' and found this. BOARD_SIZE = 8 def under_attack(col, queens):    left = right = col    for r, c i...
meems General Coding Help 3 5,098 Dec-02-2016, 11:51 PM
    Thread: problem with importing my program
Post: problem with importing my program

Just trying to have a go with python debugger From the python cmd line >>> import pdb so far so good... >>> import C:\users\me\documents\my_python\test.py gives a syntax error "...
meems General Coding Help 1 3,760 Nov-27-2016, 12:22 AM
    Thread: is 'self' optional ?
Post: RE: is 'self' optional ?

thanks I see now it was obvious I needed to call the class method to test whether the code worked without self. 2 things remainth : a.) My point that when a function is called, self is not put in the...
meems General Coding Help 7 9,249 Nov-26-2016, 12:45 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020