[Python-Dev] Re: **= does not follow the data model

2020-08-23 Thread Bernardo Sulzbach
I am also for #2, as I don't think there is any concrete reason for making **= special. On Sun, Aug 23, 2020 at 5:05 PM Brett Cannon wrote: > If you read the language reference for augmented arithmetic assignment, > you will note that it essentially says, "call __i__, and if that > doesn't work

[Python-ideas] Re: Amend PEP-8 to require clear, understandable comments instead of Strunk & White Standard English comments

2020-06-27 Thread Bernardo Sulzbach
On Sat, Jun 27, 2020 at 6:40 AM Stephen J. Turnbull < turnbull.stephen...@u.tsukuba.ac.jp> wrote: > Keara Berlin writes: > > I wouldn't object to > > When writing English, write clearly and understandably. Consider > your audience -- many readers of your comments in Python sources >

[Python-ideas] Re: Amend PEP-8 to require clear, understandable comments instead of Strunk & White Standard English comments

2020-06-26 Thread Bernardo Sulzbach
On Fri, Jun 26, 2020 at 9:43 PM Steven D'Aprano wrote: > I dislike Strunk and White, and don't follow it myself (except by > accident, as it were) but I've worked with neuro-atypical programmers > who found it really useful to have a common standard that they could > follow and reduce the

[Python-ideas] Re: Allow signal suppression

2020-06-25 Thread Bernardo Sulzbach
On Thu, Jun 25, 2020 at 5:09 PM Yonatan Zunger via Python-ideas < python-ideas@python.org> wrote: > Hey everyone, > > I've been developing code which (alas) needs to operate in a runtime > environment which is quite *enthusiastic* about sending SIGTERMs and the > like, and where there are

[Python-ideas] Re: Bringing the print statement back

2020-06-09 Thread Bernardo Sulzbach
If f and g are unary functions, f g 0 is evaluated as f(g(0))? Asking because you didn't mention composition. That is, could we have `print "hello", input "Name:"` instead of `print "hello", input("Name:")`? Overall, I am against this because I like the "explicitness" of using parenthesis for

[Python-ideas] Re: len(path) == len(str(path))

2020-05-24 Thread Bernardo Sulzbach
"So I implemented `PurePath.__len__` as `str(len(path))`." Sure you meant len(str(path)), right? "Serhiy and Remi objected, because it might not be obvious that the length of the path would be the length of string." I find this _really_ unintuitive. If anything, I would expect len(p) to be the

[Python-ideas] Re: type hints : I'd like to suggest allowing unicode → as an alternative to ->

2020-05-22 Thread Bernardo Sulzbach
> > I believe I speak for a significant majority of professional programmers > when I say that eye-candy like this adds no value to the language for me. > It gives me no new capabilities, I don't see it making me more productive, > and we have syntax that works quite well already. > This speaks

[Python-ideas] Re: type hints : I'd like to suggest allowing unicode → as an alternative to ->

2020-05-17 Thread Bernardo Sulzbach
> > I would like to comment that the graphical presentation, at least in > IDEs/where the font can be controlled, can be achieved using fonts: > Precisely. Nicer than the arrow symbol, it would be to type "-" + ">" and get an arrow visually. The same can be done about getting >= as a single

[Python-ideas] Re: IDEA: Allow override of all assignments of a built in type to be a different type

2020-03-05 Thread Bernardo Sulzbach
I've written my share of mathematical and physics software by now and arbitrary-precision rational numbers are hardly ever a good solution to problems you might be having. Paul Moore has mentioned how few keystrokes this syntax would actually save: add to this the fact that there are probably very

[issue39648] Update math.gcd() to accept "n" arguments.

2020-02-17 Thread Bernardo Sulzbach
Bernardo Sulzbach added the comment: I think this might make sense because gcd() could have some optimizations for n > 2, such as sorting the numbers and starting by the smallest elements. However, I don't think gcd() and lcm() with more than two arguments are frequent use ca

