On 1/3/2017 7:02 PM, Callum Robinson wrote:
> When i check the code it comes up with invalid syntax and my writing line
gets re directed here
>
> def is_same(target, number:
> if target == number:
> result="win"
> elif target > number:
> result="low"
>
On Wednesday, January 4, 2017 at 1:03:18 PM UTC+13, Erik wrote:
> On 03/01/17 23:56, Chris Angelico wrote:
> > On Wed, Jan 4, 2017 at 10:49 AM, wrote:
> >> #think of a number
> >> computer_number = number.randint(1,100)
> >
> > What's wrong is that you aren't showing us the exception you get on
>
On 01/03/2017 04:32 PM, Deborah Swanson wrote:
> The GUI consoles I have are in Pycharm, the IDLE that comes with
> Anaconda, and Spyder. PyCharm and IDLE both ask for internet access when
> I open them, so they're capable of opening links, but whether that means
> their output space is capable of
On 03/01/17 22:47, Chris Angelico wrote:
> On Wed, Jan 4, 2017 at 9:42 AM, Ethan Furman wrote:
>> Aside from calling "except Exception" a "naked except"
>
> If you read the comments, you'll see that he originally had an actual
> bare except clause, but then improved the code somewhat in response t
On Wednesday, January 4, 2017 at 2:16:08 PM UTC+13, Steve D'Aprano wrote:
> On Wed, 4 Jan 2017 12:04 pm, Callum Robinson wrote:
>
> > Traceback (most recent call last):
> > File "D:/Python/random.py", line 6, in
> > computer_number = number.randint(1, 100)
> > NameError: name 'number' is not
Hi Callum,
On 04/01/17 00:30, Callum Robinson wrote:
> I feel like im missing something so blatantly obvious.
That's because you are ;). I don't want to come across as patronising, but I
want you to see it for yourself, so, here's a function definition similar to
yours that doesn't have the sam
On Wednesday, January 4, 2017 at 1:26:26 PM UTC+13, Erik wrote:
> Hi Callum,
>
> On 04/01/17 00:02, Callum Robinson wrote:
> > When i check the code it comes up with invalid syntax and my writing
> line gets re directed here
> >
> > def is_same(target, number:
> > if target == number:
>
Hi,
On 04/01/17 01:12, Deborah Swanson wrote:
> The main reason you might want to catch the StopIteration exception is
> to do something else before your code simply stops running. If all
> you're doing is run a generator til it's out of gas, and that's all you
> want it to do, then there's no nee
On Wed, 4 Jan 2017 11:16 am, Callum Robinson wrote:
> My apologizes but i'm quite new and would need instructions to what
> information you need me to get.
Do you know how to copy and paste from the terminal window?
Somewhere on the screen you see something like:
x = 23 + )
^
On Wednesday, January 4, 2017 at 12:49:28 PM UTC+13, Callum Robinson wrote:
> Im doing a new task from my teacher but i can't seem to find what is wrong
with this code. Can anyone help?
>
> #mynumber.py
> # this game uses a home made function
> import random
>
> #think of a number
> computer_number
On Wednesday, January 4, 2017 at 1:45:22 PM UTC+13, Erik wrote:
> Hi Callum,
>
> On 04/01/17 00:30, Callum Robinson wrote:
> > I feel like im missing something so blatantly obvious.
>
> That's because you are ;). I don't want to come across as patronising,
> but I want you to see it for yourself, s
On 03Jan2017 16:57, Peter Otten <__pete...@web.de> wrote:
>Cameron Simpson wrote:
>> On 03Jan2017 00:14, Dennis Lee Bieber wrote:
>>>On Tue, 3 Jan 2017 11:33:15 +1100, Cameron Simpson
>>>declaimed the following:
I'm using cmd.Cmd to write a little FTP-like command line to interface to
a s
On Wed, 4 Jan 2017 11:22 am, Erik wrote:
> On 03/01/17 22:47, Chris Angelico wrote:
>> On Wed, Jan 4, 2017 at 9:42 AM, Ethan Furman wrote:
>>> Aside from calling "except Exception" a "naked except"
>>
>> If you read the comments, you'll see that he originally had an actual
>> bare except clause,
On Wednesday, 4 January 2017 12:36:10 UTC+11, Sayth Renshaw wrote:
> So can I call the generator twice and receive the same file twice in 2 for
loops?
>
> Once to get the files name and the second to process?
>
> for file in rootobs:
> base = os.path.basename(file.name)
> write_to
On 03Jan2017 12:57, Steve D'Aprano wrote:
>I dislike the Unix-style Vim/Emacs text editors, I prefer a traditional
>GUI-based editor. So my "IDE" is:
>- Firefox, for doing searches and looking up documentation;
>- an GUI programmer's editor, preferably one with a tab-based
> interface, such as ge
Erik wrote, on January 03, 2017 3:53 PM
>
> On 03/01/17 23:05, Deborah Swanson wrote:
> > And yes, we usually used for loops for generators, unless you don't
> > know when the generator will be exhausted. As in this case,
> where the
> > number of files the generator can provide is unknown. Then
>
So can I call the generator twice and receive the same file twice in 2 for
loops?
Once to get the files name and the second to process?
for file in rootobs:
base = os.path.basename(file.name)
write_to = os.path.join("output", os.path.splitext(base)[0] + ".csv")
with open
Chris Angelico wrote, on January 03, 2017 3:35 PM
>
> On Wed, Jan 4, 2017 at 10:05 AM, Deborah Swanson
> wrote:
> > Ok, I learned how to use generators in Python 2.7.8, which may be
> > different from Python 3 for generators. But I learned from MIT's
> > online introduction to python course, and t
On 2017-01-04 01:37, Callum Robinson wrote:
> On Wednesday, January 4, 2017 at 12:49:28 PM UTC+13, Callum Robinson wrote:
>> Im doing a new task from my teacher but i can't seem to find what is wrong
with this code. Can anyone help?
>>
>> #mynumber.py
>> # this game uses a home made function
>> imp
On 04/01/17 01:10, Steve D'Aprano wrote:
> On Wed, 4 Jan 2017 11:22 am, Erik wrote:
>> What he *should* have done is just validated his input strings before
>> presenting the string to int() - i.e., process the input with knowledge
>> that is specific to the problem domain before calling the
>> gen
Sayth Renshaw wrote, on January 03, 2017 5:55 PM
>
> On Wednesday, 4 January 2017 12:36:10 UTC+11, Sayth Renshaw wrote:
> > So can I call the generator twice and receive the same file
> twice in 2
> > for loops?
> >
> > Once to get the files name and the second to process?
> >
> > for file in roo
Untested as i wrote this in notepad at work but, if i first use the generator
to create a set of filenames and then iterate it then call the generator anew
to process file may work?
Good idea or better available?
def get_list_of_names(generator_arg):
name_set = set()
for name in generat
Sayth Renshaw wrote, on January 03, 2017 5:36 PM
>
> So can I call the generator twice and receive the same file
> twice in 2 for loops?
>
> Once to get the files name and the second to process?
>
> for file in rootobs:
> base = os.path.basename(file.name)
> write_to = os.path.join
On Wednesday, January 4, 2017 at 3:05:48 PM UTC+13, MRAB wrote:
> On 2017-01-04 01:37, Callum Robinson wrote:
> > On Wednesday, January 4, 2017 at 12:49:28 PM UTC+13, Callum Robinson wrote:
> >> Im doing a new task from my teacher but i can't seem to find what is wrong
with this code. Can anyone he
On Wednesday 04 January 2017 13:24, Callum Robinson wrote:
> On Wednesday, January 4, 2017 at 3:05:48 PM UTC+13, MRAB wrote:
>> On 2017-01-04 01:37, Callum Robinson wrote:
>> > On Wednesday, January 4, 2017 at 12:49:28 PM UTC+13, Callum Robinson
>> > wrote:
>> >> Im doing a new task from my teache
On 04/01/17 02:24, Callum Robinson wrote:
> On Wednesday, January 4, 2017 at 3:05:48 PM UTC+13, MRAB wrote:
>> What values can 'is_same' return?
>>
>> Which of those values are you checking for in the loop?
>
> I'm sorry but i do not completely understand what you are stating
You need to think abo
On 4 January 2017 at 11:50, Deborah Swanson wrote:
> Erik wrote, on January 03, 2017 3:30 PM
>>
>> When you start a new topic on the list, could you please write a new
>> message rather than replying to an existing message and changing the
>> title/subject?
>>
> Certainly. I've been on many other
On Tue, 3 Jan 2017 18:47:43 -0800 (PST), Callum Robinson
declaimed the following:
>
>hello.
>I have thought of a number between 1 and 100.
>Can you guess it?
>5
>Low
>Sorry , you are too high. Try again.
>
>Does this mean the number i entered is to low but the code is still stating it
is to high
David wrote, on January 03, 2017 6:36 PM
>
> On 4 January 2017 at 11:50, Deborah Swanson
> wrote:
> > Erik wrote, on January 03, 2017 3:30 PM
> >>
> >> When you start a new topic on the list, could you please
> write a new
> >> message rather than replying to an existing message and
> changing the
Erik wrote, on January 03, 2017 5:26 PM
> Hi,
>
> On 04/01/17 01:12, Deborah Swanson wrote:
> > The main reason you might want to catch the StopIteration
> exception is
> > to do something else before your code simply stops running. If all
> > you're doing is run a generator til it's out of gas, an
On 01/03/2017 08:46 PM, Deborah Swanson wrote:
> Actually it is, or at least it doesn't happen in all email readers.
> Mine, for instance, never breaks up threads.
Mine doesn't either, which illustrates the issue. This message, for example
appears under a long thread that started out life as "me
On Wednesday, January 4, 2017 at 3:35:53 PM UTC+13, Erik wrote:
> On 04/01/17 02:24, Callum Robinson wrote:
> > On Wednesday, January 4, 2017 at 3:05:48 PM UTC+13, MRAB wrote:
> >> What values can 'is_same' return?
> >>
> >> Which of those values are you checking for in the loop?
> >
> > I'm sorry
Steve D'Aprano wrote, on January 03, 2017 4:56 PM
> On Wed, 4 Jan 2017 10:32 am, Deborah Swanson wrote:
>
>
> > The GUI consoles I have are in Pycharm, the IDLE that comes with
> > Anaconda, and Spyder. PyCharm and IDLE both ask for internet access
> > when I open them, so they're capable of openi
On 04/01/17 03:25, Steven D'Aprano wrote:
> On Wednesday 04 January 2017 12:25, Callum Robinson wrote:
>
>> Hey man thanks, the sad thing is i have no idea why i put that in. I must be
>> having a terrible day.
>
> Don't worry about it. The difference between a beginner and an expert is
*not*
> tha
On Wed, 04 Jan 2017 16:40:00 +1100, Steven D'Aprano wrote:
> On Wednesday 04 January 2017 15:46, Deborah Swanson wrote:
>
>> Steven D'Aprano wrote, on January 03, 2017 8:04 PM
> [...]
>>> Of course you have to put quotes around them to enter them in
>>> your source code.
>>> We don't expect this t
On 04/01/17 02:47, Callum Robinson wrote:
> On Wednesday, January 4, 2017 at 3:35:53 PM UTC+13, Erik wrote:
> I did it and this is what it states when i run it
>
> hello.
> I have thought of a number between 1 and 100.
> Can you guess it?
> 5
> Low
> Sorry , you are too high. Try again.
>
> Does th
Tim Johnson writes:
> * Antonio Caminero Garcia [170102 20:56]:
>> Guys really thank you for your answers. Basically now I am more
>> emphasizing in learning in depth a tool and get stick to it so I
>> can get a fast workflow. Eventually I will learn Vim and its
>> python developing setup, I kno
On Tue, 3 Jan 2017 16:27:33 -0800 (PST), Callum Robinson
declaimed the following:
>On Wednesday, January 4, 2017 at 1:17:11 PM UTC+13, Chris Angelico wrote:
>> On Wed, Jan 4, 2017 at 11:03 AM, Erik wrote:
>> > I doubt it's getting that far (I can see at least one syntax error in the
>> > code pa
On Wednesday 04 January 2017 15:46, Deborah Swanson wrote:
> Steven D'Aprano wrote, on January 03, 2017 8:04 PM
[...]
>> Of course you have to put quotes around them to enter them in
>> your source code.
>> We don't expect this to work:
>>
>> print(Hello World!)
>>
>>
>> you have to use a stri
On Wednesday 04 January 2017 12:25, Callum Robinson wrote:
> Hey man thanks, the sad thing is i have no idea why i put that in. I must be
> having a terrible day.
Don't worry about it. The difference between a beginner and an expert is *not*
that experts make fewer mistakes, but that experts kno
On Wednesday 04 January 2017 12:10, Cameron Simpson wrote:
> On 03Jan2017 12:57, Steve D'Aprano wrote:
>>I dislike the Unix-style Vim/Emacs text editors, I prefer a traditional
>>GUI-based editor. So my "IDE" is:
>>- Firefox, for doing searches and looking up documentation;
>>- an GUI programmer'
On Wednesday, January 4, 2017 at 5:42:34 AM UTC+5:30, Dietmar Schwertberger
wrote:
> On 02.01.2017 12:38, Antonio Caminero Garcia wrote:
> > The thing with the from-the-scratch full featured IDEs (Eclipse, IntelliJ,
Pycharm) is that they look like a space craft dashboard and that unwarranted
reso
On Tue, Jan 3, 2017 at 10:46 PM, Deborah Swanson
wrote:
>
>
> I didn't try printing them before, but I just did. Got:
>
> >>> print([Example](http://www.example.com)
>
> SyntaxError: invalid syntax (arrow pointing at the colon)
As Steve had said, you need to put everything inside quotes. Also,
On 01/03/2017 04:27 PM, Callum Robinson wrote:
> On Wednesday, January 4, 2017 at 1:17:11 PM UTC+13, Chris Angelico wrote:
>> On Wed, Jan 4, 2017 at 11:03 AM, Erik wrote:
>>> I doubt it's getting that far (I can see at least one syntax error in the
>>> code pasted).
>>
>> True true. In any case, t
On Tue, 3 Jan 2017 20:46:31 -0800, "Deborah Swanson"
declaimed the following:
>
>I didn't try printing them before, but I just did. Got:
>
print([Example](http://www.example.com)
>
>SyntaxError: invalid syntax (arrow pointing at the colon)
>
As I mentioned to someone else earlier..
Michael Torrie wrote, on January 03, 2017 8:05 PM
>
> On 01/03/2017 08:46 PM, Deborah Swanson wrote:
> > Actually it is, or at least it doesn't happen in all email readers.
> > Mine, for instance, never breaks up threads.
>
> Mine doesn't either, which illustrates the issue. This
> message, for exa
On 01/03/2017 08:28 PM, Deborah Swanson wrote:
> I think you're making this too complicated. I meant a console in a GUI
> application.
Ahh. Well, a "console in a GUI application" is whatever you make it[1]. There's
no single "GUI console" hence my confusion and the confusion expressed by the
oth
"Deborah Swanson" writes:
>
> I didn't try printing them before, but I just did. Got:
>
print([Example](http://www.example.com)
>
> SyntaxError: invalid syntax (arrow pointing at the colon)
>
With respect, if you typed that at python then it's probably a good idea to
take a step back and
On Wednesday 04 January 2017 14:04, Deborah Swanson wrote:
> Steve D'Aprano wrote, on January 03, 2017 4:56 PM
[...]
>> Python can't force the console to treat something as a
>> clickable link, if the console has no capacity for clickable
>> links. Nor can Python predict what format the console us
On Tuesday, January 3, 2017 at 4:12:34 PM UTC-8, Dietmar Schwertberger wrote:
> On 02.01.2017 12:38, Antonio Caminero Garcia wrote:
> You did not try Wing IDE? It looks less like a spacecraft. Maybe you
> like it.
> Maybe the difference is that Wing is from Python people while the ones
> you listed
On Wed, Jan 4, 2017 at 5:41 PM, Kev Dwyer wrote:
> Hello List,
>
> I came across some threading code in Some Other place recently and wanted to
> sanity-check my assumptions.
>
> The code (below) creates a number of threads; each thread takes the last
> (index -1) value from a global list of integ
Steve D'Aprano wrote, on January 04, 2017 2:09 AM
>
> On Wed, 4 Jan 2017 08:00 pm, Deborah Swanson wrote:
>
> [speaking of threading emails]
>
> > I suppose. Times change of course, which always suits some and not
> > others. Personally, I think putting messages that have different
> > titles all i
Paul Rubin wrote:
> My first thought is towards the struct module, especially if you want to
> handle a bunch of such integers at the same time. Or maybe the array
> module or some combination.
Or possibly numpy.
--
Greg
--
https://mail.python.org/mailman/listinfo/python-list
Hello everyone ,
I'd like to introduce my Python/PyQt5 powered Bing wallpaper open source
project.
â ï
BingNiceWallpapers
https://github.com/redstoneleo/BingNiceWallpapers
BingNiceWallpapers can get background images from
http://www.bing.com/?mkt=zh-CN and set them as your desktop wallpaper by
2017-01-04 7:39 GMT-03:00 Steve D'Aprano :
> On Wed, 4 Jan 2017 08:32 pm, Deborah Swanson wrote:
>
> Aside: you've actually raised a fascinating question. I wonder whether
> there
> are any programming languages that understand URLs as native data types, so
> that *source code* starting with http:
Steven D'Aprano wrote, on January 03, 2017 8:04 PM
>
> On Wednesday 04 January 2017 14:04, Deborah Swanson wrote:
>
> > Steve D'Aprano wrote, on January 03, 2017 4:56 PM
> [...]
> >> Python can't force the console to treat something as a clickable
> >> link, if the console has no capacity for click
On 2017-01-04 08:44 AM, Rodrigo Bistolfi wrote:
> 2017-01-04 7:39 GMT-03:00 Steve D'Aprano :
>> Aside: you've actually raised a fascinating question. I wonder whether
>> there
>> are any programming languages that understand URLs as native data types, so
>> that *source code* starting with http://
Hello List,
I came across some threading code in Some Other place recently and wanted to
sanity-check my assumptions.
The code (below) creates a number of threads; each thread takes the last (index
-1) value from a global list of integers, increments it by one and appends the
new value to the
Steven D'Aprano wrote, on January 03, 2017 9:40 PM
>
> On Wednesday 04 January 2017 15:46, Deborah Swanson wrote:
>
> > Steven D'Aprano wrote, on January 03, 2017 8:04 PM
> [...]
> >> Of course you have to put quotes around them to enter them in your
> >> source code. We don't expect this to work:
On 04/01/17 02:10, Deborah Swanson wrote:
> Sayth Renshaw wrote, on January 03, 2017 5:36 PM
>>
>> So can I call the generator twice and receive the same file
>> twice in 2 for loops?
>>
>> Once to get the files name and the second to process?
>>
>> for file in rootobs:
>> base = os.path.b
On Fri, Dec 30, 2016, at 09:47, Steve D'Aprano wrote:
> Again, assume both operands are in range for an N-bit signed integer.
> What's
> a good way to efficiently, or at least not too inefficiently, do the
> calculations in Python?
I'd do something like:
bit_mask = (1 << bits) - 1 # 0x sign_b
On Wed, 4 Jan 2017 01:09 pm, Sayth Renshaw wrote:
> Untested as i wrote this in notepad at work but, if i first use the
> generator to create a set of filenames and then iterate it then call the
> generator anew to process file may work?
It "may" work. Or it "may not" work. It is hard to tell bec
> On Jan 4, 2017, at 1:54 AM, Antonio Caminero Garcia
wrote:
>
> On Tuesday, January 3, 2017 at 4:12:34 PM UTC-8, Dietmar Schwertberger wrote:
>> On 02.01.2017 12:38, Antonio Caminero Garcia wrote:
>> You did not try Wing IDE? It looks less like a spacecraft. Maybe you
>> like it.
>> Maybe the di
On Wed, 4 Jan 2017 08:32 pm, Deborah Swanson wrote:
> Thanks, Steven. Yes, of course if you want to print strings you must
> enclose them in quotes. I think you learn that in Week 1 of any
> introductory course on Python.
>
> But we aren't trying to print strings here, the point is to produce
> cl
On Wed, 4 Jan 2017 08:00 pm, Deborah Swanson wrote:
[speaking of threading emails]
> I suppose. Times change of course, which always suits some and not
> others. Personally, I think putting messages that have different titles
> all in one thread is a bad design, but as I've said a couple of times
* Paul Rudin [170103 23:17]:
> Tim Johnson writes:
>
> > * Antonio Caminero Garcia [170102 20:56]:
> >> Guys really thank you for your answers. Basically now I am more
> >> emphasizing in learning in depth a tool and get stick to it so I
> >> can get a fast workflow. Eventually I will learn Vim
On Wed, 4 Jan 2017 03:46 pm, Deborah Swanson wrote:
> As I've mentioned in other posts on this thread, I'm now thinking that I
> need to write a class to do this, and find out how Firefox and url aware
> terminals in Linux do it. There must be a way.
A GUI application can interpret text any way
On 01/03/2017 10:00 PM, Gregory Ewing wrote:
> Paul Rubin wrote:
>> My first thought is towards the struct module, especially if you want to
>> handle a bunch of such integers at the same time. Or maybe the array
>> module or some combination.
>
> Or possibly numpy.
>
Agreed. If you had to do a
On Tue, 03 Jan 2017 11:46:16 -0800, Deborah Swanson wrote:
> Does python have an equivalent function? Probably the most common use
> for it would be output to the console, similar to a print statement, but
> clickable.
Write it as HTML code save to temp file and call the browser which loads the
Steve D'Aprano wrote, on January 04, 2017 2:20 AM
>
> On Wed, 4 Jan 2017 03:46 pm, Deborah Swanson wrote:
>
> > As I've mentioned in other posts on this thread, I'm now
> thinking that
> > I need to write a class to do this, and find out how
> Firefox and url
> > aware terminals in Linux do it. The
For completeness I was close this is the working code.
def get_list_of_names(generator_arg):
name_set = set()
for name in generator_arg:
base = os.path.basename(name.name)
filename = os.path.splitext(base)[0]
name_set.add(filename)
return name_set
def data_att
Steve D'Aprano wrote, on January 04, 2017 2:39 AM
>
> On Wed, 4 Jan 2017 08:32 pm, Deborah Swanson wrote:
>
> > Thanks, Steven. Yes, of course if you want to print strings
> you must
> > enclose them in quotes. I think you learn that in Week 1 of any
> > introductory course on Python.
> >
> > But w
D'Arcy Cain wrote, on Wednesday, January 04, 2017 5:03 AM
>
> Deborah - please trim your quoted text.
Yes, I will. Some lists want to have it all to review in one message, some want
it trimmed to just the lines you are responding to. I was just waiting to see
what this list wants.
> On 2017-01-
On Wed, Jan 4, 2017 at 10:43 PM, Deborah Swanson
wrote:
> I'm quite well aware by now that there is no one-sentence answer to my
> original question, if there's any coherent answer at all. Them's the
> breaks. Live with it or live without it, it doesn't care.
Yeah, there's no simple answer; howev
On 1/3/2017 10:15 PM, Dennis Lee Bieber wrote:
> And that statement tells us you are trying to run from within some
> IDE/editor which is trapping Python exceptions and producing a dialog
> box for them.
IDLE does this when one runs code from the editor, because it
cannot/should not inject error
Deborah - please trim your quoted text.
On 2017-01-04 04:32 AM, Deborah Swanson wrote:
> Thanks, Steven. Yes, of course if you want to print strings you must
> enclose them in quotes. I think you learn that in Week 1 of any
> introductory course on Python.
Closer to minute one. When I investigat
Chris Angelico wrote, on January 04, 2017 4:16 AM
>
> On Wed, Jan 4, 2017 at 10:43 PM, Deborah Swanson
> wrote:
> > I'm quite well aware by now that there is no one-sentence
> answer to my
> > original question, if there's any coherent answer at all.
> Them's the
> > breaks. Live with it or live w
On 2017-01-03, Deborah Swanson wrote:
> Grant Edwards wrote, on January 03, 2017 3:13 PM
>>
>> On 2017-01-03, Deborah Swanson wrote:
>>
>> > I'm sorry, I should have said a GUI console because I
>> wouldn't expect
>> > a text-based console to produce clickable links.
>>
>> What's a "GUI console"?
On 2017-01-04, Michael Torrie wrote:
> On my Linux machine, the terminal emulators I've used all make a regular
> url printed out into a clickable link (or at least a right-clickable
> link). This is just something they try to do with all things that look
> like urls. Sometimes it's helpful, of
On 1/4/2017 4:32 AM, Deborah Swanson wrote:
> My original question was whether python had anything to provide this
> functionality, and the answer appears to be a resounding NO!!!
I would say 'Yes, but with user effort'.
To have a string interpreted as a clickable link, you send the string to
s
On Thu, Jan 5, 2017 at 9:58 AM, Deborah Swanson
wrote:
> Chris Angelico wrote, on January 04, 2017 4:16 AM
>> This uses the 'webbrowser' module, which knows about a number
>> of different ways to open a browser, and will attempt them
>> all. So if you can figure out the UI part of things, actually
Hi everyone,
I ran into a case that I need to create a work process of an application
(Jython so has to call using java.exe) which will collect the data based on
what main process indicates.
(1) I tried multiprocessing package, no luck. Java.exe can't be called from
Process class?
(2) I tried
On Montag, 2. Januar 2017 03:38:53 Antonio Caminero Garcia wrote:
> Hello, I am having a hard time deciding what IDE or IDE-like code editor
> should I use. This can be overwhelming.
>
> So far, I have used Vim, Sublime, Atom, Eclipse with PyDev, Pycharm,
> IntelliJ with Python plugin.
Well, since
On 04.01.2017 15:41, William Ray Wing wrote:
> I use Wing, and I think you will like it. It *is* pythonic, and for what it
is worth, offers remote debugging as one of its more recently added features.
Obviously, you had no other choice than using Wing ;-)
The remote debugging has been around for
This thread does lead to the question: Is the Url type in python less
first-class than it could be?
In scheme I could point to something like this
https://docs.racket-lang.org/net/url.html
Is there something equivalent in python?
--
https://mail.python.org/mailman/listinfo/python-list
> On Jan 4, 2017, at 3:44 PM, Dietmar Schwertberger
wrote:
>
> On 04.01.2017 15:41, William Ray Wing wrote:
>> I use Wing, and I think you will like it. It *is* pythonic, and for what it
is worth, offers remote debugging as one of its more recently added features.
> Obviously, you had no other c
On 04.01.2017 07:54, Antonio Caminero Garcia wrote:
> Unfortunately most of the time I am still using print and input functions. I
know that sucks, I did not use the pdb module, I guess that IDE debuggers
leverage such module.
pdb is actually quite useful. On my Windows PCs I can invoke python on
Chris Angelico wrote, on January 04, 2017 4:16 AM
>
> Yeah, there's no simple answer; however, you'll find that
> Python on many platforms is entirely capable of popping a URL
> up in the user's default browser. Check this out:
>
> >>> import antigravity
I downloaded the code from the Package Inde
On 01/04/2017 03:58 PM, Deborah Swanson wrote:
> Thank you, thank you! Finally, at least one person on this list knows
> about something (anything) in the python world that is internet aware.
> It's also occurred to me that Beautifulsoup downloads data from a url,
> so that code must have access to
On Thursday 05 January 2017 10:21, Terry Reedy wrote:
> On 1/3/2017 10:15 PM, Dennis Lee Bieber wrote:
>
>> And that statement tells us you are trying to run from within some
>> IDE/editor which is trapping Python exceptions and producing a dialog
>> box for them.
>
> IDLE does this when one runs
Good morning,
Thanks to all for feedback and advice.
Because I am a beginner I will read more about versions of Python recommended
by you.
On the other side I am interested to know if exist some sites which have
develop platform where can be use for free Python from browsers, without have
it i
Hello,
I have a MySQL database that is not managed (yet) and I would like to get an
output or diff against my new model file. I'm using flask-sqlalchemy.
Are there any modules that would help me discover the differences so that I can
script a migration to begin using flask-migrate?
Thanks!
--
On Wed, 4 Jan 2017 14:58:42 -0800, "Deborah Swanson"
declaimed the following:
>Thank you, thank you! Finally, at least one person on this list knows
>about something (anything) in the python world that is internet aware.
>It's also occurred to me that Beautifulsoup downloads data from a url,
>so
On Thursday, January 5, 2017 at 12:32:19 PM UTC-8, fpp wrote:
> > On Thu, Jan 5, 2017 at 12:12 PM, Chris Clark
> > wrote:
> >> I want an IDE that I can use at work and home, linux and dare I say
> >> windows.
> >> Sublime, had to remove it from my work PC as it is not licensed.
> >> Atom, loved i
On 2017-01-04 05:58 PM, Deborah Swanson wrote:
>> the user to go and authenticate, you can simply
>> webbrowser.open("http://.../";) and it'll DTRT.
>
> Thank you, thank you! Finally, at least one person on this list knows
> about something (anything) in the python world that is internet aware.
Hello Mr.Eryk,
Thanks for the detailed explanation. After I added attribute support to my
extension class for stdio, the problem was resolved.
Regards,
Krishnan
On Fri, Jan 6, 2017 at 9:24 AM, eryk sun wrote:
> On Fri, Jan 6, 2017 at 1:06 AM, H Krishnan wrote:
> > I tried replacing sys.displ
On 2017-01-04 07:07 PM, Deborah Swanson wrote:
> D'Arcy Cain wrote, on Wednesday, January 04, 2017 5:03 AM
>> In all the messages in this thread I still don't understand what this
>> "teensy advantage" is supposed to be. Do you want to be able
>> to do this:
>>
>>make_web_link(http://...)
>>
>
Afternoon
Is there a good library or way I could use to check that the author of the XML
doc I am using doesn't make small changes to structure over releases?
Not fully over this with XML but thought that XSD may be what I need, if I
search "python XSD" I get a main result for PyXB and generate
Is there something going on with the mailinglist? Because I have receive
a lot of double messages. One copy is fairly normal and is part of the
discussion thread, the other is completely seperated. -- Antoon Pardon.
--
https://mail.python.org/mailman/listinfo/python-list
On Thu, Jan 5, 2017 at 2:24 PM, D'Arcy Cain wrote:
> Think of it this way. You drop a ring down a drain. You can ask two
> questions, "How do I remove a drain trap?" or "How do I recover a ring that
> I dropped down the drain?" If you ask the first question you will get lots
> of advice on tool
1 - 100 of 167 matches
Mail list logo