Re: Hello I want help get rid of that message and help install Python properly and thank you

2023-03-22 Thread Igor Korot
Hi,

On Wed, Mar 22, 2023 at 11:37 AM Mohammed nour Koujan
 wrote:
>
>
> --

What message?

Please don't post screenshots - copy and paste the errors from your machine...

Thank you.

> https://mail.python.org/mailman/listinfo/python-list
-- 
https://mail.python.org/mailman/listinfo/python-list


Hello I want help get rid of that message and help install Python properly and thank you

2023-03-22 Thread Mohammed nour Koujan


-- 
https://mail.python.org/mailman/listinfo/python-list


Re: hello can I be in your group?

2023-01-07 Thread Dieter Maurer
Keith Thompson wrote at 2023-1-6 17:02 -0800:
>September Skeen  writes:
>> I was wondering if I could be in your group
>
>This is an unmoderated Usenet newsgroup.

In fact, there are several access channels, Usenet newsgroup is
one of them.

Another channel is the python-list mailing list.
You can subscribe to it on "python.org"
-- look for community/support --> mailing lists.
The maling list tends to have fewer spam then the newsgroup.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: hello can I be in your group?

2023-01-06 Thread Keith Thompson
September Skeen  writes:
> I was wondering if I could be in your group

This is an unmoderated Usenet newsgroup.  It doesn't have members, just
people who post to it.  If you want to discuss Python, just post.  (Take
a look around first to get an idea how how thinks work.)

If you see a response from "Manosh Manosh", I recommend ignoring it.
He appears to be a spammer.

-- 
Keith Thompson (The_Other_Keith) keith.s.thompso...@gmail.com
Working, but not speaking, for XCOM Labs
void Void(void) { Void(); } /* The recursive call of the void */
-- 
https://mail.python.org/mailman/listinfo/python-list


hello can I be in your group?

2023-01-03 Thread September Skeen
I was wondering if I could be in your group
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Will "hello" always be printed?

2022-10-07 Thread MRAB

On 2022-10-08 00:40, Cameron Simpson wrote:

On 07Oct2022 20:16, Robin van der veer  wrote:

If I have two processes communicating through a JoinableQueue, and I do the
following:

process 1:

   queue.put(1) #unfished tasks = 1
   queue.join() #block until unfished tasks = 0
   print('hello')[/python]

process 2:

   queue.get()
   queue.task_done() #unfished tasks = 0
   queue.put(1) #unfinished tasks 1[/python]
the unfished tasks refers to what is written in the documentation (
https://docs.python.org/3/library/multiprocessing.html#multiprocessing.JoinableQueue.join
)

will 'hello' always be printed? Or is there a chance that the put in
process 2 executes before process 1 noticed that it should unblock?


I had to read this closely. Yes, the second `put(1)` could execute
before the `join()` commences (or tests), and the `hello` would be
blocked still.


It seems that the whole point of join() is that 'hello' should always be
printed, but I just want to make sure that I understand it correctly.


That's the purpose of using `join`, but you need to use it correctly.
The "some tasks are not completed" condition which `join` supports
doesn't fit what you're doing.

So yes, you're correct in your concern.

Maybe 2 queues would suit you better? Maybe not if they are common.

I would go with 2 queues: 1 for input and 1 for output. The outputted 
item would be either a result or an indication of an error.


[snip]

--
https://mail.python.org/mailman/listinfo/python-list


Re: Will "hello" always be printed?

2022-10-07 Thread Cameron Simpson

On 07Oct2022 20:16, Robin van der veer  wrote:

If I have two processes communicating through a JoinableQueue, and I do the
following:

process 1:

   queue.put(1) #unfished tasks = 1
   queue.join() #block until unfished tasks = 0
   print('hello')[/python]

process 2:

   queue.get()
   queue.task_done() #unfished tasks = 0
   queue.put(1) #unfinished tasks 1[/python]
the unfished tasks refers to what is written in the documentation (
https://docs.python.org/3/library/multiprocessing.html#multiprocessing.JoinableQueue.join
)

will 'hello' always be printed? Or is there a chance that the put in
process 2 executes before process 1 noticed that it should unblock?


I had to read this closely. Yes, the second `put(1)` could execute 
before the `join()` commences (or tests), and the `hello` would be 
blocked still.



It seems that the whole point of join() is that 'hello' should always be
printed, but I just want to make sure that I understand it correctly.


That's the purpose of using `join`, but you need to use it correctly.  
The "some tasks are not completed" condition which `join` supports 
doesn't fit what you're doing.


So yes, you're correct in your concern.

Maybe 2 queues would suit you better? Maybe not if they are common.

Maybe some kind of blocking counter, so that you could track task 
counts? You'd need to make one, but something which allowed:


count = queue.put(1)
queue.wait_for(count)
    print('hello')

and at the other end:

queue.get()
queue.task_done()   # bumps the counter
count2 = queue.put(1)

Here, the counter would not be the internal "unfinished tasks" counter 
but instead a distinct counter which always went up. Probably a pair: 
tasks submitted by `put` and tasks completed by `task_done`. You could 
subclass `JoinableQueue` and add implementations of these counters and 
add a `wait_for(count)` method.


This amounts to assigning each "task" a unique id (the counter) and a 
means to wait for that id.


Cheers,
Cameron Simpson 
--
https://mail.python.org/mailman/listinfo/python-list


Will "hello" always be printed?

2022-10-07 Thread Robin van der veer
If I have two processes communicating through a JoinableQueue, and I do the
following:

process 1:

queue.put(1) #unfished tasks = 1
queue.join() #block until unfished tasks = 0
print('hello')[/python]

process 2:

queue.get()
queue.task_done() #unfished tasks = 0
queue.put(1) #unfinished tasks 1[/python]
the unfished tasks refers to what is written in the documentation (
https://docs.python.org/3/library/multiprocessing.html#multiprocessing.JoinableQueue.join
)

will 'hello' always be printed? Or is there a chance that the put in
process 2 executes before process 1 noticed that it should unblock?

It seems that the whole point of join() is that 'hello' should always be
printed, but I just want to make sure that I understand it correctly.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Having trouble getting Hello World to appear

2022-04-21 Thread MRAB

On 2022-04-22 02:57, Greg wrote:

I downloaded and installed the auto version of the software.


"auto version"?


I go to the director C:\google-python-exercises> *python hello.py*

I am running Windows.



What am I doing incorrectly?


I don't know, because you didn't say what did or didn't happen.

Did it say it couldn't find Python?

If yes, try the Python Launcher instead:

py hello.py




I had the zip file installed under my One Drive and then moved it to my C
drive


--
https://mail.python.org/mailman/listinfo/python-list


Re: Having trouble getting Hello World to appear

2022-04-21 Thread Greg
I downloaded and installed the auto version of the software.

I go to the director C:\google-python-exercises> *python hello.py*

I am running Windows.



What am I doing incorrectly?



I had the zip file installed under my One Drive and then moved it to my C
drive



Patiently waiting,

Greg
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue45842] AddressSanitizer: bad-free - hello world c extension

2021-11-29 Thread Francesc Elies


Francesc Elies  added the comment:

I am closing this one, bad-free is in this case a false positive.

Starting python and loading a dll which was linked with asan is incorrect.

One should asan-rt as earyly as possible, in order to do that in linux one 
should use LD_PRELOAD but in windows it's a bit more convoluted.

We made an executable which loads asan and instructed the dll DLLs to use the 
runtime linked into the main executable to avoid shadow memory collisions.

In the official docs https://clang.llvm.org/docs/AddressSanitizer.html I could 
not find much about asan with clang under windows. 

Despite the library file names where not the same as in llvm master and that 
the blogpost has msvc in mind instead of clang this blog 
https://devblogs.microsoft.com/cppblog/addresssanitizer-asan-for-windows-with-msvc/#contributions-to-asan-runtime
 pointed us in the right direction.

--
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45842] AddressSanitizer: bad-free - hello world c extension

2021-11-25 Thread Francesc Elies


Francesc Elies  added the comment:

I tested the same script in ubuntu and got the following.

==1361==ASan runtime does not come first in initial library list; you should 
either link runtime to your application or manually preload it with LD_PRELOAD.

While on windows he does not complain about ASan runtime not bein first in 
initial library list.

Once I use LD_PRELOAD in linux. Lsan detected memory leaks, after suppressing 
them with LSAN_OPTIONS=detect_leaks=0, the script ran fine.

So far I could not find an LD_PRELOAD equivalent in windows.

I am suspecting if one would compile python with asan and run the test on 
windows, I would get similar results as in linux. Sadly at the moment asan 
suppressions doesn't seem to work on windows.

I think this is not a real bug on python but the way we are loading asan-rt in 
windows. Once I am sure I will colse this bug.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45842] AddressSanitizer: bad-free - hello world c extension

2021-11-19 Thread Francesc Elies


New submission from Francesc Elies :

Hi,

Context
===
we are compiling a dll with clang and it's address sanitizer and loading it via 
cffi, at random spots ASAN complains with bad-free.

  ==15100==ERROR: AddressSanitizer: attempting free on address which was 
not malloc()-ed: 0x01991a850310 in thread T0
  #0 0x7ffa1dcc7f31  
(C:\LLVM-13.0.0-win64\lib\clang\13.0.0\lib\windows\clang_rt.asan_dynamic-x86_64.dll+0x180037f31)
  #1 0x7ffa3aea59ec in _PyObject_Realloc 
D:\_w\1\s\Objects\obmalloc.c:2011
  #2 0x7ffa3af7f347 in _PyObject_GC_Resize 
