Form and Database

2005-05-03 Thread v
Please help. I'm new with Python. Using Boa (or Pythoncard) and pysqlite, how can I read/write from/to database, thanks -- http://mail.python.org/mailman/listinfo/python-list

Books for programmers

2008-06-03 Thread V
Hi, I'm a C++, Java and C programmer, and I'm searching for a (preferably printed) book that teaches me the "Python idioms", i.e. the "Python way" of doing something. Ideally, I'm searching for a book like "Effective C++" or "Effective Java", that does not lose time teaching what is a class, or a

Re: Books for programmers

2008-06-03 Thread V
Hi Matt, and thank you very much for your answer. > Hm, depends of course, how good your programming skills are in the > languages you knwo already, but I rely on the book "Beginning Python - > From Novice to Professional" by Magnus Lie Hetland, published by Apress. I think that I'm interested i

python25.dll

2012-03-04 Thread Scott V
I don't know if anyone has sent this in before. > I loaded the current version of Python on my computer to learn the > programming and, I believe, it helps my Blender to work. Anyway, > occassionally, I get an error on the screen, before I have started running > programs, that states "python25.dll

compiling py 2.7.3 with openssl

2012-06-09 Thread V N
RHEL 5.3 x86_64 / Python 2.7.3 compiled as shown below ==> PYTHON=Python-2.7.3 tar xjf bin/$PYTHON.tar.bz2 cd $PYTHON PYHOME=/usr/local/$PYTHON; export PYHOME LDFLAGS="-L/usr/local/lib64"; export LDFLAGS CPPFLAGS="-I/usr/local/include/ncurses -I/usr/local/include/readline

py 2.7.1 & openssl

2011-03-30 Thread V N
I installed openssl-1.0.0d.tar.gz on my RHEL 5 box using: ./config --prefix=/usr/local --openssldir=/usr/local/openssl shared zlib make sudo make install Then I installed python 2.7.1 using PYHOME=/usr/local/Python-2.7.1; export PYHOME LD_RUN_PATH=$PYHO

Re: py 2.7.1 & openssl

2011-03-31 Thread V N
Thank you for your response. Here's some more information: RHEL 5.3 / x86_64, using gcc I am now compiling openssl-1.0.0d using: ./config --prefix=/usr/local --openssldir=/usr/local/openssl -fPIC shared threads zlib I do have the logs for config, make and make install. There are no errors in

Re: py 2.7.1 & openssl

2011-03-31 Thread V N
Yes, _md5 is enabled but I get a very long list under Failed to build these modules: _bisect_codecs_cn _codecs_hk _codecs_iso2022_codecs_jp _codecs_kr _codecs_tw _collections _csv _ctypes_ctypes_test _curses _curses_panel _elemen

Re: py 2.7.1 & openssl

2011-04-01 Thread V N
I tried all your suggestions. No success. On Apr 1, 8:35 am, nirinA wrote: > hi, > > > Yes, _md5 is enabled but I get a very long list under > >  Failed to build these modules: > > ... list of mostly all extension modules ... > > This list was empty earlier. > > at some point, the compilation fai

Installation issue with Python 3.6.2.

2017-09-05 Thread V Vishwanathan
For the past 8/10 hours I have been trying to install the above version without any success. My O/S is windows 10 free upgrade from win 8.1 Every time I try to install, I simply get a message as per screen grab attached. I did have a version of 3.61 installed prior to upgrade to win 10, but so

Questions.

2017-09-08 Thread V Vishwanathan
Hi, From what I see in the recent 4/5 digests, this forum seems to be for advanced and professional programmers. So wondering if a newbie can post some questions to understand errors in his code or will it look silly? Thanks, Venkat -- https://mail.python.org/mailman/listinfo/python-list

Key Error: "city"

