On Sat, Feb 6, 2016 at 2:27 AM, Tim Chase wrote:
> On 2016-02-05 17:57, Bernardo Sulzbach wrote:
>> CSVs is essentially text separated by commas, so you likely do not
>> need any library to write it "Just separating with ','" should work
>> if you
On 02/05/2016 07:43 PM, Joel Goldstick wrote:
print("%d, %2d:%2d, %.1f" % (1,10,24,20.4))
1, 10:24, 20.4
Let us be more careful there. Although CSV has no formal specification
(according to the IETF), *those spaces are not good*.
It is **very unlikely** that they will cause issues, but 1,10
On 02/05/2016 07:26 PM, shaunak.bang...@gmail.com wrote:
from _ssl import RAND_status, RAND_egd, RAND_add
ImportError: cannot import name 'RAND_egd'
I believe I've already seen this issue myself. It has to do with
LibreSSL not having RAND_egd for some reason I can't recall.
This seems
On 02/05/2016 07:09 PM, lucan wrote:
What do you mean? What is "datas"? What do you mean by "correct"?
"datas" I mean the values for example temperature = 20.4 (so they are
floating point)
Index time temp
1 10:24 20.4
2 10:25 20.6
...
I wonder if this is correct "my way" to write a csv file
On 02/05/2016 07:01 PM, Chris Angelico wrote:
On Sat, Feb 6, 2016 at 6:58 AM, wrote:
I am running this python script on R-studio. I have Python 3.5 installed on my
system.
Let's just try a quick smoke test. Run this script:
import sys
print(sys.version)
input("Press Enter to exit...")
Th
On 02/05/2016 05:49 PM, lucan wrote:
Anyway from the moment that datas are scientific value is it correct to
write on a file using str(temp) and separating with ","?
I need a csv file to read it with some data analysis softwares.
What do you mean? What is "datas"? What do you mean by "correct"
On 02/05/2016 03:18 PM, Grant Edwards wrote:
On 2016-02-05, Joel Goldstick wrote:
I have had success with pysnmp (http://pysnmp.sourceforge.net/).
That page 404s for me
Looks like sourceforge is suffering an outage of some kind.
Agree, it does not work for me right now.
--
https://mail.
On 02/05/2016 12:55 PM, Sven R. Kunze wrote:
On 05.02.2016 15:48, Bernardo Sulzbach wrote:
On 02/05/2016 12:42 PM, Sven R. Kunze wrote:
PS: I do competitive programming, I use these modules every couple of
days
when compared to other modules. so didn't give much thought when
posting t
On 02/05/2016 12:42 PM, Sven R. Kunze wrote:
PS: I do competitive programming, I use these modules every couple of
days
when compared to other modules. so didn't give much thought when
posting to
the mailing list. sorry for that.
Competitive programming? That sounds interesting. :)
I wonder
I see. I've bad experiences with Thunderbird in the past, but I will
try a desktop client again.
You **can** provide input to Google, they even say the love it. But
I've never seen one company ignore user feedback as much as Google
does.
--
https://mail.python.org/mailman/listinfo/python-list
Mr. Finney, that would be Google itself. I have never bothered setting
up a client such as Mutt and can't even name more than Outlook and
Mutt.
I must say that the way you put it makes sense. A "reply" to the last
message targeting its sender (the person that wrote it) is very
reasonable indeed.
-
For this list, and this list only (I likely could identify the issue
by comparing raw messages, but I won't bother), when I hit 'r' I get
the sender of the latest message. In this case, "ros...@gmail.com". So
I have to start typing "pyt" to change it to the list, double tab to
body, type, then Ctrl
This got a little big. I accidentally did not change the address from
Sven's to the list and emailed him. Seconds later, he replied to the
list quoting my entire message so that I wouldn't have to send it to
the list too (after his reply, which would make it hard to
understand). I thanked him for t
Did Peter's suggestion work?
--
https://mail.python.org/mailman/listinfo/python-list
Thanks for quoting, for some reason my client always replies to the
person and not the list (on this list only).
I did what I could. I could show you a lambda function there, but it
doesn't solve anything. If there is a way to avoid a wrapper, I don't
know.
--
https://mail.python.org/mailman/list
I am not entirely sure about what your question is.
Are you talking about the "heapreplace expected 2 arguments, got 1"
you get if you set replace = heapreplace?
--
https://mail.python.org/mailman/listinfo/python-list
I wonder if anyone besides Mr. Ladasky read through the Great Wall of Email.
--
https://mail.python.org/mailman/listinfo/python-list
ld have promoted their baby a
little.
--
Bernardo Sulzbach
--
https://mail.python.org/mailman/listinfo/python-list
quot; that goes on every now and then.
Ultimately, I do agree with you that this is OT, even if I don't mind it.
--
Bernardo Sulzbach
--
https://mail.python.org/mailman/listinfo/python-list
On Fri, Jan 29, 2016 at 8:13 PM, Paul Rubin wrote:
> One would expect it to be written in Go, but it turns out to be C++ and
> Lua :(.
I can only contribute with my sadness and disappointment. =(
--
Bernardo Sulzbach
--
https://mail.python.org/mailman/listinfo/python-list
Or maybe he doesn't know enough about unit testing. If that is the
case, Wikipedia and SO should have you covered. Amazon has a few books
on the subject, too.
--
https://mail.python.org/mailman/listinfo/python-list
Showing any bits of input would help us help you.
Your question also seems too vague. Almost a "how to optimize".
--
https://mail.python.org/mailman/listinfo/python-list
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
ion code like that
>
I agree. If you are going to use spaces after '(' and before ')' at
least be consistent.
--
Bernardo Sulzbach
--
https://mail.python.org/mailman/listinfo/python-list
rd party who was ripped of by
> Microsoft.
>
> Microsoft are the goto example fro the three 'E' approach to development.
>
> Embrace
> Extend
> Extinguish
Did people know this back then or it just surfaced years later? I
suppose that at the beginning MS was more "vul
On Fri, Jan 15, 2016 at 4:46 PM, Alister wrote:
>
> Doublespace disk compression springs to mind
Does not ring a bell, I was not even born for MS-DOS 6.0.
--
Bernardo Sulzbach
--
https://mail.python.org/mailman/listinfo/python-list
In the end, wouldn't contemporary economies benefit from more
"legislative fairness" when it comes to technology-focused businesses?
--
https://mail.python.org/mailman/listinfo/python-list
On Fri, Jan 15, 2016 at 4:29 PM, Robin Koch wrote:
>
> Not necessarily.
> See TeX. :-)
>
GvR does not like even an elegant 3.10 and you are implying that we
are going to converge to something? LOL.
--
Bernardo Sulzbach
--
https://mail.python.org/mailman/listinfo/python-list
t; modular/well-documented/etc.” Then, after looking over the code: “Well, it
> actually doesn’t fit our plans. Sorry.” Six months or so later, essentially
> identical stuff would turn up in a Micro$soft product.
>
More out of curiosity than anything else, do you have a source?
--
Ber
Maybe the tutorial is using Python 2.
Always provide a SSCCE and, when it makes sense, the error message.
--
https://mail.python.org/mailman/listinfo/python-list
>
There would also be
3.<
3.>
3.=
Not to mention that if the number increased a lot, we would eventually
hit "other numbers" and get 3., etc.
--
Bernardo Sulzbach
--
https://mail.python.org/mailman/listinfo/python-list
On Wed, Jan 13, 2016 at 10:10 PM, Steven D'Aprano wrote:
> (...) 4.0 (assuming there is one)
Isn't it just a matter of time? Do you think it is even possible not
to have Python 4 eventually?
--
Bernardo Sulzbach
--
https://mail.python.org/mailman/listinfo/python-list
code will get executed on Python 4 at all!
>
>
> Which is good, because if no code is executed, it can't exhibit
> any bugs.
>
> Everyone should write their code this way, and then Python 4
> will make *all* bugs in *all* programs disappear!
>
And if that is not enough, i
On Tue, Jan 12, 2016 at 11:29 PM, Steven D'Aprano wrote:
> On Wed, 13 Jan 2016 06:12 am, Bernardo Sulzbach wrote:
>
>> I saw it in another answer. next(iter(d)) is still the winner.
>
> Except that doesn't return the *value*, it returns the *key*.
>
There is a typ
ettinger.)
>
>
> That gave me visions of a little animated cartoon of
> Raymond popping up in the corner of the screen, offering
> to write some code for me. The next big IDLE feature...?
>
The Windows paperclip strikes back!
--
Bernardo Sulzbach
--
https://mail.python.org/mailman/listinfo/python-list
I saw it in another answer. next(iter(d)) is still the winner.
This resembles a list just too much, making the coder's intent harder
to understand. This is **very** subjective, of course.
--
https://mail.python.org/mailman/listinfo/python-list
On Tue, Jan 12, 2016 at 3:32 PM, Peter Otten <__pete...@web.de> wrote:
>
> If there is exactly one item you can unpack:
>
>>>> d = {"Wilf's Cafe": 1}
>>>> k, = d.values()
>>>> k
> 1
>
I personally don't like that tr
Intentions aside, next(iter(...)) seems the most pythonic you can get
about this anyway.
Just in case you happen not to need the dictionary anymore,
d.popitem()[1] does the trick.
--
https://mail.python.org/mailman/listinfo/python-list
the installer much bigger?
--
Bernardo Sulzbach
--
https://mail.python.org/mailman/listinfo/python-list
On Mon, Jan 11, 2016 at 9:45 PM, Travis Griggs wrote:
>
>> On Jan 10, 2016, at 9:48 AM, Bernardo Sulzbach
>> wrote:
>>
>> Essentially, classes (as modules) are used mainly for organizational
>> purposes.
>>
>> Although you can solve any problem you
This seems to be an issue with your PyCharm installation, not with
Python itself.
Also, this looks a lot like malware to me.
If you are sure it is not a problem with your (almost certainly
Windows) machine, consider contacting JetBrains.
--
https://mail.python.org/mailman/listinfo/python-list
Cody wrote a good and correct answer.
Everyone is going with "lawyers, lawyers, lawyers...". It is not any
lawyer. Most big companies and consulting firms will have lawyers that
are experienced with open source licenses, some that have even fought
against GPL and whatnot. So look for the correct t
Essentially, classes (as modules) are used mainly for organizational purposes.
Although you can solve any problem you would solve using classes
without classes, solutions to some big problems may be cheaper and
more feasible using classes.
If Python is your everyday scripting tool, you will usual
on 3 does not have urllib2. It is a Python 2 module that has been
split across several modules in Python 3.
However, are you sure you tried it with Python 2.7?
--
Bernardo Sulzbach
--
https://mail.python.org/mailman/listinfo/python-list
solution here if Peter Otten hadn't just
posted it. You can use Wolfram Alpha - or Otten's solution - to see
that your solution fails for inputs equal to and larger than 10^17
(there likely is a lower bound, but I won't do binary search to find
it).
--
Bernardo Sulzbach
--
htt
On Sat, Jan 2, 2016 at 5:12 AM, Chris Angelico wrote:
> On Sat, Jan 2, 2016 at 5:43 PM, Steven D'Aprano wrote:
>> There are times where everybody should do the same thing -- choosing whether
>> to drive on the left or the right side of the road, for example. And there
>> are times where following
46 matches
Mail list logo