D:\_w\1\s\Modules\gcmodule.c:2309
  #3 0x7ffa3aedeeaa in _PyEval_EvalCode D:\_w\1\s\Python\ceval.c:4101
  ...
  See links below for a full trace

The project where we see this it's quite complex and with many moving parts 
therefore we made a minimal reproducible example.

Reprex
==

The test boils down to the following:


win32api.LoadLibrary("LLVM-13.0.0-win64/lib/clang/13.0.0/lib/windows/clang_rt.asan_dynamic-x86_64.dll")
    import hello  # hello is our compiled c extension with clang and ASAN
print(hello.system())
import pdb


If if comment the last line (import pdb) ASAN does not complain.
If instead of import pdb you import numpy the same problem can be seen.

See the following failing build 
https://github.com/FrancescElies/min_reprex_python_c_extension_asan/runs/4263693010?check_suite_focus=true
See here the CI test 
https://github.com/FrancescElies/min_reprex_python_c_extension_asan/blob/d966d3a472df71977dc6519a76be0120d2d58d39/test.py


We did not try this in linux yet, would that help?

Is this a bug? Or are we doing something wrong?

Thanks in advance for your time.

--
components: Windows
messages: 406578
nosy: FrancescElies, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: AddressSanitizer: bad-free  -  hello world c extension
versions: Python 3.10, Python 3.7, Python 3.8, Python 3.9

___
Python tracker 
<https://bugs.python.org/issue45842>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45029] tkinter doc, hello world example - quit button clobbers method

2021-08-28 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

For whatever reason, the 3.9 backport, PR-27911, was closed.  In any case, we 
will not edit the code we have replaced.

Lyndon, when responding by email, please delete the old text as it is redundant 
and noisy when your email is added to the web page.

--
nosy: +terry.reedy
resolution:  -> out of date
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45029] tkinter doc, hello world example - quit button clobbers method

2021-08-28 Thread miss-islington


Change by miss-islington :


--
keywords: +patch
nosy: +miss-islington
nosy_count: 4.0 -> 5.0
pull_requests: +26458
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/27911

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45029] tkinter doc, hello world example - quit button clobbers method

2021-08-27 Thread E. Paine


E. Paine  added the comment:

Thanks for reporting this issue. This was (very) recently fixed in issue42560 / 
PR27842. These changes include a new hello world example and can be seen in the 
3.10 / 3.11 docs 
(https://docs.python.org/3.10/library/tkinter.html#a-hello-world-program). This 
change was backported to 3.9 docs, but the build bots have yet to rebuild the 
version hosted on docs.python.org.

--
nosy: +epaine

___
Python tracker 
<https://bugs.python.org/issue45029>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45029] tkinter doc, hello world example - quit button clobbers method

2021-08-27 Thread Lyndon D'Arcy


Lyndon D'Arcy  added the comment:

Apologies, my original post was unclear.

The help(app.quit) which I posted is what we should get when the method
isn't clobbered.

What Serhiy has posted is what you get after running the example as-is.  It
shows that after running the example self.quit refers to a button object
instead of the quit method.

On Fri, 27 Aug 2021 at 7:38 pm, Serhiy Storchaka 
wrote:

>
> Serhiy Storchaka  added the comment:
>
> I get different result:
>
> >>> app.quit
> 
> >>> help(app.quit)
> Help on Button in module tkinter object:
>
> class Button(Widget)
>  |  Button(master=None, cnf={}, **kw)
>  |
>  |  Button widget.
>  |
> ...
>
> --
> nosy: +serhiy.storchaka
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45029] tkinter doc, hello world example - quit button clobbers method

2021-08-27 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

I get different result:

>>> app.quit

>>> help(app.quit)
Help on Button in module tkinter object:

class Button(Widget)
 |  Button(master=None, cnf={}, **kw)
 |  
 |  Button widget.
 |  
...

--
nosy: +serhiy.storchaka

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45029] tkinter doc, hello world example - quit button clobbers method

2021-08-27 Thread Lyndon D'Arcy


New submission from Lyndon D'Arcy :

Below is the example as it is.  Currently self.quit clobbers a built-in method 
of the same name.  I would suggest renaming self.quit to self.quit_button or 
similar.

---

import tkinter as tk

class Application(tk.Frame):
def __init__(self, master=None):
super().__init__(master)
self.master = master
self.pack()
self.create_widgets()

def create_widgets(self):
self.hi_there = tk.Button(self)
self.hi_there["text"] = "Hello World\n(click me)"
self.hi_there["command"] = self.say_hi
self.hi_there.pack(side="top")

self.quit = tk.Button(self, text="QUIT", fg="red",
  command=self.master.destroy)
self.quit.pack(side="bottom")

def say_hi(self):
print("hi there, everyone!")

root = tk.Tk()
app = Application(master=root)
app.mainloop()

---

>>> help(app.quit)
Help on method quit in module tkinter:

quit() method of __main__.Application instance
Quit the Tcl interpreter. All widgets will be destroyed.

--
assignee: docs@python
components: Documentation, Tkinter
messages: 400403
nosy: docs@python, lyndon.darcy
priority: normal
severity: normal
status: open
title: tkinter doc, hello world example - quit button clobbers method
versions: Python 3.9

___
Python tracker 
<https://bugs.python.org/issue45029>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



Re: Hello! I was here to ask about pythonm actually I deleted the python 8 version and downloaded a new python 9 version but after deleting when I code something and after some days I want to open the

2021-05-14 Thread Payal Singh
Thanks, I'll check it out.

On Sat, May 15, 2021, 1:54 AM Mats Wichmann  wrote:

> On 5/14/21 2:55 AM, Payal Singh wrote:
> >
>
> it's easier if you put that in the message body, not the subject line.
>
> if you're getting the repair/modify/uninstall dialog, it means you're
> running the installer again (that's its job, if already installed, to
> somehow modify the installation).  Don't do that - the installer isn't
> the Python interpreter  Go find the actual Python executable instead.
> You can navigate to it through the start menu, or you can invoke it from
> a command shell (if you installed the Python Launcher, which is
> recommended, do so by typing  "py").
>
>
>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Hello! I was here to ask about pythonm actually I deleted the python 8 version and downloaded a new python 9 version but after deleting when I code something and after some days I want to open the

2021-05-14 Thread Mats Wichmann

On 5/14/21 2:55 AM, Payal Singh wrote:




it's easier if you put that in the message body, not the subject line.

if you're getting the repair/modify/uninstall dialog, it means you're 
running the installer again (that's its job, if already installed, to 
somehow modify the installation).  Don't do that - the installer isn't 
the Python interpreter  Go find the actual Python executable instead. 
You can navigate to it through the start menu, or you can invoke it from 
a command shell (if you installed the Python Launcher, which is 
recommended, do so by typing  "py").



--
https://mail.python.org/mailman/listinfo/python-list


Hello! I was here to ask about pythonm actually I deleted the python 8 version and downloaded a new python 9 version but after deleting when I code something and after some days I want to open the fil

2021-05-14 Thread Payal Singh


-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Hello, I need help.

2019-10-15 Thread Piet van Oostrum
Damla Pehlivan  writes:

> Dear Python Team,
[...]
>  I am writing this mail quite emotionally. I asked a new "friend" for help,
> but he laughed. He said it was because I am a girl and this is why I could
> not do it. I want to prove to him and the whole world that I can do it. I
> have a lesson next Monday, so could you please help me with my problem?

That is very nasty. Fortunately Python is not gender-sensitive.

What Operating system do you use? I suppose it probably is Windows or Linux.
And did you use the installer from www.python.org?
These have an IDE that is called IDLE. It is simpler than Pycharm, but it can 
do the job. So you can try that. If that also gives an error you could try to 
reinstall Python.

If you are familiar with the command line, then that is also a possibility.
-- 
Piet van Oostrum 
WWW: http://piet.vanoostrum.org/
PGP key: [8DAE142BE17999C4]
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Hello, I need help.

2019-10-15 Thread Peter Pearson
On Tue, 15 Oct 2019 18:57:04 +0300, Damla Pehlivan  wrote:
[snip]

> . . .  I downloaded the python program, and I
> also downloaded Pycharm to use it. To be fair, I do not know what I am
> doing, but I made some progress last night and I was happy about it. Today
> when I came back from university, I realised the program was updated, I
> updated it and now I cannot use it. When I clicked on it, it kept opening
> the modify tab. I did modify it and repaired it. But it kept not opening
> the actual program.

A clearer description of your situation would improve your odds
of getting a useful result.  For starters, what operating system
are you using?  What application presents the "modify tab" that
you mention?  Is this perhaps a problem with your software-installing
process, rather than with Python or with Pycharm?

Have you found a good Python tutorial?

-- 
To email me, substitute nowhere->runbox, invalid->com.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Hello, I need help.

2019-10-15 Thread Igor Korot
Hi,
Are you trying to run your program, PyCharm, or the python console?

Thank you.