2017-09-08 Thread V Vishwanathan
(1) Trying to convert concatenated string to .format method (2) concatenated string >> [#todo rewrite this line to use the format method rather than string concatenation alert = "Today's forecast for " + city + ": The temperature will range from " + str(low_temperature) + " to " + str(high_temper

The "loop and a half"

2017-10-08 Thread Mikhail V
bartc wrote: >> But as it happens, I could make computers talk to each when I was working >> with microprocessors, using home-made interfaces, rs232 or rs423. I wouldn't >> know how to do it now because it depends on other people's over-complex >> tech. Chris Angelico wrote: > I don't know if you'

The "loop and a half"

2017-10-09 Thread Mikhail V
bartc wrote: >> Your job is to port an editor that people have been using for 30 years to >> Linux. The first thing you do is to change all the commands and shortcuts to >> match what is typical on Linux? So that no-one who was familiar with it as >> it was can actually use it? Chris Angelico wrot

The "loop and a half"

2017-10-09 Thread Mikhail V
>>> Have you ever worked on a slow remote session where a GUI is >>> completely impracticable (or maybe even unavailable), and redrawing >>> the screen is too expensive to do all the time? >> >> So where does the redrawing happen? The machine youre sitting on (let's >> call it 'A') and send remote

Keyboard Input [was: The "loop and a half"]

2017-10-10 Thread Mikhail V
Chris Angelico wrote: > On Mon, Oct 9, 2017 at 7:05 PM, Mikhail V wrote: > > The first thing a developer should provide - the keys and mouse input > > should be > > *customizable* by the user. It is so by most serious application I have > > ever used. > > And t

Lies in education [was Re: The "loop and a half"]

2017-10-11 Thread Mikhail V
> >> [...] I'm not here to "cast stones", I like Python. I just think > >> that you shouldn't cast stones at C/C++. > > Not while PHP exists. There aren't enough stones in the world... > > > > PHP seems (seemed?) popular for laying out web pages. Are their vastly > superior options? Python? Supe

Lies in education [was Re: The "loop and a half"]

2017-10-11 Thread Mikhail V
Bill wrote: > Mikhail V wrote: > > Python? Superior syntax for sure > > I believe that. What accounts for the popularity of PHP then? I can't tell for PHP for sure... As in many cases in software world, there is a principle of "who was the first there to solve some ta

Re: how to read in the newsreader

2017-10-16 Thread Mikhail V
Thomas wrote: > > On 16/10/17 20:02, Pete Forman wrote: > > Thomas Jollans writes: > > ... > >>> If you do stick with a digest then check your newsreader for a feature > >>> to expand it. Then you can read and reply as if you were getting > >>> individual posts. > >>> > >> That exists? How does it

Re: Allow additional separator character in variables

2017-11-23 Thread Mikhail V
Chris A wrote: On Fri, Nov 24, 2017 at 1:10 AM, Mikhail V wrote: > > > Well, then there is some bitter irony in this, so it allows pretty > > much everything, > > but does not allow me to beautify code with hyphens. > > I can fully understand the wish to use non-

Benefits of unicode identifiers (was: Allow additional separator in identifiers)

2017-11-23 Thread Mikhail V
Chris A wrote: >> On Fri, Nov 24, 2017 at 1:10 AM, Mikhail V wrote: >> >>> Chris A wrote: >>> >>> Fortunately for the world, you're not the one who decided which >>> characters were permitted in Python identifiers. The ability to use >>

Re: Benefits of unicode identifiers (was: Allow additional separator in identifiers)

2017-11-23 Thread Mikhail V
On Thu, Nov 23, 2017 at 8:46 PM, Thomas Jollans wrote: > On 23/11/17 19:42, Mikhail V wrote: >> I mean for a real practical situation - for example for an average >> Python programmer or someone who seeks a programmer job. >> And who does not have a 500-key keyboard, >

Re: Benefits of unicode identifiers (was: Allow additional separator in identifiers)

2017-11-23 Thread Mikhail V
On Thu, Nov 23, 2017 at 8:15 PM, Chris Angelico wrote: > > Let's start with a simpler question. Which of these is better code? > > # == Option 1 > class ZipExhausted(Exception): > pass > > def zip_longest(*args, **kwds): > # zip_longest('ABCD', 'xy', fillvalue='-') --> Ax By C- D- >

Re: Benefits of unicode identifiers (was: Allow additional separator in identifiers)

2017-11-23 Thread Mikhail V
On Thu, Nov 23, 2017 at 9:39 PM, Chris Angelico wrote: > On Fri, Nov 24, 2017 at 7:38 AM, Mikhail V wrote: >> I see you manually 'optimise' the look? >> I personally would end with something like this: >> >> def zip_longest(*A, **K): >> value = K.

Re: Benefits of unicode identifiers (was: Allow additional separator in identifiers)

2017-11-23 Thread Mikhail V
On Thu, Nov 23, 2017 at 10:05 PM, Chris Angelico wrote: > On Fri, Nov 24, 2017 at 8:02 AM, Mikhail V wrote: >> On Thu, Nov 23, 2017 at 9:39 PM, Chris Angelico wrote: >>> On Fri, Nov 24, 2017 at 7:38 AM, Mikhail V wrote: >>>> I see you manually 'optimise

Re: Benefits of unicode identifiers (was: Allow additional separator in identifiers)

2017-11-23 Thread Mikhail V
On Fri, Nov 24, 2017 at 4:13 AM, Chris Angelico wrote: > On Fri, Nov 24, 2017 at 1:44 PM, Mikhail V wrote: >> From my above example, you could probably see that I prefer somewhat >> middle-sized identifiers, one-two syllables. And naturally, they tend to >> reflect some pr

Re: Benefits of unicode identifiers (was: Allow additional separator in identifiers)

2017-11-24 Thread Mikhail V
On Fri, Nov 24, 2017 at 8:03 AM, Chris Angelico wrote: >> and in Python in particular, because they will be not only forced to learn >> some english, but also will have all 'pleasures' of multi-script editing. >> But wait, probably one can write python code in, say Arabic script *only*? >> How a

Re: Benefits of unicode identifiers (was: Allow additional separator in identifiers)

2017-11-24 Thread Mikhail V
On Fri, Nov 24, 2017 at 5:37 PM, Chris Angelico wrote: > On Sat, Nov 25, 2017 at 3:33 AM, Mikhail V wrote: >> On Fri, Nov 24, 2017 at 8:03 AM, Chris Angelico wrote: >> >>>> and in Python in particular, because they will be not only forced to learn >>>&g

Re: Benefits of unicode identifiers (was: Allow additional separator in identifiers)

2017-11-24 Thread Mikhail V
On Fri, Nov 24, 2017 at 9:08 PM, Chris Angelico wrote: > On Sat, Nov 25, 2017 at 7:00 AM, Mikhail V wrote: >> I agree that one should have more choices, but >> people still can't really choose many things. >> I can't choose hyphen, I can't choose minus

Re: Benefits of unicode identifiers (was: Allow additional separator in identifiers)

2017-11-24 Thread Mikhail V
On Fri, Nov 24, 2017 at 11:26 PM, Richard Damon wrote: > > Have you tried using U+2010 (HYPHEN) ‐. It is in the class XID_CONTINUE (in > fact it is in XID_START) so should be available. > Hi Richard. U+2010 is SyntaxError. 5 days ago I made a proposal on python-ideas, and we have already discuss

Re: Increasing the diversity of people who write Python

2017-11-27 Thread Mikhail V
On Mon, Nov 27, 2017 at 8:09 PM, Alexandre Brault wrote: > A quick Google search turned up WinCompose. It defaults to Right-Alt for > its compose key, but that's configurable > > On 2017-11-27 02:05 PM, Paul Moore wrote: >> On 27 November 2017 at 18:13, Skip Montanaro >> wrote: If you have

Goto

2017-12-29 Thread Mikhail V
MRAB wrote: > It's OK for code that's close to the metal, but in high-level code? No. > Python has managed for >25 years without it, and I've yet to see a > convincing use-case. "convincing" is a broad term I think, especially for syntax proposals ;) I think often one wish to use it just to avo

Simple graphic library for beginners

2018-01-10 Thread Mikhail V
> > But the OP isn't looking for a full-blown GUI toolkit. I went back and > > re-read his post to be sure I wasn't misunderstanding. Therefore I > > don't think the suggestion to use wxPython or PyQt is that helpful. > > > > Do you have any other suggestions? > > > > Even Cairo is pretty complic

Re: Simple graphic library for beginners

2018-01-12 Thread Mikhail V
On Fri, Jan 12, 2018 at 10:38 AM, Paul Moore wrote: > On 12 January 2018 at 06:47, Steven D'Aprano > wrote: >> If pip is joined at the hip to a specific version of Python, I think that >> we ought to be able to specify the version number like we can with Python. >> >> Something like: >> >> pip .

Spotify technology

2022-08-01 Thread Gonzalo V
Hi everyone! i need a guide or advice or anything. I few years ago, i was able to connect to my music receiver via spotify app from my phone or laptop. You had to connect to receiver and your laptop to the same wifi network and this is. Years later, that service was deprecated by spotify conditions

always return the same pdf

2022-03-07 Thread Gonzalo V
Hello everyone. i had upload a Django app to an ubuntu 18.04 server and it gives me the same pdf everytime the view is called. To generate the pdf it receipts differents string buy it gives me the same pdf. Could you give some idea what is happening? thanks everyone @never_cached def generar_pdf(r

Re: Web Scraping

2016-11-12 Thread Gonzalo V
Explore url module and you need urlretrieve() saludos, desde un móvil. El nov 12, 2016 12:23 p.m., "Veek M" escribió: > Steve D'Aprano wrote: > > > On Sat, 12 Nov 2016 11:07 pm, Veek M wrote: > > > >> 121sukha wrote: > >> > >>> I am new to python and I want to use web scraping to download songs

Re: UTF-8 Encoding Error

2016-12-25 Thread Gonzalo V
Try utf-8-sig El 25 dic. 2016 2:57 AM, "Grady Martin" escribió: > On 2016年12月22日 22時38分, subhabangal...@gmail.com wrote: > >> I am getting the error: >> UnicodeDecodeError: 'utf8' codec can't decode byte 0x96 in position 15: >> invalid start byte >> > > The following is a reflex of mine, whenever

Beta release of pip version 10

2018-03-31 Thread Mikhail V
Paul Moore writes : If you discover any bugs while testing the new release, please report > them at https://github.com/pypa/pip/issues. Link not working (on pipermail archive -- remove the period on the end) https://github.com/pypa/pip/issues PS: was looking forward to PIP improvements on Windo

Beta release of pip version 10

2018-03-31 Thread Mikhail V
Steven D'Aprano writes: >> >> PS: was looking forward to PIP improvements on Windows, on 9.0.3 still >> some issues. E.g. trying to redirect output from 'pip search ... > >> a.txt' gives a wall of errors. it's on Windows 10. > > > > Don't be shy, tell us what those errors are. You meant - don't

Beta release of pip version 10

2018-03-31 Thread Mikhail V
MRAB writes: > > UnicodeEncodeError: 'charmap' codec can't encode character > > > > when it meets a non-ascii char. > > > > e.g. tried this: > > pip search pygame > a.txt > > > Well, _I_ didn't get an error! > > One of the lines is: > > kundalini (0.4)- LրVE-like PyGame API > > So

Suggestion for a "data" object syntax

2018-05-07 Thread Mikhail V
Here is an idea for 'data object' a syntax. For me it is interesting, how would users find such syntax. I personally find that this should be attractive from users perspective. Main aim is more readable presenting of typical data chunks and some typical data types (tuples/lists) directly in code. F

Re: Suggestion for a "data" object syntax

2018-05-08 Thread Mikhail V
On Tue, May 8, 2018 at 10:15 AM, Steven D'Aprano wrote: > On Tue, 08 May 2018 06:45:05 +0300, Mikhail V wrote: > >> *Example 3. Two-dimensional tuple.* >> >> data === T/T : >> 123"hello" >> ab c + de f >

Re: Suggestion for a "data" object syntax

2018-05-08 Thread Mikhail V
On Tue, May 8, 2018 at 6:20 PM, Steven D'Aprano wrote: > On Tue, 08 May 2018 15:52:12 +0300, Mikhail V wrote: > >>> Last time you brought up this idea, you were told that it is ambiguous. >>> Using whitespace alone, it is impossible to distinguish between

Re: Suggestion for a "data" object syntax

2018-05-08 Thread Mikhail V
On Tue, May 8, 2018 at 5:25 PM, Chris Angelico wrote: > On Tue, May 8, 2018 at 10:52 PM, Mikhail V wrote: >> Right? Your issues with tabs aside, I think it is impossible to ignore the >> the readability improvement. Not even speaking of how >> many commas and bracket yo

Re: Suggestion for a "data" object syntax

2018-05-08 Thread Mikhail V
On Wed, May 9, 2018 at 12:33 AM, Chris Angelico wrote: > On Wed, May 9, 2018 at 7:15 AM, Mikhail V wrote: >> On Tue, May 8, 2018 at 5:25 PM, Chris Angelico wrote: >>> On Tue, May 8, 2018 at 10:52 PM, Mikhail V wrote: >>>> Right? Your issues with tabs aside, I th

Re: Suggestion for a "data" object syntax

2018-05-08 Thread Mikhail V
On Wed, May 9, 2018 at 3:14 AM, Ben Finney wrote: > Mikhail V writes: > >> On Wed, May 9, 2018 at 12:33 AM, Chris Angelico wrote: >> > On Wed, May 9, 2018 at 7:15 AM, Mikhail V wrote: >> >> Just admit it, you try to troll me (or just pretend, I don't know

Re: seeking deeper (language theory) reason behind Python design choice

2018-05-10 Thread Mikhail V
On Wed, May 9, 2018 at 8:50 AM, Chris Angelico wrote: > On Wed, May 9, 2018 at 3:36 PM, Ian Kelly wrote: >> >> while True: >> if we_are_done(): >> break >> # do some stuff >> ... >> if error_occurred(): >> break >> notify_user() >> >> >> Fixed, using idiomatic Pyth

Re: Suggestion for a "data" object syntax

2018-05-10 Thread Mikhail V
On Wed, May 9, 2018 at 6:25 AM, Steven D'Aprano wrote: > On Tue, 08 May 2018 23:16:23 +0300, Mikhail V wrote: > >> but I propose Tab-separated elements. > > We already have tab-separated elements in Python. It is allowed to use > tabs between any whitespace separated to

Re: Suggestion for a "data" object syntax

2018-05-11 Thread Mikhail V
On Fri, May 11, 2018 at 9:12 AM, Ian Kelly wrote: > On Thu, May 10, 2018 at 6:34 PM, Mikhail V wrote: >> On Wed, May 9, 2018 at 6:25 AM, Steven D'Aprano >> wrote: >>> On Tue, 08 May 2018 23:16:23 +0300, Mikhail V wrote: >>> >> >>>> but

Re: Suggestion for a "data" object syntax

2018-05-11 Thread Mikhail V
On Fri, May 11, 2018 at 9:39 AM, Ian Kelly wrote: > On Mon, May 7, 2018 at 9:45 PM, Mikhail V wrote: >> *Example 1. Multi-line strings* >> >> data === S : >> this is multi-line string >> escape chars: same as in strings (\\, \\n, \\t ...) , >>

Re: Suggestion for a "data" object syntax

2018-05-12 Thread Mikhail V
On Sat, May 12, 2018 at 7:54 AM, Steven D'Aprano wrote: > On Sat, 12 May 2018 02:26:05 +0300, Mikhail V wrote: > >> it is just not a trivial task to find an optimal solution to this > > We already have an optimal solution to this. Yes. current syntax will not go anywa

Re: Suggestion for a "data" object syntax

2018-05-12 Thread Mikhail V
On Sat, May 12, 2018 at 5:38 PM, Ian Kelly wrote: > On Fri, May 11, 2018 at 5:26 PM, Mikhail V wrote: >> On Fri, May 11, 2018 at 9:12 AM, Ian Kelly wrote: >>> On Thu, May 10, 2018 at 6:34 PM, Mikhail V wrote: >>>> Do you understand that basically any pytho

"Data blocks" syntax specification draft

2018-05-19 Thread Mikhail V
I have made up a printable PDF with the current version of the syntax suggestion. https://github.com/Mikhail22/Documents/blob/master/data-blocks-v01.pdf After some of your comments I've made some further re-considerations, e.g. element separation should be now much simpler. A lot of examples with

"Data blocks" syntax specification draft

2018-05-20 Thread Mikhail V
> > > > Comments, suggestions are welcome. > > > > One comment. > > I'm not interested in downloading a PDF. Can you rework your document > to be in a more textual format like Markdown or reStructuredText? > Since you're hosting on GitHub anyway, the rendering can be done > automatically. > > Chris

Re: "Data blocks" syntax specification draft

2018-05-20 Thread Mikhail V
On Mon, May 21, 2018 at 3:02 AM, Ian Kelly wrote: > On Sun, May 20, 2018 at 4:28 PM, Mikhail V wrote: >> "Markdown" is too vague - there dozens of markdown styles and >> also they include subsets of HTML. It is just plain text with tags > > The whole point of Ma

Re: "Data blocks" syntax specification draft

2018-05-20 Thread Mikhail V
On Mon, May 21, 2018 at 5:20 AM, Chris Angelico wrote: > On Mon, May 21, 2018 at 8:28 AM, Mikhail V wrote: >>> > >>> > Comments, suggestions are welcome. >>> > >>> >>> One comment. >>> >>> I'm not interested in do

Re: "Data blocks" syntax specification draft

2018-05-21 Thread Mikhail V
On Mon, May 21, 2018 at 7:05 AM, Chris Angelico wrote: >>> Forcing us to download a PDF and then read it? Well, it's your >>> decision. My decision is that I cannot be bothered going to THAT much >>> effort to figure out what you're saying. >> >> THAT much effort to click two times instead of one

Re: "Data blocks" syntax specification draft

2018-05-21 Thread Mikhail V
On Mon, May 21, 2018 at 2:14 PM, Ned Batchelder wrote: > On 5/19/18 10:58 PM, Mikhail V wrote: >> >> I have made up a printable PDF with the current version >> of the syntax suggestion. >> >> https://github.com/Mikhail22/Documents/blob/master/data-blocks-v01.pdf

Re: "Data blocks" syntax specification draft

2018-05-21 Thread Mikhail V
On Mon, May 21, 2018 at 1:41 PM, Chris Lindsay via Python-list wrote: > If a block of static data is large enough to start to be ugly, a common > approach is to load the data from some other file, in a language which is > designed around structured data. Maybe it is common in industrial applica

Re: "Data blocks" syntax specification draft

2018-05-21 Thread Mikhail V
On Mon, May 21, 2018 at 3:48 PM, bartc wrote: > > This is intended to be used inside actual Python programs? > > In that case code is normally displayed in fixed pitch, as it would normally > be viewed in a code editor, even if part of a document. > > But I have to say it looks pretty terrible, a

Re: "Data blocks" syntax specification draft

2018-05-22 Thread Mikhail V
On Tue, May 22, 2018 at 9:01 AM, Christian Gollwitzer wrote: > Am 22.05.18 um 04:17 schrieb Mikhail V: >>> YAML comes to mind >> >> >> Actually plugging a data syntax in existing language is not a new idea. >> Though I don't know real success stories. >

Re: "Data blocks" syntax specification draft

2018-05-22 Thread Mikhail V
On Tue, May 22, 2018 at 1:25 PM, bartc wrote: > On 22/05/2018 03:49, Mikhail V wrote: >> >> On Mon, May 21, 2018 at 3:48 PM, bartc wrote: >> >> # t >> # t >>11 22 33 >> > > Is this example complete? Presumably it means ((11,22,33

Re: "Data blocks" syntax specification draft

2018-05-22 Thread Mikhail V
On Wed, May 23, 2018 at 2:25 AM, Dan Strohl wrote: > >> >> Explanation: >> [here i'll use same symbol /// for the data entry point, but of course it >> can be >> changed if a better idea comes later. Also for now, just for simplicity - >> the rule >> is that the contents of a block starts alway

Indented multi-line strings

2018-05-23 Thread Mikhail V
On Wed, May 23, 2018 at 4:19 PM, Dan Strohl wrote: > First of all, I suggest splitting this into a separate proposal (new thread) > that way you will avoid confusion for people who are still considering the > older proposal, and for the (probably many) people who have stopped reding > the old t

Re: Indented multi-line strings

2018-05-23 Thread Mikhail V
On Wed, May 23, 2018 at 8:08 PM, Mikhail V wrote: > On Wed, May 23, 2018 at 4:19 PM, Dan Strohl wrote: > data = /// sN # and > data = /// tN > > Where N - is the amount of characters, spaces (s) or > tabs (t). > This should cover most use cases. > It implies

Re: Indented multi-line strings

2018-05-23 Thread Mikhail V
On Wed, May 23, 2018 at 11:45 PM, MRAB wrote: >>> def func(): >>> foobar >>> data = /// s2 >>> first line >>> last line >>> foobar >>> > Instead of the "s2", etc: > > def func(): > foobar > data = >> : > first line > last line > foobar > > Leading

Re: Indented multi-line strings

2018-05-23 Thread Mikhail V
On Wed, May 23, 2018 at 11:56 PM, Bob van der Poel wrote: > On Wed, May 23, 2018 at 1:45 PM, MRAB wrote: > >> If you want additional indentation, then provide a string literal: >> >> def func(): >> foobar >> data = >> '': >> first line >> last line >> foobar >> >> for

Raw string statement (proposal)

2018-05-24 Thread Mikhail V
Hi. I've put some thoughts together, and need some feedback on this proposal. Main question is: Is it convincing? Is there any flaw? My own opinion - there IS something to chase. Still the justification for such syntax is hard. Raw string statement -- Issue - Vast majority

Re: Raw string statement (proposal)

2018-05-25 Thread Mikhail V
On Fri, May 25, 2018 at 1:15 PM, bartc wrote: > On 25/05/2018 05:34, Mikhail V wrote: > > I had one big problem with your proposal, which is that I couldn't make head > or tail of your syntax. Such a thing should be immediately obvious. > > (In your first two examples, w

Re: Raw string statement (proposal)

2018-05-26 Thread Mikhail V
On Sat, May 26, 2018 at 10:55 AM, Steven D'Aprano wrote: > On Sat, 26 May 2018 08:09:51 +0300, Mikhail V wrote: > >> On Fri, May 25, 2018 at 1:15 PM, bartc wrote: > [...] >>> One problem here is how to deal with embedded non-printable characters: >>> C

Re: Raw string statement (proposal)

2018-05-26 Thread Mikhail V
On Sat, May 26, 2018 at 7:10 PM, Steven D'Aprano wrote: > On Sat, 26 May 2018 18:22:15 +0300, Mikhail V wrote: > >>> Here is a string assigned to name `s` using Python's current syntax: >>> >>> s = "some\ncharacters\0abc\x01\ndef\uFF0A\nhere&quo

Re: Raw string statement (proposal)

2018-05-26 Thread Mikhail V
On Sat, May 26, 2018 at 10:21 PM, Chris Angelico wrote: > > I'm done. Argue with brick walls for the rest of eternity if you like. I see you like me, but I can reciprocate your feelings. > > ChrisA > -- > https://mail.python.org/mailman/listinfo/python-list -- https://mail.python.org/mailman/

File names with slashes [was Re: error in os.chdir]

2018-07-01 Thread Mikhail V
[Steven D'Aprano] > (The same applies to Unix/Linux systems too, of course.) But while you're > using Python to manipulate files, you should use Python rules, and that > is "always use forward slashes". > > Is that reasonable? > > Under what circumstances would a user calling open(pathname) in Pyt

Re: File names with slashes [was Re: error in os.chdir]

2018-07-02 Thread Mikhail V
[Richard Damon] > The one major issue with backslashes is that they are a special > character in string literals, so you either need to use raw literals a > remember the few cases they still act as special characters, or remember > to convert them to double back slashes, at a minimum for all the >

File names with slashes [was Re: error in os.chdir]

2018-07-02 Thread Mikhail V
[Chris A] > [Mikhail] > > So Imo default syntax should be something like: > > > > S = "A:{x41}B:{x42}" > > > > instead of backslashes and Co. > > So how do you represent brace characters in a string? \{ and \} just kidding :-D I would be ok with {L} and {R} - easy on eye and easy to rememb

File names with slashes [was Re: error in os.chdir]

2018-07-03 Thread Mikhail V
Greg wrote: > Mikhail V wrote: > > s= "\"s\"" -> > > s= {"s"} > > But now you need to find another way to represent set literals. I need to find? That comment was not about (current) Python but rather how I think string should hav

File names with slashes [was Re: error in os.chdir]

2018-07-04 Thread Mikhail V
Joe Pfeiffer wrote: >> On Windows a path is e.g.: >> C:\programs\util\ >> So what is reasonable about using forward slashes? >> It happens to me that I need to copy-paste real paths like 100 times >> a day into scripts - do you propose to convert to forward slashes each time? > That's what starte

File names with slashes [was Re: error in os.chdir]

2018-07-04 Thread Mikhail V
ChrisA wrote: > Mikhail V wrote: >> Yes, and the answer was a week ago: just put "r" before the string. >> r"C:\programs\util" >> >> And it worked till now. So why should I replace backslashes with >> forward slashes? >> There is one i

File names with slashes [was Re: error in os.chdir]

2018-07-05 Thread Mikhail V
Steven D'Aprano wrote: > In Explorer and the open-file dialog of most applications, they will see > paths like this: > > directory\file name with spaces > > with the extension (.jpg, .pdf, .docx etc) suppressed. So by your > argument, Python needs to accept strings without quotes: > > open

Kindness

2018-07-13 Thread Mikhail V
Steven D'Aprano wrote: > Over the many months, I've tried defending Bart, engaging with him, > patiently explaining that his choices and our choices are not always the > same and that there's no objective "right" and "wrong" between them, > making subtle hints, and less subtle hints that he's bein

Re: Failed install scipy lib

2016-04-20 Thread Gonzalo V
oscar instálate mejor anaconda y listo. Saludos, Gonzalo 2016-04-20 10:04 GMT-03:00 Oscar Benjamin : > On 20 April 2016 at 12:30, wrote: > > On Wednesday, April 20, 2016 at 2:09:10 PM UTC+3, liran@gmail.com > wrote: > >> On Tuesday, April 19, 2016 at 9:21:42 PM UTC+3, eryk sun wrote: > >>

Re: How to read from serial port?

2016-04-26 Thread Gonzalo V
Try print('blaba'+str(out)) saludos, desde un móvil. El abr 26, 2016 2:33 p.m., "Grant Edwards" escribió: > On 2016-04-26, David Aldrich wrote: > > > #!/usr/bin/python3 > > import serial > > > > ser=serial.Serial('COM1',115200) > > while True: > > out = ser.read() > > print('Receiving..

Python launcher

2020-04-15 Thread Angel V
Hello, I'm new to Python and recently began to self learn the language. Unfortunately, whenever I try to launch it, I'm met with a black pop-up screen the disappears as soon as it comes up. I've tried uninstalling and I just run into the same issue. I tried downloading the program onto my brother'

SPECIALS CHARACTERS

2020-04-15 Thread Gonzalo V
Good morning! A tiny question. Are there a way to create a new character on python? i need to create some kind of arroba @ but with other letter inside. Are there a library for that? Really thanks. Gonzalo from Chile. -- https://mail.python.org/mailman/listinfo/python-list

Re: Jargons of Info Tech industry

2005-08-12 Thread jan V
> Xah is very well known as the resident troll in many NGs and his 'contributions' are less then useless. > > Best is to just ignore him. Did you know that some deranged people take sexual pleasure out of starting fires? Apparently some of the latest forest/bush fires in southern Europe were even

Re: Jargons of Info Tech industry

2005-08-22 Thread jan V
> +---+ .:\:\:/:/:. > | PLEASE DO NOT |:.:\:\:/:/:.: > | FEED THE TROLLS | :=.' - - '.=: > | | '=(\ 9 9 /)=' > | Thank you, | ( (_) ) >

Re: Jargons of Info Tech industry

2005-08-23 Thread l v
Xah Lee wrote: > (circa 1996), and email should be text only (anti-MIME, circa 1995), I think e-mail should be text only. I have both my email and news readers set to display in plain text only. It prevents the marketeers and spammers from obtaining feedback that my email address is valid. A

Re: Jargons of Info Tech industry

2005-08-23 Thread l v
Mike Schilling wrote: > "l v" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > >>Xah Lee wrote: >> >>>(circa 1996), and email should be text only (anti-MIME, circa 1995), >> >>I think e-mail should be text only. I have

execfile in global scope

2005-08-24 Thread v . vayer
I need to execfile() from a function in order to set value for a global variable from inside the executed file. I know there are "globals" and "locals" optional arguments for execfile, but I just can't figure out how to use them correctly. Here is an example: Change.py = x = 555 Main.py =

Re: Need help - How to identify the cell display format?

2015-12-15 Thread Gonzalo V
Are you working with time series? saludos, desde un móvil. El dic 15, 2015 9:41 a.m., "Ezhilarasan Chandrasekar" escribió: > Hi folks, > > I just want to find the cell display format in Excel. I have a Expected > excel file and Actual Excel file. > > I have some knowledge about, how to check the

Required Python/Backend Engineer, Data in Redwood City, CA -- full time

2016-01-08 Thread naveen . v
Hi , One of our client seeking Python/Backend Engineer, Data in Redwood City, CA If you are interested please send me your updated resume at navee...@maania.com along with your expected salary. Title: Python/Backend Engineer, Data Location: Redwood City, CA Full time position Required:

Dictionary error

2014-11-25 Thread Thuruv V
Please Clarify the 'TypeError: zip argument #1 must support iteration' import openpyxl book = openpyxl.load_workbook('c:/users/c_thv/desktop/tax.xlsx') sheet = book.get_sheet_by_name('Thilip') cell = sheet.cell(row=2,column = 4) i = 2 x = [] y = []while i < 10: keys = sheet.cell(row=i,column

Why For Loop Skips the Last element?

2015-01-01 Thread Thuruv V
Hi all, Here's the list. . inlist = ["Fossil Women's Natalie Stainless Steel Watch Brown (JR1385)", 'Balmer Swiss Made Veyron Mens Watch: Black Band/ Black Dial (62625241)', 'Fortune NYC Ladies Quilted Dial Watch: Brown', 'Jeanne Collection w/ Swarovski Elements Watch: Dark Purple Band (62623659)

Re: ConnectionError handling problem

2015-09-27 Thread Gonzalo V
Hi Cameron. i had the same problems and you have to tell to python what to do with the connect problem. try this: ... except *urllib.error.HTTPError* as e: if e.getcode()==504: disp = "SIN RESPUESTA DEL SERVIDOR" #(No answer from the server) nombre=''

Re: Interacting with a web site, which lib?

2015-09-27 Thread Gonzalo V
I am working with selenium for.python. easy and powerful saludos, desde un móvil. El sep 27, 2015 6:01 p.m., "Laura Creighton" escribió: > In a message of Sun, 27 Sep 2015 15:05:37 -0600, > paul.hermeneu...@gmail.com wri > tes: > >Does anyone have an opinion on the relative merits of using the >

Re: Interacting with a web site, which lib?

2015-09-27 Thread Gonzalo V
Selenium https://selenium-python.readthedocs.org/ i used pip for install it. Saludos, Gonzalo 2015-09-27 18:16 GMT-04:00 Gonzalo V : > I am working with selenium for.python. easy and powerful > > saludos, > desde un móvil. > El sep 27, 2015 6:01 p.m., "Laura Creighton&q

anagonda sucks )))))))))))))))

2011-10-17 Thread n v
http://123maza.com/48/silver424/ -- http://mail.python.org/mailman/listinfo/python-list

python royals @@@@@@@@@

2011-10-24 Thread n v
http://123maza.com/48/silver424/ -- http://mail.python.org/mailman/listinfo/python-list

funny minny year@@@@@@@@@@@@@@@@@@@@

2011-12-31 Thread n v
http://123maza.com/48/silver424/ -- http://mail.python.org/mailman/listinfo/python-list

  1   2   3   4   5   6   7   8   9   10   >