Thank you, Peter and Alan. Both very helpful. I was able to figure it out.
Cheers!
On Sat, Aug 17, 2019 at 5:45 AM Alan Gauld via Tutor
wrote:
> On 17/08/2019 00:46, C W wrote:
>
> The formatting seems messed up I'll try to straighten it out.
> I hope I get it right!
>
>
Hi everyone,
What exactly is Tuple in the typing module? What does it do?
This is the definition from its website.
https://docs.python.org/3/library/typing.html
"A type alias is defined by assigning the type to the alias"
I have no idea what that means.
Here's the example from the documentation
Thanks a lot Steven. The %f is what I was missing.
The "-08:00" is the UTC timezone, which is California, USA, which I believe
is %z.
Thanks!
On Sat, Jul 20, 2019 at 7:50 PM Steven D'Aprano wrote:
> On Fri, Jul 19, 2019 at 10:44:36PM -0400, C W wrote:
> > Hello all,
&g
Hello all,
I have a date time string that looks like the following.
02015-07-01 00:01:44.538420-08:00
12015-07-01 00:27:58.717530-08:00
22017-07-01 07:07:48.391376-08:00
I have tried the following two different methods, both did not work.
Method one: pandas
import pandas as pd
stamp
Thank you all. I'm relatively new to OOP, I think that's where the problem
is. It's different from C or any C alike language.
I'm still figuring out what's under the hood with OOP.
Thanks!
On Mon, Jun 18, 2018 at 8:26 PM, Steven D'Aprano
wrote:
> On Mon, Jun 1
Dear Python experts,
I never figured out when to call a method with parenthesis, when is it not?
It seems inconsistent.
For example,
If I do
> data.isnull()
numberair_pressure_9amair_temp_9amavg_wind_direction_9amavg_wind_speed_9am
max_wind_direction_9ammax_wind_speed_9amrain_accumulation_9am
r
I have found the matplotlib list.
Cheers!
On Sat, Jun 16, 2018 at 7:13 PM, Alan Gauld via Tutor
wrote:
> On 16/06/18 05:49, Mike C wrote:
> > I can only compare to the R language I've used. If there is an issue,
> > say a function freezes at startup, one user brings it up
:49 PM, Mike C wrote:
> > I can only compare to the R language I've used. If there is an issue,
> say a function freezes at startup, one user brings it up to the list, when
> the respective maintainer sees the bug, it is usually addressed on the next
> release.
>
>
> S
list them under one documentation?
On Fri, Jun 15, 2018 at 12:35:36PM -0400, C W wrote:
> Why haven't the developers fixed the problem?
matplotlib is free, open source software. If volunteers don't "fix the
problem", who is paying for the work to be done?
Are you volunteering?
ering Python's growing
popularity, hasn't anyone brought this up before me? Was there a plan?
Thanks!
On Thu, Jun 14, 2018 at 9:39 PM, Steven D'Aprano
wrote:
> On Thu, Jun 14, 2018 at 12:31:44PM -0400, C W wrote:
> > Hello everyone,
> >
> > I'm working on ma
Hello everyone,
I'm working on matplotlib, could someone explain the difference between
these two?
Axes class: https://matplotlib.org/api/axes_api.html#matplotlib.axes.Axes
Axes and tick API: https://matplotlib.org/api/axis_api.html
I began at reading axes class, but discovered axes API by accid
> On Jun 13, 2018, at 3:37 AM, Peter Otten <__pete...@web.de> wrote:
>
> Slater, Joseph C. wrote:
>
>> Dear friends,
>>
>> I am trying to import a function in a module by variable name. The
>> specific example is that my function allows the user to
Dear friends,
I am trying to import a function in a module by variable name. The specific
example is that my function allows the user to select which function my code
will use (in this case, which optimizer in scipy). There is a default for a
named variable. I have thing working in a quite uncl
the constructor arguments: handle, mode (POSIX),
> use_errno, and use_last_error (Windows). You need the latter two
> options if the library requires C errno or Windows GetLastError(), in
> which case you should use ctypes.get_errno() or
> ctypes.get_last_error() to get the error val
help is much appreciated.
Thanks in advance.
--
*Henrique C. S. Junior*
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
amples:
>
>> username (entryfld)-
>> pwrd (entryfld)
>> login(button),changepwrd(button)
>
> So far very basic Tkinter, any tutorial would cover it.
> You could try mine at:
>
> https://urldefense.proofpoint.com/v2/url?u=http-3A__www.alan-2Dg.me.uk
I am going to put your reply in a special place, for the day I can
understand it :)
On Tue, Oct 17, 2017 at 2:37 AM, James Chapman wrote:
> We're heading into advanced territory here and I might get told off but...
> Consider this C++ program for a second, it has a struct with differ
cool stuff!
On Tue, Oct 17, 2017 at 2:17 AM, Alan Gauld via Tutor
wrote:
> On 17/10/17 01:02, Michael C wrote:
>
> > that is, one number, can be truncated and exist in multiple locations
> like
> > this
> >
> > double = 12345678
> >
> > 123 is
Hi all!
My project needs to use MEMORY_BASIC_INFORMATION() and SYSTEM_INFO()
structures, and previously I thought there wasn't a way
(thanks to ErykSun, who wrote it for me, which I have been using)
Now I found out someone actually wrote a long time ago, so all I have to do
is to download and ins
ncrement by one' approach, actually luck out and get that value in it's
actual position?
On Mon, Oct 16, 2017 at 4:53 PM, Michael C
wrote:
> ah, i am bummed completely haha.
>
> Is there a way to tell which parts a variables so I can scan it?
> Maybe you could point me
ah, i am bummed completely haha.
Is there a way to tell which parts a variables so I can scan it?
Maybe you could point me to some reading materials?
thanks :)
On Mon, Oct 16, 2017 at 4:48 PM, Alan Gauld via Tutor
wrote:
> On 16/10/17 21:04, Michael C wrote:
>
> > I don't und
Hi all:
I don't understand this part about the memory:
if I used VirtualQueryEx to find out if a region of memory is ok to scan,
and it
says it's ok, are the values in the region arranged like this:
short,int,double,long,char, double, short in
as in, random?
I am asking this because, if it's
to use increment by 1.
Now, from what I have been reading, it seems there is a better way to do it,
for instance, a for loop.
for(start,finish, 8)
why 8? because double begins at exact 0 or multiple of 8 bytes, right?
On Thu, Oct 12, 2017 at 6:54 PM, Michael C
wrote:
> Here is my question ab
ause I ran this in a
while loop with start += 1
so in the last 7 bytes, I'd be reading past the end of this memory chunk.
Is this right?
On Thu, Oct 12, 2017 at 6:54 PM, Michael C
wrote:
> Here is my question about the memory:
>
> So I have a base address of a chunk o
there is a better way to do it,
for instance, a for loop.
for(start,finish, 8)
why 8? because double begins at exact 0 or multiple of 8 bytes, right?
On Sun, Oct 8, 2017 at 4:46 PM, Alan Gauld via Tutor
wrote:
> On 08/10/17 20:18, Michael C wrote:
> > This is the red part
> >
thank for replying, but I am toast, so I'll reply tomorrow,
thanks!
On Sun, Oct 8, 2017 at 4:46 PM, Alan Gauld via Tutor
wrote:
> On 08/10/17 20:18, Michael C wrote:
> > This is the red part
> > index = current_address
> > end = current_address + mbi.Region
I'll explain better when I get on a pc.
On Oct 8, 2017 12:18 PM, "Michael C" wrote:
> This is the red part
> index = current_address
> end = current_address + mbi.RegionSize
>
> while index < end:
> if ReadProcessMemory
lue comparison to be implemented.
pass
else:
raise ctypes.WinError(ctypes.get_last_error())
index += 1
On Oct 8, 2017 12:16 PM, "Mats Wichmann" wrote:
> On 10/08/2017 11:20 AM, Michael C wrote:
> > Hi all:
>
>
Hi all:
I have the following code, and somehow I must have fed the read process
Memory incorrectly. what the code does is to check a region of memory to
see
whether or not it can be scanned.
mbi.Protect == PAGE_READWRITE and mbi.State == MEM_COMMIT
If this is true,then it proceeds to scan the me
update:
I should have put down buffer = ctypes.c_double() instead of buffer =
ctypes.c_double.
Sorry all
On Sat, Oct 7, 2017 at 8:18 PM, Michael C
wrote:
> I am following some examples online such as this one:
> https://social.msdn.microsoft.com/Forums/vstudio/en-US/
> ce0cc398-2b96-
you to look at:
DWORD read = 0;
LPVOID buffer = 0
(ReadProcessMemory(hackProcess, (void*)start, &buffer, sizeof(int), &read)
So, what's the Python equivalent statements for sizeof(int) ?
On Sat, Oct 7, 2017 at 7:38 PM, Michael C
wrote:
> Oh I am trying to write my ow
t 7, 2017 at 6:58 PM, Mats Wichmann wrote:
> it might help if you mention what you are trying to do. if it is
> forensics, there a bunch of python tools in that area. your problem may
> already have solutions you could use.
>
> On October 7, 2017 3:00:25 PM MDT, Michael C com> wrot
Or to put it better, I think, it's
How do I set up ReadProcessMemory, so that it returns a double instead of
129819721.
On Sat, Oct 7, 2017 at 2:00 PM, Michael C
wrote:
> Hi all:
>
> I am working on a memory scanner, and the source code and output is as
> following:
>
Hi all:
I am working on a memory scanner, and the source code and output is as
following:
Now, I know why my buffer from read process memory looks like values such
as "67108864" ; it's because I read into the buffer entire chunk of memory
at a time, because I fed read process memory this: "mbi.R
thing?
# Don't do read memory yet.
# make it traverse through all memory and print out when protect and state
# are both true.
##
##MEM_COMMIT = 0x1000;
##PAGE_READWRITE = 0x04;
##
##current_address = sysinfo.lpMinimumApplicationAddress
##end_address = sysinfo.lpMaximumApplicationAddress
##
##wh
(mbi.BaseAddress)
TypeError: byref() argument must be a ctypes instance, not 'int'
On Fri, Oct 6, 2017 at 2:53 PM, eryk sun wrote:
> On Fri, Oct 6, 2017 at 10:26 PM, Michael C
> wrote:
> >
> > base = mbi.BaseAddress
> > buffer = ctypes.c_int32()
> &
like this?
buffer = ctypes.byref(ctypes.create_string_buffer(4))
On Fri, Oct 6, 2017 at 1:55 PM, eryk sun wrote:
> On Fri, Oct 6, 2017 at 9:12 PM, Michael C
> wrote:
> >
> > How do I create a buffer, or rather, is a buffer just a variable?
>
> A buffer is a bl
;buffer is: ',buffer)
else:
raise ctypes.WinError(ctypes.get_last_error())
On Fri, Oct 6, 2017 at 2:06 PM, Michael C
wrote:
> like this?
>
> buffer = ctypes.byref(ctypes.create_string_buffer(4))
>
> On Fri, Oct 6, 2017 at 1:55 PM, eryk sun wrote:
>
>> On Fri, Oct
Size, None):
print('buffer is: ',buffer)
else:
print('something is wrong')
On Fri, Oct 6, 2017 at 12:03 PM, eryk sun wrote:
> On Fri, Oct 6, 2017 at 7:43 PM, Michael C
> wrote:
> > Sorry but I dont understand this line:
> >
> > m
code ends
I am trying to acquire "lpMinimumApplicationAddress" and
"lpMaximumApplicationAddress" from system_info, so I did this,
>code
Kernel32 = ctypes.WinDLL('kernel32', use_last_error=True)
Kernel32.GetSystemInfo(LPSYSTEM_INFO)
print(LPLPSYSTEM_IN
= (LPVOID, PMEMORY_BASIC_INFORMATION, SIZE_T)
thanks !
On Thu, Oct 5, 2017 at 1:13 PM, eryk sun wrote:
> On Thu, Oct 5, 2017 at 8:27 PM, Michael C
> wrote:
> >
> > How do I see the values of each field? This doesn't work.
> >
> > print(PMEMORY_BASIC_I
First of all, thanks for the reply.
How do I see the values of each field? This doesn't work.
print(PMEMORY_BASIC_INFORMATION.Protect)
thanks!
On Thu, Oct 5, 2017 at 11:34 AM, eryk sun wrote:
> On Tue, Oct 3, 2017 at 10:30 PM, Michael C
> wrote:
> >
> > I am tryin
Sorry about asking these super obvious little things, I am actually a 1st
student, but I acing my programming 101 at the moment lol
On Thu, Oct 5, 2017 at 12:27 PM, Michael C
wrote:
> First of all, thanks for the reply.
>
>
> How do I see the values of each field? This doesn'
Is there a module that does this for me?
If it exists, how do I find it?
thanks
On Tue, Oct 3, 2017 at 5:04 PM, Michael C
wrote:
> i see i see.
>
> On Tue, Oct 3, 2017 at 4:50 PM, Alan Gauld via Tutor
> wrote:
>
>> On 03/10/17 22:30, Michael C wrote:
>>
>> &g
i see i see.
On Tue, Oct 3, 2017 at 4:50 PM, Alan Gauld via Tutor
wrote:
> On 03/10/17 22:30, Michael C wrote:
>
> > I am trying to create SYSTEM_INFO structure and MEMORY_BASIC_INFORMATION
> > structure
> >
> > I think there are modules for this purp
Hi all:
I am trying to create SYSTEM_INFO structure and MEMORY_BASIC_INFORMATION
structure
I think there are modules for this purpose? Is it the ctypes.wintypes?
if so, please point me to a documentation for it.
Thanks!
___
Tutor maillist - Tutor@p
Hi all, after 1 week of on and off hacking, I realized I simply don't know
enough about how memory works fundamentally!
Could you point me to a source of information about all the things someone
should know before he starts writing a memory scanner? Attached is my
current code, which doesn't work
Hi all, I have a few questions about memory scanning!
The following code attempts to print out all addresses whose value is
int(-143)!
1. I am using a for loop to go through all the addresses! Is this the right
thing to do?
2. I feed the read process memory function with hex(i), correct?
3. I am
Hi Python tutor, I require help for a script that asks user for number of
rows, r and number of columns c, and generates a r x c matrix with the
following values:
- The value of each element in the first row is the number of the column
- The value of each element in the first column is the number
no
wrote:
> On Fri, Aug 11, 2017 at 07:57:09AM -0600, Mats Wichmann wrote:
> > On 08/10/2017 05:23 PM, Alan Gauld via Tutor wrote:
> > > On 10/08/17 14:39, C W wrote:
> > >
> > >> I suppose it's just a place holder, though I don't know when I would
ins, x,
color='red', lw=2)
Thank you very much!
On Fri, Aug 25, 2017 at 1:01 PM, Alan Gauld via Tutor
wrote:
> On 25/08/17 15:19, C W wrote:
> > I did not mean to leave out the error message, it was very long.
>
> That just means it has a lot of information
rgs) 1318
encode_chunked=req.has_header('Transfer-encoding')) 1319 except OSError as
err: # timeout error -> 1320 raise URLError(err) 1321 r = h.getresponse()
1322 except:
URLError:
On Fri, Aug 25, 2017 at 6:01 AM, Sydney Shall
wrote:
> On 24/08/2017 18:46, Alan Gauld via Tutor
Hello all,
I have the following code, I get an error at the first line.
from matplotlib.finance import quotes_historical_yahoo_ochl
from datetime import date
import pandas as pd
today = date.today()
start = date(today.year-1, today.month, today.day)
quotes = quotes_historical_yahoo_ochl('APX', st
r,
> Mauritius
> abdurrahmaanjanhangeer.wordpress.com
>
> On 14 Aug 2017 02:28, "Michael C" wrote:
>
> Hi all:
>
> I am trying to formulate a "path-finding" function, and I am stuck on this
> problem:
>
> Please look at the picture atta
;
> > pic
> > http://imgur.com/a/CwA2G
> >
> > On Mon, Aug 14, 2017 at 8:55 AM, Alan Gauld via Tutor > <mailto:tutor@python.org>> wrote:
> >
> > On 13/08/17 21:07, Michael C wrote:
> >
> > > Please look at the picture attached:
&g
http://imgur.com/a/CwA2G
I don't know to do this with math :(
On Sun, Aug 13, 2017 at 1:07 PM, Michael C
wrote:
> Hi all:
>
> I am trying to formulate a "path-finding" function, and I am stuck on this
> problem:
>
> Please look at the picture attached: T
Hi all:
I am trying to formulate a "path-finding" function, and I am stuck on this
problem:
Please look at the picture attached: Those dots are coordinates of (x,y),
and this tree can be thought of as a list of tuples, with each tuple
consisting of (x,y). Now I am trying to make a function go th
https://en.wikipedia.org/wiki/Literal_(computer_programming)
I suppose it's just a place holder, though I don't know when I would use it
in my every day life.
On Thu, Aug 10, 2017 at 8:47 AM, Steven D'Aprano
wrote:
> On Wed, Aug 09, 2017 at 12:06:37PM -0400, C W wrote:
> &g
t, but close enough to
mistake them as the same thing.
Thanks!
On Wed, Aug 2, 2017 at 9:32 PM, C W wrote:
> As pointed out by someone else, ?sorted
> sorted(iterable, key=None, reverse=False)
>
> It seems like the only requirement is iterable. I guess tuple is iterable,
> so,
Dear Python experts,
What exactly does the three dots do?
> aList = ...
> type(pList)
ellipsis
It's an ellipsis, a spot holder to later. But what data type is it: vector,
matrix?
In every other language, you initialize a variable you want to use. What's
the point of ellipsis?
Thanks!
__
17 at 4:07 PM, Alan Gauld via Tutor
wrote:
> On 02/08/17 20:01, C W wrote:
>
> > I am a little confused about why Tuple can be sorted.
> >
> > Suppose I have the following,
> >
> >> aTuple = (9, 3, 7, 5)
> >> sorted(aTuple)
> > [3, 5, 7, 9]
>
Dear list,
I am a little confused about why Tuple can be sorted.
Suppose I have the following,
> aTuple = (9, 3, 7, 5)
> sorted(aTuple)
[3, 5, 7, 9]
Why is it ok to sort a the class tuple? If it is invariant by nature, then
wouldn't applying a function on it yield an error?
Thanks!
___
Thank you very much, Steve!
I think I got it. To get help() on a method, you have to somehow invoke an
object first.
In your example, even an empty vector [] will do.
Thanks!
On Wed, Jul 26, 2017 at 10:16 PM, Steven D'Aprano
wrote:
> On Wed, Jul 26, 2017 at 10:03:59PM -0400, C
re was never aList.sort(), I was fine with it for years. I suppose
sort(aList) is more of a data science thing.
Thanks to all!
On Wed, Jul 26, 2017 at 8:21 PM, Steven D'Aprano
wrote:
> On Wed, Jul 26, 2017 at 02:40:17PM -0400, C W wrote:
>
> > sorted(aList)
> > > [2, 3
Dear Python experts,
I suppose I have the following Python code:
aList = [3, 5, 2, 4]
sorted(aList)
> [2, 3, 4, 5]
aList.sort()
aList
> [2, 3, 4, 5]
My understanding of each is:
1) function(variable) is manipulating a vector, I can do bList =
sorted(aList)
2) object.method() is permanently ch
thanks!
On Sun, Jul 23, 2017 at 5:35 PM, Danny Yoo wrote:
> On Sun, Jul 23, 2017 at 1:24 PM, Michael C
> wrote:
> > class mahschool:
> > def print():
> > print('Say something')
>
>
> By the way, you've chosen a name for your method th
never mind, I forgot to put 'self' in the method definition!
class mahschool:
def print(self):
print('Say something')
a = mahschool()
a.print()
On Sun, Jul 23, 2017 at 1:24 PM, Michael C
wrote:
> class mahschool:
> def print():
> p
class mahschool:
def print():
print('Say something')
a = mahschool()
a.print()
With this, I get this error:
Traceback (most recent call last):
File "test.py", line 8, in
a.print()
TypeError: print() takes 0 positional arguments but 1 was given
What did I do wrong?
Thank
My question is: is this the correct approach? The dictionaries, after
finished, probably will not have to be changed for a long time and my idea
is to import them in the main code.
A second question is regarding the creation os a GUI, what are your
recommend
I come back to report that after trying it myself. Rodeo is the winner!
Spyder came close.
There's even a post on moving the layouts around just like RStudio.
http://discuss.yhat.com/t/move-around-the-layout/43
I hope they implement that soon. Thanks everyone for your advice!
On Thu, Jun 8, 2017
Hi all:
is tkinter still being actively maintained? I only had to ask about this
because I have never looked stuff like this up before.
Is it ok to develop using it, is it going to be dropped in the near future?
thanks!
___
Tutor maillist - Tutor@pyt
Indeed, just installed it. Rodeo is a very close to RStudio.
My review:
It looks like Rodeo is still in earlier development stage, despite look
alike, many features in RStudio don't exist in Rodeo.
It lacks a keyboard configuration. Cmd + Enter combo works! It runs the
current line of code, this
it.
Thank you!
From: Tutor on behalf of Ben
Finney
Sent: Saturday, June 3, 2017 9:56:05 PM
To: tutor@python.org
Subject: Re: [Tutor] Coming from R, what's a good IDE editor? I've tried
PyCharm and Spyder
C W writes:
> In another word, I want to
nk you for all your suggestions, I appreciate it!
On Sat, Jun 3, 2017 at 4:06 AM, Alan Gauld via Tutor
wrote:
> On 03/06/17 07:20, Mike C wrote:
>
> > There is a high demand for Python in the
> > industry, but there has not been a good IDE.
> There are a ton of IDEs for Python i
...@benfinney.id.au>>
Sent: Saturday, June 3, 2017 1:50 AM
Subject: Re: [Tutor] Coming from R, what's a good IDE editor? I've tried
PyCharm and Spyder
To: mailto:tutor@python.org>>
C W mailto:tmrs...@gmail.com>> writes:
> I am an R user learning Python. What is a good
Dear Python list,
I am an R user learning Python. What is a good editor?
1) Pycharm
PyCharm evaluates the entire script, I just want to change a few lines in
the script.
For example,
import matplotlib.pyplot as plt
import numpy as np
x = np.arange(0, 1,0.1)
y = np.sin(2 * np.pi * x)
plt.figure
ihave to look at this tomorrow, thanks for the reply!
On Thu, Jun 1, 2017 at 6:18 PM Alan Gauld via Tutor
wrote:
> On 01/06/17 16:30, Michael C wrote:
> > Oh i get it alright, however in my code I have to push the W button like
> > this:
> >
> > impor
let me try that! thanks!
On Thu, Jun 1, 2017 at 10:52 AM, Jerry Hill wrote:
> On Thu, Jun 1, 2017 at 11:30 AM, Michael C
> wrote:
> > Oh i get it alright, however in my code I have to push the W button like
> > this:
> >
> > import pyautogui
> > impo
nds i need
it. and so it's not responsive enough
for this reason.
Is there a way to pause/kill the thread?
thanks!
On Thu, May 25, 2017 at 7:47 PM, Michael C
wrote:
> message received, i ll take a look tomorrow asap.
>
> thanks for replying!!!
>
> On Thu, May 25, 2017 at 3:03 P
Wow, that's the best explanation I've seen so far, now it's gonna stick
with me!
Thank you!
On Sun, May 28, 2017 at 10:00 PM, Steven D'Aprano
wrote:
> On Sun, May 28, 2017 at 01:58:22PM -0400, C W wrote:
> > Dear Python list,
> >
> > I am h
Hi Alan
Thank you very much, I got it. So in this case, there is no need to specify
where it ends.
In fact, even if I wanted to specify the ending, I can't!
Thank you!
On Sun, May 28, 2017 at 7:19 PM, Alan Gauld via Tutor
wrote:
> On 28/05/17 18:58, C W wrote:
>
> > N
Dear Python list,
I am having trouble understanding the following.
If I do case 1,
great = "Machine learning is awesome!"
> print(great[-1])
> !
Now if I do case 2,
> print(great[-3:-1])
> me
Where did the exclamation mark go in case 2?
I was told the count begins at zero, that's true going fo
On Thu, May 25, 2017 at 1:01 AM, Abdur-Rahmaan Janhangeer
wrote:
> a basic idea would be to get a webpage and put your code there. This is
> where you edit your codes
>
> Now you make a program which has
> - an updater
> - the script to execute in a separate file
>
> the updater each times pull th
message received, i ll take a look tomorrow asap.
thanks for replying!!!
On Thu, May 25, 2017 at 3:03 PM, Cameron Simpson wrote:
> On 25May2017 11:52, Michael C wrote:
>
>> Right now all i need is to grab 3 values from 3 variables before killing a
>> thread, like thi
to get the values from the thread, say x,y,d in
order to restart the thread.
loop.
Therefore, how do I get a few values from a few variables from the thread
and then close it?
Threading is very new to me, so I have to be very diligent.
Thanks!
On Thu, May 25, 2017 at 11:06 AM Michael C
wrote:
Hi all:
I tried to google for tutorials of threading, but they are all equally
confusing.
Does someone know of a good page or a book that talk about threading?
thanks!
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subsc
I have some Python 3.6.0 scripts that my co-workers use for some small
and medium tasks. Whenever I have time I fix some bugs and add some
features to said scripts to make their lives (and mine :D) easier, but
there's a problem: I need to send a new script via email/chat/whatever
and they have to r
hi all:
I have a code that takes about 20 seconds to complete, but I also need to
response
to events (the appearance of red dots on a canvas) so I could place a few
lines to
check for this condition like this
def do_stuff:
blah
blah
check()
blah
blah
blah
chec
no i don't have a way, it just hasn't happened yet LOL
On Mon, May 22, 2017 at 10:18 PM, Peter Otten <__pete...@web.de> wrote:
> Michael C wrote:
>
> > oh ya, my function does in fact take no input and doesn't change
> anything,
> > and all i wanted t
via Tutor
wrote:
> On 22/05/17 17:11, Michael C wrote:
>
> > I have a function to return (x,y) value, but sometimes it would naturally
> > unable to return those 2 values properly. I know what recursion is, and I
> > think all I got to do is to call this function a 2nd time
hi all:
I have a function to return (x,y) value, but sometimes it would naturally
unable to return those 2 values properly. I know what recursion is, and I
think all I got to do is to call this function a 2nd time and the problem
would go away.
How do I do recursion? The function basically look l
nvm, the problem went away on its own :)
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
Hi all:
I am running a code to examine another window's activities, while I use
that window to do stuff. However, the python shell keeps grabbing the
Topmost position so what
I do on the other window, the one that has to stay on top the whole time,
keeps getting into the shell window.
Is making m
list(read_dictionary) converts the dictionary into a list right? How can
you save the list as a dictionary?
Thanks!
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
Thu, May 18, 2017 at 3:05 PM, Peter Otten <__pete...@web.de> wrote:
> Michael C wrote:
>
> > I am trying to remove incorrect entries of my dictionary.
> > I have multiple keys for the same value,
> >
> > ex,
> > [111]:[5]
> > [222]:[5]
> > [333
I'll use it when I get to it! Thanks!
For now, I use this, as suggested by eryk sun:
os.startfile('1.bmp')
it doesn't pop the window.
Thanks Alan!
On Thu, May 18, 2017 at 10:06 AM, Alan Gauld via Tutor
wrote:
> On 18/05/17 16:43, Michael C wrote:
> > os.sta
I am trying to remove incorrect entries of my dictionary.
I have multiple keys for the same value,
ex,
[111]:[5]
[222]:[5]
[333]:[5}
and I have found out that some key:value pairs are incorrect, and the best
thing to do
is to delete all entries who value is 5. So this is what I am doing:
import
os.startfile('1.bmp')
works like a charm!
Now I need to figure out how to close this window once I finish with it!
On Thu, May 18, 2017 at 8:14 AM, Michael C
wrote:
> Oh I have been using Pillow 4.0 the whole time alright, sorry I forgot to
> mention it.
>
> On Thu, M
Did you go into the source code of PIL/Pillow? Awesome!!!
On Wed, May 17, 2017 at 7:52 PM, eryk sun wrote:
> On Thu, May 18, 2017 at 1:58 AM, Michael C
> wrote:
> > when I run this, while it's called test.pyw, this pops up
> >
> > from PIL import Image
&
Oh I have been using Pillow 4.0 the whole time alright, sorry I forgot to
mention it.
On Thu, May 18, 2017 at 1:55 AM, Alan Gauld via Tutor
wrote:
> On 18/05/17 02:58, Michael C wrote:
> > when I run this, while it's called test.pyw, this pops up
> >
> > from P
1 - 100 of 308 matches
Mail list logo