On Tue, Oct 15, 2019 at 12:01 PM Damla Pehlivan  wrote:
>
> Dear Python Team,
> First, I would like to introduce myself. My name is Damla Pehlivan, and I
> live in Ankara/Turkey. I am a university student at Ankara University. My
> major is Biology; therefore, I want to learn Python to use for Data
> Science. When I researched and asked my professors, they suggested me to
> learn Python.
>  Sadly, I am quite a beginner but I downloaded the python program, and I
> also downloaded Pycharm to use it. To be fair, I do not know what I am
> doing, but I made some progress last night and I was happy about it. Today
> when I came back from university, I realised the program was updated, I
> updated it and now I cannot use it. When I clicked on it, it kept opening
> the modify tab. I did modify it and repaired it. But it kept not opening
> the actual program.
>  I am writing this mail quite emotionally. I asked a new "friend" for help,
> but he laughed. He said it was because I am a girl and this is why I could
> not do it. I want to prove to him and the whole world that I can do it. I
> have a lesson next Monday, so could you please help me with my problem?
>  With
> kindest regards
> --
> https://mail.python.org/mailman/listinfo/python-list
-- 
https://mail.python.org/mailman/listinfo/python-list


Hello, I need help.

2019-10-15 Thread Damla Pehlivan
Dear Python Team,
First, I would like to introduce myself. My name is Damla Pehlivan, and I
live in Ankara/Turkey. I am a university student at Ankara University. My
major is Biology; therefore, I want to learn Python to use for Data
Science. When I researched and asked my professors, they suggested me to
learn Python.
 Sadly, I am quite a beginner but I downloaded the python program, and I
also downloaded Pycharm to use it. To be fair, I do not know what I am
doing, but I made some progress last night and I was happy about it. Today
when I came back from university, I realised the program was updated, I
updated it and now I cannot use it. When I clicked on it, it kept opening
the modify tab. I did modify it and repaired it. But it kept not opening
the actual program.
 I am writing this mail quite emotionally. I asked a new "friend" for help,
but he laughed. He said it was because I am a girl and this is why I could
not do it. I want to prove to him and the whole world that I can do it. I
have a lesson next Monday, so could you please help me with my problem?
 With
kindest regards
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: hello this ali .. i want some question about python

2019-04-05 Thread Igor Korot
Hi,

On Fri, Apr 5, 2019 at 9:02 PM Sayth Renshaw  wrote:
>
> On Saturday, 6 April 2019 08:21:51 UTC+11, maak khan  wrote:
> > i need your help guys .. plz

Are you trying to create a teaching software?

Thank you.

>
> With?
> --
> https://mail.python.org/mailman/listinfo/python-list
-- 
https://mail.python.org/mailman/listinfo/python-list


hello this ali .. i want some question about python

2019-04-05 Thread maak khan
i need your help guys .. plz
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: hello this ali .. i want some question about python

2019-04-05 Thread Sayth Renshaw
On Saturday, 6 April 2019 08:21:51 UTC+11, maak khan  wrote:
> i need your help guys .. plz

With?
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue35086] tkinter docs: errors in A Simple Hello World Program

2018-10-30 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35086] tkinter docs: errors in A Simple Hello World Program

2018-10-30 Thread miss-islington


miss-islington  added the comment:


New changeset c843a47007293d8361d0bfd45bfd7169afaa601c by Miss Islington (bot) 
in branch '3.6':
bpo-35086: Fix tkinter example "A Simple Hello World Program". (GH-10160)
https://github.com/python/cpython/commit/c843a47007293d8361d0bfd45bfd7169afaa601c


--

___
Python tracker 
<https://bugs.python.org/issue35086>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35086] tkinter docs: errors in A Simple Hello World Program

2018-10-30 Thread miss-islington


miss-islington  added the comment:


New changeset f51ef51db686938486bff453e791a3093a1df108 by Miss Islington (bot) 
in branch '3.7':
bpo-35086: Fix tkinter example "A Simple Hello World Program". (GH-10160)
https://github.com/python/cpython/commit/f51ef51db686938486bff453e791a3093a1df108


--
nosy: +miss-islington

___
Python tracker 
<https://bugs.python.org/issue35086>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35086] tkinter docs: errors in A Simple Hello World Program

2018-10-30 Thread miss-islington


Change by miss-islington :


--
pull_requests: +9555

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35086] tkinter docs: errors in A Simple Hello World Program

2018-10-30 Thread miss-islington


Change by miss-islington :


--
pull_requests: +9554

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35086] tkinter docs: errors in A Simple Hello World Program

2018-10-30 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset a80af770870937271865b5e2b05a2cfe40b024b6 by Serhiy Storchaka 
(Daniel Lovell) in branch 'master':
bpo-35086: Fix tkinter example "A Simple Hello World Program". (GH-10160)
https://github.com/python/cpython/commit/a80af770870937271865b5e2b05a2cfe40b024b6


--

___
Python tracker 
<https://bugs.python.org/issue35086>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35086] tkinter docs: errors in A Simple Hello World Program

2018-10-28 Thread Daniel Lovell


Daniel Lovell  added the comment:

Thanks for the reply xtreak. I agree that changing the example to include 
main() isn't necessary - I unintentionally included that from my example of the 
case where the current version isn't functional. 

In the PR I submitted on Github (https://github.com/python/cpython/pull/10160), 
the proposed change is simply adding the master Tk instance to self.master then 
using that to close the window in the Quit button callback.

Sorry for the confusion.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35086] tkinter docs: errors in A Simple Hello World Program

2018-10-28 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

Thanks for the report. So the current example in the docs works fine since root 
is in global namespace. But this seems to be a sensible change to use 
self.master which references root instead of relying on root to be global 
though I don't know we should restructure the example to use main(). I am 
adding Serhiy for review.

--
nosy: +serhiy.storchaka, xtreak

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35086] tkinter docs: errors in A Simple Hello World Program

2018-10-27 Thread Daniel Lovell


Change by Daniel Lovell :


--
keywords: +patch
pull_requests: +9484
stage:  -> patch review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35086] tkinter docs: errors in A Simple Hello World Program

2018-10-27 Thread Daniel Lovell


New submission from Daniel Lovell :

In the documentation for tkinter, "A Simple Hello World Program" Application 
class does not hold onto the master Tk() instance as a class attribute. This is 
a good practice, and newcomers to tkinter would likely have trouble closing the 
window without this since root will almost never be in the global namespace.

The original example:

"""""

import tkinter as tk

class Application(tk.Frame):
def __init__(self, master=None):
super().__init__(master)
self.pack()
self.create_widgets()

def create_widgets(self):
self.hi_there = tk.Button(self)
    self.hi_there["text"] = "Hello World\n(click me)"
self.hi_there["command"] = self.say_hi
self.hi_there.pack(side="top")

self.quit = tk.Button(self, text="QUIT", fg="red",
  command=root.destroy)
self.quit.pack(side="bottom")

def say_hi(self):
print("hi there, everyone!")

root = tk.Tk()
app = Application(master=root)
app.mainloop()

""""

The proposed fix:

""""
import tkinter as tk

class Application(tk.Frame):
def __init__(self, master=None):
super().__init__(master)
self.master = master
self.pack()
self.create_widgets()

def create_widgets(self):
self.hi_there = tk.Button(self)
self.hi_there["text"] = "Hello World\n(click me)"
self.hi_there["command"] = self.say_hi
self.hi_there.pack(side="top")

self.quit = tk.Button(self, text="QUIT", fg="red",
  command=self.master.destroy)
self.quit.pack(side="bottom")

def say_hi(self):
print("hi there, everyone!")

def main():
root = tk.Tk()
app = Application(master=root)
app.mainloop()

if __name__ == "__main__":
main()

""""

--
components: Tkinter
files: tkinter_hello_world_issue.png
messages: 328669
nosy: NuclearLemon
priority: normal
severity: normal
status: open
title: tkinter docs: errors in A Simple Hello World Program
type: enhancement
versions: Python 3.7, Python 3.8
Added file: https://bugs.python.org/file47894/tkinter_hello_world_issue.png

___
Python tracker 
<https://bugs.python.org/issue35086>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



hello I need the code of md6 hash

2018-10-22 Thread cont...@blake2.net


تم الإرسال من البريد لـ Windows 10



---
لقد تم التحقق من خلو هذا البريد الإلكتروني من الفيروسات بواسطة برنامج أفاست 
مضاد الفيروسات.

https://www.avast.com/antivirus
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: hello from a very excited and totally blind python programmer and game player

2018-07-30 Thread Amirouche Boubekki
Of course I forgot the static page generator program read (or listen)
direct text of the link at the code follows
https://raw.githubusercontent.com/amirouche/xp-maji/master/maji.py

xp is for experience :smallsmile:

I am a recovering lisp dev, so all my new programs are small. If you want a
pure Python webdev try: git clone https://github.com/amirouche/beyondjs

Le lun. 30 juil. 2018 à 20:33, Amirouche Boubekki <
amirouche.boube...@gmail.com> a écrit :

>
>
> Le mar. 24 juil. 2018 à 22:10, Daniel Perry  a
> écrit :
>
>> Hi there everyone, my name is Daniel Perry
>
>
> Hello!
>
>
>> and I'm a totally blind new Python user.
>
>
> Ok!
>
>
>> I've only just recently started picking up python and playing with it and
>> I intend on building some unique audio computer games for the blind.
>
>
> That. Is. An. Adventure. If you plan on a multi touch experience I
> recommend you look into #kivy and #python especially on freenode IRC
> network.
>
>
>> Such things mostly as simulation games like farming, building type games
>> and even eventually a virtual world built completely with audio but
>> building it in such a way that both we as totally blind colonists can live
>> inside of it but also that our fully sighted counterparts could live here
>> as well and not need any sort of guidance from the other group. That is,
>> the blind would not need any help from our sighted counterparts and you in
>> turn would not need any guidance from us as to how to live in the world or
>> grow in it.
>
>
> Well, that reads like an real adventure here. I've listening to books and
> while it's different, you still enjoy the story, so maybe I can enjoy a
> game made of sounds.
>
>
>> Of course this virtual world idea is down the road, I've got other game
>> ideas first of all but I would eventually like to get to the point I've
>> just described above.
>
>
> At some point, you might stop at the point where it pays the bills!
>
>
>> Preferably building my own server on which to park not only my virtual
>> world and games but also my web site that I would most likely need to put
>> these items up to be downloaded.
>
>
> I attach a small program that does render jinja2 templates and markdown, I
> hope you like it.
>
>>
>> Also, When I opened up the first message that I had gotten from this
>> list, I got a prompt hat popped up asking if I wanted to make windows live
>> mail my default news client and I answered no. From that point on, I've
>> been getting an error message and the message would not open. How must I
>> fix this? or am I able to correct this situation. Have a wonderful day and
>> I look forward to hearing from you soon.
>>
>
>  That's a nast3 behavior.
>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: hello from a very excited and totally blind python programmer and game player

