On 2/12/2015 11:07 PM, Rustom Mody wrote:
On Thursday, February 12, 2015 at 11:59:55 PM UTC+5:30, John Ladasky wrote:
On Thursday, February 12, 2015 at 3:08:10 AM UTC-8, Fabien wrote:
... what a coincidence then that a huge majority of scientists
(including me) dont care AT ALL about unicode.
"ast" wrote in message
news:54dc9bee$0$3046$426a3...@news.free.fr...
> Hello
>
> Here is how text appears in IDLE window
> http://www.cjoint.com/data/0BmnEIcxVAx.htm
>
> Yesterday evening I had not this trouble. It appears
> this morning. I restarted my computer with no effect.
>
> A windows Vis
On Thursday, February 12, 2015 at 11:59:55 PM UTC+5:30, John Ladasky wrote:
> On Thursday, February 12, 2015 at 3:08:10 AM UTC-8, Fabien wrote:
>
> > ... what a coincidence then that a huge majority of scientists
> > (including me) dont care AT ALL about unicode. But since scientists are
> > not
John Ladasky wrote:
> And I use Unicode in my Python. In implementing some mathematical models
> which have variables like delta, gamma, and theta, I decided that I didn't
> like the line lengths I was getting with such variable names. I'm using
> δ, γ, and θ instead. It works fine, at least on
Skip Montanaro wrote:
> I believe this sort of lexicographical comparison wart is one of the
> reasons the Python-dev gang decided that there would be no micro versions
> > 9. There are too many similar assumptions about version numbers out in
> the real world.
Which is why there will be no Windo
Marko Rauhamaa wrote:
> Chris Angelico :
>
>> On Fri, Feb 13, 2015 at 1:39 AM, Marko Rauhamaa wrote:
>>> I write both Py2 and Py3 code, but I keep the two worlds hermetically
>>> separated from each other.
>>
>> [...]
>>
>> You don't need to be afraid of the gap.
>
> No problem. When I write Py
On 2015-02-13 12:20, Ben Finney wrote:
> > Not sure why this is "ridiculous".
>
> Right, versions are effectively a special type [0], specifically
> *because* they intentionally don't compare as scalar numbers or
> strings. It's not “ridiculous” to need custom comparisons when
> that's the case.
>
Gisle Vanem writes:
> That's exactly what they do now in IPython/utils/version.py with
> the comment:
> Utilities for version comparison
> It is a bit ridiculous that we need these.
>
> Not sure why this is "ridiculous".
Right, versions are effectively a special type [0], specifically
*becau
On 2015-02-13 11:19, Chris Angelico wrote:
> On Fri, Feb 13, 2015 at 11:07 AM, wrote:
> > Here is an example of my problem. I have for the moment a CSV
> > file named "Stars" saved on my windows desktop containing around
> > 50.000 different links that directly starts downloading a xls
> > file w
On Fri, Feb 13, 2015 at 11:07 AM, wrote:
> Here is an example of my problem. I have for the moment a CSV file named
> "Stars" saved on my windows desktop containing around 50.000 different links
> that directly starts downloading a xls file when pressed. Each row contains
> one of these links.
I was wondering if somebody here could help me out creating a script? I have
never done something like this before so I have no idea what I'm doing. But I
have been reading about it for a couple days now and I'm still not
understanding it so I appreciating all help I can get. I'm even willing to
I was wondering if somebody here could help me out creating a script? I have
never done something like this before so I have no idea what I'm doing. But I
have been reading about it for a couple days now and I'm still not
understanding it so I appreciating all help I can get. I'm even willing to
On Thu, Feb 12, 2015 at 1:23 PM, Hrvoje Nikšić wrote:
>> > from decimal import Decimal as D
>> > x = D(1)/D(999)
>> > '{:.15g}'.format(x)
>> >>
>> >> '0.00100100100100100'
> [...]
>> > I'd say it's a bug. P is 15, you've got 17 digits after the decimal place
>> > and two of those are
On 2/12/2015 7:26 AM, ast wrote:
Hello
Here is how text appears in IDLE window
http://www.cjoint.com/data/0BmnEIcxVAx.htm
Do you get anything similar when running the console interpreter?
Yesterday evening I had not this trouble. It appears
this morning. I restarted my computer with no effec
On 2/12/2015 11:16 AM, Ian Kelly wrote:
Things break down again when we get to Python XIX.
'XVIII' < 'XIX'
False
Looks to me like you better check if your PEP313 patch is installed
properly. :)
Emile
--
https://mail.python.org/mailman/listinfo/python-list
On 2/12/2015 11:51 AM, Tal Einat wrote:
Hi everyone,
I'd like to introduce a Python library I've been working on for a
while: fuzzysearch. I would love to get as much feedback as possible:
comments, suggestions, bugs and more are all very welcome!
I adapt difflib's SequenceMatcher for my fuzzy
> > from decimal import Decimal as D
> > x = D(1)/D(999)
> > '{:.15g}'.format(x)
> >>
> >> '0.00100100100100100'
[...]
> > I'd say it's a bug. P is 15, you've got 17 digits after the decimal place
> > and two of those are insignificant trailing zeros.
>
> Actually it's the float versio
Hi everyone,
I'd like to introduce a Python library I've been working on for a
while: fuzzysearch. I would love to get as much feedback as possible:
comments, suggestions, bugs and more are all very welcome!
fuzzysearch is useful for searching when you'd like to find
nearly-exact matches. What sh
Paul Rubin :
> Marko Rauhamaa writes:
>> I have successfully done event-driven I/O using select.epoll() and
>> socket.socket().
>
> Sure, but then you end up writing a lot of low-level machinery that
> packages like twisted take care of for you.
Certainly. It would be nice if the stdlib protocol
On 2015-02-12 12:16, Ian Kelly wrote:
> >> It still becomes an issue when we get to Python 10.
> >>
> > Just call it Python X! :-)
>
> Things break down again when we get to Python XIX.
>
> >>> 'XVIII' < 'XIX'
> False
You know what this sub-thread gives me? The icks.
https://www.youtube.com/wat
On 12/02/2015 19:16, Ian Kelly wrote:
On Thu, Feb 12, 2015 at 11:58 AM, MRAB wrote:
On 2015-02-12 17:35, Ian Kelly wrote:
On Thu, Feb 12, 2015 at 10:19 AM, Skip Montanaro
wrote:
I believe this sort of lexicographical comparison wart is one of the
reasons
the Python-dev gang decided that th
On Thu, Feb 12, 2015 at 11:58 AM, MRAB wrote:
> On 2015-02-12 17:35, Ian Kelly wrote:
>>
>> On Thu, Feb 12, 2015 at 10:19 AM, Skip Montanaro
>> wrote:
>>>
>>> I believe this sort of lexicographical comparison wart is one of the
>>> reasons
>>> the Python-dev gang decided that there would be no mi
Marko Rauhamaa writes:
> I have successfully done event-driven I/O using select.epoll() and
> socket.socket().
Sure, but then you end up writing a lot of low-level machinery that
packages like twisted take care of for you.
--
https://mail.python.org/mailman/listinfo/python-list
Paul Rubin :
> Event-driven i/o in Python 2.x was generally done with callback-based
> packages like Twisted Matrix (www.twistedmatrix.com). In Python 3
> there are some nicer mechanisms (coroutines) so the new asyncio
> package may be easier to use than Twisted. I haven't tried it yet.
I have su
On 2015-02-12 17:35, Ian Kelly wrote:
On Thu, Feb 12, 2015 at 10:19 AM, Skip Montanaro
wrote:
I believe this sort of lexicographical comparison wart is one of the reasons
the Python-dev gang decided that there would be no micro versions > 9. There
are too many similar assumptions about version
On 02/12/2015 12:46 AM, Steven D'Aprano wrote:
>
> "Nature", one of the world's premier science journals, has published an
> excellent article about programming in Python:
>
> http://www.nature.com/news/programming-pick-up-python-1.16833
That is a very nice article, thanks for sharing!
--
~Etha
On Fri, Feb 13, 2015 at 5:29 AM, John Ladasky
wrote:
> It works fine, at least on my Ubuntu Linux system (and what scientist doesn't
> use Linux?). I also have special mathematical symbols, superscripted
> numbers, etc. in my program comments. It's easier to read 2x³ + 3x² than
> 2*x**3 + 3*x
On Thursday, February 12, 2015 at 3:08:10 AM UTC-8, Fabien wrote:
> ... what a coincidence then that a huge majority of scientists
> (including me) dont care AT ALL about unicode. But since scientists are
> not paid to rewrite old code, the scientific world is still stuck to
> python 2.
I'm a
Ari King writes:
> I'd like to query two (or more) RESTful APIs concurrently. What is the
> pythonic way of doing so? Is it better to use built in functions or
> are third-party packages? Thanks.
The two basic approaches are event-based asynchronous i/o (there are
various packages for that) and t
On Thu, Feb 12, 2015 at 10:37 AM, Ari King wrote:
> Hi,
>
> I'd like to query two (or more) RESTful APIs concurrently. What is the
> pythonic way of doing so? Is it better to use built in functions or are
> third-party packages? Thanks.
Have a look at asyncio (new in Python 3.4, available for 3
On 2015-02-12 18:37, Gisle Vanem wrote:
> Tim Chase wrote:> So the test should actually be something like
>
> >if LooseVersion(QtCore.PYQT_VERSION_STR) <
> > LooseVersion("4.10"): balk()
>
> That's exactly what they do now in IPython/utils/version.py with
> the comment:
>Utilities for ver
Tim Chase wrote:> So the test should actually be something like
if LooseVersion(QtCore.PYQT_VERSION_STR) < LooseVersion("4.10"):
balk()
That's exactly what they do now in IPython/utils/version.py with
the comment:
Utilities for version comparison
It is a bit ridiculous that we need
On Thu, Feb 12, 2015 at 10:19 AM, Skip Montanaro
wrote:
> I believe this sort of lexicographical comparison wart is one of the reasons
> the Python-dev gang decided that there would be no micro versions > 9. There
> are too many similar assumptions about version numbers out in the real
> world.
I
On Fri, Feb 13, 2015 at 4:19 AM, Skip Montanaro
wrote:
> I believe this sort of lexicographical comparison wart is one of the reasons
> the Python-dev gang decided that there would be no micro versions > 9. There
> are too many similar assumptions about version numbers out in the real
> world.
I
I believe this sort of lexicographical comparison wart is one of the
reasons the Python-dev gang decided that there would be no micro versions >
9. There are too many similar assumptions about version numbers out in the
real world.
Skip
--
https://mail.python.org/mailman/listinfo/python-list
On 2015-02-12 17:45, Gisle Vanem wrote:
> I tried using Interactive Python with a PyQt4 console:
>"IPython.exe qtconsole"
>
> But got a
>"ImportError: IPython requires PyQT4 >= 4.7, found 4.10.4"
>
> Looking at Ipython's check (in
> site-packages\IPython\external\qt.py): if QtCore.PYQT_VE
On Fri, Feb 13, 2015 at 3:56 AM, Marko Rauhamaa wrote:
> $ python3
> Python 3.4.1 (default, Nov 3 2014, 14:38:10)
> [GCC 4.9.1 20140930 (Red Hat 4.9.1-11)] on linux
> Type "help", "copyright", "credits" or "license" for more information.
import sys
sys.path = [ '/usr/lib64/python2.7' ]
Chris Angelico :
> On Fri, Feb 13, 2015 at 1:39 AM, Marko Rauhamaa wrote:
>> I write both Py2 and Py3 code, but I keep the two worlds hermetically
>> separated from each other.
>
> [...]
>
> You don't need to be afraid of the gap.
No problem. When I write Py3, I write Py3. When I write Py2, I wr
On Fri, Feb 13, 2015 at 3:45 AM, Gisle Vanem wrote:
> Looking at Ipython's check (in site-packages\IPython\external\qt.py):
> if QtCore.PYQT_VERSION_STR < '4.7':
> raise ImportError("IPython requires PyQt4 >= 4.7, found
> %s"%QtCore.PYQT_VERSION_STR)
>
> So even if '4.10' < '4.7', my '4.10
On Thu, Feb 12, 2015 at 9:45 AM, Gisle Vanem wrote:
> I tried using Interactive Python with a PyQt4 console:
> "IPython.exe qtconsole"
>
> But got a
> "ImportError: IPython requires PyQT4 >= 4.7, found 4.10.4"
>
> Looking at Ipython's check (in site-packages\IPython\external\qt.py):
> if QtC
I tried using Interactive Python with a PyQt4 console:
"IPython.exe qtconsole"
But got a
"ImportError: IPython requires PyQT4 >= 4.7, found 4.10.4"
Looking at Ipython's check (in site-packages\IPython\external\qt.py):
if QtCore.PYQT_VERSION_STR < '4.7':
raise ImportError("IPython req
Hi,
I'd like to query two (or more) RESTful APIs concurrently. What is the pythonic
way of doing so? Is it better to use built in functions or are third-party
packages? Thanks.
Best,
Ari
--
https://mail.python.org/mailman/listinfo/python-list
On Wed, Feb 11, 2015 at 8:56 PM, Chris Angelico wrote:
> On Thu, Feb 12, 2015 at 1:57 PM, Ian Kelly wrote:
>> The reason I don't like this replacing def isn't because the name is
>> necessarily lost. It's because the lack of the well-defined def
>> statement encourages more complex usages like
>>
On Fri, Feb 13, 2015 at 1:39 AM, Marko Rauhamaa wrote:
> Fabien :
>
>> But this was exactly my point! Today in 2015 it's incredibly easy to
>> write py2/py3 code for a scientist. The whole SciPy track has done the
>> transition. Not an issue anymore either, for me at least (python
>> youngster ;-)
Thank you Peter, I was doing wrong at get_key function...
Thnak you so much!
--
https://mail.python.org/mailman/listinfo/python-list
Fabien :
> But this was exactly my point! Today in 2015 it's incredibly easy to
> write py2/py3 code for a scientist. The whole SciPy track has done the
> transition. Not an issue anymore either, for me at least (python
> youngster ;-)
I write both Py2 and Py3 code, but I keep the two worlds herm
charles.sart...@gmail.com wrote:
> Hello there!
>
> I`m trying to group by a list of Row() objects in 12days interval and
> sum(). values. Here is an example of the list
>
> [Row(time=datetime.datetime(2013, 1, 1, 0, 0), sum=4676557380615),
> [Row(time=datetime.datetime(2013, 1, 2, 0, 0), sum=65
On Thu, 12 Feb 2015 04:34:03 -0800, charles.sartori wrote:
> Hello there!
>
> I`m trying to group by a list of Row() objects in 12days interval and
> sum(). values. Here is an example of the list
>
> [Row(time=datetime.datetime(2013, 1, 1, 0, 0), sum=4676557380615),
> Row(time=datetime.datetime(
On 2015-02-12 12:34, charles.sart...@gmail.com wrote:
Hello there!
I`m trying to group by a list of Row() objects in 12days interval and sum().
values. Here is an example of the list
[Row(time=datetime.datetime(2013, 1, 1, 0, 0), sum=4676557380615),
Row(time=datetime.datetime(2013, 1, 2, 0, 0
Hi Python Users,
Good day!
I am currently using ENVI for my image processing/remote sensing work, but
would love to divert into open source python programming for remote
sensing. Can you give me some good sites where I can see practical examples
of how python is used for remote sensing specially
Hello there!
I`m trying to group by a list of Row() objects in 12days interval and sum().
values. Here is an example of the list
[Row(time=datetime.datetime(2013, 1, 1, 0, 0), sum=4676557380615),
Row(time=datetime.datetime(2013, 1, 2, 0, 0), sum=6549630855895),
Row(time=datetime.datetime(2013,
Hello
Here is how text appears in IDLE window
http://www.cjoint.com/data/0BmnEIcxVAx.htm
Yesterday evening I had not this trouble. It appears
this morning. I restarted my computer with no effect.
A windows Vista update has been done this morning,
with about 10 fixes. I suspect something gone w
On 12.02.2015 12:25, Marko Rauhamaa wrote:
Fabien:
>... what a coincidence then that a huge majority of scientists
>(including me) dont care AT ALL about unicode.
You shouldn't, any more than you care about ASCII or 2's-complement
encoding. Things should just work.
And they do! Since almost
Fabien :
> ... what a coincidence then that a huge majority of scientists
> (including me) dont care AT ALL about unicode.
You shouldn't, any more than you care about ASCII or 2's-complement
encoding. Things should just work.
> But since scientists are not paid to rewrite old code, the scientifi
On 12.02.2015 10:31, wxjmfa...@gmail.com wrote:
[some OT stuffs about unicode]
... what a coincidence then that a huge majority of scientists
(including me) dont care AT ALL about unicode. But since scientists are
not paid to rewrite old code, the scientific world is still stuck to
python 2. I
On 12/02/2015 08:46, Steven D'Aprano wrote:
"Nature", one of the world's premier science journals, has published an
excellent article about programming in Python:
http://www.nature.com/news/programming-pick-up-python-1.16833
Interesting. I'll leave someone more diplomatic than myself to repl
"Nature", one of the world's premier science journals, has published an
excellent article about programming in Python:
http://www.nature.com/news/programming-pick-up-python-1.16833
--
Steve
--
https://mail.python.org/mailman/listinfo/python-list
Ned, thank you for your insight on this problem. I will take your
advice and do some more digging. You've been very helpful.
Regards,
-
Matt Taylor
OS Community Flag-Bearer
Numenta
On Wed, Feb 11, 2015 at 4:23 PM, Ned Deily wrote:
> In article
> ,
> Matthew Taylor wrote:
>> Does this
58 matches
Mail list logo