Good afternoon.
Could you please advise me how to connect the python software to my default
printer.
Regards,
Bryon Fawcett.
--
https://mail.python.org/mailman/listinfo/python-list
I agree, the challenge is the volume of the data to compare is 13. Million
records. So it needs to be very fast
Sent from my iPad
> On Mar 23, 2016, at 4:47 PM, Bob Gailer wrote:
>
>
> On Mar 23, 2016 4:20 PM, "Bruce Kirk" wrote:
> >
> > Does anyone know of any existing projects on how to ge
"Adam" wrote in message
news:ncikss$tks$1...@news.albasani.net...
>
> Host OS:Ubuntu Desktop 14.04 LTS / Unity
>
> System crashed while using PyCharm / Python3.
> Booting takes forever and stuck at the purple screen with
> the Ubuntu logo and the five dots cycling.
> How to fix?
>
Searching
On Thursday, March 24, 2016 at 8:54:49 AM UTC+5:30, Chris Angelico wrote:
> On Thu, Mar 24, 2016 at 12:41 AM, BartC wrote:
> > To extend this analogy better, executing byte-code to directly perform a
> > task itself might be equivalent to travelling on foot, while everyone is
> > suggesting taking
On Thu, Mar 24, 2016 at 12:41 AM, BartC wrote:
> To extend this analogy better, executing byte-code to directly perform a
> task itself might be equivalent to travelling on foot, while everyone is
> suggesting taking the bus, tube or taxi.
>
> But when you are on foot, it might be worth looking at
On 23/03/2016 10:48, Chris Angelico wrote:
On Wed, Mar 23, 2016 at 9:34 PM, BartC wrote:
Someone could be interested in cars, mechanics and performance without
wanting to know the most Pythonic way to get from Kings Cross to Heathrow.
But if I complain that the trek across four blocks of Lo
> What you want is called *transposing* the array:
>
> http://docs.scipy.org/doc/numpy/reference/generated/numpy.transpose.html
>
> That should be a sufficiently fast operation.
Transposing itself is fast, as it just swaps the strides and dimensions
without touching the data (i.e. it returns a n
On Wed, 23 Mar 2016 20:34:08 -0400, Dennis Lee Bieber wrote:
> On Wed, 23 Mar 2016 10:58:09 -0500, Wildman via Python-list
> declaimed the following:
>
>>On Wed, 23 Mar 2016 02:47:47 -0400, Terry Reedy wrote:
>>
>>> def load_image(self, _):
>>> # load image file
>>>
>>> You must p
On Wed, Mar 23, 2016 at 12:31 PM, louis anderson
wrote:
> After a workshop in my school today regarding python, i have downloaded it on
> my laptop
> however when i go to launch it, it either tells me to modify python, repair
> python or uninstall
> python. It will not let me go onto python at a
On 23/03/2016 23:55, Steven D'Aprano wrote:
On Thu, 24 Mar 2016 03:24 am, Random832 wrote:
On Wed, Mar 23, 2016, at 12:08, Mark Lawrence wrote:
And doing it 'Pythonically' can lead to suggestions such as the
following the other day:
c, psource = psource[0], psource[1:]
(where psource is a
On Thu, Mar 24, 2016 at 11:12 AM, Random832 wrote:
> I guess the question is, what do you _actually_ need the tail string
> for? If you're using it in a loop, to pop further characters from (the
> scenario that would cause it to be copying the string over lots of
> times), wouldn't it make more se
On Wed, Mar 23, 2016, at 19:55, Steven D'Aprano wrote:
> while psource:
> c, psource = psource[0], psource[1:]
> lxsymbol = disptable[min(ord(c), 256)](c, psource)
>
>
> But one positive: this conclusively proves that "Pythonic" is in the eye
> of
> the beh
On Thu, 24 Mar 2016 03:24 am, Random832 wrote:
> On Wed, Mar 23, 2016, at 12:08, Mark Lawrence wrote:
>> > And doing it 'Pythonically' can lead to suggestions such as the
>> > following the other day:
>> >
>> > c, psource = psource[0], psource[1:]
>> >
>> > (where psource is a very long string),
On 23/03/2016 16:24, Random832 wrote:
On Wed, Mar 23, 2016, at 12:08, Mark Lawrence wrote:
And doing it 'Pythonically' can lead to suggestions such as the
following the other day:
c, psource = psource[0], psource[1:]
(where psource is a very long string), which even I could tell, from
kno
Random832 writes:
> B) His software costs no money, so no harm has been done even if
> someone looking for the phone app finds it and "buys" it by mistake.
That statement assumes that only the loss of money is harm.
Do you recognise damage to public reputation as harm?
Do you recognise any oth
On 23.03.2016 09:24, dieter wrote:
But you have observed that you cannot do everything with a
code substitution: a function call does not only depend on the code
but also on other properties of the function object: e.g. the
parameter processing.
Yep, that's because Python is very flexible and p
On Mar 23, 2016 4:20 PM, "Bruce Kirk" wrote:
>
> Does anyone know of any existing projects on how to generate a change
data capture on 2 very large xml files.
>
> The xml structures are the same, it is the data within the files that may
differ.
>
It should not be too difficult to write a program t
In louis anderson
writes:
> After a workshop in my school today regarding python i have downloaded
> it on my laptop
Since you were in fact able to download it, your message title of
"Not downloading" is somewhat misleading...
> however when i go to launch it it either tells me to modify pyth
Does anyone know of any existing projects on how to generate a change data
capture on 2 very large xml files.
The xml structures are the same, it is the data within the files that may
differ.
I need to take a XML file from yesterday and compare it to the XML file
produced today and not which X
Hi,
On Wed, Mar 23, 2016 at 1:31 PM, louis anderson
wrote:
> Dear Python, After a workshop in my school today
> regarding python, i have downloaded it on my laptop however when i go to
> launch it, it either tells me to modify python, repair python or uninstall
> python.
Dear Python, After a workshop in my school today
regarding python, i have downloaded it on my laptop however when i go to launch
it, it either tells me to modify python, repair python or uninstall python. It
will not let me go onto python at all. I do not know what is going
On 03/22/2016 08:17 PM, Nick Eubank wrote:
Relatedly, if this is a desired behavior, any advice one how best to work
with dictionaries when one wants "True" and 1 to be different? I'm working
on a function that accepts arguments that may be "True" or 1 (meaning very
different things) and am seek
On 03/23/2016 11:08 AM, Terry Reedy wrote:
On 3/23/2016 5:03 AM, Steven D'Aprano wrote:
One developer just broke most of the Node.js ecosystem by removing an
eleven
line package from npm (the node.js package manager, somewhat similar to
Python's pip only even more critical):
Does PyPI actuall
On 3/23/2016 5:03 AM, Steven D'Aprano wrote:
One developer just broke most of the Node.js ecosystem by removing an eleven
line package from npm (the node.js package manager, somewhat similar to
Python's pip only even more critical):
Does PyPI actually delete packages, as opposed to making them
On 3/23/2016 4:51 AM, Peter Otten wrote:
The pythonic solution is "don't do this". The == operator cannot
discriminate between 0, 0.0, and False,
and 0j and Fraction(0, 1) and Decimal(0)
or 1, 1.0, and True
and 1+0j, Fraction(1, 1) and Decimal(1)
Sets and dicts are based both based on (tr
On 3/23/2016 5:33 AM, Hongyi Zhao wrote:
Hi all,
I want to submit a qsub job to my hpc cluster from within python. In
this case, I must set some environment variables specific for this qsub
job and then invoking a bash script from within python.
What python code should be used for this job?
On Wed, Mar 23, 2016, at 12:08, Mark Lawrence wrote:
> > And doing it 'Pythonically' can lead to suggestions such as the
> > following the other day:
> >
> > c, psource = psource[0], psource[1:]
> >
> > (where psource is a very long string), which even I could tell, from
> > knowing what goes o
On 23/03/2016 06:09, Ben Finney wrote:
Steven D'Aprano writes:
On Mon, 21 Mar 2016 06:47 pm, Ben Finney wrote:
Bart can show good faith by *learning* idiomatic Python, with the
humility of a beginner. And also by refraining from rhetoric about
how bad Python's performance is, until he gains
On 23/03/2016 10:34, BartC wrote:
On 23/03/2016 06:09, Ben Finney wrote:
The problem is that Bart simultaneously is a beginner at Python, and
expresses astonishment that everyone shrugs when Bart's
dreadfully-written code performs so badly.
My interests differ from most people here writing Py
On Wed, 23 Mar 2016 02:47:47 -0400, Terry Reedy wrote:
> def load_image(self, _):
> # load image file
>
> You must pass the bound method, as you did, and not the function itself
> (which has two parameters).
I meant to ask a followup question in my previous post but
it slipped my
On Wed, 23 Mar 2016 02:47:47 -0400, Terry Reedy wrote:
> On 3/23/2016 12:28 AM, Wildman via Python-list wrote:
>> On Wed, 23 Mar 2016 03:02:51 +, MRAB wrote:
>>
>>> On 2016-03-23 02:46, Wildman via Python-list wrote:
My question is how do I coax bind into executing the
button procedu
On Wednesday, March 23, 2016 at 6:35:12 AM UTC-4, BartC wrote:
> On 23/03/2016 06:09, Ben Finney wrote:
>
> > The problem is that Bart simultaneously is a beginner at Python, and
> > expresses astonishment that everyone shrugs when Bart's
> > dreadfully-written code performs so badly.
>
> My inte
On Wed, Mar 23, 2016, at 10:52, Steven D'Aprano wrote:
> - He didn't bother to check to see whether the name was in use when he
> picked it.
Someone not making a commercial product shouldn't have to worry about a
name collision with something they've never heard of.
> - The lawyers were polite bu
Le mercredi 23 mars 2016 04:52:02 UTC-4, Peter Otten a écrit :
> Nick Eubank wrote:
>
> > Hello All,
> >
> >
> > Found an odd behavior I'd never known about today, not sure if it's a bug
> > or known. Python 3.4.4 (anaconda).
> > True, False, 0, 1 can all be used as dictionary keys.
> >
> > Bu
On Thu, 24 Mar 2016 12:33 am, Random832 wrote:
> On Wed, Mar 23, 2016, at 05:03, Steven D'Aprano wrote:
>> https://medium.com/@azerbike/i-ve-just-liberated-my-modules-9045c06be67c
>>
>> Of course, moving his allegedly infringing package "kik" to github isn't
>> going to fix the problem. It's stil
On Wed, Mar 23, 2016 at 7:17 AM, Steven D'Aprano wrote:
>
> According to the documentation, os.rename(original, new) will fail if new
> already exists.
In 3.3+ you can use os.replace. For POSIX systems it's functionally
the same as os.rename. pyosreplace [1] backports os.replace for 2.6,
2.7 and
Python 2.7.11 on Windows 7 Enterprise (64-bit machine, 32-bit Python) and two
Windows Server 2012 R2 (64-bit machines, both 32-bit and 64-bit Pythons):
183
17
WindowsError(183, 'Cannot create a file when that file already exists')
HTH,
Steve
--
https://mail.python.org/mailman/listinfo/python-
On Wed, Mar 23, 2016, at 05:03, Steven D'Aprano wrote:
> https://medium.com/@azerbike/i-ve-just-liberated-my-modules-9045c06be67c
>
> Of course, moving his allegedly infringing package "kik" to github isn't
> going to fix the problem. It's still allegedly infringing.
I think the issue, and it is
* Arshpreet Singh [2016-03-18 05:25 +0100]:
I am looking for an E-commerce system in python to sell things things
online, which can also be responsive for Android and IOS.
A quick Google search brought me http://getsaleor.com/ it uses
Django, Is there any available one using Flask or newly bo
On Wed, 23 Mar 2016 11:28 pm, Random832 wrote:
> On Wed, Mar 23, 2016, at 08:17, Steven D'Aprano wrote:
>> Any Windows users here?
>>
>> print(e.winerror) # Windows only
>> print(e.errno)
>> print(repr(e))
>
> 183
> 17
> FileExistsError(17, 'Cannot create a file when that file alread
On Wed, Mar 23, 2016, at 08:17, Steven D'Aprano wrote:
> Any Windows users here?
>
> print(e.winerror) # Windows only
> print(e.errno)
> print(repr(e))
183
17
FileExistsError(17, 'Cannot create a file when that file already
exists')
Python 3.5.1.
--
https://mail.python.org/mailman/l
On Wed, Mar 23, 2016 at 11:17 PM, Steven D'Aprano wrote:
> import os
> open('a123.junk', 'w')
> open('b123.junk', 'w')
> try:
> os.rename('a123.junk', 'b123.junk')
> except OSError as e:
> print(e.winerror) # Windows only
> print(e.errno)
> print(repr(e))
>
> os.unlink('a123.junk'
Any Windows users here?
According to the documentation, os.rename(original, new) will fail if new
already exists.
Would somebody be kind enough to tell me what OSError is raised? In
particular:
# Untested.
import os
open('a123.junk', 'w')
open('b123.junk', 'w')
try:
os.rename('a123.junk', '
Hi Nick,
On 23/03/16 03:17, Nick Eubank wrote:
In other words:
In[1]:
d = {True: 'a', False: 'b'}
d[0] = 'z'
d[False]
Out[1]:
'z'
[snip]
Relatedly, if this is a desired behavior, any advice one how best to work
with dictionaries when one wants "True" and 1 to be dif
On Wed, 23 Mar 2016 06:54 am, Marco S. wrote:
> I noticed that the sequence types does not have these methods that the map
> types has: get(), items(), keys(), values().
>
> It could seem useless to have them for sequences,
That's putting it mildly.
> but I think it will ease
> the creation
On Wed, Mar 23, 2016 at 9:57 PM, Tim Golden wrote:
> On 23/03/2016 10:48, Chris Angelico wrote:
>> On Wed, Mar 23, 2016 at 9:34 PM, BartC wrote:
>>> Someone could be interested in cars, mechanics and performance without
>>> wanting to know the most Pythonic way to get from Kings Cross to Heathrow
On 23 March 2016 10:06:56 GMT+00:00, Heli wrote:
>Hi,
>
>I have a 2D numpy array like this:
>
>[[1,2,3,4],
> [1,2,3,4],
> [1,2,3,4]
> [1,2,3,4]]
>
>Is there any fast way to convert this array to
>
>[[1,1,1,1],
> [2,2,2,2]
> [3,3,3,3]
> [4,4,4,4]]
Use the transpose() method:
http://docs.scipy
Tips: Since True == 1, sum() can count Trues.
>>> def count_even(seq):
... return sum(i%2 == 0 for i in seq)
>>> count_even(range(100))
50
--
https://mail.python.org/mailman/listinfo/python-list
>
>
> For those curious, here's left-pad in all its glory:
>
> module.exports = leftpad;
> function leftpad (str, len, ch) {
> str = String(str);
> var i = -1;
> if (!ch && ch !== 0) ch = ' ';
> len = len - str.length;
> while (++i < len) {
> str = ch + str;
> }
> return str;
> }
On 23/03/2016 10:48, Chris Angelico wrote:
> On Wed, Mar 23, 2016 at 9:34 PM, BartC wrote:
>> Someone could be interested in cars, mechanics and performance without
>> wanting to know the most Pythonic way to get from Kings Cross to Heathrow.
>
> But if I complain that the trek across four blocks
On Wednesday, March 23, 2016 at 11:07:27 AM UTC+1, Heli wrote:
> Hi,
>
> I have a 2D numpy array like this:
>
> [[1,2,3,4],
> [1,2,3,4],
> [1,2,3,4]
> [1,2,3,4]]
>
> Is there any fast way to convert this array to
>
> [[1,1,1,1],
> [2,2,2,2]
> [3,3,3,3]
> [4,4,4,4]]
>
> In general I wo
On Wed, Mar 23, 2016 at 9:34 PM, BartC wrote:
> ... which even I could tell, from knowing what goes on behind the scenes,
> wasn't going to work well ...
> ...
>> Good faith is contradicted by asserting knowledge of Python, complaining
>> about how some deliberately non-idiomatic Python code is pe
On Wed, Mar 23, 2016 at 9:06 PM, Heli wrote:
> I have a 2D numpy array like this:
>
> [[1,2,3,4],
> [1,2,3,4],
> [1,2,3,4]
> [1,2,3,4]]
>
> Is there any fast way to convert this array to
>
> [[1,1,1,1],
> [2,2,2,2]
> [3,3,3,3]
> [4,4,4,4]]
What you want is called *transposing* the array:
h
On 03/23/16 at 03:06am, Heli wrote:
> I have a 2D numpy array like this:
>
> [[1,2,3,4],
> [1,2,3,4],
> [1,2,3,4]
> [1,2,3,4]]
>
> Is there any fast way to convert this array to
>
> [[1,1,1,1],
> [2,2,2,2]
> [3,3,3,3]
> [4,4,4,4]]
You don't mean just transposing your original array, as
On 23/03/2016 06:09, Ben Finney wrote:
The problem is that Bart simultaneously is a beginner at Python, and
expresses astonishment that everyone shrugs when Bart's
dreadfully-written code performs so badly.
My interests differ from most people here writing Python.
For example, I'm interested
On Wed, 23 Mar 2016 09:06 pm, Heli wrote:
> Hi,
>
> I have a 2D numpy array like this:
>
> [[1,2,3,4],
> [1,2,3,4],
> [1,2,3,4]
> [1,2,3,4]]
>
> Is there any fast way to convert this array to
>
> [[1,1,1,1],
> [2,2,2,2]
> [3,3,3,3]
> [4,4,4,4]]
Mathematically, this is called the "tran
Hi,
I have a 2D numpy array like this:
[[1,2,3,4],
[1,2,3,4],
[1,2,3,4]
[1,2,3,4]]
Is there any fast way to convert this array to
[[1,1,1,1],
[2,2,2,2]
[3,3,3,3]
[4,4,4,4]]
In general I would need to retrieve every nth element of the interior arrays in
to single arrays. I know I can
Hi all,
I want to submit a qsub job to my hpc cluster from within python. In
this case, I must set some environment variables specific for this qsub
job and then invoking a bash script from within python.
What python code should be used for this job?
Regards
--
.: Hongyi Zhao [ hongyi.zhao A
Marco S. via Python-list wrote:
> I noticed that the sequence types does not have these methods that the map
> types has: get(), items(), keys(), values().
> It could seem useless to have them for sequences, but I think it will ease
> the creation of functions and methods that allow you to input
This is not actually off-topic, as it has relevance to open source projects
like Python: the importance of getting package management right, and not
basing your development ecosystem on cowboys who might pull the rug out from
under your feet at any time.
Ironically, this also showcases what hap
Nick Eubank wrote:
> Hello All,
>
>
> Found an odd behavior I'd never known about today, not sure if it's a bug
> or known. Python 3.4.4 (anaconda).
This is a feature. Old versions of Python did not have True and False, so
they were added in a compatible way.
> True, False, 0, 1 can all be us
On Wed, Mar 23, 2016 at 7:35 PM, Hongyi Zhao wrote:
>> My guess is that you started the IDEs from your GUI in some way (the
>> Applications menu or something). If that's the case, they'll inherit
>> their environment from your GUI. You _may_ be able to have them "notice"
>> your change to .bashrc
On Wed, Mar 23, 2016 at 2:17 PM, Nick Eubank wrote:
> But Apparently True and 1 hash to the same item and False and 0 hash to the
> same item, so they can easily overwrite (which I spent a while banging my
> head over today).
>
> In other words:
>
> In[1]:
> d = {True: 'a', False: 'b'}
>
On Wed, 23 Mar 2016 18:19:04 +1100, Chris Angelico wrote:
> Did you start pycharm/wing from the same session in which you sourced
> .bashrc? If not, they won't see that change.
Thanks a lot for this explanations. It does behaves as you said which I
previously not noticed.
>
> My guess is tha
Hello,
This thing is making me run crazy. Am having these pop ups as I try using
pycharm saying modify setup, and it is really annoying. I have no clue what is
causing it but if it can’t be fixed I’d rather uninstall the programs because I
may end up destroying my pc. I hope you guys can help.
T
"Sven R. Kunze" writes:
> ...
> As far as I can see, the code replacement approach solves the problem
> once and for all. Thus is far more stable.
>
> Manually finding out every single module that might or might not have
> imported "reverse" before we could monkeypatch it might result in a
> maint
I noticed that the sequence types does not have these methods that the map
types has: get(), items(), keys(), values().
It could seem useless to have them for sequences, but I think it will ease
the creation of functions and methods that allow you to input a generic
iterable as parameter, but nee
Hello All,
Found an odd behavior I'd never known about today, not sure if it's a bug
or known. Python 3.4.4 (anaconda).
True, False, 0, 1 can all be used as dictionary keys.
But Apparently True and 1 hash to the same item and False and 0 hash to the
same item, so they can easily overwrite (whic
Hongyi Zhao writes:
> I exported a variable in my .bashrc as follows:
>
> export MY_VAR="fdsfads"
That ‘export’ means that child processes of this one (i.e., the shell in
which that command executed) will inherit that variable in their
environment.
Processes that are not children of this one, w
On Wed, Mar 23, 2016 at 6:12 PM, Hongyi Zhao wrote:
> I exported a variable in my .bashrc as follows:
>
> export MY_VAR="fdsfads"
>
> Then I soured the .bashrc and do the testing as follows:
>
> werner@debian-01:~$ python -c "import os; print os.environ['MY_VAR']"
> fdsfads
>
> But, when I run the
Hi all,
I exported a variable in my .bashrc as follows:
export MY_VAR="fdsfads"
Then I soured the .bashrc and do the testing as follows:
werner@debian-01:~$ python -c "import os; print os.environ['MY_VAR']"
fdsfads
But, when I run the same commands in pycharm and wing ide, I failed the
obtain
71 matches
Mail list logo