2018-07-30 Thread Amirouche Boubekki
Le mar. 24 juil. 2018 à 22:10, Daniel Perry  a
écrit :

> Hi there everyone, my name is Daniel Perry


Hello!


> and I'm a totally blind new Python user.


Ok!


> I've only just recently started picking up python and playing with it and
> I intend on building some unique audio computer games for the blind.


That. Is. An. Adventure. If you plan on a multi touch experience I
recommend you look into #kivy and #python especially on freenode IRC
network.


> Such things mostly as simulation games like farming, building type games
> and even eventually a virtual world built completely with audio but
> building it in such a way that both we as totally blind colonists can live
> inside of it but also that our fully sighted counterparts could live here
> as well and not need any sort of guidance from the other group. That is,
> the blind would not need any help from our sighted counterparts and you in
> turn would not need any guidance from us as to how to live in the world or
> grow in it.


Well, that reads like an real adventure here. I've listening to books and
while it's different, you still enjoy the story, so maybe I can enjoy a
game made of sounds.


> Of course this virtual world idea is down the road, I've got other game
> ideas first of all but I would eventually like to get to the point I've
> just described above.


At some point, you might stop at the point where it pays the bills!


> Preferably building my own server on which to park not only my virtual
> world and games but also my web site that I would most likely need to put
> these items up to be downloaded.


I attach a small program that does render jinja2 templates and markdown, I
hope you like it.

>
> Also, When I opened up the first message that I had gotten from this list,
> I got a prompt hat popped up asking if I wanted to make windows live mail
> my default news client and I answered no. From that point on, I've been
> getting an error message and the message would not open. How must I fix
> this? or am I able to correct this situation. Have a wonderful day and I
> look forward to hearing from you soon.
>

 That's a nast3 behavior.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: hello from a very excited and totally blind python programmer and game player

2018-07-25 Thread Tim Golden

Hi Daniel,

I'm unsure how well your support tools will work with quoted emails. I'm 
going to place my answer below your text according to the convention on 
this list.


On 24/07/2018 21:09, Daniel Perry wrote:

Hi there everyone, my name is Daniel Perry and I'm a totally blind
new Python user. I've only just recently started picking up python
and playing with it and I intend on building some unique audio
computer games for the blind. Such things mostly as simulation games
like farming, building type games and even eventually a virtual world
built completely with audio but building it in such a way that both
we as totally blind colonists can live inside of it but also that our
fully sighted counterparts could live here as well and not need any
sort of guidance from the other group. That is, the blind would not
need any help from our sighted counterparts and you in turn would not
need any guidance from us as to how to live in the world or grow in
it. Of course this virtual world idea is down the road, I've got
other game ideas first of all but I would eventually like to get to
the point I've just described above. Preferably building my own
server on which to park not only my virtual world and games but also
my web site that I would most likely need to put these items up to be
downloaded. Have a wonderful day to you all and I look forward to
your feedback and advice. Also, When I opened up the first message
that I had gotten from this list, I got a prompt that popped up
asking if I wanted to make windows live mail my default news client
and I answered no. From that point on, I've been getting an error
message and the message would not open. How must I fix this? or am I
able to correct this situation. Have a wonderful day and I look
forward to hearing from you soon.



First of all: Hello, and welcome. If you're a beginner to Python (or to 
programming in general) you might find the tutor list is a better place 
to start:


  https://mail.python.org/mailman/listinfo/tutor

But feel free to carry on posting here if you prefer.

If you want advice you'll probably need to ask a more or less focused 
question. The sort of thing you outline as an audio computer game sounds 
interesting and quite ambitious. I'm not clear if you've done any 
programming at all until now? If not, you'll want to start small and 
work up from there.


I'm not clear what's going on with your Windows Live Mail issue. The 
only (and obvious) thing I can suggest initially is to ask if someone 
closer to you can understand what's happening and advise. It's difficult 
to guess what's happened without getting closer to the problem.


Anyway, do post back here or to the Tutor list and ask if you any 
specific questions.


TJG
--
https://mail.python.org/mailman/listinfo/python-list


Re: hello from a very excited and totally blind python programmer and game player

2018-07-25 Thread Rhodri James

On 24/07/18 21:09, Daniel Perry wrote:

Also, When I opened up the first message that I had gotten from this list, I 
got a prompt that popped up asking if I wanted to make windows live mail my 
default news client and I answered no. From that point on, I've been getting an 
error message and the message would not open. How must I fix this? or am I able 
to correct this situation. Have a wonderful day and I look forward to hearing 
from you soon.


I'm afraid you would have to ask the vendors of the software you used to 
read the message with in the first place.  There is nothing particularly 
odd about this list that I can think of that might cause problems like that.


--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list


hello from a very excited and totally blind python programmer and game player

2018-07-24 Thread Daniel Perry
Hi there everyone, my name is Daniel Perry and I'm a totally blind new Python 
user. I've only just recently started picking up python and playing with it and 
I intend on building some unique audio computer games for the blind. Such 
things mostly as simulation games like farming, building type games and even 
eventually a virtual world built completely with audio but building it in such 
a way that both we as totally blind colonists can live inside of it but also 
that our fully sighted counterparts could live here as well and not need any 
sort of guidance from the other group. That is, the blind would not need any 
help from our sighted counterparts and you in turn would not need any guidance 
from us as to how to live in the world or grow in it. Of course this virtual 
world idea is down the road, I've got other game ideas first of all but I would 
eventually like to get to the point I've just described above. Preferably 
building my own server on which to park not only my virtual world and
  games but also my web site that I would most likely need to put these items 
up to be downloaded. Have a wonderful day to you all and I look forward to your 
feedback and advice. Also, When I opened up the first message that I had gotten 
from this list, I got a prompt that popped up asking if I wanted to make 
windows live mail my default news client and I answered no. From that point on, 
I've been getting an error message and the message would not open. How must I 
fix this? or am I able to correct this situation. Have a wonderful day and I 
look forward to hearing from you soon.
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue31966] [EASY C][Windows] print('hello\n', end='', flush=True) raises OSError when ran with py -u

2018-06-16 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31966] [EASY C][Windows] print('hello\n', end='', flush=True) raises OSError when ran with py -u

2018-02-24 Thread miss-islington

miss-islington  added the comment:


New changeset 980790eee0c804061a49b8ad7373e4669b48f2ec by Miss Islington (bot) 
in branch '3.6':
bpo-31966: Fixed WindowsConsoleIO.write() for writing empty data. (GH-5754)
https://github.com/python/cpython/commit/980790eee0c804061a49b8ad7373e4669b48f2ec


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31966] [EASY C][Windows] print('hello\n', end='', flush=True) raises OSError when ran with py -u

2018-02-24 Thread miss-islington

miss-islington  added the comment:


New changeset e49bf0f353a968cddc4d8e6ea668b9d2d116e2ac by Miss Islington (bot) 
in branch '3.7':
bpo-31966: Fixed WindowsConsoleIO.write() for writing empty data. (GH-5754)
https://github.com/python/cpython/commit/e49bf0f353a968cddc4d8e6ea668b9d2d116e2ac


--
nosy: +miss-islington

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31966] [EASY C][Windows] print('hello\n', end='', flush=True) raises OSError when ran with py -u

2018-02-24 Thread miss-islington

Change by miss-islington :


--
pull_requests: +5628

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31966] [EASY C][Windows] print('hello\n', end='', flush=True) raises OSError when ran with py -u

2018-02-24 Thread miss-islington

Change by miss-islington :


--
pull_requests: +5627

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31966] [EASY C][Windows] print('hello\n', end='', flush=True) raises OSError when ran with py -u

2018-02-24 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:


New changeset 42c35d9c0c8175332f50fbe034a001fe52f057b9 by Serhiy Storchaka in 
branch 'master':
bpo-31966: Fixed WindowsConsoleIO.write() for writing empty data. (GH-5754)
https://github.com/python/cpython/commit/42c35d9c0c8175332f50fbe034a001fe52f057b9


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31966] [EASY C][Windows] print('hello\n', end='', flush=True) raises OSError when ran with py -u

2018-02-19 Thread Serhiy Storchaka

Change by Serhiy Storchaka :


--
keywords: +patch
pull_requests: +5531
stage: needs patch -> patch review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31966] [EASY C][Windows] print('hello\n', end='', flush=True) raises OSError when ran with py -u

2018-02-19 Thread Serhiy Storchaka

Change by Serhiy Storchaka :


--
assignee:  -> serhiy.storchaka

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31966] [EASY C][Windows] print('hello\n', end='', flush=True) raises OSError when ran with py -u

2017-11-07 Thread STINNER Victor

