thanks for the reply i have resolve with the r'.'
i have another question on linux i write cp -Ruv source destination
There is one way to do it in python?
with shutil there is copythree but if the dest dir exist he give back an error.
Can you give me some ideas
Thanks
Luca
--
https://ma
Gregory Ewing wrote:
> Steven D'Aprano wrote:
>
>> In fairness, "inherit" is standard terminology for the way instances get
>> their behaviour from their class.
>
> I'm not sure that's true, but even if it is, it's
> not the same kind of inheritance relationship as
> exists between a class and a
On 28/01/2015 23:12, Chris Kaynor wrote:
On Wed, Jan 28, 2015 at 3:01 PM, Devin Jeanpierre
wrote:
On Wed, Jan 28, 2015 at 2:02 PM, Chris Angelico wrote:
On Thu, Jan 29, 2015 at 8:52 AM, Devin Jeanpierre
wrote:
Git doesn't help if you lose your files in between commits, or if you
lose the en
Steven D'Aprano wrote:
In fairness, "inherit" is standard terminology for the way instances get
their behaviour from their class.
I'm not sure that's true, but even if it is, it's
not the same kind of inheritance relationship as
exists between a class and a base class, which was
my point.
Al
On 01/28/2015 03:17 PM, Albert-Jan Roskam wrote:
>> I do not know how complete the support is, but this is copied from 3.4.2,
>> which uses tcl/tk 8.6.
t = "الحركات"
for c in t: print(c) # Prints rightmost char above first
>> ا
>> ل
>> ح
>> ر
>> ك
>> ا
>> ت
>
> Wow, I never knew this w
On Wednesday, January 28, 2015 at 10:39:34 PM UTC+5:30, rand...@fastmail.us
wrote:
> On Wed, Jan 28, 2015, at 01:59, Ben Finney wrote:
> > You have no justification to claim that, and it's hostile and dismissive
> > to claim it so assertively.
>
> Sorry about that - I was tired and had just read
On Thu, Jan 29, 2015 at 11:37 AM, Steven D'Aprano
wrote:
> They're as
> different as cheese and a very slightly different cheese. Do try to keep
> up.
As different as brie and camembert?
ChrisA
--
https://mail.python.org/mailman/listinfo/python-list
Ian Kelly wrote:
> On Wed, Jan 28, 2015 at 8:04 AM, Mario Figueiredo
> wrote:
>> In article <54c83ab4$0$12982$c3e8da3$54964...@news.astraweb.com>,
>> steve+comp.lang.pyt...@pearwood.info says...
>>>
>>> Mario Figueiredo wrote:
>>>
>>> > Static analysis cannot and should not clutter executable cod
Devin Jeanpierre wrote:
> On Wed, Jan 28, 2015 at 1:40 PM, Chris Angelico wrote:
>> On Thu, Jan 29, 2015 at 5:47 AM, Chris Kaynor
>> wrote:
>>> I use Google Drive for it for all the stuff I do at home, and use SVN
>>> for all my personal projects, with the SVN depots also in Drive. The
>>> combi
sohcahto...@gmail.com wrote:
> I recently finished my CS degree, and I had more than one professor say
> that they won't take "My computer crashed and I lost everything!" as an
> excuse for not being able to turn in homework.
How about "My computer crashed and died and now I can't get to Dropbo
On Wednesday, January 28, 2015 at 3:13:36 PM UTC-8, Chris Kaynor wrote:
> On Wed, Jan 28, 2015 at 3:01 PM, Devin Jeanpierre
> wrote:
> > On Wed, Jan 28, 2015 at 2:02 PM, Chris Angelico wrote:
> >> On Thu, Jan 29, 2015 at 8:52 AM, Devin Jeanpierre
> >> wrote:
> >>> Git doesn't help if you lose yo
On Wed, Jan 28, 2015 at 3:01 PM, Devin Jeanpierre
wrote:
> On Wed, Jan 28, 2015 at 2:02 PM, Chris Angelico wrote:
>> On Thu, Jan 29, 2015 at 8:52 AM, Devin Jeanpierre
>> wrote:
>>> Git doesn't help if you lose your files in between commits, or if you
>>> lose the entire directory between pushes.
I distrust any backup strategy that requires explicit action by the
user. I've seen users fail too often. (Including myself.)
-- Devin
On Wed, Jan 28, 2015 at 2:02 PM, Chris Angelico wrote:
> On Thu, Jan 29, 2015 at 8:52 AM, Devin Jeanpierre
> wrote:
>> Git doesn't help if you lose your files i
On Wed, Jan 28, 2015 8:21 AM CET Terry Reedy wrote:
>On 1/27/2015 12:17 AM, Rehab Habeeb wrote:
>> Hi there python staff
>> does python support arabic language for texts ? and what to do if it
>> support it?
>> i wrote hello in Arabic using codeskulptor and the powers
On Thu, Jan 29, 2015 at 8:52 AM, Devin Jeanpierre
wrote:
> Git doesn't help if you lose your files in between commits, or if you
> lose the entire directory between pushes.
So you commit often and push immediately. Solved.
ChrisA
--
https://mail.python.org/mailman/listinfo/python-list
On Wed, Jan 28, 2015 at 1:40 PM, Chris Angelico wrote:
> On Thu, Jan 29, 2015 at 5:47 AM, Chris Kaynor
> wrote:
>> I use Google Drive for it for all the stuff I do at home, and use SVN
>> for all my personal projects, with the SVN depots also in Drive. The
>> combination works well for me, I can
On Wed, Jan 28, 2015 at 11:53 AM, jesse wrote:
> should not it be 1<<32 -1(4g)?
>
> normal zip archive format should be able to support 4g file.
Bugs can be filed at http://bugs.python.org/
--
https://mail.python.org/mailman/listinfo/python-list
On Thu, Jan 29, 2015 at 5:47 AM, Chris Kaynor wrote:
> I use Google Drive for it for all the stuff I do at home, and use SVN
> for all my personal projects, with the SVN depots also in Drive. The
> combination works well for me, I can transfer between my desktop and
> laptop freely, and have full
On Thu, Jan 29, 2015 at 5:05 AM, Mark Lawrence wrote:
> Windows will accept forward slashes in path names.
Normally, yes. Does that work for UNC names too?
//server/share/pathname ? In any case, that's an alternative solution
to the same problem.
ChrisA
--
https://mail.python.org/mailman/listin
On Thu, Jan 29, 2015 at 5:53 AM, jesse wrote:
> should not it be 1<<32 -1(4g)?
>
> normal zip archive format should be able to support 4g file.
>
> thanks
1<<31-1 is the limit for a signed 32-bit integer. You'd have to look
into the details of the zip file format to see whether that's the
officia
On Wed, Jan 28, 2015 at 10:06 AM, Skip Montanaro
wrote:
> On Wed, Jan 28, 2015 at 7:07 AM, Andres Riancho
> wrote:
>> The feature I'm specially interested in is the ability to spawn
>> processes [1] instead of forking, which is not present in the 2.7
>> version of the module.
>
> Can you explain
On Wednesday, January 28, 2015 at 8:36:59 AM UTC-8, peter.n...@gmail.com wrote:
> I am totally new to Python and please accept my apologies upfront for
> potential newbie errors. I am trying to parse a 'simple' web page:
> http://flow.gassco.no/
>
> When opening the page first time in my browser
On Wed, Jan 28, 2015 at 10:42 AM, Devin Jeanpierre
wrote:
> FWIW I put all my source code inside Dropbox so that even things I
> haven't yet committed/pushed to Bitbucket/Github are backed up. So far
> it's worked really well, despite using Dropbox on both Windows and
> Linux. (See also: Google Dr
should not it be 1<<32 -1(4g)?
normal zip archive format should be able to support 4g file.
thanks
--
https://mail.python.org/mailman/listinfo/python-list
FWIW I put all my source code inside Dropbox so that even things I
haven't yet committed/pushed to Bitbucket/Github are backed up. So far
it's worked really well, despite using Dropbox on both Windows and
Linux. (See also: Google Drive, etc.)
(Free) Dropbox has a 30 day recovery time limit, and I
On Wed, Jan 28, 2015 at 12:34 PM, Skip Montanaro
wrote:
>
>
> On Wed, Jan 28, 2015 at 12:16 PM, Mark Lawrence
> wrote:
>>
>> C and C++ are weakly and statically typed languages. Python is a strongly
>> and dynamically typed language.
>
>
> Feel free to edit this Google spreadsheet:
Man, somet
On Wed, Jan 28, 2015 at 12:16 PM, Mark Lawrence
wrote:
> C and C++ are weakly and statically typed languages. Python is a strongly
> and dynamically typed language.
Feel free to edit this Google spreadsheet:
--
https://mail.python.org/mailman/listinfo/python-list
On 28/01/2015 15:04, Mario Figueiredo wrote:
In article <54c83ab4$0$12982$c3e8da3$54964...@news.astraweb.com>,
steve+comp.lang.pyt...@pearwood.info says...
Mario Figueiredo wrote:
Static analysis cannot and should not clutter executable code.
(1) It isn't clutter. The human reader uses that
Last night I accidentally deleted a group of *.py files
(stupid-stupid-stupid!).
Thanks to unpyc3 I have reconstructed all but one of them so far from the *.pyc
files that were in the directory __pycache__. Many thanks!!!
-- Nico
--
https://mail.python.org/mailman/listinfo/python-list
On Wed, Jan 28, 2015 at 7:07 AM, Andres Riancho
wrote:
> The feature I'm specially interested in is the ability to spawn
> processes [1] instead of forking, which is not present in the 2.7
> version of the module.
>
Can you explain what you see as the difference between "spawn" and "fork"
in thi
On 28/01/2015 14:12, Chris Angelico wrote:
On Thu, Jan 29, 2015 at 12:38 AM, MRAB wrote:
On 2015-01-28 13:22, luca72 wrote:
Hello i'm under windows, i have to write a file from my computer to a
local server like taht "\\DOCUMENTALE\my_folder\".
How i have to proceed ?
That's a path to a fol
I run Python on an arm-brcm-linux-uclibcgnueabi router. Python was
cross-compiled using hndtools-arm-linux-2.6.36-uclibc-4.5.3 toolchain. While
trying to use deluge, I realised that there's something wrong with handling C++
exceptions in C++ extension modules: they're not being caught at all. I
List,
I've been searching around for a multiprocessing module backport from
3 to 2.7.x and the closest thing I've found was celery's billiard [0]
which seems to be a work in progress.
The feature I'm specially interested in is the ability to spawn
processes [1] instead of forking, which is not pr
On Wed, Jan 28, 2015 at 8:04 AM, Mario Figueiredo wrote:
> In article <54c83ab4$0$12982$c3e8da3$54964...@news.astraweb.com>,
> steve+comp.lang.pyt...@pearwood.info says...
>>
>> Mario Figueiredo wrote:
>>
>> > Static analysis cannot and should not clutter executable code.
>>
>> (1) It isn't clutte
On Wed, Jan 28, 2015, at 01:59, Ben Finney wrote:
> You have no justification to claim that, and it's hostile and dismissive
> to claim it so assertively.
Sorry about that - I was tired and had just read through the whole
thread at once.
> I'll freely admit to finding “'Foo' object” ambiguous. It
I am totally new to Python and please accept my apologies upfront for potential
newbie errors. I am trying to parse a 'simple' web page: http://flow.gassco.no/
When opening the page first time in my browser I need to confirm T&C with an
accept button. After accepting T&C I would like to scrape s
On 2015-01-28 07:50, stephen.bou...@gmail.com wrote:
> I am using the following to open a file in its default application
> in Windows 7:
>
> from subprocess import call
>
> filename = 'my file.csv'
> call('"%s"' % filename, shell=True)
You can try
import os
filename = 'my file.csv'
os.st
On Wednesday, January 28, 2015 at 10:07:25 AM UTC-6, Tim Golden wrote:
> On 28/01/2015 15:50, stephen...@gmail.com wrote wrote:
> > I am using the following to open a file in its default application in
> > Windows 7:
> >
> > from subprocess import call
> >
> > filename = 'my file.csv' call('"%s"'
On 28/01/2015 15:50, stephen.bou...@gmail.com wrote:
> I am using the following to open a file in its default application in
> Windows 7:
>
> from subprocess import call
>
> filename = 'my file.csv' call('"%s"' % filename, shell=True)
>
> This still leaves a python process hanging around until t
I am using the following to open a file in its default application in Windows 7:
from subprocess import call
filename = 'my file.csv'
call('"%s"' % filename, shell=True)
This still leaves a python process hanging around until the launched app is
closed. Any idea how to get around?
--
https://m
In article <54c83ab4$0$12982$c3e8da3$54964...@news.astraweb.com>,
steve+comp.lang.pyt...@pearwood.info says...
>
> Mario Figueiredo wrote:
>
> > Static analysis cannot and should not clutter executable code.
>
> (1) It isn't clutter. The human reader uses that information as well as the
> compi
On 2015-01-28 10:12, alb wrote:
> I've a document structure which is extremely simple and represented
> on a spreadsheet in the following way (a made up example):
>
> subsystem | chapter | section | subsection | subsubsec |
> A | | || |
> | f
Hi Peter,
Peter Otten <__pete...@web.de> wrote:
[]
> You can save the excel sheet as csv so that you an use the csv module which
> may be easier to use than xlrd. The rest should be doable by hand. Here's
> what I hacked together:
>
> $ cat parse_column_tree.py
> import csv
>
> def column_inde
On Thu, Jan 29, 2015 at 12:38 AM, MRAB wrote:
> On 2015-01-28 13:22, luca72 wrote:
>>
>> Hello i'm under windows, i have to write a file from my computer to a
>> local server like taht "\\DOCUMENTALE\my_folder\".
>> How i have to proceed ?
>>
> That's a path to a folder that just happens to be on
On Tue, Jan 27, 2015 at 7:26 PM, Steven D'Aprano <
steve+comp.lang.pyt...@pearwood.info> wrote:
> (2) Algol, Ada, Boo, C, C#, C++, Cobol, Cobra, D, F#, Fantom, Fortran, Go,
> Haskell, Java, Julia, Kotlin, Oberon, Pascal, Rust, Scala and dozens
> (hundreds?) of other languages disagree with you.
>
alb wrote:
> Hi everyone,
>
> I've a document structure which is extremely simple and represented on a
> spreadsheet in the following way (a made up example):
>
> subsystem | chapter | section | subsection | subsubsec |
> A | | || |
> | fun
> from kivy.app import App
> from kivy.uix.label import Label
>
> class MyApp(App):
> def build(self):
> return Label(text='Hello World')
>
> if __name__ == '__main__':
> MyApp().run()
>
>
>
> I get this error when I run it:
>
>
> Traceback (most recent call last):
> File
On 2015-01-28 13:22, luca72 wrote:
Hello i'm under windows, i have to write a file from my computer to a
local server like taht "\\DOCUMENTALE\my_folder\".
How i have to proceed ?
That's a path to a folder that just happens to be on another computer on
your network. Treat it the same way you wo
Hello i'm under windows, i have to write a file from my computer to a local
server like taht "\\DOCUMENTALE\my_folder\".
How i have to proceed ?
Thanks
--
https://mail.python.org/mailman/listinfo/python-list
> Unindent the 'if' statement. Currently, it's indented inside the class
> definition, so MyApp isn't defined yet.
Thanks very much. That fixed it.
Best regards
David
--
https://mail.python.org/mailman/listinfo/python-list
On 2015-01-28 11:10, David Aldrich wrote:
Hi
I am just getting started with Python 3.3.3 and Kivy 1.8.
I am using the Kivy development environment on Windows (open a command prompt
and call kivy.bat).
With this minimal code:
import kivy
kivy.require('1.8.0')
from kivy.app import App
from k
Hi
I am just getting started with Python 3.3.3 and Kivy 1.8.
I am using the Kivy development environment on Windows (open a command prompt
and call kivy.bat).
With this minimal code:
import kivy
kivy.require('1.8.0')
from kivy.app import App
from kivy.uix.label import Label
class MyApp(App)
Gregory Ewing wrote:
> Mario Figueiredo wrote:
>> I couldn't think of a way to
>> demonstrate that a class object does not participate in its own
>> inheritance rules. Only instances of it can.
>
> I think I may see where your reasoning is going astray.
> You think that an instance "inherits" met
Steven D'Aprano writes:
> Ben Finney wrote:
>
> > * In the distant past of Python, some objects were not instances of any
> > class; the terminology in the documentation and messages shows some
> > confusing legacies from that ancient time.
>
>
> I presume you are referring to the type/class dist
In article ,
breamore...@yahoo.co.uk says...
>
> The thing that bothers me is that many people, some of them with maybe
> 20 years of Python experience, have repeatedly stated Python concepts
> with respect to the terms class, instance and object. Instead of
> accepting their knowledge of the
Mario Figueiredo wrote:
An instance of an object is capable of doing so, per its
class definitions. Whereas a Python class object is not.
>>> class Master:
def func(self):
pass
>>> class Sub(Master):
pass
>>> Sub.func()
TypeError: func()
Mario Figueiredo wrote:
I couldn't think of a way to
demonstrate that a class object does not participate in its own
inheritance rules. Only instances of it can.
I think I may see where your reasoning is going astray.
You think that an instance "inherits" methods from its
class in the same way
Hi everyone,
I've a document structure which is extremely simple and represented on a
spreadsheet in the following way (a made up example):
subsystem | chapter | section | subsection | subsubsec |
A | | || |
| func0 | |
On Wed, Jan 28, 2015 at 8:16 PM, Steven D'Aprano
wrote:
> Or perhaps that should be a sad face smiley :-( How much time we would all
> save if academics and language designers would only stick to a single
> consistent terminology across all languages.
That's like wishing that every human spoke th
Mario Figueiredo wrote:
> In article ,
> n...@nedbatchelder.com says...
>>
>> A common mistake is to believe that "OOP" is a well-defined term. It's
>> not it's a collection of ideas that are expressed slightly differently
>> in each language.
>
> A common mistake is thinking just because OOP h
random...@fastmail.us wrote:
> I think his objection is to the use of the phrase "'Sub' object" to
> refer only to instances of the Sub type, when 'Sub' is the name of the
> type object itself and therefore (he thinks) "'Sub' object" should refer
> to it instead. (I can only assume he wants "'x' o
Mario Figueiredo wrote:
> In other words, the object know as "Sub class" is not an instance
> object. True, it is an instance of the object 'type'.
Can you not see the contradiction there?
The object known as 42 is not an instance object. True, it is an instance of
the object "int".
Er, then
Ned Batchelder wrote:
> Do you have a reference that defines these terms?
*A* reference is not sufficient. It has to be a reference which all other
references agree with.
I'll be kind, and lower the requirement to one where *the majority* of other
references agree. The OP still won't find one
Ben Finney wrote:
> Ned Batchelder writes:
>
>> On 1/27/15 3:12 PM, Mario Figueiredo wrote:
>> > This is a follow up from a previous discussion in which it is argued
>> > that the following code produces the correct error message terminology,
>> > considering that in Python an object is also an
random...@fastmail.us wrote:
> On Wed, Jan 28, 2015, at 00:43, Devin Jeanpierre wrote:
>> On Tue, Jan 27, 2015 at 9:37 PM, wrote:
>> > Sub itself is not a Sub object, it is a type object. "instance" is
>> > implicit in the phrase "foo object".
>>
>> Yes. Unfortunately, it's still not really com
random...@fastmail.us wrote:
> On Tue, Jan 27, 2015, at 16:06, Mario Figueiredo wrote:
>> That error message has me start that thread arguing that the error is
>> misleading because the Sub object does have the __bases__ attribute.
>> It's the Sub instance object that does not have it.
>
> What d
In article ,
ben+pyt...@benfinney.id.au says...
>
> More accurately (and as acknowledged in that guide), a single underscore
> *is* a common name for a ?don't care? name, but is better avoided for
> that purpose because it's also commonly used for other purposes.
>
> In other words: That guide i
Hi all, the mobile-sig mailing list is alive:
https://mail.python.org/pipermail/mobile-sig/2015-January/thread.html
If you are interested in python on smart phones that's the place to go!
Cheers,
Daniel
--
Psss, psss, put it down! - http://www.cafepress.com/putitdown
--
https://mail.python.o
Ben Finney wrote:
> * In the distant past of Python, some objects were not instances of any
> class; the terminology in the documentation and messages shows some
> confusing legacies from that ancient time.
I presume you are referring to the type/class distinction?
That is, in Python 1.5 (for e
69 matches
Mail list logo