[Python-Dev] Re: Comparing UUID objects to strings: why not?

2020-01-23 Thread Bernardo Sulzbach
I think that if the other object is a string, trying to get a UUID from it to compare UUIDs makes more sense than converting the UUID to string and comparing strings. Several different strings are perfectly fine for uniquely identifying the same UUID, so you seem to have gotten this bit backward,

Re: [Python-ideas] AMEND PEP-8 TO DISCOURAGE ALL CAPS

2019-01-04 Thread Bernardo Sulzbach
I disagree. Changing this in the PEP will make an absurd amount of code which is PEP-8 compliant no longer so. Also, the refactoring may not always be trivial as the lowercase names may already be in use. I'd suggest violating PEP-8 instead of trying to change it.

Re: [Python-ideas] Using sha512 instead of md5 on python.org/downloads

2018-12-10 Thread Bernardo Sulzbach
If the discussion gets to which SHA-2 should be used, I would like to point out that SHA-512 is not only twice the width of SHA-256 but also faster to compute (anecdotally) on most 64-bit platforms. ___ Python-ideas mailing list Python-ideas@python.org

Re: [Python-ideas] Using sha512 instead of md5 on python.org/downloads

2018-12-07 Thread Bernardo Sulzbach
Would this change actually help people who need to use FIPS? Other than that this change would only decrease the already very small probability of a corrupted download hashing the same, which isn't a bad thing. If it could make some users' jobs easier, even if it by no means helps guaranteeing

Re: [sqlite] Bug: float granularity breaking unique contraint?

2018-11-01 Thread Bernardo Sulzbach
> > I don't think that explanation holds water. > I don't have proof that I am correct, but you can try to test my hypothesis the following way: Let there be 4 databases: -- f1.db create table t(a real unique); insert into t values(9223372036854775807.0); -- f2.db create table t(a real unique);

Re: [sqlite] Bug: float granularity breaking unique contraint?