STINNER Victor <victor.stin...@gmail.com> added the comment:

The _io__WindowsConsoleIO_write_impl() function should be fixed to not call 
MultiByteToWideChar() but use 0 if the input string is zero. Ok, it makes sense.

In that case, I agree to call it a simple issue ;-)

--
title: print('hello\n', end='', flush=True) raises OSError when ran with py -u 
-> [EASY C][Windows] print('hello\n', end='', flush=True) raises OSError when 
ran with py -u

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue31966>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31966] print('hello\n', end='', flush=True) raises OSError when ran with py -u

2017-11-07 Thread Eryk Sun

Eryk Sun  added the comment:

The error is in _io__WindowsConsoleIO_write_impl. If it's passed a length 0 
buffer, it still tries to decode it via MultiByteToWideChar, which fails as 
documented. As Serhiy says, it can simply return Python int(0) in the 
zero-length case.

--
nosy: +eryksun

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31966] print('hello\n', end='', flush=True) raises OSError when ran with py -u

2017-11-07 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:

I don't know which part of _WindowsConsoleIO.write() fails to handle empty 
bytes string, but the simplest and the most efficient way to fix this bug it to 
add an explicit check for zero length at the begin of this method and return 
Python integer 0 in this case.

The test should check that sys.stdout.buffer.write(b''), 
sys.stdout.buffer.write(b'') and sys.stdout.buffer.raw.write(b'') return 0 (the 
latter to checks should be performed only if the corresponding buffer and raw 
attributes exist). There are special tests for WindowsConsoleIO, it would be 
nice to add an explicit test here too.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31966] print('hello\n', end='', flush=True) raises OSError when ran with py -u

2017-11-07 Thread STINNER Victor

STINNER Victor  added the comment:

serhiy.storchaka: "keywords: + easy (C)"

For easy issue, you should explain how do you want the issue to be fixed.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31966] print('hello\n', end='', flush=True) raises OSError when ran with py -u

2017-11-07 Thread STINNER Victor

STINNER Victor  added the comment:

Once the bug will be fixed, it would be nice to test this simple case :-)

--
nosy: +haypo

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31966] print('hello\n', end='', flush=True) raises OSError when ran with py -u

2017-11-07 Thread Serhiy Storchaka

Change by Serhiy Storchaka :


--
keywords: +easy (C)
stage:  -> needs patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31966] print('hello\n', end='', flush=True) raises OSError when ran with py -u

2017-11-07 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:

The problem is with _WindowsConsoleIO.

C:\py\cpython>python.bat -u -c "import sys; sys.stdout.buffer.write(b'')"
Running Release|Win32 interpreter...
Traceback (most recent call last):
  File "", line 1, in 
OSError: [WinError 87] The parameter is incorrect

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31966] print('hello\n', end='', flush=True) raises OSError when ran with py -u

2017-11-07 Thread Serhiy Storchaka

Change by Serhiy Storchaka :


--
components: +IO
nosy: +serhiy.storchaka

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31966] print('hello\n', end='', flush=True) raises OSError when ran with py -u

2017-11-07 Thread Guillaume Aldebert

New submission from Guillaume Aldebert <galdeb...@gmail.com>:

noticed on windows10, 3.6.3-64 and 3.7.0a2-64:

using this test.py file:

#!/usr/bin/env python3
print('hello\n', end='', flush=True)

and running it in unbuffered mode:

C:\Dev>py -u test.py
hello
Traceback (most recent call last):
  File "test.py", line 2, in 
print('hello\n', end='', flush=True)
OSError: [WinError 87] The parameter is incorrect

Note that (still using py -u):

print('hello', end='', flush=True) # works fine
print('', end='', flush=True) # raises OSError as well

--
components: Windows
messages: 305726
nosy: Guillaume Aldebert, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: print('hello\n', end='', flush=True) raises OSError when ran with py -u
type: behavior
versions: Python 3.6, Python 3.7

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue31966>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



Re: hello!! i was Installing Tensor flow with gpu support and something went wrong

2017-06-12 Thread Terry Reedy

On 6/12/2017 2:18 PM, jlada...@itu.edu wrote:

On Monday, June 12, 2017 at 10:40:25 AM UTC-7, Forsaken uttax wrote:

hello!!
I was trying to install Tensorflow on my laptop with Gpu support
so I Installed python the one in the screenshot below, and I put in pip
Tensorflow Install command  and it says syntax error so i try to update the
pip that too doesn't work desperate for solution help me.

Regards
Teenage wonders


You cannot attach a screen shot to the newsgroup.

Building TensorFlow with GPU support is not simple.  It involves far more than 
Python.  I am investigating this issue myself.  Check tensorflow.org for more 
information.  Also, there is a TensorFlow newsgroup hosted on Google Groups.


There is also a tensorflow tag on Stackoverflow with lots of questions 
and, I hope, helpful answers.



But before you take the trouble, are you sure that you need GPU support right 
away?  You can explore neural nets on a CPU-only system, and in that 
configuration, TensorFlow installs easily.




--
Terry Jan Reedy

--
https://mail.python.org/mailman/listinfo/python-list


Re: hello!! i was Installing Tensor flow with gpu support and something went wrong

2017-06-12 Thread jladasky
On Monday, June 12, 2017 at 10:40:25 AM UTC-7, Forsaken uttax wrote:
> hello!!
>I was trying to install Tensorflow on my laptop with Gpu support
> so I Installed python the one in the screenshot below, and I put in pip
> Tensorflow Install command  and it says syntax error so i try to update the
> pip that too doesn't work desperate for solution help me.
> 
> Regards
> Teenage wonders

You cannot attach a screen shot to the newsgroup.

Building TensorFlow with GPU support is not simple.  It involves far more than 
Python.  I am investigating this issue myself.  Check tensorflow.org for more 
information.  Also, there is a TensorFlow newsgroup hosted on Google Groups.

But before you take the trouble, are you sure that you need GPU support right 
away?  You can explore neural nets on a CPU-only system, and in that 
configuration, TensorFlow installs easily.
-- 
https://mail.python.org/mailman/listinfo/python-list


hello!! i was Installing Tensor flow with gpu support and something went wrong

2017-06-12 Thread Forsaken uttax
hello!!
   I was trying to install Tensorflow on my laptop with Gpu support
so I Installed python the one in the screenshot below, and I put in pip
Tensorflow Install command  and it says syntax error so i try to update the
pip that too doesn't work desperate for solution help me.

Regards
Teenage wonders
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Hello from a super noob!

2017-06-08 Thread Andre Müller
Hello,

you can refactor your code a little bit and learn more about exceptions:

def get_numbers():
first = None
second = None
while True:
try:
if first is None:
first = int(input('Enter your first number: '))
if second is None:
second = int(input('Enter your second number: '))
except ValueError:
print('You have to enter a number')
continue
else:
return first, second


