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
"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 b
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, fo
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 wor
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 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
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 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
> c
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
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 i
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.
> >
> >
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
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
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 investigated
Tried every python ide going, they either grind to a halt or just look messy.
Best one I ever used and stick with is drpython, years old, probably not
maintained but does everything I want at a blistering speed and just looks
perfect.
On Mon, Jan 2, 2017 at 11:41 AM +, "Antonio Caminero
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:
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:// etc is unde
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.basename(file.name)
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 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 cons
> 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 t
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
* 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 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 lot of cal
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
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
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 fo
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 trie
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, sinc
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
> 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
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 me
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
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
so
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!
--
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 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 run
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.
Lots
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://...)
instead of:
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
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
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
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
On Thu, Jan 5, 2017 at 3:19 PM, Deborah Swanson
wrote:
> I downloaded the code from the Package Index, but there really wasn't
> much in it. This is the entire .py file:
Ehh, wrong file. Try the one in the standard library:
https://github.com/python/cpython/blob/master/Lib/antigravity.py
https:/
On 01/04/2017 09:19 PM, Deborah Swanson wrote:
> Or, take a look at import's code and figure out how it opens a url in a
> browser. I imagine it's the 'webbrowser' module you mention. If it tries
> several methods, just pick one that will work for you.
webbrowser is part of the python standard lib
Chris Angelico wrote, on January 04, 2017 3:49 PM
>
> On Thu, Jan 5, 2017 at 9:58 AM, 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.
>
> We've been all talking a
Chris Angelico wrote, on January 04, 2017 8:27 PM
>
> On Thu, Jan 5, 2017 at 3:19 PM, Deborah Swanson
> wrote:
> > I downloaded the code from the Package Index, but there really
wasn't
> > much in it. This is the entire .py file:
>
> Ehh, wrong file. Try the one in the standard library:
>
htt
On 1/4/2017 9:51 PM, Steven D'Aprano wrote:
On Thursday 05 January 2017 10:21, Terry Reedy wrote:
IDLE does this when one runs code from the editor, because it
cannot/should not inject error messages into the editor buffer...
AND it replaces the ^ with red highlighting of the code pointed to.
Terry Reedy wrote, on January 04, 2017 3:58 PM
>
> 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
On Thursday 05 January 2017 14:22, Rustom Mody wrote:
> 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
Those docs say:
"To access the text of a d
On 1/5/2017 12:11 AM, Deborah Swanson wrote:
Terry Reedy wrote, on January 04, 2017 3:58 PM
To have a string interpreted as a clickable link, you send the string
to
software capable of creating a clickable link, plus the information
'this is a clickable link'*. There are two ways to tag a s
52 matches
Mail list logo