2018-10-31 Thread Bernardo Sulzbach
It is not a bug AFAIK. SQLite uses what the documentation calls dynamic typing for its actual values. So if you are inserting integers into a real column, you are going to store integers. However, when you select from it they are presented as reals and mix up (looking as if there were duplicates,

Re: [sqlite] Change name part of a JSON object

2018-03-31 Thread Bernardo Sulzbach
On 03/31/2018 09:58 AM, Robert M. Münch wrote: A hack would be to search & replace “Untitled“: with the new name… but might be dangerous… any better idea? Unless you are certain that the text you are replacing cannot occur anywhere else, this is asking for problems.

Re: [Python-ideas] Should Python have user-defined constants?

2017-11-21 Thread Bernardo Sulzbach
stants, so that if an object were mutable you would still be able to change its internal state. -- Bernardo Sulzbach http://www.mafagafogigante.org/ mafagafogiga...@gmail.com ___ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listi

Re: [Python-ideas] Run length encoding

2017-06-10 Thread Bernardo Sulzbach
On 2017-06-11 00:13, David Mertz wrote: Bernardo Sulzbach posted a much prettier version than mine that is a bit shorter. But his is also somewhat slower (and I believe asymptotically so as the number of equal elements in subsequence goes up). He needs to sum up a bunch of 1's repeatedly

Re: [Python-ideas] Run length encoding

2017-06-10 Thread Bernardo Sulzbach
: [(k, sum(1 for _ in g)) for k, g in groupby(sequence)] However, it is slower than a "dedicated" solution. Additionally, I don't know if what you are proposing is generic enough for the standard library. -- Bernardo Sulzbach http://www.mafagafogigante.org/ mafagafogiga...

Re: [Python-ideas] JavaScript-Style Object Creation in Python (using a constructor function instead of a class to create objects)

2017-05-14 Thread Bernardo Sulzbach
On 05/14/2017 01:53 AM, Brendan Barnwell wrote: On 2017-05-13 21:07, Simon Ramstedt wrote: Here are the pros and cons I could come up with for the proposed method: (+) Simpler and more explicit. I don't really see how that's simpler or more explicit. In one respect it's clearly less

Re: [Python-ideas] Allow random.choice, random.sample to work on iterators

2016-11-30 Thread Bernardo Sulzbach
. -- Bernardo Sulzbach http://www.mafagafogigante.org/ mafagafogiga...@gmail.com ___ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/

Re: [Python-ideas] Allow random.choice, random.sample to work on iterators

2016-11-30 Thread Bernardo Sulzbach
nto a list and use what we currently have. -- Bernardo Sulzbach http://www.mafagafogigante.org/ mafagafogiga...@gmail.com ___ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/

Re: [Python-ideas] Allow random.choice, random.sample to work on iterators

2016-11-30 Thread Bernardo Sulzbach
the idea, as long as it does not add too much overhead to currently existing code. It could be a special code path for reservoir sampling (I assume) for both functions (the first taking only one sample from the stream). -- Bernardo Sulzbach http://www.mafagafogigante.org/ mafagafogiga

Re: [Python-ideas] (no subject)

2016-11-28 Thread Bernardo Sulzbach
suggestions propose some VERY long lines which would certainly wrap at a terminal. Maybe this should be an optional feature. -- Bernardo Sulzbach http://www.mafagafogigante.org/ mafagafogiga...@gmail.com ___ Python-ideas mailing list Python-ideas

Re: [sqlite] Uninitialized memory reads (not likely false positives)

2016-11-15 Thread Bernardo Sulzbach
On 11/15/2016 08:53 PM, Nico Williams wrote: Another one that I find difficult to analyze is a possible out-of-bounds read in vdbeSorterCompareInt(): 85712 static const u8 aLen[] = {0, 1, 2, 3, 4, 6, 8 }; 85713 int i; 85714 res = 0; 85715 for(i=0; i

Re: [Python-ideas] PythonOS

2016-11-06 Thread Bernardo Sulzbach
that in a touchscreen? -- Bernardo Sulzbach http://www.mafagafogigante.org/ mafagafogiga...@gmail.com ___ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/

Re: [sqlite] VACUUM causes Out of memory error

2016-11-02 Thread Bernardo Sulzbach
On 11/02/2016 05:18 PM, Christian Czech wrote: It is a fundamental bug. I hope one day it gets fixed. Otherwise 3.15.0 is useless. It has been fixed: http://www.sqlite.org/src/info/3028845329c9b7ac -- Bernardo Sulzbach http://www.mafagafogigante.org/ mafagafogiga...@gmail.com

Re: [sqlite] Strange thing!

2016-10-28 Thread Bernardo Sulzbach
ndled as if MATCH SIMPLE were specified". I think this is the issue you are facing. -- Bernardo Sulzbach http://www.mafagafogigante.org/ mafagafogiga...@gmail.com ___ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http://mailinglists.

Re: [Python-ideas] Leave off "else" in ternary expression

2016-10-28 Thread Bernardo Sulzbach
On 10/28/2016 01:28 PM, Todd wrote: The idea would be to allow this syntax: x = a if b Which would be equivalent to: x = a if b else x What if x has not been defined yet? -- Bernardo Sulzbach http://www.mafagafogigante.org/ mafagafogiga...@gmail.com

Re: [sqlite] A possible double bug?

2016-10-17 Thread Bernardo Sulzbach
and should behave the same way on all systems, according to that statement. -- Bernardo Sulzbach http://www.mafagafogigante.org/ mafagafogiga...@mafagafogigante.org ___ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http://mailinglists.

Re: [sqlite] A possible double bug?

2016-10-17 Thread Bernardo Sulzbach
not be. fabs(a - b) is the simplest way to have an idea of how close two values are, and dividing by the magnitude of one of them (after checking that it is not zero, etc.) afterwards is also a good idea in some cases. -- Bernardo Sulzbach http://www.mafagafogigante.org/ mafagafogiga

Re: Modularity basics - animations

2016-10-10 Thread Bernardo Sulzbach
On 10/10/2016 12:35 PM, Adam Samalik wrote: http://snapsvg.io/ to make it moving! Thanks a lot for that. I don't usually deal with this sort of things, but knowing such a tool is freely available may come in handy. -- Bernardo Sulzbach http://www.mafagafogigante.org/ mafagafogiga

Re: Modularity basics - animations

2016-10-10 Thread Bernardo Sulzbach
On 10/10/2016 11:18 AM, Adam Samalik wrote: Hey everyone, I have created two animations describing the basic concepts of modularity: Hi, Adam. Would you mind sharing what did you use to create those animations? I don't suppose it is free, right? -- Bernardo Sulzbach http

Re: [Python-Dev] Optimizing list.sort() by checking type in advance

2016-10-10 Thread Bernardo Sulzbach
if it does not help with very small lists, we can always put a threshold on the size and take this path or not. -- Bernardo Sulzbach http://www.mafagafogigante.org/ mafagafogiga...@mafagafogigante.org ___ Python-Dev mailing list Python-Dev@python.org https

Re: [Bf-committers] Memory Error message.

2016-10-09 Thread Bernardo Sulzbach
U memory or CPU memory. Is the message really JUST "out of memory error"? Didn't you omit anything? -- Bernardo Sulzbach http://www.mafagafogigante.org/ mafagafogiga...@mafagafogigante.org ___ Bf-committers mailing list Bf-committers@blender.org https://li

Re: [sqlite] Q about integer overflow in sqlite3MulInt64().

2016-09-20 Thread Bernardo Sulzbach
it using a division of the maximum possible value by the multiplier (which will never overflow). -- Bernardo Sulzbach http://www.mafagafogigante.org/ mafagafogiga...@mafagafogigante.org ___ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http

Re: [sqlite] Q about integer overflow in sqlite3MulInt64().

2016-09-20 Thread Bernardo Sulzbach
performance is of uttermost importance, just try and see if it fails or not. prod = x * y; if (y != 0) { if (prod / y != x) { /* Overflow. */ } } This also works for multiplications such as 1152921504606846976 * 3, which do not overflow, but have much bigger multiplicands. -- Bernardo

Re: [Python-ideas] if-statement in for-loop

2016-09-11 Thread Bernardo Sulzbach
On 09/11/2016 06:36 AM, Dominik Gresch wrote: So I asked myself if a syntax as follows would be possible: for i in range(10) if i != 5: body Personally, I find this extremely intuitive since this kind of if-statement is already present in list comprehensions. What is your opinion on this?

Re: [Python-ideas] Shuffled

2016-09-06 Thread Bernardo Sulzbach
On 09/06/2016 03:37 PM, Sven R. Kunze wrote: Besides being a silly argument, it's an interesting solution. Does it really work? I remember Microsoft utilizing a similar approach for their browser selection tool which led to a skewed probability distribution. Maybe, I wrong here though. Yes.

Re: Self Introduction: Frederico Lima

2016-08-05 Thread Bernardo Sulzbach
Welcome. _Seja bem-vindo._ -- devel mailing list devel@lists.fedoraproject.org https://lists.fedoraproject.org/admin/lists/devel@lists.fedoraproject.org

Re: Imaginary single quotes in ls ?

2016-06-06 Thread Bernardo Sulzbach
On 06/06/2016 01:26 PM, Eric Sandeen wrote: On 6/6/16 11:20 AM, Bernardo Sulzbach wrote: I failed to replicate without flags or with -l, -a, or both on kernel 4.4.9-300.fc23.x86_64 bash-4.3.42-3.fc23.x86_64 gnome-terminal-3.18.3-1.fc23.x86_64 And which coreutils? http

Re: Imaginary single quotes in ls ?

2016-06-06 Thread Bernardo Sulzbach
On 06/06/2016 12:53 PM, Paul Wouters wrote: paul@thinkpad:/tmp/test$ touch foo bar baz paul@thinkpad:/tmp/test$ touch "touch and go" paul@thinkpad:/tmp/test$ ls -l total 0 -rw-rw-r--. 1 paul paul 0 Jun 6 11:48 bar -rw-rw-r--. 1 paul paul 0 Jun 6 11:48 baz -rw-rw-r--. 1 paul paul 0 Jun 6

Re: [Python-Dev] Adding NewType() to PEP 484

2016-06-01 Thread Bernardo Sulzbach
On 06/01/2016 09:44 PM, Guido van Rossum wrote: Everyone on the mypy team has a different opinion so the search is on. :-( On Wed, Jun 1, 2016 at 5:37 PM, Hai Nguyen wrote: I am +1 for DistinctType (vs others) (no specific reason, just read out loud). At least on this

Re: jwm

2016-06-01 Thread Bernardo Sulzbach
On 06/01/2016 06:21 PM, Przemek Klosowski wrote: So the answer to your question is that the papers say they work 40 hours per week, but in reality they work more. The employment law doesn't prescribe the actual number of hours worked by this class of employees, and the employer can set the work

Re: [Python-Dev] Adding NewType() to PEP 484

2016-05-31 Thread Bernardo Sulzbach
On 05/31/2016 08:58 PM, Nick Coghlan wrote: On 31 May 2016 3:12 pm, "Glenn Linderman" wrote: On 5/31/2016 12:55 PM, rndblnch wrote: Guido van Rossum gmail.com> writes: Also -- the most important thing. What to call these things? We're pretty much settled on the

Re: jwm

2016-05-31 Thread Bernardo Sulzbach
On 05/31/2016 01:59 PM, Rich Megginson wrote: On 05/31/2016 10:42 AM, Bernardo Sulzbach wrote: On 05/31/2016 01:39 PM, Michael Catanzaro wrote: On Sun, 2016-05-29 at 17:17 -0400, Stephen John Smoogen wrote: They usually have a 60 hour a week job I hope this isn't accurate...? I didn't

Re: jwm

2016-05-31 Thread Bernardo Sulzbach
On 05/31/2016 01:39 PM, Michael Catanzaro wrote: On Sun, 2016-05-29 at 17:17 -0400, Stephen John Smoogen wrote: They usually have a 60 hour a week job I hope this isn't accurate...? I didn't write about it myself, but was left wondering anyways. Do RH programmers usually work 60 hours per

Re: [Python-Dev] Python parser performance optimizations

2016-05-30 Thread Bernardo Sulzbach
On 05/29/2016 10:53 PM, Steven D'Aprano wrote: On Thu, May 26, 2016 at 10:19:05AM +, Artyom Skrobov wrote: [...] The motivation for this patch was to enable a memory footprint optimization, discussed at http://bugs.python.org/issue26415 My proposed optimization reduces the memory footprint

Re: [Python-Dev] Adding NewType() to PEP 484

2016-05-28 Thread Bernardo Sulzbach
On 05/28/2016 12:19 PM, Steve Dower wrote: Did anyone suggest "distinct type alias"? I would just like to mention that "distinguished" seems to be more often associated with notability and excellence than "distinct", which is usually more neutral towards the quality of what it describes.

Re: [Python-Dev] New hash algorithms: SHA3, SHAKE, BLAKE2, truncated SHA512

2016-05-27 Thread Bernardo Sulzbach
On 05/27/2016 07:52 PM, Nathaniel Smith wrote: If we demote them to second-class support (by making them only > available in some builds, or using a slow pure Python implementation), > then we'll be encouraging users to use inferior hashes. We shouldn't > do this without a very good reason. I

Re: [Python-Dev] New hash algorithms: SHA3, SHAKE, BLAKE2, truncated SHA512

2016-05-27 Thread Bernardo Sulzbach
On 05/27/2016 11:31 AM, Daniel Holth wrote: > BLAKE2 is important, since it removes the last objection to replacing MD5 - speed - that has made it hard for cryptography fans to convince MD5 users to upgrade. I have had to stick to MD5 for performance reasons (2 seconds in MD5 or 9.6 seconds

Re: [Python-Dev] runtime dlls on Windows

2016-05-25 Thread Bernardo Sulzbach
On 05/25/2016 04:37 PM, Ryan Gonzalez wrote: Wouldn't downloading the Microsoft C++ Runtime 2015 also work? Many recent computers already have it pre-installed. Even though the download seems to be only 14 MB (I don't have a Windows machine, so I cannot assure that just the file on MS website

Re: [Python-Dev] Why does PEP 7/8 explicitly suggest 2 spaces after a period?

2016-05-20 Thread Bernardo Sulzbach
On 05/20/2016 09:27 AM, Brett Cannon wrote: The period is a full-stop punctuation mark, but visually obscure [1]. It is small. This does not make it hard to notice, however. Not to mention that it will usually be followed by a capitalized letter, which further highlights it. Commas usually

Re: [Python-Dev] Why does PEP 7/8 explicitly suggest 2 spaces after a period?

2016-05-20 Thread Bernardo Sulzbach
On 05/20/2016 01:27 PM, Brett Cannon wrote: Is there a specific reason for calling out two spaces in comments after a period(I realize it's probably for consistency, but I sure don't ever think about this when I write comment)? Otherwise who actually still writes using two spaces after

Re: [Bf-committers] Update Report a Bug Page

2016-05-19 Thread Bernardo Sulzbach
On 05/19/2016 06:23 PM, Sybren A. Stüvel wrote: > > However, both use "here" as link text, which is horrible. If you > quickly scan the text you only see "here", "here", "here", and then > you have to search for what it actually links to. It's been a W3C > quality tip since 2001:

Re: [Bf-committers] Update Report a Bug Page

2016-05-19 Thread Bernardo Sulzbach
On 05/19/2016 06:05 PM, Harley Acheson wrote: > Julian, > > Your document can be made shorter and simpler... > > https://goo.gl/ROIT8C > > I helped write the document Julian currently has and with all my honesty, I believe yours will be more effective as more people are likely to go through it.

Re: [Bf-committers] Compliments

2016-05-19 Thread Bernardo Sulzbach
On 05/19/2016 09:23 AM, Ton Roosendaal wrote: > Hi all, > > Here's a nice snippet which I copied from a mail from a C4D artist who works > in advertisement. An honest compliment for everyone who contributes to > Blender. > > > > "Blender has a kind of miraculous aura about it for its open

Re: F25 System Wide Change: Use /etc/distro.repos.d as default reposdir

2016-05-12 Thread Bernardo Sulzbach
On 05/12/2016 09:58 PM, Stephen Gallagher wrote: Even if we could, I don't think it would be a good idea to have a single drop-directory for all of them. That's introducing too much complexity on the behalf of the tools that have to parse them. I believe that this is the best point against a

Re: Exception handling for socket.error in Python 3.5/RStudio

2016-02-05 Thread Bernardo Sulzbach
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

Re: realtime output and csv files

2016-02-05 Thread Bernardo Sulzbach
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

Re: _siftup and _siftdown implementation

2016-02-05 Thread Bernardo Sulzbach
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

Re: _siftup and _siftdown implementation

2016-02-05 Thread Bernardo Sulzbach
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

Re: snmpset

2016-02-05 Thread Bernardo Sulzbach
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

Re: Exception handling for socket.error in Python 3.5/RStudio

2016-02-05 Thread Bernardo Sulzbach
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)

Re: realtime output and csv files

2016-02-05 Thread Bernardo Sulzbach
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

Re: realtime output and csv files

2016-02-05 Thread Bernardo Sulzbach
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

Re: [Wikitech-l] Tech Talk: A Hands-on Estimation Exercise, With Discussion: Feb 8th

2016-02-05 Thread Bernardo Sulzbach
On 02/05/2016 10:59 PM, Rachel Farrand wrote: *Summary: *Estimation is an unnatural activity for human brains, which tend to hide our own ignorance from us. This brown-bag begins with an exercise, adapted from Steve McConnell's software estimation training, in balancing accuracy with

Re: realtime output and csv files

2016-02-05 Thread Bernardo Sulzbach
On Sat, Feb 6, 2016 at 2:27 AM, Tim Chase <python.l...@tim.thechases.com> 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 ','" shoul

[sqlite] IS a SQLite db of small size as good as reliable cache?

2016-02-04 Thread Bernardo Sulzbach
I don't really care about all the MS hate, but will add mine[1]. I am not a participant of that question, but it shows the same problem. I had over 50% CPU usage for hours when the computer was "idle" because Windows was indexing my stuff, forever. A friend of mine had the same problem and after

Re: Firefox 44 removes privacy feature.

2016-02-04 Thread Bernardo Sulzbach
After (two?) mentions to Google search, I wonder if any you know of any paid web search engines? I've used Google search 140 times on the last 24 hours according to my history, so if they ask for more than some cents per query I wouldn't be able to afford it. Tim, it's not "just a privacy issue"

Re: Firefox 44 removes privacy feature.

2016-02-04 Thread Bernardo Sulzbach
Basic keyboard shortcuts work, calculator works. Will try it for some time now. -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Fedora Code of Conduct:

Re: Firefox 44 removes privacy feature.

2016-02-04 Thread Bernardo Sulzbach
On Thu, Feb 4, 2016 at 5:11 PM, Joe Zeff wrote: > > Not only is it https, it promises to keep no records of your searches or > even your IP. Yes, it takes advantage of Google, but all Google learns is > that they searched for something, not who they sent the results to. Rather >

Re: Firefox 44 removes privacy feature.

2016-02-04 Thread Bernardo Sulzbach
On Thu, Feb 4, 2016 at 2:10 PM, Tim <ignored_mail...@yahoo.com.au> wrote: > Allegedly, on or about 04 February 2016, Bernardo Sulzbach sent: >> Tim, it's not "just a privacy issue" for the average person. Being >> tracked **is** an issue, even if you have not

Re: [STORY-TIME] THE BDFL AND HIS PYTHON PETTING ZOO

2016-02-03 Thread Bernardo Sulzbach
I wonder if anyone besides Mr. Ladasky read through the Great Wall of Email. -- https://mail.python.org/mailman/listinfo/python-list

Re: Firefox 44 removes privacy feature.

2016-02-03 Thread Bernardo Sulzbach
exist. I am happy not to be the responsible for this shit. P.S.: 101 is already taken. You likely know this, but just for the sake of pedantry. -- Bernardo Sulzbach -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo

Re: Firefox 44 removes privacy feature.

2016-02-03 Thread Bernardo Sulzbach
to **browse** the web as it is. Those websites are part of the web, a web browser must be good enough to deal with all of it. Whether or not "accept all cookies" is a convenience worth the privacy is up to each one of us. -- Bernardo Sulzbach -- users mailing list users@lists.fedoraproj

Re: Efficient Wrappers for Instance Methods

2016-02-03 Thread Bernardo Sulzbach
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

Re: Efficient Wrappers for Instance Methods

2016-02-03 Thread Bernardo Sulzbach
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. --

Re: Efficient Wrappers for Instance Methods

2016-02-03 Thread Bernardo Sulzbach
Did Peter's suggestion work? -- https://mail.python.org/mailman/listinfo/python-list

Re: Reply to whom? (was: Efficient Wrappers for Instance Methods)

2016-02-03 Thread Bernardo Sulzbach
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

Re: Reply to whom? (was: Efficient Wrappers for Instance Methods)

2016-02-03 Thread Bernardo Sulzbach
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

Re: Reply to whom?

2016-02-03 Thread Bernardo Sulzbach
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.

Re: Reply to whom?

2016-02-03 Thread Bernardo Sulzbach
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

Re: Firefox 44 removes privacy feature.

2016-02-02 Thread Bernardo Sulzbach
Why would they remove it? Was it a big maintenance burden? Seems something reasonable to keep around. -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Fedora Code of Conduct:

Re: Cannot Boot Fedora 23 live media on Lenovo C540

2016-01-31 Thread Bernardo Sulzbach
In what stage does it freeze? -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct Guidelines:

Re: Cannot Boot Fedora 23 live media on Lenovo C540

2016-01-31 Thread Bernardo Sulzbach
I am just asking because installing Fedora on notebooks (at least for me) **never** was an easy task. It mostly has to do with BIOS settings. I can't recall if I ran into the problem you describe, but it may be a local issue and not a bug per se, if you understand me. Be warned that I am not a

Re: The computer that mastered Go

2016-01-31 Thread Bernardo Sulzbach
stead of C++ would have promoted their baby a little. -- Bernardo Sulzbach -- https://mail.python.org/mailman/listinfo/python-list

Re: The computer that mastered Go

2016-01-29 Thread Bernardo Sulzbach
ve you tried? Asking here." 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

Re: The computer that mastered Go

2016-01-29 Thread Bernardo Sulzbach
On Fri, Jan 29, 2016 at 8:13 PM, Paul Rubin <no.email@nospam.invalid> 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/lis

Re: Python Unit test

2016-01-26 Thread Bernardo Sulzbach
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

Re: selinux??

2016-01-26 Thread Bernardo Sulzbach
otected user information. I would ultimately blame the average person for not valuing privacy enough, though. Then those relatives who have 3 different passwords for 50 different services... Ugh. -- Bernardo Sulzbach -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscrip

Re: texlive

2016-01-25 Thread Bernardo Sulzbach
publishers of books that consist mostly of text do use text processors as they are decent nowadays. Just a last mention, you can see that everyone on this mailing list that has used TeX advocates for it. This has to mean something. -- Bernardo Sulzbach -- users mailing list users

Re: texlive

2016-01-25 Thread Bernardo Sulzbach
Just an addition to George's impressive answer: I only tried Word equations on 2013 (the version) and it was painfully bad, sometimes blocking the program for as much as two or three seconds when I was entering a complex fraction. However, maybe it was just a bad installation or something that

Re: texlive

2016-01-25 Thread Bernardo Sulzbach
On Mon, Jan 25, 2016 at 1:45 PM, Klaus-Peter Schrage <kpschr...@gmx.de> wrote: > when being forced by my > customers to use Word. Would you mind sharing how common this was? -- Bernardo Sulzbach -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscrip

Re: texlive

2016-01-25 Thread Bernardo Sulzbach
GUI-like things have > been developed around it for those interested). Anyway, enough about > that. > Last message I drop in this thread, hopefully. I think it really boils down to what is your conception of "text processor". Personally, I agree with you, TeX is not a cousin of

Re: texlive

2016-01-24 Thread Bernardo Sulzbach
languages and compiled into high quality files. The associations abovementioned have very high quality standards, much above average. -- Bernardo Sulzbach -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/list

Re: texlive

2016-01-24 Thread Bernardo Sulzbach
On Sun, Jan 24, 2016 at 10:17 PM, Patrick O'Callaghan wrote: > since probably 99% of researchers in those fields write their papers in TeX > or its cousin LaTeX. Not only this kind of message annoys statistically inclined individuals, it is wrong by, let me say it, an

Re: texlive

2016-01-24 Thread Bernardo Sulzbach
Do you even use tex? Can you imagine one program that you make use of using it? -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Fedora Code of Conduct:

Re: how to create rescue disk fedora 23

2016-01-23 Thread Bernardo Sulzbach
On Sat, Jan 23, 2016 at 5:56 PM, Jack Craig wrote: > unfortunate upgrade to F23 It is not directly relevant to the discussion, but may you please write more about it? -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options:

  1   2   >