Am 08.06.2017 um 01:56 schrieb CB:
> Hi everyone,
> I am taking a python class and I'm stuck in an exercise.
>
> what am i doing wrong? Can anyone try to run it? Thanks so much! 
>
> #Description:Input validation and while loops.
>
>
> import random
> def main(): #main function need in all programs for automated testing
> 
>
> #your program goes here
> 
> print()
>
>
>
> 
> print("This program will help us practice input validation and while 
> loops.")
> print("The user will be asked to enter two numbers which will both be 
> validated. ")
> print("The sum of the numbers will then be displayed in a complex print 
> statement ")
> print("and the user will be asked if they would like to run the program 
> again."
> )
> print()
> print()
> 
> while True:
> FirstNumber = input ("Please enter the first number: ")
> if FirstNumber.isdigit ():
> FirstNumber = int(FirstNumber)
> break 
> else:
>   print ("Invalid response. Please enter a whole number. " )
> 
> while True:
> 
> SecondNumber = input ("Please enter the second number: " )
> if SecondNumber.isdigit():
> SecondNumber= int(SecondNumber)
>
> break
> else:
> print("Invalid response. Please enter a whole number." )
> 
> print()
> print (str(FirstNumber) + " + " + str(SecondNumber)+ " = " + 
> str(FirstNumber + SecondNumber))
> print()
> 
> while True:
> 
> ans= input('Would you like to run the program again (Y/N) : ')
> if ans== 'Y' or ans== 'N':
> break
>
> else:
> print(" lnvalid response. Please answer with 'Y' or 'N' ")
>
> if ans== 'N':
> break
>   
>




signature.asc
Description: OpenPGP digital signature
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Hello from a super noob!

2017-06-08 Thread Rhodri James

On 08/06/17 00:56, CB wrote:

Hi everyone,
I am taking a python class and I'm stuck in an exercise.

what am i doing wrong? Can anyone try to run it? Thanks so much!


It helps if you describe what is going wrong.  Not just us, either; 
"Teddy Bear Debugging", explaining to a colleague (or indeed a soft toy) 
why your code cannot possibly be wrong, is an excellent way of finding 
bugs.  The number of times I've stopped in the middle of an explanation 
to fix the now glaringly obvious mistake...


Try it and see.  Here's a hint: be very aware of what your indentation 
means.


--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list


Re: Hello from a super noob!

2017-06-07 Thread Steve D'Aprano
On Thu, 8 Jun 2017 09:56 am, CB wrote:

> Can anyone try to run it?


Yes, you can.

Doctor to patient: "So, what seems to be the problem?"

Patient: "You're the doctor, you tell me."




-- 
Steve
“Cheer up,” they said, “things could be worse.” So I cheered up, and sure
enough, things got worse.

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Hello from a super noob!

2017-06-07 Thread MRAB

On 2017-06-08 00:56, CB wrote:

Hi everyone,
I am taking a python class and I'm stuck in an exercise.

what am i doing wrong? Can anyone try to run it? Thanks so much!

#Description:Input validation and while loops.


import random
def main(): #main function need in all programs for automated testing
 


 #your program goes here
 
 print()




 
 print("This program will help us practice input validation and while loops.")

 print("The user will be asked to enter two numbers which will both be 
validated. ")
 print("The sum of the numbers will then be displayed in a complex print 
statement ")
 print("and the user will be asked if they would like to run the program 
again."
)
 print()
 print()
 
 while True:

 FirstNumber = input ("Please enter the first number: ")
 if FirstNumber.isdigit ():
 FirstNumber = int(FirstNumber)
 break
 else:
   print ("Invalid response. Please enter a whole number. " )
 
 while True:
 
 SecondNumber = input ("Please enter the second number: " )

 if SecondNumber.isdigit():
 SecondNumber= int(SecondNumber)

 break
 else:
 print("Invalid response. Please enter a whole number." )
 
 print()

 print (str(FirstNumber) + " + " + str(SecondNumber)+ " = " + 
str(FirstNumber + SecondNumber))
 print()
 
 while True:
 
 ans= input('Would you like to run the program again (Y/N) : ')

 if ans== 'Y' or ans== 'N':
 break

 else:
 print(" lnvalid response. Please answer with 'Y' or 'N' ")

 if ans== 'N':
 break
   


You haven't said what the problem is.

It looks OK, apart from the indentation, which is important to get right 
in Python.


Also, you've defined a function 'main' but not called it, and imported a 
module but not used it, which is pointless.

--
https://mail.python.org/mailman/listinfo/python-list


Hello from a super noob!

2017-06-07 Thread CB
Hi everyone,
I am taking a python class and I'm stuck in an exercise.

what am i doing wrong? Can anyone try to run it? Thanks so much! 

#Description:Input validation and while loops.


import random
def main(): #main function need in all programs for automated testing


#your program goes here

print()




print("This program will help us practice input validation and while 
loops.")
print("The user will be asked to enter two numbers which will both be 
validated. ")
print("The sum of the numbers will then be displayed in a complex print 
statement ")
print("and the user will be asked if they would like to run the program 
again."
)
print()
print()

while True:
FirstNumber = input ("Please enter the first number: ")
if FirstNumber.isdigit ():
FirstNumber = int(FirstNumber)
break 
else:
  print ("Invalid response. Please enter a whole number. " )

while True:

SecondNumber = input ("Please enter the second number: " )
if SecondNumber.isdigit():
SecondNumber= int(SecondNumber)

break
else:
print("Invalid response. Please enter a whole number." )

print()
print (str(FirstNumber) + " + " + str(SecondNumber)+ " = " + 
str(FirstNumber + SecondNumber))
print()

while True:

ans= input('Would you like to run the program again (Y/N) : ')
if ans== 'Y' or ans== 'N':
break

else:
print(" lnvalid response. Please answer with 'Y' or 'N' ")

if ans== 'N':
break
  

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Hello

2016-03-12 Thread alister
On Fri, 11 Mar 2016 17:53:45 -0500, Larry Martell wrote:

> On Fri, Mar 11, 2016 at 4:49 AM, Steven D'Aprano 
> wrote:
> 
>> On Fri, 11 Mar 2016 02:28 pm, rubengoods...@yahoo.com wrote:
>>
>> > I am having trouble installing the Python software.
>>
>> Make sure your computer is turned on. I can't tell you how many times
>> I've tried to install Python, and I type commands and click icons and
>> nothing happens. It's really frustrating when you finally realise that
>> the reason nothing is working is because the computer is turned off! (I
>> thought I just had the screen brightness turned way down.)
> 
> 
> Many years ago (c. 1985) I was at a job interview and the interviewer
> asked me what the first thing I would do when I am presented with a new
> problem that I had to code up. I gave all sorts of answers like 'do a
> top down analysis of the problem,' and 'get the specs and requirements,'
> and 'write a flow chart.' Each time the interviewer said no even before
> that. Finally I said, what, what would do first? He said "Turn the
> computer on." I decided then and there I did not want to work for that
> guy.

Then not only was he an arse but he is also wrong.
for a complex problem it is best to have a plan on how to implement it 
before reaching for the keyboard.

Your answer of get the spec & requirements certainly does not need a 
computer (although one could help for note taking if your hand writing is 
as bad as mine).

I guess he was so caught up with his clever catch answer that he did not 
bother to analyse yours & realise he had missed something

"I decided then and there I did not want to work for that guy."

Shame I would have enjoyed reading the results on www.thedailywtf.com :-)

-- 
He who laughs last -- missed the punch line.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Hello

2016-03-11 Thread Steven D'Aprano
On Sat, 12 Mar 2016 09:53 am, Larry Martell wrote:

> Many years ago (c. 1985) I was at a job interview and the interviewer
> asked me what the first thing I would do when I am presented with a new
> problem that I had to code up. I gave all sorts of answers like 'do a top
> down analysis of the problem,' and 'get the specs and requirements,' and
> 'write a flow chart.' Each time the interviewer said no even before that.
> Finally I said, what, what would do first? He said "Turn the computer on."
> I decided then and there I did not want to work for that guy.


I'm reminded of a wonderful scene from an old movie called "Those
Magnificent Men In Their Flying Machines". Set some time in the early 20th
century, before World War 1, it's about an international aeroplane race
across the English Channel. One of the pilots is an Englishman, played by
Terry Thomas, who of course plays a bounder and a cad, so he tries to
sabotage the other contestants so he can win the race. He manages to give
the German pilot an overdose of laxative to put him out of the race.

The German's commanding officer, a great big fat Prussian colonel, decides
that with German discipline and planning anyone can be a pilot, so he takes
the German army Flying Machine instruction manual, climbs into the plane's
cockpit, and standing proudly, opens the book to the first page and reads:

[Hollywood German accent]
"Step One: Sit Down!"





-- 
Steven

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Hello

2016-03-11 Thread Larry Martell
On Fri, Mar 11, 2016 at 4:49 AM, Steven D'Aprano 
wrote:

> On Fri, 11 Mar 2016 02:28 pm, rubengoods...@yahoo.com wrote:
>
> > I am having trouble installing the Python software.
>
> Make sure your computer is turned on. I can't tell you how many times I've
> tried to install Python, and I type commands and click icons and nothing
> happens. It's really frustrating when you finally realise that the reason
> nothing is working is because the computer is turned off! (I thought I just
> had the screen brightness turned way down.)


Many years ago (c. 1985) I was at a job interview and the interviewer asked
me what the first thing I would do when I am presented with a new problem
that I had to code up. I gave all sorts of answers like 'do a top down
analysis of the problem,' and 'get the specs and requirements,' and 'write
a flow chart.' Each time the interviewer said no even before that. Finally
I said, what, what would do first? He said "Turn the computer on." I
decided then and there I did not want to work for that guy.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Hello

2016-03-11 Thread Steven D'Aprano
On Fri, 11 Mar 2016 02:28 pm, rubengoods...@yahoo.com wrote:

> I am having trouble installing the Python software.

Make sure your computer is turned on. I can't tell you how many times I've
tried to install Python, and I type commands and click icons and nothing
happens. It's really frustrating when you finally realise that the reason
nothing is working is because the computer is turned off! (I thought I just
had the screen brightness turned way down.)

If that's not your problem, I'm afraid you'll have to tell us what you
tried, and what results you got. Remember that we're not watching you
install, so we have no idea of what you did. 

What version of Python did you try to install?

Where did it come from? Give us the actual URL, don't just say "from the
website". 

What OS are you running? What version? 32-bit or 64-bit?

How did you install it? What commands did you type?

What happened? Did you get an error message? What did it say? Please COPY
and PASTE any results if you can. Don't post a screen shot, because this
mailing list is also a newsgroup and attachments will be deleted. If you
absolute must use a screen shot, post it to https://imgur.com/



-- 
Steven

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Hello

2016-03-11 Thread Mark Lawrence

On 11/03/2016 03:28, rubengoodson3--- via Python-list wrote:

I am having trouble installing the Python software.
Sent from Windows Mail



This type of question has been asked and answered repeatedly over the 
last few months so I suggest that you search the archives for your 
precise problem.


--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

--
https://mail.python.org/mailman/listinfo/python-list


Hello

2016-03-11 Thread rubengoodson3--- via Python-list
I am having trouble installing the Python software.






Sent from Windows Mail
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Hello.

2016-01-19 Thread Felix Almeida

Check your PATH environment variable.


On 16/01/16 04:41 PM, Hmood Js wrote:

cmd won't recognize python at all I've checked several times , and I don't 
understand what's wrong

Sent from Mail for Windows 10



--
https://mail.python.org/mailman/listinfo/python-list


Hello.

2016-01-17 Thread Hmood Js
cmd won't recognize python at all I've checked several times , and I don't 
understand what's wrong

Sent from Mail for Windows 10

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Hello.

2016-01-17 Thread Igor Korot
Hi,

On Sat, Jan 16, 2016 at 4:41 PM, Hmood Js  wrote:
> cmd won't recognize python at all I've checked several times , and I don't 
> understand what's wrong

What does this mean exactly?
Can you give an example?

Thank you.

>
> Sent from Mail for Windows 10
>
> --
> https://mail.python.org/mailman/listinfo/python-list
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Hello.

2016-01-17 Thread jacob Kruger

Environment variables pointing to c:\python..?
(needs to point to actual installation directory)

Jacob Kruger
Blind Biker
Skype: BlindZA
"Roger Wilco wants to welcome you...to the space janitor's closet..."

On 2016-01-16 11:41 PM, Hmood Js wrote:

cmd won't recognize python at all I've checked several times , and I don't 
understand what's wrong

Sent from Mail for Windows 10



--
https://mail.python.org/mailman/listinfo/python-list


Re: Hello.

2016-01-17 Thread Bernardo Sulzbach
This is likely due to the fact that python.exe is not in PATH. Try
reinstalling Python with this option or adding it yourself.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Hello

2015-12-11 Thread Seung Kim
See message below.

On Fri, Dec 11, 2015 at 1:13 PM, Seung Kim  wrote:

> I would like to have Python 3.5.1 MSI installer files for both 32-bit and
> 64-bit so that I can deploy the software on managed computers on campus.
>
> When I ran the silent install command line on python-3.5.1.exe, the
> registry key of QuietUninstallString showed me that the installer file was
> located under the following C:\Users\css.kim\AppData\Local\Package
> Cache\{b8440650-9dbe-4b7d-8167-6e0e3dcdf5d0}\python-3.5.1-amd64.exe"
> /uninstall /quiet.
>
> If I deploy the latest version of Python 3.5.1, the source location will
> be differently installed among managed computers. That is why I won't use
> the exe installer file. I wanted to have MSI installer files.
>
> Please, advise.
>
> --
>
>
> Seung Kim
> Software Systems Deployment Engineer
> Gallaudet Technology Services, Hall Memorial Building (HMB) W122
> Gallaudet University
> 800 Florida Avenue, NE
> Washington, D.C. 20002-3695
>



-- 


Seung Kim
Software Systems Deployment Engineer
Gallaudet Technology Services, Hall Memorial Building (HMB) W122
Gallaudet University
800 Florida Avenue, NE
Washington, D.C. 20002-3695
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Hello

2015-12-11 Thread Ian Kelly
On Fri, Dec 11, 2015 at 11:43 AM, Seung Kim  wrote:
> See message below.
>
> On Fri, Dec 11, 2015 at 1:13 PM, Seung Kim  wrote:
>
>> I would like to have Python 3.5.1 MSI installer files for both 32-bit and
>> 64-bit so that I can deploy the software on managed computers on campus.
>>
>> When I ran the silent install command line on python-3.5.1.exe, the
>> registry key of QuietUninstallString showed me that the installer file was
>> located under the following C:\Users\css.kim\AppData\Local\Package
>> Cache\{b8440650-9dbe-4b7d-8167-6e0e3dcdf5d0}\python-3.5.1-amd64.exe"
>> /uninstall /quiet.
>>
>> If I deploy the latest version of Python 3.5.1, the source location will
>> be differently installed among managed computers. That is why I won't use
>> the exe installer file. I wanted to have MSI installer files.
>>
>> Please, advise.

You probably want to install for all users using the InstallAllUsers=1
option. See https://docs.python.org/3/using/windows.html#installing-without-ui
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Hello

2015-09-21 Thread Zachary Ware
On Thu, Sep 17, 2015 at 10:10 AM, moon khondkar <ko...@hotmail.co.uk> wrote:
> Hello I have problem with python installation.I downloaded python 3.5 but I 
> cannot use it on my computer.I can not open the idle. I get something like 
> saying "users\local settings\Application 
> data\programs\python\python35-32\pythonw.exe is not valid win32 application. 
> Thanks that will be help if you can solve this.

This sounds suspiciously like you tried to install on Windows XP or
Windows Server 2003, both of which are not supported by Python 3.5.

-- 
Zach
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Hello

2015-09-19 Thread Mark Lawrence

On 19/09/2015 18:31, Dennis Lee Bieber wrote:

On Thu, 17 Sep 2015 16:10:55 +0100, moon khondkar <ko...@hotmail.co.uk>
declaimed the following:


Hello I have problem with python installation.I downloaded python 3.5 but I cannot 
use it on my computer.I can not open the idle. I get something like saying 
"users\local settings\Application data\programs\python\python35-32\pythonw.exe 
is not valid win32 application. Thanks that will be help if you can solve this.


Given that path, you have a very strangely configured Windows system...



All change with 3.5, so that looks about right for a default user 
installation, with "install for all users" going under "Program Files".


--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

--
https://mail.python.org/mailman/listinfo/python-list


RE: Hello

2015-09-19 Thread Watson, Paul
> Hello I have problem with python installation.I downloaded python 3.5 but
> I cannot use it on my computer.I can not open the idle. I get something like 
> saying
> "users\local settings\Application data\programs\python\python35-32\pythonw.exe
> is not valid win32 application. Thanks that will be help if you can solve 
> this.

Did you verify that the md5sum for the file you downloaded is correct?
https://www.python.org/downloads/release/python-350/

*-*-*- PRESBYTERIAN_HEALTHCARE_SERVICES_DISCLAIMER -*-*-*

This message originates from Presbyterian Healthcare Services or one of its 
affiliated organizations.
It contains information, which may be confidential or privileged, and is 
intended only for the
individual or entity named above. It is prohibited for anyone else to disclose, 
copy, distribute
or use the contents of this message. All personal messages express views solely 
of the sender, which are
not to be attributed to Presbyterian Healthcare Services or any of its 
affiliated organizations, and may not
be distributed without this disclaimer. If you received this message in error, 
please notify us immediately
at i...@phs.org. 

If you would like more information about Presbyterian Healthcare Services 
please visit our web site

http://www.phs.org


-- 
https://mail.python.org/mailman/listinfo/python-list


Hello

2015-09-19 Thread moon khondkar
Hello I have problem with python installation.I downloaded python 3.5 but I 
cannot use it on my computer.I can not open the idle. I get something like 
saying "users\local settings\Application 
data\programs\python\python35-32\pythonw.exe is not valid win32 application. 
Thanks that will be help if you can solve this.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Hello

2015-09-19 Thread Random832
Dennis Lee Bieber  writes:
>   While Windows likes to stuff things in directories with spaces in them,
> I find third-party applications (especially those that are created for
> multiple OSes) work better when installed in directories that have no
> spaces...

Hey, don't put this on being created for multiple OSes. Unix and Mac
both supported spaces in filenames, at the OS level, *long* before
Windows did. Programs that break on encountering them are broken
everywhere.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Hello

2015-09-19 Thread Emile van Sebille

On 9/17/2015 8:10 AM, moon khondkar wrote:

Hello I have problem with python installation.I downloaded python 3.5 but I cannot 
use it on my computer.I can not open the idle. I get something like saying 
"users\local settings\Application data\programs\python\python35-32\pythonw.exe 
is not valid win32 application. Thanks that will be help if you can solve this.



you might want to try activestate's version from
http://www.activestate.com/activepython/downloads

3.5 isn't available there yet, but it otherwise has
always been the easiest to install and get a more
complete level of windows compatibility.

emile

--
https://mail.python.org/mailman/listinfo/python-list


[issue25067] Hello

2015-09-10 Thread Petri Lehtinen

Changes by Petri Lehtinen <pe...@digip.org>:


--
files: attachment.zip
nosy: petri.lehtinen
priority: normal
severity: normal
status: open
title: Hello
Added file: http://bugs.python.org/file40433/attachment.zip

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue25067>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



Re: Hello

2015-09-04 Thread Rustom Mody
On Thursday, September 3, 2015 at 10:37:04 AM UTC+5:30, Phuong Phan wrote:
> Hi Python community,

Hi Phuong Phan

> I am new to Python and currently taking one online course of computer science 
> and programming using Python. I really like Python because it is simple and 
> clarity but powerful to me.
> I just joint Python mailing list and i hope to enjoy Python programming 
> discussion with you all.
> Thank you, 
> phuong phan

You're welcome!

You may find the tutor list more useful for you if you are just beginning
https://mail.python.org/mailman/listinfo/tutor
-- 
https://mail.python.org/mailman/listinfo/python-list


Hello

2015-09-02 Thread Phuong Phan
Hi Python community,
I am new to Python and currently taking one online course of computer
science and programming using Python. I really like Python because it is
simple and clarity but powerful to me.
I just joint Python mailing list and i hope to enjoy Python programming
discussion with you all.
Thank you,
phuong phan
-- 
https://mail.python.org/mailman/listinfo/python-list


Hello Group and how to practice?

2015-05-31 Thread Anders Johansen
Hi my name is Anders I am from Denmark, and I am new to programming and python.

Currently, I am doing the codecademy.com python course, but sometime I feel 
that the course advances to fast and I lack repeating (practicing) some of the 
concepts, however I don't feel confident enough to start programming on my own.

Do you guys have some advice to how I can practicing programming and get the 
concept in under the skin?

Thanks! 
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Hello Group and how to practice?

2015-05-31 Thread Cem Karan

On May 31, 2015, at 9:35 AM, Anders Johansen sko...@gmail.com wrote:

 Hi my name is Anders I am from Denmark, and I am new to programming and 
 python.
 
 Currently, I am doing the codecademy.com python course, but sometime I feel 
 that the course advances to fast and I lack repeating (practicing) some of 
 the concepts, however I don't feel confident enough to start programming on 
 my own.
 
 Do you guys have some advice to how I can practicing programming and get the 
 concept in under the skin?

Choose something that you think is small and easy to do, and try to do it.  
When you have trouble, read the docs you find online, and ask us questions; the 
python community is pretty friendly, and if you show us what you've already 
tried to do, someone is likely to try to help you out.

The main thing is to not get discouraged.  One of the hardest things to do is 
figuring out what you CAN do with a computer; some things that look like they 
should be easy, are actually major research questions.  Just keep trying, and 
it will get easier over time.

Good luck!
Cem Karan
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Hello Group and how to practice?

2015-05-31 Thread Anders Johansen
Den søndag den 31. maj 2015 kl. 16.22.10 UTC+2 skrev Cem Karan:
 On May 31, 2015, at 9:35 AM, Anders Johansen sko...@gmail.com wrote:
 
  Hi my name is Anders I am from Denmark, and I am new to programming and 
  python.
  
  Currently, I am doing the codecademy.com python course, but sometime I feel 
  that the course advances to fast and I lack repeating (practicing) some of 
  the concepts, however I don't feel confident enough to start programming on 
  my own.
  
  Do you guys have some advice to how I can practicing programming and get 
  the concept in under the skin?
 
 Choose something that you think is small and easy to do, and try to do it.  
 When you have trouble, read the docs you find online, and ask us questions; 
 the python community is pretty friendly, and if you show us what you've 
 already tried to do, someone is likely to try to help you out.
 
 The main thing is to not get discouraged.  One of the hardest things to do is 
 figuring out what you CAN do with a computer; some things that look like they 
 should be easy, are actually major research questions.  Just keep trying, and 
 it will get easier over time.
 
 Good luck!
 Cem Karan

Thank you Cem Karan for your reply. I will try and follow your advice. I am yet 
to install python on my computer, do you know of any easy to follow 
instructions on how to do so? Where do I start?
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Hello Group and how to practice?

2015-05-31 Thread Cem Karan

On May 31, 2015, at 10:51 AM, Anders Johansen sko...@gmail.com wrote:

 Den søndag den 31. maj 2015 kl. 16.22.10 UTC+2 skrev Cem Karan:
 On May 31, 2015, at 9:35 AM, Anders Johansen sko...@gmail.com wrote:
 
 Hi my name is Anders I am from Denmark, and I am new to programming and 
 python.
 
 Currently, I am doing the codecademy.com python course, but sometime I feel 
 that the course advances to fast and I lack repeating (practicing) some of 
 the concepts, however I don't feel confident enough to start programming on 
 my own.
 
 Do you guys have some advice to how I can practicing programming and get 
 the concept in under the skin?
 
 Choose something that you think is small and easy to do, and try to do it.  
 When you have trouble, read the docs you find online, and ask us questions; 
 the python community is pretty friendly, and if you show us what you've 
 already tried to do, someone is likely to try to help you out.
 
 The main thing is to not get discouraged.  One of the hardest things to do 
 is figuring out what you CAN do with a computer; some things that look like 
 they should be easy, are actually major research questions.  Just keep 
 trying, and it will get easier over time.
 
 Good luck!
 Cem Karan
 
 Thank you Cem Karan for your reply. I will try and follow your advice. I am 
 yet to install python on my computer, do you know of any easy to follow 
 instructions on how to do so? Where do I start?

Python 3 installers are here: 
https://www.python.org/downloads/release/python-343/  Choose the one 
appropriate for your system, and follow the instructions.  If you have trouble, 
write to the list.

Good luck,
Cem Karan
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Hello World in Python

2015-01-24 Thread Terry Reedy

On 1/24/2015 6:53 PM, Christopher J. Pisz wrote:

I am trying to help a buddy out. I am a C++ on Windows guy. This buddy
of mine is learning Python at work on a Mac. I figured I could
contribute with non language specific questions and such.

When learning any new language, I said, the first step would be a Hello
World program. Let's see if we can get that to work.

So my buddy creates opens the IDE they gave at the workplace, creates a
new project, adds a demo.py file, writes one line : print Hello World,
hits Run in the IDE and indeed the display is shown at the bottom when
it executes.

I say the next step would be to get that to run on the command line. So
(keep in mind I know nothing about macs) my buddy opens a zsh? window,
cd to the directory, and I say the command i most likely: python demo.py

It looks like it executes but there is no output to the command line
window.


It should.  In a Windows console, using 3.4:
C:\Programs\Python34type tem.py  # cat on Mac?
print('Hello World!')

C:\Programs\Python34python tem.py
Hello World!

 Can anyone explain why there is no output?

Without a copy of the file and command, as above, no.

 Can anyone recommend a good walkthrough of getting set up and doing 
basics?


Since you used 2.x  print syntax: https://docs.python.org/2.7/

Python Setup and Usage
how to use Python on different platforms

Tutorial
start here

 I'll probably end up learning python myself, just to help out.

You might possibly enjoy Python as a complement to C++.  Some people 
prototype in Python and rewrite time critical functions in C++.  One can 
access .dlls either directly (via the ctypes module) and write a wrapper 
file in C or C++.  I believe Python has also been used to write tests 
for C++ functions (I know this is true for Python and Java, via Jython).


--
Terry Jan Reedy

--
https://mail.python.org/mailman/listinfo/python-list


Re: Hello World in Python

2015-01-24 Thread Rustom Mody
On Sunday, January 25, 2015 at 5:36:02 AM UTC+5:30, Chris Angelico wrote:

 One thing that I really like doing with my Python students (full
 disclosure: I'm a mentor with www.thinkful.com and am thus at times
 paid to help people learn Python) is some form of screen-sharing, so I
 can watch him/her trying things. There are a number of zero-dollar
 ways to do this, and it helps enormously. Flip on screen-share, ask
 him to run the script, and see where that leads.

Would be interested in how you manage that!
Am teaching a class where everyone has a laptop.
Having them setup with a bare modicum of uniformity is turning out some 
challenge.
Some windows, some linux(es), even one blessed mac!
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Hello World in Python

2015-01-24 Thread Chris Angelico
On Sun, Jan 25, 2015 at 6:14 PM, Rustom Mody rustompm...@gmail.com wrote:
 On Sunday, January 25, 2015 at 5:36:02 AM UTC+5:30, Chris Angelico wrote:

 One thing that I really like doing with my Python students (full
 disclosure: I'm a mentor with www.thinkful.com and am thus at times
 paid to help people learn Python) is some form of screen-sharing, so I
 can watch him/her trying things. There are a number of zero-dollar
 ways to do this, and it helps enormously. Flip on screen-share, ask
 him to run the script, and see where that leads.

 Would be interested in how you manage that!
 Am teaching a class where everyone has a laptop.
 Having them setup with a bare modicum of uniformity is turning out some 
 challenge.
 Some windows, some linux(es), even one blessed mac!

Generally we use Google Hangouts - video chat, with options for
screen-share (replacing the camera; let's face it, when you're
discussing code, staring at talking heads isn't all that useful) and a
few other neat features. But if uniformity is an issue, you might want
to look into some kind of virtual Linux box like http://nitrous.io/ -
that way, everyone's using the same system, and nobody has to worry
about the stupid hassles of trying to support three different OSes.
Though Nitrous mightn't be as important for you as it is for the
Thinkful course; as part of the course, we teach PostgreSQL + Python +
PsycoPG2 + SQLAlchemy, and if you're on a Mac and your student is on
Windows, you'll *really* appreciate not having to figure out how to
install that lot on a foreign platform! (In theory, the situation
should be getting better. Installing stuff from PyPI under Windows has
long been a massive nuisance, but it's starting to become a bit
easier. But it's still a massive pain for someone who doesn't know
Windows to try to walk a Windows person through the setup.)

And hey. If you want a pay-for Python programming course, do check 'em
out - www.thinkful.com. You get regular one-on-one mentorship, a
highly responsive team of staff, and all sorts of random fun. There,
I'm done advertising now. :)

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Hello World in Python

2015-01-24 Thread Christopher J. Pisz

On 1/24/2015 7:12 PM, Terry Reedy wrote:

On 1/24/2015 6:53 PM, Christopher J. Pisz wrote:

I am trying to help a buddy out. I am a C++ on Windows guy. This buddy
of mine is learning Python at work on a Mac. I figured I could
contribute with non language specific questions and such.

When learning any new language, I said, the first step would be a Hello
World program. Let's see if we can get that to work.

So my buddy creates opens the IDE they gave at the workplace, creates a
new project, adds a demo.py file, writes one line : print Hello World,
hits Run in the IDE and indeed the display is shown at the bottom when
it executes.

I say the next step would be to get that to run on the command line. So
(keep in mind I know nothing about macs) my buddy opens a zsh? window,
cd to the directory, and I say the command i most likely: python demo.py

It looks like it executes but there is no output to the command line
window.


It should.  In a Windows console, using 3.4:
C:\Programs\Python34type tem.py  # cat on Mac?
print('Hello World!')

C:\Programs\Python34python tem.py
Hello World!

  Can anyone explain why there is no output?

Without a copy of the file and command, as above, no.

  Can anyone recommend a good walkthrough of getting set up and doing
basics?

Since you used 2.x  print syntax: https://docs.python.org/2.7/

Python Setup and Usage
how to use Python on different platforms

Tutorial
start here

  I'll probably end up learning python myself, just to help out.

You might possibly enjoy Python as a complement to C++.  Some people
prototype in Python and rewrite time critical functions in C++.  One can
access .dlls either directly (via the ctypes module) and write a wrapper
file in C or C++.  I believe Python has also been used to write tests
for C++ functions (I know this is true for Python and Java, via Jython).



Good docs. I got setup in Windows in 10 minutes.


--
https://mail.python.org/mailman/listinfo/python-list


  1   2   3   4   5   6   >